康巴易测肤/伤疤uniapp小程序类
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 месяц назад
1 месяц назад
1 месяц назад
1 месяц назад
1 месяц назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (!res) {
  346. resolve(res);
  347. return;
  348. }
  349. if (res[0]) {
  350. reject(res[0]);
  351. } else {
  352. resolve(res[1]);
  353. }
  354. });
  355. });
  356. }
  357. };
  358. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  359. var CONTEXT_API_RE = /^create|Manager$/;
  360. // Context例外情况
  361. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  362. // 同步例外情况
  363. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  364. var CALLBACK_API_RE = /^on|^off/;
  365. function isContextApi(name) {
  366. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  367. }
  368. function isSyncApi(name) {
  369. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  370. }
  371. function isCallbackApi(name) {
  372. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  373. }
  374. function handlePromise(promise) {
  375. return promise.then(function (data) {
  376. return [null, data];
  377. }).catch(function (err) {
  378. return [err];
  379. });
  380. }
  381. function shouldPromise(name) {
  382. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  383. return false;
  384. }
  385. return true;
  386. }
  387. /* eslint-disable no-extend-native */
  388. if (!Promise.prototype.finally) {
  389. Promise.prototype.finally = function (callback) {
  390. var promise = this.constructor;
  391. return this.then(function (value) {
  392. return promise.resolve(callback()).then(function () {
  393. return value;
  394. });
  395. }, function (reason) {
  396. return promise.resolve(callback()).then(function () {
  397. throw reason;
  398. });
  399. });
  400. };
  401. }
  402. function promisify(name, api) {
  403. if (!shouldPromise(name) || !isFn(api)) {
  404. return api;
  405. }
  406. return function promiseApi() {
  407. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  408. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  409. params[_key2 - 1] = arguments[_key2];
  410. }
  411. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  412. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  413. }
  414. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  415. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  416. success: resolve,
  417. fail: reject
  418. })].concat(params));
  419. })));
  420. };
  421. }
  422. var EPS = 1e-4;
  423. var BASE_DEVICE_WIDTH = 750;
  424. var isIOS = false;
  425. var deviceWidth = 0;
  426. var deviceDPR = 0;
  427. function checkDeviceWidth() {
  428. var _Object$assign = Object.assign({}, wx.getWindowInfo(), {
  429. platform: wx.getDeviceInfo().platform
  430. }),
  431. windowWidth = _Object$assign.windowWidth,
  432. pixelRatio = _Object$assign.pixelRatio,
  433. platform = _Object$assign.platform; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  434. deviceWidth = windowWidth;
  435. deviceDPR = pixelRatio;
  436. isIOS = platform === 'ios';
  437. }
  438. function upx2px(number, newDeviceWidth) {
  439. if (deviceWidth === 0) {
  440. checkDeviceWidth();
  441. }
  442. number = Number(number);
  443. if (number === 0) {
  444. return 0;
  445. }
  446. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  447. if (result < 0) {
  448. result = -result;
  449. }
  450. result = Math.floor(result + EPS);
  451. if (result === 0) {
  452. if (deviceDPR === 1 || !isIOS) {
  453. result = 1;
  454. } else {
  455. result = 0.5;
  456. }
  457. }
  458. return number < 0 ? -result : result;
  459. }
  460. var LOCALE_ZH_HANS = 'zh-Hans';
  461. var LOCALE_ZH_HANT = 'zh-Hant';
  462. var LOCALE_EN = 'en';
  463. var LOCALE_FR = 'fr';
  464. var LOCALE_ES = 'es';
  465. var messages = {};
  466. var locale;
  467. {
  468. locale = normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  469. }
  470. function initI18nMessages() {
  471. if (!isEnableLocale()) {
  472. return;
  473. }
  474. var localeKeys = Object.keys(__uniConfig.locales);
  475. if (localeKeys.length) {
  476. localeKeys.forEach(function (locale) {
  477. var curMessages = messages[locale];
  478. var userMessages = __uniConfig.locales[locale];
  479. if (curMessages) {
  480. Object.assign(curMessages, userMessages);
  481. } else {
  482. messages[locale] = userMessages;
  483. }
  484. });
  485. }
  486. }
  487. initI18nMessages();
  488. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  489. var t = i18n.t;
  490. var i18nMixin = i18n.mixin = {
  491. beforeCreate: function beforeCreate() {
  492. var _this = this;
  493. var unwatch = i18n.i18n.watchLocale(function () {
  494. _this.$forceUpdate();
  495. });
  496. this.$once('hook:beforeDestroy', function () {
  497. unwatch();
  498. });
  499. },
  500. methods: {
  501. $$t: function $$t(key, values) {
  502. return t(key, values);
  503. }
  504. }
  505. };
  506. var setLocale = i18n.setLocale;
  507. var getLocale = i18n.getLocale;
  508. function initAppLocale(Vue, appVm, locale) {
  509. var state = Vue.observable({
  510. locale: locale || i18n.getLocale()
  511. });
  512. var localeWatchers = [];
  513. appVm.$watchLocale = function (fn) {
  514. localeWatchers.push(fn);
  515. };
  516. Object.defineProperty(appVm, '$locale', {
  517. get: function get() {
  518. return state.locale;
  519. },
  520. set: function set(v) {
  521. state.locale = v;
  522. localeWatchers.forEach(function (watch) {
  523. return watch(v);
  524. });
  525. }
  526. });
  527. }
  528. function isEnableLocale() {
  529. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  530. }
  531. function include(str, parts) {
  532. return !!parts.find(function (part) {
  533. return str.indexOf(part) !== -1;
  534. });
  535. }
  536. function startsWith(str, parts) {
  537. return parts.find(function (part) {
  538. return str.indexOf(part) === 0;
  539. });
  540. }
  541. function normalizeLocale(locale, messages) {
  542. if (!locale) {
  543. return;
  544. }
  545. locale = locale.trim().replace(/_/g, '-');
  546. if (messages && messages[locale]) {
  547. return locale;
  548. }
  549. locale = locale.toLowerCase();
  550. if (locale === 'chinese') {
  551. // 支付宝
  552. return LOCALE_ZH_HANS;
  553. }
  554. if (locale.indexOf('zh') === 0) {
  555. if (locale.indexOf('-hans') > -1) {
  556. return LOCALE_ZH_HANS;
  557. }
  558. if (locale.indexOf('-hant') > -1) {
  559. return LOCALE_ZH_HANT;
  560. }
  561. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  562. return LOCALE_ZH_HANT;
  563. }
  564. return LOCALE_ZH_HANS;
  565. }
  566. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  567. if (lang) {
  568. return lang;
  569. }
  570. }
  571. // export function initI18n() {
  572. // const localeKeys = Object.keys(__uniConfig.locales || {})
  573. // if (localeKeys.length) {
  574. // localeKeys.forEach((locale) =>
  575. // i18n.add(locale, __uniConfig.locales[locale])
  576. // )
  577. // }
  578. // }
  579. function getLocale$1() {
  580. // 优先使用 $locale
  581. if (isFn(getApp)) {
  582. var app = getApp({
  583. allowDefault: true
  584. });
  585. if (app && app.$vm) {
  586. return app.$vm.$locale;
  587. }
  588. }
  589. return normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  590. }
  591. function setLocale$1(locale) {
  592. var app = isFn(getApp) ? getApp() : false;
  593. if (!app) {
  594. return false;
  595. }
  596. var oldLocale = app.$vm.$locale;
  597. if (oldLocale !== locale) {
  598. app.$vm.$locale = locale;
  599. onLocaleChangeCallbacks.forEach(function (fn) {
  600. return fn({
  601. locale: locale
  602. });
  603. });
  604. return true;
  605. }
  606. return false;
  607. }
  608. var onLocaleChangeCallbacks = [];
  609. function onLocaleChange(fn) {
  610. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  611. onLocaleChangeCallbacks.push(fn);
  612. }
  613. }
  614. if (typeof global !== 'undefined') {
  615. global.getLocale = getLocale$1;
  616. }
  617. var interceptors = {
  618. promiseInterceptor: promiseInterceptor
  619. };
  620. var baseApi = /*#__PURE__*/Object.freeze({
  621. __proto__: null,
  622. upx2px: upx2px,
  623. rpx2px: upx2px,
  624. getLocale: getLocale$1,
  625. setLocale: setLocale$1,
  626. onLocaleChange: onLocaleChange,
  627. addInterceptor: addInterceptor,
  628. removeInterceptor: removeInterceptor,
  629. interceptors: interceptors
  630. });
  631. function findExistsPageIndex(url) {
  632. var pages = getCurrentPages();
  633. var len = pages.length;
  634. while (len--) {
  635. var page = pages[len];
  636. if (page.$page && page.$page.fullPath === url) {
  637. return len;
  638. }
  639. }
  640. return -1;
  641. }
  642. var redirectTo = {
  643. name: function name(fromArgs) {
  644. if (fromArgs.exists === 'back' && fromArgs.delta) {
  645. return 'navigateBack';
  646. }
  647. return 'redirectTo';
  648. },
  649. args: function args(fromArgs) {
  650. if (fromArgs.exists === 'back' && fromArgs.url) {
  651. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  652. if (existsPageIndex !== -1) {
  653. var delta = getCurrentPages().length - 1 - existsPageIndex;
  654. if (delta > 0) {
  655. fromArgs.delta = delta;
  656. }
  657. }
  658. }
  659. }
  660. };
  661. var previewImage = {
  662. args: function args(fromArgs) {
  663. var currentIndex = parseInt(fromArgs.current);
  664. if (isNaN(currentIndex)) {
  665. return;
  666. }
  667. var urls = fromArgs.urls;
  668. if (!Array.isArray(urls)) {
  669. return;
  670. }
  671. var len = urls.length;
  672. if (!len) {
  673. return;
  674. }
  675. if (currentIndex < 0) {
  676. currentIndex = 0;
  677. } else if (currentIndex >= len) {
  678. currentIndex = len - 1;
  679. }
  680. if (currentIndex > 0) {
  681. fromArgs.current = urls[currentIndex];
  682. fromArgs.urls = urls.filter(function (item, index) {
  683. return index < currentIndex ? item !== urls[currentIndex] : true;
  684. });
  685. } else {
  686. fromArgs.current = urls[0];
  687. }
  688. return {
  689. indicator: false,
  690. loop: false
  691. };
  692. }
  693. };
  694. var UUID_KEY = '__DC_STAT_UUID';
  695. var deviceId;
  696. function useDeviceId(result) {
  697. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  698. if (!deviceId) {
  699. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  700. wx.setStorage({
  701. key: UUID_KEY,
  702. data: deviceId
  703. });
  704. }
  705. result.deviceId = deviceId;
  706. }
  707. function addSafeAreaInsets(result) {
  708. if (result.safeArea) {
  709. var safeArea = result.safeArea;
  710. result.safeAreaInsets = {
  711. top: safeArea.top,
  712. left: safeArea.left,
  713. right: result.windowWidth - safeArea.right,
  714. bottom: result.screenHeight - safeArea.bottom
  715. };
  716. }
  717. }
  718. function populateParameters(result) {
  719. var _result$brand = result.brand,
  720. brand = _result$brand === void 0 ? '' : _result$brand,
  721. _result$model = result.model,
  722. model = _result$model === void 0 ? '' : _result$model,
  723. _result$system = result.system,
  724. system = _result$system === void 0 ? '' : _result$system,
  725. _result$language = result.language,
  726. language = _result$language === void 0 ? '' : _result$language,
  727. theme = result.theme,
  728. version = result.version,
  729. platform = result.platform,
  730. fontSizeSetting = result.fontSizeSetting,
  731. SDKVersion = result.SDKVersion,
  732. pixelRatio = result.pixelRatio,
  733. deviceOrientation = result.deviceOrientation;
  734. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  735. var extraParam = {};
  736. // osName osVersion
  737. var osName = '';
  738. var osVersion = '';
  739. {
  740. osName = system.split(' ')[0] || '';
  741. osVersion = system.split(' ')[1] || '';
  742. }
  743. var hostVersion = version;
  744. // deviceType
  745. var deviceType = getGetDeviceType(result, model);
  746. // deviceModel
  747. var deviceBrand = getDeviceBrand(brand);
  748. // hostName
  749. var _hostName = getHostName(result);
  750. // deviceOrientation
  751. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  752. // devicePixelRatio
  753. var _devicePixelRatio = pixelRatio;
  754. // SDKVersion
  755. var _SDKVersion = SDKVersion;
  756. // hostLanguage
  757. var hostLanguage = (language || '').replace(/_/g, '-');
  758. // wx.getAccountInfoSync
  759. var parameters = {
  760. appId: "__UNI__344920F",
  761. appName: "uniapp-template",
  762. appVersion: "1.0.0",
  763. appVersionCode: "100",
  764. appLanguage: getAppLanguage(hostLanguage),
  765. uniCompileVersion: "4.45",
  766. uniCompilerVersion: "4.45",
  767. uniRuntimeVersion: "4.45",
  768. uniPlatform: undefined || "mp-weixin",
  769. deviceBrand: deviceBrand,
  770. deviceModel: model,
  771. deviceType: deviceType,
  772. devicePixelRatio: _devicePixelRatio,
  773. deviceOrientation: _deviceOrientation,
  774. osName: osName.toLocaleLowerCase(),
  775. osVersion: osVersion,
  776. hostTheme: theme,
  777. hostVersion: hostVersion,
  778. hostLanguage: hostLanguage,
  779. hostName: _hostName,
  780. hostSDKVersion: _SDKVersion,
  781. hostFontSizeSetting: fontSizeSetting,
  782. windowTop: 0,
  783. windowBottom: 0,
  784. // TODO
  785. osLanguage: undefined,
  786. osTheme: undefined,
  787. ua: undefined,
  788. hostPackageName: undefined,
  789. browserName: undefined,
  790. browserVersion: undefined,
  791. isUniAppX: false
  792. };
  793. Object.assign(result, parameters, extraParam);
  794. }
  795. function getGetDeviceType(result, model) {
  796. var deviceType = result.deviceType || 'phone';
  797. {
  798. var deviceTypeMaps = {
  799. ipad: 'pad',
  800. windows: 'pc',
  801. mac: 'pc'
  802. };
  803. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  804. var _model = model.toLocaleLowerCase();
  805. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  806. var _m = deviceTypeMapsKeys[index];
  807. if (_model.indexOf(_m) !== -1) {
  808. deviceType = deviceTypeMaps[_m];
  809. break;
  810. }
  811. }
  812. }
  813. return deviceType;
  814. }
  815. function getDeviceBrand(brand) {
  816. var deviceBrand = brand;
  817. if (deviceBrand) {
  818. deviceBrand = brand.toLocaleLowerCase();
  819. }
  820. return deviceBrand;
  821. }
  822. function getAppLanguage(defaultLanguage) {
  823. return getLocale$1 ? getLocale$1() : defaultLanguage;
  824. }
  825. function getHostName(result) {
  826. var _platform = 'WeChat';
  827. var _hostName = result.hostName || _platform; // mp-jd
  828. {
  829. if (result.environment) {
  830. _hostName = result.environment;
  831. } else if (result.host && result.host.env) {
  832. _hostName = result.host.env;
  833. }
  834. }
  835. return _hostName;
  836. }
  837. var getSystemInfo = {
  838. returnValue: function returnValue(result) {
  839. useDeviceId(result);
  840. addSafeAreaInsets(result);
  841. populateParameters(result);
  842. }
  843. };
  844. var showActionSheet = {
  845. args: function args(fromArgs) {
  846. if ((0, _typeof2.default)(fromArgs) === 'object') {
  847. fromArgs.alertText = fromArgs.title;
  848. }
  849. }
  850. };
  851. var getAppBaseInfo = {
  852. returnValue: function returnValue(result) {
  853. var _result = result,
  854. version = _result.version,
  855. language = _result.language,
  856. SDKVersion = _result.SDKVersion,
  857. theme = _result.theme;
  858. var _hostName = getHostName(result);
  859. var hostLanguage = (language || '').replace('_', '-');
  860. result = sortObject(Object.assign(result, {
  861. appId: "__UNI__344920F",
  862. appName: "uniapp-template",
  863. appVersion: "1.0.0",
  864. appVersionCode: "100",
  865. appLanguage: getAppLanguage(hostLanguage),
  866. hostVersion: version,
  867. hostLanguage: hostLanguage,
  868. hostName: _hostName,
  869. hostSDKVersion: SDKVersion,
  870. hostTheme: theme,
  871. isUniAppX: false,
  872. uniPlatform: undefined || "mp-weixin",
  873. uniCompileVersion: "4.45",
  874. uniCompilerVersion: "4.45",
  875. uniRuntimeVersion: "4.45"
  876. }));
  877. }
  878. };
  879. var getDeviceInfo = {
  880. returnValue: function returnValue(result) {
  881. var _result2 = result,
  882. brand = _result2.brand,
  883. model = _result2.model;
  884. var deviceType = getGetDeviceType(result, model);
  885. var deviceBrand = getDeviceBrand(brand);
  886. useDeviceId(result);
  887. result = sortObject(Object.assign(result, {
  888. deviceType: deviceType,
  889. deviceBrand: deviceBrand,
  890. deviceModel: model
  891. }));
  892. }
  893. };
  894. var getWindowInfo = {
  895. returnValue: function returnValue(result) {
  896. addSafeAreaInsets(result);
  897. result = sortObject(Object.assign(result, {
  898. windowTop: 0,
  899. windowBottom: 0
  900. }));
  901. }
  902. };
  903. var getAppAuthorizeSetting = {
  904. returnValue: function returnValue(result) {
  905. var locationReducedAccuracy = result.locationReducedAccuracy;
  906. result.locationAccuracy = 'unsupported';
  907. if (locationReducedAccuracy === true) {
  908. result.locationAccuracy = 'reduced';
  909. } else if (locationReducedAccuracy === false) {
  910. result.locationAccuracy = 'full';
  911. }
  912. }
  913. };
  914. // import navigateTo from 'uni-helpers/navigate-to'
  915. var compressImage = {
  916. args: function args(fromArgs) {
  917. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  918. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  919. fromArgs.compressHeight = fromArgs.compressedHeight;
  920. }
  921. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  922. fromArgs.compressWidth = fromArgs.compressedWidth;
  923. }
  924. }
  925. };
  926. var protocols = {
  927. redirectTo: redirectTo,
  928. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  929. previewImage: previewImage,
  930. getSystemInfo: getSystemInfo,
  931. getSystemInfoSync: getSystemInfo,
  932. showActionSheet: showActionSheet,
  933. getAppBaseInfo: getAppBaseInfo,
  934. getDeviceInfo: getDeviceInfo,
  935. getWindowInfo: getWindowInfo,
  936. getAppAuthorizeSetting: getAppAuthorizeSetting,
  937. compressImage: compressImage
  938. };
  939. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  940. var canIUses = [];
  941. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  942. function processCallback(methodName, method, returnValue) {
  943. return function (res) {
  944. return method(processReturnValue(methodName, res, returnValue));
  945. };
  946. }
  947. function processArgs(methodName, fromArgs) {
  948. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  949. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  950. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  951. if (isPlainObject(fromArgs)) {
  952. // 一般 api 的参数解析
  953. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  954. if (isFn(argsOption)) {
  955. argsOption = argsOption(fromArgs, toArgs) || {};
  956. }
  957. for (var key in fromArgs) {
  958. if (hasOwn(argsOption, key)) {
  959. var keyOption = argsOption[key];
  960. if (isFn(keyOption)) {
  961. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  962. }
  963. if (!keyOption) {
  964. // 不支持的参数
  965. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  966. } else if (isStr(keyOption)) {
  967. // 重写参数 key
  968. toArgs[keyOption] = fromArgs[key];
  969. } else if (isPlainObject(keyOption)) {
  970. // {name:newName,value:value}可重新指定参数 key:value
  971. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  972. }
  973. } else if (CALLBACKS.indexOf(key) !== -1) {
  974. if (isFn(fromArgs[key])) {
  975. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  976. }
  977. } else {
  978. if (!keepFromArgs) {
  979. toArgs[key] = fromArgs[key];
  980. }
  981. }
  982. }
  983. return toArgs;
  984. } else if (isFn(fromArgs)) {
  985. fromArgs = processCallback(methodName, fromArgs, returnValue);
  986. }
  987. return fromArgs;
  988. }
  989. function processReturnValue(methodName, res, returnValue) {
  990. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  991. if (isFn(protocols.returnValue)) {
  992. // 处理通用 returnValue
  993. res = protocols.returnValue(methodName, res);
  994. }
  995. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  996. }
  997. function wrapper(methodName, method) {
  998. if (hasOwn(protocols, methodName)) {
  999. var protocol = protocols[methodName];
  1000. if (!protocol) {
  1001. // 暂不支持的 api
  1002. return function () {
  1003. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1004. };
  1005. }
  1006. return function (arg1, arg2) {
  1007. // 目前 api 最多两个参数
  1008. var options = protocol;
  1009. if (isFn(protocol)) {
  1010. options = protocol(arg1);
  1011. }
  1012. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1013. var args = [arg1];
  1014. if (typeof arg2 !== 'undefined') {
  1015. args.push(arg2);
  1016. }
  1017. if (isFn(options.name)) {
  1018. methodName = options.name(arg1);
  1019. } else if (isStr(options.name)) {
  1020. methodName = options.name;
  1021. }
  1022. var returnValue = wx[methodName].apply(wx, args);
  1023. if (isSyncApi(methodName)) {
  1024. // 同步 api
  1025. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1026. }
  1027. return returnValue;
  1028. };
  1029. }
  1030. return method;
  1031. }
  1032. var todoApis = Object.create(null);
  1033. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1034. function createTodoApi(name) {
  1035. return function todoApi(_ref) {
  1036. var fail = _ref.fail,
  1037. complete = _ref.complete;
  1038. var res = {
  1039. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1040. };
  1041. isFn(fail) && fail(res);
  1042. isFn(complete) && complete(res);
  1043. };
  1044. }
  1045. TODOS.forEach(function (name) {
  1046. todoApis[name] = createTodoApi(name);
  1047. });
  1048. var providers = {
  1049. oauth: ['weixin'],
  1050. share: ['weixin'],
  1051. payment: ['wxpay'],
  1052. push: ['weixin']
  1053. };
  1054. function getProvider(_ref2) {
  1055. var service = _ref2.service,
  1056. success = _ref2.success,
  1057. fail = _ref2.fail,
  1058. complete = _ref2.complete;
  1059. var res = false;
  1060. if (providers[service]) {
  1061. res = {
  1062. errMsg: 'getProvider:ok',
  1063. service: service,
  1064. provider: providers[service]
  1065. };
  1066. isFn(success) && success(res);
  1067. } else {
  1068. res = {
  1069. errMsg: 'getProvider:fail service not found'
  1070. };
  1071. isFn(fail) && fail(res);
  1072. }
  1073. isFn(complete) && complete(res);
  1074. }
  1075. var extraApi = /*#__PURE__*/Object.freeze({
  1076. __proto__: null,
  1077. getProvider: getProvider
  1078. });
  1079. var getEmitter = function () {
  1080. var Emitter;
  1081. return function getUniEmitter() {
  1082. if (!Emitter) {
  1083. Emitter = new _vue.default();
  1084. }
  1085. return Emitter;
  1086. };
  1087. }();
  1088. function apply(ctx, method, args) {
  1089. return ctx[method].apply(ctx, args);
  1090. }
  1091. function $on() {
  1092. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1093. }
  1094. function $off() {
  1095. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1096. }
  1097. function $once() {
  1098. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1099. }
  1100. function $emit() {
  1101. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1102. }
  1103. var eventApi = /*#__PURE__*/Object.freeze({
  1104. __proto__: null,
  1105. $on: $on,
  1106. $off: $off,
  1107. $once: $once,
  1108. $emit: $emit
  1109. });
  1110. /**
  1111. * 框架内 try-catch
  1112. */
  1113. /**
  1114. * 开发者 try-catch
  1115. */
  1116. function tryCatch(fn) {
  1117. return function () {
  1118. try {
  1119. return fn.apply(fn, arguments);
  1120. } catch (e) {
  1121. // TODO
  1122. console.error(e);
  1123. }
  1124. };
  1125. }
  1126. function getApiCallbacks(params) {
  1127. var apiCallbacks = {};
  1128. for (var name in params) {
  1129. var param = params[name];
  1130. if (isFn(param)) {
  1131. apiCallbacks[name] = tryCatch(param);
  1132. delete params[name];
  1133. }
  1134. }
  1135. return apiCallbacks;
  1136. }
  1137. var cid;
  1138. var cidErrMsg;
  1139. var enabled;
  1140. function normalizePushMessage(message) {
  1141. try {
  1142. return JSON.parse(message);
  1143. } catch (e) {}
  1144. return message;
  1145. }
  1146. function invokePushCallback(args) {
  1147. if (args.type === 'enabled') {
  1148. enabled = true;
  1149. } else if (args.type === 'clientId') {
  1150. cid = args.cid;
  1151. cidErrMsg = args.errMsg;
  1152. invokeGetPushCidCallbacks(cid, args.errMsg);
  1153. } else if (args.type === 'pushMsg') {
  1154. var message = {
  1155. type: 'receive',
  1156. data: normalizePushMessage(args.message)
  1157. };
  1158. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1159. var callback = onPushMessageCallbacks[i];
  1160. callback(message);
  1161. // 该消息已被阻止
  1162. if (message.stopped) {
  1163. break;
  1164. }
  1165. }
  1166. } else if (args.type === 'click') {
  1167. onPushMessageCallbacks.forEach(function (callback) {
  1168. callback({
  1169. type: 'click',
  1170. data: normalizePushMessage(args.message)
  1171. });
  1172. });
  1173. }
  1174. }
  1175. var getPushCidCallbacks = [];
  1176. function invokeGetPushCidCallbacks(cid, errMsg) {
  1177. getPushCidCallbacks.forEach(function (callback) {
  1178. callback(cid, errMsg);
  1179. });
  1180. getPushCidCallbacks.length = 0;
  1181. }
  1182. function getPushClientId(args) {
  1183. if (!isPlainObject(args)) {
  1184. args = {};
  1185. }
  1186. var _getApiCallbacks = getApiCallbacks(args),
  1187. success = _getApiCallbacks.success,
  1188. fail = _getApiCallbacks.fail,
  1189. complete = _getApiCallbacks.complete;
  1190. var hasSuccess = isFn(success);
  1191. var hasFail = isFn(fail);
  1192. var hasComplete = isFn(complete);
  1193. Promise.resolve().then(function () {
  1194. if (typeof enabled === 'undefined') {
  1195. enabled = false;
  1196. cid = '';
  1197. cidErrMsg = 'uniPush is not enabled';
  1198. }
  1199. getPushCidCallbacks.push(function (cid, errMsg) {
  1200. var res;
  1201. if (cid) {
  1202. res = {
  1203. errMsg: 'getPushClientId:ok',
  1204. cid: cid
  1205. };
  1206. hasSuccess && success(res);
  1207. } else {
  1208. res = {
  1209. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1210. };
  1211. hasFail && fail(res);
  1212. }
  1213. hasComplete && complete(res);
  1214. });
  1215. if (typeof cid !== 'undefined') {
  1216. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1217. }
  1218. });
  1219. }
  1220. var onPushMessageCallbacks = [];
  1221. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1222. var onPushMessage = function onPushMessage(fn) {
  1223. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1224. onPushMessageCallbacks.push(fn);
  1225. }
  1226. };
  1227. var offPushMessage = function offPushMessage(fn) {
  1228. if (!fn) {
  1229. onPushMessageCallbacks.length = 0;
  1230. } else {
  1231. var index = onPushMessageCallbacks.indexOf(fn);
  1232. if (index > -1) {
  1233. onPushMessageCallbacks.splice(index, 1);
  1234. }
  1235. }
  1236. };
  1237. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1238. if (!baseInfo) {
  1239. baseInfo = wx.getSystemInfoSync();
  1240. }
  1241. var host = baseInfo ? baseInfo.host : null;
  1242. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1243. var api = /*#__PURE__*/Object.freeze({
  1244. __proto__: null,
  1245. shareVideoMessage: shareVideoMessage,
  1246. getPushClientId: getPushClientId,
  1247. onPushMessage: onPushMessage,
  1248. offPushMessage: offPushMessage,
  1249. invokePushCallback: invokePushCallback
  1250. });
  1251. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1252. function findVmByVueId(vm, vuePid) {
  1253. var $children = vm.$children;
  1254. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1255. for (var i = $children.length - 1; i >= 0; i--) {
  1256. var childVm = $children[i];
  1257. if (childVm.$scope._$vueId === vuePid) {
  1258. return childVm;
  1259. }
  1260. }
  1261. // 反向递归查找
  1262. var parentVm;
  1263. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1264. parentVm = findVmByVueId($children[_i], vuePid);
  1265. if (parentVm) {
  1266. return parentVm;
  1267. }
  1268. }
  1269. }
  1270. function initBehavior(options) {
  1271. return Behavior(options);
  1272. }
  1273. function isPage() {
  1274. return !!this.route;
  1275. }
  1276. function initRelation(detail) {
  1277. this.triggerEvent('__l', detail);
  1278. }
  1279. function selectAllComponents(mpInstance, selector, $refs) {
  1280. var components = mpInstance.selectAllComponents(selector) || [];
  1281. components.forEach(function (component) {
  1282. var ref = component.dataset.ref;
  1283. $refs[ref] = component.$vm || toSkip(component);
  1284. {
  1285. if (component.dataset.vueGeneric === 'scoped') {
  1286. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1287. selectAllComponents(scopedComponent, selector, $refs);
  1288. });
  1289. }
  1290. }
  1291. });
  1292. }
  1293. function syncRefs(refs, newRefs) {
  1294. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1295. var newKeys = Object.keys(newRefs);
  1296. newKeys.forEach(function (key) {
  1297. var oldValue = refs[key];
  1298. var newValue = newRefs[key];
  1299. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1300. return oldValue.includes(value);
  1301. })) {
  1302. return;
  1303. }
  1304. refs[key] = newValue;
  1305. oldKeys.delete(key);
  1306. });
  1307. oldKeys.forEach(function (key) {
  1308. delete refs[key];
  1309. });
  1310. return refs;
  1311. }
  1312. function initRefs(vm) {
  1313. var mpInstance = vm.$scope;
  1314. var refs = {};
  1315. Object.defineProperty(vm, '$refs', {
  1316. get: function get() {
  1317. var $refs = {};
  1318. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1319. // TODO 暂不考虑 for 中的 scoped
  1320. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1321. forComponents.forEach(function (component) {
  1322. var ref = component.dataset.ref;
  1323. if (!$refs[ref]) {
  1324. $refs[ref] = [];
  1325. }
  1326. $refs[ref].push(component.$vm || toSkip(component));
  1327. });
  1328. return syncRefs(refs, $refs);
  1329. }
  1330. });
  1331. }
  1332. function handleLink(event) {
  1333. var _ref3 = event.detail || event.value,
  1334. vuePid = _ref3.vuePid,
  1335. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1336. var parentVm;
  1337. if (vuePid) {
  1338. parentVm = findVmByVueId(this.$vm, vuePid);
  1339. }
  1340. if (!parentVm) {
  1341. parentVm = this.$vm;
  1342. }
  1343. vueOptions.parent = parentVm;
  1344. }
  1345. function markMPComponent(component) {
  1346. // 在 Vue 中标记为小程序组件
  1347. var IS_MP = '__v_isMPComponent';
  1348. Object.defineProperty(component, IS_MP, {
  1349. configurable: true,
  1350. enumerable: false,
  1351. value: true
  1352. });
  1353. return component;
  1354. }
  1355. function toSkip(obj) {
  1356. var OB = '__ob__';
  1357. var SKIP = '__v_skip';
  1358. if (isObject(obj) && Object.isExtensible(obj)) {
  1359. // 避免被 @vue/composition-api 观测
  1360. Object.defineProperty(obj, OB, {
  1361. configurable: true,
  1362. enumerable: false,
  1363. value: (0, _defineProperty2.default)({}, SKIP, true)
  1364. });
  1365. }
  1366. return obj;
  1367. }
  1368. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1369. function initWorkletMethods(mpMethods, vueMethods) {
  1370. if (vueMethods) {
  1371. Object.keys(vueMethods).forEach(function (name) {
  1372. var matches = name.match(WORKLET_RE);
  1373. if (matches) {
  1374. var workletName = matches[1];
  1375. mpMethods[name] = vueMethods[name];
  1376. mpMethods[workletName] = vueMethods[workletName];
  1377. }
  1378. });
  1379. }
  1380. }
  1381. var MPPage = Page;
  1382. var MPComponent = Component;
  1383. var customizeRE = /:/g;
  1384. var customize = cached(function (str) {
  1385. return camelize(str.replace(customizeRE, '-'));
  1386. });
  1387. function initTriggerEvent(mpInstance) {
  1388. var oldTriggerEvent = mpInstance.triggerEvent;
  1389. var newTriggerEvent = function newTriggerEvent(event) {
  1390. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1391. args[_key3 - 1] = arguments[_key3];
  1392. }
  1393. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1394. if (this.$vm || this.dataset && this.dataset.comType) {
  1395. event = customize(event);
  1396. } else {
  1397. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1398. var newEvent = customize(event);
  1399. if (newEvent !== event) {
  1400. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1401. }
  1402. }
  1403. return oldTriggerEvent.apply(this, [event].concat(args));
  1404. };
  1405. try {
  1406. // 京东小程序 triggerEvent 为只读
  1407. mpInstance.triggerEvent = newTriggerEvent;
  1408. } catch (error) {
  1409. mpInstance._triggerEvent = newTriggerEvent;
  1410. }
  1411. }
  1412. function initHook(name, options, isComponent) {
  1413. var oldHook = options[name];
  1414. options[name] = function () {
  1415. markMPComponent(this);
  1416. initTriggerEvent(this);
  1417. if (oldHook) {
  1418. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1419. args[_key4] = arguments[_key4];
  1420. }
  1421. return oldHook.apply(this, args);
  1422. }
  1423. };
  1424. }
  1425. if (!MPPage.__$wrappered) {
  1426. MPPage.__$wrappered = true;
  1427. Page = function Page() {
  1428. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1429. initHook('onLoad', options);
  1430. return MPPage(options);
  1431. };
  1432. Page.after = MPPage.after;
  1433. Component = function Component() {
  1434. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1435. initHook('created', options);
  1436. return MPComponent(options);
  1437. };
  1438. }
  1439. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1440. function initMocks(vm, mocks) {
  1441. var mpInstance = vm.$mp[vm.mpType];
  1442. mocks.forEach(function (mock) {
  1443. if (hasOwn(mpInstance, mock)) {
  1444. vm[mock] = mpInstance[mock];
  1445. }
  1446. });
  1447. }
  1448. function hasHook(hook, vueOptions) {
  1449. if (!vueOptions) {
  1450. return true;
  1451. }
  1452. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1453. return true;
  1454. }
  1455. vueOptions = vueOptions.default || vueOptions;
  1456. if (isFn(vueOptions)) {
  1457. if (isFn(vueOptions.extendOptions[hook])) {
  1458. return true;
  1459. }
  1460. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1461. return true;
  1462. }
  1463. return false;
  1464. }
  1465. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1466. return true;
  1467. }
  1468. var mixins = vueOptions.mixins;
  1469. if (Array.isArray(mixins)) {
  1470. return !!mixins.find(function (mixin) {
  1471. return hasHook(hook, mixin);
  1472. });
  1473. }
  1474. }
  1475. function initHooks(mpOptions, hooks, vueOptions) {
  1476. hooks.forEach(function (hook) {
  1477. if (hasHook(hook, vueOptions)) {
  1478. mpOptions[hook] = function (args) {
  1479. return this.$vm && this.$vm.__call_hook(hook, args);
  1480. };
  1481. }
  1482. });
  1483. }
  1484. function initUnknownHooks(mpOptions, vueOptions) {
  1485. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1486. findHooks(vueOptions).forEach(function (hook) {
  1487. return initHook$1(mpOptions, hook, excludes);
  1488. });
  1489. }
  1490. function findHooks(vueOptions) {
  1491. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1492. if (vueOptions) {
  1493. Object.keys(vueOptions).forEach(function (name) {
  1494. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1495. hooks.push(name);
  1496. }
  1497. });
  1498. }
  1499. return hooks;
  1500. }
  1501. function initHook$1(mpOptions, hook, excludes) {
  1502. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1503. mpOptions[hook] = function (args) {
  1504. return this.$vm && this.$vm.__call_hook(hook, args);
  1505. };
  1506. }
  1507. }
  1508. function initVueComponent(Vue, vueOptions) {
  1509. vueOptions = vueOptions.default || vueOptions;
  1510. var VueComponent;
  1511. if (isFn(vueOptions)) {
  1512. VueComponent = vueOptions;
  1513. } else {
  1514. VueComponent = Vue.extend(vueOptions);
  1515. }
  1516. vueOptions = VueComponent.options;
  1517. return [VueComponent, vueOptions];
  1518. }
  1519. function initSlots(vm, vueSlots) {
  1520. if (Array.isArray(vueSlots) && vueSlots.length) {
  1521. var $slots = Object.create(null);
  1522. vueSlots.forEach(function (slotName) {
  1523. $slots[slotName] = true;
  1524. });
  1525. vm.$scopedSlots = vm.$slots = $slots;
  1526. }
  1527. }
  1528. function initVueIds(vueIds, mpInstance) {
  1529. vueIds = (vueIds || '').split(',');
  1530. var len = vueIds.length;
  1531. if (len === 1) {
  1532. mpInstance._$vueId = vueIds[0];
  1533. } else if (len === 2) {
  1534. mpInstance._$vueId = vueIds[0];
  1535. mpInstance._$vuePid = vueIds[1];
  1536. }
  1537. }
  1538. function initData(vueOptions, context) {
  1539. var data = vueOptions.data || {};
  1540. var methods = vueOptions.methods || {};
  1541. if (typeof data === 'function') {
  1542. try {
  1543. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1544. } catch (e) {
  1545. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1546. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1547. }
  1548. }
  1549. } else {
  1550. try {
  1551. // 对 data 格式化
  1552. data = JSON.parse(JSON.stringify(data));
  1553. } catch (e) {}
  1554. }
  1555. if (!isPlainObject(data)) {
  1556. data = {};
  1557. }
  1558. Object.keys(methods).forEach(function (methodName) {
  1559. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1560. data[methodName] = methods[methodName];
  1561. }
  1562. });
  1563. return data;
  1564. }
  1565. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1566. function createObserver(name) {
  1567. return function observer(newVal, oldVal) {
  1568. if (this.$vm) {
  1569. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1570. }
  1571. };
  1572. }
  1573. function initBehaviors(vueOptions, initBehavior) {
  1574. var vueBehaviors = vueOptions.behaviors;
  1575. var vueExtends = vueOptions.extends;
  1576. var vueMixins = vueOptions.mixins;
  1577. var vueProps = vueOptions.props;
  1578. if (!vueProps) {
  1579. vueOptions.props = vueProps = [];
  1580. }
  1581. var behaviors = [];
  1582. if (Array.isArray(vueBehaviors)) {
  1583. vueBehaviors.forEach(function (behavior) {
  1584. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1585. if (behavior === 'uni://form-field') {
  1586. if (Array.isArray(vueProps)) {
  1587. vueProps.push('name');
  1588. vueProps.push('value');
  1589. } else {
  1590. vueProps.name = {
  1591. type: String,
  1592. default: ''
  1593. };
  1594. vueProps.value = {
  1595. type: [String, Number, Boolean, Array, Object, Date],
  1596. default: ''
  1597. };
  1598. }
  1599. }
  1600. });
  1601. }
  1602. if (isPlainObject(vueExtends) && vueExtends.props) {
  1603. behaviors.push(initBehavior({
  1604. properties: initProperties(vueExtends.props, true)
  1605. }));
  1606. }
  1607. if (Array.isArray(vueMixins)) {
  1608. vueMixins.forEach(function (vueMixin) {
  1609. if (isPlainObject(vueMixin) && vueMixin.props) {
  1610. behaviors.push(initBehavior({
  1611. properties: initProperties(vueMixin.props, true)
  1612. }));
  1613. }
  1614. });
  1615. }
  1616. return behaviors;
  1617. }
  1618. function parsePropType(key, type, defaultValue, file) {
  1619. // [String]=>String
  1620. if (Array.isArray(type) && type.length === 1) {
  1621. return type[0];
  1622. }
  1623. return type;
  1624. }
  1625. function initProperties(props) {
  1626. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1627. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1628. var options = arguments.length > 3 ? arguments[3] : undefined;
  1629. var properties = {};
  1630. if (!isBehavior) {
  1631. properties.vueId = {
  1632. type: String,
  1633. value: ''
  1634. };
  1635. {
  1636. if (options.virtualHost) {
  1637. properties.virtualHostStyle = {
  1638. type: null,
  1639. value: ''
  1640. };
  1641. properties.virtualHostClass = {
  1642. type: null,
  1643. value: ''
  1644. };
  1645. }
  1646. }
  1647. // scopedSlotsCompiler auto
  1648. properties.scopedSlotsCompiler = {
  1649. type: String,
  1650. value: ''
  1651. };
  1652. properties.vueSlots = {
  1653. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1654. type: null,
  1655. value: [],
  1656. observer: function observer(newVal, oldVal) {
  1657. var $slots = Object.create(null);
  1658. newVal.forEach(function (slotName) {
  1659. $slots[slotName] = true;
  1660. });
  1661. this.setData({
  1662. $slots: $slots
  1663. });
  1664. }
  1665. };
  1666. }
  1667. if (Array.isArray(props)) {
  1668. // ['title']
  1669. props.forEach(function (key) {
  1670. properties[key] = {
  1671. type: null,
  1672. observer: createObserver(key)
  1673. };
  1674. });
  1675. } else if (isPlainObject(props)) {
  1676. // {title:{type:String,default:''},content:String}
  1677. Object.keys(props).forEach(function (key) {
  1678. var opts = props[key];
  1679. if (isPlainObject(opts)) {
  1680. // title:{type:String,default:''}
  1681. var value = opts.default;
  1682. if (isFn(value)) {
  1683. value = value();
  1684. }
  1685. opts.type = parsePropType(key, opts.type);
  1686. properties[key] = {
  1687. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1688. value: value,
  1689. observer: createObserver(key)
  1690. };
  1691. } else {
  1692. // content:String
  1693. var type = parsePropType(key, opts);
  1694. properties[key] = {
  1695. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1696. observer: createObserver(key)
  1697. };
  1698. }
  1699. });
  1700. }
  1701. return properties;
  1702. }
  1703. function wrapper$1(event) {
  1704. // TODO 又得兼容 mpvue 的 mp 对象
  1705. try {
  1706. event.mp = JSON.parse(JSON.stringify(event));
  1707. } catch (e) {}
  1708. event.stopPropagation = noop;
  1709. event.preventDefault = noop;
  1710. event.target = event.target || {};
  1711. if (!hasOwn(event, 'detail')) {
  1712. event.detail = {};
  1713. }
  1714. if (hasOwn(event, 'markerId')) {
  1715. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1716. event.detail.markerId = event.markerId;
  1717. }
  1718. if (isPlainObject(event.detail)) {
  1719. event.target = Object.assign({}, event.target, event.detail);
  1720. }
  1721. return event;
  1722. }
  1723. function getExtraValue(vm, dataPathsArray) {
  1724. var context = vm;
  1725. dataPathsArray.forEach(function (dataPathArray) {
  1726. var dataPath = dataPathArray[0];
  1727. var value = dataPathArray[2];
  1728. if (dataPath || typeof value !== 'undefined') {
  1729. // ['','',index,'disable']
  1730. var propPath = dataPathArray[1];
  1731. var valuePath = dataPathArray[3];
  1732. var vFor;
  1733. if (Number.isInteger(dataPath)) {
  1734. vFor = dataPath;
  1735. } else if (!dataPath) {
  1736. vFor = context;
  1737. } else if (typeof dataPath === 'string' && dataPath) {
  1738. if (dataPath.indexOf('#s#') === 0) {
  1739. vFor = dataPath.substr(3);
  1740. } else {
  1741. vFor = vm.__get_value(dataPath, context);
  1742. }
  1743. }
  1744. if (Number.isInteger(vFor)) {
  1745. context = value;
  1746. } else if (!propPath) {
  1747. context = vFor[value];
  1748. } else {
  1749. if (Array.isArray(vFor)) {
  1750. context = vFor.find(function (vForItem) {
  1751. return vm.__get_value(propPath, vForItem) === value;
  1752. });
  1753. } else if (isPlainObject(vFor)) {
  1754. context = Object.keys(vFor).find(function (vForKey) {
  1755. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1756. });
  1757. } else {
  1758. console.error('v-for 暂不支持循环数据:', vFor);
  1759. }
  1760. }
  1761. if (valuePath) {
  1762. context = vm.__get_value(valuePath, context);
  1763. }
  1764. }
  1765. });
  1766. return context;
  1767. }
  1768. function processEventExtra(vm, extra, event, __args__) {
  1769. var extraObj = {};
  1770. if (Array.isArray(extra) && extra.length) {
  1771. /**
  1772. *[
  1773. * ['data.items', 'data.id', item.data.id],
  1774. * ['metas', 'id', meta.id]
  1775. *],
  1776. *[
  1777. * ['data.items', 'data.id', item.data.id],
  1778. * ['metas', 'id', meta.id]
  1779. *],
  1780. *'test'
  1781. */
  1782. extra.forEach(function (dataPath, index) {
  1783. if (typeof dataPath === 'string') {
  1784. if (!dataPath) {
  1785. // model,prop.sync
  1786. extraObj['$' + index] = vm;
  1787. } else {
  1788. if (dataPath === '$event') {
  1789. // $event
  1790. extraObj['$' + index] = event;
  1791. } else if (dataPath === 'arguments') {
  1792. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1793. } else if (dataPath.indexOf('$event.') === 0) {
  1794. // $event.target.value
  1795. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1796. } else {
  1797. extraObj['$' + index] = vm.__get_value(dataPath);
  1798. }
  1799. }
  1800. } else {
  1801. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1802. }
  1803. });
  1804. }
  1805. return extraObj;
  1806. }
  1807. function getObjByArray(arr) {
  1808. var obj = {};
  1809. for (var i = 1; i < arr.length; i++) {
  1810. var element = arr[i];
  1811. obj[element[0]] = element[1];
  1812. }
  1813. return obj;
  1814. }
  1815. function processEventArgs(vm, event) {
  1816. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1817. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1818. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1819. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1820. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1821. // fixed 用户直接触发 mpInstance.triggerEvent
  1822. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1823. if (isCustom) {
  1824. // 自定义事件
  1825. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1826. if (!args.length) {
  1827. // 无参数,直接传入 event 或 detail 数组
  1828. if (isCustomMPEvent) {
  1829. return [event];
  1830. }
  1831. return __args__;
  1832. }
  1833. }
  1834. var extraObj = processEventExtra(vm, extra, event, __args__);
  1835. var ret = [];
  1836. args.forEach(function (arg) {
  1837. if (arg === '$event') {
  1838. if (methodName === '__set_model' && !isCustom) {
  1839. // input v-model value
  1840. ret.push(event.target.value);
  1841. } else {
  1842. if (isCustom && !isCustomMPEvent) {
  1843. ret.push(__args__[0]);
  1844. } else {
  1845. // wxcomponent 组件或内置组件
  1846. ret.push(event);
  1847. }
  1848. }
  1849. } else {
  1850. if (Array.isArray(arg) && arg[0] === 'o') {
  1851. ret.push(getObjByArray(arg));
  1852. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1853. ret.push(extraObj[arg]);
  1854. } else {
  1855. ret.push(arg);
  1856. }
  1857. }
  1858. });
  1859. return ret;
  1860. }
  1861. var ONCE = '~';
  1862. var CUSTOM = '^';
  1863. function isMatchEventType(eventType, optType) {
  1864. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1865. }
  1866. function getContextVm(vm) {
  1867. var $parent = vm.$parent;
  1868. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1869. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1870. $parent = $parent.$parent;
  1871. }
  1872. return $parent && $parent.$parent;
  1873. }
  1874. function handleEvent(event) {
  1875. var _this2 = this;
  1876. event = wrapper$1(event);
  1877. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1878. var dataset = (event.currentTarget || event.target).dataset;
  1879. if (!dataset) {
  1880. return console.warn('事件信息不存在');
  1881. }
  1882. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1883. if (!eventOpts) {
  1884. return console.warn('事件信息不存在');
  1885. }
  1886. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1887. var eventType = event.type;
  1888. var ret = [];
  1889. eventOpts.forEach(function (eventOpt) {
  1890. var type = eventOpt[0];
  1891. var eventsArray = eventOpt[1];
  1892. var isCustom = type.charAt(0) === CUSTOM;
  1893. type = isCustom ? type.slice(1) : type;
  1894. var isOnce = type.charAt(0) === ONCE;
  1895. type = isOnce ? type.slice(1) : type;
  1896. if (eventsArray && isMatchEventType(eventType, type)) {
  1897. eventsArray.forEach(function (eventArray) {
  1898. var methodName = eventArray[0];
  1899. if (methodName) {
  1900. var handlerCtx = _this2.$vm;
  1901. if (handlerCtx.$options.generic) {
  1902. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1903. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1904. }
  1905. if (methodName === '$emit') {
  1906. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1907. return;
  1908. }
  1909. var handler = handlerCtx[methodName];
  1910. if (!isFn(handler)) {
  1911. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1912. var path = _this2.route || _this2.is;
  1913. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1914. }
  1915. if (isOnce) {
  1916. if (handler.once) {
  1917. return;
  1918. }
  1919. handler.once = true;
  1920. }
  1921. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1922. params = Array.isArray(params) ? params : [];
  1923. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1924. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1925. // eslint-disable-next-line no-sparse-arrays
  1926. params = params.concat([,,,,,,,,,, event]);
  1927. }
  1928. ret.push(handler.apply(handlerCtx, params));
  1929. }
  1930. });
  1931. }
  1932. });
  1933. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1934. return ret[0];
  1935. }
  1936. }
  1937. var eventChannels = {};
  1938. function getEventChannel(id) {
  1939. var eventChannel = eventChannels[id];
  1940. delete eventChannels[id];
  1941. return eventChannel;
  1942. }
  1943. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1944. function initEventChannel() {
  1945. _vue.default.prototype.getOpenerEventChannel = function () {
  1946. // 微信小程序使用自身getOpenerEventChannel
  1947. {
  1948. return this.$scope.getOpenerEventChannel();
  1949. }
  1950. };
  1951. var callHook = _vue.default.prototype.__call_hook;
  1952. _vue.default.prototype.__call_hook = function (hook, args) {
  1953. if (hook === 'onLoad' && args && args.__id__) {
  1954. this.__eventChannel__ = getEventChannel(args.__id__);
  1955. delete args.__id__;
  1956. }
  1957. return callHook.call(this, hook, args);
  1958. };
  1959. }
  1960. function initScopedSlotsParams() {
  1961. var center = {};
  1962. var parents = {};
  1963. function currentId(fn) {
  1964. var vueIds = this.$options.propsData.vueId;
  1965. if (vueIds) {
  1966. var vueId = vueIds.split(',')[0];
  1967. fn(vueId);
  1968. }
  1969. }
  1970. _vue.default.prototype.$hasSSP = function (vueId) {
  1971. var slot = center[vueId];
  1972. if (!slot) {
  1973. parents[vueId] = this;
  1974. this.$on('hook:destroyed', function () {
  1975. delete parents[vueId];
  1976. });
  1977. }
  1978. return slot;
  1979. };
  1980. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1981. var slot = center[vueId];
  1982. if (slot) {
  1983. var params = slot[name] || [];
  1984. if (needAll) {
  1985. return params;
  1986. }
  1987. return params[0];
  1988. }
  1989. };
  1990. _vue.default.prototype.$setSSP = function (name, value) {
  1991. var index = 0;
  1992. currentId.call(this, function (vueId) {
  1993. var slot = center[vueId];
  1994. var params = slot[name] = slot[name] || [];
  1995. params.push(value);
  1996. index = params.length - 1;
  1997. });
  1998. return index;
  1999. };
  2000. _vue.default.prototype.$initSSP = function () {
  2001. currentId.call(this, function (vueId) {
  2002. center[vueId] = {};
  2003. });
  2004. };
  2005. _vue.default.prototype.$callSSP = function () {
  2006. currentId.call(this, function (vueId) {
  2007. if (parents[vueId]) {
  2008. parents[vueId].$forceUpdate();
  2009. }
  2010. });
  2011. };
  2012. _vue.default.mixin({
  2013. destroyed: function destroyed() {
  2014. var propsData = this.$options.propsData;
  2015. var vueId = propsData && propsData.vueId;
  2016. if (vueId) {
  2017. delete center[vueId];
  2018. delete parents[vueId];
  2019. }
  2020. }
  2021. });
  2022. }
  2023. function parseBaseApp(vm, _ref4) {
  2024. var mocks = _ref4.mocks,
  2025. initRefs = _ref4.initRefs;
  2026. initEventChannel();
  2027. {
  2028. initScopedSlotsParams();
  2029. }
  2030. if (vm.$options.store) {
  2031. _vue.default.prototype.$store = vm.$options.store;
  2032. }
  2033. uniIdMixin(_vue.default);
  2034. _vue.default.prototype.mpHost = "mp-weixin";
  2035. _vue.default.mixin({
  2036. beforeCreate: function beforeCreate() {
  2037. if (!this.$options.mpType) {
  2038. return;
  2039. }
  2040. this.mpType = this.$options.mpType;
  2041. this.$mp = (0, _defineProperty2.default)({
  2042. data: {}
  2043. }, this.mpType, this.$options.mpInstance);
  2044. this.$scope = this.$options.mpInstance;
  2045. delete this.$options.mpType;
  2046. delete this.$options.mpInstance;
  2047. if (this.mpType === 'page' && typeof getApp === 'function') {
  2048. // hack vue-i18n
  2049. var app = getApp();
  2050. if (app.$vm && app.$vm.$i18n) {
  2051. this._i18n = app.$vm.$i18n;
  2052. }
  2053. }
  2054. if (this.mpType !== 'app') {
  2055. initRefs(this);
  2056. initMocks(this, mocks);
  2057. }
  2058. }
  2059. });
  2060. var appOptions = {
  2061. onLaunch: function onLaunch(args) {
  2062. if (this.$vm) {
  2063. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2064. return;
  2065. }
  2066. {
  2067. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2068. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2069. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2070. }
  2071. }
  2072. this.$vm = vm;
  2073. this.$vm.$mp = {
  2074. app: this
  2075. };
  2076. this.$vm.$scope = this;
  2077. // vm 上也挂载 globalData
  2078. this.$vm.globalData = this.globalData;
  2079. this.$vm._isMounted = true;
  2080. this.$vm.__call_hook('mounted', args);
  2081. this.$vm.__call_hook('onLaunch', args);
  2082. }
  2083. };
  2084. // 兼容旧版本 globalData
  2085. appOptions.globalData = vm.$options.globalData || {};
  2086. // 将 methods 中的方法挂在 getApp() 中
  2087. var methods = vm.$options.methods;
  2088. if (methods) {
  2089. Object.keys(methods).forEach(function (name) {
  2090. appOptions[name] = methods[name];
  2091. });
  2092. }
  2093. initAppLocale(_vue.default, vm, normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN);
  2094. initHooks(appOptions, hooks);
  2095. initUnknownHooks(appOptions, vm.$options);
  2096. return appOptions;
  2097. }
  2098. function parseApp(vm) {
  2099. return parseBaseApp(vm, {
  2100. mocks: mocks,
  2101. initRefs: initRefs
  2102. });
  2103. }
  2104. function createApp(vm) {
  2105. App(parseApp(vm));
  2106. return vm;
  2107. }
  2108. var encodeReserveRE = /[!'()*]/g;
  2109. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2110. return '%' + c.charCodeAt(0).toString(16);
  2111. };
  2112. var commaRE = /%2C/g;
  2113. // fixed encodeURIComponent which is more conformant to RFC3986:
  2114. // - escapes [!'()*]
  2115. // - preserve commas
  2116. var encode = function encode(str) {
  2117. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2118. };
  2119. function stringifyQuery(obj) {
  2120. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2121. var res = obj ? Object.keys(obj).map(function (key) {
  2122. var val = obj[key];
  2123. if (val === undefined) {
  2124. return '';
  2125. }
  2126. if (val === null) {
  2127. return encodeStr(key);
  2128. }
  2129. if (Array.isArray(val)) {
  2130. var result = [];
  2131. val.forEach(function (val2) {
  2132. if (val2 === undefined) {
  2133. return;
  2134. }
  2135. if (val2 === null) {
  2136. result.push(encodeStr(key));
  2137. } else {
  2138. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2139. }
  2140. });
  2141. return result.join('&');
  2142. }
  2143. return encodeStr(key) + '=' + encodeStr(val);
  2144. }).filter(function (x) {
  2145. return x.length > 0;
  2146. }).join('&') : null;
  2147. return res ? "?".concat(res) : '';
  2148. }
  2149. function parseBaseComponent(vueComponentOptions) {
  2150. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2151. isPage = _ref5.isPage,
  2152. initRelation = _ref5.initRelation;
  2153. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2154. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2155. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2156. VueComponent = _initVueComponent2[0],
  2157. vueOptions = _initVueComponent2[1];
  2158. var options = _objectSpread({
  2159. multipleSlots: true,
  2160. // styleIsolation: 'apply-shared',
  2161. addGlobalClass: true
  2162. }, vueOptions.options || {});
  2163. {
  2164. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2165. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2166. Object.assign(options, vueOptions['mp-weixin'].options);
  2167. }
  2168. }
  2169. var componentOptions = {
  2170. options: options,
  2171. data: initData(vueOptions, _vue.default.prototype),
  2172. behaviors: initBehaviors(vueOptions, initBehavior),
  2173. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2174. lifetimes: {
  2175. attached: function attached() {
  2176. var properties = this.properties;
  2177. var options = {
  2178. mpType: isPage.call(this) ? 'page' : 'component',
  2179. mpInstance: this,
  2180. propsData: properties
  2181. };
  2182. initVueIds(properties.vueId, this);
  2183. // 处理父子关系
  2184. initRelation.call(this, {
  2185. vuePid: this._$vuePid,
  2186. vueOptions: options
  2187. });
  2188. // 初始化 vue 实例
  2189. this.$vm = new VueComponent(options);
  2190. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2191. initSlots(this.$vm, properties.vueSlots);
  2192. // 触发首次 setData
  2193. this.$vm.$mount();
  2194. },
  2195. ready: function ready() {
  2196. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2197. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2198. if (this.$vm) {
  2199. this.$vm._isMounted = true;
  2200. this.$vm.__call_hook('mounted');
  2201. this.$vm.__call_hook('onReady');
  2202. }
  2203. },
  2204. detached: function detached() {
  2205. this.$vm && this.$vm.$destroy();
  2206. }
  2207. },
  2208. pageLifetimes: {
  2209. show: function show(args) {
  2210. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2211. },
  2212. hide: function hide() {
  2213. this.$vm && this.$vm.__call_hook('onPageHide');
  2214. },
  2215. resize: function resize(size) {
  2216. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2217. }
  2218. },
  2219. methods: {
  2220. __l: handleLink,
  2221. __e: handleEvent
  2222. }
  2223. };
  2224. // externalClasses
  2225. if (vueOptions.externalClasses) {
  2226. componentOptions.externalClasses = vueOptions.externalClasses;
  2227. }
  2228. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2229. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2230. componentOptions.methods[callMethod] = function (args) {
  2231. return this.$vm[callMethod](args);
  2232. };
  2233. });
  2234. }
  2235. if (needVueOptions) {
  2236. return [componentOptions, vueOptions, VueComponent];
  2237. }
  2238. if (isPage) {
  2239. return componentOptions;
  2240. }
  2241. return [componentOptions, VueComponent];
  2242. }
  2243. function parseComponent(vueComponentOptions, needVueOptions) {
  2244. return parseBaseComponent(vueComponentOptions, {
  2245. isPage: isPage,
  2246. initRelation: initRelation
  2247. }, needVueOptions);
  2248. }
  2249. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2250. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2251. function parseBasePage(vuePageOptions) {
  2252. var _parseComponent = parseComponent(vuePageOptions, true),
  2253. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2254. pageOptions = _parseComponent2[0],
  2255. vueOptions = _parseComponent2[1];
  2256. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2257. pageOptions.methods.onLoad = function (query) {
  2258. this.options = query;
  2259. var copyQuery = Object.assign({}, query);
  2260. delete copyQuery.__id__;
  2261. this.$page = {
  2262. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2263. };
  2264. this.$vm.$mp.query = query; // 兼容 mpvue
  2265. this.$vm.__call_hook('onLoad', query);
  2266. };
  2267. {
  2268. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2269. }
  2270. {
  2271. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2272. }
  2273. return pageOptions;
  2274. }
  2275. function parsePage(vuePageOptions) {
  2276. return parseBasePage(vuePageOptions);
  2277. }
  2278. function createPage(vuePageOptions) {
  2279. {
  2280. return Component(parsePage(vuePageOptions));
  2281. }
  2282. }
  2283. function createComponent(vueOptions) {
  2284. {
  2285. return Component(parseComponent(vueOptions));
  2286. }
  2287. }
  2288. function createSubpackageApp(vm) {
  2289. var appOptions = parseApp(vm);
  2290. var app = getApp({
  2291. allowDefault: true
  2292. });
  2293. vm.$scope = app;
  2294. var globalData = app.globalData;
  2295. if (globalData) {
  2296. Object.keys(appOptions.globalData).forEach(function (name) {
  2297. if (!hasOwn(globalData, name)) {
  2298. globalData[name] = appOptions.globalData[name];
  2299. }
  2300. });
  2301. }
  2302. Object.keys(appOptions).forEach(function (name) {
  2303. if (!hasOwn(app, name)) {
  2304. app[name] = appOptions[name];
  2305. }
  2306. });
  2307. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2308. wx.onAppShow(function () {
  2309. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2310. args[_key5] = arguments[_key5];
  2311. }
  2312. vm.__call_hook('onShow', args);
  2313. });
  2314. }
  2315. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2316. wx.onAppHide(function () {
  2317. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2318. args[_key6] = arguments[_key6];
  2319. }
  2320. vm.__call_hook('onHide', args);
  2321. });
  2322. }
  2323. if (isFn(appOptions.onLaunch)) {
  2324. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2325. vm.__call_hook('onLaunch', args);
  2326. }
  2327. return vm;
  2328. }
  2329. function createPlugin(vm) {
  2330. var appOptions = parseApp(vm);
  2331. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2332. wx.onAppShow(function () {
  2333. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2334. args[_key7] = arguments[_key7];
  2335. }
  2336. vm.__call_hook('onShow', args);
  2337. });
  2338. }
  2339. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2340. wx.onAppHide(function () {
  2341. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2342. args[_key8] = arguments[_key8];
  2343. }
  2344. vm.__call_hook('onHide', args);
  2345. });
  2346. }
  2347. if (isFn(appOptions.onLaunch)) {
  2348. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2349. vm.__call_hook('onLaunch', args);
  2350. }
  2351. return vm;
  2352. }
  2353. todos.forEach(function (todoApi) {
  2354. protocols[todoApi] = false;
  2355. });
  2356. canIUses.forEach(function (canIUseApi) {
  2357. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2358. if (!wx.canIUse(apiName)) {
  2359. protocols[canIUseApi] = false;
  2360. }
  2361. });
  2362. var uni = {};
  2363. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2364. uni = new Proxy({}, {
  2365. get: function get(target, name) {
  2366. if (hasOwn(target, name)) {
  2367. return target[name];
  2368. }
  2369. if (baseApi[name]) {
  2370. return baseApi[name];
  2371. }
  2372. if (api[name]) {
  2373. return promisify(name, api[name]);
  2374. }
  2375. {
  2376. if (extraApi[name]) {
  2377. return promisify(name, extraApi[name]);
  2378. }
  2379. if (todoApis[name]) {
  2380. return promisify(name, todoApis[name]);
  2381. }
  2382. }
  2383. if (eventApi[name]) {
  2384. return eventApi[name];
  2385. }
  2386. return promisify(name, wrapper(name, wx[name]));
  2387. },
  2388. set: function set(target, name, value) {
  2389. target[name] = value;
  2390. return true;
  2391. }
  2392. });
  2393. } else {
  2394. Object.keys(baseApi).forEach(function (name) {
  2395. uni[name] = baseApi[name];
  2396. });
  2397. {
  2398. Object.keys(todoApis).forEach(function (name) {
  2399. uni[name] = promisify(name, todoApis[name]);
  2400. });
  2401. Object.keys(extraApi).forEach(function (name) {
  2402. uni[name] = promisify(name, extraApi[name]);
  2403. });
  2404. }
  2405. Object.keys(eventApi).forEach(function (name) {
  2406. uni[name] = eventApi[name];
  2407. });
  2408. Object.keys(api).forEach(function (name) {
  2409. uni[name] = promisify(name, api[name]);
  2410. });
  2411. Object.keys(wx).forEach(function (name) {
  2412. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2413. uni[name] = promisify(name, wrapper(name, wx[name]));
  2414. }
  2415. });
  2416. }
  2417. wx.createApp = createApp;
  2418. wx.createPage = createPage;
  2419. wx.createComponent = createComponent;
  2420. wx.createSubpackageApp = createSubpackageApp;
  2421. wx.createPlugin = createPlugin;
  2422. var uni$1 = uni;
  2423. var _default = uni$1;
  2424. exports.default = _default;
  2425. /* 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)))
  2426. /***/ }),
  2427. /* 3 */
  2428. /*!***********************************!*\
  2429. !*** (webpack)/buildin/global.js ***!
  2430. \***********************************/
  2431. /*! no static exports found */
  2432. /***/ (function(module, exports) {
  2433. var g;
  2434. // This works in non-strict mode
  2435. g = (function() {
  2436. return this;
  2437. })();
  2438. try {
  2439. // This works if eval is allowed (see CSP)
  2440. g = g || new Function("return this")();
  2441. } catch (e) {
  2442. // This works if the window reference is available
  2443. if (typeof window === "object") g = window;
  2444. }
  2445. // g can still be undefined, but nothing to do about it...
  2446. // We return undefined, instead of nothing here, so it's
  2447. // easier to handle this case. if(!global) { ...}
  2448. module.exports = g;
  2449. /***/ }),
  2450. /* 4 */
  2451. /*!**********************************************************************!*\
  2452. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2453. \**********************************************************************/
  2454. /*! no static exports found */
  2455. /***/ (function(module, exports) {
  2456. function _interopRequireDefault(obj) {
  2457. return obj && obj.__esModule ? obj : {
  2458. "default": obj
  2459. };
  2460. }
  2461. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2462. /***/ }),
  2463. /* 5 */
  2464. /*!**************************************************************!*\
  2465. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2466. \**************************************************************/
  2467. /*! no static exports found */
  2468. /***/ (function(module, exports, __webpack_require__) {
  2469. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2470. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2471. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2472. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2473. function _slicedToArray(arr, i) {
  2474. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2475. }
  2476. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2477. /***/ }),
  2478. /* 6 */
  2479. /*!***************************************************************!*\
  2480. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2481. \***************************************************************/
  2482. /*! no static exports found */
  2483. /***/ (function(module, exports) {
  2484. function _arrayWithHoles(arr) {
  2485. if (Array.isArray(arr)) return arr;
  2486. }
  2487. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2488. /***/ }),
  2489. /* 7 */
  2490. /*!*********************************************************************!*\
  2491. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2492. \*********************************************************************/
  2493. /*! no static exports found */
  2494. /***/ (function(module, exports) {
  2495. function _iterableToArrayLimit(r, l) {
  2496. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2497. if (null != t) {
  2498. var e,
  2499. n,
  2500. i,
  2501. u,
  2502. a = [],
  2503. f = !0,
  2504. o = !1;
  2505. try {
  2506. if (i = (t = t.call(r)).next, 0 === l) {
  2507. if (Object(t) !== t) return;
  2508. f = !1;
  2509. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2510. ;
  2511. }
  2512. } catch (r) {
  2513. o = !0, n = r;
  2514. } finally {
  2515. try {
  2516. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2517. } finally {
  2518. if (o) throw n;
  2519. }
  2520. }
  2521. return a;
  2522. }
  2523. }
  2524. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2525. /***/ }),
  2526. /* 8 */
  2527. /*!***************************************************************************!*\
  2528. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2529. \***************************************************************************/
  2530. /*! no static exports found */
  2531. /***/ (function(module, exports, __webpack_require__) {
  2532. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2533. function _unsupportedIterableToArray(o, minLen) {
  2534. if (!o) return;
  2535. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2536. var n = Object.prototype.toString.call(o).slice(8, -1);
  2537. if (n === "Object" && o.constructor) n = o.constructor.name;
  2538. if (n === "Map" || n === "Set") return Array.from(o);
  2539. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2540. }
  2541. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2542. /***/ }),
  2543. /* 9 */
  2544. /*!*****************************************************************!*\
  2545. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2546. \*****************************************************************/
  2547. /*! no static exports found */
  2548. /***/ (function(module, exports) {
  2549. function _arrayLikeToArray(arr, len) {
  2550. if (len == null || len > arr.length) len = arr.length;
  2551. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2552. arr2[i] = arr[i];
  2553. }
  2554. return arr2;
  2555. }
  2556. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2557. /***/ }),
  2558. /* 10 */
  2559. /*!****************************************************************!*\
  2560. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2561. \****************************************************************/
  2562. /*! no static exports found */
  2563. /***/ (function(module, exports) {
  2564. function _nonIterableRest() {
  2565. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2566. }
  2567. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2568. /***/ }),
  2569. /* 11 */
  2570. /*!***************************************************************!*\
  2571. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2572. \***************************************************************/
  2573. /*! no static exports found */
  2574. /***/ (function(module, exports, __webpack_require__) {
  2575. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2576. function _defineProperty(obj, key, value) {
  2577. key = toPropertyKey(key);
  2578. if (key in obj) {
  2579. Object.defineProperty(obj, key, {
  2580. value: value,
  2581. enumerable: true,
  2582. configurable: true,
  2583. writable: true
  2584. });
  2585. } else {
  2586. obj[key] = value;
  2587. }
  2588. return obj;
  2589. }
  2590. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 12 */
  2593. /*!**************************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2595. \**************************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports, __webpack_require__) {
  2598. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2599. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2600. function toPropertyKey(t) {
  2601. var i = toPrimitive(t, "string");
  2602. return "symbol" == _typeof(i) ? i : i + "";
  2603. }
  2604. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2605. /***/ }),
  2606. /* 13 */
  2607. /*!*******************************************************!*\
  2608. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2609. \*******************************************************/
  2610. /*! no static exports found */
  2611. /***/ (function(module, exports) {
  2612. function _typeof(o) {
  2613. "@babel/helpers - typeof";
  2614. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2615. return typeof o;
  2616. } : function (o) {
  2617. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2618. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2619. }
  2620. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 14 */
  2623. /*!************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2625. \************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports, __webpack_require__) {
  2628. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2629. function toPrimitive(t, r) {
  2630. if ("object" != _typeof(t) || !t) return t;
  2631. var e = t[Symbol.toPrimitive];
  2632. if (void 0 !== e) {
  2633. var i = e.call(t, r || "default");
  2634. if ("object" != _typeof(i)) return i;
  2635. throw new TypeError("@@toPrimitive must return a primitive value.");
  2636. }
  2637. return ("string" === r ? String : Number)(t);
  2638. }
  2639. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2640. /***/ }),
  2641. /* 15 */
  2642. /*!**********************************************************!*\
  2643. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2644. \**********************************************************/
  2645. /*! no static exports found */
  2646. /***/ (function(module, exports, __webpack_require__) {
  2647. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2648. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2649. function _construct(t, e, r) {
  2650. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2651. var o = [null];
  2652. o.push.apply(o, e);
  2653. var p = new (t.bind.apply(t, o))();
  2654. return r && setPrototypeOf(p, r.prototype), p;
  2655. }
  2656. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2657. /***/ }),
  2658. /* 16 */
  2659. /*!***************************************************************!*\
  2660. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2661. \***************************************************************/
  2662. /*! no static exports found */
  2663. /***/ (function(module, exports) {
  2664. function _setPrototypeOf(o, p) {
  2665. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2666. o.__proto__ = p;
  2667. return o;
  2668. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2669. return _setPrototypeOf(o, p);
  2670. }
  2671. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2672. /***/ }),
  2673. /* 17 */
  2674. /*!*************************************************************************!*\
  2675. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2676. \*************************************************************************/
  2677. /*! no static exports found */
  2678. /***/ (function(module, exports) {
  2679. function _isNativeReflectConstruct() {
  2680. try {
  2681. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2682. } catch (t) {}
  2683. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2684. return !!t;
  2685. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2686. }
  2687. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2688. /***/ }),
  2689. /* 18 */
  2690. /*!******************************************************************!*\
  2691. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2692. \******************************************************************/
  2693. /*! no static exports found */
  2694. /***/ (function(module, exports, __webpack_require__) {
  2695. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2696. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2697. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2698. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2699. function _toConsumableArray(arr) {
  2700. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2701. }
  2702. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2703. /***/ }),
  2704. /* 19 */
  2705. /*!******************************************************************!*\
  2706. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2707. \******************************************************************/
  2708. /*! no static exports found */
  2709. /***/ (function(module, exports, __webpack_require__) {
  2710. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2711. function _arrayWithoutHoles(arr) {
  2712. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2713. }
  2714. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2715. /***/ }),
  2716. /* 20 */
  2717. /*!****************************************************************!*\
  2718. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2719. \****************************************************************/
  2720. /*! no static exports found */
  2721. /***/ (function(module, exports) {
  2722. function _iterableToArray(iter) {
  2723. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2724. }
  2725. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2726. /***/ }),
  2727. /* 21 */
  2728. /*!******************************************************************!*\
  2729. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2730. \******************************************************************/
  2731. /*! no static exports found */
  2732. /***/ (function(module, exports) {
  2733. function _nonIterableSpread() {
  2734. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2735. }
  2736. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2737. /***/ }),
  2738. /* 22 */
  2739. /*!*************************************************************!*\
  2740. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2741. \*************************************************************/
  2742. /*! no static exports found */
  2743. /***/ (function(module, exports, __webpack_require__) {
  2744. "use strict";
  2745. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2746. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2747. Object.defineProperty(exports, "__esModule", {
  2748. value: true
  2749. });
  2750. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2751. exports.compileI18nJsonStr = compileI18nJsonStr;
  2752. exports.hasI18nJson = hasI18nJson;
  2753. exports.initVueI18n = initVueI18n;
  2754. exports.isI18nStr = isI18nStr;
  2755. exports.isString = void 0;
  2756. exports.normalizeLocale = normalizeLocale;
  2757. exports.parseI18nJson = parseI18nJson;
  2758. exports.resolveLocale = resolveLocale;
  2759. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2760. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2761. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2762. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2763. var isObject = function isObject(val) {
  2764. return val !== null && (0, _typeof2.default)(val) === 'object';
  2765. };
  2766. var defaultDelimiters = ['{', '}'];
  2767. var BaseFormatter = /*#__PURE__*/function () {
  2768. function BaseFormatter() {
  2769. (0, _classCallCheck2.default)(this, BaseFormatter);
  2770. this._caches = Object.create(null);
  2771. }
  2772. (0, _createClass2.default)(BaseFormatter, [{
  2773. key: "interpolate",
  2774. value: function interpolate(message, values) {
  2775. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2776. if (!values) {
  2777. return [message];
  2778. }
  2779. var tokens = this._caches[message];
  2780. if (!tokens) {
  2781. tokens = parse(message, delimiters);
  2782. this._caches[message] = tokens;
  2783. }
  2784. return compile(tokens, values);
  2785. }
  2786. }]);
  2787. return BaseFormatter;
  2788. }();
  2789. exports.Formatter = BaseFormatter;
  2790. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2791. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2792. function parse(format, _ref) {
  2793. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2794. startDelimiter = _ref2[0],
  2795. endDelimiter = _ref2[1];
  2796. var tokens = [];
  2797. var position = 0;
  2798. var text = '';
  2799. while (position < format.length) {
  2800. var char = format[position++];
  2801. if (char === startDelimiter) {
  2802. if (text) {
  2803. tokens.push({
  2804. type: 'text',
  2805. value: text
  2806. });
  2807. }
  2808. text = '';
  2809. var sub = '';
  2810. char = format[position++];
  2811. while (char !== undefined && char !== endDelimiter) {
  2812. sub += char;
  2813. char = format[position++];
  2814. }
  2815. var isClosed = char === endDelimiter;
  2816. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2817. tokens.push({
  2818. value: sub,
  2819. type: type
  2820. });
  2821. }
  2822. // else if (char === '%') {
  2823. // // when found rails i18n syntax, skip text capture
  2824. // if (format[position] !== '{') {
  2825. // text += char
  2826. // }
  2827. // }
  2828. else {
  2829. text += char;
  2830. }
  2831. }
  2832. text && tokens.push({
  2833. type: 'text',
  2834. value: text
  2835. });
  2836. return tokens;
  2837. }
  2838. function compile(tokens, values) {
  2839. var compiled = [];
  2840. var index = 0;
  2841. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2842. if (mode === 'unknown') {
  2843. return compiled;
  2844. }
  2845. while (index < tokens.length) {
  2846. var token = tokens[index];
  2847. switch (token.type) {
  2848. case 'text':
  2849. compiled.push(token.value);
  2850. break;
  2851. case 'list':
  2852. compiled.push(values[parseInt(token.value, 10)]);
  2853. break;
  2854. case 'named':
  2855. if (mode === 'named') {
  2856. compiled.push(values[token.value]);
  2857. } else {
  2858. if (true) {
  2859. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2860. }
  2861. }
  2862. break;
  2863. case 'unknown':
  2864. if (true) {
  2865. console.warn("Detect 'unknown' type of token!");
  2866. }
  2867. break;
  2868. }
  2869. index++;
  2870. }
  2871. return compiled;
  2872. }
  2873. var LOCALE_ZH_HANS = 'zh-Hans';
  2874. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2875. var LOCALE_ZH_HANT = 'zh-Hant';
  2876. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2877. var LOCALE_EN = 'en';
  2878. exports.LOCALE_EN = LOCALE_EN;
  2879. var LOCALE_FR = 'fr';
  2880. exports.LOCALE_FR = LOCALE_FR;
  2881. var LOCALE_ES = 'es';
  2882. exports.LOCALE_ES = LOCALE_ES;
  2883. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2884. var hasOwn = function hasOwn(val, key) {
  2885. return hasOwnProperty.call(val, key);
  2886. };
  2887. var defaultFormatter = new BaseFormatter();
  2888. function include(str, parts) {
  2889. return !!parts.find(function (part) {
  2890. return str.indexOf(part) !== -1;
  2891. });
  2892. }
  2893. function startsWith(str, parts) {
  2894. return parts.find(function (part) {
  2895. return str.indexOf(part) === 0;
  2896. });
  2897. }
  2898. function normalizeLocale(locale, messages) {
  2899. if (!locale) {
  2900. return;
  2901. }
  2902. locale = locale.trim().replace(/_/g, '-');
  2903. if (messages && messages[locale]) {
  2904. return locale;
  2905. }
  2906. locale = locale.toLowerCase();
  2907. if (locale === 'chinese') {
  2908. // 支付宝
  2909. return LOCALE_ZH_HANS;
  2910. }
  2911. if (locale.indexOf('zh') === 0) {
  2912. if (locale.indexOf('-hans') > -1) {
  2913. return LOCALE_ZH_HANS;
  2914. }
  2915. if (locale.indexOf('-hant') > -1) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2919. return LOCALE_ZH_HANT;
  2920. }
  2921. return LOCALE_ZH_HANS;
  2922. }
  2923. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2924. if (messages && Object.keys(messages).length > 0) {
  2925. locales = Object.keys(messages);
  2926. }
  2927. var lang = startsWith(locale, locales);
  2928. if (lang) {
  2929. return lang;
  2930. }
  2931. }
  2932. var I18n = /*#__PURE__*/function () {
  2933. function I18n(_ref3) {
  2934. var locale = _ref3.locale,
  2935. fallbackLocale = _ref3.fallbackLocale,
  2936. messages = _ref3.messages,
  2937. watcher = _ref3.watcher,
  2938. formater = _ref3.formater;
  2939. (0, _classCallCheck2.default)(this, I18n);
  2940. this.locale = LOCALE_EN;
  2941. this.fallbackLocale = LOCALE_EN;
  2942. this.message = {};
  2943. this.messages = {};
  2944. this.watchers = [];
  2945. if (fallbackLocale) {
  2946. this.fallbackLocale = fallbackLocale;
  2947. }
  2948. this.formater = formater || defaultFormatter;
  2949. this.messages = messages || {};
  2950. this.setLocale(locale || LOCALE_EN);
  2951. if (watcher) {
  2952. this.watchLocale(watcher);
  2953. }
  2954. }
  2955. (0, _createClass2.default)(I18n, [{
  2956. key: "setLocale",
  2957. value: function setLocale(locale) {
  2958. var _this = this;
  2959. var oldLocale = this.locale;
  2960. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2961. if (!this.messages[this.locale]) {
  2962. // 可能初始化时不存在
  2963. this.messages[this.locale] = {};
  2964. }
  2965. this.message = this.messages[this.locale];
  2966. // 仅发生变化时,通知
  2967. if (oldLocale !== this.locale) {
  2968. this.watchers.forEach(function (watcher) {
  2969. watcher(_this.locale, oldLocale);
  2970. });
  2971. }
  2972. }
  2973. }, {
  2974. key: "getLocale",
  2975. value: function getLocale() {
  2976. return this.locale;
  2977. }
  2978. }, {
  2979. key: "watchLocale",
  2980. value: function watchLocale(fn) {
  2981. var _this2 = this;
  2982. var index = this.watchers.push(fn) - 1;
  2983. return function () {
  2984. _this2.watchers.splice(index, 1);
  2985. };
  2986. }
  2987. }, {
  2988. key: "add",
  2989. value: function add(locale, message) {
  2990. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2991. var curMessages = this.messages[locale];
  2992. if (curMessages) {
  2993. if (override) {
  2994. Object.assign(curMessages, message);
  2995. } else {
  2996. Object.keys(message).forEach(function (key) {
  2997. if (!hasOwn(curMessages, key)) {
  2998. curMessages[key] = message[key];
  2999. }
  3000. });
  3001. }
  3002. } else {
  3003. this.messages[locale] = message;
  3004. }
  3005. }
  3006. }, {
  3007. key: "f",
  3008. value: function f(message, values, delimiters) {
  3009. return this.formater.interpolate(message, values, delimiters).join('');
  3010. }
  3011. }, {
  3012. key: "t",
  3013. value: function t(key, locale, values) {
  3014. var message = this.message;
  3015. if (typeof locale === 'string') {
  3016. locale = normalizeLocale(locale, this.messages);
  3017. locale && (message = this.messages[locale]);
  3018. } else {
  3019. values = locale;
  3020. }
  3021. if (!hasOwn(message, key)) {
  3022. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3023. return key;
  3024. }
  3025. return this.formater.interpolate(message[key], values).join('');
  3026. }
  3027. }]);
  3028. return I18n;
  3029. }();
  3030. exports.I18n = I18n;
  3031. function watchAppLocale(appVm, i18n) {
  3032. // 需要保证 watch 的触发在组件渲染之前
  3033. if (appVm.$watchLocale) {
  3034. // vue2
  3035. appVm.$watchLocale(function (newLocale) {
  3036. i18n.setLocale(newLocale);
  3037. });
  3038. } else {
  3039. appVm.$watch(function () {
  3040. return appVm.$locale;
  3041. }, function (newLocale) {
  3042. i18n.setLocale(newLocale);
  3043. });
  3044. }
  3045. }
  3046. function getDefaultLocale() {
  3047. if (typeof uni !== 'undefined' && uni.getLocale) {
  3048. return uni.getLocale();
  3049. }
  3050. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3051. if (typeof global !== 'undefined' && global.getLocale) {
  3052. return global.getLocale();
  3053. }
  3054. return LOCALE_EN;
  3055. }
  3056. function initVueI18n(locale) {
  3057. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3058. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3059. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3060. // 兼容旧版本入参
  3061. if (typeof locale !== 'string') {
  3062. var _ref4 = [messages, locale];
  3063. locale = _ref4[0];
  3064. messages = _ref4[1];
  3065. }
  3066. if (typeof locale !== 'string') {
  3067. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3068. locale = getDefaultLocale();
  3069. }
  3070. if (typeof fallbackLocale !== 'string') {
  3071. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3072. }
  3073. var i18n = new I18n({
  3074. locale: locale,
  3075. fallbackLocale: fallbackLocale,
  3076. messages: messages,
  3077. watcher: watcher
  3078. });
  3079. var _t = function t(key, values) {
  3080. if (typeof getApp !== 'function') {
  3081. // app view
  3082. /* eslint-disable no-func-assign */
  3083. _t = function t(key, values) {
  3084. return i18n.t(key, values);
  3085. };
  3086. } else {
  3087. var isWatchedAppLocale = false;
  3088. _t = function t(key, values) {
  3089. var appVm = getApp().$vm;
  3090. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3091. // options: {
  3092. // type: Array,
  3093. // default () {
  3094. // return [{
  3095. // icon: 'shop',
  3096. // text: t("uni-goods-nav.options.shop"),
  3097. // }, {
  3098. // icon: 'cart',
  3099. // text: t("uni-goods-nav.options.cart")
  3100. // }]
  3101. // }
  3102. // },
  3103. if (appVm) {
  3104. // 触发响应式
  3105. appVm.$locale;
  3106. if (!isWatchedAppLocale) {
  3107. isWatchedAppLocale = true;
  3108. watchAppLocale(appVm, i18n);
  3109. }
  3110. }
  3111. return i18n.t(key, values);
  3112. };
  3113. }
  3114. return _t(key, values);
  3115. };
  3116. return {
  3117. i18n: i18n,
  3118. f: function f(message, values, delimiters) {
  3119. return i18n.f(message, values, delimiters);
  3120. },
  3121. t: function t(key, values) {
  3122. return _t(key, values);
  3123. },
  3124. add: function add(locale, message) {
  3125. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3126. return i18n.add(locale, message, override);
  3127. },
  3128. watch: function watch(fn) {
  3129. return i18n.watchLocale(fn);
  3130. },
  3131. getLocale: function getLocale() {
  3132. return i18n.getLocale();
  3133. },
  3134. setLocale: function setLocale(newLocale) {
  3135. return i18n.setLocale(newLocale);
  3136. }
  3137. };
  3138. }
  3139. var isString = function isString(val) {
  3140. return typeof val === 'string';
  3141. };
  3142. exports.isString = isString;
  3143. var formater;
  3144. function hasI18nJson(jsonObj, delimiters) {
  3145. if (!formater) {
  3146. formater = new BaseFormatter();
  3147. }
  3148. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3149. var value = jsonObj[key];
  3150. if (isString(value)) {
  3151. if (isI18nStr(value, delimiters)) {
  3152. return true;
  3153. }
  3154. } else {
  3155. return hasI18nJson(value, delimiters);
  3156. }
  3157. });
  3158. }
  3159. function parseI18nJson(jsonObj, values, delimiters) {
  3160. if (!formater) {
  3161. formater = new BaseFormatter();
  3162. }
  3163. walkJsonObj(jsonObj, function (jsonObj, key) {
  3164. var value = jsonObj[key];
  3165. if (isString(value)) {
  3166. if (isI18nStr(value, delimiters)) {
  3167. jsonObj[key] = compileStr(value, values, delimiters);
  3168. }
  3169. } else {
  3170. parseI18nJson(value, values, delimiters);
  3171. }
  3172. });
  3173. return jsonObj;
  3174. }
  3175. function compileI18nJsonStr(jsonStr, _ref5) {
  3176. var locale = _ref5.locale,
  3177. locales = _ref5.locales,
  3178. delimiters = _ref5.delimiters;
  3179. if (!isI18nStr(jsonStr, delimiters)) {
  3180. return jsonStr;
  3181. }
  3182. if (!formater) {
  3183. formater = new BaseFormatter();
  3184. }
  3185. var localeValues = [];
  3186. Object.keys(locales).forEach(function (name) {
  3187. if (name !== locale) {
  3188. localeValues.push({
  3189. locale: name,
  3190. values: locales[name]
  3191. });
  3192. }
  3193. });
  3194. localeValues.unshift({
  3195. locale: locale,
  3196. values: locales[locale]
  3197. });
  3198. try {
  3199. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3200. } catch (e) {}
  3201. return jsonStr;
  3202. }
  3203. function isI18nStr(value, delimiters) {
  3204. return value.indexOf(delimiters[0]) > -1;
  3205. }
  3206. function compileStr(value, values, delimiters) {
  3207. return formater.interpolate(value, values, delimiters).join('');
  3208. }
  3209. function compileValue(jsonObj, key, localeValues, delimiters) {
  3210. var value = jsonObj[key];
  3211. if (isString(value)) {
  3212. // 存在国际化
  3213. if (isI18nStr(value, delimiters)) {
  3214. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3215. if (localeValues.length > 1) {
  3216. // 格式化国际化语言
  3217. var valueLocales = jsonObj[key + 'Locales'] = {};
  3218. localeValues.forEach(function (localValue) {
  3219. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3220. });
  3221. }
  3222. }
  3223. } else {
  3224. compileJsonObj(value, localeValues, delimiters);
  3225. }
  3226. }
  3227. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3228. walkJsonObj(jsonObj, function (jsonObj, key) {
  3229. compileValue(jsonObj, key, localeValues, delimiters);
  3230. });
  3231. return jsonObj;
  3232. }
  3233. function walkJsonObj(jsonObj, walk) {
  3234. if (Array.isArray(jsonObj)) {
  3235. for (var i = 0; i < jsonObj.length; i++) {
  3236. if (walk(jsonObj, i)) {
  3237. return true;
  3238. }
  3239. }
  3240. } else if (isObject(jsonObj)) {
  3241. for (var key in jsonObj) {
  3242. if (walk(jsonObj, key)) {
  3243. return true;
  3244. }
  3245. }
  3246. }
  3247. return false;
  3248. }
  3249. function resolveLocale(locales) {
  3250. return function (locale) {
  3251. if (!locale) {
  3252. return locale;
  3253. }
  3254. locale = normalizeLocale(locale) || locale;
  3255. return resolveLocaleChain(locale).find(function (locale) {
  3256. return locales.indexOf(locale) > -1;
  3257. });
  3258. };
  3259. }
  3260. function resolveLocaleChain(locale) {
  3261. var chain = [];
  3262. var tokens = locale.split('-');
  3263. while (tokens.length) {
  3264. chain.push(tokens.join('-'));
  3265. tokens.pop();
  3266. }
  3267. return chain;
  3268. }
  3269. /* 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)))
  3270. /***/ }),
  3271. /* 23 */
  3272. /*!***************************************************************!*\
  3273. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3274. \***************************************************************/
  3275. /*! no static exports found */
  3276. /***/ (function(module, exports) {
  3277. function _classCallCheck(instance, Constructor) {
  3278. if (!(instance instanceof Constructor)) {
  3279. throw new TypeError("Cannot call a class as a function");
  3280. }
  3281. }
  3282. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3283. /***/ }),
  3284. /* 24 */
  3285. /*!************************************************************!*\
  3286. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3287. \************************************************************/
  3288. /*! no static exports found */
  3289. /***/ (function(module, exports, __webpack_require__) {
  3290. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3291. function _defineProperties(target, props) {
  3292. for (var i = 0; i < props.length; i++) {
  3293. var descriptor = props[i];
  3294. descriptor.enumerable = descriptor.enumerable || false;
  3295. descriptor.configurable = true;
  3296. if ("value" in descriptor) descriptor.writable = true;
  3297. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3298. }
  3299. }
  3300. function _createClass(Constructor, protoProps, staticProps) {
  3301. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3302. if (staticProps) _defineProperties(Constructor, staticProps);
  3303. Object.defineProperty(Constructor, "prototype", {
  3304. writable: false
  3305. });
  3306. return Constructor;
  3307. }
  3308. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3309. /***/ }),
  3310. /* 25 */
  3311. /*!******************************************************************************************!*\
  3312. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3313. \******************************************************************************************/
  3314. /*! exports provided: default */
  3315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3316. "use strict";
  3317. __webpack_require__.r(__webpack_exports__);
  3318. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3319. * Vue.js v2.6.11
  3320. * (c) 2014-2024 Evan You
  3321. * Released under the MIT License.
  3322. */
  3323. /* */
  3324. var emptyObject = Object.freeze({});
  3325. // These helpers produce better VM code in JS engines due to their
  3326. // explicitness and function inlining.
  3327. function isUndef (v) {
  3328. return v === undefined || v === null
  3329. }
  3330. function isDef (v) {
  3331. return v !== undefined && v !== null
  3332. }
  3333. function isTrue (v) {
  3334. return v === true
  3335. }
  3336. function isFalse (v) {
  3337. return v === false
  3338. }
  3339. /**
  3340. * Check if value is primitive.
  3341. */
  3342. function isPrimitive (value) {
  3343. return (
  3344. typeof value === 'string' ||
  3345. typeof value === 'number' ||
  3346. // $flow-disable-line
  3347. typeof value === 'symbol' ||
  3348. typeof value === 'boolean'
  3349. )
  3350. }
  3351. /**
  3352. * Quick object check - this is primarily used to tell
  3353. * Objects from primitive values when we know the value
  3354. * is a JSON-compliant type.
  3355. */
  3356. function isObject (obj) {
  3357. return obj !== null && typeof obj === 'object'
  3358. }
  3359. /**
  3360. * Get the raw type string of a value, e.g., [object Object].
  3361. */
  3362. var _toString = Object.prototype.toString;
  3363. function toRawType (value) {
  3364. return _toString.call(value).slice(8, -1)
  3365. }
  3366. /**
  3367. * Strict object type check. Only returns true
  3368. * for plain JavaScript objects.
  3369. */
  3370. function isPlainObject (obj) {
  3371. return _toString.call(obj) === '[object Object]'
  3372. }
  3373. function isRegExp (v) {
  3374. return _toString.call(v) === '[object RegExp]'
  3375. }
  3376. /**
  3377. * Check if val is a valid array index.
  3378. */
  3379. function isValidArrayIndex (val) {
  3380. var n = parseFloat(String(val));
  3381. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3382. }
  3383. function isPromise (val) {
  3384. return (
  3385. isDef(val) &&
  3386. typeof val.then === 'function' &&
  3387. typeof val.catch === 'function'
  3388. )
  3389. }
  3390. /**
  3391. * Convert a value to a string that is actually rendered.
  3392. */
  3393. function toString (val) {
  3394. return val == null
  3395. ? ''
  3396. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3397. ? JSON.stringify(val, null, 2)
  3398. : String(val)
  3399. }
  3400. /**
  3401. * Convert an input value to a number for persistence.
  3402. * If the conversion fails, return original string.
  3403. */
  3404. function toNumber (val) {
  3405. var n = parseFloat(val);
  3406. return isNaN(n) ? val : n
  3407. }
  3408. /**
  3409. * Make a map and return a function for checking if a key
  3410. * is in that map.
  3411. */
  3412. function makeMap (
  3413. str,
  3414. expectsLowerCase
  3415. ) {
  3416. var map = Object.create(null);
  3417. var list = str.split(',');
  3418. for (var i = 0; i < list.length; i++) {
  3419. map[list[i]] = true;
  3420. }
  3421. return expectsLowerCase
  3422. ? function (val) { return map[val.toLowerCase()]; }
  3423. : function (val) { return map[val]; }
  3424. }
  3425. /**
  3426. * Check if a tag is a built-in tag.
  3427. */
  3428. var isBuiltInTag = makeMap('slot,component', true);
  3429. /**
  3430. * Check if an attribute is a reserved attribute.
  3431. */
  3432. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3433. /**
  3434. * Remove an item from an array.
  3435. */
  3436. function remove (arr, item) {
  3437. if (arr.length) {
  3438. var index = arr.indexOf(item);
  3439. if (index > -1) {
  3440. return arr.splice(index, 1)
  3441. }
  3442. }
  3443. }
  3444. /**
  3445. * Check whether an object has the property.
  3446. */
  3447. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3448. function hasOwn (obj, key) {
  3449. return hasOwnProperty.call(obj, key)
  3450. }
  3451. /**
  3452. * Create a cached version of a pure function.
  3453. */
  3454. function cached (fn) {
  3455. var cache = Object.create(null);
  3456. return (function cachedFn (str) {
  3457. var hit = cache[str];
  3458. return hit || (cache[str] = fn(str))
  3459. })
  3460. }
  3461. /**
  3462. * Camelize a hyphen-delimited string.
  3463. */
  3464. var camelizeRE = /-(\w)/g;
  3465. var camelize = cached(function (str) {
  3466. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3467. });
  3468. /**
  3469. * Capitalize a string.
  3470. */
  3471. var capitalize = cached(function (str) {
  3472. return str.charAt(0).toUpperCase() + str.slice(1)
  3473. });
  3474. /**
  3475. * Hyphenate a camelCase string.
  3476. */
  3477. var hyphenateRE = /\B([A-Z])/g;
  3478. var hyphenate = cached(function (str) {
  3479. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3480. });
  3481. /**
  3482. * Simple bind polyfill for environments that do not support it,
  3483. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3484. * since native bind is now performant enough in most browsers.
  3485. * But removing it would mean breaking code that was able to run in
  3486. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3487. */
  3488. /* istanbul ignore next */
  3489. function polyfillBind (fn, ctx) {
  3490. function boundFn (a) {
  3491. var l = arguments.length;
  3492. return l
  3493. ? l > 1
  3494. ? fn.apply(ctx, arguments)
  3495. : fn.call(ctx, a)
  3496. : fn.call(ctx)
  3497. }
  3498. boundFn._length = fn.length;
  3499. return boundFn
  3500. }
  3501. function nativeBind (fn, ctx) {
  3502. return fn.bind(ctx)
  3503. }
  3504. var bind = Function.prototype.bind
  3505. ? nativeBind
  3506. : polyfillBind;
  3507. /**
  3508. * Convert an Array-like object to a real Array.
  3509. */
  3510. function toArray (list, start) {
  3511. start = start || 0;
  3512. var i = list.length - start;
  3513. var ret = new Array(i);
  3514. while (i--) {
  3515. ret[i] = list[i + start];
  3516. }
  3517. return ret
  3518. }
  3519. /**
  3520. * Mix properties into target object.
  3521. */
  3522. function extend (to, _from) {
  3523. for (var key in _from) {
  3524. to[key] = _from[key];
  3525. }
  3526. return to
  3527. }
  3528. /**
  3529. * Merge an Array of Objects into a single Object.
  3530. */
  3531. function toObject (arr) {
  3532. var res = {};
  3533. for (var i = 0; i < arr.length; i++) {
  3534. if (arr[i]) {
  3535. extend(res, arr[i]);
  3536. }
  3537. }
  3538. return res
  3539. }
  3540. /* eslint-disable no-unused-vars */
  3541. /**
  3542. * Perform no operation.
  3543. * Stubbing args to make Flow happy without leaving useless transpiled code
  3544. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3545. */
  3546. function noop (a, b, c) {}
  3547. /**
  3548. * Always return false.
  3549. */
  3550. var no = function (a, b, c) { return false; };
  3551. /* eslint-enable no-unused-vars */
  3552. /**
  3553. * Return the same value.
  3554. */
  3555. var identity = function (_) { return _; };
  3556. /**
  3557. * Check if two values are loosely equal - that is,
  3558. * if they are plain objects, do they have the same shape?
  3559. */
  3560. function looseEqual (a, b) {
  3561. if (a === b) { return true }
  3562. var isObjectA = isObject(a);
  3563. var isObjectB = isObject(b);
  3564. if (isObjectA && isObjectB) {
  3565. try {
  3566. var isArrayA = Array.isArray(a);
  3567. var isArrayB = Array.isArray(b);
  3568. if (isArrayA && isArrayB) {
  3569. return a.length === b.length && a.every(function (e, i) {
  3570. return looseEqual(e, b[i])
  3571. })
  3572. } else if (a instanceof Date && b instanceof Date) {
  3573. return a.getTime() === b.getTime()
  3574. } else if (!isArrayA && !isArrayB) {
  3575. var keysA = Object.keys(a);
  3576. var keysB = Object.keys(b);
  3577. return keysA.length === keysB.length && keysA.every(function (key) {
  3578. return looseEqual(a[key], b[key])
  3579. })
  3580. } else {
  3581. /* istanbul ignore next */
  3582. return false
  3583. }
  3584. } catch (e) {
  3585. /* istanbul ignore next */
  3586. return false
  3587. }
  3588. } else if (!isObjectA && !isObjectB) {
  3589. return String(a) === String(b)
  3590. } else {
  3591. return false
  3592. }
  3593. }
  3594. /**
  3595. * Return the first index at which a loosely equal value can be
  3596. * found in the array (if value is a plain object, the array must
  3597. * contain an object of the same shape), or -1 if it is not present.
  3598. */
  3599. function looseIndexOf (arr, val) {
  3600. for (var i = 0; i < arr.length; i++) {
  3601. if (looseEqual(arr[i], val)) { return i }
  3602. }
  3603. return -1
  3604. }
  3605. /**
  3606. * Ensure a function is called only once.
  3607. */
  3608. function once (fn) {
  3609. var called = false;
  3610. return function () {
  3611. if (!called) {
  3612. called = true;
  3613. fn.apply(this, arguments);
  3614. }
  3615. }
  3616. }
  3617. var ASSET_TYPES = [
  3618. 'component',
  3619. 'directive',
  3620. 'filter'
  3621. ];
  3622. var LIFECYCLE_HOOKS = [
  3623. 'beforeCreate',
  3624. 'created',
  3625. 'beforeMount',
  3626. 'mounted',
  3627. 'beforeUpdate',
  3628. 'updated',
  3629. 'beforeDestroy',
  3630. 'destroyed',
  3631. 'activated',
  3632. 'deactivated',
  3633. 'errorCaptured',
  3634. 'serverPrefetch'
  3635. ];
  3636. /* */
  3637. var config = ({
  3638. /**
  3639. * Option merge strategies (used in core/util/options)
  3640. */
  3641. // $flow-disable-line
  3642. optionMergeStrategies: Object.create(null),
  3643. /**
  3644. * Whether to suppress warnings.
  3645. */
  3646. silent: false,
  3647. /**
  3648. * Show production mode tip message on boot?
  3649. */
  3650. productionTip: "development" !== 'production',
  3651. /**
  3652. * Whether to enable devtools
  3653. */
  3654. devtools: "development" !== 'production',
  3655. /**
  3656. * Whether to record perf
  3657. */
  3658. performance: false,
  3659. /**
  3660. * Error handler for watcher errors
  3661. */
  3662. errorHandler: null,
  3663. /**
  3664. * Warn handler for watcher warns
  3665. */
  3666. warnHandler: null,
  3667. /**
  3668. * Ignore certain custom elements
  3669. */
  3670. ignoredElements: [],
  3671. /**
  3672. * Custom user key aliases for v-on
  3673. */
  3674. // $flow-disable-line
  3675. keyCodes: Object.create(null),
  3676. /**
  3677. * Check if a tag is reserved so that it cannot be registered as a
  3678. * component. This is platform-dependent and may be overwritten.
  3679. */
  3680. isReservedTag: no,
  3681. /**
  3682. * Check if an attribute is reserved so that it cannot be used as a component
  3683. * prop. This is platform-dependent and may be overwritten.
  3684. */
  3685. isReservedAttr: no,
  3686. /**
  3687. * Check if a tag is an unknown element.
  3688. * Platform-dependent.
  3689. */
  3690. isUnknownElement: no,
  3691. /**
  3692. * Get the namespace of an element
  3693. */
  3694. getTagNamespace: noop,
  3695. /**
  3696. * Parse the real tag name for the specific platform.
  3697. */
  3698. parsePlatformTagName: identity,
  3699. /**
  3700. * Check if an attribute must be bound using property, e.g. value
  3701. * Platform-dependent.
  3702. */
  3703. mustUseProp: no,
  3704. /**
  3705. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3706. * This will significantly reduce performance if set to false.
  3707. */
  3708. async: true,
  3709. /**
  3710. * Exposed for legacy reasons
  3711. */
  3712. _lifecycleHooks: LIFECYCLE_HOOKS
  3713. });
  3714. /* */
  3715. /**
  3716. * unicode letters used for parsing html tags, component names and property paths.
  3717. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3718. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3719. */
  3720. 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/;
  3721. /**
  3722. * Check if a string starts with $ or _
  3723. */
  3724. function isReserved (str) {
  3725. var c = (str + '').charCodeAt(0);
  3726. return c === 0x24 || c === 0x5F
  3727. }
  3728. /**
  3729. * Define a property.
  3730. */
  3731. function def (obj, key, val, enumerable) {
  3732. Object.defineProperty(obj, key, {
  3733. value: val,
  3734. enumerable: !!enumerable,
  3735. writable: true,
  3736. configurable: true
  3737. });
  3738. }
  3739. /**
  3740. * Parse simple path.
  3741. */
  3742. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3743. function parsePath (path) {
  3744. if (bailRE.test(path)) {
  3745. return
  3746. }
  3747. var segments = path.split('.');
  3748. return function (obj) {
  3749. for (var i = 0; i < segments.length; i++) {
  3750. if (!obj) { return }
  3751. obj = obj[segments[i]];
  3752. }
  3753. return obj
  3754. }
  3755. }
  3756. /* */
  3757. // can we use __proto__?
  3758. var hasProto = '__proto__' in {};
  3759. // Browser environment sniffing
  3760. var inBrowser = typeof window !== 'undefined';
  3761. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3762. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3763. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  3764. var isIE = UA && /msie|trident/.test(UA);
  3765. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3766. var isEdge = UA && UA.indexOf('edge/') > 0;
  3767. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3768. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3769. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3770. var isPhantomJS = UA && /phantomjs/.test(UA);
  3771. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3772. // Firefox has a "watch" function on Object.prototype...
  3773. var nativeWatch = ({}).watch;
  3774. if (inBrowser) {
  3775. try {
  3776. var opts = {};
  3777. Object.defineProperty(opts, 'passive', ({
  3778. get: function get () {
  3779. }
  3780. })); // https://github.com/facebook/flow/issues/285
  3781. window.addEventListener('test-passive', null, opts);
  3782. } catch (e) {}
  3783. }
  3784. // this needs to be lazy-evaled because vue may be required before
  3785. // vue-server-renderer can set VUE_ENV
  3786. var _isServer;
  3787. var isServerRendering = function () {
  3788. if (_isServer === undefined) {
  3789. /* istanbul ignore if */
  3790. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3791. // detect presence of vue-server-renderer and avoid
  3792. // Webpack shimming the process
  3793. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3794. } else {
  3795. _isServer = false;
  3796. }
  3797. }
  3798. return _isServer
  3799. };
  3800. // detect devtools
  3801. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3802. /* istanbul ignore next */
  3803. function isNative (Ctor) {
  3804. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3805. }
  3806. var hasSymbol =
  3807. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3808. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3809. var _Set;
  3810. /* istanbul ignore if */ // $flow-disable-line
  3811. if (typeof Set !== 'undefined' && isNative(Set)) {
  3812. // use native Set when available.
  3813. _Set = Set;
  3814. } else {
  3815. // a non-standard Set polyfill that only works with primitive keys.
  3816. _Set = /*@__PURE__*/(function () {
  3817. function Set () {
  3818. this.set = Object.create(null);
  3819. }
  3820. Set.prototype.has = function has (key) {
  3821. return this.set[key] === true
  3822. };
  3823. Set.prototype.add = function add (key) {
  3824. this.set[key] = true;
  3825. };
  3826. Set.prototype.clear = function clear () {
  3827. this.set = Object.create(null);
  3828. };
  3829. return Set;
  3830. }());
  3831. }
  3832. /* */
  3833. var warn = noop;
  3834. var tip = noop;
  3835. var generateComponentTrace = (noop); // work around flow check
  3836. var formatComponentName = (noop);
  3837. if (true) {
  3838. var hasConsole = typeof console !== 'undefined';
  3839. var classifyRE = /(?:^|[-_])(\w)/g;
  3840. var classify = function (str) { return str
  3841. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3842. .replace(/[-_]/g, ''); };
  3843. warn = function (msg, vm) {
  3844. var trace = vm ? generateComponentTrace(vm) : '';
  3845. if (config.warnHandler) {
  3846. config.warnHandler.call(null, msg, vm, trace);
  3847. } else if (hasConsole && (!config.silent)) {
  3848. console.error(("[Vue warn]: " + msg + trace));
  3849. }
  3850. };
  3851. tip = function (msg, vm) {
  3852. if (hasConsole && (!config.silent)) {
  3853. console.warn("[Vue tip]: " + msg + (
  3854. vm ? generateComponentTrace(vm) : ''
  3855. ));
  3856. }
  3857. };
  3858. formatComponentName = function (vm, includeFile) {
  3859. if (vm.$root === vm) {
  3860. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3861. return ('') + vm.$options.__file
  3862. }
  3863. return '<Root>'
  3864. }
  3865. var options = typeof vm === 'function' && vm.cid != null
  3866. ? vm.options
  3867. : vm._isVue
  3868. ? vm.$options || vm.constructor.options
  3869. : vm;
  3870. var name = options.name || options._componentTag;
  3871. var file = options.__file;
  3872. if (!name && file) {
  3873. var match = file.match(/([^/\\]+)\.vue$/);
  3874. name = match && match[1];
  3875. }
  3876. return (
  3877. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3878. (file && includeFile !== false ? (" at " + file) : '')
  3879. )
  3880. };
  3881. var repeat = function (str, n) {
  3882. var res = '';
  3883. while (n) {
  3884. if (n % 2 === 1) { res += str; }
  3885. if (n > 1) { str += str; }
  3886. n >>= 1;
  3887. }
  3888. return res
  3889. };
  3890. generateComponentTrace = function (vm) {
  3891. if (vm._isVue && vm.$parent) {
  3892. var tree = [];
  3893. var currentRecursiveSequence = 0;
  3894. while (vm && vm.$options.name !== 'PageBody') {
  3895. if (tree.length > 0) {
  3896. var last = tree[tree.length - 1];
  3897. if (last.constructor === vm.constructor) {
  3898. currentRecursiveSequence++;
  3899. vm = vm.$parent;
  3900. continue
  3901. } else if (currentRecursiveSequence > 0) {
  3902. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3903. currentRecursiveSequence = 0;
  3904. }
  3905. }
  3906. !vm.$options.isReserved && tree.push(vm);
  3907. vm = vm.$parent;
  3908. }
  3909. return '\n\nfound in\n\n' + tree
  3910. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3911. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3912. : formatComponentName(vm))); })
  3913. .join('\n')
  3914. } else {
  3915. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3916. }
  3917. };
  3918. }
  3919. /* */
  3920. var uid = 0;
  3921. /**
  3922. * A dep is an observable that can have multiple
  3923. * directives subscribing to it.
  3924. */
  3925. var Dep = function Dep () {
  3926. this.id = uid++;
  3927. this.subs = [];
  3928. };
  3929. Dep.prototype.addSub = function addSub (sub) {
  3930. this.subs.push(sub);
  3931. };
  3932. Dep.prototype.removeSub = function removeSub (sub) {
  3933. remove(this.subs, sub);
  3934. };
  3935. Dep.prototype.depend = function depend () {
  3936. if (Dep.SharedObject.target) {
  3937. Dep.SharedObject.target.addDep(this);
  3938. }
  3939. };
  3940. Dep.prototype.notify = function notify () {
  3941. // stabilize the subscriber list first
  3942. var subs = this.subs.slice();
  3943. if ( true && !config.async) {
  3944. // subs aren't sorted in scheduler if not running async
  3945. // we need to sort them now to make sure they fire in correct
  3946. // order
  3947. subs.sort(function (a, b) { return a.id - b.id; });
  3948. }
  3949. for (var i = 0, l = subs.length; i < l; i++) {
  3950. subs[i].update();
  3951. }
  3952. };
  3953. // The current target watcher being evaluated.
  3954. // This is globally unique because only one watcher
  3955. // can be evaluated at a time.
  3956. // fixed by xxxxxx (nvue shared vuex)
  3957. /* eslint-disable no-undef */
  3958. Dep.SharedObject = {};
  3959. Dep.SharedObject.target = null;
  3960. Dep.SharedObject.targetStack = [];
  3961. function pushTarget (target) {
  3962. Dep.SharedObject.targetStack.push(target);
  3963. Dep.SharedObject.target = target;
  3964. Dep.target = target;
  3965. }
  3966. function popTarget () {
  3967. Dep.SharedObject.targetStack.pop();
  3968. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3969. Dep.target = Dep.SharedObject.target;
  3970. }
  3971. /* */
  3972. var VNode = function VNode (
  3973. tag,
  3974. data,
  3975. children,
  3976. text,
  3977. elm,
  3978. context,
  3979. componentOptions,
  3980. asyncFactory
  3981. ) {
  3982. this.tag = tag;
  3983. this.data = data;
  3984. this.children = children;
  3985. this.text = text;
  3986. this.elm = elm;
  3987. this.ns = undefined;
  3988. this.context = context;
  3989. this.fnContext = undefined;
  3990. this.fnOptions = undefined;
  3991. this.fnScopeId = undefined;
  3992. this.key = data && data.key;
  3993. this.componentOptions = componentOptions;
  3994. this.componentInstance = undefined;
  3995. this.parent = undefined;
  3996. this.raw = false;
  3997. this.isStatic = false;
  3998. this.isRootInsert = true;
  3999. this.isComment = false;
  4000. this.isCloned = false;
  4001. this.isOnce = false;
  4002. this.asyncFactory = asyncFactory;
  4003. this.asyncMeta = undefined;
  4004. this.isAsyncPlaceholder = false;
  4005. };
  4006. var prototypeAccessors = { child: { configurable: true } };
  4007. // DEPRECATED: alias for componentInstance for backwards compat.
  4008. /* istanbul ignore next */
  4009. prototypeAccessors.child.get = function () {
  4010. return this.componentInstance
  4011. };
  4012. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4013. var createEmptyVNode = function (text) {
  4014. if ( text === void 0 ) text = '';
  4015. var node = new VNode();
  4016. node.text = text;
  4017. node.isComment = true;
  4018. return node
  4019. };
  4020. function createTextVNode (val) {
  4021. return new VNode(undefined, undefined, undefined, String(val))
  4022. }
  4023. // optimized shallow clone
  4024. // used for static nodes and slot nodes because they may be reused across
  4025. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4026. // on their elm reference.
  4027. function cloneVNode (vnode) {
  4028. var cloned = new VNode(
  4029. vnode.tag,
  4030. vnode.data,
  4031. // #7975
  4032. // clone children array to avoid mutating original in case of cloning
  4033. // a child.
  4034. vnode.children && vnode.children.slice(),
  4035. vnode.text,
  4036. vnode.elm,
  4037. vnode.context,
  4038. vnode.componentOptions,
  4039. vnode.asyncFactory
  4040. );
  4041. cloned.ns = vnode.ns;
  4042. cloned.isStatic = vnode.isStatic;
  4043. cloned.key = vnode.key;
  4044. cloned.isComment = vnode.isComment;
  4045. cloned.fnContext = vnode.fnContext;
  4046. cloned.fnOptions = vnode.fnOptions;
  4047. cloned.fnScopeId = vnode.fnScopeId;
  4048. cloned.asyncMeta = vnode.asyncMeta;
  4049. cloned.isCloned = true;
  4050. return cloned
  4051. }
  4052. /*
  4053. * not type checking this file because flow doesn't play well with
  4054. * dynamically accessing methods on Array prototype
  4055. */
  4056. var arrayProto = Array.prototype;
  4057. var arrayMethods = Object.create(arrayProto);
  4058. var methodsToPatch = [
  4059. 'push',
  4060. 'pop',
  4061. 'shift',
  4062. 'unshift',
  4063. 'splice',
  4064. 'sort',
  4065. 'reverse'
  4066. ];
  4067. /**
  4068. * Intercept mutating methods and emit events
  4069. */
  4070. methodsToPatch.forEach(function (method) {
  4071. // cache original method
  4072. var original = arrayProto[method];
  4073. def(arrayMethods, method, function mutator () {
  4074. var args = [], len = arguments.length;
  4075. while ( len-- ) args[ len ] = arguments[ len ];
  4076. var result = original.apply(this, args);
  4077. var ob = this.__ob__;
  4078. var inserted;
  4079. switch (method) {
  4080. case 'push':
  4081. case 'unshift':
  4082. inserted = args;
  4083. break
  4084. case 'splice':
  4085. inserted = args.slice(2);
  4086. break
  4087. }
  4088. if (inserted) { ob.observeArray(inserted); }
  4089. // notify change
  4090. ob.dep.notify();
  4091. return result
  4092. });
  4093. });
  4094. /* */
  4095. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4096. /**
  4097. * In some cases we may want to disable observation inside a component's
  4098. * update computation.
  4099. */
  4100. var shouldObserve = true;
  4101. function toggleObserving (value) {
  4102. shouldObserve = value;
  4103. }
  4104. /**
  4105. * Observer class that is attached to each observed
  4106. * object. Once attached, the observer converts the target
  4107. * object's property keys into getter/setters that
  4108. * collect dependencies and dispatch updates.
  4109. */
  4110. var Observer = function Observer (value) {
  4111. this.value = value;
  4112. this.dep = new Dep();
  4113. this.vmCount = 0;
  4114. def(value, '__ob__', this);
  4115. if (Array.isArray(value)) {
  4116. if (hasProto) {
  4117. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4118. if(value.push !== value.__proto__.push){
  4119. copyAugment(value, arrayMethods, arrayKeys);
  4120. } else {
  4121. protoAugment(value, arrayMethods);
  4122. }
  4123. }
  4124. } else {
  4125. copyAugment(value, arrayMethods, arrayKeys);
  4126. }
  4127. this.observeArray(value);
  4128. } else {
  4129. this.walk(value);
  4130. }
  4131. };
  4132. /**
  4133. * Walk through all properties and convert them into
  4134. * getter/setters. This method should only be called when
  4135. * value type is Object.
  4136. */
  4137. Observer.prototype.walk = function walk (obj) {
  4138. var keys = Object.keys(obj);
  4139. for (var i = 0; i < keys.length; i++) {
  4140. defineReactive$$1(obj, keys[i]);
  4141. }
  4142. };
  4143. /**
  4144. * Observe a list of Array items.
  4145. */
  4146. Observer.prototype.observeArray = function observeArray (items) {
  4147. for (var i = 0, l = items.length; i < l; i++) {
  4148. observe(items[i]);
  4149. }
  4150. };
  4151. // helpers
  4152. /**
  4153. * Augment a target Object or Array by intercepting
  4154. * the prototype chain using __proto__
  4155. */
  4156. function protoAugment (target, src) {
  4157. /* eslint-disable no-proto */
  4158. target.__proto__ = src;
  4159. /* eslint-enable no-proto */
  4160. }
  4161. /**
  4162. * Augment a target Object or Array by defining
  4163. * hidden properties.
  4164. */
  4165. /* istanbul ignore next */
  4166. function copyAugment (target, src, keys) {
  4167. for (var i = 0, l = keys.length; i < l; i++) {
  4168. var key = keys[i];
  4169. def(target, key, src[key]);
  4170. }
  4171. }
  4172. /**
  4173. * Attempt to create an observer instance for a value,
  4174. * returns the new observer if successfully observed,
  4175. * or the existing observer if the value already has one.
  4176. */
  4177. function observe (value, asRootData) {
  4178. if (!isObject(value) || value instanceof VNode) {
  4179. return
  4180. }
  4181. var ob;
  4182. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4183. ob = value.__ob__;
  4184. } else if (
  4185. shouldObserve &&
  4186. !isServerRendering() &&
  4187. (Array.isArray(value) || isPlainObject(value)) &&
  4188. Object.isExtensible(value) &&
  4189. !value._isVue &&
  4190. !value.__v_isMPComponent
  4191. ) {
  4192. ob = new Observer(value);
  4193. }
  4194. if (asRootData && ob) {
  4195. ob.vmCount++;
  4196. }
  4197. return ob
  4198. }
  4199. /**
  4200. * Define a reactive property on an Object.
  4201. */
  4202. function defineReactive$$1 (
  4203. obj,
  4204. key,
  4205. val,
  4206. customSetter,
  4207. shallow
  4208. ) {
  4209. var dep = new Dep();
  4210. var property = Object.getOwnPropertyDescriptor(obj, key);
  4211. if (property && property.configurable === false) {
  4212. return
  4213. }
  4214. // cater for pre-defined getter/setters
  4215. var getter = property && property.get;
  4216. var setter = property && property.set;
  4217. if ((!getter || setter) && arguments.length === 2) {
  4218. val = obj[key];
  4219. }
  4220. var childOb = !shallow && observe(val);
  4221. Object.defineProperty(obj, key, {
  4222. enumerable: true,
  4223. configurable: true,
  4224. get: function reactiveGetter () {
  4225. var value = getter ? getter.call(obj) : val;
  4226. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4227. dep.depend();
  4228. if (childOb) {
  4229. childOb.dep.depend();
  4230. if (Array.isArray(value)) {
  4231. dependArray(value);
  4232. }
  4233. }
  4234. }
  4235. return value
  4236. },
  4237. set: function reactiveSetter (newVal) {
  4238. var value = getter ? getter.call(obj) : val;
  4239. /* eslint-disable no-self-compare */
  4240. if (newVal === value || (newVal !== newVal && value !== value)) {
  4241. return
  4242. }
  4243. /* eslint-enable no-self-compare */
  4244. if ( true && customSetter) {
  4245. customSetter();
  4246. }
  4247. // #7981: for accessor properties without setter
  4248. if (getter && !setter) { return }
  4249. if (setter) {
  4250. setter.call(obj, newVal);
  4251. } else {
  4252. val = newVal;
  4253. }
  4254. childOb = !shallow && observe(newVal);
  4255. dep.notify();
  4256. }
  4257. });
  4258. }
  4259. /**
  4260. * Set a property on an object. Adds the new property and
  4261. * triggers change notification if the property doesn't
  4262. * already exist.
  4263. */
  4264. function set (target, key, val) {
  4265. if ( true &&
  4266. (isUndef(target) || isPrimitive(target))
  4267. ) {
  4268. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4269. }
  4270. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4271. target.length = Math.max(target.length, key);
  4272. target.splice(key, 1, val);
  4273. return val
  4274. }
  4275. if (key in target && !(key in Object.prototype)) {
  4276. target[key] = val;
  4277. return val
  4278. }
  4279. var ob = (target).__ob__;
  4280. if (target._isVue || (ob && ob.vmCount)) {
  4281. true && warn(
  4282. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4283. 'at runtime - declare it upfront in the data option.'
  4284. );
  4285. return val
  4286. }
  4287. if (!ob) {
  4288. target[key] = val;
  4289. return val
  4290. }
  4291. defineReactive$$1(ob.value, key, val);
  4292. ob.dep.notify();
  4293. return val
  4294. }
  4295. /**
  4296. * Delete a property and trigger change if necessary.
  4297. */
  4298. function del (target, key) {
  4299. if ( true &&
  4300. (isUndef(target) || isPrimitive(target))
  4301. ) {
  4302. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4303. }
  4304. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4305. target.splice(key, 1);
  4306. return
  4307. }
  4308. var ob = (target).__ob__;
  4309. if (target._isVue || (ob && ob.vmCount)) {
  4310. true && warn(
  4311. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4312. '- just set it to null.'
  4313. );
  4314. return
  4315. }
  4316. if (!hasOwn(target, key)) {
  4317. return
  4318. }
  4319. delete target[key];
  4320. if (!ob) {
  4321. return
  4322. }
  4323. ob.dep.notify();
  4324. }
  4325. /**
  4326. * Collect dependencies on array elements when the array is touched, since
  4327. * we cannot intercept array element access like property getters.
  4328. */
  4329. function dependArray (value) {
  4330. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4331. e = value[i];
  4332. e && e.__ob__ && e.__ob__.dep.depend();
  4333. if (Array.isArray(e)) {
  4334. dependArray(e);
  4335. }
  4336. }
  4337. }
  4338. /* */
  4339. /**
  4340. * Option overwriting strategies are functions that handle
  4341. * how to merge a parent option value and a child option
  4342. * value into the final value.
  4343. */
  4344. var strats = config.optionMergeStrategies;
  4345. /**
  4346. * Options with restrictions
  4347. */
  4348. if (true) {
  4349. strats.el = strats.propsData = function (parent, child, vm, key) {
  4350. if (!vm) {
  4351. warn(
  4352. "option \"" + key + "\" can only be used during instance " +
  4353. 'creation with the `new` keyword.'
  4354. );
  4355. }
  4356. return defaultStrat(parent, child)
  4357. };
  4358. }
  4359. /**
  4360. * Helper that recursively merges two data objects together.
  4361. */
  4362. function mergeData (to, from) {
  4363. if (!from) { return to }
  4364. var key, toVal, fromVal;
  4365. var keys = hasSymbol
  4366. ? Reflect.ownKeys(from)
  4367. : Object.keys(from);
  4368. for (var i = 0; i < keys.length; i++) {
  4369. key = keys[i];
  4370. // in case the object is already observed...
  4371. if (key === '__ob__') { continue }
  4372. toVal = to[key];
  4373. fromVal = from[key];
  4374. if (!hasOwn(to, key)) {
  4375. set(to, key, fromVal);
  4376. } else if (
  4377. toVal !== fromVal &&
  4378. isPlainObject(toVal) &&
  4379. isPlainObject(fromVal)
  4380. ) {
  4381. mergeData(toVal, fromVal);
  4382. }
  4383. }
  4384. return to
  4385. }
  4386. /**
  4387. * Data
  4388. */
  4389. function mergeDataOrFn (
  4390. parentVal,
  4391. childVal,
  4392. vm
  4393. ) {
  4394. if (!vm) {
  4395. // in a Vue.extend merge, both should be functions
  4396. if (!childVal) {
  4397. return parentVal
  4398. }
  4399. if (!parentVal) {
  4400. return childVal
  4401. }
  4402. // when parentVal & childVal are both present,
  4403. // we need to return a function that returns the
  4404. // merged result of both functions... no need to
  4405. // check if parentVal is a function here because
  4406. // it has to be a function to pass previous merges.
  4407. return function mergedDataFn () {
  4408. return mergeData(
  4409. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4410. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4411. )
  4412. }
  4413. } else {
  4414. return function mergedInstanceDataFn () {
  4415. // instance merge
  4416. var instanceData = typeof childVal === 'function'
  4417. ? childVal.call(vm, vm)
  4418. : childVal;
  4419. var defaultData = typeof parentVal === 'function'
  4420. ? parentVal.call(vm, vm)
  4421. : parentVal;
  4422. if (instanceData) {
  4423. return mergeData(instanceData, defaultData)
  4424. } else {
  4425. return defaultData
  4426. }
  4427. }
  4428. }
  4429. }
  4430. strats.data = function (
  4431. parentVal,
  4432. childVal,
  4433. vm
  4434. ) {
  4435. if (!vm) {
  4436. if (childVal && typeof childVal !== 'function') {
  4437. true && warn(
  4438. 'The "data" option should be a function ' +
  4439. 'that returns a per-instance value in component ' +
  4440. 'definitions.',
  4441. vm
  4442. );
  4443. return parentVal
  4444. }
  4445. return mergeDataOrFn(parentVal, childVal)
  4446. }
  4447. return mergeDataOrFn(parentVal, childVal, vm)
  4448. };
  4449. /**
  4450. * Hooks and props are merged as arrays.
  4451. */
  4452. function mergeHook (
  4453. parentVal,
  4454. childVal
  4455. ) {
  4456. var res = childVal
  4457. ? parentVal
  4458. ? parentVal.concat(childVal)
  4459. : Array.isArray(childVal)
  4460. ? childVal
  4461. : [childVal]
  4462. : parentVal;
  4463. return res
  4464. ? dedupeHooks(res)
  4465. : res
  4466. }
  4467. function dedupeHooks (hooks) {
  4468. var res = [];
  4469. for (var i = 0; i < hooks.length; i++) {
  4470. if (res.indexOf(hooks[i]) === -1) {
  4471. res.push(hooks[i]);
  4472. }
  4473. }
  4474. return res
  4475. }
  4476. LIFECYCLE_HOOKS.forEach(function (hook) {
  4477. strats[hook] = mergeHook;
  4478. });
  4479. /**
  4480. * Assets
  4481. *
  4482. * When a vm is present (instance creation), we need to do
  4483. * a three-way merge between constructor options, instance
  4484. * options and parent options.
  4485. */
  4486. function mergeAssets (
  4487. parentVal,
  4488. childVal,
  4489. vm,
  4490. key
  4491. ) {
  4492. var res = Object.create(parentVal || null);
  4493. if (childVal) {
  4494. true && assertObjectType(key, childVal, vm);
  4495. return extend(res, childVal)
  4496. } else {
  4497. return res
  4498. }
  4499. }
  4500. ASSET_TYPES.forEach(function (type) {
  4501. strats[type + 's'] = mergeAssets;
  4502. });
  4503. /**
  4504. * Watchers.
  4505. *
  4506. * Watchers hashes should not overwrite one
  4507. * another, so we merge them as arrays.
  4508. */
  4509. strats.watch = function (
  4510. parentVal,
  4511. childVal,
  4512. vm,
  4513. key
  4514. ) {
  4515. // work around Firefox's Object.prototype.watch...
  4516. if (parentVal === nativeWatch) { parentVal = undefined; }
  4517. if (childVal === nativeWatch) { childVal = undefined; }
  4518. /* istanbul ignore if */
  4519. if (!childVal) { return Object.create(parentVal || null) }
  4520. if (true) {
  4521. assertObjectType(key, childVal, vm);
  4522. }
  4523. if (!parentVal) { return childVal }
  4524. var ret = {};
  4525. extend(ret, parentVal);
  4526. for (var key$1 in childVal) {
  4527. var parent = ret[key$1];
  4528. var child = childVal[key$1];
  4529. if (parent && !Array.isArray(parent)) {
  4530. parent = [parent];
  4531. }
  4532. ret[key$1] = parent
  4533. ? parent.concat(child)
  4534. : Array.isArray(child) ? child : [child];
  4535. }
  4536. return ret
  4537. };
  4538. /**
  4539. * Other object hashes.
  4540. */
  4541. strats.props =
  4542. strats.methods =
  4543. strats.inject =
  4544. strats.computed = function (
  4545. parentVal,
  4546. childVal,
  4547. vm,
  4548. key
  4549. ) {
  4550. if (childVal && "development" !== 'production') {
  4551. assertObjectType(key, childVal, vm);
  4552. }
  4553. if (!parentVal) { return childVal }
  4554. var ret = Object.create(null);
  4555. extend(ret, parentVal);
  4556. if (childVal) { extend(ret, childVal); }
  4557. return ret
  4558. };
  4559. strats.provide = mergeDataOrFn;
  4560. /**
  4561. * Default strategy.
  4562. */
  4563. var defaultStrat = function (parentVal, childVal) {
  4564. return childVal === undefined
  4565. ? parentVal
  4566. : childVal
  4567. };
  4568. /**
  4569. * Validate component names
  4570. */
  4571. function checkComponents (options) {
  4572. for (var key in options.components) {
  4573. validateComponentName(key);
  4574. }
  4575. }
  4576. function validateComponentName (name) {
  4577. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4578. warn(
  4579. 'Invalid component name: "' + name + '". Component names ' +
  4580. 'should conform to valid custom element name in html5 specification.'
  4581. );
  4582. }
  4583. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4584. warn(
  4585. 'Do not use built-in or reserved HTML elements as component ' +
  4586. 'id: ' + name
  4587. );
  4588. }
  4589. }
  4590. /**
  4591. * Ensure all props option syntax are normalized into the
  4592. * Object-based format.
  4593. */
  4594. function normalizeProps (options, vm) {
  4595. var props = options.props;
  4596. if (!props) { return }
  4597. var res = {};
  4598. var i, val, name;
  4599. if (Array.isArray(props)) {
  4600. i = props.length;
  4601. while (i--) {
  4602. val = props[i];
  4603. if (typeof val === 'string') {
  4604. name = camelize(val);
  4605. res[name] = { type: null };
  4606. } else if (true) {
  4607. warn('props must be strings when using array syntax.');
  4608. }
  4609. }
  4610. } else if (isPlainObject(props)) {
  4611. for (var key in props) {
  4612. val = props[key];
  4613. name = camelize(key);
  4614. res[name] = isPlainObject(val)
  4615. ? val
  4616. : { type: val };
  4617. }
  4618. } else if (true) {
  4619. warn(
  4620. "Invalid value for option \"props\": expected an Array or an Object, " +
  4621. "but got " + (toRawType(props)) + ".",
  4622. vm
  4623. );
  4624. }
  4625. options.props = res;
  4626. }
  4627. /**
  4628. * Normalize all injections into Object-based format
  4629. */
  4630. function normalizeInject (options, vm) {
  4631. var inject = options.inject;
  4632. if (!inject) { return }
  4633. var normalized = options.inject = {};
  4634. if (Array.isArray(inject)) {
  4635. for (var i = 0; i < inject.length; i++) {
  4636. normalized[inject[i]] = { from: inject[i] };
  4637. }
  4638. } else if (isPlainObject(inject)) {
  4639. for (var key in inject) {
  4640. var val = inject[key];
  4641. normalized[key] = isPlainObject(val)
  4642. ? extend({ from: key }, val)
  4643. : { from: val };
  4644. }
  4645. } else if (true) {
  4646. warn(
  4647. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4648. "but got " + (toRawType(inject)) + ".",
  4649. vm
  4650. );
  4651. }
  4652. }
  4653. /**
  4654. * Normalize raw function directives into object format.
  4655. */
  4656. function normalizeDirectives (options) {
  4657. var dirs = options.directives;
  4658. if (dirs) {
  4659. for (var key in dirs) {
  4660. var def$$1 = dirs[key];
  4661. if (typeof def$$1 === 'function') {
  4662. dirs[key] = { bind: def$$1, update: def$$1 };
  4663. }
  4664. }
  4665. }
  4666. }
  4667. function assertObjectType (name, value, vm) {
  4668. if (!isPlainObject(value)) {
  4669. warn(
  4670. "Invalid value for option \"" + name + "\": expected an Object, " +
  4671. "but got " + (toRawType(value)) + ".",
  4672. vm
  4673. );
  4674. }
  4675. }
  4676. /**
  4677. * Merge two option objects into a new one.
  4678. * Core utility used in both instantiation and inheritance.
  4679. */
  4680. function mergeOptions (
  4681. parent,
  4682. child,
  4683. vm
  4684. ) {
  4685. if (true) {
  4686. checkComponents(child);
  4687. }
  4688. if (typeof child === 'function') {
  4689. child = child.options;
  4690. }
  4691. normalizeProps(child, vm);
  4692. normalizeInject(child, vm);
  4693. normalizeDirectives(child);
  4694. // Apply extends and mixins on the child options,
  4695. // but only if it is a raw options object that isn't
  4696. // the result of another mergeOptions call.
  4697. // Only merged options has the _base property.
  4698. if (!child._base) {
  4699. if (child.extends) {
  4700. parent = mergeOptions(parent, child.extends, vm);
  4701. }
  4702. if (child.mixins) {
  4703. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4704. parent = mergeOptions(parent, child.mixins[i], vm);
  4705. }
  4706. }
  4707. }
  4708. var options = {};
  4709. var key;
  4710. for (key in parent) {
  4711. mergeField(key);
  4712. }
  4713. for (key in child) {
  4714. if (!hasOwn(parent, key)) {
  4715. mergeField(key);
  4716. }
  4717. }
  4718. function mergeField (key) {
  4719. var strat = strats[key] || defaultStrat;
  4720. options[key] = strat(parent[key], child[key], vm, key);
  4721. }
  4722. return options
  4723. }
  4724. /**
  4725. * Resolve an asset.
  4726. * This function is used because child instances need access
  4727. * to assets defined in its ancestor chain.
  4728. */
  4729. function resolveAsset (
  4730. options,
  4731. type,
  4732. id,
  4733. warnMissing
  4734. ) {
  4735. /* istanbul ignore if */
  4736. if (typeof id !== 'string') {
  4737. return
  4738. }
  4739. var assets = options[type];
  4740. // check local registration variations first
  4741. if (hasOwn(assets, id)) { return assets[id] }
  4742. var camelizedId = camelize(id);
  4743. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4744. var PascalCaseId = capitalize(camelizedId);
  4745. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4746. // fallback to prototype chain
  4747. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4748. if ( true && warnMissing && !res) {
  4749. warn(
  4750. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4751. options
  4752. );
  4753. }
  4754. return res
  4755. }
  4756. /* */
  4757. function validateProp (
  4758. key,
  4759. propOptions,
  4760. propsData,
  4761. vm
  4762. ) {
  4763. var prop = propOptions[key];
  4764. var absent = !hasOwn(propsData, key);
  4765. var value = propsData[key];
  4766. // boolean casting
  4767. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4768. if (booleanIndex > -1) {
  4769. if (absent && !hasOwn(prop, 'default')) {
  4770. value = false;
  4771. } else if (value === '' || value === hyphenate(key)) {
  4772. // only cast empty string / same name to boolean if
  4773. // boolean has higher priority
  4774. var stringIndex = getTypeIndex(String, prop.type);
  4775. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4776. value = true;
  4777. }
  4778. }
  4779. }
  4780. // check default value
  4781. if (value === undefined) {
  4782. value = getPropDefaultValue(vm, prop, key);
  4783. // since the default value is a fresh copy,
  4784. // make sure to observe it.
  4785. var prevShouldObserve = shouldObserve;
  4786. toggleObserving(true);
  4787. observe(value);
  4788. toggleObserving(prevShouldObserve);
  4789. }
  4790. if (
  4791. true
  4792. ) {
  4793. assertProp(prop, key, value, vm, absent);
  4794. }
  4795. return value
  4796. }
  4797. /**
  4798. * Get the default value of a prop.
  4799. */
  4800. function getPropDefaultValue (vm, prop, key) {
  4801. // no default, return undefined
  4802. if (!hasOwn(prop, 'default')) {
  4803. return undefined
  4804. }
  4805. var def = prop.default;
  4806. // warn against non-factory defaults for Object & Array
  4807. if ( true && isObject(def)) {
  4808. warn(
  4809. 'Invalid default value for prop "' + key + '": ' +
  4810. 'Props with type Object/Array must use a factory function ' +
  4811. 'to return the default value.',
  4812. vm
  4813. );
  4814. }
  4815. // the raw prop value was also undefined from previous render,
  4816. // return previous default value to avoid unnecessary watcher trigger
  4817. if (vm && vm.$options.propsData &&
  4818. vm.$options.propsData[key] === undefined &&
  4819. vm._props[key] !== undefined
  4820. ) {
  4821. return vm._props[key]
  4822. }
  4823. // call factory function for non-Function types
  4824. // a value is Function if its prototype is function even across different execution context
  4825. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4826. ? def.call(vm)
  4827. : def
  4828. }
  4829. /**
  4830. * Assert whether a prop is valid.
  4831. */
  4832. function assertProp (
  4833. prop,
  4834. name,
  4835. value,
  4836. vm,
  4837. absent
  4838. ) {
  4839. if (prop.required && absent) {
  4840. warn(
  4841. 'Missing required prop: "' + name + '"',
  4842. vm
  4843. );
  4844. return
  4845. }
  4846. if (value == null && !prop.required) {
  4847. return
  4848. }
  4849. var type = prop.type;
  4850. var valid = !type || type === true;
  4851. var expectedTypes = [];
  4852. if (type) {
  4853. if (!Array.isArray(type)) {
  4854. type = [type];
  4855. }
  4856. for (var i = 0; i < type.length && !valid; i++) {
  4857. var assertedType = assertType(value, type[i]);
  4858. expectedTypes.push(assertedType.expectedType || '');
  4859. valid = assertedType.valid;
  4860. }
  4861. }
  4862. if (!valid) {
  4863. warn(
  4864. getInvalidTypeMessage(name, value, expectedTypes),
  4865. vm
  4866. );
  4867. return
  4868. }
  4869. var validator = prop.validator;
  4870. if (validator) {
  4871. if (!validator(value)) {
  4872. warn(
  4873. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4874. vm
  4875. );
  4876. }
  4877. }
  4878. }
  4879. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4880. function assertType (value, type) {
  4881. var valid;
  4882. var expectedType = getType(type);
  4883. if (simpleCheckRE.test(expectedType)) {
  4884. var t = typeof value;
  4885. valid = t === expectedType.toLowerCase();
  4886. // for primitive wrapper objects
  4887. if (!valid && t === 'object') {
  4888. valid = value instanceof type;
  4889. }
  4890. } else if (expectedType === 'Object') {
  4891. valid = isPlainObject(value);
  4892. } else if (expectedType === 'Array') {
  4893. valid = Array.isArray(value);
  4894. } else {
  4895. valid = value instanceof type;
  4896. }
  4897. return {
  4898. valid: valid,
  4899. expectedType: expectedType
  4900. }
  4901. }
  4902. /**
  4903. * Use function string name to check built-in types,
  4904. * because a simple equality check will fail when running
  4905. * across different vms / iframes.
  4906. */
  4907. function getType (fn) {
  4908. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4909. return match ? match[1] : ''
  4910. }
  4911. function isSameType (a, b) {
  4912. return getType(a) === getType(b)
  4913. }
  4914. function getTypeIndex (type, expectedTypes) {
  4915. if (!Array.isArray(expectedTypes)) {
  4916. return isSameType(expectedTypes, type) ? 0 : -1
  4917. }
  4918. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4919. if (isSameType(expectedTypes[i], type)) {
  4920. return i
  4921. }
  4922. }
  4923. return -1
  4924. }
  4925. function getInvalidTypeMessage (name, value, expectedTypes) {
  4926. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4927. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4928. var expectedType = expectedTypes[0];
  4929. var receivedType = toRawType(value);
  4930. var expectedValue = styleValue(value, expectedType);
  4931. var receivedValue = styleValue(value, receivedType);
  4932. // check if we need to specify expected value
  4933. if (expectedTypes.length === 1 &&
  4934. isExplicable(expectedType) &&
  4935. !isBoolean(expectedType, receivedType)) {
  4936. message += " with value " + expectedValue;
  4937. }
  4938. message += ", got " + receivedType + " ";
  4939. // check if we need to specify received value
  4940. if (isExplicable(receivedType)) {
  4941. message += "with value " + receivedValue + ".";
  4942. }
  4943. return message
  4944. }
  4945. function styleValue (value, type) {
  4946. if (type === 'String') {
  4947. return ("\"" + value + "\"")
  4948. } else if (type === 'Number') {
  4949. return ("" + (Number(value)))
  4950. } else {
  4951. return ("" + value)
  4952. }
  4953. }
  4954. function isExplicable (value) {
  4955. var explicitTypes = ['string', 'number', 'boolean'];
  4956. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4957. }
  4958. function isBoolean () {
  4959. var args = [], len = arguments.length;
  4960. while ( len-- ) args[ len ] = arguments[ len ];
  4961. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4962. }
  4963. /* */
  4964. function handleError (err, vm, info) {
  4965. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4966. // See: https://github.com/vuejs/vuex/issues/1505
  4967. pushTarget();
  4968. try {
  4969. if (vm) {
  4970. var cur = vm;
  4971. while ((cur = cur.$parent)) {
  4972. var hooks = cur.$options.errorCaptured;
  4973. if (hooks) {
  4974. for (var i = 0; i < hooks.length; i++) {
  4975. try {
  4976. var capture = hooks[i].call(cur, err, vm, info) === false;
  4977. if (capture) { return }
  4978. } catch (e) {
  4979. globalHandleError(e, cur, 'errorCaptured hook');
  4980. }
  4981. }
  4982. }
  4983. }
  4984. }
  4985. globalHandleError(err, vm, info);
  4986. } finally {
  4987. popTarget();
  4988. }
  4989. }
  4990. function invokeWithErrorHandling (
  4991. handler,
  4992. context,
  4993. args,
  4994. vm,
  4995. info
  4996. ) {
  4997. var res;
  4998. try {
  4999. res = args ? handler.apply(context, args) : handler.call(context);
  5000. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5001. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5002. // issue #9511
  5003. // avoid catch triggering multiple times when nested calls
  5004. res._handled = true;
  5005. }
  5006. } catch (e) {
  5007. handleError(e, vm, info);
  5008. }
  5009. return res
  5010. }
  5011. function globalHandleError (err, vm, info) {
  5012. if (config.errorHandler) {
  5013. try {
  5014. return config.errorHandler.call(null, err, vm, info)
  5015. } catch (e) {
  5016. // if the user intentionally throws the original error in the handler,
  5017. // do not log it twice
  5018. if (e !== err) {
  5019. logError(e, null, 'config.errorHandler');
  5020. }
  5021. }
  5022. }
  5023. logError(err, vm, info);
  5024. }
  5025. function logError (err, vm, info) {
  5026. if (true) {
  5027. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5028. }
  5029. /* istanbul ignore else */
  5030. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5031. console.error(err);
  5032. } else {
  5033. throw err
  5034. }
  5035. }
  5036. /* */
  5037. var callbacks = [];
  5038. var pending = false;
  5039. function flushCallbacks () {
  5040. pending = false;
  5041. var copies = callbacks.slice(0);
  5042. callbacks.length = 0;
  5043. for (var i = 0; i < copies.length; i++) {
  5044. copies[i]();
  5045. }
  5046. }
  5047. // Here we have async deferring wrappers using microtasks.
  5048. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5049. // However, it has subtle problems when state is changed right before repaint
  5050. // (e.g. #6813, out-in transitions).
  5051. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5052. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5053. // So we now use microtasks everywhere, again.
  5054. // A major drawback of this tradeoff is that there are some scenarios
  5055. // where microtasks have too high a priority and fire in between supposedly
  5056. // sequential events (e.g. #4521, #6690, which have workarounds)
  5057. // or even between bubbling of the same event (#6566).
  5058. var timerFunc;
  5059. // The nextTick behavior leverages the microtask queue, which can be accessed
  5060. // via either native Promise.then or MutationObserver.
  5061. // MutationObserver has wider support, however it is seriously bugged in
  5062. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5063. // completely stops working after triggering a few times... so, if native
  5064. // Promise is available, we will use it:
  5065. /* istanbul ignore next, $flow-disable-line */
  5066. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5067. var p = Promise.resolve();
  5068. timerFunc = function () {
  5069. p.then(flushCallbacks);
  5070. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5071. // it can get stuck in a weird state where callbacks are pushed into the
  5072. // microtask queue but the queue isn't being flushed, until the browser
  5073. // needs to do some other work, e.g. handle a timer. Therefore we can
  5074. // "force" the microtask queue to be flushed by adding an empty timer.
  5075. if (isIOS) { setTimeout(noop); }
  5076. };
  5077. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5078. isNative(MutationObserver) ||
  5079. // PhantomJS and iOS 7.x
  5080. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5081. )) {
  5082. // Use MutationObserver where native Promise is not available,
  5083. // e.g. PhantomJS, iOS7, Android 4.4
  5084. // (#6466 MutationObserver is unreliable in IE11)
  5085. var counter = 1;
  5086. var observer = new MutationObserver(flushCallbacks);
  5087. var textNode = document.createTextNode(String(counter));
  5088. observer.observe(textNode, {
  5089. characterData: true
  5090. });
  5091. timerFunc = function () {
  5092. counter = (counter + 1) % 2;
  5093. textNode.data = String(counter);
  5094. };
  5095. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5096. // Fallback to setImmediate.
  5097. // Technically it leverages the (macro) task queue,
  5098. // but it is still a better choice than setTimeout.
  5099. timerFunc = function () {
  5100. setImmediate(flushCallbacks);
  5101. };
  5102. } else {
  5103. // Fallback to setTimeout.
  5104. timerFunc = function () {
  5105. setTimeout(flushCallbacks, 0);
  5106. };
  5107. }
  5108. function nextTick (cb, ctx) {
  5109. var _resolve;
  5110. callbacks.push(function () {
  5111. if (cb) {
  5112. try {
  5113. cb.call(ctx);
  5114. } catch (e) {
  5115. handleError(e, ctx, 'nextTick');
  5116. }
  5117. } else if (_resolve) {
  5118. _resolve(ctx);
  5119. }
  5120. });
  5121. if (!pending) {
  5122. pending = true;
  5123. timerFunc();
  5124. }
  5125. // $flow-disable-line
  5126. if (!cb && typeof Promise !== 'undefined') {
  5127. return new Promise(function (resolve) {
  5128. _resolve = resolve;
  5129. })
  5130. }
  5131. }
  5132. /* */
  5133. /* not type checking this file because flow doesn't play well with Proxy */
  5134. var initProxy;
  5135. if (true) {
  5136. var allowedGlobals = makeMap(
  5137. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5138. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5139. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5140. 'require' // for Webpack/Browserify
  5141. );
  5142. var warnNonPresent = function (target, key) {
  5143. warn(
  5144. "Property or method \"" + key + "\" is not defined on the instance but " +
  5145. 'referenced during render. Make sure that this property is reactive, ' +
  5146. 'either in the data option, or for class-based components, by ' +
  5147. 'initializing the property. ' +
  5148. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5149. target
  5150. );
  5151. };
  5152. var warnReservedPrefix = function (target, key) {
  5153. warn(
  5154. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5155. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5156. 'prevent conflicts with Vue internals. ' +
  5157. 'See: https://vuejs.org/v2/api/#data',
  5158. target
  5159. );
  5160. };
  5161. var hasProxy =
  5162. typeof Proxy !== 'undefined' && isNative(Proxy);
  5163. if (hasProxy) {
  5164. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5165. config.keyCodes = new Proxy(config.keyCodes, {
  5166. set: function set (target, key, value) {
  5167. if (isBuiltInModifier(key)) {
  5168. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5169. return false
  5170. } else {
  5171. target[key] = value;
  5172. return true
  5173. }
  5174. }
  5175. });
  5176. }
  5177. var hasHandler = {
  5178. has: function has (target, key) {
  5179. var has = key in target;
  5180. var isAllowed = allowedGlobals(key) ||
  5181. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5182. if (!has && !isAllowed) {
  5183. if (key in target.$data) { warnReservedPrefix(target, key); }
  5184. else { warnNonPresent(target, key); }
  5185. }
  5186. return has || !isAllowed
  5187. }
  5188. };
  5189. var getHandler = {
  5190. get: function get (target, key) {
  5191. if (typeof key === 'string' && !(key in target)) {
  5192. if (key in target.$data) { warnReservedPrefix(target, key); }
  5193. else { warnNonPresent(target, key); }
  5194. }
  5195. return target[key]
  5196. }
  5197. };
  5198. initProxy = function initProxy (vm) {
  5199. if (hasProxy) {
  5200. // determine which proxy handler to use
  5201. var options = vm.$options;
  5202. var handlers = options.render && options.render._withStripped
  5203. ? getHandler
  5204. : hasHandler;
  5205. vm._renderProxy = new Proxy(vm, handlers);
  5206. } else {
  5207. vm._renderProxy = vm;
  5208. }
  5209. };
  5210. }
  5211. /* */
  5212. var seenObjects = new _Set();
  5213. /**
  5214. * Recursively traverse an object to evoke all converted
  5215. * getters, so that every nested property inside the object
  5216. * is collected as a "deep" dependency.
  5217. */
  5218. function traverse (val) {
  5219. _traverse(val, seenObjects);
  5220. seenObjects.clear();
  5221. }
  5222. function _traverse (val, seen) {
  5223. var i, keys;
  5224. var isA = Array.isArray(val);
  5225. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5226. return
  5227. }
  5228. if (val.__ob__) {
  5229. var depId = val.__ob__.dep.id;
  5230. if (seen.has(depId)) {
  5231. return
  5232. }
  5233. seen.add(depId);
  5234. }
  5235. if (isA) {
  5236. i = val.length;
  5237. while (i--) { _traverse(val[i], seen); }
  5238. } else {
  5239. keys = Object.keys(val);
  5240. i = keys.length;
  5241. while (i--) { _traverse(val[keys[i]], seen); }
  5242. }
  5243. }
  5244. var mark;
  5245. var measure;
  5246. if (true) {
  5247. var perf = inBrowser && window.performance;
  5248. /* istanbul ignore if */
  5249. if (
  5250. perf &&
  5251. perf.mark &&
  5252. perf.measure &&
  5253. perf.clearMarks &&
  5254. perf.clearMeasures
  5255. ) {
  5256. mark = function (tag) { return perf.mark(tag); };
  5257. measure = function (name, startTag, endTag) {
  5258. perf.measure(name, startTag, endTag);
  5259. perf.clearMarks(startTag);
  5260. perf.clearMarks(endTag);
  5261. // perf.clearMeasures(name)
  5262. };
  5263. }
  5264. }
  5265. /* */
  5266. var normalizeEvent = cached(function (name) {
  5267. var passive = name.charAt(0) === '&';
  5268. name = passive ? name.slice(1) : name;
  5269. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5270. name = once$$1 ? name.slice(1) : name;
  5271. var capture = name.charAt(0) === '!';
  5272. name = capture ? name.slice(1) : name;
  5273. return {
  5274. name: name,
  5275. once: once$$1,
  5276. capture: capture,
  5277. passive: passive
  5278. }
  5279. });
  5280. function createFnInvoker (fns, vm) {
  5281. function invoker () {
  5282. var arguments$1 = arguments;
  5283. var fns = invoker.fns;
  5284. if (Array.isArray(fns)) {
  5285. var cloned = fns.slice();
  5286. for (var i = 0; i < cloned.length; i++) {
  5287. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5288. }
  5289. } else {
  5290. // return handler return value for single handlers
  5291. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5292. }
  5293. }
  5294. invoker.fns = fns;
  5295. return invoker
  5296. }
  5297. function updateListeners (
  5298. on,
  5299. oldOn,
  5300. add,
  5301. remove$$1,
  5302. createOnceHandler,
  5303. vm
  5304. ) {
  5305. var name, def$$1, cur, old, event;
  5306. for (name in on) {
  5307. def$$1 = cur = on[name];
  5308. old = oldOn[name];
  5309. event = normalizeEvent(name);
  5310. if (isUndef(cur)) {
  5311. true && warn(
  5312. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5313. vm
  5314. );
  5315. } else if (isUndef(old)) {
  5316. if (isUndef(cur.fns)) {
  5317. cur = on[name] = createFnInvoker(cur, vm);
  5318. }
  5319. if (isTrue(event.once)) {
  5320. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5321. }
  5322. add(event.name, cur, event.capture, event.passive, event.params);
  5323. } else if (cur !== old) {
  5324. old.fns = cur;
  5325. on[name] = old;
  5326. }
  5327. }
  5328. for (name in oldOn) {
  5329. if (isUndef(on[name])) {
  5330. event = normalizeEvent(name);
  5331. remove$$1(event.name, oldOn[name], event.capture);
  5332. }
  5333. }
  5334. }
  5335. /* */
  5336. /* */
  5337. // fixed by xxxxxx (mp properties)
  5338. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5339. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5340. if (isUndef(propOptions)) {
  5341. return res
  5342. }
  5343. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5344. var attrs = data.attrs;
  5345. var props = data.props;
  5346. if (isDef(attrs) || isDef(props)) {
  5347. for (var key in propOptions) {
  5348. var altKey = hyphenate(key);
  5349. var result = checkProp(res, props, key, altKey, true) ||
  5350. checkProp(res, attrs, key, altKey, false);
  5351. // externalClass
  5352. if (
  5353. result &&
  5354. res[key] &&
  5355. externalClasses.indexOf(altKey) !== -1 &&
  5356. context[camelize(res[key])]
  5357. ) {
  5358. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5359. res[key] = context[camelize(res[key])];
  5360. }
  5361. }
  5362. }
  5363. return res
  5364. }
  5365. function extractPropsFromVNodeData (
  5366. data,
  5367. Ctor,
  5368. tag,
  5369. context// fixed by xxxxxx
  5370. ) {
  5371. // we are only extracting raw values here.
  5372. // validation and default values are handled in the child
  5373. // component itself.
  5374. var propOptions = Ctor.options.props;
  5375. if (isUndef(propOptions)) {
  5376. // fixed by xxxxxx
  5377. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5378. }
  5379. var res = {};
  5380. var attrs = data.attrs;
  5381. var props = data.props;
  5382. if (isDef(attrs) || isDef(props)) {
  5383. for (var key in propOptions) {
  5384. var altKey = hyphenate(key);
  5385. if (true) {
  5386. var keyInLowerCase = key.toLowerCase();
  5387. if (
  5388. key !== keyInLowerCase &&
  5389. attrs && hasOwn(attrs, keyInLowerCase)
  5390. ) {
  5391. tip(
  5392. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5393. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5394. " \"" + key + "\". " +
  5395. "Note that HTML attributes are case-insensitive and camelCased " +
  5396. "props need to use their kebab-case equivalents when using in-DOM " +
  5397. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5398. );
  5399. }
  5400. }
  5401. checkProp(res, props, key, altKey, true) ||
  5402. checkProp(res, attrs, key, altKey, false);
  5403. }
  5404. }
  5405. // fixed by xxxxxx
  5406. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5407. }
  5408. function checkProp (
  5409. res,
  5410. hash,
  5411. key,
  5412. altKey,
  5413. preserve
  5414. ) {
  5415. if (isDef(hash)) {
  5416. if (hasOwn(hash, key)) {
  5417. res[key] = hash[key];
  5418. if (!preserve) {
  5419. delete hash[key];
  5420. }
  5421. return true
  5422. } else if (hasOwn(hash, altKey)) {
  5423. res[key] = hash[altKey];
  5424. if (!preserve) {
  5425. delete hash[altKey];
  5426. }
  5427. return true
  5428. }
  5429. }
  5430. return false
  5431. }
  5432. /* */
  5433. // The template compiler attempts to minimize the need for normalization by
  5434. // statically analyzing the template at compile time.
  5435. //
  5436. // For plain HTML markup, normalization can be completely skipped because the
  5437. // generated render function is guaranteed to return Array<VNode>. There are
  5438. // two cases where extra normalization is needed:
  5439. // 1. When the children contains components - because a functional component
  5440. // may return an Array instead of a single root. In this case, just a simple
  5441. // normalization is needed - if any child is an Array, we flatten the whole
  5442. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5443. // because functional components already normalize their own children.
  5444. function simpleNormalizeChildren (children) {
  5445. for (var i = 0; i < children.length; i++) {
  5446. if (Array.isArray(children[i])) {
  5447. return Array.prototype.concat.apply([], children)
  5448. }
  5449. }
  5450. return children
  5451. }
  5452. // 2. When the children contains constructs that always generated nested Arrays,
  5453. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5454. // with hand-written render functions / JSX. In such cases a full normalization
  5455. // is needed to cater to all possible types of children values.
  5456. function normalizeChildren (children) {
  5457. return isPrimitive(children)
  5458. ? [createTextVNode(children)]
  5459. : Array.isArray(children)
  5460. ? normalizeArrayChildren(children)
  5461. : undefined
  5462. }
  5463. function isTextNode (node) {
  5464. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5465. }
  5466. function normalizeArrayChildren (children, nestedIndex) {
  5467. var res = [];
  5468. var i, c, lastIndex, last;
  5469. for (i = 0; i < children.length; i++) {
  5470. c = children[i];
  5471. if (isUndef(c) || typeof c === 'boolean') { continue }
  5472. lastIndex = res.length - 1;
  5473. last = res[lastIndex];
  5474. // nested
  5475. if (Array.isArray(c)) {
  5476. if (c.length > 0) {
  5477. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5478. // merge adjacent text nodes
  5479. if (isTextNode(c[0]) && isTextNode(last)) {
  5480. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5481. c.shift();
  5482. }
  5483. res.push.apply(res, c);
  5484. }
  5485. } else if (isPrimitive(c)) {
  5486. if (isTextNode(last)) {
  5487. // merge adjacent text nodes
  5488. // this is necessary for SSR hydration because text nodes are
  5489. // essentially merged when rendered to HTML strings
  5490. res[lastIndex] = createTextVNode(last.text + c);
  5491. } else if (c !== '') {
  5492. // convert primitive to vnode
  5493. res.push(createTextVNode(c));
  5494. }
  5495. } else {
  5496. if (isTextNode(c) && isTextNode(last)) {
  5497. // merge adjacent text nodes
  5498. res[lastIndex] = createTextVNode(last.text + c.text);
  5499. } else {
  5500. // default key for nested array children (likely generated by v-for)
  5501. if (isTrue(children._isVList) &&
  5502. isDef(c.tag) &&
  5503. isUndef(c.key) &&
  5504. isDef(nestedIndex)) {
  5505. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5506. }
  5507. res.push(c);
  5508. }
  5509. }
  5510. }
  5511. return res
  5512. }
  5513. /* */
  5514. function initProvide (vm) {
  5515. var provide = vm.$options.provide;
  5516. if (provide) {
  5517. vm._provided = typeof provide === 'function'
  5518. ? provide.call(vm)
  5519. : provide;
  5520. }
  5521. }
  5522. function initInjections (vm) {
  5523. var result = resolveInject(vm.$options.inject, vm);
  5524. if (result) {
  5525. toggleObserving(false);
  5526. Object.keys(result).forEach(function (key) {
  5527. /* istanbul ignore else */
  5528. if (true) {
  5529. defineReactive$$1(vm, key, result[key], function () {
  5530. warn(
  5531. "Avoid mutating an injected value directly since the changes will be " +
  5532. "overwritten whenever the provided component re-renders. " +
  5533. "injection being mutated: \"" + key + "\"",
  5534. vm
  5535. );
  5536. });
  5537. } else {}
  5538. });
  5539. toggleObserving(true);
  5540. }
  5541. }
  5542. function resolveInject (inject, vm) {
  5543. if (inject) {
  5544. // inject is :any because flow is not smart enough to figure out cached
  5545. var result = Object.create(null);
  5546. var keys = hasSymbol
  5547. ? Reflect.ownKeys(inject)
  5548. : Object.keys(inject);
  5549. for (var i = 0; i < keys.length; i++) {
  5550. var key = keys[i];
  5551. // #6574 in case the inject object is observed...
  5552. if (key === '__ob__') { continue }
  5553. var provideKey = inject[key].from;
  5554. var source = vm;
  5555. while (source) {
  5556. if (source._provided && hasOwn(source._provided, provideKey)) {
  5557. result[key] = source._provided[provideKey];
  5558. break
  5559. }
  5560. source = source.$parent;
  5561. }
  5562. if (!source) {
  5563. if ('default' in inject[key]) {
  5564. var provideDefault = inject[key].default;
  5565. result[key] = typeof provideDefault === 'function'
  5566. ? provideDefault.call(vm)
  5567. : provideDefault;
  5568. } else if (true) {
  5569. warn(("Injection \"" + key + "\" not found"), vm);
  5570. }
  5571. }
  5572. }
  5573. return result
  5574. }
  5575. }
  5576. /* */
  5577. /**
  5578. * Runtime helper for resolving raw children VNodes into a slot object.
  5579. */
  5580. function resolveSlots (
  5581. children,
  5582. context
  5583. ) {
  5584. if (!children || !children.length) {
  5585. return {}
  5586. }
  5587. var slots = {};
  5588. for (var i = 0, l = children.length; i < l; i++) {
  5589. var child = children[i];
  5590. var data = child.data;
  5591. // remove slot attribute if the node is resolved as a Vue slot node
  5592. if (data && data.attrs && data.attrs.slot) {
  5593. delete data.attrs.slot;
  5594. }
  5595. // named slots should only be respected if the vnode was rendered in the
  5596. // same context.
  5597. if ((child.context === context || child.fnContext === context) &&
  5598. data && data.slot != null
  5599. ) {
  5600. var name = data.slot;
  5601. var slot = (slots[name] || (slots[name] = []));
  5602. if (child.tag === 'template') {
  5603. slot.push.apply(slot, child.children || []);
  5604. } else {
  5605. slot.push(child);
  5606. }
  5607. } else {
  5608. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5609. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5610. (slots['page'] || (slots['page'] = [])).push(child);
  5611. }else{
  5612. (slots.default || (slots.default = [])).push(child);
  5613. }
  5614. }
  5615. }
  5616. // ignore slots that contains only whitespace
  5617. for (var name$1 in slots) {
  5618. if (slots[name$1].every(isWhitespace)) {
  5619. delete slots[name$1];
  5620. }
  5621. }
  5622. return slots
  5623. }
  5624. function isWhitespace (node) {
  5625. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5626. }
  5627. /* */
  5628. function normalizeScopedSlots (
  5629. slots,
  5630. normalSlots,
  5631. prevSlots
  5632. ) {
  5633. var res;
  5634. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5635. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5636. var key = slots && slots.$key;
  5637. if (!slots) {
  5638. res = {};
  5639. } else if (slots._normalized) {
  5640. // fast path 1: child component re-render only, parent did not change
  5641. return slots._normalized
  5642. } else if (
  5643. isStable &&
  5644. prevSlots &&
  5645. prevSlots !== emptyObject &&
  5646. key === prevSlots.$key &&
  5647. !hasNormalSlots &&
  5648. !prevSlots.$hasNormal
  5649. ) {
  5650. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5651. // only need to normalize once
  5652. return prevSlots
  5653. } else {
  5654. res = {};
  5655. for (var key$1 in slots) {
  5656. if (slots[key$1] && key$1[0] !== '$') {
  5657. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5658. }
  5659. }
  5660. }
  5661. // expose normal slots on scopedSlots
  5662. for (var key$2 in normalSlots) {
  5663. if (!(key$2 in res)) {
  5664. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5665. }
  5666. }
  5667. // avoriaz seems to mock a non-extensible $scopedSlots object
  5668. // and when that is passed down this would cause an error
  5669. if (slots && Object.isExtensible(slots)) {
  5670. (slots)._normalized = res;
  5671. }
  5672. def(res, '$stable', isStable);
  5673. def(res, '$key', key);
  5674. def(res, '$hasNormal', hasNormalSlots);
  5675. return res
  5676. }
  5677. function normalizeScopedSlot(normalSlots, key, fn) {
  5678. var normalized = function () {
  5679. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5680. res = res && typeof res === 'object' && !Array.isArray(res)
  5681. ? [res] // single vnode
  5682. : normalizeChildren(res);
  5683. return res && (
  5684. res.length === 0 ||
  5685. (res.length === 1 && res[0].isComment) // #9658
  5686. ) ? undefined
  5687. : res
  5688. };
  5689. // this is a slot using the new v-slot syntax without scope. although it is
  5690. // compiled as a scoped slot, render fn users would expect it to be present
  5691. // on this.$slots because the usage is semantically a normal slot.
  5692. if (fn.proxy) {
  5693. Object.defineProperty(normalSlots, key, {
  5694. get: normalized,
  5695. enumerable: true,
  5696. configurable: true
  5697. });
  5698. }
  5699. return normalized
  5700. }
  5701. function proxyNormalSlot(slots, key) {
  5702. return function () { return slots[key]; }
  5703. }
  5704. /* */
  5705. /**
  5706. * Runtime helper for rendering v-for lists.
  5707. */
  5708. function renderList (
  5709. val,
  5710. render
  5711. ) {
  5712. var ret, i, l, keys, key;
  5713. if (Array.isArray(val) || typeof val === 'string') {
  5714. ret = new Array(val.length);
  5715. for (i = 0, l = val.length; i < l; i++) {
  5716. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5717. }
  5718. } else if (typeof val === 'number') {
  5719. ret = new Array(val);
  5720. for (i = 0; i < val; i++) {
  5721. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5722. }
  5723. } else if (isObject(val)) {
  5724. if (hasSymbol && val[Symbol.iterator]) {
  5725. ret = [];
  5726. var iterator = val[Symbol.iterator]();
  5727. var result = iterator.next();
  5728. while (!result.done) {
  5729. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5730. result = iterator.next();
  5731. }
  5732. } else {
  5733. keys = Object.keys(val);
  5734. ret = new Array(keys.length);
  5735. for (i = 0, l = keys.length; i < l; i++) {
  5736. key = keys[i];
  5737. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5738. }
  5739. }
  5740. }
  5741. if (!isDef(ret)) {
  5742. ret = [];
  5743. }
  5744. (ret)._isVList = true;
  5745. return ret
  5746. }
  5747. /* */
  5748. /**
  5749. * Runtime helper for rendering <slot>
  5750. */
  5751. function renderSlot (
  5752. name,
  5753. fallback,
  5754. props,
  5755. bindObject
  5756. ) {
  5757. var scopedSlotFn = this.$scopedSlots[name];
  5758. var nodes;
  5759. if (scopedSlotFn) { // scoped slot
  5760. props = props || {};
  5761. if (bindObject) {
  5762. if ( true && !isObject(bindObject)) {
  5763. warn(
  5764. 'slot v-bind without argument expects an Object',
  5765. this
  5766. );
  5767. }
  5768. props = extend(extend({}, bindObject), props);
  5769. }
  5770. // fixed by xxxxxx app-plus scopedSlot
  5771. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5772. } else {
  5773. nodes = this.$slots[name] || fallback;
  5774. }
  5775. var target = props && props.slot;
  5776. if (target) {
  5777. return this.$createElement('template', { slot: target }, nodes)
  5778. } else {
  5779. return nodes
  5780. }
  5781. }
  5782. /* */
  5783. /**
  5784. * Runtime helper for resolving filters
  5785. */
  5786. function resolveFilter (id) {
  5787. return resolveAsset(this.$options, 'filters', id, true) || identity
  5788. }
  5789. /* */
  5790. function isKeyNotMatch (expect, actual) {
  5791. if (Array.isArray(expect)) {
  5792. return expect.indexOf(actual) === -1
  5793. } else {
  5794. return expect !== actual
  5795. }
  5796. }
  5797. /**
  5798. * Runtime helper for checking keyCodes from config.
  5799. * exposed as Vue.prototype._k
  5800. * passing in eventKeyName as last argument separately for backwards compat
  5801. */
  5802. function checkKeyCodes (
  5803. eventKeyCode,
  5804. key,
  5805. builtInKeyCode,
  5806. eventKeyName,
  5807. builtInKeyName
  5808. ) {
  5809. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5810. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5811. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5812. } else if (mappedKeyCode) {
  5813. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5814. } else if (eventKeyName) {
  5815. return hyphenate(eventKeyName) !== key
  5816. }
  5817. }
  5818. /* */
  5819. /**
  5820. * Runtime helper for merging v-bind="object" into a VNode's data.
  5821. */
  5822. function bindObjectProps (
  5823. data,
  5824. tag,
  5825. value,
  5826. asProp,
  5827. isSync
  5828. ) {
  5829. if (value) {
  5830. if (!isObject(value)) {
  5831. true && warn(
  5832. 'v-bind without argument expects an Object or Array value',
  5833. this
  5834. );
  5835. } else {
  5836. if (Array.isArray(value)) {
  5837. value = toObject(value);
  5838. }
  5839. var hash;
  5840. var loop = function ( key ) {
  5841. if (
  5842. key === 'class' ||
  5843. key === 'style' ||
  5844. isReservedAttribute(key)
  5845. ) {
  5846. hash = data;
  5847. } else {
  5848. var type = data.attrs && data.attrs.type;
  5849. hash = asProp || config.mustUseProp(tag, type, key)
  5850. ? data.domProps || (data.domProps = {})
  5851. : data.attrs || (data.attrs = {});
  5852. }
  5853. var camelizedKey = camelize(key);
  5854. var hyphenatedKey = hyphenate(key);
  5855. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5856. hash[key] = value[key];
  5857. if (isSync) {
  5858. var on = data.on || (data.on = {});
  5859. on[("update:" + key)] = function ($event) {
  5860. value[key] = $event;
  5861. };
  5862. }
  5863. }
  5864. };
  5865. for (var key in value) loop( key );
  5866. }
  5867. }
  5868. return data
  5869. }
  5870. /* */
  5871. /**
  5872. * Runtime helper for rendering static trees.
  5873. */
  5874. function renderStatic (
  5875. index,
  5876. isInFor
  5877. ) {
  5878. var cached = this._staticTrees || (this._staticTrees = []);
  5879. var tree = cached[index];
  5880. // if has already-rendered static tree and not inside v-for,
  5881. // we can reuse the same tree.
  5882. if (tree && !isInFor) {
  5883. return tree
  5884. }
  5885. // otherwise, render a fresh tree.
  5886. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5887. this._renderProxy,
  5888. null,
  5889. this // for render fns generated for functional component templates
  5890. );
  5891. markStatic(tree, ("__static__" + index), false);
  5892. return tree
  5893. }
  5894. /**
  5895. * Runtime helper for v-once.
  5896. * Effectively it means marking the node as static with a unique key.
  5897. */
  5898. function markOnce (
  5899. tree,
  5900. index,
  5901. key
  5902. ) {
  5903. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5904. return tree
  5905. }
  5906. function markStatic (
  5907. tree,
  5908. key,
  5909. isOnce
  5910. ) {
  5911. if (Array.isArray(tree)) {
  5912. for (var i = 0; i < tree.length; i++) {
  5913. if (tree[i] && typeof tree[i] !== 'string') {
  5914. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5915. }
  5916. }
  5917. } else {
  5918. markStaticNode(tree, key, isOnce);
  5919. }
  5920. }
  5921. function markStaticNode (node, key, isOnce) {
  5922. node.isStatic = true;
  5923. node.key = key;
  5924. node.isOnce = isOnce;
  5925. }
  5926. /* */
  5927. function bindObjectListeners (data, value) {
  5928. if (value) {
  5929. if (!isPlainObject(value)) {
  5930. true && warn(
  5931. 'v-on without argument expects an Object value',
  5932. this
  5933. );
  5934. } else {
  5935. var on = data.on = data.on ? extend({}, data.on) : {};
  5936. for (var key in value) {
  5937. var existing = on[key];
  5938. var ours = value[key];
  5939. on[key] = existing ? [].concat(existing, ours) : ours;
  5940. }
  5941. }
  5942. }
  5943. return data
  5944. }
  5945. /* */
  5946. function resolveScopedSlots (
  5947. fns, // see flow/vnode
  5948. res,
  5949. // the following are added in 2.6
  5950. hasDynamicKeys,
  5951. contentHashKey
  5952. ) {
  5953. res = res || { $stable: !hasDynamicKeys };
  5954. for (var i = 0; i < fns.length; i++) {
  5955. var slot = fns[i];
  5956. if (Array.isArray(slot)) {
  5957. resolveScopedSlots(slot, res, hasDynamicKeys);
  5958. } else if (slot) {
  5959. // marker for reverse proxying v-slot without scope on this.$slots
  5960. if (slot.proxy) {
  5961. slot.fn.proxy = true;
  5962. }
  5963. res[slot.key] = slot.fn;
  5964. }
  5965. }
  5966. if (contentHashKey) {
  5967. (res).$key = contentHashKey;
  5968. }
  5969. return res
  5970. }
  5971. /* */
  5972. function bindDynamicKeys (baseObj, values) {
  5973. for (var i = 0; i < values.length; i += 2) {
  5974. var key = values[i];
  5975. if (typeof key === 'string' && key) {
  5976. baseObj[values[i]] = values[i + 1];
  5977. } else if ( true && key !== '' && key !== null) {
  5978. // null is a special value for explicitly removing a binding
  5979. warn(
  5980. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5981. this
  5982. );
  5983. }
  5984. }
  5985. return baseObj
  5986. }
  5987. // helper to dynamically append modifier runtime markers to event names.
  5988. // ensure only append when value is already string, otherwise it will be cast
  5989. // to string and cause the type check to miss.
  5990. function prependModifier (value, symbol) {
  5991. return typeof value === 'string' ? symbol + value : value
  5992. }
  5993. /* */
  5994. function installRenderHelpers (target) {
  5995. target._o = markOnce;
  5996. target._n = toNumber;
  5997. target._s = toString;
  5998. target._l = renderList;
  5999. target._t = renderSlot;
  6000. target._q = looseEqual;
  6001. target._i = looseIndexOf;
  6002. target._m = renderStatic;
  6003. target._f = resolveFilter;
  6004. target._k = checkKeyCodes;
  6005. target._b = bindObjectProps;
  6006. target._v = createTextVNode;
  6007. target._e = createEmptyVNode;
  6008. target._u = resolveScopedSlots;
  6009. target._g = bindObjectListeners;
  6010. target._d = bindDynamicKeys;
  6011. target._p = prependModifier;
  6012. }
  6013. /* */
  6014. function FunctionalRenderContext (
  6015. data,
  6016. props,
  6017. children,
  6018. parent,
  6019. Ctor
  6020. ) {
  6021. var this$1 = this;
  6022. var options = Ctor.options;
  6023. // ensure the createElement function in functional components
  6024. // gets a unique context - this is necessary for correct named slot check
  6025. var contextVm;
  6026. if (hasOwn(parent, '_uid')) {
  6027. contextVm = Object.create(parent);
  6028. // $flow-disable-line
  6029. contextVm._original = parent;
  6030. } else {
  6031. // the context vm passed in is a functional context as well.
  6032. // in this case we want to make sure we are able to get a hold to the
  6033. // real context instance.
  6034. contextVm = parent;
  6035. // $flow-disable-line
  6036. parent = parent._original;
  6037. }
  6038. var isCompiled = isTrue(options._compiled);
  6039. var needNormalization = !isCompiled;
  6040. this.data = data;
  6041. this.props = props;
  6042. this.children = children;
  6043. this.parent = parent;
  6044. this.listeners = data.on || emptyObject;
  6045. this.injections = resolveInject(options.inject, parent);
  6046. this.slots = function () {
  6047. if (!this$1.$slots) {
  6048. normalizeScopedSlots(
  6049. data.scopedSlots,
  6050. this$1.$slots = resolveSlots(children, parent)
  6051. );
  6052. }
  6053. return this$1.$slots
  6054. };
  6055. Object.defineProperty(this, 'scopedSlots', ({
  6056. enumerable: true,
  6057. get: function get () {
  6058. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6059. }
  6060. }));
  6061. // support for compiled functional template
  6062. if (isCompiled) {
  6063. // exposing $options for renderStatic()
  6064. this.$options = options;
  6065. // pre-resolve slots for renderSlot()
  6066. this.$slots = this.slots();
  6067. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6068. }
  6069. if (options._scopeId) {
  6070. this._c = function (a, b, c, d) {
  6071. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6072. if (vnode && !Array.isArray(vnode)) {
  6073. vnode.fnScopeId = options._scopeId;
  6074. vnode.fnContext = parent;
  6075. }
  6076. return vnode
  6077. };
  6078. } else {
  6079. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6080. }
  6081. }
  6082. installRenderHelpers(FunctionalRenderContext.prototype);
  6083. function createFunctionalComponent (
  6084. Ctor,
  6085. propsData,
  6086. data,
  6087. contextVm,
  6088. children
  6089. ) {
  6090. var options = Ctor.options;
  6091. var props = {};
  6092. var propOptions = options.props;
  6093. if (isDef(propOptions)) {
  6094. for (var key in propOptions) {
  6095. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6096. }
  6097. } else {
  6098. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6099. if (isDef(data.props)) { mergeProps(props, data.props); }
  6100. }
  6101. var renderContext = new FunctionalRenderContext(
  6102. data,
  6103. props,
  6104. children,
  6105. contextVm,
  6106. Ctor
  6107. );
  6108. var vnode = options.render.call(null, renderContext._c, renderContext);
  6109. if (vnode instanceof VNode) {
  6110. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6111. } else if (Array.isArray(vnode)) {
  6112. var vnodes = normalizeChildren(vnode) || [];
  6113. var res = new Array(vnodes.length);
  6114. for (var i = 0; i < vnodes.length; i++) {
  6115. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6116. }
  6117. return res
  6118. }
  6119. }
  6120. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6121. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6122. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6123. // that should not be matched to match.
  6124. var clone = cloneVNode(vnode);
  6125. clone.fnContext = contextVm;
  6126. clone.fnOptions = options;
  6127. if (true) {
  6128. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6129. }
  6130. if (data.slot) {
  6131. (clone.data || (clone.data = {})).slot = data.slot;
  6132. }
  6133. return clone
  6134. }
  6135. function mergeProps (to, from) {
  6136. for (var key in from) {
  6137. to[camelize(key)] = from[key];
  6138. }
  6139. }
  6140. /* */
  6141. /* */
  6142. /* */
  6143. /* */
  6144. // inline hooks to be invoked on component VNodes during patch
  6145. var componentVNodeHooks = {
  6146. init: function init (vnode, hydrating) {
  6147. if (
  6148. vnode.componentInstance &&
  6149. !vnode.componentInstance._isDestroyed &&
  6150. vnode.data.keepAlive
  6151. ) {
  6152. // kept-alive components, treat as a patch
  6153. var mountedNode = vnode; // work around flow
  6154. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6155. } else {
  6156. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6157. vnode,
  6158. activeInstance
  6159. );
  6160. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6161. }
  6162. },
  6163. prepatch: function prepatch (oldVnode, vnode) {
  6164. var options = vnode.componentOptions;
  6165. var child = vnode.componentInstance = oldVnode.componentInstance;
  6166. updateChildComponent(
  6167. child,
  6168. options.propsData, // updated props
  6169. options.listeners, // updated listeners
  6170. vnode, // new parent vnode
  6171. options.children // new children
  6172. );
  6173. },
  6174. insert: function insert (vnode) {
  6175. var context = vnode.context;
  6176. var componentInstance = vnode.componentInstance;
  6177. if (!componentInstance._isMounted) {
  6178. callHook(componentInstance, 'onServiceCreated');
  6179. callHook(componentInstance, 'onServiceAttached');
  6180. componentInstance._isMounted = true;
  6181. callHook(componentInstance, 'mounted');
  6182. }
  6183. if (vnode.data.keepAlive) {
  6184. if (context._isMounted) {
  6185. // vue-router#1212
  6186. // During updates, a kept-alive component's child components may
  6187. // change, so directly walking the tree here may call activated hooks
  6188. // on incorrect children. Instead we push them into a queue which will
  6189. // be processed after the whole patch process ended.
  6190. queueActivatedComponent(componentInstance);
  6191. } else {
  6192. activateChildComponent(componentInstance, true /* direct */);
  6193. }
  6194. }
  6195. },
  6196. destroy: function destroy (vnode) {
  6197. var componentInstance = vnode.componentInstance;
  6198. if (!componentInstance._isDestroyed) {
  6199. if (!vnode.data.keepAlive) {
  6200. componentInstance.$destroy();
  6201. } else {
  6202. deactivateChildComponent(componentInstance, true /* direct */);
  6203. }
  6204. }
  6205. }
  6206. };
  6207. var hooksToMerge = Object.keys(componentVNodeHooks);
  6208. function createComponent (
  6209. Ctor,
  6210. data,
  6211. context,
  6212. children,
  6213. tag
  6214. ) {
  6215. if (isUndef(Ctor)) {
  6216. return
  6217. }
  6218. var baseCtor = context.$options._base;
  6219. // plain options object: turn it into a constructor
  6220. if (isObject(Ctor)) {
  6221. Ctor = baseCtor.extend(Ctor);
  6222. }
  6223. // if at this stage it's not a constructor or an async component factory,
  6224. // reject.
  6225. if (typeof Ctor !== 'function') {
  6226. if (true) {
  6227. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6228. }
  6229. return
  6230. }
  6231. // async component
  6232. var asyncFactory;
  6233. if (isUndef(Ctor.cid)) {
  6234. asyncFactory = Ctor;
  6235. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6236. if (Ctor === undefined) {
  6237. // return a placeholder node for async component, which is rendered
  6238. // as a comment node but preserves all the raw information for the node.
  6239. // the information will be used for async server-rendering and hydration.
  6240. return createAsyncPlaceholder(
  6241. asyncFactory,
  6242. data,
  6243. context,
  6244. children,
  6245. tag
  6246. )
  6247. }
  6248. }
  6249. data = data || {};
  6250. // resolve constructor options in case global mixins are applied after
  6251. // component constructor creation
  6252. resolveConstructorOptions(Ctor);
  6253. // transform component v-model data into props & events
  6254. if (isDef(data.model)) {
  6255. transformModel(Ctor.options, data);
  6256. }
  6257. // extract props
  6258. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6259. // functional component
  6260. if (isTrue(Ctor.options.functional)) {
  6261. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6262. }
  6263. // extract listeners, since these needs to be treated as
  6264. // child component listeners instead of DOM listeners
  6265. var listeners = data.on;
  6266. // replace with listeners with .native modifier
  6267. // so it gets processed during parent component patch.
  6268. data.on = data.nativeOn;
  6269. if (isTrue(Ctor.options.abstract)) {
  6270. // abstract components do not keep anything
  6271. // other than props & listeners & slot
  6272. // work around flow
  6273. var slot = data.slot;
  6274. data = {};
  6275. if (slot) {
  6276. data.slot = slot;
  6277. }
  6278. }
  6279. // install component management hooks onto the placeholder node
  6280. installComponentHooks(data);
  6281. // return a placeholder vnode
  6282. var name = Ctor.options.name || tag;
  6283. var vnode = new VNode(
  6284. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6285. data, undefined, undefined, undefined, context,
  6286. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6287. asyncFactory
  6288. );
  6289. return vnode
  6290. }
  6291. function createComponentInstanceForVnode (
  6292. vnode, // we know it's MountedComponentVNode but flow doesn't
  6293. parent // activeInstance in lifecycle state
  6294. ) {
  6295. var options = {
  6296. _isComponent: true,
  6297. _parentVnode: vnode,
  6298. parent: parent
  6299. };
  6300. // check inline-template render functions
  6301. var inlineTemplate = vnode.data.inlineTemplate;
  6302. if (isDef(inlineTemplate)) {
  6303. options.render = inlineTemplate.render;
  6304. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6305. }
  6306. return new vnode.componentOptions.Ctor(options)
  6307. }
  6308. function installComponentHooks (data) {
  6309. var hooks = data.hook || (data.hook = {});
  6310. for (var i = 0; i < hooksToMerge.length; i++) {
  6311. var key = hooksToMerge[i];
  6312. var existing = hooks[key];
  6313. var toMerge = componentVNodeHooks[key];
  6314. if (existing !== toMerge && !(existing && existing._merged)) {
  6315. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6316. }
  6317. }
  6318. }
  6319. function mergeHook$1 (f1, f2) {
  6320. var merged = function (a, b) {
  6321. // flow complains about extra args which is why we use any
  6322. f1(a, b);
  6323. f2(a, b);
  6324. };
  6325. merged._merged = true;
  6326. return merged
  6327. }
  6328. // transform component v-model info (value and callback) into
  6329. // prop and event handler respectively.
  6330. function transformModel (options, data) {
  6331. var prop = (options.model && options.model.prop) || 'value';
  6332. var event = (options.model && options.model.event) || 'input'
  6333. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6334. var on = data.on || (data.on = {});
  6335. var existing = on[event];
  6336. var callback = data.model.callback;
  6337. if (isDef(existing)) {
  6338. if (
  6339. Array.isArray(existing)
  6340. ? existing.indexOf(callback) === -1
  6341. : existing !== callback
  6342. ) {
  6343. on[event] = [callback].concat(existing);
  6344. }
  6345. } else {
  6346. on[event] = callback;
  6347. }
  6348. }
  6349. /* */
  6350. var SIMPLE_NORMALIZE = 1;
  6351. var ALWAYS_NORMALIZE = 2;
  6352. // wrapper function for providing a more flexible interface
  6353. // without getting yelled at by flow
  6354. function createElement (
  6355. context,
  6356. tag,
  6357. data,
  6358. children,
  6359. normalizationType,
  6360. alwaysNormalize
  6361. ) {
  6362. if (Array.isArray(data) || isPrimitive(data)) {
  6363. normalizationType = children;
  6364. children = data;
  6365. data = undefined;
  6366. }
  6367. if (isTrue(alwaysNormalize)) {
  6368. normalizationType = ALWAYS_NORMALIZE;
  6369. }
  6370. return _createElement(context, tag, data, children, normalizationType)
  6371. }
  6372. function _createElement (
  6373. context,
  6374. tag,
  6375. data,
  6376. children,
  6377. normalizationType
  6378. ) {
  6379. if (isDef(data) && isDef((data).__ob__)) {
  6380. true && warn(
  6381. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6382. 'Always create fresh vnode data objects in each render!',
  6383. context
  6384. );
  6385. return createEmptyVNode()
  6386. }
  6387. // object syntax in v-bind
  6388. if (isDef(data) && isDef(data.is)) {
  6389. tag = data.is;
  6390. }
  6391. if (!tag) {
  6392. // in case of component :is set to falsy value
  6393. return createEmptyVNode()
  6394. }
  6395. // warn against non-primitive key
  6396. if ( true &&
  6397. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6398. ) {
  6399. {
  6400. warn(
  6401. 'Avoid using non-primitive value as key, ' +
  6402. 'use string/number value instead.',
  6403. context
  6404. );
  6405. }
  6406. }
  6407. // support single function children as default scoped slot
  6408. if (Array.isArray(children) &&
  6409. typeof children[0] === 'function'
  6410. ) {
  6411. data = data || {};
  6412. data.scopedSlots = { default: children[0] };
  6413. children.length = 0;
  6414. }
  6415. if (normalizationType === ALWAYS_NORMALIZE) {
  6416. children = normalizeChildren(children);
  6417. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6418. children = simpleNormalizeChildren(children);
  6419. }
  6420. var vnode, ns;
  6421. if (typeof tag === 'string') {
  6422. var Ctor;
  6423. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6424. if (config.isReservedTag(tag)) {
  6425. // platform built-in elements
  6426. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6427. warn(
  6428. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6429. context
  6430. );
  6431. }
  6432. vnode = new VNode(
  6433. config.parsePlatformTagName(tag), data, children,
  6434. undefined, undefined, context
  6435. );
  6436. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6437. // component
  6438. vnode = createComponent(Ctor, data, context, children, tag);
  6439. } else {
  6440. // unknown or unlisted namespaced elements
  6441. // check at runtime because it may get assigned a namespace when its
  6442. // parent normalizes children
  6443. vnode = new VNode(
  6444. tag, data, children,
  6445. undefined, undefined, context
  6446. );
  6447. }
  6448. } else {
  6449. // direct component options / constructor
  6450. vnode = createComponent(tag, data, context, children);
  6451. }
  6452. if (Array.isArray(vnode)) {
  6453. return vnode
  6454. } else if (isDef(vnode)) {
  6455. if (isDef(ns)) { applyNS(vnode, ns); }
  6456. if (isDef(data)) { registerDeepBindings(data); }
  6457. return vnode
  6458. } else {
  6459. return createEmptyVNode()
  6460. }
  6461. }
  6462. function applyNS (vnode, ns, force) {
  6463. vnode.ns = ns;
  6464. if (vnode.tag === 'foreignObject') {
  6465. // use default namespace inside foreignObject
  6466. ns = undefined;
  6467. force = true;
  6468. }
  6469. if (isDef(vnode.children)) {
  6470. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6471. var child = vnode.children[i];
  6472. if (isDef(child.tag) && (
  6473. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6474. applyNS(child, ns, force);
  6475. }
  6476. }
  6477. }
  6478. }
  6479. // ref #5318
  6480. // necessary to ensure parent re-render when deep bindings like :style and
  6481. // :class are used on slot nodes
  6482. function registerDeepBindings (data) {
  6483. if (isObject(data.style)) {
  6484. traverse(data.style);
  6485. }
  6486. if (isObject(data.class)) {
  6487. traverse(data.class);
  6488. }
  6489. }
  6490. /* */
  6491. function initRender (vm) {
  6492. vm._vnode = null; // the root of the child tree
  6493. vm._staticTrees = null; // v-once cached trees
  6494. var options = vm.$options;
  6495. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6496. var renderContext = parentVnode && parentVnode.context;
  6497. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6498. vm.$scopedSlots = emptyObject;
  6499. // bind the createElement fn to this instance
  6500. // so that we get proper render context inside it.
  6501. // args order: tag, data, children, normalizationType, alwaysNormalize
  6502. // internal version is used by render functions compiled from templates
  6503. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6504. // normalization is always applied for the public version, used in
  6505. // user-written render functions.
  6506. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6507. // $attrs & $listeners are exposed for easier HOC creation.
  6508. // they need to be reactive so that HOCs using them are always updated
  6509. var parentData = parentVnode && parentVnode.data;
  6510. /* istanbul ignore else */
  6511. if (true) {
  6512. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6514. }, true);
  6515. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6516. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6517. }, true);
  6518. } else {}
  6519. }
  6520. var currentRenderingInstance = null;
  6521. function renderMixin (Vue) {
  6522. // install runtime convenience helpers
  6523. installRenderHelpers(Vue.prototype);
  6524. Vue.prototype.$nextTick = function (fn) {
  6525. return nextTick(fn, this)
  6526. };
  6527. Vue.prototype._render = function () {
  6528. var vm = this;
  6529. var ref = vm.$options;
  6530. var render = ref.render;
  6531. var _parentVnode = ref._parentVnode;
  6532. if (_parentVnode) {
  6533. vm.$scopedSlots = normalizeScopedSlots(
  6534. _parentVnode.data.scopedSlots,
  6535. vm.$slots,
  6536. vm.$scopedSlots
  6537. );
  6538. }
  6539. // set parent vnode. this allows render functions to have access
  6540. // to the data on the placeholder node.
  6541. vm.$vnode = _parentVnode;
  6542. // render self
  6543. var vnode;
  6544. try {
  6545. // There's no need to maintain a stack because all render fns are called
  6546. // separately from one another. Nested component's render fns are called
  6547. // when parent component is patched.
  6548. currentRenderingInstance = vm;
  6549. vnode = render.call(vm._renderProxy, vm.$createElement);
  6550. } catch (e) {
  6551. handleError(e, vm, "render");
  6552. // return error render result,
  6553. // or previous vnode to prevent render error causing blank component
  6554. /* istanbul ignore else */
  6555. if ( true && vm.$options.renderError) {
  6556. try {
  6557. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6558. } catch (e) {
  6559. handleError(e, vm, "renderError");
  6560. vnode = vm._vnode;
  6561. }
  6562. } else {
  6563. vnode = vm._vnode;
  6564. }
  6565. } finally {
  6566. currentRenderingInstance = null;
  6567. }
  6568. // if the returned array contains only a single node, allow it
  6569. if (Array.isArray(vnode) && vnode.length === 1) {
  6570. vnode = vnode[0];
  6571. }
  6572. // return empty vnode in case the render function errored out
  6573. if (!(vnode instanceof VNode)) {
  6574. if ( true && Array.isArray(vnode)) {
  6575. warn(
  6576. 'Multiple root nodes returned from render function. Render function ' +
  6577. 'should return a single root node.',
  6578. vm
  6579. );
  6580. }
  6581. vnode = createEmptyVNode();
  6582. }
  6583. // set parent
  6584. vnode.parent = _parentVnode;
  6585. return vnode
  6586. };
  6587. }
  6588. /* */
  6589. function ensureCtor (comp, base) {
  6590. if (
  6591. comp.__esModule ||
  6592. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6593. ) {
  6594. comp = comp.default;
  6595. }
  6596. return isObject(comp)
  6597. ? base.extend(comp)
  6598. : comp
  6599. }
  6600. function createAsyncPlaceholder (
  6601. factory,
  6602. data,
  6603. context,
  6604. children,
  6605. tag
  6606. ) {
  6607. var node = createEmptyVNode();
  6608. node.asyncFactory = factory;
  6609. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6610. return node
  6611. }
  6612. function resolveAsyncComponent (
  6613. factory,
  6614. baseCtor
  6615. ) {
  6616. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6617. return factory.errorComp
  6618. }
  6619. if (isDef(factory.resolved)) {
  6620. return factory.resolved
  6621. }
  6622. var owner = currentRenderingInstance;
  6623. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6624. // already pending
  6625. factory.owners.push(owner);
  6626. }
  6627. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6628. return factory.loadingComp
  6629. }
  6630. if (owner && !isDef(factory.owners)) {
  6631. var owners = factory.owners = [owner];
  6632. var sync = true;
  6633. var timerLoading = null;
  6634. var timerTimeout = null
  6635. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6636. var forceRender = function (renderCompleted) {
  6637. for (var i = 0, l = owners.length; i < l; i++) {
  6638. (owners[i]).$forceUpdate();
  6639. }
  6640. if (renderCompleted) {
  6641. owners.length = 0;
  6642. if (timerLoading !== null) {
  6643. clearTimeout(timerLoading);
  6644. timerLoading = null;
  6645. }
  6646. if (timerTimeout !== null) {
  6647. clearTimeout(timerTimeout);
  6648. timerTimeout = null;
  6649. }
  6650. }
  6651. };
  6652. var resolve = once(function (res) {
  6653. // cache resolved
  6654. factory.resolved = ensureCtor(res, baseCtor);
  6655. // invoke callbacks only if this is not a synchronous resolve
  6656. // (async resolves are shimmed as synchronous during SSR)
  6657. if (!sync) {
  6658. forceRender(true);
  6659. } else {
  6660. owners.length = 0;
  6661. }
  6662. });
  6663. var reject = once(function (reason) {
  6664. true && warn(
  6665. "Failed to resolve async component: " + (String(factory)) +
  6666. (reason ? ("\nReason: " + reason) : '')
  6667. );
  6668. if (isDef(factory.errorComp)) {
  6669. factory.error = true;
  6670. forceRender(true);
  6671. }
  6672. });
  6673. var res = factory(resolve, reject);
  6674. if (isObject(res)) {
  6675. if (isPromise(res)) {
  6676. // () => Promise
  6677. if (isUndef(factory.resolved)) {
  6678. res.then(resolve, reject);
  6679. }
  6680. } else if (isPromise(res.component)) {
  6681. res.component.then(resolve, reject);
  6682. if (isDef(res.error)) {
  6683. factory.errorComp = ensureCtor(res.error, baseCtor);
  6684. }
  6685. if (isDef(res.loading)) {
  6686. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6687. if (res.delay === 0) {
  6688. factory.loading = true;
  6689. } else {
  6690. timerLoading = setTimeout(function () {
  6691. timerLoading = null;
  6692. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6693. factory.loading = true;
  6694. forceRender(false);
  6695. }
  6696. }, res.delay || 200);
  6697. }
  6698. }
  6699. if (isDef(res.timeout)) {
  6700. timerTimeout = setTimeout(function () {
  6701. timerTimeout = null;
  6702. if (isUndef(factory.resolved)) {
  6703. reject(
  6704. true
  6705. ? ("timeout (" + (res.timeout) + "ms)")
  6706. : undefined
  6707. );
  6708. }
  6709. }, res.timeout);
  6710. }
  6711. }
  6712. }
  6713. sync = false;
  6714. // return in case resolved synchronously
  6715. return factory.loading
  6716. ? factory.loadingComp
  6717. : factory.resolved
  6718. }
  6719. }
  6720. /* */
  6721. function isAsyncPlaceholder (node) {
  6722. return node.isComment && node.asyncFactory
  6723. }
  6724. /* */
  6725. function getFirstComponentChild (children) {
  6726. if (Array.isArray(children)) {
  6727. for (var i = 0; i < children.length; i++) {
  6728. var c = children[i];
  6729. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6730. return c
  6731. }
  6732. }
  6733. }
  6734. }
  6735. /* */
  6736. /* */
  6737. function initEvents (vm) {
  6738. vm._events = Object.create(null);
  6739. vm._hasHookEvent = false;
  6740. // init parent attached events
  6741. var listeners = vm.$options._parentListeners;
  6742. if (listeners) {
  6743. updateComponentListeners(vm, listeners);
  6744. }
  6745. }
  6746. var target;
  6747. function add (event, fn) {
  6748. target.$on(event, fn);
  6749. }
  6750. function remove$1 (event, fn) {
  6751. target.$off(event, fn);
  6752. }
  6753. function createOnceHandler (event, fn) {
  6754. var _target = target;
  6755. return function onceHandler () {
  6756. var res = fn.apply(null, arguments);
  6757. if (res !== null) {
  6758. _target.$off(event, onceHandler);
  6759. }
  6760. }
  6761. }
  6762. function updateComponentListeners (
  6763. vm,
  6764. listeners,
  6765. oldListeners
  6766. ) {
  6767. target = vm;
  6768. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6769. target = undefined;
  6770. }
  6771. function eventsMixin (Vue) {
  6772. var hookRE = /^hook:/;
  6773. Vue.prototype.$on = function (event, fn) {
  6774. var vm = this;
  6775. if (Array.isArray(event)) {
  6776. for (var i = 0, l = event.length; i < l; i++) {
  6777. vm.$on(event[i], fn);
  6778. }
  6779. } else {
  6780. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6781. // optimize hook:event cost by using a boolean flag marked at registration
  6782. // instead of a hash lookup
  6783. if (hookRE.test(event)) {
  6784. vm._hasHookEvent = true;
  6785. }
  6786. }
  6787. return vm
  6788. };
  6789. Vue.prototype.$once = function (event, fn) {
  6790. var vm = this;
  6791. function on () {
  6792. vm.$off(event, on);
  6793. fn.apply(vm, arguments);
  6794. }
  6795. on.fn = fn;
  6796. vm.$on(event, on);
  6797. return vm
  6798. };
  6799. Vue.prototype.$off = function (event, fn) {
  6800. var vm = this;
  6801. // all
  6802. if (!arguments.length) {
  6803. vm._events = Object.create(null);
  6804. return vm
  6805. }
  6806. // array of events
  6807. if (Array.isArray(event)) {
  6808. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6809. vm.$off(event[i$1], fn);
  6810. }
  6811. return vm
  6812. }
  6813. // specific event
  6814. var cbs = vm._events[event];
  6815. if (!cbs) {
  6816. return vm
  6817. }
  6818. if (!fn) {
  6819. vm._events[event] = null;
  6820. return vm
  6821. }
  6822. // specific handler
  6823. var cb;
  6824. var i = cbs.length;
  6825. while (i--) {
  6826. cb = cbs[i];
  6827. if (cb === fn || cb.fn === fn) {
  6828. cbs.splice(i, 1);
  6829. break
  6830. }
  6831. }
  6832. return vm
  6833. };
  6834. Vue.prototype.$emit = function (event) {
  6835. var vm = this;
  6836. if (true) {
  6837. var lowerCaseEvent = event.toLowerCase();
  6838. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6839. tip(
  6840. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6841. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6842. "Note that HTML attributes are case-insensitive and you cannot use " +
  6843. "v-on to listen to camelCase events when using in-DOM templates. " +
  6844. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6845. );
  6846. }
  6847. }
  6848. var cbs = vm._events[event];
  6849. if (cbs) {
  6850. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6851. var args = toArray(arguments, 1);
  6852. var info = "event handler for \"" + event + "\"";
  6853. for (var i = 0, l = cbs.length; i < l; i++) {
  6854. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6855. }
  6856. }
  6857. return vm
  6858. };
  6859. }
  6860. /* */
  6861. var activeInstance = null;
  6862. var isUpdatingChildComponent = false;
  6863. function setActiveInstance(vm) {
  6864. var prevActiveInstance = activeInstance;
  6865. activeInstance = vm;
  6866. return function () {
  6867. activeInstance = prevActiveInstance;
  6868. }
  6869. }
  6870. function initLifecycle (vm) {
  6871. var options = vm.$options;
  6872. // locate first non-abstract parent
  6873. var parent = options.parent;
  6874. if (parent && !options.abstract) {
  6875. while (parent.$options.abstract && parent.$parent) {
  6876. parent = parent.$parent;
  6877. }
  6878. parent.$children.push(vm);
  6879. }
  6880. vm.$parent = parent;
  6881. vm.$root = parent ? parent.$root : vm;
  6882. vm.$children = [];
  6883. vm.$refs = {};
  6884. vm._watcher = null;
  6885. vm._inactive = null;
  6886. vm._directInactive = false;
  6887. vm._isMounted = false;
  6888. vm._isDestroyed = false;
  6889. vm._isBeingDestroyed = false;
  6890. }
  6891. function lifecycleMixin (Vue) {
  6892. Vue.prototype._update = function (vnode, hydrating) {
  6893. var vm = this;
  6894. var prevEl = vm.$el;
  6895. var prevVnode = vm._vnode;
  6896. var restoreActiveInstance = setActiveInstance(vm);
  6897. vm._vnode = vnode;
  6898. // Vue.prototype.__patch__ is injected in entry points
  6899. // based on the rendering backend used.
  6900. if (!prevVnode) {
  6901. // initial render
  6902. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6903. } else {
  6904. // updates
  6905. vm.$el = vm.__patch__(prevVnode, vnode);
  6906. }
  6907. restoreActiveInstance();
  6908. // update __vue__ reference
  6909. if (prevEl) {
  6910. prevEl.__vue__ = null;
  6911. }
  6912. if (vm.$el) {
  6913. vm.$el.__vue__ = vm;
  6914. }
  6915. // if parent is an HOC, update its $el as well
  6916. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6917. vm.$parent.$el = vm.$el;
  6918. }
  6919. // updated hook is called by the scheduler to ensure that children are
  6920. // updated in a parent's updated hook.
  6921. };
  6922. Vue.prototype.$forceUpdate = function () {
  6923. var vm = this;
  6924. if (vm._watcher) {
  6925. vm._watcher.update();
  6926. }
  6927. };
  6928. Vue.prototype.$destroy = function () {
  6929. var vm = this;
  6930. if (vm._isBeingDestroyed) {
  6931. return
  6932. }
  6933. callHook(vm, 'beforeDestroy');
  6934. vm._isBeingDestroyed = true;
  6935. // remove self from parent
  6936. var parent = vm.$parent;
  6937. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6938. remove(parent.$children, vm);
  6939. }
  6940. // teardown watchers
  6941. if (vm._watcher) {
  6942. vm._watcher.teardown();
  6943. }
  6944. var i = vm._watchers.length;
  6945. while (i--) {
  6946. vm._watchers[i].teardown();
  6947. }
  6948. // remove reference from data ob
  6949. // frozen object may not have observer.
  6950. if (vm._data.__ob__) {
  6951. vm._data.__ob__.vmCount--;
  6952. }
  6953. // call the last hook...
  6954. vm._isDestroyed = true;
  6955. // invoke destroy hooks on current rendered tree
  6956. vm.__patch__(vm._vnode, null);
  6957. // fire destroyed hook
  6958. callHook(vm, 'destroyed');
  6959. // turn off all instance listeners.
  6960. vm.$off();
  6961. // remove __vue__ reference
  6962. if (vm.$el) {
  6963. vm.$el.__vue__ = null;
  6964. }
  6965. // release circular reference (#6759)
  6966. if (vm.$vnode) {
  6967. vm.$vnode.parent = null;
  6968. }
  6969. };
  6970. }
  6971. function updateChildComponent (
  6972. vm,
  6973. propsData,
  6974. listeners,
  6975. parentVnode,
  6976. renderChildren
  6977. ) {
  6978. if (true) {
  6979. isUpdatingChildComponent = true;
  6980. }
  6981. // determine whether component has slot children
  6982. // we need to do this before overwriting $options._renderChildren.
  6983. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6984. // dynamic slot names). Static scoped slots compiled from template has the
  6985. // "$stable" marker.
  6986. var newScopedSlots = parentVnode.data.scopedSlots;
  6987. var oldScopedSlots = vm.$scopedSlots;
  6988. var hasDynamicScopedSlot = !!(
  6989. (newScopedSlots && !newScopedSlots.$stable) ||
  6990. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6991. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6992. );
  6993. // Any static slot children from the parent may have changed during parent's
  6994. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6995. // update is necessary to ensure correctness.
  6996. var needsForceUpdate = !!(
  6997. renderChildren || // has new static slots
  6998. vm.$options._renderChildren || // has old static slots
  6999. hasDynamicScopedSlot
  7000. );
  7001. vm.$options._parentVnode = parentVnode;
  7002. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7003. if (vm._vnode) { // update child tree's parent
  7004. vm._vnode.parent = parentVnode;
  7005. }
  7006. vm.$options._renderChildren = renderChildren;
  7007. // update $attrs and $listeners hash
  7008. // these are also reactive so they may trigger child update if the child
  7009. // used them during render
  7010. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7011. vm.$listeners = listeners || emptyObject;
  7012. // update props
  7013. if (propsData && vm.$options.props) {
  7014. toggleObserving(false);
  7015. var props = vm._props;
  7016. var propKeys = vm.$options._propKeys || [];
  7017. for (var i = 0; i < propKeys.length; i++) {
  7018. var key = propKeys[i];
  7019. var propOptions = vm.$options.props; // wtf flow?
  7020. props[key] = validateProp(key, propOptions, propsData, vm);
  7021. }
  7022. toggleObserving(true);
  7023. // keep a copy of raw propsData
  7024. vm.$options.propsData = propsData;
  7025. }
  7026. // fixed by xxxxxx update properties(mp runtime)
  7027. vm._$updateProperties && vm._$updateProperties(vm);
  7028. // update listeners
  7029. listeners = listeners || emptyObject;
  7030. var oldListeners = vm.$options._parentListeners;
  7031. vm.$options._parentListeners = listeners;
  7032. updateComponentListeners(vm, listeners, oldListeners);
  7033. // resolve slots + force update if has children
  7034. if (needsForceUpdate) {
  7035. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7036. vm.$forceUpdate();
  7037. }
  7038. if (true) {
  7039. isUpdatingChildComponent = false;
  7040. }
  7041. }
  7042. function isInInactiveTree (vm) {
  7043. while (vm && (vm = vm.$parent)) {
  7044. if (vm._inactive) { return true }
  7045. }
  7046. return false
  7047. }
  7048. function activateChildComponent (vm, direct) {
  7049. if (direct) {
  7050. vm._directInactive = false;
  7051. if (isInInactiveTree(vm)) {
  7052. return
  7053. }
  7054. } else if (vm._directInactive) {
  7055. return
  7056. }
  7057. if (vm._inactive || vm._inactive === null) {
  7058. vm._inactive = false;
  7059. for (var i = 0; i < vm.$children.length; i++) {
  7060. activateChildComponent(vm.$children[i]);
  7061. }
  7062. callHook(vm, 'activated');
  7063. }
  7064. }
  7065. function deactivateChildComponent (vm, direct) {
  7066. if (direct) {
  7067. vm._directInactive = true;
  7068. if (isInInactiveTree(vm)) {
  7069. return
  7070. }
  7071. }
  7072. if (!vm._inactive) {
  7073. vm._inactive = true;
  7074. for (var i = 0; i < vm.$children.length; i++) {
  7075. deactivateChildComponent(vm.$children[i]);
  7076. }
  7077. callHook(vm, 'deactivated');
  7078. }
  7079. }
  7080. function callHook (vm, hook) {
  7081. // #7573 disable dep collection when invoking lifecycle hooks
  7082. pushTarget();
  7083. var handlers = vm.$options[hook];
  7084. var info = hook + " hook";
  7085. if (handlers) {
  7086. for (var i = 0, j = handlers.length; i < j; i++) {
  7087. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7088. }
  7089. }
  7090. if (vm._hasHookEvent) {
  7091. vm.$emit('hook:' + hook);
  7092. }
  7093. popTarget();
  7094. }
  7095. /* */
  7096. var MAX_UPDATE_COUNT = 100;
  7097. var queue = [];
  7098. var activatedChildren = [];
  7099. var has = {};
  7100. var circular = {};
  7101. var waiting = false;
  7102. var flushing = false;
  7103. var index = 0;
  7104. /**
  7105. * Reset the scheduler's state.
  7106. */
  7107. function resetSchedulerState () {
  7108. index = queue.length = activatedChildren.length = 0;
  7109. has = {};
  7110. if (true) {
  7111. circular = {};
  7112. }
  7113. waiting = flushing = false;
  7114. }
  7115. // Async edge case #6566 requires saving the timestamp when event listeners are
  7116. // attached. However, calling performance.now() has a perf overhead especially
  7117. // if the page has thousands of event listeners. Instead, we take a timestamp
  7118. // every time the scheduler flushes and use that for all event listeners
  7119. // attached during that flush.
  7120. var currentFlushTimestamp = 0;
  7121. // Async edge case fix requires storing an event listener's attach timestamp.
  7122. var getNow = Date.now;
  7123. // Determine what event timestamp the browser is using. Annoyingly, the
  7124. // timestamp can either be hi-res (relative to page load) or low-res
  7125. // (relative to UNIX epoch), so in order to compare time we have to use the
  7126. // same timestamp type when saving the flush timestamp.
  7127. // All IE versions use low-res event timestamps, and have problematic clock
  7128. // implementations (#9632)
  7129. if (inBrowser && !isIE) {
  7130. var performance = window.performance;
  7131. if (
  7132. performance &&
  7133. typeof performance.now === 'function' &&
  7134. getNow() > document.createEvent('Event').timeStamp
  7135. ) {
  7136. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7137. // smaller than it, it means the event is using a hi-res timestamp,
  7138. // and we need to use the hi-res version for event listener timestamps as
  7139. // well.
  7140. getNow = function () { return performance.now(); };
  7141. }
  7142. }
  7143. /**
  7144. * Flush both queues and run the watchers.
  7145. */
  7146. function flushSchedulerQueue () {
  7147. currentFlushTimestamp = getNow();
  7148. flushing = true;
  7149. var watcher, id;
  7150. // Sort queue before flush.
  7151. // This ensures that:
  7152. // 1. Components are updated from parent to child. (because parent is always
  7153. // created before the child)
  7154. // 2. A component's user watchers are run before its render watcher (because
  7155. // user watchers are created before the render watcher)
  7156. // 3. If a component is destroyed during a parent component's watcher run,
  7157. // its watchers can be skipped.
  7158. queue.sort(function (a, b) { return a.id - b.id; });
  7159. // do not cache length because more watchers might be pushed
  7160. // as we run existing watchers
  7161. for (index = 0; index < queue.length; index++) {
  7162. watcher = queue[index];
  7163. if (watcher.before) {
  7164. watcher.before();
  7165. }
  7166. id = watcher.id;
  7167. has[id] = null;
  7168. watcher.run();
  7169. // in dev build, check and stop circular updates.
  7170. if ( true && has[id] != null) {
  7171. circular[id] = (circular[id] || 0) + 1;
  7172. if (circular[id] > MAX_UPDATE_COUNT) {
  7173. warn(
  7174. 'You may have an infinite update loop ' + (
  7175. watcher.user
  7176. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7177. : "in a component render function."
  7178. ),
  7179. watcher.vm
  7180. );
  7181. break
  7182. }
  7183. }
  7184. }
  7185. // keep copies of post queues before resetting state
  7186. var activatedQueue = activatedChildren.slice();
  7187. var updatedQueue = queue.slice();
  7188. resetSchedulerState();
  7189. // call component updated and activated hooks
  7190. callActivatedHooks(activatedQueue);
  7191. callUpdatedHooks(updatedQueue);
  7192. // devtool hook
  7193. /* istanbul ignore if */
  7194. if (devtools && config.devtools) {
  7195. devtools.emit('flush');
  7196. }
  7197. }
  7198. function callUpdatedHooks (queue) {
  7199. var i = queue.length;
  7200. while (i--) {
  7201. var watcher = queue[i];
  7202. var vm = watcher.vm;
  7203. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7204. callHook(vm, 'updated');
  7205. }
  7206. }
  7207. }
  7208. /**
  7209. * Queue a kept-alive component that was activated during patch.
  7210. * The queue will be processed after the entire tree has been patched.
  7211. */
  7212. function queueActivatedComponent (vm) {
  7213. // setting _inactive to false here so that a render function can
  7214. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7215. vm._inactive = false;
  7216. activatedChildren.push(vm);
  7217. }
  7218. function callActivatedHooks (queue) {
  7219. for (var i = 0; i < queue.length; i++) {
  7220. queue[i]._inactive = true;
  7221. activateChildComponent(queue[i], true /* true */);
  7222. }
  7223. }
  7224. /**
  7225. * Push a watcher into the watcher queue.
  7226. * Jobs with duplicate IDs will be skipped unless it's
  7227. * pushed when the queue is being flushed.
  7228. */
  7229. function queueWatcher (watcher) {
  7230. var id = watcher.id;
  7231. if (has[id] == null) {
  7232. has[id] = true;
  7233. if (!flushing) {
  7234. queue.push(watcher);
  7235. } else {
  7236. // if already flushing, splice the watcher based on its id
  7237. // if already past its id, it will be run next immediately.
  7238. var i = queue.length - 1;
  7239. while (i > index && queue[i].id > watcher.id) {
  7240. i--;
  7241. }
  7242. queue.splice(i + 1, 0, watcher);
  7243. }
  7244. // queue the flush
  7245. if (!waiting) {
  7246. waiting = true;
  7247. if ( true && !config.async) {
  7248. flushSchedulerQueue();
  7249. return
  7250. }
  7251. nextTick(flushSchedulerQueue);
  7252. }
  7253. }
  7254. }
  7255. /* */
  7256. var uid$2 = 0;
  7257. /**
  7258. * A watcher parses an expression, collects dependencies,
  7259. * and fires callback when the expression value changes.
  7260. * This is used for both the $watch() api and directives.
  7261. */
  7262. var Watcher = function Watcher (
  7263. vm,
  7264. expOrFn,
  7265. cb,
  7266. options,
  7267. isRenderWatcher
  7268. ) {
  7269. this.vm = vm;
  7270. if (isRenderWatcher) {
  7271. vm._watcher = this;
  7272. }
  7273. vm._watchers.push(this);
  7274. // options
  7275. if (options) {
  7276. this.deep = !!options.deep;
  7277. this.user = !!options.user;
  7278. this.lazy = !!options.lazy;
  7279. this.sync = !!options.sync;
  7280. this.before = options.before;
  7281. } else {
  7282. this.deep = this.user = this.lazy = this.sync = false;
  7283. }
  7284. this.cb = cb;
  7285. this.id = ++uid$2; // uid for batching
  7286. this.active = true;
  7287. this.dirty = this.lazy; // for lazy watchers
  7288. this.deps = [];
  7289. this.newDeps = [];
  7290. this.depIds = new _Set();
  7291. this.newDepIds = new _Set();
  7292. this.expression = true
  7293. ? expOrFn.toString()
  7294. : undefined;
  7295. // parse expression for getter
  7296. if (typeof expOrFn === 'function') {
  7297. this.getter = expOrFn;
  7298. } else {
  7299. this.getter = parsePath(expOrFn);
  7300. if (!this.getter) {
  7301. this.getter = noop;
  7302. true && warn(
  7303. "Failed watching path: \"" + expOrFn + "\" " +
  7304. 'Watcher only accepts simple dot-delimited paths. ' +
  7305. 'For full control, use a function instead.',
  7306. vm
  7307. );
  7308. }
  7309. }
  7310. this.value = this.lazy
  7311. ? undefined
  7312. : this.get();
  7313. };
  7314. /**
  7315. * Evaluate the getter, and re-collect dependencies.
  7316. */
  7317. Watcher.prototype.get = function get () {
  7318. pushTarget(this);
  7319. var value;
  7320. var vm = this.vm;
  7321. try {
  7322. value = this.getter.call(vm, vm);
  7323. } catch (e) {
  7324. if (this.user) {
  7325. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7326. } else {
  7327. throw e
  7328. }
  7329. } finally {
  7330. // "touch" every property so they are all tracked as
  7331. // dependencies for deep watching
  7332. if (this.deep) {
  7333. traverse(value);
  7334. }
  7335. popTarget();
  7336. this.cleanupDeps();
  7337. }
  7338. return value
  7339. };
  7340. /**
  7341. * Add a dependency to this directive.
  7342. */
  7343. Watcher.prototype.addDep = function addDep (dep) {
  7344. var id = dep.id;
  7345. if (!this.newDepIds.has(id)) {
  7346. this.newDepIds.add(id);
  7347. this.newDeps.push(dep);
  7348. if (!this.depIds.has(id)) {
  7349. dep.addSub(this);
  7350. }
  7351. }
  7352. };
  7353. /**
  7354. * Clean up for dependency collection.
  7355. */
  7356. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7357. var i = this.deps.length;
  7358. while (i--) {
  7359. var dep = this.deps[i];
  7360. if (!this.newDepIds.has(dep.id)) {
  7361. dep.removeSub(this);
  7362. }
  7363. }
  7364. var tmp = this.depIds;
  7365. this.depIds = this.newDepIds;
  7366. this.newDepIds = tmp;
  7367. this.newDepIds.clear();
  7368. tmp = this.deps;
  7369. this.deps = this.newDeps;
  7370. this.newDeps = tmp;
  7371. this.newDeps.length = 0;
  7372. };
  7373. /**
  7374. * Subscriber interface.
  7375. * Will be called when a dependency changes.
  7376. */
  7377. Watcher.prototype.update = function update () {
  7378. /* istanbul ignore else */
  7379. if (this.lazy) {
  7380. this.dirty = true;
  7381. } else if (this.sync) {
  7382. this.run();
  7383. } else {
  7384. queueWatcher(this);
  7385. }
  7386. };
  7387. /**
  7388. * Scheduler job interface.
  7389. * Will be called by the scheduler.
  7390. */
  7391. Watcher.prototype.run = function run () {
  7392. if (this.active) {
  7393. var value = this.get();
  7394. if (
  7395. value !== this.value ||
  7396. // Deep watchers and watchers on Object/Arrays should fire even
  7397. // when the value is the same, because the value may
  7398. // have mutated.
  7399. isObject(value) ||
  7400. this.deep
  7401. ) {
  7402. // set new value
  7403. var oldValue = this.value;
  7404. this.value = value;
  7405. if (this.user) {
  7406. try {
  7407. this.cb.call(this.vm, value, oldValue);
  7408. } catch (e) {
  7409. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7410. }
  7411. } else {
  7412. this.cb.call(this.vm, value, oldValue);
  7413. }
  7414. }
  7415. }
  7416. };
  7417. /**
  7418. * Evaluate the value of the watcher.
  7419. * This only gets called for lazy watchers.
  7420. */
  7421. Watcher.prototype.evaluate = function evaluate () {
  7422. this.value = this.get();
  7423. this.dirty = false;
  7424. };
  7425. /**
  7426. * Depend on all deps collected by this watcher.
  7427. */
  7428. Watcher.prototype.depend = function depend () {
  7429. var i = this.deps.length;
  7430. while (i--) {
  7431. this.deps[i].depend();
  7432. }
  7433. };
  7434. /**
  7435. * Remove self from all dependencies' subscriber list.
  7436. */
  7437. Watcher.prototype.teardown = function teardown () {
  7438. if (this.active) {
  7439. // remove self from vm's watcher list
  7440. // this is a somewhat expensive operation so we skip it
  7441. // if the vm is being destroyed.
  7442. if (!this.vm._isBeingDestroyed) {
  7443. remove(this.vm._watchers, this);
  7444. }
  7445. var i = this.deps.length;
  7446. while (i--) {
  7447. this.deps[i].removeSub(this);
  7448. }
  7449. this.active = false;
  7450. }
  7451. };
  7452. /* */
  7453. var sharedPropertyDefinition = {
  7454. enumerable: true,
  7455. configurable: true,
  7456. get: noop,
  7457. set: noop
  7458. };
  7459. function proxy (target, sourceKey, key) {
  7460. sharedPropertyDefinition.get = function proxyGetter () {
  7461. return this[sourceKey][key]
  7462. };
  7463. sharedPropertyDefinition.set = function proxySetter (val) {
  7464. this[sourceKey][key] = val;
  7465. };
  7466. Object.defineProperty(target, key, sharedPropertyDefinition);
  7467. }
  7468. function initState (vm) {
  7469. vm._watchers = [];
  7470. var opts = vm.$options;
  7471. if (opts.props) { initProps(vm, opts.props); }
  7472. if (opts.methods) { initMethods(vm, opts.methods); }
  7473. if (opts.data) {
  7474. initData(vm);
  7475. } else {
  7476. observe(vm._data = {}, true /* asRootData */);
  7477. }
  7478. if (opts.computed) { initComputed(vm, opts.computed); }
  7479. if (opts.watch && opts.watch !== nativeWatch) {
  7480. initWatch(vm, opts.watch);
  7481. }
  7482. }
  7483. function initProps (vm, propsOptions) {
  7484. var propsData = vm.$options.propsData || {};
  7485. var props = vm._props = {};
  7486. // cache prop keys so that future props updates can iterate using Array
  7487. // instead of dynamic object key enumeration.
  7488. var keys = vm.$options._propKeys = [];
  7489. var isRoot = !vm.$parent;
  7490. // root instance props should be converted
  7491. if (!isRoot) {
  7492. toggleObserving(false);
  7493. }
  7494. var loop = function ( key ) {
  7495. keys.push(key);
  7496. var value = validateProp(key, propsOptions, propsData, vm);
  7497. /* istanbul ignore else */
  7498. if (true) {
  7499. var hyphenatedKey = hyphenate(key);
  7500. if (isReservedAttribute(hyphenatedKey) ||
  7501. config.isReservedAttr(hyphenatedKey)) {
  7502. warn(
  7503. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7504. vm
  7505. );
  7506. }
  7507. defineReactive$$1(props, key, value, function () {
  7508. if (!isRoot && !isUpdatingChildComponent) {
  7509. {
  7510. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7511. return
  7512. }
  7513. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7514. if(
  7515. key === 'value' &&
  7516. Array.isArray(vm.$options.behaviors) &&
  7517. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7518. ){
  7519. return
  7520. }
  7521. if(vm._getFormData){
  7522. return
  7523. }
  7524. var $parent = vm.$parent;
  7525. while($parent){
  7526. if($parent.__next_tick_pending){
  7527. return
  7528. }
  7529. $parent = $parent.$parent;
  7530. }
  7531. }
  7532. warn(
  7533. "Avoid mutating a prop directly since the value will be " +
  7534. "overwritten whenever the parent component re-renders. " +
  7535. "Instead, use a data or computed property based on the prop's " +
  7536. "value. Prop being mutated: \"" + key + "\"",
  7537. vm
  7538. );
  7539. }
  7540. });
  7541. } else {}
  7542. // static props are already proxied on the component's prototype
  7543. // during Vue.extend(). We only need to proxy props defined at
  7544. // instantiation here.
  7545. if (!(key in vm)) {
  7546. proxy(vm, "_props", key);
  7547. }
  7548. };
  7549. for (var key in propsOptions) loop( key );
  7550. toggleObserving(true);
  7551. }
  7552. function initData (vm) {
  7553. var data = vm.$options.data;
  7554. data = vm._data = typeof data === 'function'
  7555. ? getData(data, vm)
  7556. : data || {};
  7557. if (!isPlainObject(data)) {
  7558. data = {};
  7559. true && warn(
  7560. 'data functions should return an object:\n' +
  7561. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7562. vm
  7563. );
  7564. }
  7565. // proxy data on instance
  7566. var keys = Object.keys(data);
  7567. var props = vm.$options.props;
  7568. var methods = vm.$options.methods;
  7569. var i = keys.length;
  7570. while (i--) {
  7571. var key = keys[i];
  7572. if (true) {
  7573. if (methods && hasOwn(methods, key)) {
  7574. warn(
  7575. ("Method \"" + key + "\" has already been defined as a data property."),
  7576. vm
  7577. );
  7578. }
  7579. }
  7580. if (props && hasOwn(props, key)) {
  7581. true && warn(
  7582. "The data property \"" + key + "\" is already declared as a prop. " +
  7583. "Use prop default value instead.",
  7584. vm
  7585. );
  7586. } else if (!isReserved(key)) {
  7587. proxy(vm, "_data", key);
  7588. }
  7589. }
  7590. // observe data
  7591. observe(data, true /* asRootData */);
  7592. }
  7593. function getData (data, vm) {
  7594. // #7573 disable dep collection when invoking data getters
  7595. pushTarget();
  7596. try {
  7597. return data.call(vm, vm)
  7598. } catch (e) {
  7599. handleError(e, vm, "data()");
  7600. return {}
  7601. } finally {
  7602. popTarget();
  7603. }
  7604. }
  7605. var computedWatcherOptions = { lazy: true };
  7606. function initComputed (vm, computed) {
  7607. // $flow-disable-line
  7608. var watchers = vm._computedWatchers = Object.create(null);
  7609. // computed properties are just getters during SSR
  7610. var isSSR = isServerRendering();
  7611. for (var key in computed) {
  7612. var userDef = computed[key];
  7613. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7614. if ( true && getter == null) {
  7615. warn(
  7616. ("Getter is missing for computed property \"" + key + "\"."),
  7617. vm
  7618. );
  7619. }
  7620. if (!isSSR) {
  7621. // create internal watcher for the computed property.
  7622. watchers[key] = new Watcher(
  7623. vm,
  7624. getter || noop,
  7625. noop,
  7626. computedWatcherOptions
  7627. );
  7628. }
  7629. // component-defined computed properties are already defined on the
  7630. // component prototype. We only need to define computed properties defined
  7631. // at instantiation here.
  7632. if (!(key in vm)) {
  7633. defineComputed(vm, key, userDef);
  7634. } else if (true) {
  7635. if (key in vm.$data) {
  7636. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7637. } else if (vm.$options.props && key in vm.$options.props) {
  7638. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7639. }
  7640. }
  7641. }
  7642. }
  7643. function defineComputed (
  7644. target,
  7645. key,
  7646. userDef
  7647. ) {
  7648. var shouldCache = !isServerRendering();
  7649. if (typeof userDef === 'function') {
  7650. sharedPropertyDefinition.get = shouldCache
  7651. ? createComputedGetter(key)
  7652. : createGetterInvoker(userDef);
  7653. sharedPropertyDefinition.set = noop;
  7654. } else {
  7655. sharedPropertyDefinition.get = userDef.get
  7656. ? shouldCache && userDef.cache !== false
  7657. ? createComputedGetter(key)
  7658. : createGetterInvoker(userDef.get)
  7659. : noop;
  7660. sharedPropertyDefinition.set = userDef.set || noop;
  7661. }
  7662. if ( true &&
  7663. sharedPropertyDefinition.set === noop) {
  7664. sharedPropertyDefinition.set = function () {
  7665. warn(
  7666. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7667. this
  7668. );
  7669. };
  7670. }
  7671. Object.defineProperty(target, key, sharedPropertyDefinition);
  7672. }
  7673. function createComputedGetter (key) {
  7674. return function computedGetter () {
  7675. var watcher = this._computedWatchers && this._computedWatchers[key];
  7676. if (watcher) {
  7677. if (watcher.dirty) {
  7678. watcher.evaluate();
  7679. }
  7680. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7681. watcher.depend();
  7682. }
  7683. return watcher.value
  7684. }
  7685. }
  7686. }
  7687. function createGetterInvoker(fn) {
  7688. return function computedGetter () {
  7689. return fn.call(this, this)
  7690. }
  7691. }
  7692. function initMethods (vm, methods) {
  7693. var props = vm.$options.props;
  7694. for (var key in methods) {
  7695. if (true) {
  7696. if (typeof methods[key] !== 'function') {
  7697. warn(
  7698. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7699. "Did you reference the function correctly?",
  7700. vm
  7701. );
  7702. }
  7703. if (props && hasOwn(props, key)) {
  7704. warn(
  7705. ("Method \"" + key + "\" has already been defined as a prop."),
  7706. vm
  7707. );
  7708. }
  7709. if ((key in vm) && isReserved(key)) {
  7710. warn(
  7711. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7712. "Avoid defining component methods that start with _ or $."
  7713. );
  7714. }
  7715. }
  7716. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7717. }
  7718. }
  7719. function initWatch (vm, watch) {
  7720. for (var key in watch) {
  7721. var handler = watch[key];
  7722. if (Array.isArray(handler)) {
  7723. for (var i = 0; i < handler.length; i++) {
  7724. createWatcher(vm, key, handler[i]);
  7725. }
  7726. } else {
  7727. createWatcher(vm, key, handler);
  7728. }
  7729. }
  7730. }
  7731. function createWatcher (
  7732. vm,
  7733. expOrFn,
  7734. handler,
  7735. options
  7736. ) {
  7737. if (isPlainObject(handler)) {
  7738. options = handler;
  7739. handler = handler.handler;
  7740. }
  7741. if (typeof handler === 'string') {
  7742. handler = vm[handler];
  7743. }
  7744. return vm.$watch(expOrFn, handler, options)
  7745. }
  7746. function stateMixin (Vue) {
  7747. // flow somehow has problems with directly declared definition object
  7748. // when using Object.defineProperty, so we have to procedurally build up
  7749. // the object here.
  7750. var dataDef = {};
  7751. dataDef.get = function () { return this._data };
  7752. var propsDef = {};
  7753. propsDef.get = function () { return this._props };
  7754. if (true) {
  7755. dataDef.set = function () {
  7756. warn(
  7757. 'Avoid replacing instance root $data. ' +
  7758. 'Use nested data properties instead.',
  7759. this
  7760. );
  7761. };
  7762. propsDef.set = function () {
  7763. warn("$props is readonly.", this);
  7764. };
  7765. }
  7766. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7767. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7768. Vue.prototype.$set = set;
  7769. Vue.prototype.$delete = del;
  7770. Vue.prototype.$watch = function (
  7771. expOrFn,
  7772. cb,
  7773. options
  7774. ) {
  7775. var vm = this;
  7776. if (isPlainObject(cb)) {
  7777. return createWatcher(vm, expOrFn, cb, options)
  7778. }
  7779. options = options || {};
  7780. options.user = true;
  7781. var watcher = new Watcher(vm, expOrFn, cb, options);
  7782. if (options.immediate) {
  7783. try {
  7784. cb.call(vm, watcher.value);
  7785. } catch (error) {
  7786. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7787. }
  7788. }
  7789. return function unwatchFn () {
  7790. watcher.teardown();
  7791. }
  7792. };
  7793. }
  7794. /* */
  7795. var uid$3 = 0;
  7796. function initMixin (Vue) {
  7797. Vue.prototype._init = function (options) {
  7798. var vm = this;
  7799. // a uid
  7800. vm._uid = uid$3++;
  7801. var startTag, endTag;
  7802. /* istanbul ignore if */
  7803. if ( true && config.performance && mark) {
  7804. startTag = "vue-perf-start:" + (vm._uid);
  7805. endTag = "vue-perf-end:" + (vm._uid);
  7806. mark(startTag);
  7807. }
  7808. // a flag to avoid this being observed
  7809. vm._isVue = true;
  7810. // merge options
  7811. if (options && options._isComponent) {
  7812. // optimize internal component instantiation
  7813. // since dynamic options merging is pretty slow, and none of the
  7814. // internal component options needs special treatment.
  7815. initInternalComponent(vm, options);
  7816. } else {
  7817. vm.$options = mergeOptions(
  7818. resolveConstructorOptions(vm.constructor),
  7819. options || {},
  7820. vm
  7821. );
  7822. }
  7823. /* istanbul ignore else */
  7824. if (true) {
  7825. initProxy(vm);
  7826. } else {}
  7827. // expose real self
  7828. vm._self = vm;
  7829. initLifecycle(vm);
  7830. initEvents(vm);
  7831. initRender(vm);
  7832. callHook(vm, 'beforeCreate');
  7833. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7834. initState(vm);
  7835. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7836. !vm._$fallback && callHook(vm, 'created');
  7837. /* istanbul ignore if */
  7838. if ( true && config.performance && mark) {
  7839. vm._name = formatComponentName(vm, false);
  7840. mark(endTag);
  7841. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7842. }
  7843. if (vm.$options.el) {
  7844. vm.$mount(vm.$options.el);
  7845. }
  7846. };
  7847. }
  7848. function initInternalComponent (vm, options) {
  7849. var opts = vm.$options = Object.create(vm.constructor.options);
  7850. // doing this because it's faster than dynamic enumeration.
  7851. var parentVnode = options._parentVnode;
  7852. opts.parent = options.parent;
  7853. opts._parentVnode = parentVnode;
  7854. var vnodeComponentOptions = parentVnode.componentOptions;
  7855. opts.propsData = vnodeComponentOptions.propsData;
  7856. opts._parentListeners = vnodeComponentOptions.listeners;
  7857. opts._renderChildren = vnodeComponentOptions.children;
  7858. opts._componentTag = vnodeComponentOptions.tag;
  7859. if (options.render) {
  7860. opts.render = options.render;
  7861. opts.staticRenderFns = options.staticRenderFns;
  7862. }
  7863. }
  7864. function resolveConstructorOptions (Ctor) {
  7865. var options = Ctor.options;
  7866. if (Ctor.super) {
  7867. var superOptions = resolveConstructorOptions(Ctor.super);
  7868. var cachedSuperOptions = Ctor.superOptions;
  7869. if (superOptions !== cachedSuperOptions) {
  7870. // super option changed,
  7871. // need to resolve new options.
  7872. Ctor.superOptions = superOptions;
  7873. // check if there are any late-modified/attached options (#4976)
  7874. var modifiedOptions = resolveModifiedOptions(Ctor);
  7875. // update base extend options
  7876. if (modifiedOptions) {
  7877. extend(Ctor.extendOptions, modifiedOptions);
  7878. }
  7879. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7880. if (options.name) {
  7881. options.components[options.name] = Ctor;
  7882. }
  7883. }
  7884. }
  7885. return options
  7886. }
  7887. function resolveModifiedOptions (Ctor) {
  7888. var modified;
  7889. var latest = Ctor.options;
  7890. var sealed = Ctor.sealedOptions;
  7891. for (var key in latest) {
  7892. if (latest[key] !== sealed[key]) {
  7893. if (!modified) { modified = {}; }
  7894. modified[key] = latest[key];
  7895. }
  7896. }
  7897. return modified
  7898. }
  7899. function Vue (options) {
  7900. if ( true &&
  7901. !(this instanceof Vue)
  7902. ) {
  7903. warn('Vue is a constructor and should be called with the `new` keyword');
  7904. }
  7905. this._init(options);
  7906. }
  7907. initMixin(Vue);
  7908. stateMixin(Vue);
  7909. eventsMixin(Vue);
  7910. lifecycleMixin(Vue);
  7911. renderMixin(Vue);
  7912. /* */
  7913. function initUse (Vue) {
  7914. Vue.use = function (plugin) {
  7915. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7916. if (installedPlugins.indexOf(plugin) > -1) {
  7917. return this
  7918. }
  7919. // additional parameters
  7920. var args = toArray(arguments, 1);
  7921. args.unshift(this);
  7922. if (typeof plugin.install === 'function') {
  7923. plugin.install.apply(plugin, args);
  7924. } else if (typeof plugin === 'function') {
  7925. plugin.apply(null, args);
  7926. }
  7927. installedPlugins.push(plugin);
  7928. return this
  7929. };
  7930. }
  7931. /* */
  7932. function initMixin$1 (Vue) {
  7933. Vue.mixin = function (mixin) {
  7934. this.options = mergeOptions(this.options, mixin);
  7935. return this
  7936. };
  7937. }
  7938. /* */
  7939. function initExtend (Vue) {
  7940. /**
  7941. * Each instance constructor, including Vue, has a unique
  7942. * cid. This enables us to create wrapped "child
  7943. * constructors" for prototypal inheritance and cache them.
  7944. */
  7945. Vue.cid = 0;
  7946. var cid = 1;
  7947. /**
  7948. * Class inheritance
  7949. */
  7950. Vue.extend = function (extendOptions) {
  7951. extendOptions = extendOptions || {};
  7952. var Super = this;
  7953. var SuperId = Super.cid;
  7954. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7955. if (cachedCtors[SuperId]) {
  7956. return cachedCtors[SuperId]
  7957. }
  7958. var name = extendOptions.name || Super.options.name;
  7959. if ( true && name) {
  7960. validateComponentName(name);
  7961. }
  7962. var Sub = function VueComponent (options) {
  7963. this._init(options);
  7964. };
  7965. Sub.prototype = Object.create(Super.prototype);
  7966. Sub.prototype.constructor = Sub;
  7967. Sub.cid = cid++;
  7968. Sub.options = mergeOptions(
  7969. Super.options,
  7970. extendOptions
  7971. );
  7972. Sub['super'] = Super;
  7973. // For props and computed properties, we define the proxy getters on
  7974. // the Vue instances at extension time, on the extended prototype. This
  7975. // avoids Object.defineProperty calls for each instance created.
  7976. if (Sub.options.props) {
  7977. initProps$1(Sub);
  7978. }
  7979. if (Sub.options.computed) {
  7980. initComputed$1(Sub);
  7981. }
  7982. // allow further extension/mixin/plugin usage
  7983. Sub.extend = Super.extend;
  7984. Sub.mixin = Super.mixin;
  7985. Sub.use = Super.use;
  7986. // create asset registers, so extended classes
  7987. // can have their private assets too.
  7988. ASSET_TYPES.forEach(function (type) {
  7989. Sub[type] = Super[type];
  7990. });
  7991. // enable recursive self-lookup
  7992. if (name) {
  7993. Sub.options.components[name] = Sub;
  7994. }
  7995. // keep a reference to the super options at extension time.
  7996. // later at instantiation we can check if Super's options have
  7997. // been updated.
  7998. Sub.superOptions = Super.options;
  7999. Sub.extendOptions = extendOptions;
  8000. Sub.sealedOptions = extend({}, Sub.options);
  8001. // cache constructor
  8002. cachedCtors[SuperId] = Sub;
  8003. return Sub
  8004. };
  8005. }
  8006. function initProps$1 (Comp) {
  8007. var props = Comp.options.props;
  8008. for (var key in props) {
  8009. proxy(Comp.prototype, "_props", key);
  8010. }
  8011. }
  8012. function initComputed$1 (Comp) {
  8013. var computed = Comp.options.computed;
  8014. for (var key in computed) {
  8015. defineComputed(Comp.prototype, key, computed[key]);
  8016. }
  8017. }
  8018. /* */
  8019. function initAssetRegisters (Vue) {
  8020. /**
  8021. * Create asset registration methods.
  8022. */
  8023. ASSET_TYPES.forEach(function (type) {
  8024. Vue[type] = function (
  8025. id,
  8026. definition
  8027. ) {
  8028. if (!definition) {
  8029. return this.options[type + 's'][id]
  8030. } else {
  8031. /* istanbul ignore if */
  8032. if ( true && type === 'component') {
  8033. validateComponentName(id);
  8034. }
  8035. if (type === 'component' && isPlainObject(definition)) {
  8036. definition.name = definition.name || id;
  8037. definition = this.options._base.extend(definition);
  8038. }
  8039. if (type === 'directive' && typeof definition === 'function') {
  8040. definition = { bind: definition, update: definition };
  8041. }
  8042. this.options[type + 's'][id] = definition;
  8043. return definition
  8044. }
  8045. };
  8046. });
  8047. }
  8048. /* */
  8049. function getComponentName (opts) {
  8050. return opts && (opts.Ctor.options.name || opts.tag)
  8051. }
  8052. function matches (pattern, name) {
  8053. if (Array.isArray(pattern)) {
  8054. return pattern.indexOf(name) > -1
  8055. } else if (typeof pattern === 'string') {
  8056. return pattern.split(',').indexOf(name) > -1
  8057. } else if (isRegExp(pattern)) {
  8058. return pattern.test(name)
  8059. }
  8060. /* istanbul ignore next */
  8061. return false
  8062. }
  8063. function pruneCache (keepAliveInstance, filter) {
  8064. var cache = keepAliveInstance.cache;
  8065. var keys = keepAliveInstance.keys;
  8066. var _vnode = keepAliveInstance._vnode;
  8067. for (var key in cache) {
  8068. var cachedNode = cache[key];
  8069. if (cachedNode) {
  8070. var name = getComponentName(cachedNode.componentOptions);
  8071. if (name && !filter(name)) {
  8072. pruneCacheEntry(cache, key, keys, _vnode);
  8073. }
  8074. }
  8075. }
  8076. }
  8077. function pruneCacheEntry (
  8078. cache,
  8079. key,
  8080. keys,
  8081. current
  8082. ) {
  8083. var cached$$1 = cache[key];
  8084. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8085. cached$$1.componentInstance.$destroy();
  8086. }
  8087. cache[key] = null;
  8088. remove(keys, key);
  8089. }
  8090. var patternTypes = [String, RegExp, Array];
  8091. var KeepAlive = {
  8092. name: 'keep-alive',
  8093. abstract: true,
  8094. props: {
  8095. include: patternTypes,
  8096. exclude: patternTypes,
  8097. max: [String, Number]
  8098. },
  8099. created: function created () {
  8100. this.cache = Object.create(null);
  8101. this.keys = [];
  8102. },
  8103. destroyed: function destroyed () {
  8104. for (var key in this.cache) {
  8105. pruneCacheEntry(this.cache, key, this.keys);
  8106. }
  8107. },
  8108. mounted: function mounted () {
  8109. var this$1 = this;
  8110. this.$watch('include', function (val) {
  8111. pruneCache(this$1, function (name) { return matches(val, name); });
  8112. });
  8113. this.$watch('exclude', function (val) {
  8114. pruneCache(this$1, function (name) { return !matches(val, name); });
  8115. });
  8116. },
  8117. render: function render () {
  8118. var slot = this.$slots.default;
  8119. var vnode = getFirstComponentChild(slot);
  8120. var componentOptions = vnode && vnode.componentOptions;
  8121. if (componentOptions) {
  8122. // check pattern
  8123. var name = getComponentName(componentOptions);
  8124. var ref = this;
  8125. var include = ref.include;
  8126. var exclude = ref.exclude;
  8127. if (
  8128. // not included
  8129. (include && (!name || !matches(include, name))) ||
  8130. // excluded
  8131. (exclude && name && matches(exclude, name))
  8132. ) {
  8133. return vnode
  8134. }
  8135. var ref$1 = this;
  8136. var cache = ref$1.cache;
  8137. var keys = ref$1.keys;
  8138. var key = vnode.key == null
  8139. // same constructor may get registered as different local components
  8140. // so cid alone is not enough (#3269)
  8141. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8142. : vnode.key;
  8143. if (cache[key]) {
  8144. vnode.componentInstance = cache[key].componentInstance;
  8145. // make current key freshest
  8146. remove(keys, key);
  8147. keys.push(key);
  8148. } else {
  8149. cache[key] = vnode;
  8150. keys.push(key);
  8151. // prune oldest entry
  8152. if (this.max && keys.length > parseInt(this.max)) {
  8153. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8154. }
  8155. }
  8156. vnode.data.keepAlive = true;
  8157. }
  8158. return vnode || (slot && slot[0])
  8159. }
  8160. };
  8161. var builtInComponents = {
  8162. KeepAlive: KeepAlive
  8163. };
  8164. /* */
  8165. function initGlobalAPI (Vue) {
  8166. // config
  8167. var configDef = {};
  8168. configDef.get = function () { return config; };
  8169. if (true) {
  8170. configDef.set = function () {
  8171. warn(
  8172. 'Do not replace the Vue.config object, set individual fields instead.'
  8173. );
  8174. };
  8175. }
  8176. Object.defineProperty(Vue, 'config', configDef);
  8177. // exposed util methods.
  8178. // NOTE: these are not considered part of the public API - avoid relying on
  8179. // them unless you are aware of the risk.
  8180. Vue.util = {
  8181. warn: warn,
  8182. extend: extend,
  8183. mergeOptions: mergeOptions,
  8184. defineReactive: defineReactive$$1
  8185. };
  8186. Vue.set = set;
  8187. Vue.delete = del;
  8188. Vue.nextTick = nextTick;
  8189. // 2.6 explicit observable API
  8190. Vue.observable = function (obj) {
  8191. observe(obj);
  8192. return obj
  8193. };
  8194. Vue.options = Object.create(null);
  8195. ASSET_TYPES.forEach(function (type) {
  8196. Vue.options[type + 's'] = Object.create(null);
  8197. });
  8198. // this is used to identify the "base" constructor to extend all plain-object
  8199. // components with in Weex's multi-instance scenarios.
  8200. Vue.options._base = Vue;
  8201. extend(Vue.options.components, builtInComponents);
  8202. initUse(Vue);
  8203. initMixin$1(Vue);
  8204. initExtend(Vue);
  8205. initAssetRegisters(Vue);
  8206. }
  8207. initGlobalAPI(Vue);
  8208. Object.defineProperty(Vue.prototype, '$isServer', {
  8209. get: isServerRendering
  8210. });
  8211. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8212. get: function get () {
  8213. /* istanbul ignore next */
  8214. return this.$vnode && this.$vnode.ssrContext
  8215. }
  8216. });
  8217. // expose FunctionalRenderContext for ssr runtime helper installation
  8218. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8219. value: FunctionalRenderContext
  8220. });
  8221. Vue.version = '2.6.11';
  8222. /**
  8223. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8224. */
  8225. var ARRAYTYPE = '[object Array]';
  8226. var OBJECTTYPE = '[object Object]';
  8227. var NULLTYPE = '[object Null]';
  8228. var UNDEFINEDTYPE = '[object Undefined]';
  8229. // const FUNCTIONTYPE = '[object Function]'
  8230. function diff(current, pre) {
  8231. var result = {};
  8232. syncKeys(current, pre);
  8233. _diff(current, pre, '', result);
  8234. return result
  8235. }
  8236. function syncKeys(current, pre) {
  8237. if (current === pre) { return }
  8238. var rootCurrentType = type(current);
  8239. var rootPreType = type(pre);
  8240. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8241. if(Object.keys(current).length >= Object.keys(pre).length){
  8242. for (var key in pre) {
  8243. var currentValue = current[key];
  8244. if (currentValue === undefined) {
  8245. current[key] = null;
  8246. } else {
  8247. syncKeys(currentValue, pre[key]);
  8248. }
  8249. }
  8250. }
  8251. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8252. if (current.length >= pre.length) {
  8253. pre.forEach(function (item, index) {
  8254. syncKeys(current[index], item);
  8255. });
  8256. }
  8257. }
  8258. }
  8259. function nullOrUndefined(currentType, preType) {
  8260. if(
  8261. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8262. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8263. ) {
  8264. return false
  8265. }
  8266. return true
  8267. }
  8268. function _diff(current, pre, path, result) {
  8269. if (current === pre) { return }
  8270. var rootCurrentType = type(current);
  8271. var rootPreType = type(pre);
  8272. if (rootCurrentType == OBJECTTYPE) {
  8273. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. var loop = function ( key ) {
  8277. var currentValue = current[key];
  8278. var preValue = pre[key];
  8279. var currentType = type(currentValue);
  8280. var preType = type(preValue);
  8281. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8282. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8283. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8284. }
  8285. } else if (currentType == ARRAYTYPE) {
  8286. if (preType != ARRAYTYPE) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. if (currentValue.length < preValue.length) {
  8290. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8291. } else {
  8292. currentValue.forEach(function (item, index) {
  8293. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8294. });
  8295. }
  8296. }
  8297. } else if (currentType == OBJECTTYPE) {
  8298. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8299. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8300. } else {
  8301. for (var subKey in currentValue) {
  8302. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8303. }
  8304. }
  8305. }
  8306. };
  8307. for (var key in current) loop( key );
  8308. }
  8309. } else if (rootCurrentType == ARRAYTYPE) {
  8310. if (rootPreType != ARRAYTYPE) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. if (current.length < pre.length) {
  8314. setResult(result, path, current);
  8315. } else {
  8316. current.forEach(function (item, index) {
  8317. _diff(item, pre[index], path + '[' + index + ']', result);
  8318. });
  8319. }
  8320. }
  8321. } else {
  8322. setResult(result, path, current);
  8323. }
  8324. }
  8325. function setResult(result, k, v) {
  8326. // if (type(v) != FUNCTIONTYPE) {
  8327. result[k] = v;
  8328. // }
  8329. }
  8330. function type(obj) {
  8331. return Object.prototype.toString.call(obj)
  8332. }
  8333. /* */
  8334. function flushCallbacks$1(vm) {
  8335. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8336. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8337. var mpInstance = vm.$scope;
  8338. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8339. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8340. }
  8341. var copies = vm.__next_tick_callbacks.slice(0);
  8342. vm.__next_tick_callbacks.length = 0;
  8343. for (var i = 0; i < copies.length; i++) {
  8344. copies[i]();
  8345. }
  8346. }
  8347. }
  8348. function hasRenderWatcher(vm) {
  8349. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8350. }
  8351. function nextTick$1(vm, cb) {
  8352. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8353. //2.nextTick 之前存在 render watcher
  8354. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8355. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8356. var mpInstance = vm.$scope;
  8357. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8358. ']:nextVueTick');
  8359. }
  8360. return nextTick(cb, vm)
  8361. }else{
  8362. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8363. var mpInstance$1 = vm.$scope;
  8364. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8365. ']:nextMPTick');
  8366. }
  8367. }
  8368. var _resolve;
  8369. if (!vm.__next_tick_callbacks) {
  8370. vm.__next_tick_callbacks = [];
  8371. }
  8372. vm.__next_tick_callbacks.push(function () {
  8373. if (cb) {
  8374. try {
  8375. cb.call(vm);
  8376. } catch (e) {
  8377. handleError(e, vm, 'nextTick');
  8378. }
  8379. } else if (_resolve) {
  8380. _resolve(vm);
  8381. }
  8382. });
  8383. // $flow-disable-line
  8384. if (!cb && typeof Promise !== 'undefined') {
  8385. return new Promise(function (resolve) {
  8386. _resolve = resolve;
  8387. })
  8388. }
  8389. }
  8390. /* */
  8391. function clearInstance(key, value) {
  8392. // 简易去除 Vue 和小程序组件实例
  8393. if (value) {
  8394. if (value._isVue || value.__v_isMPComponent) {
  8395. return {}
  8396. }
  8397. }
  8398. return value
  8399. }
  8400. function cloneWithData(vm) {
  8401. // 确保当前 vm 所有数据被同步
  8402. var ret = Object.create(null);
  8403. var dataKeys = [].concat(
  8404. Object.keys(vm._data || {}),
  8405. Object.keys(vm._computedWatchers || {}));
  8406. dataKeys.reduce(function(ret, key) {
  8407. ret[key] = vm[key];
  8408. return ret
  8409. }, ret);
  8410. // vue-composition-api
  8411. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8412. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8413. if (rawBindings) {
  8414. Object.keys(rawBindings).forEach(function (key) {
  8415. ret[key] = vm[key];
  8416. });
  8417. }
  8418. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8419. Object.assign(ret, vm.$mp.data || {});
  8420. if (
  8421. Array.isArray(vm.$options.behaviors) &&
  8422. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8423. ) { //form-field
  8424. ret['name'] = vm.name;
  8425. ret['value'] = vm.value;
  8426. }
  8427. return JSON.parse(JSON.stringify(ret, clearInstance))
  8428. }
  8429. var patch = function(oldVnode, vnode) {
  8430. var this$1 = this;
  8431. if (vnode === null) { //destroy
  8432. return
  8433. }
  8434. if (this.mpType === 'page' || this.mpType === 'component') {
  8435. var mpInstance = this.$scope;
  8436. var data = Object.create(null);
  8437. try {
  8438. data = cloneWithData(this);
  8439. } catch (err) {
  8440. console.error(err);
  8441. }
  8442. data.__webviewId__ = mpInstance.data.__webviewId__;
  8443. var mpData = Object.create(null);
  8444. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8445. mpData[key] = mpInstance.data[key];
  8446. });
  8447. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8448. if (Object.keys(diffData).length) {
  8449. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8450. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8451. ']差量更新',
  8452. JSON.stringify(diffData));
  8453. }
  8454. this.__next_tick_pending = true;
  8455. mpInstance.setData(diffData, function () {
  8456. this$1.__next_tick_pending = false;
  8457. flushCallbacks$1(this$1);
  8458. });
  8459. } else {
  8460. flushCallbacks$1(this);
  8461. }
  8462. }
  8463. };
  8464. /* */
  8465. function createEmptyRender() {
  8466. }
  8467. function mountComponent$1(
  8468. vm,
  8469. el,
  8470. hydrating
  8471. ) {
  8472. if (!vm.mpType) {//main.js 中的 new Vue
  8473. return vm
  8474. }
  8475. if (vm.mpType === 'app') {
  8476. vm.$options.render = createEmptyRender;
  8477. }
  8478. if (!vm.$options.render) {
  8479. vm.$options.render = createEmptyRender;
  8480. if (true) {
  8481. /* istanbul ignore if */
  8482. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8483. vm.$options.el || el) {
  8484. warn(
  8485. 'You are using the runtime-only build of Vue where the template ' +
  8486. 'compiler is not available. Either pre-compile the templates into ' +
  8487. 'render functions, or use the compiler-included build.',
  8488. vm
  8489. );
  8490. } else {
  8491. warn(
  8492. 'Failed to mount component: template or render function not defined.',
  8493. vm
  8494. );
  8495. }
  8496. }
  8497. }
  8498. !vm._$fallback && callHook(vm, 'beforeMount');
  8499. var updateComponent = function () {
  8500. vm._update(vm._render(), hydrating);
  8501. };
  8502. // we set this to vm._watcher inside the watcher's constructor
  8503. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8504. // component's mounted hook), which relies on vm._watcher being already defined
  8505. new Watcher(vm, updateComponent, noop, {
  8506. before: function before() {
  8507. if (vm._isMounted && !vm._isDestroyed) {
  8508. callHook(vm, 'beforeUpdate');
  8509. }
  8510. }
  8511. }, true /* isRenderWatcher */);
  8512. hydrating = false;
  8513. return vm
  8514. }
  8515. /* */
  8516. function renderClass (
  8517. staticClass,
  8518. dynamicClass
  8519. ) {
  8520. if (isDef(staticClass) || isDef(dynamicClass)) {
  8521. return concat(staticClass, stringifyClass(dynamicClass))
  8522. }
  8523. /* istanbul ignore next */
  8524. return ''
  8525. }
  8526. function concat (a, b) {
  8527. return a ? b ? (a + ' ' + b) : a : (b || '')
  8528. }
  8529. function stringifyClass (value) {
  8530. if (Array.isArray(value)) {
  8531. return stringifyArray(value)
  8532. }
  8533. if (isObject(value)) {
  8534. return stringifyObject(value)
  8535. }
  8536. if (typeof value === 'string') {
  8537. return value
  8538. }
  8539. /* istanbul ignore next */
  8540. return ''
  8541. }
  8542. function stringifyArray (value) {
  8543. var res = '';
  8544. var stringified;
  8545. for (var i = 0, l = value.length; i < l; i++) {
  8546. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8547. if (res) { res += ' '; }
  8548. res += stringified;
  8549. }
  8550. }
  8551. return res
  8552. }
  8553. function stringifyObject (value) {
  8554. var res = '';
  8555. for (var key in value) {
  8556. if (value[key]) {
  8557. if (res) { res += ' '; }
  8558. res += key;
  8559. }
  8560. }
  8561. return res
  8562. }
  8563. /* */
  8564. var parseStyleText = cached(function (cssText) {
  8565. var res = {};
  8566. var listDelimiter = /;(?![^(]*\))/g;
  8567. var propertyDelimiter = /:(.+)/;
  8568. cssText.split(listDelimiter).forEach(function (item) {
  8569. if (item) {
  8570. var tmp = item.split(propertyDelimiter);
  8571. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8572. }
  8573. });
  8574. return res
  8575. });
  8576. // normalize possible array / string values into Object
  8577. function normalizeStyleBinding (bindingStyle) {
  8578. if (Array.isArray(bindingStyle)) {
  8579. return toObject(bindingStyle)
  8580. }
  8581. if (typeof bindingStyle === 'string') {
  8582. return parseStyleText(bindingStyle)
  8583. }
  8584. return bindingStyle
  8585. }
  8586. /* */
  8587. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8588. function getTarget(obj, path) {
  8589. var parts = path.split('.');
  8590. var key = parts[0];
  8591. if (key.indexOf('__$n') === 0) { //number index
  8592. key = parseInt(key.replace('__$n', ''));
  8593. }
  8594. if (parts.length === 1) {
  8595. return obj[key]
  8596. }
  8597. return getTarget(obj[key], parts.slice(1).join('.'))
  8598. }
  8599. function internalMixin(Vue) {
  8600. Vue.config.errorHandler = function(err, vm, info) {
  8601. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8602. console.error(err);
  8603. /* eslint-disable no-undef */
  8604. var app = typeof getApp === 'function' && getApp();
  8605. if (app && app.onError) {
  8606. app.onError(err);
  8607. }
  8608. };
  8609. var oldEmit = Vue.prototype.$emit;
  8610. Vue.prototype.$emit = function(event) {
  8611. if (this.$scope && event) {
  8612. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8613. if (triggerEvent) {
  8614. try {
  8615. triggerEvent.call(this.$scope, event, {
  8616. __args__: toArray(arguments, 1)
  8617. });
  8618. } catch (error) {
  8619. }
  8620. }
  8621. }
  8622. return oldEmit.apply(this, arguments)
  8623. };
  8624. Vue.prototype.$nextTick = function(fn) {
  8625. return nextTick$1(this, fn)
  8626. };
  8627. MP_METHODS.forEach(function (method) {
  8628. Vue.prototype[method] = function(args) {
  8629. if (this.$scope && this.$scope[method]) {
  8630. return this.$scope[method](args)
  8631. }
  8632. // mp-alipay
  8633. if (typeof my === 'undefined') {
  8634. return
  8635. }
  8636. if (method === 'createSelectorQuery') {
  8637. /* eslint-disable no-undef */
  8638. return my.createSelectorQuery(args)
  8639. } else if (method === 'createIntersectionObserver') {
  8640. /* eslint-disable no-undef */
  8641. return my.createIntersectionObserver(args)
  8642. }
  8643. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8644. };
  8645. });
  8646. Vue.prototype.__init_provide = initProvide;
  8647. Vue.prototype.__init_injections = initInjections;
  8648. Vue.prototype.__call_hook = function(hook, args) {
  8649. var vm = this;
  8650. // #7573 disable dep collection when invoking lifecycle hooks
  8651. pushTarget();
  8652. var handlers = vm.$options[hook];
  8653. var info = hook + " hook";
  8654. var ret;
  8655. if (handlers) {
  8656. for (var i = 0, j = handlers.length; i < j; i++) {
  8657. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8658. }
  8659. }
  8660. if (vm._hasHookEvent) {
  8661. vm.$emit('hook:' + hook, args);
  8662. }
  8663. popTarget();
  8664. return ret
  8665. };
  8666. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8667. if (Array.isArray(modifiers)) {
  8668. if (modifiers.indexOf('trim') !== -1) {
  8669. value = value.trim();
  8670. }
  8671. if (modifiers.indexOf('number') !== -1) {
  8672. value = this._n(value);
  8673. }
  8674. }
  8675. if (!target) {
  8676. target = this;
  8677. }
  8678. // 解决动态属性添加
  8679. Vue.set(target, key, value);
  8680. };
  8681. Vue.prototype.__set_sync = function(target, key, value) {
  8682. if (!target) {
  8683. target = this;
  8684. }
  8685. // 解决动态属性添加
  8686. Vue.set(target, key, value);
  8687. };
  8688. Vue.prototype.__get_orig = function(item) {
  8689. if (isPlainObject(item)) {
  8690. return item['$orig'] || item
  8691. }
  8692. return item
  8693. };
  8694. Vue.prototype.__get_value = function(dataPath, target) {
  8695. return getTarget(target || this, dataPath)
  8696. };
  8697. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8698. return renderClass(staticClass, dynamicClass)
  8699. };
  8700. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8701. if (!dynamicStyle && !staticStyle) {
  8702. return ''
  8703. }
  8704. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8705. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8706. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8707. };
  8708. Vue.prototype.__map = function(val, iteratee) {
  8709. //TODO 暂不考虑 string
  8710. var ret, i, l, keys, key;
  8711. if (Array.isArray(val)) {
  8712. ret = new Array(val.length);
  8713. for (i = 0, l = val.length; i < l; i++) {
  8714. ret[i] = iteratee(val[i], i);
  8715. }
  8716. return ret
  8717. } else if (isObject(val)) {
  8718. keys = Object.keys(val);
  8719. ret = Object.create(null);
  8720. for (i = 0, l = keys.length; i < l; i++) {
  8721. key = keys[i];
  8722. ret[key] = iteratee(val[key], key, i);
  8723. }
  8724. return ret
  8725. } else if (typeof val === 'number') {
  8726. ret = new Array(val);
  8727. for (i = 0, l = val; i < l; i++) {
  8728. // 第一个参数暂时仍和小程序一致
  8729. ret[i] = iteratee(i, i);
  8730. }
  8731. return ret
  8732. }
  8733. return []
  8734. };
  8735. }
  8736. /* */
  8737. var LIFECYCLE_HOOKS$1 = [
  8738. //App
  8739. 'onLaunch',
  8740. 'onShow',
  8741. 'onHide',
  8742. 'onUniNViewMessage',
  8743. 'onPageNotFound',
  8744. 'onThemeChange',
  8745. 'onError',
  8746. 'onUnhandledRejection',
  8747. //Page
  8748. 'onInit',
  8749. 'onLoad',
  8750. // 'onShow',
  8751. 'onReady',
  8752. // 'onHide',
  8753. 'onUnload',
  8754. 'onPullDownRefresh',
  8755. 'onReachBottom',
  8756. 'onTabItemTap',
  8757. 'onAddToFavorites',
  8758. 'onShareTimeline',
  8759. 'onShareAppMessage',
  8760. 'onResize',
  8761. 'onPageScroll',
  8762. 'onNavigationBarButtonTap',
  8763. 'onBackPress',
  8764. 'onNavigationBarSearchInputChanged',
  8765. 'onNavigationBarSearchInputConfirmed',
  8766. 'onNavigationBarSearchInputClicked',
  8767. 'onUploadDouyinVideo',
  8768. 'onNFCReadMessage',
  8769. //Component
  8770. // 'onReady', // 兼容旧版本,应该移除该事件
  8771. 'onPageShow',
  8772. 'onPageHide',
  8773. 'onPageResize'
  8774. ];
  8775. function lifecycleMixin$1(Vue) {
  8776. //fixed vue-class-component
  8777. var oldExtend = Vue.extend;
  8778. Vue.extend = function(extendOptions) {
  8779. extendOptions = extendOptions || {};
  8780. var methods = extendOptions.methods;
  8781. if (methods) {
  8782. Object.keys(methods).forEach(function (methodName) {
  8783. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8784. extendOptions[methodName] = methods[methodName];
  8785. delete methods[methodName];
  8786. }
  8787. });
  8788. }
  8789. return oldExtend.call(this, extendOptions)
  8790. };
  8791. var strategies = Vue.config.optionMergeStrategies;
  8792. var mergeHook = strategies.created;
  8793. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8794. strategies[hook] = mergeHook;
  8795. });
  8796. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8797. }
  8798. /* */
  8799. // install platform patch function
  8800. Vue.prototype.__patch__ = patch;
  8801. // public mount method
  8802. Vue.prototype.$mount = function(
  8803. el ,
  8804. hydrating
  8805. ) {
  8806. return mountComponent$1(this, el, hydrating)
  8807. };
  8808. lifecycleMixin$1(Vue);
  8809. internalMixin(Vue);
  8810. /* */
  8811. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8813. /***/ }),
  8814. /* 26 */
  8815. /*!****************************************************************************!*\
  8816. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/pages.json ***!
  8817. \****************************************************************************/
  8818. /*! no static exports found */
  8819. /***/ (function(module, exports) {
  8820. /***/ }),
  8821. /* 27 */,
  8822. /* 28 */,
  8823. /* 29 */,
  8824. /* 30 */,
  8825. /* 31 */,
  8826. /* 32 */
  8827. /*!**********************************************************************************************************!*\
  8828. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8829. \**********************************************************************************************************/
  8830. /*! exports provided: default */
  8831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8832. "use strict";
  8833. __webpack_require__.r(__webpack_exports__);
  8834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8835. /* globals __VUE_SSR_CONTEXT__ */
  8836. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8837. // This module is a runtime utility for cleaner component module output and will
  8838. // be included in the final webpack user bundle.
  8839. function normalizeComponent (
  8840. scriptExports,
  8841. render,
  8842. staticRenderFns,
  8843. functionalTemplate,
  8844. injectStyles,
  8845. scopeId,
  8846. moduleIdentifier, /* server only */
  8847. shadowMode, /* vue-cli only */
  8848. components, // fixed by xxxxxx auto components
  8849. renderjs // fixed by xxxxxx renderjs
  8850. ) {
  8851. // Vue.extend constructor export interop
  8852. var options = typeof scriptExports === 'function'
  8853. ? scriptExports.options
  8854. : scriptExports
  8855. // fixed by xxxxxx auto components
  8856. if (components) {
  8857. if (!options.components) {
  8858. options.components = {}
  8859. }
  8860. var hasOwn = Object.prototype.hasOwnProperty
  8861. for (var name in components) {
  8862. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8863. options.components[name] = components[name]
  8864. }
  8865. }
  8866. }
  8867. // fixed by xxxxxx renderjs
  8868. if (renderjs) {
  8869. if(typeof renderjs.beforeCreate === 'function'){
  8870. renderjs.beforeCreate = [renderjs.beforeCreate]
  8871. }
  8872. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8873. this[renderjs.__module] = this
  8874. });
  8875. (options.mixins || (options.mixins = [])).push(renderjs)
  8876. }
  8877. // render functions
  8878. if (render) {
  8879. options.render = render
  8880. options.staticRenderFns = staticRenderFns
  8881. options._compiled = true
  8882. }
  8883. // functional template
  8884. if (functionalTemplate) {
  8885. options.functional = true
  8886. }
  8887. // scopedId
  8888. if (scopeId) {
  8889. options._scopeId = 'data-v-' + scopeId
  8890. }
  8891. var hook
  8892. if (moduleIdentifier) { // server build
  8893. hook = function (context) {
  8894. // 2.3 injection
  8895. context =
  8896. context || // cached call
  8897. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8898. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8899. // 2.2 with runInNewContext: true
  8900. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8901. context = __VUE_SSR_CONTEXT__
  8902. }
  8903. // inject component styles
  8904. if (injectStyles) {
  8905. injectStyles.call(this, context)
  8906. }
  8907. // register component module identifier for async chunk inferrence
  8908. if (context && context._registeredComponents) {
  8909. context._registeredComponents.add(moduleIdentifier)
  8910. }
  8911. }
  8912. // used by ssr in case component is cached and beforeCreate
  8913. // never gets called
  8914. options._ssrRegister = hook
  8915. } else if (injectStyles) {
  8916. hook = shadowMode
  8917. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8918. : injectStyles
  8919. }
  8920. if (hook) {
  8921. if (options.functional) {
  8922. // for template-only hot-reload because in that case the render fn doesn't
  8923. // go through the normalizer
  8924. options._injectStyles = hook
  8925. // register for functioal component in vue file
  8926. var originalRender = options.render
  8927. options.render = function renderWithStyleInjection (h, context) {
  8928. hook.call(context)
  8929. return originalRender(h, context)
  8930. }
  8931. } else {
  8932. // inject component registration as beforeCreate hook
  8933. var existing = options.beforeCreate
  8934. options.beforeCreate = existing
  8935. ? [].concat(existing, hook)
  8936. : [hook]
  8937. }
  8938. }
  8939. return {
  8940. exports: scriptExports,
  8941. options: options
  8942. }
  8943. }
  8944. /***/ }),
  8945. /* 33 */
  8946. /*!************************************************************************************************!*\
  8947. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/index.js ***!
  8948. \************************************************************************************************/
  8949. /*! no static exports found */
  8950. /***/ (function(module, exports, __webpack_require__) {
  8951. "use strict";
  8952. /* WEBPACK VAR INJECTION */(function(uni) {
  8953. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8954. Object.defineProperty(exports, "__esModule", {
  8955. value: true
  8956. });
  8957. exports.default = void 0;
  8958. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8959. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8960. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8961. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8962. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8963. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8964. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8965. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8966. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8967. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8968. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8969. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8970. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8971. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8972. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8973. 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; }
  8974. 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; }
  8975. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8976. var pleaseSetTranspileDependencies = {},
  8977. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8978. // 引入全局mixin
  8979. var $u = _objectSpread(_objectSpread({
  8980. route: _route.default,
  8981. date: _index.default.timeFormat,
  8982. // 另名date
  8983. colorGradient: _colorGradient.default.colorGradient,
  8984. hexToRgb: _colorGradient.default.hexToRgb,
  8985. rgbToHex: _colorGradient.default.rgbToHex,
  8986. colorToRgba: _colorGradient.default.colorToRgba,
  8987. test: _test.default,
  8988. type: ['primary', 'success', 'error', 'warning', 'info'],
  8989. http: new _luchRequest.default(),
  8990. config: _config.default,
  8991. // uView配置信息相关,比如版本号
  8992. zIndex: _zIndex.default,
  8993. debounce: _debounce.default,
  8994. throttle: _throttle.default,
  8995. mixin: _mixin.default,
  8996. mpMixin: _mpMixin.default,
  8997. props: _props.default
  8998. }, _index.default), {}, {
  8999. color: _color.default,
  9000. platform: _platform.default
  9001. });
  9002. // $u挂载到uni对象上
  9003. uni.$u = $u;
  9004. var install = function install(Vue) {
  9005. // 时间格式化,同时两个名称,date和timeFormat
  9006. Vue.filter('timeFormat', function (timestamp, format) {
  9007. return uni.$u.timeFormat(timestamp, format);
  9008. });
  9009. Vue.filter('date', function (timestamp, format) {
  9010. return uni.$u.timeFormat(timestamp, format);
  9011. });
  9012. // 将多久以前的方法,注入到全局过滤器
  9013. Vue.filter('timeFrom', function (timestamp, format) {
  9014. return uni.$u.timeFrom(timestamp, format);
  9015. });
  9016. // 同时挂载到uni和Vue.prototype中
  9017. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9018. Vue.prototype.$u = $u;
  9019. Vue.mixin(_mixin.default);
  9020. };
  9021. var _default = {
  9022. install: install
  9023. };
  9024. exports.default = _default;
  9025. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9026. /***/ }),
  9027. /* 34 */
  9028. /*!***********************************************************************************************************!*\
  9029. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/mixin/mixin.js ***!
  9030. \***********************************************************************************************************/
  9031. /*! no static exports found */
  9032. /***/ (function(module, exports, __webpack_require__) {
  9033. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9034. // 定义每个组件都可能需要用到的外部样式以及类名
  9035. props: {
  9036. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9037. customStyle: {
  9038. type: [Object, String],
  9039. default: function _default() {
  9040. return {};
  9041. }
  9042. },
  9043. customClass: {
  9044. type: String,
  9045. default: ''
  9046. },
  9047. // 跳转的页面路径
  9048. url: {
  9049. type: String,
  9050. default: ''
  9051. },
  9052. // 页面跳转的类型
  9053. linkType: {
  9054. type: String,
  9055. default: 'navigateTo'
  9056. }
  9057. },
  9058. data: function data() {
  9059. return {};
  9060. },
  9061. onLoad: function onLoad() {
  9062. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9063. this.$u.getRect = this.$uGetRect;
  9064. },
  9065. created: function created() {
  9066. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9067. this.$u.getRect = this.$uGetRect;
  9068. },
  9069. computed: {
  9070. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9071. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9072. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9073. $u: function $u() {
  9074. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9075. return uni.$u.deepMerge(uni.$u, {
  9076. props: undefined,
  9077. http: undefined,
  9078. mixin: undefined
  9079. });
  9080. },
  9081. /**
  9082. * 生成bem规则类名
  9083. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9084. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9085. * @param {String} name 组件名称
  9086. * @param {Array} fixed 一直会存在的类名
  9087. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9088. * @returns {Array|string}
  9089. */
  9090. bem: function bem() {
  9091. return function (name, fixed, change) {
  9092. var _this = this;
  9093. // 类名前缀
  9094. var prefix = "u-".concat(name, "--");
  9095. var classes = {};
  9096. if (fixed) {
  9097. fixed.map(function (item) {
  9098. // 这里的类名,会一直存在
  9099. classes[prefix + _this[item]] = true;
  9100. });
  9101. }
  9102. if (change) {
  9103. change.map(function (item) {
  9104. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9105. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9106. });
  9107. }
  9108. return Object.keys(classes);
  9109. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9110. };
  9111. }
  9112. },
  9113. methods: {
  9114. // 跳转某一个页面
  9115. openPage: function openPage() {
  9116. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9117. var url = this[urlKey];
  9118. if (url) {
  9119. // 执行类似uni.navigateTo的方法
  9120. uni[this.linkType]({
  9121. url: url
  9122. });
  9123. }
  9124. },
  9125. // 查询节点信息
  9126. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9127. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9128. $uGetRect: function $uGetRect(selector, all) {
  9129. var _this2 = this;
  9130. return new Promise(function (resolve) {
  9131. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9132. if (all && Array.isArray(rect) && rect.length) {
  9133. resolve(rect);
  9134. }
  9135. if (!all && rect) {
  9136. resolve(rect);
  9137. }
  9138. }).exec();
  9139. });
  9140. },
  9141. getParentData: function getParentData() {
  9142. var _this3 = this;
  9143. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9144. // 避免在created中去定义parent变量
  9145. if (!this.parent) this.parent = {};
  9146. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9147. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9148. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9149. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9150. this.parent = uni.$u.$parent.call(this, parentName);
  9151. if (this.parent.children) {
  9152. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9153. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9154. }
  9155. if (this.parent && this.parentData) {
  9156. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9157. Object.keys(this.parentData).map(function (key) {
  9158. _this3.parentData[key] = _this3.parent[key];
  9159. });
  9160. }
  9161. },
  9162. // 阻止事件冒泡
  9163. preventEvent: function preventEvent(e) {
  9164. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9165. },
  9166. // 空操作
  9167. noop: function noop(e) {
  9168. this.preventEvent(e);
  9169. }
  9170. },
  9171. onReachBottom: function onReachBottom() {
  9172. uni.$emit('uOnReachBottom');
  9173. },
  9174. beforeDestroy: function beforeDestroy() {
  9175. var _this4 = this;
  9176. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9177. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9178. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9179. // 组件销毁时,移除父组件中的children数组中对应的实例
  9180. var childrenList = this.parent.children;
  9181. childrenList.map(function (child, index) {
  9182. // 如果相等,则移除
  9183. if (child === _this4) {
  9184. childrenList.splice(index, 1);
  9185. }
  9186. });
  9187. }
  9188. }
  9189. };
  9190. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9191. /***/ }),
  9192. /* 35 */
  9193. /*!*************************************************************************************************************!*\
  9194. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9195. \*************************************************************************************************************/
  9196. /*! no static exports found */
  9197. /***/ (function(module, exports, __webpack_require__) {
  9198. "use strict";
  9199. Object.defineProperty(exports, "__esModule", {
  9200. value: true
  9201. });
  9202. exports.default = void 0;
  9203. var _default = {
  9204. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9205. options: {
  9206. virtualHost: true
  9207. }
  9208. };
  9209. exports.default = _default;
  9210. /***/ }),
  9211. /* 36 */
  9212. /*!******************************************************************************************************************!*\
  9213. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/index.js ***!
  9214. \******************************************************************************************************************/
  9215. /*! no static exports found */
  9216. /***/ (function(module, exports, __webpack_require__) {
  9217. "use strict";
  9218. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9219. Object.defineProperty(exports, "__esModule", {
  9220. value: true
  9221. });
  9222. exports.default = void 0;
  9223. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9224. var _default = _Request.default;
  9225. exports.default = _default;
  9226. /***/ }),
  9227. /* 37 */
  9228. /*!*************************************************************************************************************************!*\
  9229. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9230. \*************************************************************************************************************************/
  9231. /*! no static exports found */
  9232. /***/ (function(module, exports, __webpack_require__) {
  9233. "use strict";
  9234. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9235. Object.defineProperty(exports, "__esModule", {
  9236. value: true
  9237. });
  9238. exports.default = void 0;
  9239. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9240. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9241. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9242. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9243. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9244. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9245. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9246. var _utils = __webpack_require__(/*! ../utils */ 41);
  9247. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9248. 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; }
  9249. 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; }
  9250. var Request = /*#__PURE__*/function () {
  9251. /**
  9252. * @param {Object} arg - 全局配置
  9253. * @param {String} arg.baseURL - 全局根路径
  9254. * @param {Object} arg.header - 全局header
  9255. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9256. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9257. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9258. * @param {Object} arg.custom - 全局默认的自定义参数
  9259. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9260. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9261. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9262. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9263. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9264. */
  9265. function Request() {
  9266. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9267. (0, _classCallCheck2.default)(this, Request);
  9268. if (!(0, _utils.isPlainObject)(arg)) {
  9269. arg = {};
  9270. console.warn('设置全局参数必须接收一个Object');
  9271. }
  9272. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9273. this.interceptors = {
  9274. request: new _InterceptorManager.default(),
  9275. response: new _InterceptorManager.default()
  9276. };
  9277. }
  9278. /**
  9279. * @Function
  9280. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9281. */
  9282. (0, _createClass2.default)(Request, [{
  9283. key: "setConfig",
  9284. value: function setConfig(f) {
  9285. this.config = f(this.config);
  9286. }
  9287. }, {
  9288. key: "middleware",
  9289. value: function middleware(config) {
  9290. config = (0, _mergeConfig.default)(this.config, config);
  9291. var chain = [_dispatchRequest.default, undefined];
  9292. var promise = Promise.resolve(config);
  9293. this.interceptors.request.forEach(function (interceptor) {
  9294. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9295. });
  9296. this.interceptors.response.forEach(function (interceptor) {
  9297. chain.push(interceptor.fulfilled, interceptor.rejected);
  9298. });
  9299. while (chain.length) {
  9300. promise = promise.then(chain.shift(), chain.shift());
  9301. }
  9302. return promise;
  9303. }
  9304. /**
  9305. * @Function
  9306. * @param {Object} config - 请求配置项
  9307. * @prop {String} options.url - 请求路径
  9308. * @prop {Object} options.data - 请求参数
  9309. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9310. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9311. * @prop {Object} [options.header = config.header] - 请求header
  9312. * @prop {Object} [options.method = config.method] - 请求方法
  9313. * @returns {Promise<unknown>}
  9314. */
  9315. }, {
  9316. key: "request",
  9317. value: function request() {
  9318. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9319. return this.middleware(config);
  9320. }
  9321. }, {
  9322. key: "get",
  9323. value: function get(url) {
  9324. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9325. return this.middleware(_objectSpread({
  9326. url: url,
  9327. method: 'GET'
  9328. }, options));
  9329. }
  9330. }, {
  9331. key: "post",
  9332. value: function post(url, data) {
  9333. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9334. return this.middleware(_objectSpread({
  9335. url: url,
  9336. data: data,
  9337. method: 'POST'
  9338. }, options));
  9339. }
  9340. }, {
  9341. key: "put",
  9342. value: function put(url, data) {
  9343. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9344. return this.middleware(_objectSpread({
  9345. url: url,
  9346. data: data,
  9347. method: 'PUT'
  9348. }, options));
  9349. }
  9350. }, {
  9351. key: "delete",
  9352. value: function _delete(url, data) {
  9353. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9354. return this.middleware(_objectSpread({
  9355. url: url,
  9356. data: data,
  9357. method: 'DELETE'
  9358. }, options));
  9359. }
  9360. }, {
  9361. key: "connect",
  9362. value: function connect(url, data) {
  9363. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9364. return this.middleware(_objectSpread({
  9365. url: url,
  9366. data: data,
  9367. method: 'CONNECT'
  9368. }, options));
  9369. }
  9370. }, {
  9371. key: "head",
  9372. value: function head(url, data) {
  9373. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9374. return this.middleware(_objectSpread({
  9375. url: url,
  9376. data: data,
  9377. method: 'HEAD'
  9378. }, options));
  9379. }
  9380. }, {
  9381. key: "options",
  9382. value: function options(url, data) {
  9383. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9384. return this.middleware(_objectSpread({
  9385. url: url,
  9386. data: data,
  9387. method: 'OPTIONS'
  9388. }, _options));
  9389. }
  9390. }, {
  9391. key: "trace",
  9392. value: function trace(url, data) {
  9393. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9394. return this.middleware(_objectSpread({
  9395. url: url,
  9396. data: data,
  9397. method: 'TRACE'
  9398. }, options));
  9399. }
  9400. }, {
  9401. key: "upload",
  9402. value: function upload(url) {
  9403. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9404. config.url = url;
  9405. config.method = 'UPLOAD';
  9406. return this.middleware(config);
  9407. }
  9408. }, {
  9409. key: "download",
  9410. value: function download(url) {
  9411. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9412. config.url = url;
  9413. config.method = 'DOWNLOAD';
  9414. return this.middleware(config);
  9415. }
  9416. }]);
  9417. return Request;
  9418. }();
  9419. /**
  9420. * setConfig回调
  9421. * @return {Object} - 返回操作后的config
  9422. * @callback Request~setConfigCallback
  9423. * @param {Object} config - 全局默认config
  9424. */
  9425. exports.default = Request;
  9426. /***/ }),
  9427. /* 38 */
  9428. /*!*********************************************************************************************************************************!*\
  9429. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9430. \*********************************************************************************************************************************/
  9431. /*! no static exports found */
  9432. /***/ (function(module, exports, __webpack_require__) {
  9433. "use strict";
  9434. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9435. Object.defineProperty(exports, "__esModule", {
  9436. value: true
  9437. });
  9438. exports.default = void 0;
  9439. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9440. var _default = function _default(config) {
  9441. return (0, _index.default)(config);
  9442. };
  9443. exports.default = _default;
  9444. /***/ }),
  9445. /* 39 */
  9446. /*!***************************************************************************************************************************!*\
  9447. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9448. \***************************************************************************************************************************/
  9449. /*! no static exports found */
  9450. /***/ (function(module, exports, __webpack_require__) {
  9451. "use strict";
  9452. /* WEBPACK VAR INJECTION */(function(uni) {
  9453. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9454. Object.defineProperty(exports, "__esModule", {
  9455. value: true
  9456. });
  9457. exports.default = void 0;
  9458. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9459. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9460. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9461. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9462. var _utils = __webpack_require__(/*! ../utils */ 41);
  9463. 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; }
  9464. 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; }
  9465. /**
  9466. * 返回可选值存在的配置
  9467. * @param {Array} keys - 可选值数组
  9468. * @param {Object} config2 - 配置
  9469. * @return {{}} - 存在的配置项
  9470. */
  9471. var mergeKeys = function mergeKeys(keys, config2) {
  9472. var config = {};
  9473. keys.forEach(function (prop) {
  9474. if (!(0, _utils.isUndefined)(config2[prop])) {
  9475. config[prop] = config2[prop];
  9476. }
  9477. });
  9478. return config;
  9479. };
  9480. var _default = function _default(config) {
  9481. return new Promise(function (resolve, reject) {
  9482. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9483. var _config = {
  9484. url: fullPath,
  9485. header: config.header,
  9486. complete: function complete(response) {
  9487. config.fullPath = fullPath;
  9488. response.config = config;
  9489. try {
  9490. // 对可能字符串不是json 的情况容错
  9491. if (typeof response.data === 'string') {
  9492. response.data = JSON.parse(response.data);
  9493. }
  9494. // eslint-disable-next-line no-empty
  9495. } catch (e) {}
  9496. (0, _settle.default)(resolve, reject, response);
  9497. }
  9498. };
  9499. var requestTask;
  9500. if (config.method === 'UPLOAD') {
  9501. delete _config.header['content-type'];
  9502. delete _config.header['Content-Type'];
  9503. var otherConfig = {
  9504. filePath: config.filePath,
  9505. name: config.name
  9506. };
  9507. var optionalKeys = ['formData'];
  9508. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9509. } else if (config.method === 'DOWNLOAD') {
  9510. requestTask = uni.downloadFile(_config);
  9511. } else {
  9512. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9513. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9514. }
  9515. if (config.getTask) {
  9516. config.getTask(requestTask, config);
  9517. }
  9518. });
  9519. };
  9520. exports.default = _default;
  9521. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9522. /***/ }),
  9523. /* 40 */
  9524. /*!*****************************************************************************************************************************!*\
  9525. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9526. \*****************************************************************************************************************************/
  9527. /*! no static exports found */
  9528. /***/ (function(module, exports, __webpack_require__) {
  9529. "use strict";
  9530. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9531. Object.defineProperty(exports, "__esModule", {
  9532. value: true
  9533. });
  9534. exports.default = buildURL;
  9535. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9536. 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); }
  9537. 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; }
  9538. function encode(val) {
  9539. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9540. }
  9541. /**
  9542. * Build a URL by appending params to the end
  9543. *
  9544. * @param {string} url The base of the url (e.g., http://www.google.com)
  9545. * @param {object} [params] The params to be appended
  9546. * @returns {string} The formatted url
  9547. */
  9548. function buildURL(url, params) {
  9549. /* eslint no-param-reassign:0 */
  9550. if (!params) {
  9551. return url;
  9552. }
  9553. var serializedParams;
  9554. if (utils.isURLSearchParams(params)) {
  9555. serializedParams = params.toString();
  9556. } else {
  9557. var parts = [];
  9558. utils.forEach(params, function (val, key) {
  9559. if (val === null || typeof val === 'undefined') {
  9560. return;
  9561. }
  9562. if (utils.isArray(val)) {
  9563. key = "".concat(key, "[]");
  9564. } else {
  9565. val = [val];
  9566. }
  9567. utils.forEach(val, function (v) {
  9568. if (utils.isDate(v)) {
  9569. v = v.toISOString();
  9570. } else if (utils.isObject(v)) {
  9571. v = JSON.stringify(v);
  9572. }
  9573. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9574. });
  9575. });
  9576. serializedParams = parts.join('&');
  9577. }
  9578. if (serializedParams) {
  9579. var hashmarkIndex = url.indexOf('#');
  9580. if (hashmarkIndex !== -1) {
  9581. url = url.slice(0, hashmarkIndex);
  9582. }
  9583. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9584. }
  9585. return url;
  9586. }
  9587. /***/ }),
  9588. /* 41 */
  9589. /*!******************************************************************************************************************!*\
  9590. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/utils.js ***!
  9591. \******************************************************************************************************************/
  9592. /*! no static exports found */
  9593. /***/ (function(module, exports, __webpack_require__) {
  9594. "use strict";
  9595. // utils is a library of generic helper functions non-specific to axios
  9596. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9597. Object.defineProperty(exports, "__esModule", {
  9598. value: true
  9599. });
  9600. exports.deepMerge = deepMerge;
  9601. exports.forEach = forEach;
  9602. exports.isArray = isArray;
  9603. exports.isBoolean = isBoolean;
  9604. exports.isDate = isDate;
  9605. exports.isObject = isObject;
  9606. exports.isPlainObject = isPlainObject;
  9607. exports.isURLSearchParams = isURLSearchParams;
  9608. exports.isUndefined = isUndefined;
  9609. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9610. var toString = Object.prototype.toString;
  9611. /**
  9612. * Determine if a value is an Array
  9613. *
  9614. * @param {Object} val The value to test
  9615. * @returns {boolean} True if value is an Array, otherwise false
  9616. */
  9617. function isArray(val) {
  9618. return toString.call(val) === '[object Array]';
  9619. }
  9620. /**
  9621. * Determine if a value is an Object
  9622. *
  9623. * @param {Object} val The value to test
  9624. * @returns {boolean} True if value is an Object, otherwise false
  9625. */
  9626. function isObject(val) {
  9627. return val !== null && (0, _typeof2.default)(val) === 'object';
  9628. }
  9629. /**
  9630. * Determine if a value is a Date
  9631. *
  9632. * @param {Object} val The value to test
  9633. * @returns {boolean} True if value is a Date, otherwise false
  9634. */
  9635. function isDate(val) {
  9636. return toString.call(val) === '[object Date]';
  9637. }
  9638. /**
  9639. * Determine if a value is a URLSearchParams object
  9640. *
  9641. * @param {Object} val The value to test
  9642. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9643. */
  9644. function isURLSearchParams(val) {
  9645. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9646. }
  9647. /**
  9648. * Iterate over an Array or an Object invoking a function for each item.
  9649. *
  9650. * If `obj` is an Array callback will be called passing
  9651. * the value, index, and complete array for each item.
  9652. *
  9653. * If 'obj' is an Object callback will be called passing
  9654. * the value, key, and complete object for each property.
  9655. *
  9656. * @param {Object|Array} obj The object to iterate
  9657. * @param {Function} fn The callback to invoke for each item
  9658. */
  9659. function forEach(obj, fn) {
  9660. // Don't bother if no value provided
  9661. if (obj === null || typeof obj === 'undefined') {
  9662. return;
  9663. }
  9664. // Force an array if not already something iterable
  9665. if ((0, _typeof2.default)(obj) !== 'object') {
  9666. /* eslint no-param-reassign:0 */
  9667. obj = [obj];
  9668. }
  9669. if (isArray(obj)) {
  9670. // Iterate over array values
  9671. for (var i = 0, l = obj.length; i < l; i++) {
  9672. fn.call(null, obj[i], i, obj);
  9673. }
  9674. } else {
  9675. // Iterate over object keys
  9676. for (var key in obj) {
  9677. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9678. fn.call(null, obj[key], key, obj);
  9679. }
  9680. }
  9681. }
  9682. }
  9683. /**
  9684. * 是否为boolean 值
  9685. * @param val
  9686. * @returns {boolean}
  9687. */
  9688. function isBoolean(val) {
  9689. return typeof val === 'boolean';
  9690. }
  9691. /**
  9692. * 是否为真正的对象{} new Object
  9693. * @param {any} obj - 检测的对象
  9694. * @returns {boolean}
  9695. */
  9696. function isPlainObject(obj) {
  9697. return Object.prototype.toString.call(obj) === '[object Object]';
  9698. }
  9699. /**
  9700. * Function equal to merge with the difference being that no reference
  9701. * to original objects is kept.
  9702. *
  9703. * @see merge
  9704. * @param {Object} obj1 Object to merge
  9705. * @returns {Object} Result of all merge properties
  9706. */
  9707. function deepMerge( /* obj1, obj2, obj3, ... */
  9708. ) {
  9709. var result = {};
  9710. function assignValue(val, key) {
  9711. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9712. result[key] = deepMerge(result[key], val);
  9713. } else if ((0, _typeof2.default)(val) === 'object') {
  9714. result[key] = deepMerge({}, val);
  9715. } else {
  9716. result[key] = val;
  9717. }
  9718. }
  9719. for (var i = 0, l = arguments.length; i < l; i++) {
  9720. forEach(arguments[i], assignValue);
  9721. }
  9722. return result;
  9723. }
  9724. function isUndefined(val) {
  9725. return typeof val === 'undefined';
  9726. }
  9727. /***/ }),
  9728. /* 42 */
  9729. /*!*******************************************************************************************************************************!*\
  9730. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9731. \*******************************************************************************************************************************/
  9732. /*! no static exports found */
  9733. /***/ (function(module, exports, __webpack_require__) {
  9734. "use strict";
  9735. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9736. Object.defineProperty(exports, "__esModule", {
  9737. value: true
  9738. });
  9739. exports.default = buildFullPath;
  9740. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9741. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9742. /**
  9743. * Creates a new URL by combining the baseURL with the requestedURL,
  9744. * only when the requestedURL is not already an absolute URL.
  9745. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9746. *
  9747. * @param {string} baseURL The base URL
  9748. * @param {string} requestedURL Absolute or relative URL to combine
  9749. * @returns {string} The combined full path
  9750. */
  9751. function buildFullPath(baseURL, requestedURL) {
  9752. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9753. return (0, _combineURLs.default)(baseURL, requestedURL);
  9754. }
  9755. return requestedURL;
  9756. }
  9757. /***/ }),
  9758. /* 43 */
  9759. /*!**********************************************************************************************************************************!*\
  9760. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9761. \**********************************************************************************************************************************/
  9762. /*! no static exports found */
  9763. /***/ (function(module, exports, __webpack_require__) {
  9764. "use strict";
  9765. /**
  9766. * Determines whether the specified URL is absolute
  9767. *
  9768. * @param {string} url The URL to test
  9769. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9770. */
  9771. Object.defineProperty(exports, "__esModule", {
  9772. value: true
  9773. });
  9774. exports.default = isAbsoluteURL;
  9775. function isAbsoluteURL(url) {
  9776. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9777. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9778. // by any combination of letters, digits, plus, period, or hyphen.
  9779. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9780. }
  9781. /***/ }),
  9782. /* 44 */
  9783. /*!********************************************************************************************************************************!*\
  9784. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9785. \********************************************************************************************************************************/
  9786. /*! no static exports found */
  9787. /***/ (function(module, exports, __webpack_require__) {
  9788. "use strict";
  9789. /**
  9790. * Creates a new URL by combining the specified URLs
  9791. *
  9792. * @param {string} baseURL The base URL
  9793. * @param {string} relativeURL The relative URL
  9794. * @returns {string} The combined URL
  9795. */
  9796. Object.defineProperty(exports, "__esModule", {
  9797. value: true
  9798. });
  9799. exports.default = combineURLs;
  9800. function combineURLs(baseURL, relativeURL) {
  9801. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9802. }
  9803. /***/ }),
  9804. /* 45 */
  9805. /*!************************************************************************************************************************!*\
  9806. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9807. \************************************************************************************************************************/
  9808. /*! no static exports found */
  9809. /***/ (function(module, exports, __webpack_require__) {
  9810. "use strict";
  9811. Object.defineProperty(exports, "__esModule", {
  9812. value: true
  9813. });
  9814. exports.default = settle;
  9815. /**
  9816. * Resolve or reject a Promise based on response status.
  9817. *
  9818. * @param {Function} resolve A function that resolves the promise.
  9819. * @param {Function} reject A function that rejects the promise.
  9820. * @param {object} response The response.
  9821. */
  9822. function settle(resolve, reject, response) {
  9823. var validateStatus = response.config.validateStatus;
  9824. var status = response.statusCode;
  9825. if (status && (!validateStatus || validateStatus(status))) {
  9826. resolve(response);
  9827. } else {
  9828. reject(response);
  9829. }
  9830. }
  9831. /***/ }),
  9832. /* 46 */
  9833. /*!************************************************************************************************************************************!*\
  9834. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9835. \************************************************************************************************************************************/
  9836. /*! no static exports found */
  9837. /***/ (function(module, exports, __webpack_require__) {
  9838. "use strict";
  9839. Object.defineProperty(exports, "__esModule", {
  9840. value: true
  9841. });
  9842. exports.default = void 0;
  9843. function InterceptorManager() {
  9844. this.handlers = [];
  9845. }
  9846. /**
  9847. * Add a new interceptor to the stack
  9848. *
  9849. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9850. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9851. *
  9852. * @return {Number} An ID used to remove interceptor later
  9853. */
  9854. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9855. this.handlers.push({
  9856. fulfilled: fulfilled,
  9857. rejected: rejected
  9858. });
  9859. return this.handlers.length - 1;
  9860. };
  9861. /**
  9862. * Remove an interceptor from the stack
  9863. *
  9864. * @param {Number} id The ID that was returned by `use`
  9865. */
  9866. InterceptorManager.prototype.eject = function eject(id) {
  9867. if (this.handlers[id]) {
  9868. this.handlers[id] = null;
  9869. }
  9870. };
  9871. /**
  9872. * Iterate over all the registered interceptors
  9873. *
  9874. * This method is particularly useful for skipping over any
  9875. * interceptors that may have become `null` calling `eject`.
  9876. *
  9877. * @param {Function} fn The function to call for each interceptor
  9878. */
  9879. InterceptorManager.prototype.forEach = function forEach(fn) {
  9880. this.handlers.forEach(function (h) {
  9881. if (h !== null) {
  9882. fn(h);
  9883. }
  9884. });
  9885. };
  9886. var _default = InterceptorManager;
  9887. exports.default = _default;
  9888. /***/ }),
  9889. /* 47 */
  9890. /*!*****************************************************************************************************************************!*\
  9891. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9892. \*****************************************************************************************************************************/
  9893. /*! no static exports found */
  9894. /***/ (function(module, exports, __webpack_require__) {
  9895. "use strict";
  9896. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9897. Object.defineProperty(exports, "__esModule", {
  9898. value: true
  9899. });
  9900. exports.default = void 0;
  9901. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9902. var _utils = __webpack_require__(/*! ../utils */ 41);
  9903. 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; }
  9904. 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; }
  9905. /**
  9906. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9907. * @param {Array} keys - 配置项
  9908. * @param {Object} globalsConfig - 当前的全局配置
  9909. * @param {Object} config2 - 局部配置
  9910. * @return {{}}
  9911. */
  9912. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9913. var config = {};
  9914. keys.forEach(function (prop) {
  9915. if (!(0, _utils.isUndefined)(config2[prop])) {
  9916. config[prop] = config2[prop];
  9917. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9918. config[prop] = globalsConfig[prop];
  9919. }
  9920. });
  9921. return config;
  9922. };
  9923. /**
  9924. *
  9925. * @param globalsConfig - 当前实例的全局配置
  9926. * @param config2 - 当前的局部配置
  9927. * @return - 合并后的配置
  9928. */
  9929. var _default = function _default(globalsConfig) {
  9930. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9931. var method = config2.method || globalsConfig.method || 'GET';
  9932. var config = {
  9933. baseURL: globalsConfig.baseURL || '',
  9934. method: method,
  9935. url: config2.url || '',
  9936. params: config2.params || {},
  9937. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9938. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9939. };
  9940. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9941. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9942. // eslint-disable-next-line no-empty
  9943. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9944. delete config.header['content-type'];
  9945. delete config.header['Content-Type'];
  9946. var uploadKeys = ['filePath', 'name', 'formData'];
  9947. uploadKeys.forEach(function (prop) {
  9948. if (!(0, _utils.isUndefined)(config2[prop])) {
  9949. config[prop] = config2[prop];
  9950. }
  9951. });
  9952. } else {
  9953. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9954. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9955. }
  9956. return config;
  9957. };
  9958. exports.default = _default;
  9959. /***/ }),
  9960. /* 48 */
  9961. /*!**************************************************************************************************************************!*\
  9962. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9963. \**************************************************************************************************************************/
  9964. /*! no static exports found */
  9965. /***/ (function(module, exports, __webpack_require__) {
  9966. "use strict";
  9967. Object.defineProperty(exports, "__esModule", {
  9968. value: true
  9969. });
  9970. exports.default = void 0;
  9971. /**
  9972. * 默认的全局配置
  9973. */
  9974. var _default = {
  9975. baseURL: '',
  9976. header: {},
  9977. method: 'GET',
  9978. dataType: 'json',
  9979. responseType: 'text',
  9980. custom: {},
  9981. timeout: 60000,
  9982. validateStatus: function validateStatus(status) {
  9983. return status >= 200 && status < 300;
  9984. }
  9985. };
  9986. exports.default = _default;
  9987. /***/ }),
  9988. /* 49 */
  9989. /*!************************************************************************************************************************!*\
  9990. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9991. \************************************************************************************************************************/
  9992. /*! no static exports found */
  9993. /***/ (function(module, exports, __webpack_require__) {
  9994. "use strict";
  9995. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9996. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9997. Object.defineProperty(exports, "__esModule", {
  9998. value: true
  9999. });
  10000. exports.default = void 0;
  10001. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10002. /* eslint-disable */
  10003. var clone = function () {
  10004. 'use strict';
  10005. function _instanceof(obj, type) {
  10006. return type != null && obj instanceof type;
  10007. }
  10008. var nativeMap;
  10009. try {
  10010. nativeMap = Map;
  10011. } catch (_) {
  10012. // maybe a reference error because no `Map`. Give it a dummy value that no
  10013. // value will ever be an instanceof.
  10014. nativeMap = function nativeMap() {};
  10015. }
  10016. var nativeSet;
  10017. try {
  10018. nativeSet = Set;
  10019. } catch (_) {
  10020. nativeSet = function nativeSet() {};
  10021. }
  10022. var nativePromise;
  10023. try {
  10024. nativePromise = Promise;
  10025. } catch (_) {
  10026. nativePromise = function nativePromise() {};
  10027. }
  10028. /**
  10029. * Clones (copies) an Object using deep copying.
  10030. *
  10031. * This function supports circular references by default, but if you are certain
  10032. * there are no circular references in your object, you can save some CPU time
  10033. * by calling clone(obj, false).
  10034. *
  10035. * Caution: if `circular` is false and `parent` contains circular references,
  10036. * your program may enter an infinite loop and crash.
  10037. *
  10038. * @param `parent` - the object to be cloned
  10039. * @param `circular` - set to true if the object to be cloned may contain
  10040. * circular references. (optional - true by default)
  10041. * @param `depth` - set to a number if the object is only to be cloned to
  10042. * a particular depth. (optional - defaults to Infinity)
  10043. * @param `prototype` - sets the prototype to be used when cloning an object.
  10044. * (optional - defaults to parent prototype).
  10045. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10046. * should be cloned as well. Non-enumerable properties on the prototype
  10047. * chain will be ignored. (optional - false by default)
  10048. */
  10049. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10050. if ((0, _typeof2.default)(circular) === 'object') {
  10051. depth = circular.depth;
  10052. prototype = circular.prototype;
  10053. includeNonEnumerable = circular.includeNonEnumerable;
  10054. circular = circular.circular;
  10055. }
  10056. // maintain two arrays for circular references, where corresponding parents
  10057. // and children have the same index
  10058. var allParents = [];
  10059. var allChildren = [];
  10060. var useBuffer = typeof Buffer != 'undefined';
  10061. if (typeof circular == 'undefined') circular = true;
  10062. if (typeof depth == 'undefined') depth = Infinity;
  10063. // recurse this function so we don't reset allParents and allChildren
  10064. function _clone(parent, depth) {
  10065. // cloning null always returns null
  10066. if (parent === null) return null;
  10067. if (depth === 0) return parent;
  10068. var child;
  10069. var proto;
  10070. if ((0, _typeof2.default)(parent) != 'object') {
  10071. return parent;
  10072. }
  10073. if (_instanceof(parent, nativeMap)) {
  10074. child = new nativeMap();
  10075. } else if (_instanceof(parent, nativeSet)) {
  10076. child = new nativeSet();
  10077. } else if (_instanceof(parent, nativePromise)) {
  10078. child = new nativePromise(function (resolve, reject) {
  10079. parent.then(function (value) {
  10080. resolve(_clone(value, depth - 1));
  10081. }, function (err) {
  10082. reject(_clone(err, depth - 1));
  10083. });
  10084. });
  10085. } else if (clone.__isArray(parent)) {
  10086. child = [];
  10087. } else if (clone.__isRegExp(parent)) {
  10088. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10089. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10090. } else if (clone.__isDate(parent)) {
  10091. child = new Date(parent.getTime());
  10092. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10093. if (Buffer.from) {
  10094. // Node.js >= 5.10.0
  10095. child = Buffer.from(parent);
  10096. } else {
  10097. // Older Node.js versions
  10098. child = new Buffer(parent.length);
  10099. parent.copy(child);
  10100. }
  10101. return child;
  10102. } else if (_instanceof(parent, Error)) {
  10103. child = Object.create(parent);
  10104. } else {
  10105. if (typeof prototype == 'undefined') {
  10106. proto = Object.getPrototypeOf(parent);
  10107. child = Object.create(proto);
  10108. } else {
  10109. child = Object.create(prototype);
  10110. proto = prototype;
  10111. }
  10112. }
  10113. if (circular) {
  10114. var index = allParents.indexOf(parent);
  10115. if (index != -1) {
  10116. return allChildren[index];
  10117. }
  10118. allParents.push(parent);
  10119. allChildren.push(child);
  10120. }
  10121. if (_instanceof(parent, nativeMap)) {
  10122. parent.forEach(function (value, key) {
  10123. var keyChild = _clone(key, depth - 1);
  10124. var valueChild = _clone(value, depth - 1);
  10125. child.set(keyChild, valueChild);
  10126. });
  10127. }
  10128. if (_instanceof(parent, nativeSet)) {
  10129. parent.forEach(function (value) {
  10130. var entryChild = _clone(value, depth - 1);
  10131. child.add(entryChild);
  10132. });
  10133. }
  10134. for (var i in parent) {
  10135. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10136. if (attrs) {
  10137. child[i] = _clone(parent[i], depth - 1);
  10138. }
  10139. try {
  10140. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10141. if (objProperty.set === 'undefined') {
  10142. // no setter defined. Skip cloning this property
  10143. continue;
  10144. }
  10145. child[i] = _clone(parent[i], depth - 1);
  10146. } catch (e) {
  10147. if (e instanceof TypeError) {
  10148. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10149. // we can't do anything about this, other than inform the user that this property cannot be set.
  10150. continue;
  10151. } else if (e instanceof ReferenceError) {
  10152. //this may happen in non strict mode
  10153. continue;
  10154. }
  10155. }
  10156. }
  10157. if (Object.getOwnPropertySymbols) {
  10158. var symbols = Object.getOwnPropertySymbols(parent);
  10159. for (var i = 0; i < symbols.length; i++) {
  10160. // Don't need to worry about cloning a symbol because it is a primitive,
  10161. // like a number or string.
  10162. var symbol = symbols[i];
  10163. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10164. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10165. continue;
  10166. }
  10167. child[symbol] = _clone(parent[symbol], depth - 1);
  10168. Object.defineProperty(child, symbol, descriptor);
  10169. }
  10170. }
  10171. if (includeNonEnumerable) {
  10172. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10173. for (var i = 0; i < allPropertyNames.length; i++) {
  10174. var propertyName = allPropertyNames[i];
  10175. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10176. if (descriptor && descriptor.enumerable) {
  10177. continue;
  10178. }
  10179. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10180. Object.defineProperty(child, propertyName, descriptor);
  10181. }
  10182. }
  10183. return child;
  10184. }
  10185. return _clone(parent, depth);
  10186. }
  10187. /**
  10188. * Simple flat clone using prototype, accepts only objects, usefull for property
  10189. * override on FLAT configuration object (no nested props).
  10190. *
  10191. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10192. * works.
  10193. */
  10194. clone.clonePrototype = function clonePrototype(parent) {
  10195. if (parent === null) return null;
  10196. var c = function c() {};
  10197. c.prototype = parent;
  10198. return new c();
  10199. };
  10200. // private utility functions
  10201. function __objToStr(o) {
  10202. return Object.prototype.toString.call(o);
  10203. }
  10204. clone.__objToStr = __objToStr;
  10205. function __isDate(o) {
  10206. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10207. }
  10208. clone.__isDate = __isDate;
  10209. function __isArray(o) {
  10210. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10211. }
  10212. clone.__isArray = __isArray;
  10213. function __isRegExp(o) {
  10214. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10215. }
  10216. clone.__isRegExp = __isRegExp;
  10217. function __getRegExpFlags(re) {
  10218. var flags = '';
  10219. if (re.global) flags += 'g';
  10220. if (re.ignoreCase) flags += 'i';
  10221. if (re.multiline) flags += 'm';
  10222. return flags;
  10223. }
  10224. clone.__getRegExpFlags = __getRegExpFlags;
  10225. return clone;
  10226. }();
  10227. var _default = clone;
  10228. exports.default = _default;
  10229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 50).Buffer))
  10230. /***/ }),
  10231. /* 50 */
  10232. /*!**************************************!*\
  10233. !*** ./node_modules/buffer/index.js ***!
  10234. \**************************************/
  10235. /*! no static exports found */
  10236. /***/ (function(module, exports, __webpack_require__) {
  10237. "use strict";
  10238. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10239. * The buffer module from node.js, for the browser.
  10240. *
  10241. * @author Feross Aboukhadijeh <http://feross.org>
  10242. * @license MIT
  10243. */
  10244. /* eslint-disable no-proto */
  10245. var base64 = __webpack_require__(/*! base64-js */ 51)
  10246. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10247. var isArray = __webpack_require__(/*! isarray */ 53)
  10248. exports.Buffer = Buffer
  10249. exports.SlowBuffer = SlowBuffer
  10250. exports.INSPECT_MAX_BYTES = 50
  10251. /**
  10252. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10253. * === true Use Uint8Array implementation (fastest)
  10254. * === false Use Object implementation (most compatible, even IE6)
  10255. *
  10256. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10257. * Opera 11.6+, iOS 4.2+.
  10258. *
  10259. * Due to various browser bugs, sometimes the Object implementation will be used even
  10260. * when the browser supports typed arrays.
  10261. *
  10262. * Note:
  10263. *
  10264. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10265. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10266. *
  10267. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10268. *
  10269. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10270. * incorrect length in some situations.
  10271. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10272. * get the Object implementation, which is slower but behaves correctly.
  10273. */
  10274. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10275. ? global.TYPED_ARRAY_SUPPORT
  10276. : typedArraySupport()
  10277. /*
  10278. * Export kMaxLength after typed array support is determined.
  10279. */
  10280. exports.kMaxLength = kMaxLength()
  10281. function typedArraySupport () {
  10282. try {
  10283. var arr = new Uint8Array(1)
  10284. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10285. return arr.foo() === 42 && // typed array instances can be augmented
  10286. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10287. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10288. } catch (e) {
  10289. return false
  10290. }
  10291. }
  10292. function kMaxLength () {
  10293. return Buffer.TYPED_ARRAY_SUPPORT
  10294. ? 0x7fffffff
  10295. : 0x3fffffff
  10296. }
  10297. function createBuffer (that, length) {
  10298. if (kMaxLength() < length) {
  10299. throw new RangeError('Invalid typed array length')
  10300. }
  10301. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10302. // Return an augmented `Uint8Array` instance, for best performance
  10303. that = new Uint8Array(length)
  10304. that.__proto__ = Buffer.prototype
  10305. } else {
  10306. // Fallback: Return an object instance of the Buffer class
  10307. if (that === null) {
  10308. that = new Buffer(length)
  10309. }
  10310. that.length = length
  10311. }
  10312. return that
  10313. }
  10314. /**
  10315. * The Buffer constructor returns instances of `Uint8Array` that have their
  10316. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10317. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10318. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10319. * returns a single octet.
  10320. *
  10321. * The `Uint8Array` prototype remains unmodified.
  10322. */
  10323. function Buffer (arg, encodingOrOffset, length) {
  10324. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10325. return new Buffer(arg, encodingOrOffset, length)
  10326. }
  10327. // Common case.
  10328. if (typeof arg === 'number') {
  10329. if (typeof encodingOrOffset === 'string') {
  10330. throw new Error(
  10331. 'If encoding is specified then the first argument must be a string'
  10332. )
  10333. }
  10334. return allocUnsafe(this, arg)
  10335. }
  10336. return from(this, arg, encodingOrOffset, length)
  10337. }
  10338. Buffer.poolSize = 8192 // not used by this implementation
  10339. // TODO: Legacy, not needed anymore. Remove in next major version.
  10340. Buffer._augment = function (arr) {
  10341. arr.__proto__ = Buffer.prototype
  10342. return arr
  10343. }
  10344. function from (that, value, encodingOrOffset, length) {
  10345. if (typeof value === 'number') {
  10346. throw new TypeError('"value" argument must not be a number')
  10347. }
  10348. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10349. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10350. }
  10351. if (typeof value === 'string') {
  10352. return fromString(that, value, encodingOrOffset)
  10353. }
  10354. return fromObject(that, value)
  10355. }
  10356. /**
  10357. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10358. * if value is a number.
  10359. * Buffer.from(str[, encoding])
  10360. * Buffer.from(array)
  10361. * Buffer.from(buffer)
  10362. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10363. **/
  10364. Buffer.from = function (value, encodingOrOffset, length) {
  10365. return from(null, value, encodingOrOffset, length)
  10366. }
  10367. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10368. Buffer.prototype.__proto__ = Uint8Array.prototype
  10369. Buffer.__proto__ = Uint8Array
  10370. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10371. Buffer[Symbol.species] === Buffer) {
  10372. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10373. Object.defineProperty(Buffer, Symbol.species, {
  10374. value: null,
  10375. configurable: true
  10376. })
  10377. }
  10378. }
  10379. function assertSize (size) {
  10380. if (typeof size !== 'number') {
  10381. throw new TypeError('"size" argument must be a number')
  10382. } else if (size < 0) {
  10383. throw new RangeError('"size" argument must not be negative')
  10384. }
  10385. }
  10386. function alloc (that, size, fill, encoding) {
  10387. assertSize(size)
  10388. if (size <= 0) {
  10389. return createBuffer(that, size)
  10390. }
  10391. if (fill !== undefined) {
  10392. // Only pay attention to encoding if it's a string. This
  10393. // prevents accidentally sending in a number that would
  10394. // be interpretted as a start offset.
  10395. return typeof encoding === 'string'
  10396. ? createBuffer(that, size).fill(fill, encoding)
  10397. : createBuffer(that, size).fill(fill)
  10398. }
  10399. return createBuffer(that, size)
  10400. }
  10401. /**
  10402. * Creates a new filled Buffer instance.
  10403. * alloc(size[, fill[, encoding]])
  10404. **/
  10405. Buffer.alloc = function (size, fill, encoding) {
  10406. return alloc(null, size, fill, encoding)
  10407. }
  10408. function allocUnsafe (that, size) {
  10409. assertSize(size)
  10410. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10411. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10412. for (var i = 0; i < size; ++i) {
  10413. that[i] = 0
  10414. }
  10415. }
  10416. return that
  10417. }
  10418. /**
  10419. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10420. * */
  10421. Buffer.allocUnsafe = function (size) {
  10422. return allocUnsafe(null, size)
  10423. }
  10424. /**
  10425. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10426. */
  10427. Buffer.allocUnsafeSlow = function (size) {
  10428. return allocUnsafe(null, size)
  10429. }
  10430. function fromString (that, string, encoding) {
  10431. if (typeof encoding !== 'string' || encoding === '') {
  10432. encoding = 'utf8'
  10433. }
  10434. if (!Buffer.isEncoding(encoding)) {
  10435. throw new TypeError('"encoding" must be a valid string encoding')
  10436. }
  10437. var length = byteLength(string, encoding) | 0
  10438. that = createBuffer(that, length)
  10439. var actual = that.write(string, encoding)
  10440. if (actual !== length) {
  10441. // Writing a hex string, for example, that contains invalid characters will
  10442. // cause everything after the first invalid character to be ignored. (e.g.
  10443. // 'abxxcd' will be treated as 'ab')
  10444. that = that.slice(0, actual)
  10445. }
  10446. return that
  10447. }
  10448. function fromArrayLike (that, array) {
  10449. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10450. that = createBuffer(that, length)
  10451. for (var i = 0; i < length; i += 1) {
  10452. that[i] = array[i] & 255
  10453. }
  10454. return that
  10455. }
  10456. function fromArrayBuffer (that, array, byteOffset, length) {
  10457. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10458. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10459. throw new RangeError('\'offset\' is out of bounds')
  10460. }
  10461. if (array.byteLength < byteOffset + (length || 0)) {
  10462. throw new RangeError('\'length\' is out of bounds')
  10463. }
  10464. if (byteOffset === undefined && length === undefined) {
  10465. array = new Uint8Array(array)
  10466. } else if (length === undefined) {
  10467. array = new Uint8Array(array, byteOffset)
  10468. } else {
  10469. array = new Uint8Array(array, byteOffset, length)
  10470. }
  10471. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10472. // Return an augmented `Uint8Array` instance, for best performance
  10473. that = array
  10474. that.__proto__ = Buffer.prototype
  10475. } else {
  10476. // Fallback: Return an object instance of the Buffer class
  10477. that = fromArrayLike(that, array)
  10478. }
  10479. return that
  10480. }
  10481. function fromObject (that, obj) {
  10482. if (Buffer.isBuffer(obj)) {
  10483. var len = checked(obj.length) | 0
  10484. that = createBuffer(that, len)
  10485. if (that.length === 0) {
  10486. return that
  10487. }
  10488. obj.copy(that, 0, 0, len)
  10489. return that
  10490. }
  10491. if (obj) {
  10492. if ((typeof ArrayBuffer !== 'undefined' &&
  10493. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10494. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10495. return createBuffer(that, 0)
  10496. }
  10497. return fromArrayLike(that, obj)
  10498. }
  10499. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10500. return fromArrayLike(that, obj.data)
  10501. }
  10502. }
  10503. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10504. }
  10505. function checked (length) {
  10506. // Note: cannot use `length < kMaxLength()` here because that fails when
  10507. // length is NaN (which is otherwise coerced to zero.)
  10508. if (length >= kMaxLength()) {
  10509. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10510. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10511. }
  10512. return length | 0
  10513. }
  10514. function SlowBuffer (length) {
  10515. if (+length != length) { // eslint-disable-line eqeqeq
  10516. length = 0
  10517. }
  10518. return Buffer.alloc(+length)
  10519. }
  10520. Buffer.isBuffer = function isBuffer (b) {
  10521. return !!(b != null && b._isBuffer)
  10522. }
  10523. Buffer.compare = function compare (a, b) {
  10524. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10525. throw new TypeError('Arguments must be Buffers')
  10526. }
  10527. if (a === b) return 0
  10528. var x = a.length
  10529. var y = b.length
  10530. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10531. if (a[i] !== b[i]) {
  10532. x = a[i]
  10533. y = b[i]
  10534. break
  10535. }
  10536. }
  10537. if (x < y) return -1
  10538. if (y < x) return 1
  10539. return 0
  10540. }
  10541. Buffer.isEncoding = function isEncoding (encoding) {
  10542. switch (String(encoding).toLowerCase()) {
  10543. case 'hex':
  10544. case 'utf8':
  10545. case 'utf-8':
  10546. case 'ascii':
  10547. case 'latin1':
  10548. case 'binary':
  10549. case 'base64':
  10550. case 'ucs2':
  10551. case 'ucs-2':
  10552. case 'utf16le':
  10553. case 'utf-16le':
  10554. return true
  10555. default:
  10556. return false
  10557. }
  10558. }
  10559. Buffer.concat = function concat (list, length) {
  10560. if (!isArray(list)) {
  10561. throw new TypeError('"list" argument must be an Array of Buffers')
  10562. }
  10563. if (list.length === 0) {
  10564. return Buffer.alloc(0)
  10565. }
  10566. var i
  10567. if (length === undefined) {
  10568. length = 0
  10569. for (i = 0; i < list.length; ++i) {
  10570. length += list[i].length
  10571. }
  10572. }
  10573. var buffer = Buffer.allocUnsafe(length)
  10574. var pos = 0
  10575. for (i = 0; i < list.length; ++i) {
  10576. var buf = list[i]
  10577. if (!Buffer.isBuffer(buf)) {
  10578. throw new TypeError('"list" argument must be an Array of Buffers')
  10579. }
  10580. buf.copy(buffer, pos)
  10581. pos += buf.length
  10582. }
  10583. return buffer
  10584. }
  10585. function byteLength (string, encoding) {
  10586. if (Buffer.isBuffer(string)) {
  10587. return string.length
  10588. }
  10589. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10590. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10591. return string.byteLength
  10592. }
  10593. if (typeof string !== 'string') {
  10594. string = '' + string
  10595. }
  10596. var len = string.length
  10597. if (len === 0) return 0
  10598. // Use a for loop to avoid recursion
  10599. var loweredCase = false
  10600. for (;;) {
  10601. switch (encoding) {
  10602. case 'ascii':
  10603. case 'latin1':
  10604. case 'binary':
  10605. return len
  10606. case 'utf8':
  10607. case 'utf-8':
  10608. case undefined:
  10609. return utf8ToBytes(string).length
  10610. case 'ucs2':
  10611. case 'ucs-2':
  10612. case 'utf16le':
  10613. case 'utf-16le':
  10614. return len * 2
  10615. case 'hex':
  10616. return len >>> 1
  10617. case 'base64':
  10618. return base64ToBytes(string).length
  10619. default:
  10620. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10621. encoding = ('' + encoding).toLowerCase()
  10622. loweredCase = true
  10623. }
  10624. }
  10625. }
  10626. Buffer.byteLength = byteLength
  10627. function slowToString (encoding, start, end) {
  10628. var loweredCase = false
  10629. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10630. // property of a typed array.
  10631. // This behaves neither like String nor Uint8Array in that we set start/end
  10632. // to their upper/lower bounds if the value passed is out of range.
  10633. // undefined is handled specially as per ECMA-262 6th Edition,
  10634. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10635. if (start === undefined || start < 0) {
  10636. start = 0
  10637. }
  10638. // Return early if start > this.length. Done here to prevent potential uint32
  10639. // coercion fail below.
  10640. if (start > this.length) {
  10641. return ''
  10642. }
  10643. if (end === undefined || end > this.length) {
  10644. end = this.length
  10645. }
  10646. if (end <= 0) {
  10647. return ''
  10648. }
  10649. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10650. end >>>= 0
  10651. start >>>= 0
  10652. if (end <= start) {
  10653. return ''
  10654. }
  10655. if (!encoding) encoding = 'utf8'
  10656. while (true) {
  10657. switch (encoding) {
  10658. case 'hex':
  10659. return hexSlice(this, start, end)
  10660. case 'utf8':
  10661. case 'utf-8':
  10662. return utf8Slice(this, start, end)
  10663. case 'ascii':
  10664. return asciiSlice(this, start, end)
  10665. case 'latin1':
  10666. case 'binary':
  10667. return latin1Slice(this, start, end)
  10668. case 'base64':
  10669. return base64Slice(this, start, end)
  10670. case 'ucs2':
  10671. case 'ucs-2':
  10672. case 'utf16le':
  10673. case 'utf-16le':
  10674. return utf16leSlice(this, start, end)
  10675. default:
  10676. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10677. encoding = (encoding + '').toLowerCase()
  10678. loweredCase = true
  10679. }
  10680. }
  10681. }
  10682. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10683. // Buffer instances.
  10684. Buffer.prototype._isBuffer = true
  10685. function swap (b, n, m) {
  10686. var i = b[n]
  10687. b[n] = b[m]
  10688. b[m] = i
  10689. }
  10690. Buffer.prototype.swap16 = function swap16 () {
  10691. var len = this.length
  10692. if (len % 2 !== 0) {
  10693. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10694. }
  10695. for (var i = 0; i < len; i += 2) {
  10696. swap(this, i, i + 1)
  10697. }
  10698. return this
  10699. }
  10700. Buffer.prototype.swap32 = function swap32 () {
  10701. var len = this.length
  10702. if (len % 4 !== 0) {
  10703. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10704. }
  10705. for (var i = 0; i < len; i += 4) {
  10706. swap(this, i, i + 3)
  10707. swap(this, i + 1, i + 2)
  10708. }
  10709. return this
  10710. }
  10711. Buffer.prototype.swap64 = function swap64 () {
  10712. var len = this.length
  10713. if (len % 8 !== 0) {
  10714. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10715. }
  10716. for (var i = 0; i < len; i += 8) {
  10717. swap(this, i, i + 7)
  10718. swap(this, i + 1, i + 6)
  10719. swap(this, i + 2, i + 5)
  10720. swap(this, i + 3, i + 4)
  10721. }
  10722. return this
  10723. }
  10724. Buffer.prototype.toString = function toString () {
  10725. var length = this.length | 0
  10726. if (length === 0) return ''
  10727. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10728. return slowToString.apply(this, arguments)
  10729. }
  10730. Buffer.prototype.equals = function equals (b) {
  10731. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10732. if (this === b) return true
  10733. return Buffer.compare(this, b) === 0
  10734. }
  10735. Buffer.prototype.inspect = function inspect () {
  10736. var str = ''
  10737. var max = exports.INSPECT_MAX_BYTES
  10738. if (this.length > 0) {
  10739. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10740. if (this.length > max) str += ' ... '
  10741. }
  10742. return '<Buffer ' + str + '>'
  10743. }
  10744. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10745. if (!Buffer.isBuffer(target)) {
  10746. throw new TypeError('Argument must be a Buffer')
  10747. }
  10748. if (start === undefined) {
  10749. start = 0
  10750. }
  10751. if (end === undefined) {
  10752. end = target ? target.length : 0
  10753. }
  10754. if (thisStart === undefined) {
  10755. thisStart = 0
  10756. }
  10757. if (thisEnd === undefined) {
  10758. thisEnd = this.length
  10759. }
  10760. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10761. throw new RangeError('out of range index')
  10762. }
  10763. if (thisStart >= thisEnd && start >= end) {
  10764. return 0
  10765. }
  10766. if (thisStart >= thisEnd) {
  10767. return -1
  10768. }
  10769. if (start >= end) {
  10770. return 1
  10771. }
  10772. start >>>= 0
  10773. end >>>= 0
  10774. thisStart >>>= 0
  10775. thisEnd >>>= 0
  10776. if (this === target) return 0
  10777. var x = thisEnd - thisStart
  10778. var y = end - start
  10779. var len = Math.min(x, y)
  10780. var thisCopy = this.slice(thisStart, thisEnd)
  10781. var targetCopy = target.slice(start, end)
  10782. for (var i = 0; i < len; ++i) {
  10783. if (thisCopy[i] !== targetCopy[i]) {
  10784. x = thisCopy[i]
  10785. y = targetCopy[i]
  10786. break
  10787. }
  10788. }
  10789. if (x < y) return -1
  10790. if (y < x) return 1
  10791. return 0
  10792. }
  10793. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10794. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10795. //
  10796. // Arguments:
  10797. // - buffer - a Buffer to search
  10798. // - val - a string, Buffer, or number
  10799. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10800. // - encoding - an optional encoding, relevant is val is a string
  10801. // - dir - true for indexOf, false for lastIndexOf
  10802. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10803. // Empty buffer means no match
  10804. if (buffer.length === 0) return -1
  10805. // Normalize byteOffset
  10806. if (typeof byteOffset === 'string') {
  10807. encoding = byteOffset
  10808. byteOffset = 0
  10809. } else if (byteOffset > 0x7fffffff) {
  10810. byteOffset = 0x7fffffff
  10811. } else if (byteOffset < -0x80000000) {
  10812. byteOffset = -0x80000000
  10813. }
  10814. byteOffset = +byteOffset // Coerce to Number.
  10815. if (isNaN(byteOffset)) {
  10816. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10817. byteOffset = dir ? 0 : (buffer.length - 1)
  10818. }
  10819. // Normalize byteOffset: negative offsets start from the end of the buffer
  10820. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10821. if (byteOffset >= buffer.length) {
  10822. if (dir) return -1
  10823. else byteOffset = buffer.length - 1
  10824. } else if (byteOffset < 0) {
  10825. if (dir) byteOffset = 0
  10826. else return -1
  10827. }
  10828. // Normalize val
  10829. if (typeof val === 'string') {
  10830. val = Buffer.from(val, encoding)
  10831. }
  10832. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10833. if (Buffer.isBuffer(val)) {
  10834. // Special case: looking for empty string/buffer always fails
  10835. if (val.length === 0) {
  10836. return -1
  10837. }
  10838. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10839. } else if (typeof val === 'number') {
  10840. val = val & 0xFF // Search for a byte value [0-255]
  10841. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10842. typeof Uint8Array.prototype.indexOf === 'function') {
  10843. if (dir) {
  10844. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10845. } else {
  10846. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10847. }
  10848. }
  10849. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10850. }
  10851. throw new TypeError('val must be string, number or Buffer')
  10852. }
  10853. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10854. var indexSize = 1
  10855. var arrLength = arr.length
  10856. var valLength = val.length
  10857. if (encoding !== undefined) {
  10858. encoding = String(encoding).toLowerCase()
  10859. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10860. encoding === 'utf16le' || encoding === 'utf-16le') {
  10861. if (arr.length < 2 || val.length < 2) {
  10862. return -1
  10863. }
  10864. indexSize = 2
  10865. arrLength /= 2
  10866. valLength /= 2
  10867. byteOffset /= 2
  10868. }
  10869. }
  10870. function read (buf, i) {
  10871. if (indexSize === 1) {
  10872. return buf[i]
  10873. } else {
  10874. return buf.readUInt16BE(i * indexSize)
  10875. }
  10876. }
  10877. var i
  10878. if (dir) {
  10879. var foundIndex = -1
  10880. for (i = byteOffset; i < arrLength; i++) {
  10881. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10882. if (foundIndex === -1) foundIndex = i
  10883. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10884. } else {
  10885. if (foundIndex !== -1) i -= i - foundIndex
  10886. foundIndex = -1
  10887. }
  10888. }
  10889. } else {
  10890. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10891. for (i = byteOffset; i >= 0; i--) {
  10892. var found = true
  10893. for (var j = 0; j < valLength; j++) {
  10894. if (read(arr, i + j) !== read(val, j)) {
  10895. found = false
  10896. break
  10897. }
  10898. }
  10899. if (found) return i
  10900. }
  10901. }
  10902. return -1
  10903. }
  10904. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10905. return this.indexOf(val, byteOffset, encoding) !== -1
  10906. }
  10907. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10908. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10909. }
  10910. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10911. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10912. }
  10913. function hexWrite (buf, string, offset, length) {
  10914. offset = Number(offset) || 0
  10915. var remaining = buf.length - offset
  10916. if (!length) {
  10917. length = remaining
  10918. } else {
  10919. length = Number(length)
  10920. if (length > remaining) {
  10921. length = remaining
  10922. }
  10923. }
  10924. // must be an even number of digits
  10925. var strLen = string.length
  10926. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10927. if (length > strLen / 2) {
  10928. length = strLen / 2
  10929. }
  10930. for (var i = 0; i < length; ++i) {
  10931. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10932. if (isNaN(parsed)) return i
  10933. buf[offset + i] = parsed
  10934. }
  10935. return i
  10936. }
  10937. function utf8Write (buf, string, offset, length) {
  10938. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10939. }
  10940. function asciiWrite (buf, string, offset, length) {
  10941. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10942. }
  10943. function latin1Write (buf, string, offset, length) {
  10944. return asciiWrite(buf, string, offset, length)
  10945. }
  10946. function base64Write (buf, string, offset, length) {
  10947. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10948. }
  10949. function ucs2Write (buf, string, offset, length) {
  10950. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10951. }
  10952. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10953. // Buffer#write(string)
  10954. if (offset === undefined) {
  10955. encoding = 'utf8'
  10956. length = this.length
  10957. offset = 0
  10958. // Buffer#write(string, encoding)
  10959. } else if (length === undefined && typeof offset === 'string') {
  10960. encoding = offset
  10961. length = this.length
  10962. offset = 0
  10963. // Buffer#write(string, offset[, length][, encoding])
  10964. } else if (isFinite(offset)) {
  10965. offset = offset | 0
  10966. if (isFinite(length)) {
  10967. length = length | 0
  10968. if (encoding === undefined) encoding = 'utf8'
  10969. } else {
  10970. encoding = length
  10971. length = undefined
  10972. }
  10973. // legacy write(string, encoding, offset, length) - remove in v0.13
  10974. } else {
  10975. throw new Error(
  10976. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10977. )
  10978. }
  10979. var remaining = this.length - offset
  10980. if (length === undefined || length > remaining) length = remaining
  10981. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10982. throw new RangeError('Attempt to write outside buffer bounds')
  10983. }
  10984. if (!encoding) encoding = 'utf8'
  10985. var loweredCase = false
  10986. for (;;) {
  10987. switch (encoding) {
  10988. case 'hex':
  10989. return hexWrite(this, string, offset, length)
  10990. case 'utf8':
  10991. case 'utf-8':
  10992. return utf8Write(this, string, offset, length)
  10993. case 'ascii':
  10994. return asciiWrite(this, string, offset, length)
  10995. case 'latin1':
  10996. case 'binary':
  10997. return latin1Write(this, string, offset, length)
  10998. case 'base64':
  10999. // Warning: maxLength not taken into account in base64Write
  11000. return base64Write(this, string, offset, length)
  11001. case 'ucs2':
  11002. case 'ucs-2':
  11003. case 'utf16le':
  11004. case 'utf-16le':
  11005. return ucs2Write(this, string, offset, length)
  11006. default:
  11007. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11008. encoding = ('' + encoding).toLowerCase()
  11009. loweredCase = true
  11010. }
  11011. }
  11012. }
  11013. Buffer.prototype.toJSON = function toJSON () {
  11014. return {
  11015. type: 'Buffer',
  11016. data: Array.prototype.slice.call(this._arr || this, 0)
  11017. }
  11018. }
  11019. function base64Slice (buf, start, end) {
  11020. if (start === 0 && end === buf.length) {
  11021. return base64.fromByteArray(buf)
  11022. } else {
  11023. return base64.fromByteArray(buf.slice(start, end))
  11024. }
  11025. }
  11026. function utf8Slice (buf, start, end) {
  11027. end = Math.min(buf.length, end)
  11028. var res = []
  11029. var i = start
  11030. while (i < end) {
  11031. var firstByte = buf[i]
  11032. var codePoint = null
  11033. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11034. : (firstByte > 0xDF) ? 3
  11035. : (firstByte > 0xBF) ? 2
  11036. : 1
  11037. if (i + bytesPerSequence <= end) {
  11038. var secondByte, thirdByte, fourthByte, tempCodePoint
  11039. switch (bytesPerSequence) {
  11040. case 1:
  11041. if (firstByte < 0x80) {
  11042. codePoint = firstByte
  11043. }
  11044. break
  11045. case 2:
  11046. secondByte = buf[i + 1]
  11047. if ((secondByte & 0xC0) === 0x80) {
  11048. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11049. if (tempCodePoint > 0x7F) {
  11050. codePoint = tempCodePoint
  11051. }
  11052. }
  11053. break
  11054. case 3:
  11055. secondByte = buf[i + 1]
  11056. thirdByte = buf[i + 2]
  11057. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11058. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11059. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11060. codePoint = tempCodePoint
  11061. }
  11062. }
  11063. break
  11064. case 4:
  11065. secondByte = buf[i + 1]
  11066. thirdByte = buf[i + 2]
  11067. fourthByte = buf[i + 3]
  11068. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11069. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11070. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11071. codePoint = tempCodePoint
  11072. }
  11073. }
  11074. }
  11075. }
  11076. if (codePoint === null) {
  11077. // we did not generate a valid codePoint so insert a
  11078. // replacement char (U+FFFD) and advance only 1 byte
  11079. codePoint = 0xFFFD
  11080. bytesPerSequence = 1
  11081. } else if (codePoint > 0xFFFF) {
  11082. // encode to utf16 (surrogate pair dance)
  11083. codePoint -= 0x10000
  11084. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11085. codePoint = 0xDC00 | codePoint & 0x3FF
  11086. }
  11087. res.push(codePoint)
  11088. i += bytesPerSequence
  11089. }
  11090. return decodeCodePointsArray(res)
  11091. }
  11092. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11093. // the lowest limit is Chrome, with 0x10000 args.
  11094. // We go 1 magnitude less, for safety
  11095. var MAX_ARGUMENTS_LENGTH = 0x1000
  11096. function decodeCodePointsArray (codePoints) {
  11097. var len = codePoints.length
  11098. if (len <= MAX_ARGUMENTS_LENGTH) {
  11099. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11100. }
  11101. // Decode in chunks to avoid "call stack size exceeded".
  11102. var res = ''
  11103. var i = 0
  11104. while (i < len) {
  11105. res += String.fromCharCode.apply(
  11106. String,
  11107. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11108. )
  11109. }
  11110. return res
  11111. }
  11112. function asciiSlice (buf, start, end) {
  11113. var ret = ''
  11114. end = Math.min(buf.length, end)
  11115. for (var i = start; i < end; ++i) {
  11116. ret += String.fromCharCode(buf[i] & 0x7F)
  11117. }
  11118. return ret
  11119. }
  11120. function latin1Slice (buf, start, end) {
  11121. var ret = ''
  11122. end = Math.min(buf.length, end)
  11123. for (var i = start; i < end; ++i) {
  11124. ret += String.fromCharCode(buf[i])
  11125. }
  11126. return ret
  11127. }
  11128. function hexSlice (buf, start, end) {
  11129. var len = buf.length
  11130. if (!start || start < 0) start = 0
  11131. if (!end || end < 0 || end > len) end = len
  11132. var out = ''
  11133. for (var i = start; i < end; ++i) {
  11134. out += toHex(buf[i])
  11135. }
  11136. return out
  11137. }
  11138. function utf16leSlice (buf, start, end) {
  11139. var bytes = buf.slice(start, end)
  11140. var res = ''
  11141. for (var i = 0; i < bytes.length; i += 2) {
  11142. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11143. }
  11144. return res
  11145. }
  11146. Buffer.prototype.slice = function slice (start, end) {
  11147. var len = this.length
  11148. start = ~~start
  11149. end = end === undefined ? len : ~~end
  11150. if (start < 0) {
  11151. start += len
  11152. if (start < 0) start = 0
  11153. } else if (start > len) {
  11154. start = len
  11155. }
  11156. if (end < 0) {
  11157. end += len
  11158. if (end < 0) end = 0
  11159. } else if (end > len) {
  11160. end = len
  11161. }
  11162. if (end < start) end = start
  11163. var newBuf
  11164. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11165. newBuf = this.subarray(start, end)
  11166. newBuf.__proto__ = Buffer.prototype
  11167. } else {
  11168. var sliceLen = end - start
  11169. newBuf = new Buffer(sliceLen, undefined)
  11170. for (var i = 0; i < sliceLen; ++i) {
  11171. newBuf[i] = this[i + start]
  11172. }
  11173. }
  11174. return newBuf
  11175. }
  11176. /*
  11177. * Need to make sure that buffer isn't trying to write out of bounds.
  11178. */
  11179. function checkOffset (offset, ext, length) {
  11180. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11181. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11182. }
  11183. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11184. offset = offset | 0
  11185. byteLength = byteLength | 0
  11186. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11187. var val = this[offset]
  11188. var mul = 1
  11189. var i = 0
  11190. while (++i < byteLength && (mul *= 0x100)) {
  11191. val += this[offset + i] * mul
  11192. }
  11193. return val
  11194. }
  11195. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11196. offset = offset | 0
  11197. byteLength = byteLength | 0
  11198. if (!noAssert) {
  11199. checkOffset(offset, byteLength, this.length)
  11200. }
  11201. var val = this[offset + --byteLength]
  11202. var mul = 1
  11203. while (byteLength > 0 && (mul *= 0x100)) {
  11204. val += this[offset + --byteLength] * mul
  11205. }
  11206. return val
  11207. }
  11208. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11209. if (!noAssert) checkOffset(offset, 1, this.length)
  11210. return this[offset]
  11211. }
  11212. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11213. if (!noAssert) checkOffset(offset, 2, this.length)
  11214. return this[offset] | (this[offset + 1] << 8)
  11215. }
  11216. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11217. if (!noAssert) checkOffset(offset, 2, this.length)
  11218. return (this[offset] << 8) | this[offset + 1]
  11219. }
  11220. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11221. if (!noAssert) checkOffset(offset, 4, this.length)
  11222. return ((this[offset]) |
  11223. (this[offset + 1] << 8) |
  11224. (this[offset + 2] << 16)) +
  11225. (this[offset + 3] * 0x1000000)
  11226. }
  11227. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11228. if (!noAssert) checkOffset(offset, 4, this.length)
  11229. return (this[offset] * 0x1000000) +
  11230. ((this[offset + 1] << 16) |
  11231. (this[offset + 2] << 8) |
  11232. this[offset + 3])
  11233. }
  11234. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11235. offset = offset | 0
  11236. byteLength = byteLength | 0
  11237. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11238. var val = this[offset]
  11239. var mul = 1
  11240. var i = 0
  11241. while (++i < byteLength && (mul *= 0x100)) {
  11242. val += this[offset + i] * mul
  11243. }
  11244. mul *= 0x80
  11245. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11246. return val
  11247. }
  11248. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11249. offset = offset | 0
  11250. byteLength = byteLength | 0
  11251. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11252. var i = byteLength
  11253. var mul = 1
  11254. var val = this[offset + --i]
  11255. while (i > 0 && (mul *= 0x100)) {
  11256. val += this[offset + --i] * mul
  11257. }
  11258. mul *= 0x80
  11259. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11260. return val
  11261. }
  11262. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11263. if (!noAssert) checkOffset(offset, 1, this.length)
  11264. if (!(this[offset] & 0x80)) return (this[offset])
  11265. return ((0xff - this[offset] + 1) * -1)
  11266. }
  11267. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11268. if (!noAssert) checkOffset(offset, 2, this.length)
  11269. var val = this[offset] | (this[offset + 1] << 8)
  11270. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11271. }
  11272. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11273. if (!noAssert) checkOffset(offset, 2, this.length)
  11274. var val = this[offset + 1] | (this[offset] << 8)
  11275. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11276. }
  11277. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11278. if (!noAssert) checkOffset(offset, 4, this.length)
  11279. return (this[offset]) |
  11280. (this[offset + 1] << 8) |
  11281. (this[offset + 2] << 16) |
  11282. (this[offset + 3] << 24)
  11283. }
  11284. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11285. if (!noAssert) checkOffset(offset, 4, this.length)
  11286. return (this[offset] << 24) |
  11287. (this[offset + 1] << 16) |
  11288. (this[offset + 2] << 8) |
  11289. (this[offset + 3])
  11290. }
  11291. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11292. if (!noAssert) checkOffset(offset, 4, this.length)
  11293. return ieee754.read(this, offset, true, 23, 4)
  11294. }
  11295. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11296. if (!noAssert) checkOffset(offset, 4, this.length)
  11297. return ieee754.read(this, offset, false, 23, 4)
  11298. }
  11299. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11300. if (!noAssert) checkOffset(offset, 8, this.length)
  11301. return ieee754.read(this, offset, true, 52, 8)
  11302. }
  11303. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11304. if (!noAssert) checkOffset(offset, 8, this.length)
  11305. return ieee754.read(this, offset, false, 52, 8)
  11306. }
  11307. function checkInt (buf, value, offset, ext, max, min) {
  11308. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11309. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11310. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11311. }
  11312. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11313. value = +value
  11314. offset = offset | 0
  11315. byteLength = byteLength | 0
  11316. if (!noAssert) {
  11317. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11318. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11319. }
  11320. var mul = 1
  11321. var i = 0
  11322. this[offset] = value & 0xFF
  11323. while (++i < byteLength && (mul *= 0x100)) {
  11324. this[offset + i] = (value / mul) & 0xFF
  11325. }
  11326. return offset + byteLength
  11327. }
  11328. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11329. value = +value
  11330. offset = offset | 0
  11331. byteLength = byteLength | 0
  11332. if (!noAssert) {
  11333. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11334. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11335. }
  11336. var i = byteLength - 1
  11337. var mul = 1
  11338. this[offset + i] = value & 0xFF
  11339. while (--i >= 0 && (mul *= 0x100)) {
  11340. this[offset + i] = (value / mul) & 0xFF
  11341. }
  11342. return offset + byteLength
  11343. }
  11344. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11345. value = +value
  11346. offset = offset | 0
  11347. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11348. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11349. this[offset] = (value & 0xff)
  11350. return offset + 1
  11351. }
  11352. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11353. if (value < 0) value = 0xffff + value + 1
  11354. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11355. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11356. (littleEndian ? i : 1 - i) * 8
  11357. }
  11358. }
  11359. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11360. value = +value
  11361. offset = offset | 0
  11362. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11363. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11364. this[offset] = (value & 0xff)
  11365. this[offset + 1] = (value >>> 8)
  11366. } else {
  11367. objectWriteUInt16(this, value, offset, true)
  11368. }
  11369. return offset + 2
  11370. }
  11371. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11372. value = +value
  11373. offset = offset | 0
  11374. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11375. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11376. this[offset] = (value >>> 8)
  11377. this[offset + 1] = (value & 0xff)
  11378. } else {
  11379. objectWriteUInt16(this, value, offset, false)
  11380. }
  11381. return offset + 2
  11382. }
  11383. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11384. if (value < 0) value = 0xffffffff + value + 1
  11385. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11386. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11387. }
  11388. }
  11389. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11390. value = +value
  11391. offset = offset | 0
  11392. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11393. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11394. this[offset + 3] = (value >>> 24)
  11395. this[offset + 2] = (value >>> 16)
  11396. this[offset + 1] = (value >>> 8)
  11397. this[offset] = (value & 0xff)
  11398. } else {
  11399. objectWriteUInt32(this, value, offset, true)
  11400. }
  11401. return offset + 4
  11402. }
  11403. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11404. value = +value
  11405. offset = offset | 0
  11406. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11407. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11408. this[offset] = (value >>> 24)
  11409. this[offset + 1] = (value >>> 16)
  11410. this[offset + 2] = (value >>> 8)
  11411. this[offset + 3] = (value & 0xff)
  11412. } else {
  11413. objectWriteUInt32(this, value, offset, false)
  11414. }
  11415. return offset + 4
  11416. }
  11417. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11418. value = +value
  11419. offset = offset | 0
  11420. if (!noAssert) {
  11421. var limit = Math.pow(2, 8 * byteLength - 1)
  11422. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11423. }
  11424. var i = 0
  11425. var mul = 1
  11426. var sub = 0
  11427. this[offset] = value & 0xFF
  11428. while (++i < byteLength && (mul *= 0x100)) {
  11429. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11430. sub = 1
  11431. }
  11432. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11433. }
  11434. return offset + byteLength
  11435. }
  11436. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11437. value = +value
  11438. offset = offset | 0
  11439. if (!noAssert) {
  11440. var limit = Math.pow(2, 8 * byteLength - 1)
  11441. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11442. }
  11443. var i = byteLength - 1
  11444. var mul = 1
  11445. var sub = 0
  11446. this[offset + i] = value & 0xFF
  11447. while (--i >= 0 && (mul *= 0x100)) {
  11448. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11449. sub = 1
  11450. }
  11451. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11452. }
  11453. return offset + byteLength
  11454. }
  11455. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11456. value = +value
  11457. offset = offset | 0
  11458. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11459. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11460. if (value < 0) value = 0xff + value + 1
  11461. this[offset] = (value & 0xff)
  11462. return offset + 1
  11463. }
  11464. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11465. value = +value
  11466. offset = offset | 0
  11467. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11468. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11469. this[offset] = (value & 0xff)
  11470. this[offset + 1] = (value >>> 8)
  11471. } else {
  11472. objectWriteUInt16(this, value, offset, true)
  11473. }
  11474. return offset + 2
  11475. }
  11476. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11477. value = +value
  11478. offset = offset | 0
  11479. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11480. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11481. this[offset] = (value >>> 8)
  11482. this[offset + 1] = (value & 0xff)
  11483. } else {
  11484. objectWriteUInt16(this, value, offset, false)
  11485. }
  11486. return offset + 2
  11487. }
  11488. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11489. value = +value
  11490. offset = offset | 0
  11491. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11492. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11493. this[offset] = (value & 0xff)
  11494. this[offset + 1] = (value >>> 8)
  11495. this[offset + 2] = (value >>> 16)
  11496. this[offset + 3] = (value >>> 24)
  11497. } else {
  11498. objectWriteUInt32(this, value, offset, true)
  11499. }
  11500. return offset + 4
  11501. }
  11502. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11503. value = +value
  11504. offset = offset | 0
  11505. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11506. if (value < 0) value = 0xffffffff + value + 1
  11507. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11508. this[offset] = (value >>> 24)
  11509. this[offset + 1] = (value >>> 16)
  11510. this[offset + 2] = (value >>> 8)
  11511. this[offset + 3] = (value & 0xff)
  11512. } else {
  11513. objectWriteUInt32(this, value, offset, false)
  11514. }
  11515. return offset + 4
  11516. }
  11517. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11518. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11519. if (offset < 0) throw new RangeError('Index out of range')
  11520. }
  11521. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11522. if (!noAssert) {
  11523. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11524. }
  11525. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11526. return offset + 4
  11527. }
  11528. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11529. return writeFloat(this, value, offset, true, noAssert)
  11530. }
  11531. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11532. return writeFloat(this, value, offset, false, noAssert)
  11533. }
  11534. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11535. if (!noAssert) {
  11536. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11537. }
  11538. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11539. return offset + 8
  11540. }
  11541. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11542. return writeDouble(this, value, offset, true, noAssert)
  11543. }
  11544. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11545. return writeDouble(this, value, offset, false, noAssert)
  11546. }
  11547. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11548. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11549. if (!start) start = 0
  11550. if (!end && end !== 0) end = this.length
  11551. if (targetStart >= target.length) targetStart = target.length
  11552. if (!targetStart) targetStart = 0
  11553. if (end > 0 && end < start) end = start
  11554. // Copy 0 bytes; we're done
  11555. if (end === start) return 0
  11556. if (target.length === 0 || this.length === 0) return 0
  11557. // Fatal error conditions
  11558. if (targetStart < 0) {
  11559. throw new RangeError('targetStart out of bounds')
  11560. }
  11561. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11562. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11563. // Are we oob?
  11564. if (end > this.length) end = this.length
  11565. if (target.length - targetStart < end - start) {
  11566. end = target.length - targetStart + start
  11567. }
  11568. var len = end - start
  11569. var i
  11570. if (this === target && start < targetStart && targetStart < end) {
  11571. // descending copy from end
  11572. for (i = len - 1; i >= 0; --i) {
  11573. target[i + targetStart] = this[i + start]
  11574. }
  11575. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11576. // ascending copy from start
  11577. for (i = 0; i < len; ++i) {
  11578. target[i + targetStart] = this[i + start]
  11579. }
  11580. } else {
  11581. Uint8Array.prototype.set.call(
  11582. target,
  11583. this.subarray(start, start + len),
  11584. targetStart
  11585. )
  11586. }
  11587. return len
  11588. }
  11589. // Usage:
  11590. // buffer.fill(number[, offset[, end]])
  11591. // buffer.fill(buffer[, offset[, end]])
  11592. // buffer.fill(string[, offset[, end]][, encoding])
  11593. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11594. // Handle string cases:
  11595. if (typeof val === 'string') {
  11596. if (typeof start === 'string') {
  11597. encoding = start
  11598. start = 0
  11599. end = this.length
  11600. } else if (typeof end === 'string') {
  11601. encoding = end
  11602. end = this.length
  11603. }
  11604. if (val.length === 1) {
  11605. var code = val.charCodeAt(0)
  11606. if (code < 256) {
  11607. val = code
  11608. }
  11609. }
  11610. if (encoding !== undefined && typeof encoding !== 'string') {
  11611. throw new TypeError('encoding must be a string')
  11612. }
  11613. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11614. throw new TypeError('Unknown encoding: ' + encoding)
  11615. }
  11616. } else if (typeof val === 'number') {
  11617. val = val & 255
  11618. }
  11619. // Invalid ranges are not set to a default, so can range check early.
  11620. if (start < 0 || this.length < start || this.length < end) {
  11621. throw new RangeError('Out of range index')
  11622. }
  11623. if (end <= start) {
  11624. return this
  11625. }
  11626. start = start >>> 0
  11627. end = end === undefined ? this.length : end >>> 0
  11628. if (!val) val = 0
  11629. var i
  11630. if (typeof val === 'number') {
  11631. for (i = start; i < end; ++i) {
  11632. this[i] = val
  11633. }
  11634. } else {
  11635. var bytes = Buffer.isBuffer(val)
  11636. ? val
  11637. : utf8ToBytes(new Buffer(val, encoding).toString())
  11638. var len = bytes.length
  11639. for (i = 0; i < end - start; ++i) {
  11640. this[i + start] = bytes[i % len]
  11641. }
  11642. }
  11643. return this
  11644. }
  11645. // HELPER FUNCTIONS
  11646. // ================
  11647. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11648. function base64clean (str) {
  11649. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11650. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11651. // Node converts strings with length < 2 to ''
  11652. if (str.length < 2) return ''
  11653. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11654. while (str.length % 4 !== 0) {
  11655. str = str + '='
  11656. }
  11657. return str
  11658. }
  11659. function stringtrim (str) {
  11660. if (str.trim) return str.trim()
  11661. return str.replace(/^\s+|\s+$/g, '')
  11662. }
  11663. function toHex (n) {
  11664. if (n < 16) return '0' + n.toString(16)
  11665. return n.toString(16)
  11666. }
  11667. function utf8ToBytes (string, units) {
  11668. units = units || Infinity
  11669. var codePoint
  11670. var length = string.length
  11671. var leadSurrogate = null
  11672. var bytes = []
  11673. for (var i = 0; i < length; ++i) {
  11674. codePoint = string.charCodeAt(i)
  11675. // is surrogate component
  11676. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11677. // last char was a lead
  11678. if (!leadSurrogate) {
  11679. // no lead yet
  11680. if (codePoint > 0xDBFF) {
  11681. // unexpected trail
  11682. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11683. continue
  11684. } else if (i + 1 === length) {
  11685. // unpaired lead
  11686. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11687. continue
  11688. }
  11689. // valid lead
  11690. leadSurrogate = codePoint
  11691. continue
  11692. }
  11693. // 2 leads in a row
  11694. if (codePoint < 0xDC00) {
  11695. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11696. leadSurrogate = codePoint
  11697. continue
  11698. }
  11699. // valid surrogate pair
  11700. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11701. } else if (leadSurrogate) {
  11702. // valid bmp char, but last char was a lead
  11703. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11704. }
  11705. leadSurrogate = null
  11706. // encode utf8
  11707. if (codePoint < 0x80) {
  11708. if ((units -= 1) < 0) break
  11709. bytes.push(codePoint)
  11710. } else if (codePoint < 0x800) {
  11711. if ((units -= 2) < 0) break
  11712. bytes.push(
  11713. codePoint >> 0x6 | 0xC0,
  11714. codePoint & 0x3F | 0x80
  11715. )
  11716. } else if (codePoint < 0x10000) {
  11717. if ((units -= 3) < 0) break
  11718. bytes.push(
  11719. codePoint >> 0xC | 0xE0,
  11720. codePoint >> 0x6 & 0x3F | 0x80,
  11721. codePoint & 0x3F | 0x80
  11722. )
  11723. } else if (codePoint < 0x110000) {
  11724. if ((units -= 4) < 0) break
  11725. bytes.push(
  11726. codePoint >> 0x12 | 0xF0,
  11727. codePoint >> 0xC & 0x3F | 0x80,
  11728. codePoint >> 0x6 & 0x3F | 0x80,
  11729. codePoint & 0x3F | 0x80
  11730. )
  11731. } else {
  11732. throw new Error('Invalid code point')
  11733. }
  11734. }
  11735. return bytes
  11736. }
  11737. function asciiToBytes (str) {
  11738. var byteArray = []
  11739. for (var i = 0; i < str.length; ++i) {
  11740. // Node's code seems to be doing this and not & 0x7F..
  11741. byteArray.push(str.charCodeAt(i) & 0xFF)
  11742. }
  11743. return byteArray
  11744. }
  11745. function utf16leToBytes (str, units) {
  11746. var c, hi, lo
  11747. var byteArray = []
  11748. for (var i = 0; i < str.length; ++i) {
  11749. if ((units -= 2) < 0) break
  11750. c = str.charCodeAt(i)
  11751. hi = c >> 8
  11752. lo = c % 256
  11753. byteArray.push(lo)
  11754. byteArray.push(hi)
  11755. }
  11756. return byteArray
  11757. }
  11758. function base64ToBytes (str) {
  11759. return base64.toByteArray(base64clean(str))
  11760. }
  11761. function blitBuffer (src, dst, offset, length) {
  11762. for (var i = 0; i < length; ++i) {
  11763. if ((i + offset >= dst.length) || (i >= src.length)) break
  11764. dst[i + offset] = src[i]
  11765. }
  11766. return i
  11767. }
  11768. function isnan (val) {
  11769. return val !== val // eslint-disable-line no-self-compare
  11770. }
  11771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11772. /***/ }),
  11773. /* 51 */
  11774. /*!*****************************************!*\
  11775. !*** ./node_modules/base64-js/index.js ***!
  11776. \*****************************************/
  11777. /*! no static exports found */
  11778. /***/ (function(module, exports, __webpack_require__) {
  11779. "use strict";
  11780. exports.byteLength = byteLength
  11781. exports.toByteArray = toByteArray
  11782. exports.fromByteArray = fromByteArray
  11783. var lookup = []
  11784. var revLookup = []
  11785. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11786. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11787. for (var i = 0, len = code.length; i < len; ++i) {
  11788. lookup[i] = code[i]
  11789. revLookup[code.charCodeAt(i)] = i
  11790. }
  11791. // Support decoding URL-safe base64 strings, as Node.js does.
  11792. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11793. revLookup['-'.charCodeAt(0)] = 62
  11794. revLookup['_'.charCodeAt(0)] = 63
  11795. function getLens (b64) {
  11796. var len = b64.length
  11797. if (len % 4 > 0) {
  11798. throw new Error('Invalid string. Length must be a multiple of 4')
  11799. }
  11800. // Trim off extra bytes after placeholder bytes are found
  11801. // See: https://github.com/beatgammit/base64-js/issues/42
  11802. var validLen = b64.indexOf('=')
  11803. if (validLen === -1) validLen = len
  11804. var placeHoldersLen = validLen === len
  11805. ? 0
  11806. : 4 - (validLen % 4)
  11807. return [validLen, placeHoldersLen]
  11808. }
  11809. // base64 is 4/3 + up to two characters of the original data
  11810. function byteLength (b64) {
  11811. var lens = getLens(b64)
  11812. var validLen = lens[0]
  11813. var placeHoldersLen = lens[1]
  11814. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11815. }
  11816. function _byteLength (b64, validLen, placeHoldersLen) {
  11817. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11818. }
  11819. function toByteArray (b64) {
  11820. var tmp
  11821. var lens = getLens(b64)
  11822. var validLen = lens[0]
  11823. var placeHoldersLen = lens[1]
  11824. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11825. var curByte = 0
  11826. // if there are placeholders, only get up to the last complete 4 chars
  11827. var len = placeHoldersLen > 0
  11828. ? validLen - 4
  11829. : validLen
  11830. var i
  11831. for (i = 0; i < len; i += 4) {
  11832. tmp =
  11833. (revLookup[b64.charCodeAt(i)] << 18) |
  11834. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11835. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11836. revLookup[b64.charCodeAt(i + 3)]
  11837. arr[curByte++] = (tmp >> 16) & 0xFF
  11838. arr[curByte++] = (tmp >> 8) & 0xFF
  11839. arr[curByte++] = tmp & 0xFF
  11840. }
  11841. if (placeHoldersLen === 2) {
  11842. tmp =
  11843. (revLookup[b64.charCodeAt(i)] << 2) |
  11844. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11845. arr[curByte++] = tmp & 0xFF
  11846. }
  11847. if (placeHoldersLen === 1) {
  11848. tmp =
  11849. (revLookup[b64.charCodeAt(i)] << 10) |
  11850. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11851. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11852. arr[curByte++] = (tmp >> 8) & 0xFF
  11853. arr[curByte++] = tmp & 0xFF
  11854. }
  11855. return arr
  11856. }
  11857. function tripletToBase64 (num) {
  11858. return lookup[num >> 18 & 0x3F] +
  11859. lookup[num >> 12 & 0x3F] +
  11860. lookup[num >> 6 & 0x3F] +
  11861. lookup[num & 0x3F]
  11862. }
  11863. function encodeChunk (uint8, start, end) {
  11864. var tmp
  11865. var output = []
  11866. for (var i = start; i < end; i += 3) {
  11867. tmp =
  11868. ((uint8[i] << 16) & 0xFF0000) +
  11869. ((uint8[i + 1] << 8) & 0xFF00) +
  11870. (uint8[i + 2] & 0xFF)
  11871. output.push(tripletToBase64(tmp))
  11872. }
  11873. return output.join('')
  11874. }
  11875. function fromByteArray (uint8) {
  11876. var tmp
  11877. var len = uint8.length
  11878. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11879. var parts = []
  11880. var maxChunkLength = 16383 // must be multiple of 3
  11881. // go through the array every three bytes, we'll deal with trailing stuff later
  11882. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11883. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11884. }
  11885. // pad the end with zeros, but make sure to not forget the extra bytes
  11886. if (extraBytes === 1) {
  11887. tmp = uint8[len - 1]
  11888. parts.push(
  11889. lookup[tmp >> 2] +
  11890. lookup[(tmp << 4) & 0x3F] +
  11891. '=='
  11892. )
  11893. } else if (extraBytes === 2) {
  11894. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11895. parts.push(
  11896. lookup[tmp >> 10] +
  11897. lookup[(tmp >> 4) & 0x3F] +
  11898. lookup[(tmp << 2) & 0x3F] +
  11899. '='
  11900. )
  11901. }
  11902. return parts.join('')
  11903. }
  11904. /***/ }),
  11905. /* 52 */
  11906. /*!***************************************!*\
  11907. !*** ./node_modules/ieee754/index.js ***!
  11908. \***************************************/
  11909. /*! no static exports found */
  11910. /***/ (function(module, exports) {
  11911. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11912. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11913. var e, m
  11914. var eLen = (nBytes * 8) - mLen - 1
  11915. var eMax = (1 << eLen) - 1
  11916. var eBias = eMax >> 1
  11917. var nBits = -7
  11918. var i = isLE ? (nBytes - 1) : 0
  11919. var d = isLE ? -1 : 1
  11920. var s = buffer[offset + i]
  11921. i += d
  11922. e = s & ((1 << (-nBits)) - 1)
  11923. s >>= (-nBits)
  11924. nBits += eLen
  11925. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11926. m = e & ((1 << (-nBits)) - 1)
  11927. e >>= (-nBits)
  11928. nBits += mLen
  11929. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11930. if (e === 0) {
  11931. e = 1 - eBias
  11932. } else if (e === eMax) {
  11933. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11934. } else {
  11935. m = m + Math.pow(2, mLen)
  11936. e = e - eBias
  11937. }
  11938. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11939. }
  11940. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11941. var e, m, c
  11942. var eLen = (nBytes * 8) - mLen - 1
  11943. var eMax = (1 << eLen) - 1
  11944. var eBias = eMax >> 1
  11945. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11946. var i = isLE ? 0 : (nBytes - 1)
  11947. var d = isLE ? 1 : -1
  11948. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11949. value = Math.abs(value)
  11950. if (isNaN(value) || value === Infinity) {
  11951. m = isNaN(value) ? 1 : 0
  11952. e = eMax
  11953. } else {
  11954. e = Math.floor(Math.log(value) / Math.LN2)
  11955. if (value * (c = Math.pow(2, -e)) < 1) {
  11956. e--
  11957. c *= 2
  11958. }
  11959. if (e + eBias >= 1) {
  11960. value += rt / c
  11961. } else {
  11962. value += rt * Math.pow(2, 1 - eBias)
  11963. }
  11964. if (value * c >= 2) {
  11965. e++
  11966. c /= 2
  11967. }
  11968. if (e + eBias >= eMax) {
  11969. m = 0
  11970. e = eMax
  11971. } else if (e + eBias >= 1) {
  11972. m = ((value * c) - 1) * Math.pow(2, mLen)
  11973. e = e + eBias
  11974. } else {
  11975. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11976. e = 0
  11977. }
  11978. }
  11979. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11980. e = (e << mLen) | m
  11981. eLen += mLen
  11982. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11983. buffer[offset + i - d] |= s * 128
  11984. }
  11985. /***/ }),
  11986. /* 53 */
  11987. /*!***************************************!*\
  11988. !*** ./node_modules/isarray/index.js ***!
  11989. \***************************************/
  11990. /*! no static exports found */
  11991. /***/ (function(module, exports) {
  11992. var toString = {}.toString;
  11993. module.exports = Array.isArray || function (arr) {
  11994. return toString.call(arr) == '[object Array]';
  11995. };
  11996. /***/ }),
  11997. /* 54 */
  11998. /*!**********************************************************************************************************!*\
  11999. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/util/route.js ***!
  12000. \**********************************************************************************************************/
  12001. /*! no static exports found */
  12002. /***/ (function(module, exports, __webpack_require__) {
  12003. "use strict";
  12004. /* WEBPACK VAR INJECTION */(function(uni) {
  12005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12006. Object.defineProperty(exports, "__esModule", {
  12007. value: true
  12008. });
  12009. exports.default = void 0;
  12010. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  12011. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  12012. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12013. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12014. /**
  12015. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12016. * 并且带有路由拦截功能
  12017. */
  12018. var Router = /*#__PURE__*/function () {
  12019. function Router() {
  12020. (0, _classCallCheck2.default)(this, Router);
  12021. // 原始属性定义
  12022. this.config = {
  12023. type: 'navigateTo',
  12024. url: '',
  12025. delta: 1,
  12026. // navigateBack页面后退时,回退的层数
  12027. params: {},
  12028. // 传递的参数
  12029. animationType: 'pop-in',
  12030. // 窗口动画,只在APP有效
  12031. animationDuration: 300,
  12032. // 窗口动画持续时间,单位毫秒,只在APP有效
  12033. intercept: false // 是否需要拦截
  12034. };
  12035. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12036. // 这里在构造函数中进行this绑定
  12037. this.route = this.route.bind(this);
  12038. }
  12039. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12040. (0, _createClass2.default)(Router, [{
  12041. key: "addRootPath",
  12042. value: function addRootPath(url) {
  12043. return url[0] === '/' ? url : "/".concat(url);
  12044. }
  12045. // 整合路由参数
  12046. }, {
  12047. key: "mixinParam",
  12048. value: function mixinParam(url, params) {
  12049. url = url && this.addRootPath(url);
  12050. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12051. // 如果有url中有get参数,转换后无需带上"?"
  12052. var query = '';
  12053. if (/.*\/.*\?.*=.*/.test(url)) {
  12054. // object对象转为get类型的参数
  12055. query = uni.$u.queryParams(params, false);
  12056. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12057. return url += "&".concat(query);
  12058. }
  12059. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12060. query = uni.$u.queryParams(params);
  12061. return url += query;
  12062. }
  12063. // 对外的方法名称
  12064. }, {
  12065. key: "route",
  12066. value: function () {
  12067. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12068. var options,
  12069. params,
  12070. mergeConfig,
  12071. isNext,
  12072. _args = arguments;
  12073. return _regenerator.default.wrap(function _callee$(_context) {
  12074. while (1) {
  12075. switch (_context.prev = _context.next) {
  12076. case 0:
  12077. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12078. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12079. // 合并用户的配置和内部的默认配置
  12080. mergeConfig = {};
  12081. if (typeof options === 'string') {
  12082. // 如果options为字符串,则为route(url, params)的形式
  12083. mergeConfig.url = this.mixinParam(options, params);
  12084. mergeConfig.type = 'navigateTo';
  12085. } else {
  12086. mergeConfig = uni.$u.deepMerge(this.config, options);
  12087. // 否则正常使用mergeConfig中的url和params进行拼接
  12088. mergeConfig.url = this.mixinParam(options.url, options.params);
  12089. }
  12090. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12091. if (!(mergeConfig.url === uni.$u.page())) {
  12092. _context.next = 6;
  12093. break;
  12094. }
  12095. return _context.abrupt("return");
  12096. case 6:
  12097. if (params.intercept) {
  12098. this.config.intercept = params.intercept;
  12099. }
  12100. // params参数也带给拦截器
  12101. mergeConfig.params = params;
  12102. // 合并内外部参数
  12103. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12104. // 判断用户是否定义了拦截器
  12105. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12106. _context.next = 16;
  12107. break;
  12108. }
  12109. _context.next = 12;
  12110. return new Promise(function (resolve, reject) {
  12111. uni.$u.routeIntercept(mergeConfig, resolve);
  12112. });
  12113. case 12:
  12114. isNext = _context.sent;
  12115. // 如果isNext为true,则执行路由跳转
  12116. isNext && this.openPage(mergeConfig);
  12117. _context.next = 17;
  12118. break;
  12119. case 16:
  12120. this.openPage(mergeConfig);
  12121. case 17:
  12122. case "end":
  12123. return _context.stop();
  12124. }
  12125. }
  12126. }, _callee, this);
  12127. }));
  12128. function route() {
  12129. return _route.apply(this, arguments);
  12130. }
  12131. return route;
  12132. }() // 执行路由跳转
  12133. }, {
  12134. key: "openPage",
  12135. value: function openPage(config) {
  12136. // 解构参数
  12137. var url = config.url,
  12138. type = config.type,
  12139. delta = config.delta,
  12140. animationType = config.animationType,
  12141. animationDuration = config.animationDuration;
  12142. if (config.type == 'navigateTo' || config.type == 'to') {
  12143. uni.navigateTo({
  12144. url: url,
  12145. animationType: animationType,
  12146. animationDuration: animationDuration
  12147. });
  12148. }
  12149. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12150. uni.redirectTo({
  12151. url: url
  12152. });
  12153. }
  12154. if (config.type == 'switchTab' || config.type == 'tab') {
  12155. uni.switchTab({
  12156. url: url
  12157. });
  12158. }
  12159. if (config.type == 'reLaunch' || config.type == 'launch') {
  12160. uni.reLaunch({
  12161. url: url
  12162. });
  12163. }
  12164. if (config.type == 'navigateBack' || config.type == 'back') {
  12165. uni.navigateBack({
  12166. delta: delta
  12167. });
  12168. }
  12169. }
  12170. }]);
  12171. return Router;
  12172. }();
  12173. var _default = new Router().route;
  12174. exports.default = _default;
  12175. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12176. /***/ }),
  12177. /* 55 */
  12178. /*!************************************************************************************************!*\
  12179. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12180. \************************************************************************************************/
  12181. /*! no static exports found */
  12182. /***/ (function(module, exports, __webpack_require__) {
  12183. // TODO(Babel 8): Remove this file.
  12184. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12185. module.exports = runtime;
  12186. /***/ }),
  12187. /* 56 */
  12188. /*!*******************************************************************!*\
  12189. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12190. \*******************************************************************/
  12191. /*! no static exports found */
  12192. /***/ (function(module, exports, __webpack_require__) {
  12193. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12194. function _regeneratorRuntime() {
  12195. "use strict";
  12196. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12197. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12198. return e;
  12199. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12200. var t,
  12201. e = {},
  12202. r = Object.prototype,
  12203. n = r.hasOwnProperty,
  12204. o = Object.defineProperty || function (t, e, r) {
  12205. t[e] = r.value;
  12206. },
  12207. i = "function" == typeof Symbol ? Symbol : {},
  12208. a = i.iterator || "@@iterator",
  12209. c = i.asyncIterator || "@@asyncIterator",
  12210. u = i.toStringTag || "@@toStringTag";
  12211. function define(t, e, r) {
  12212. return Object.defineProperty(t, e, {
  12213. value: r,
  12214. enumerable: !0,
  12215. configurable: !0,
  12216. writable: !0
  12217. }), t[e];
  12218. }
  12219. try {
  12220. define({}, "");
  12221. } catch (t) {
  12222. define = function define(t, e, r) {
  12223. return t[e] = r;
  12224. };
  12225. }
  12226. function wrap(t, e, r, n) {
  12227. var i = e && e.prototype instanceof Generator ? e : Generator,
  12228. a = Object.create(i.prototype),
  12229. c = new Context(n || []);
  12230. return o(a, "_invoke", {
  12231. value: makeInvokeMethod(t, r, c)
  12232. }), a;
  12233. }
  12234. function tryCatch(t, e, r) {
  12235. try {
  12236. return {
  12237. type: "normal",
  12238. arg: t.call(e, r)
  12239. };
  12240. } catch (t) {
  12241. return {
  12242. type: "throw",
  12243. arg: t
  12244. };
  12245. }
  12246. }
  12247. e.wrap = wrap;
  12248. var h = "suspendedStart",
  12249. l = "suspendedYield",
  12250. f = "executing",
  12251. s = "completed",
  12252. y = {};
  12253. function Generator() {}
  12254. function GeneratorFunction() {}
  12255. function GeneratorFunctionPrototype() {}
  12256. var p = {};
  12257. define(p, a, function () {
  12258. return this;
  12259. });
  12260. var d = Object.getPrototypeOf,
  12261. v = d && d(d(values([])));
  12262. v && v !== r && n.call(v, a) && (p = v);
  12263. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12264. function defineIteratorMethods(t) {
  12265. ["next", "throw", "return"].forEach(function (e) {
  12266. define(t, e, function (t) {
  12267. return this._invoke(e, t);
  12268. });
  12269. });
  12270. }
  12271. function AsyncIterator(t, e) {
  12272. function invoke(r, o, i, a) {
  12273. var c = tryCatch(t[r], t, o);
  12274. if ("throw" !== c.type) {
  12275. var u = c.arg,
  12276. h = u.value;
  12277. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12278. invoke("next", t, i, a);
  12279. }, function (t) {
  12280. invoke("throw", t, i, a);
  12281. }) : e.resolve(h).then(function (t) {
  12282. u.value = t, i(u);
  12283. }, function (t) {
  12284. return invoke("throw", t, i, a);
  12285. });
  12286. }
  12287. a(c.arg);
  12288. }
  12289. var r;
  12290. o(this, "_invoke", {
  12291. value: function value(t, n) {
  12292. function callInvokeWithMethodAndArg() {
  12293. return new e(function (e, r) {
  12294. invoke(t, n, e, r);
  12295. });
  12296. }
  12297. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12298. }
  12299. });
  12300. }
  12301. function makeInvokeMethod(e, r, n) {
  12302. var o = h;
  12303. return function (i, a) {
  12304. if (o === f) throw Error("Generator is already running");
  12305. if (o === s) {
  12306. if ("throw" === i) throw a;
  12307. return {
  12308. value: t,
  12309. done: !0
  12310. };
  12311. }
  12312. for (n.method = i, n.arg = a;;) {
  12313. var c = n.delegate;
  12314. if (c) {
  12315. var u = maybeInvokeDelegate(c, n);
  12316. if (u) {
  12317. if (u === y) continue;
  12318. return u;
  12319. }
  12320. }
  12321. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12322. if (o === h) throw o = s, n.arg;
  12323. n.dispatchException(n.arg);
  12324. } else "return" === n.method && n.abrupt("return", n.arg);
  12325. o = f;
  12326. var p = tryCatch(e, r, n);
  12327. if ("normal" === p.type) {
  12328. if (o = n.done ? s : l, p.arg === y) continue;
  12329. return {
  12330. value: p.arg,
  12331. done: n.done
  12332. };
  12333. }
  12334. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12335. }
  12336. };
  12337. }
  12338. function maybeInvokeDelegate(e, r) {
  12339. var n = r.method,
  12340. o = e.iterator[n];
  12341. 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;
  12342. var i = tryCatch(o, e.iterator, r.arg);
  12343. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12344. var a = i.arg;
  12345. 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);
  12346. }
  12347. function pushTryEntry(t) {
  12348. var e = {
  12349. tryLoc: t[0]
  12350. };
  12351. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12352. }
  12353. function resetTryEntry(t) {
  12354. var e = t.completion || {};
  12355. e.type = "normal", delete e.arg, t.completion = e;
  12356. }
  12357. function Context(t) {
  12358. this.tryEntries = [{
  12359. tryLoc: "root"
  12360. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12361. }
  12362. function values(e) {
  12363. if (e || "" === e) {
  12364. var r = e[a];
  12365. if (r) return r.call(e);
  12366. if ("function" == typeof e.next) return e;
  12367. if (!isNaN(e.length)) {
  12368. var o = -1,
  12369. i = function next() {
  12370. for (; ++o < e.length;) {
  12371. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12372. }
  12373. return next.value = t, next.done = !0, next;
  12374. };
  12375. return i.next = i;
  12376. }
  12377. }
  12378. throw new TypeError(_typeof(e) + " is not iterable");
  12379. }
  12380. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12381. value: GeneratorFunctionPrototype,
  12382. configurable: !0
  12383. }), o(GeneratorFunctionPrototype, "constructor", {
  12384. value: GeneratorFunction,
  12385. configurable: !0
  12386. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12387. var e = "function" == typeof t && t.constructor;
  12388. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12389. }, e.mark = function (t) {
  12390. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12391. }, e.awrap = function (t) {
  12392. return {
  12393. __await: t
  12394. };
  12395. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12396. return this;
  12397. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12398. void 0 === i && (i = Promise);
  12399. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12400. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12401. return t.done ? t.value : a.next();
  12402. });
  12403. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12404. return this;
  12405. }), define(g, "toString", function () {
  12406. return "[object Generator]";
  12407. }), e.keys = function (t) {
  12408. var e = Object(t),
  12409. r = [];
  12410. for (var n in e) {
  12411. r.push(n);
  12412. }
  12413. return r.reverse(), function next() {
  12414. for (; r.length;) {
  12415. var t = r.pop();
  12416. if (t in e) return next.value = t, next.done = !1, next;
  12417. }
  12418. return next.done = !0, next;
  12419. };
  12420. }, e.values = values, Context.prototype = {
  12421. constructor: Context,
  12422. reset: function reset(e) {
  12423. 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) {
  12424. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12425. }
  12426. },
  12427. stop: function stop() {
  12428. this.done = !0;
  12429. var t = this.tryEntries[0].completion;
  12430. if ("throw" === t.type) throw t.arg;
  12431. return this.rval;
  12432. },
  12433. dispatchException: function dispatchException(e) {
  12434. if (this.done) throw e;
  12435. var r = this;
  12436. function handle(n, o) {
  12437. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12438. }
  12439. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12440. var i = this.tryEntries[o],
  12441. a = i.completion;
  12442. if ("root" === i.tryLoc) return handle("end");
  12443. if (i.tryLoc <= this.prev) {
  12444. var c = n.call(i, "catchLoc"),
  12445. u = n.call(i, "finallyLoc");
  12446. if (c && u) {
  12447. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12448. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12449. } else if (c) {
  12450. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12451. } else {
  12452. if (!u) throw Error("try statement without catch or finally");
  12453. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12454. }
  12455. }
  12456. }
  12457. },
  12458. abrupt: function abrupt(t, e) {
  12459. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12460. var o = this.tryEntries[r];
  12461. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12462. var i = o;
  12463. break;
  12464. }
  12465. }
  12466. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12467. var a = i ? i.completion : {};
  12468. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12469. },
  12470. complete: function complete(t, e) {
  12471. if ("throw" === t.type) throw t.arg;
  12472. 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;
  12473. },
  12474. finish: function finish(t) {
  12475. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12476. var r = this.tryEntries[e];
  12477. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12478. }
  12479. },
  12480. "catch": function _catch(t) {
  12481. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12482. var r = this.tryEntries[e];
  12483. if (r.tryLoc === t) {
  12484. var n = r.completion;
  12485. if ("throw" === n.type) {
  12486. var o = n.arg;
  12487. resetTryEntry(r);
  12488. }
  12489. return o;
  12490. }
  12491. }
  12492. throw Error("illegal catch attempt");
  12493. },
  12494. delegateYield: function delegateYield(e, r, n) {
  12495. return this.delegate = {
  12496. iterator: values(e),
  12497. resultName: r,
  12498. nextLoc: n
  12499. }, "next" === this.method && (this.arg = t), y;
  12500. }
  12501. }, e;
  12502. }
  12503. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12504. /***/ }),
  12505. /* 57 */
  12506. /*!*****************************************************************!*\
  12507. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12508. \*****************************************************************/
  12509. /*! no static exports found */
  12510. /***/ (function(module, exports) {
  12511. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12512. try {
  12513. var info = gen[key](arg);
  12514. var value = info.value;
  12515. } catch (error) {
  12516. reject(error);
  12517. return;
  12518. }
  12519. if (info.done) {
  12520. resolve(value);
  12521. } else {
  12522. Promise.resolve(value).then(_next, _throw);
  12523. }
  12524. }
  12525. function _asyncToGenerator(fn) {
  12526. return function () {
  12527. var self = this,
  12528. args = arguments;
  12529. return new Promise(function (resolve, reject) {
  12530. var gen = fn.apply(self, args);
  12531. function _next(value) {
  12532. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12533. }
  12534. function _throw(err) {
  12535. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12536. }
  12537. _next(undefined);
  12538. });
  12539. };
  12540. }
  12541. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12542. /***/ }),
  12543. /* 58 */
  12544. /*!**********************************************************************************************************************!*\
  12545. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/colorGradient.js ***!
  12546. \**********************************************************************************************************************/
  12547. /*! no static exports found */
  12548. /***/ (function(module, exports, __webpack_require__) {
  12549. "use strict";
  12550. Object.defineProperty(exports, "__esModule", {
  12551. value: true
  12552. });
  12553. exports.default = void 0;
  12554. /**
  12555. * 求两个颜色之间的渐变值
  12556. * @param {string} startColor 开始的颜色
  12557. * @param {string} endColor 结束的颜色
  12558. * @param {number} step 颜色等分的份额
  12559. * */
  12560. function colorGradient() {
  12561. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12562. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12563. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12564. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12565. var startR = startRGB[0];
  12566. var startG = startRGB[1];
  12567. var startB = startRGB[2];
  12568. var endRGB = hexToRgb(endColor, false);
  12569. var endR = endRGB[0];
  12570. var endG = endRGB[1];
  12571. var endB = endRGB[2];
  12572. var sR = (endR - startR) / step; // 总差值
  12573. var sG = (endG - startG) / step;
  12574. var sB = (endB - startB) / step;
  12575. var colorArr = [];
  12576. for (var i = 0; i < step; i++) {
  12577. // 计算每一步的hex值
  12578. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12579. // 确保第一个颜色值为startColor的值
  12580. if (i === 0) hex = rgbToHex(startColor);
  12581. // 确保最后一个颜色值为endColor的值
  12582. if (i === step - 1) hex = rgbToHex(endColor);
  12583. colorArr.push(hex);
  12584. }
  12585. return colorArr;
  12586. }
  12587. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12588. function hexToRgb(sColor) {
  12589. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12590. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12591. sColor = String(sColor).toLowerCase();
  12592. if (sColor && reg.test(sColor)) {
  12593. if (sColor.length === 4) {
  12594. var sColorNew = '#';
  12595. for (var i = 1; i < 4; i += 1) {
  12596. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12597. }
  12598. sColor = sColorNew;
  12599. }
  12600. // 处理六位的颜色值
  12601. var sColorChange = [];
  12602. for (var _i = 1; _i < 7; _i += 2) {
  12603. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12604. }
  12605. if (!str) {
  12606. return sColorChange;
  12607. }
  12608. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12609. }
  12610. if (/^(rgb|RGB)/.test(sColor)) {
  12611. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12612. return arr.map(function (val) {
  12613. return Number(val);
  12614. });
  12615. }
  12616. return sColor;
  12617. }
  12618. // 将rgb表示方式转换为hex表示方式
  12619. function rgbToHex(rgb) {
  12620. var _this = rgb;
  12621. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12622. if (/^(rgb|RGB)/.test(_this)) {
  12623. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12624. var strHex = '#';
  12625. for (var i = 0; i < aColor.length; i++) {
  12626. var hex = Number(aColor[i]).toString(16);
  12627. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12628. if (hex === '0') {
  12629. hex += hex;
  12630. }
  12631. strHex += hex;
  12632. }
  12633. if (strHex.length !== 7) {
  12634. strHex = _this;
  12635. }
  12636. return strHex;
  12637. }
  12638. if (reg.test(_this)) {
  12639. var aNum = _this.replace(/#/, '').split('');
  12640. if (aNum.length === 6) {
  12641. return _this;
  12642. }
  12643. if (aNum.length === 3) {
  12644. var numHex = '#';
  12645. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12646. numHex += aNum[_i2] + aNum[_i2];
  12647. }
  12648. return numHex;
  12649. }
  12650. } else {
  12651. return _this;
  12652. }
  12653. }
  12654. /**
  12655. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12656. * sHex为传入的十六进制的色值
  12657. * alpha为rgba的透明度
  12658. */
  12659. function colorToRgba(color, alpha) {
  12660. color = rgbToHex(color);
  12661. // 十六进制颜色值的正则表达式
  12662. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12663. /* 16进制颜色转为RGB格式 */
  12664. var sColor = String(color).toLowerCase();
  12665. if (sColor && reg.test(sColor)) {
  12666. if (sColor.length === 4) {
  12667. var sColorNew = '#';
  12668. for (var i = 1; i < 4; i += 1) {
  12669. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12670. }
  12671. sColor = sColorNew;
  12672. }
  12673. // 处理六位的颜色值
  12674. var sColorChange = [];
  12675. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12676. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12677. }
  12678. // return sColorChange.join(',')
  12679. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12680. }
  12681. return sColor;
  12682. }
  12683. var _default = {
  12684. colorGradient: colorGradient,
  12685. hexToRgb: hexToRgb,
  12686. rgbToHex: rgbToHex,
  12687. colorToRgba: colorToRgba
  12688. };
  12689. exports.default = _default;
  12690. /***/ }),
  12691. /* 59 */
  12692. /*!*************************************************************************************************************!*\
  12693. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/test.js ***!
  12694. \*************************************************************************************************************/
  12695. /*! no static exports found */
  12696. /***/ (function(module, exports, __webpack_require__) {
  12697. "use strict";
  12698. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12699. Object.defineProperty(exports, "__esModule", {
  12700. value: true
  12701. });
  12702. exports.default = void 0;
  12703. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12704. /**
  12705. * 验证电子邮箱格式
  12706. */
  12707. function email(value) {
  12708. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12709. }
  12710. /**
  12711. * 验证手机格式
  12712. */
  12713. function mobile(value) {
  12714. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12715. }
  12716. /**
  12717. * 验证URL格式
  12718. */
  12719. function url(value) {
  12720. 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);
  12721. }
  12722. /**
  12723. * 验证日期格式
  12724. */
  12725. function date(value) {
  12726. if (!value) return false;
  12727. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12728. if (number(value)) value = +value;
  12729. return !/Invalid|NaN/.test(new Date(value).toString());
  12730. }
  12731. /**
  12732. * 验证ISO类型的日期格式
  12733. */
  12734. function dateISO(value) {
  12735. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12736. }
  12737. /**
  12738. * 验证十进制数字
  12739. */
  12740. function number(value) {
  12741. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12742. }
  12743. /**
  12744. * 验证字符串
  12745. */
  12746. function string(value) {
  12747. return typeof value === 'string';
  12748. }
  12749. /**
  12750. * 验证整数
  12751. */
  12752. function digits(value) {
  12753. return /^\d+$/.test(value);
  12754. }
  12755. /**
  12756. * 验证身份证号码
  12757. */
  12758. function idCard(value) {
  12759. 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);
  12760. }
  12761. /**
  12762. * 是否车牌号
  12763. */
  12764. function carNo(value) {
  12765. // 新能源车牌
  12766. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12767. // 旧车牌
  12768. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12769. if (value.length === 7) {
  12770. return creg.test(value);
  12771. }
  12772. if (value.length === 8) {
  12773. return xreg.test(value);
  12774. }
  12775. return false;
  12776. }
  12777. /**
  12778. * 金额,只允许2位小数
  12779. */
  12780. function amount(value) {
  12781. // 金额,只允许保留两位小数
  12782. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12783. }
  12784. /**
  12785. * 中文
  12786. */
  12787. function chinese(value) {
  12788. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12789. return reg.test(value);
  12790. }
  12791. /**
  12792. * 只能输入字母
  12793. */
  12794. function letter(value) {
  12795. return /^[a-zA-Z]*$/.test(value);
  12796. }
  12797. /**
  12798. * 只能是字母或者数字
  12799. */
  12800. function enOrNum(value) {
  12801. // 英文或者数字
  12802. var reg = /^[0-9a-zA-Z]*$/g;
  12803. return reg.test(value);
  12804. }
  12805. /**
  12806. * 验证是否包含某个值
  12807. */
  12808. function contains(value, param) {
  12809. return value.indexOf(param) >= 0;
  12810. }
  12811. /**
  12812. * 验证一个值范围[min, max]
  12813. */
  12814. function range(value, param) {
  12815. return value >= param[0] && value <= param[1];
  12816. }
  12817. /**
  12818. * 验证一个长度范围[min, max]
  12819. */
  12820. function rangeLength(value, param) {
  12821. return value.length >= param[0] && value.length <= param[1];
  12822. }
  12823. /**
  12824. * 是否固定电话
  12825. */
  12826. function landline(value) {
  12827. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12828. return reg.test(value);
  12829. }
  12830. /**
  12831. * 判断是否为空
  12832. */
  12833. function empty(value) {
  12834. switch ((0, _typeof2.default)(value)) {
  12835. case 'undefined':
  12836. return true;
  12837. case 'string':
  12838. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12839. break;
  12840. case 'boolean':
  12841. if (!value) return true;
  12842. break;
  12843. case 'number':
  12844. if (value === 0 || isNaN(value)) return true;
  12845. break;
  12846. case 'object':
  12847. if (value === null || value.length === 0) return true;
  12848. for (var i in value) {
  12849. return false;
  12850. }
  12851. return true;
  12852. }
  12853. return false;
  12854. }
  12855. /**
  12856. * 是否json字符串
  12857. */
  12858. function jsonString(value) {
  12859. if (typeof value === 'string') {
  12860. try {
  12861. var obj = JSON.parse(value);
  12862. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12863. return true;
  12864. }
  12865. return false;
  12866. } catch (e) {
  12867. return false;
  12868. }
  12869. }
  12870. return false;
  12871. }
  12872. /**
  12873. * 是否数组
  12874. */
  12875. function array(value) {
  12876. if (typeof Array.isArray === 'function') {
  12877. return Array.isArray(value);
  12878. }
  12879. return Object.prototype.toString.call(value) === '[object Array]';
  12880. }
  12881. /**
  12882. * 是否对象
  12883. */
  12884. function object(value) {
  12885. return Object.prototype.toString.call(value) === '[object Object]';
  12886. }
  12887. /**
  12888. * 是否短信验证码
  12889. */
  12890. function code(value) {
  12891. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12892. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12893. }
  12894. /**
  12895. * 是否函数方法
  12896. * @param {Object} value
  12897. */
  12898. function func(value) {
  12899. return typeof value === 'function';
  12900. }
  12901. /**
  12902. * 是否promise对象
  12903. * @param {Object} value
  12904. */
  12905. function promise(value) {
  12906. return object(value) && func(value.then) && func(value.catch);
  12907. }
  12908. /** 是否图片格式
  12909. * @param {Object} value
  12910. */
  12911. function image(value) {
  12912. var newValue = value.split('?')[0];
  12913. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12914. return IMAGE_REGEXP.test(newValue);
  12915. }
  12916. /**
  12917. * 是否视频格式
  12918. * @param {Object} value
  12919. */
  12920. function video(value) {
  12921. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12922. return VIDEO_REGEXP.test(value);
  12923. }
  12924. /**
  12925. * 是否为正则对象
  12926. * @param {Object}
  12927. * @return {Boolean}
  12928. */
  12929. function regExp(o) {
  12930. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12931. }
  12932. var _default = {
  12933. email: email,
  12934. mobile: mobile,
  12935. url: url,
  12936. date: date,
  12937. dateISO: dateISO,
  12938. number: number,
  12939. digits: digits,
  12940. idCard: idCard,
  12941. carNo: carNo,
  12942. amount: amount,
  12943. chinese: chinese,
  12944. letter: letter,
  12945. enOrNum: enOrNum,
  12946. contains: contains,
  12947. range: range,
  12948. rangeLength: rangeLength,
  12949. empty: empty,
  12950. isEmpty: empty,
  12951. jsonString: jsonString,
  12952. landline: landline,
  12953. object: object,
  12954. array: array,
  12955. code: code,
  12956. func: func,
  12957. promise: promise,
  12958. video: video,
  12959. image: image,
  12960. regExp: regExp,
  12961. string: string
  12962. };
  12963. exports.default = _default;
  12964. /***/ }),
  12965. /* 60 */
  12966. /*!*****************************************************************************************************************!*\
  12967. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/debounce.js ***!
  12968. \*****************************************************************************************************************/
  12969. /*! no static exports found */
  12970. /***/ (function(module, exports, __webpack_require__) {
  12971. "use strict";
  12972. Object.defineProperty(exports, "__esModule", {
  12973. value: true
  12974. });
  12975. exports.default = void 0;
  12976. var timeout = null;
  12977. /**
  12978. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12979. *
  12980. * @param {Function} func 要执行的回调函数
  12981. * @param {Number} wait 延时的时间
  12982. * @param {Boolean} immediate 是否立即执行
  12983. * @return null
  12984. */
  12985. function debounce(func) {
  12986. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12987. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12988. // 清除定时器
  12989. if (timeout !== null) clearTimeout(timeout);
  12990. // 立即执行,此类情况一般用不到
  12991. if (immediate) {
  12992. var callNow = !timeout;
  12993. timeout = setTimeout(function () {
  12994. timeout = null;
  12995. }, wait);
  12996. if (callNow) typeof func === 'function' && func();
  12997. } else {
  12998. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12999. timeout = setTimeout(function () {
  13000. typeof func === 'function' && func();
  13001. }, wait);
  13002. }
  13003. }
  13004. var _default = debounce;
  13005. exports.default = _default;
  13006. /***/ }),
  13007. /* 61 */
  13008. /*!*****************************************************************************************************************!*\
  13009. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/throttle.js ***!
  13010. \*****************************************************************************************************************/
  13011. /*! no static exports found */
  13012. /***/ (function(module, exports, __webpack_require__) {
  13013. "use strict";
  13014. Object.defineProperty(exports, "__esModule", {
  13015. value: true
  13016. });
  13017. exports.default = void 0;
  13018. var timer;
  13019. var flag;
  13020. /**
  13021. * 节流原理:在一定时间内,只能触发一次
  13022. *
  13023. * @param {Function} func 要执行的回调函数
  13024. * @param {Number} wait 延时的时间
  13025. * @param {Boolean} immediate 是否立即执行
  13026. * @return null
  13027. */
  13028. function throttle(func) {
  13029. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13030. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13031. if (immediate) {
  13032. if (!flag) {
  13033. flag = true;
  13034. // 如果是立即执行,则在wait毫秒内开始时执行
  13035. typeof func === 'function' && func();
  13036. timer = setTimeout(function () {
  13037. flag = false;
  13038. }, wait);
  13039. }
  13040. } else if (!flag) {
  13041. flag = true;
  13042. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13043. timer = setTimeout(function () {
  13044. flag = false;
  13045. typeof func === 'function' && func();
  13046. }, wait);
  13047. }
  13048. }
  13049. var _default = throttle;
  13050. exports.default = _default;
  13051. /***/ }),
  13052. /* 62 */
  13053. /*!**************************************************************************************************************!*\
  13054. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/index.js ***!
  13055. \**************************************************************************************************************/
  13056. /*! no static exports found */
  13057. /***/ (function(module, exports, __webpack_require__) {
  13058. "use strict";
  13059. /* WEBPACK VAR INJECTION */(function(uni) {
  13060. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13061. Object.defineProperty(exports, "__esModule", {
  13062. value: true
  13063. });
  13064. exports.default = void 0;
  13065. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13066. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13067. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13068. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13069. /**
  13070. * @description 如果value小于min,取min;如果value大于max,取max
  13071. * @param {number} min
  13072. * @param {number} max
  13073. * @param {number} value
  13074. */
  13075. function range() {
  13076. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13077. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13078. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13079. return Math.max(min, Math.min(max, Number(value)));
  13080. }
  13081. /**
  13082. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13083. * @param {number|string} value 用户传递值的px值
  13084. * @param {boolean} unit
  13085. * @returns {number|string}
  13086. */
  13087. function getPx(value) {
  13088. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13089. if (_test.default.number(value)) {
  13090. return unit ? "".concat(value, "px") : Number(value);
  13091. }
  13092. // 如果带有rpx,先取出其数值部分,再转为px值
  13093. if (/(rpx|upx)$/.test(value)) {
  13094. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13095. }
  13096. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13097. }
  13098. /**
  13099. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13100. * @param {number} value 堵塞时间 单位ms 毫秒
  13101. * @returns {Promise} 返回promise
  13102. */
  13103. function sleep() {
  13104. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13105. return new Promise(function (resolve) {
  13106. setTimeout(function () {
  13107. resolve();
  13108. }, value);
  13109. });
  13110. }
  13111. /**
  13112. * @description 运行期判断平台
  13113. * @returns {string} 返回所在平台(小写)
  13114. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13115. */
  13116. function os() {
  13117. return uni.getSystemInfoSync().platform.toLowerCase();
  13118. }
  13119. /**
  13120. * @description 获取系统信息同步接口
  13121. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13122. */
  13123. function sys() {
  13124. return uni.getSystemInfoSync();
  13125. }
  13126. /**
  13127. * @description 取一个区间数
  13128. * @param {Number} min 最小值
  13129. * @param {Number} max 最大值
  13130. */
  13131. function random(min, max) {
  13132. if (min >= 0 && max > 0 && max >= min) {
  13133. var gab = max - min + 1;
  13134. return Math.floor(Math.random() * gab + min);
  13135. }
  13136. return 0;
  13137. }
  13138. /**
  13139. * @param {Number} len uuid的长度
  13140. * @param {Boolean} firstU 将返回的首字母置为"u"
  13141. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13142. */
  13143. function guid() {
  13144. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13145. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13146. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13147. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13148. var uuid = [];
  13149. radix = radix || chars.length;
  13150. if (len) {
  13151. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13152. for (var i = 0; i < len; i++) {
  13153. uuid[i] = chars[0 | Math.random() * radix];
  13154. }
  13155. } else {
  13156. var r;
  13157. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13158. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13159. uuid[14] = '4';
  13160. for (var _i = 0; _i < 36; _i++) {
  13161. if (!uuid[_i]) {
  13162. r = 0 | Math.random() * 16;
  13163. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13164. }
  13165. }
  13166. }
  13167. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13168. if (firstU) {
  13169. uuid.shift();
  13170. return "u".concat(uuid.join(''));
  13171. }
  13172. return uuid.join('');
  13173. }
  13174. /**
  13175. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13176. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13177. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13178. 值(默认为undefined),就是查找最顶层的$parent
  13179. * @param {string|undefined} name 父组件的参数名
  13180. */
  13181. function $parent() {
  13182. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13183. var parent = this.$parent;
  13184. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13185. while (parent) {
  13186. // 父组件
  13187. if (parent.$options && parent.$options.name !== name) {
  13188. // 如果组件的name不相等,继续上一级寻找
  13189. parent = parent.$parent;
  13190. } else {
  13191. return parent;
  13192. }
  13193. }
  13194. return false;
  13195. }
  13196. /**
  13197. * @description 样式转换
  13198. * 对象转字符串,或者字符串转对象
  13199. * @param {object | string} customStyle 需要转换的目标
  13200. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13201. * @returns {object|string}
  13202. */
  13203. function addStyle(customStyle) {
  13204. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13205. // 字符串转字符串,对象转对象情形,直接返回
  13206. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13207. return customStyle;
  13208. }
  13209. // 字符串转对象
  13210. if (target === 'object') {
  13211. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13212. customStyle = trim(customStyle);
  13213. // 根据";"将字符串转为数组形式
  13214. var styleArray = customStyle.split(';');
  13215. var style = {};
  13216. // 历遍数组,拼接成对象
  13217. for (var i = 0; i < styleArray.length; i++) {
  13218. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13219. if (styleArray[i]) {
  13220. var item = styleArray[i].split(':');
  13221. style[trim(item[0])] = trim(item[1]);
  13222. }
  13223. }
  13224. return style;
  13225. }
  13226. // 这里为对象转字符串形式
  13227. var string = '';
  13228. for (var _i2 in customStyle) {
  13229. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13230. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13231. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13232. }
  13233. // 去除两端空格
  13234. return trim(string);
  13235. }
  13236. /**
  13237. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13238. * @param {string|number} value 需要添加单位的值
  13239. * @param {string} unit 添加的单位名 比如px
  13240. */
  13241. function addUnit() {
  13242. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13243. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13244. 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';
  13245. value = String(value);
  13246. // 用uView内置验证规则中的number判断是否为数值
  13247. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13248. }
  13249. /**
  13250. * @description 深度克隆
  13251. * @param {object} obj 需要深度克隆的对象
  13252. * @param cache 缓存
  13253. * @returns {*} 克隆后的对象或者原值(不是对象)
  13254. */
  13255. function deepClone(obj) {
  13256. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13257. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13258. if (cache.has(obj)) return cache.get(obj);
  13259. var clone;
  13260. if (obj instanceof Date) {
  13261. clone = new Date(obj.getTime());
  13262. } else if (obj instanceof RegExp) {
  13263. clone = new RegExp(obj);
  13264. } else if (obj instanceof Map) {
  13265. clone = new Map(Array.from(obj, function (_ref) {
  13266. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13267. key = _ref2[0],
  13268. value = _ref2[1];
  13269. return [key, deepClone(value, cache)];
  13270. }));
  13271. } else if (obj instanceof Set) {
  13272. clone = new Set(Array.from(obj, function (value) {
  13273. return deepClone(value, cache);
  13274. }));
  13275. } else if (Array.isArray(obj)) {
  13276. clone = obj.map(function (value) {
  13277. return deepClone(value, cache);
  13278. });
  13279. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13280. clone = Object.create(Object.getPrototypeOf(obj));
  13281. cache.set(obj, clone);
  13282. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13283. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13284. key = _Object$entries$_i[0],
  13285. value = _Object$entries$_i[1];
  13286. clone[key] = deepClone(value, cache);
  13287. }
  13288. } else {
  13289. clone = Object.assign({}, obj);
  13290. }
  13291. cache.set(obj, clone);
  13292. return clone;
  13293. }
  13294. /**
  13295. * @description JS对象深度合并
  13296. * @param {object} target 需要拷贝的对象
  13297. * @param {object} source 拷贝的来源对象
  13298. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13299. */
  13300. function deepMerge() {
  13301. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13302. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13303. target = deepClone(target);
  13304. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13305. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13306. for (var prop in source) {
  13307. if (!source.hasOwnProperty(prop)) continue;
  13308. var sourceValue = source[prop];
  13309. var targetValue = merged[prop];
  13310. if (sourceValue instanceof Date) {
  13311. merged[prop] = new Date(sourceValue);
  13312. } else if (sourceValue instanceof RegExp) {
  13313. merged[prop] = new RegExp(sourceValue);
  13314. } else if (sourceValue instanceof Map) {
  13315. merged[prop] = new Map(sourceValue);
  13316. } else if (sourceValue instanceof Set) {
  13317. merged[prop] = new Set(sourceValue);
  13318. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13319. merged[prop] = deepMerge(targetValue, sourceValue);
  13320. } else {
  13321. merged[prop] = sourceValue;
  13322. }
  13323. }
  13324. return merged;
  13325. }
  13326. /**
  13327. * @description error提示
  13328. * @param {*} err 错误内容
  13329. */
  13330. function error(err) {
  13331. // 开发环境才提示,生产环境不会提示
  13332. if (true) {
  13333. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13334. }
  13335. }
  13336. /**
  13337. * @description 打乱数组
  13338. * @param {array} array 需要打乱的数组
  13339. * @returns {array} 打乱后的数组
  13340. */
  13341. function randomArray() {
  13342. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13343. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13344. return array.sort(function () {
  13345. return Math.random() - 0.5;
  13346. });
  13347. }
  13348. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13349. // 所以这里做一个兼容polyfill的兼容处理
  13350. if (!String.prototype.padStart) {
  13351. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13352. String.prototype.padStart = function (maxLength) {
  13353. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13354. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13355. throw new TypeError('fillString must be String');
  13356. }
  13357. var str = this;
  13358. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13359. if (str.length >= maxLength) return String(str);
  13360. var fillLength = maxLength - str.length;
  13361. var times = Math.ceil(fillLength / fillString.length);
  13362. while (times >>= 1) {
  13363. fillString += fillString;
  13364. if (times === 1) {
  13365. fillString += fillString;
  13366. }
  13367. }
  13368. return fillString.slice(0, fillLength) + str;
  13369. };
  13370. }
  13371. /**
  13372. * @description 格式化时间
  13373. * @param {String|Number} dateTime 需要格式化的时间戳
  13374. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13375. * @returns {string} 返回格式化后的字符串
  13376. */
  13377. function timeFormat() {
  13378. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13379. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13380. var date;
  13381. // 若传入时间为假值,则取当前时间
  13382. if (!dateTime) {
  13383. date = new Date();
  13384. }
  13385. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13386. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13387. date = new Date(dateTime * 1000);
  13388. }
  13389. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13390. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13391. date = new Date(Number(dateTime));
  13392. }
  13393. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13394. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13395. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13396. date = new Date(dateTime.replace(/-/g, '/'));
  13397. }
  13398. // 其他都认为符合 RFC 2822 规范
  13399. else {
  13400. date = new Date(dateTime);
  13401. }
  13402. var timeSource = {
  13403. 'y': date.getFullYear().toString(),
  13404. // 年
  13405. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13406. // 月
  13407. 'd': date.getDate().toString().padStart(2, '0'),
  13408. // 日
  13409. 'h': date.getHours().toString().padStart(2, '0'),
  13410. // 时
  13411. 'M': date.getMinutes().toString().padStart(2, '0'),
  13412. // 分
  13413. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13414. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13415. };
  13416. for (var key in timeSource) {
  13417. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13418. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13419. ret = _ref4[0];
  13420. if (ret) {
  13421. // 年可能只需展示两位
  13422. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13423. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13424. }
  13425. }
  13426. return formatStr;
  13427. }
  13428. /**
  13429. * @description 时间戳转为多久之前
  13430. * @param {String|Number} timestamp 时间戳
  13431. * @param {String|Boolean} format
  13432. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13433. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13434. * @returns {string} 转化后的内容
  13435. */
  13436. function timeFrom() {
  13437. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13438. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13439. if (timestamp == null) timestamp = Number(new Date());
  13440. timestamp = parseInt(timestamp);
  13441. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13442. if (timestamp.toString().length == 10) timestamp *= 1000;
  13443. var timer = new Date().getTime() - timestamp;
  13444. timer = parseInt(timer / 1000);
  13445. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13446. var tips = '';
  13447. switch (true) {
  13448. case timer < 300:
  13449. tips = '刚刚';
  13450. break;
  13451. case timer >= 300 && timer < 3600:
  13452. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13453. break;
  13454. case timer >= 3600 && timer < 86400:
  13455. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13456. break;
  13457. case timer >= 86400 && timer < 2592000:
  13458. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13459. break;
  13460. default:
  13461. // 如果format为false,则无论什么时间戳,都显示xx之前
  13462. if (format === false) {
  13463. if (timer >= 2592000 && timer < 365 * 86400) {
  13464. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13465. } else {
  13466. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13467. }
  13468. } else {
  13469. tips = timeFormat(timestamp, format);
  13470. }
  13471. }
  13472. return tips;
  13473. }
  13474. /**
  13475. * @description 去除空格
  13476. * @param String str 需要去除空格的字符串
  13477. * @param String pos both(左右)|left|right|all 默认both
  13478. */
  13479. function trim(str) {
  13480. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13481. str = String(str);
  13482. if (pos == 'both') {
  13483. return str.replace(/^\s+|\s+$/g, '');
  13484. }
  13485. if (pos == 'left') {
  13486. return str.replace(/^\s*/, '');
  13487. }
  13488. if (pos == 'right') {
  13489. return str.replace(/(\s*$)/g, '');
  13490. }
  13491. if (pos == 'all') {
  13492. return str.replace(/\s+/g, '');
  13493. }
  13494. return str;
  13495. }
  13496. /**
  13497. * @description 对象转url参数
  13498. * @param {object} data,对象
  13499. * @param {Boolean} isPrefix,是否自动加上"?"
  13500. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13501. */
  13502. function queryParams() {
  13503. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13504. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13505. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13506. var prefix = isPrefix ? '?' : '';
  13507. var _result = [];
  13508. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13509. var _loop = function _loop(key) {
  13510. var value = data[key];
  13511. // 去掉为空的参数
  13512. if (['', undefined, null].indexOf(value) >= 0) {
  13513. return "continue";
  13514. }
  13515. // 如果值为数组,另行处理
  13516. if (value.constructor === Array) {
  13517. // e.g. {ids: [1, 2, 3]}
  13518. switch (arrayFormat) {
  13519. case 'indices':
  13520. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13521. for (var i = 0; i < value.length; i++) {
  13522. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13523. }
  13524. break;
  13525. case 'brackets':
  13526. // 结果: ids[]=1&ids[]=2&ids[]=3
  13527. value.forEach(function (_value) {
  13528. _result.push("".concat(key, "[]=").concat(_value));
  13529. });
  13530. break;
  13531. case 'repeat':
  13532. // 结果: ids=1&ids=2&ids=3
  13533. value.forEach(function (_value) {
  13534. _result.push("".concat(key, "=").concat(_value));
  13535. });
  13536. break;
  13537. case 'comma':
  13538. // 结果: ids=1,2,3
  13539. var commaStr = '';
  13540. value.forEach(function (_value) {
  13541. commaStr += (commaStr ? ',' : '') + _value;
  13542. });
  13543. _result.push("".concat(key, "=").concat(commaStr));
  13544. break;
  13545. default:
  13546. value.forEach(function (_value) {
  13547. _result.push("".concat(key, "[]=").concat(_value));
  13548. });
  13549. }
  13550. } else {
  13551. _result.push("".concat(key, "=").concat(value));
  13552. }
  13553. };
  13554. for (var key in data) {
  13555. var _ret = _loop(key);
  13556. if (_ret === "continue") continue;
  13557. }
  13558. return _result.length ? prefix + _result.join('&') : '';
  13559. }
  13560. /**
  13561. * 显示消息提示框
  13562. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13563. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13564. */
  13565. function toast(title) {
  13566. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13567. uni.showToast({
  13568. title: String(title),
  13569. icon: 'none',
  13570. duration: duration
  13571. });
  13572. }
  13573. /**
  13574. * @description 根据主题type值,获取对应的图标
  13575. * @param {String} type 主题名称,primary|info|error|warning|success
  13576. * @param {boolean} fill 是否使用fill填充实体的图标
  13577. */
  13578. function type2icon() {
  13579. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13580. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13581. // 如果非预置值,默认为success
  13582. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13583. var iconName = '';
  13584. // 目前(2019-12-12),info和primary使用同一个图标
  13585. switch (type) {
  13586. case 'primary':
  13587. iconName = 'info-circle';
  13588. break;
  13589. case 'info':
  13590. iconName = 'info-circle';
  13591. break;
  13592. case 'error':
  13593. iconName = 'close-circle';
  13594. break;
  13595. case 'warning':
  13596. iconName = 'error-circle';
  13597. break;
  13598. case 'success':
  13599. iconName = 'checkmark-circle';
  13600. break;
  13601. default:
  13602. iconName = 'checkmark-circle';
  13603. }
  13604. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13605. if (fill) iconName += '-fill';
  13606. return iconName;
  13607. }
  13608. /**
  13609. * @description 数字格式化
  13610. * @param {number|string} number 要格式化的数字
  13611. * @param {number} decimals 保留几位小数
  13612. * @param {string} decimalPoint 小数点符号
  13613. * @param {string} thousandsSeparator 千分位符号
  13614. * @returns {string} 格式化后的数字
  13615. */
  13616. function priceFormat(number) {
  13617. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13618. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13619. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13620. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13621. var n = !isFinite(+number) ? 0 : +number;
  13622. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13623. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13624. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13625. var s = '';
  13626. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13627. var re = /(-?\d+)(\d{3})/;
  13628. while (re.test(s[0])) {
  13629. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13630. }
  13631. if ((s[1] || '').length < prec) {
  13632. s[1] = s[1] || '';
  13633. s[1] += new Array(prec - s[1].length + 1).join('0');
  13634. }
  13635. return s.join(dec);
  13636. }
  13637. /**
  13638. * @description 获取duration值
  13639. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13640. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13641. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13642. * @param {boolean} unit 提示: 如果是false 默认返回number
  13643. * @return {string|number}
  13644. */
  13645. function getDuration(value) {
  13646. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13647. var valueNum = parseInt(value);
  13648. if (unit) {
  13649. if (/s$/.test(value)) return value;
  13650. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13651. }
  13652. if (/ms$/.test(value)) return valueNum;
  13653. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13654. return valueNum;
  13655. }
  13656. /**
  13657. * @description 日期的月或日补零操作
  13658. * @param {String} value 需要补零的值
  13659. */
  13660. function padZero(value) {
  13661. return "00".concat(value).slice(-2);
  13662. }
  13663. /**
  13664. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13665. * @param {*} instance
  13666. * @param {*} event
  13667. */
  13668. function formValidate(instance, event) {
  13669. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13670. var form = uni.$u.$parent.call(instance, 'u-form');
  13671. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13672. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13673. if (formItem && form) {
  13674. form.validateField(formItem.prop, function () {}, event);
  13675. }
  13676. }
  13677. /**
  13678. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13679. * @param {object} obj 对象
  13680. * @param {string} key 需要获取的属性字段
  13681. * @returns {*}
  13682. */
  13683. function getProperty(obj, key) {
  13684. if (!obj) {
  13685. return;
  13686. }
  13687. if (typeof key !== 'string' || key === '') {
  13688. return '';
  13689. }
  13690. if (key.indexOf('.') !== -1) {
  13691. var keys = key.split('.');
  13692. var firstObj = obj[keys[0]] || {};
  13693. for (var i = 1; i < keys.length; i++) {
  13694. if (firstObj) {
  13695. firstObj = firstObj[keys[i]];
  13696. }
  13697. }
  13698. return firstObj;
  13699. }
  13700. return obj[key];
  13701. }
  13702. /**
  13703. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13704. * @param {object} obj 对象
  13705. * @param {string} key 需要设置的属性
  13706. * @param {string} value 设置的值
  13707. */
  13708. function setProperty(obj, key, value) {
  13709. if (!obj) {
  13710. return;
  13711. }
  13712. // 递归赋值
  13713. var inFn = function inFn(_obj, keys, v) {
  13714. // 最后一个属性key
  13715. if (keys.length === 1) {
  13716. _obj[keys[0]] = v;
  13717. return;
  13718. }
  13719. // 0~length-1个key
  13720. while (keys.length > 1) {
  13721. var k = keys[0];
  13722. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13723. _obj[k] = {};
  13724. }
  13725. var _key = keys.shift();
  13726. // 自调用判断是否存在属性,不存在则自动创建对象
  13727. inFn(_obj[k], keys, v);
  13728. }
  13729. };
  13730. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13731. // 支持多层级赋值操作
  13732. var keys = key.split('.');
  13733. inFn(obj, keys, value);
  13734. } else {
  13735. obj[key] = value;
  13736. }
  13737. }
  13738. /**
  13739. * @description 获取当前页面路径
  13740. */
  13741. function page() {
  13742. var _pages$route, _pages;
  13743. var pages = getCurrentPages();
  13744. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13745. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13746. }
  13747. /**
  13748. * @description 获取当前路由栈实例数组
  13749. */
  13750. function pages() {
  13751. var pages = getCurrentPages();
  13752. return pages;
  13753. }
  13754. /**
  13755. * 获取页面历史栈指定层实例
  13756. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13757. */
  13758. function getHistoryPage() {
  13759. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13760. var pages = getCurrentPages();
  13761. var len = pages.length;
  13762. return pages[len - 1 + back];
  13763. }
  13764. /**
  13765. * @description 修改uView内置属性值
  13766. * @param {object} props 修改内置props属性
  13767. * @param {object} config 修改内置config属性
  13768. * @param {object} color 修改内置color属性
  13769. * @param {object} zIndex 修改内置zIndex属性
  13770. */
  13771. function setConfig(_ref5) {
  13772. var _ref5$props = _ref5.props,
  13773. props = _ref5$props === void 0 ? {} : _ref5$props,
  13774. _ref5$config = _ref5.config,
  13775. config = _ref5$config === void 0 ? {} : _ref5$config,
  13776. _ref5$color = _ref5.color,
  13777. color = _ref5$color === void 0 ? {} : _ref5$color,
  13778. _ref5$zIndex = _ref5.zIndex,
  13779. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13780. var deepMerge = uni.$u.deepMerge;
  13781. uni.$u.config = deepMerge(uni.$u.config, config);
  13782. uni.$u.props = deepMerge(uni.$u.props, props);
  13783. uni.$u.color = deepMerge(uni.$u.color, color);
  13784. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13785. }
  13786. var _default = {
  13787. range: range,
  13788. getPx: getPx,
  13789. sleep: sleep,
  13790. os: os,
  13791. sys: sys,
  13792. random: random,
  13793. guid: guid,
  13794. $parent: $parent,
  13795. addStyle: addStyle,
  13796. addUnit: addUnit,
  13797. deepClone: deepClone,
  13798. deepMerge: deepMerge,
  13799. error: error,
  13800. randomArray: randomArray,
  13801. timeFormat: timeFormat,
  13802. timeFrom: timeFrom,
  13803. trim: trim,
  13804. queryParams: queryParams,
  13805. toast: toast,
  13806. type2icon: type2icon,
  13807. priceFormat: priceFormat,
  13808. getDuration: getDuration,
  13809. padZero: padZero,
  13810. formValidate: formValidate,
  13811. getProperty: getProperty,
  13812. setProperty: setProperty,
  13813. page: page,
  13814. pages: pages,
  13815. getHistoryPage: getHistoryPage,
  13816. setConfig: setConfig
  13817. };
  13818. exports.default = _default;
  13819. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13820. /***/ }),
  13821. /* 63 */
  13822. /*!**************************************************************************************************************!*\
  13823. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/digit.js ***!
  13824. \**************************************************************************************************************/
  13825. /*! no static exports found */
  13826. /***/ (function(module, exports, __webpack_require__) {
  13827. "use strict";
  13828. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13829. Object.defineProperty(exports, "__esModule", {
  13830. value: true
  13831. });
  13832. exports.default = void 0;
  13833. exports.divide = divide;
  13834. exports.enableBoundaryChecking = enableBoundaryChecking;
  13835. exports.minus = minus;
  13836. exports.plus = plus;
  13837. exports.round = round;
  13838. exports.times = times;
  13839. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13840. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13841. /**
  13842. * 把错误的数据转正
  13843. * @private
  13844. * @example strip(0.09999999999999998)=0.1
  13845. */
  13846. function strip(num) {
  13847. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13848. return +parseFloat(Number(num).toPrecision(precision));
  13849. }
  13850. /**
  13851. * Return digits length of a number
  13852. * @private
  13853. * @param {*number} num Input number
  13854. */
  13855. function digitLength(num) {
  13856. // Get digit length of e
  13857. var eSplit = num.toString().split(/[eE]/);
  13858. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13859. return len > 0 ? len : 0;
  13860. }
  13861. /**
  13862. * 把小数转成整数,如果是小数则放大成整数
  13863. * @private
  13864. * @param {*number} num 输入数
  13865. */
  13866. function float2Fixed(num) {
  13867. if (num.toString().indexOf('e') === -1) {
  13868. return Number(num.toString().replace('.', ''));
  13869. }
  13870. var dLen = digitLength(num);
  13871. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13872. }
  13873. /**
  13874. * 检测数字是否越界,如果越界给出提示
  13875. * @private
  13876. * @param {*number} num 输入数
  13877. */
  13878. function checkBoundary(num) {
  13879. if (_boundaryCheckingState) {
  13880. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13881. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13882. }
  13883. }
  13884. }
  13885. /**
  13886. * 把递归操作扁平迭代化
  13887. * @param {number[]} arr 要操作的数字数组
  13888. * @param {function} operation 迭代操作
  13889. * @private
  13890. */
  13891. function iteratorOperation(arr, operation) {
  13892. var _arr = (0, _toArray2.default)(arr),
  13893. num1 = _arr[0],
  13894. num2 = _arr[1],
  13895. others = _arr.slice(2);
  13896. var res = operation(num1, num2);
  13897. others.forEach(function (num) {
  13898. res = operation(res, num);
  13899. });
  13900. return res;
  13901. }
  13902. /**
  13903. * 高精度乘法
  13904. * @export
  13905. */
  13906. function times() {
  13907. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13908. nums[_key] = arguments[_key];
  13909. }
  13910. if (nums.length > 2) {
  13911. return iteratorOperation(nums, times);
  13912. }
  13913. var num1 = nums[0],
  13914. num2 = nums[1];
  13915. var num1Changed = float2Fixed(num1);
  13916. var num2Changed = float2Fixed(num2);
  13917. var baseNum = digitLength(num1) + digitLength(num2);
  13918. var leftValue = num1Changed * num2Changed;
  13919. checkBoundary(leftValue);
  13920. return leftValue / Math.pow(10, baseNum);
  13921. }
  13922. /**
  13923. * 高精度加法
  13924. * @export
  13925. */
  13926. function plus() {
  13927. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13928. nums[_key2] = arguments[_key2];
  13929. }
  13930. if (nums.length > 2) {
  13931. return iteratorOperation(nums, plus);
  13932. }
  13933. var num1 = nums[0],
  13934. num2 = nums[1];
  13935. // 取最大的小数位
  13936. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13937. // 把小数都转为整数然后再计算
  13938. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13939. }
  13940. /**
  13941. * 高精度减法
  13942. * @export
  13943. */
  13944. function minus() {
  13945. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13946. nums[_key3] = arguments[_key3];
  13947. }
  13948. if (nums.length > 2) {
  13949. return iteratorOperation(nums, minus);
  13950. }
  13951. var num1 = nums[0],
  13952. num2 = nums[1];
  13953. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13954. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13955. }
  13956. /**
  13957. * 高精度除法
  13958. * @export
  13959. */
  13960. function divide() {
  13961. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13962. nums[_key4] = arguments[_key4];
  13963. }
  13964. if (nums.length > 2) {
  13965. return iteratorOperation(nums, divide);
  13966. }
  13967. var num1 = nums[0],
  13968. num2 = nums[1];
  13969. var num1Changed = float2Fixed(num1);
  13970. var num2Changed = float2Fixed(num2);
  13971. checkBoundary(num1Changed);
  13972. checkBoundary(num2Changed);
  13973. // 重要,这里必须用strip进行修正
  13974. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13975. }
  13976. /**
  13977. * 四舍五入
  13978. * @export
  13979. */
  13980. function round(num, ratio) {
  13981. var base = Math.pow(10, ratio);
  13982. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13983. if (num < 0 && result !== 0) {
  13984. result = times(result, -1);
  13985. }
  13986. // 位数不足则补0
  13987. return result;
  13988. }
  13989. /**
  13990. * 是否进行边界检查,默认开启
  13991. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13992. * @export
  13993. */
  13994. function enableBoundaryChecking() {
  13995. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13996. _boundaryCheckingState = flag;
  13997. }
  13998. var _default = {
  13999. times: times,
  14000. plus: plus,
  14001. minus: minus,
  14002. divide: divide,
  14003. round: round,
  14004. enableBoundaryChecking: enableBoundaryChecking
  14005. };
  14006. exports.default = _default;
  14007. /***/ }),
  14008. /* 64 */
  14009. /*!********************************************************!*\
  14010. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14011. \********************************************************/
  14012. /*! no static exports found */
  14013. /***/ (function(module, exports, __webpack_require__) {
  14014. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14015. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14016. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14017. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14018. function _toArray(arr) {
  14019. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14020. }
  14021. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14022. /***/ }),
  14023. /* 65 */
  14024. /*!*************************************************************************************************************!*\
  14025. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/config.js ***!
  14026. \*************************************************************************************************************/
  14027. /*! no static exports found */
  14028. /***/ (function(module, exports, __webpack_require__) {
  14029. "use strict";
  14030. Object.defineProperty(exports, "__esModule", {
  14031. value: true
  14032. });
  14033. exports.default = void 0;
  14034. // 此版本发布于2024-10-29
  14035. var version = '2.0.38';
  14036. // 开发环境才提示,生产环境不会提示
  14037. if (true) {
  14038. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14039. }
  14040. var _default = {
  14041. v: version,
  14042. version: version,
  14043. // 主题名称
  14044. type: ['primary', 'success', 'info', 'error', 'warning'],
  14045. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14046. color: {
  14047. 'u-primary': '#2979ff',
  14048. 'u-warning': '#ff9900',
  14049. 'u-success': '#19be6b',
  14050. 'u-error': '#fa3534',
  14051. 'u-info': '#909399',
  14052. 'u-main-color': '#303133',
  14053. 'u-content-color': '#606266',
  14054. 'u-tips-color': '#909399',
  14055. 'u-light-color': '#c0c4cc'
  14056. },
  14057. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14058. unit: 'px'
  14059. };
  14060. exports.default = _default;
  14061. /***/ }),
  14062. /* 66 */
  14063. /*!************************************************************************************************************!*\
  14064. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props.js ***!
  14065. \************************************************************************************************************/
  14066. /*! no static exports found */
  14067. /***/ (function(module, exports, __webpack_require__) {
  14068. "use strict";
  14069. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14070. Object.defineProperty(exports, "__esModule", {
  14071. value: true
  14072. });
  14073. exports.default = void 0;
  14074. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14075. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14076. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14077. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14078. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14079. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14080. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14081. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14082. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14083. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14084. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14085. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14086. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14087. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14088. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14089. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14090. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14091. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14092. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14093. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14094. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14095. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14096. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14097. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14098. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14099. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14100. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14101. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14102. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14103. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14104. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14105. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14106. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14107. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14108. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14109. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14110. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14111. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14112. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14113. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14114. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14115. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14116. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14117. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14118. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14119. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14120. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14121. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14122. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14123. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14124. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14125. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14126. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14127. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14128. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14129. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14130. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14131. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14132. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14133. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14134. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14135. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14136. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14137. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14138. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14139. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14140. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14141. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14142. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14143. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14144. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14145. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14146. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14147. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14148. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14149. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14150. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14151. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14152. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14153. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14154. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14155. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14156. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14157. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14158. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14159. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14160. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14161. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14162. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14163. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14164. 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; }
  14165. 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; }
  14166. var color = _config.default.color;
  14167. 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);
  14168. exports.default = _default;
  14169. /***/ }),
  14170. /* 67 */
  14171. /*!************************************************************************************************************************!*\
  14172. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14173. \************************************************************************************************************************/
  14174. /*! no static exports found */
  14175. /***/ (function(module, exports, __webpack_require__) {
  14176. "use strict";
  14177. Object.defineProperty(exports, "__esModule", {
  14178. value: true
  14179. });
  14180. exports.default = void 0;
  14181. /*
  14182. * @Author : LQ
  14183. * @Description :
  14184. * @version : 1.0
  14185. * @Date : 2021-08-20 16:44:21
  14186. * @LastAuthor : LQ
  14187. * @lastTime : 2021-08-20 16:44:35
  14188. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14189. */
  14190. var _default = {
  14191. // action-sheet组件
  14192. actionSheet: {
  14193. show: false,
  14194. title: '',
  14195. description: '',
  14196. actions: function actions() {
  14197. return [];
  14198. },
  14199. index: '',
  14200. cancelText: '',
  14201. closeOnClickAction: true,
  14202. safeAreaInsetBottom: true,
  14203. openType: '',
  14204. closeOnClickOverlay: true,
  14205. round: 0
  14206. }
  14207. };
  14208. exports.default = _default;
  14209. /***/ }),
  14210. /* 68 */
  14211. /*!******************************************************************************************************************!*\
  14212. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/album.js ***!
  14213. \******************************************************************************************************************/
  14214. /*! no static exports found */
  14215. /***/ (function(module, exports, __webpack_require__) {
  14216. "use strict";
  14217. Object.defineProperty(exports, "__esModule", {
  14218. value: true
  14219. });
  14220. exports.default = void 0;
  14221. /*
  14222. * @Author : LQ
  14223. * @Description :
  14224. * @version : 1.0
  14225. * @Date : 2021-08-20 16:44:21
  14226. * @LastAuthor : LQ
  14227. * @lastTime : 2021-08-20 16:47:24
  14228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14229. */
  14230. var _default = {
  14231. // album 组件
  14232. album: {
  14233. urls: function urls() {
  14234. return [];
  14235. },
  14236. keyName: '',
  14237. singleSize: 180,
  14238. multipleSize: 70,
  14239. space: 6,
  14240. singleMode: 'scaleToFill',
  14241. multipleMode: 'aspectFill',
  14242. maxCount: 9,
  14243. previewFullImage: true,
  14244. rowCount: 3,
  14245. showMore: true
  14246. }
  14247. };
  14248. exports.default = _default;
  14249. /***/ }),
  14250. /* 69 */
  14251. /*!******************************************************************************************************************!*\
  14252. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/alert.js ***!
  14253. \******************************************************************************************************************/
  14254. /*! no static exports found */
  14255. /***/ (function(module, exports, __webpack_require__) {
  14256. "use strict";
  14257. Object.defineProperty(exports, "__esModule", {
  14258. value: true
  14259. });
  14260. exports.default = void 0;
  14261. /*
  14262. * @Author : LQ
  14263. * @Description :
  14264. * @version : 1.0
  14265. * @Date : 2021-08-20 16:44:21
  14266. * @LastAuthor : LQ
  14267. * @lastTime : 2021-08-20 16:48:53
  14268. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14269. */
  14270. var _default = {
  14271. // alert警告组件
  14272. alert: {
  14273. title: '',
  14274. type: 'warning',
  14275. description: '',
  14276. closable: false,
  14277. showIcon: false,
  14278. effect: 'light',
  14279. center: false,
  14280. fontSize: 14
  14281. }
  14282. };
  14283. exports.default = _default;
  14284. /***/ }),
  14285. /* 70 */
  14286. /*!*******************************************************************************************************************!*\
  14287. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/avatar.js ***!
  14288. \*******************************************************************************************************************/
  14289. /*! no static exports found */
  14290. /***/ (function(module, exports, __webpack_require__) {
  14291. "use strict";
  14292. Object.defineProperty(exports, "__esModule", {
  14293. value: true
  14294. });
  14295. exports.default = void 0;
  14296. /*
  14297. * @Author : LQ
  14298. * @Description :
  14299. * @version : 1.0
  14300. * @Date : 2021-08-20 16:44:21
  14301. * @LastAuthor : LQ
  14302. * @lastTime : 2021-08-20 16:49:22
  14303. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14304. */
  14305. var _default = {
  14306. // avatar 组件
  14307. avatar: {
  14308. src: '',
  14309. shape: 'circle',
  14310. size: 40,
  14311. mode: 'scaleToFill',
  14312. text: '',
  14313. bgColor: '#c0c4cc',
  14314. color: '#ffffff',
  14315. fontSize: 18,
  14316. icon: '',
  14317. mpAvatar: false,
  14318. randomBgColor: false,
  14319. defaultUrl: '',
  14320. colorIndex: '',
  14321. name: ''
  14322. }
  14323. };
  14324. exports.default = _default;
  14325. /***/ }),
  14326. /* 71 */
  14327. /*!************************************************************************************************************************!*\
  14328. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14329. \************************************************************************************************************************/
  14330. /*! no static exports found */
  14331. /***/ (function(module, exports, __webpack_require__) {
  14332. "use strict";
  14333. Object.defineProperty(exports, "__esModule", {
  14334. value: true
  14335. });
  14336. exports.default = void 0;
  14337. /*
  14338. * @Author : LQ
  14339. * @Description :
  14340. * @version : 1.0
  14341. * @Date : 2021-08-20 16:44:21
  14342. * @LastAuthor : LQ
  14343. * @lastTime : 2021-08-20 16:49:55
  14344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14345. */
  14346. var _default = {
  14347. // avatarGroup 组件
  14348. avatarGroup: {
  14349. urls: function urls() {
  14350. return [];
  14351. },
  14352. maxCount: 5,
  14353. shape: 'circle',
  14354. mode: 'scaleToFill',
  14355. showMore: true,
  14356. size: 40,
  14357. keyName: '',
  14358. gap: 0.5,
  14359. extraValue: 0
  14360. }
  14361. };
  14362. exports.default = _default;
  14363. /***/ }),
  14364. /* 72 */
  14365. /*!********************************************************************************************************************!*\
  14366. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/backtop.js ***!
  14367. \********************************************************************************************************************/
  14368. /*! no static exports found */
  14369. /***/ (function(module, exports, __webpack_require__) {
  14370. "use strict";
  14371. Object.defineProperty(exports, "__esModule", {
  14372. value: true
  14373. });
  14374. exports.default = void 0;
  14375. /*
  14376. * @Author : LQ
  14377. * @Description :
  14378. * @version : 1.0
  14379. * @Date : 2021-08-20 16:44:21
  14380. * @LastAuthor : LQ
  14381. * @lastTime : 2021-08-20 16:50:18
  14382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14383. */
  14384. var _default = {
  14385. // backtop组件
  14386. backtop: {
  14387. mode: 'circle',
  14388. icon: 'arrow-upward',
  14389. text: '',
  14390. duration: 100,
  14391. scrollTop: 0,
  14392. top: 400,
  14393. bottom: 100,
  14394. right: 20,
  14395. zIndex: 9,
  14396. iconStyle: function iconStyle() {
  14397. return {
  14398. color: '#909399',
  14399. fontSize: '19px'
  14400. };
  14401. }
  14402. }
  14403. };
  14404. exports.default = _default;
  14405. /***/ }),
  14406. /* 73 */
  14407. /*!******************************************************************************************************************!*\
  14408. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/badge.js ***!
  14409. \******************************************************************************************************************/
  14410. /*! no static exports found */
  14411. /***/ (function(module, exports, __webpack_require__) {
  14412. "use strict";
  14413. Object.defineProperty(exports, "__esModule", {
  14414. value: true
  14415. });
  14416. exports.default = void 0;
  14417. /*
  14418. * @Author : LQ
  14419. * @Description :
  14420. * @version : 1.0
  14421. * @Date : 2021-08-20 16:44:21
  14422. * @LastAuthor : LQ
  14423. * @lastTime : 2021-08-23 19:51:50
  14424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14425. */
  14426. var _default = {
  14427. // 徽标数组件
  14428. badge: {
  14429. isDot: false,
  14430. value: '',
  14431. show: true,
  14432. max: 999,
  14433. type: 'error',
  14434. showZero: false,
  14435. bgColor: null,
  14436. color: null,
  14437. shape: 'circle',
  14438. numberType: 'overflow',
  14439. offset: function offset() {
  14440. return [];
  14441. },
  14442. inverted: false,
  14443. absolute: false
  14444. }
  14445. };
  14446. exports.default = _default;
  14447. /***/ }),
  14448. /* 74 */
  14449. /*!*******************************************************************************************************************!*\
  14450. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/button.js ***!
  14451. \*******************************************************************************************************************/
  14452. /*! no static exports found */
  14453. /***/ (function(module, exports, __webpack_require__) {
  14454. "use strict";
  14455. Object.defineProperty(exports, "__esModule", {
  14456. value: true
  14457. });
  14458. exports.default = void 0;
  14459. /*
  14460. * @Author : LQ
  14461. * @Description :
  14462. * @version : 1.0
  14463. * @Date : 2021-08-20 16:44:21
  14464. * @LastAuthor : LQ
  14465. * @lastTime : 2021-08-20 16:51:27
  14466. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14467. */
  14468. var _default = {
  14469. // button组件
  14470. button: {
  14471. hairline: false,
  14472. type: 'info',
  14473. size: 'normal',
  14474. shape: 'square',
  14475. plain: false,
  14476. disabled: false,
  14477. loading: false,
  14478. loadingText: '',
  14479. loadingMode: 'spinner',
  14480. loadingSize: 15,
  14481. openType: '',
  14482. formType: '',
  14483. appParameter: '',
  14484. hoverStopPropagation: true,
  14485. lang: 'en',
  14486. sessionFrom: '',
  14487. sendMessageTitle: '',
  14488. sendMessagePath: '',
  14489. sendMessageImg: '',
  14490. showMessageCard: false,
  14491. dataName: '',
  14492. throttleTime: 0,
  14493. hoverStartTime: 0,
  14494. hoverStayTime: 200,
  14495. text: '',
  14496. icon: '',
  14497. iconColor: '',
  14498. color: ''
  14499. }
  14500. };
  14501. exports.default = _default;
  14502. /***/ }),
  14503. /* 75 */
  14504. /*!*********************************************************************************************************************!*\
  14505. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/calendar.js ***!
  14506. \*********************************************************************************************************************/
  14507. /*! no static exports found */
  14508. /***/ (function(module, exports, __webpack_require__) {
  14509. "use strict";
  14510. Object.defineProperty(exports, "__esModule", {
  14511. value: true
  14512. });
  14513. exports.default = void 0;
  14514. /*
  14515. * @Author : LQ
  14516. * @Description :
  14517. * @version : 1.0
  14518. * @Date : 2021-08-20 16:44:21
  14519. * @LastAuthor : LQ
  14520. * @lastTime : 2021-08-20 16:52:43
  14521. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14522. */
  14523. var _default = {
  14524. // calendar 组件
  14525. calendar: {
  14526. title: '日期选择',
  14527. showTitle: true,
  14528. showSubtitle: true,
  14529. mode: 'single',
  14530. startText: '开始',
  14531. endText: '结束',
  14532. customList: function customList() {
  14533. return [];
  14534. },
  14535. color: '#3c9cff',
  14536. minDate: 0,
  14537. maxDate: 0,
  14538. defaultDate: null,
  14539. maxCount: Number.MAX_SAFE_INTEGER,
  14540. // Infinity
  14541. rowHeight: 56,
  14542. formatter: null,
  14543. showLunar: false,
  14544. showMark: true,
  14545. confirmText: '确定',
  14546. confirmDisabledText: '确定',
  14547. show: false,
  14548. closeOnClickOverlay: false,
  14549. readonly: false,
  14550. showConfirm: true,
  14551. maxRange: Number.MAX_SAFE_INTEGER,
  14552. // Infinity
  14553. rangePrompt: '',
  14554. showRangePrompt: true,
  14555. allowSameDay: false,
  14556. round: 0,
  14557. monthNum: 3
  14558. }
  14559. };
  14560. exports.default = _default;
  14561. /***/ }),
  14562. /* 76 */
  14563. /*!************************************************************************************************************************!*\
  14564. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14565. \************************************************************************************************************************/
  14566. /*! no static exports found */
  14567. /***/ (function(module, exports, __webpack_require__) {
  14568. "use strict";
  14569. Object.defineProperty(exports, "__esModule", {
  14570. value: true
  14571. });
  14572. exports.default = void 0;
  14573. /*
  14574. * @Author : LQ
  14575. * @Description :
  14576. * @version : 1.0
  14577. * @Date : 2021-08-20 16:44:21
  14578. * @LastAuthor : LQ
  14579. * @lastTime : 2021-08-20 16:53:20
  14580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14581. */
  14582. var _default = {
  14583. // 车牌号键盘
  14584. carKeyboard: {
  14585. random: false
  14586. }
  14587. };
  14588. exports.default = _default;
  14589. /***/ }),
  14590. /* 77 */
  14591. /*!*****************************************************************************************************************!*\
  14592. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/cell.js ***!
  14593. \*****************************************************************************************************************/
  14594. /*! no static exports found */
  14595. /***/ (function(module, exports, __webpack_require__) {
  14596. "use strict";
  14597. Object.defineProperty(exports, "__esModule", {
  14598. value: true
  14599. });
  14600. exports.default = void 0;
  14601. /*
  14602. * @Author : LQ
  14603. * @Description :
  14604. * @version : 1.0
  14605. * @Date : 2021-08-20 16:44:21
  14606. * @LastAuthor : LQ
  14607. * @lastTime : 2021-08-23 20:53:09
  14608. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14609. */
  14610. var _default = {
  14611. // cell组件的props
  14612. cell: {
  14613. customClass: '',
  14614. title: '',
  14615. label: '',
  14616. value: '',
  14617. icon: '',
  14618. disabled: false,
  14619. border: true,
  14620. center: false,
  14621. url: '',
  14622. linkType: 'navigateTo',
  14623. clickable: false,
  14624. isLink: false,
  14625. required: false,
  14626. arrowDirection: '',
  14627. iconStyle: {},
  14628. rightIconStyle: {},
  14629. rightIcon: 'arrow-right',
  14630. titleStyle: {},
  14631. size: '',
  14632. stop: true,
  14633. name: ''
  14634. }
  14635. };
  14636. exports.default = _default;
  14637. /***/ }),
  14638. /* 78 */
  14639. /*!**********************************************************************************************************************!*\
  14640. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14641. \**********************************************************************************************************************/
  14642. /*! no static exports found */
  14643. /***/ (function(module, exports, __webpack_require__) {
  14644. "use strict";
  14645. Object.defineProperty(exports, "__esModule", {
  14646. value: true
  14647. });
  14648. exports.default = void 0;
  14649. /*
  14650. * @Author : LQ
  14651. * @Description :
  14652. * @version : 1.0
  14653. * @Date : 2021-08-20 16:44:21
  14654. * @LastAuthor : LQ
  14655. * @lastTime : 2021-08-20 16:54:16
  14656. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14657. */
  14658. var _default = {
  14659. // cell-group组件的props
  14660. cellGroup: {
  14661. title: '',
  14662. border: true,
  14663. customStyle: {}
  14664. }
  14665. };
  14666. exports.default = _default;
  14667. /***/ }),
  14668. /* 79 */
  14669. /*!*********************************************************************************************************************!*\
  14670. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/checkbox.js ***!
  14671. \*********************************************************************************************************************/
  14672. /*! no static exports found */
  14673. /***/ (function(module, exports, __webpack_require__) {
  14674. "use strict";
  14675. Object.defineProperty(exports, "__esModule", {
  14676. value: true
  14677. });
  14678. exports.default = void 0;
  14679. /*
  14680. * @Author : LQ
  14681. * @Description :
  14682. * @version : 1.0
  14683. * @Date : 2021-08-20 16:44:21
  14684. * @LastAuthor : LQ
  14685. * @lastTime : 2021-08-23 21:06:59
  14686. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14687. */
  14688. var _default = {
  14689. // checkbox组件
  14690. checkbox: {
  14691. name: '',
  14692. shape: '',
  14693. size: '',
  14694. checkbox: false,
  14695. disabled: '',
  14696. activeColor: '',
  14697. inactiveColor: '',
  14698. iconSize: '',
  14699. iconColor: '',
  14700. label: '',
  14701. labelSize: '',
  14702. labelColor: '',
  14703. labelDisabled: ''
  14704. }
  14705. };
  14706. exports.default = _default;
  14707. /***/ }),
  14708. /* 80 */
  14709. /*!**************************************************************************************************************************!*\
  14710. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14711. \**************************************************************************************************************************/
  14712. /*! no static exports found */
  14713. /***/ (function(module, exports, __webpack_require__) {
  14714. "use strict";
  14715. Object.defineProperty(exports, "__esModule", {
  14716. value: true
  14717. });
  14718. exports.default = void 0;
  14719. /*
  14720. * @Author : LQ
  14721. * @Description :
  14722. * @version : 1.0
  14723. * @Date : 2021-08-20 16:44:21
  14724. * @LastAuthor : LQ
  14725. * @lastTime : 2021-08-20 16:54:47
  14726. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14727. */
  14728. var _default = {
  14729. // checkbox-group组件
  14730. checkboxGroup: {
  14731. name: '',
  14732. value: function value() {
  14733. return [];
  14734. },
  14735. shape: 'square',
  14736. disabled: false,
  14737. activeColor: '#2979ff',
  14738. inactiveColor: '#c8c9cc',
  14739. size: 18,
  14740. placement: 'row',
  14741. labelSize: 14,
  14742. labelColor: '#303133',
  14743. labelDisabled: false,
  14744. iconColor: '#ffffff',
  14745. iconSize: 12,
  14746. iconPlacement: 'left',
  14747. borderBottom: false
  14748. }
  14749. };
  14750. exports.default = _default;
  14751. /***/ }),
  14752. /* 81 */
  14753. /*!***************************************************************************************************************************!*\
  14754. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14755. \***************************************************************************************************************************/
  14756. /*! no static exports found */
  14757. /***/ (function(module, exports, __webpack_require__) {
  14758. "use strict";
  14759. Object.defineProperty(exports, "__esModule", {
  14760. value: true
  14761. });
  14762. exports.default = void 0;
  14763. /*
  14764. * @Author : LQ
  14765. * @Description :
  14766. * @version : 1.0
  14767. * @Date : 2021-08-20 16:44:21
  14768. * @LastAuthor : LQ
  14769. * @lastTime : 2021-08-20 16:55:02
  14770. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14771. */
  14772. var _default = {
  14773. // circleProgress 组件
  14774. circleProgress: {
  14775. percentage: 30
  14776. }
  14777. };
  14778. exports.default = _default;
  14779. /***/ }),
  14780. /* 82 */
  14781. /*!*****************************************************************************************************************!*\
  14782. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/code.js ***!
  14783. \*****************************************************************************************************************/
  14784. /*! no static exports found */
  14785. /***/ (function(module, exports, __webpack_require__) {
  14786. "use strict";
  14787. Object.defineProperty(exports, "__esModule", {
  14788. value: true
  14789. });
  14790. exports.default = void 0;
  14791. /*
  14792. * @Author : LQ
  14793. * @Description :
  14794. * @version : 1.0
  14795. * @Date : 2021-08-20 16:44:21
  14796. * @LastAuthor : LQ
  14797. * @lastTime : 2021-08-20 16:55:27
  14798. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14799. */
  14800. var _default = {
  14801. // code 组件
  14802. code: {
  14803. seconds: 60,
  14804. startText: '获取验证码',
  14805. changeText: 'X秒重新获取',
  14806. endText: '重新获取',
  14807. keepRunning: false,
  14808. uniqueKey: ''
  14809. }
  14810. };
  14811. exports.default = _default;
  14812. /***/ }),
  14813. /* 83 */
  14814. /*!**********************************************************************************************************************!*\
  14815. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/codeInput.js ***!
  14816. \**********************************************************************************************************************/
  14817. /*! no static exports found */
  14818. /***/ (function(module, exports, __webpack_require__) {
  14819. "use strict";
  14820. Object.defineProperty(exports, "__esModule", {
  14821. value: true
  14822. });
  14823. exports.default = void 0;
  14824. /*
  14825. * @Author : LQ
  14826. * @Description :
  14827. * @version : 1.0
  14828. * @Date : 2021-08-20 16:44:21
  14829. * @LastAuthor : LQ
  14830. * @lastTime : 2021-08-20 16:55:58
  14831. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14832. */
  14833. var _default = {
  14834. // codeInput 组件
  14835. codeInput: {
  14836. adjustPosition: true,
  14837. maxlength: 6,
  14838. dot: false,
  14839. mode: 'box',
  14840. hairline: false,
  14841. space: 10,
  14842. value: '',
  14843. focus: false,
  14844. bold: false,
  14845. color: '#606266',
  14846. fontSize: 18,
  14847. size: 35,
  14848. disabledKeyboard: false,
  14849. borderColor: '#c9cacc',
  14850. disabledDot: true
  14851. }
  14852. };
  14853. exports.default = _default;
  14854. /***/ }),
  14855. /* 84 */
  14856. /*!****************************************************************************************************************!*\
  14857. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/col.js ***!
  14858. \****************************************************************************************************************/
  14859. /*! no static exports found */
  14860. /***/ (function(module, exports, __webpack_require__) {
  14861. "use strict";
  14862. Object.defineProperty(exports, "__esModule", {
  14863. value: true
  14864. });
  14865. exports.default = void 0;
  14866. /*
  14867. * @Author : LQ
  14868. * @Description :
  14869. * @version : 1.0
  14870. * @Date : 2021-08-20 16:44:21
  14871. * @LastAuthor : LQ
  14872. * @lastTime : 2021-08-20 16:56:12
  14873. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14874. */
  14875. var _default = {
  14876. // col 组件
  14877. col: {
  14878. span: 12,
  14879. offset: 0,
  14880. justify: 'start',
  14881. align: 'stretch',
  14882. textAlign: 'left'
  14883. }
  14884. };
  14885. exports.default = _default;
  14886. /***/ }),
  14887. /* 85 */
  14888. /*!*********************************************************************************************************************!*\
  14889. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/collapse.js ***!
  14890. \*********************************************************************************************************************/
  14891. /*! no static exports found */
  14892. /***/ (function(module, exports, __webpack_require__) {
  14893. "use strict";
  14894. Object.defineProperty(exports, "__esModule", {
  14895. value: true
  14896. });
  14897. exports.default = void 0;
  14898. /*
  14899. * @Author : LQ
  14900. * @Description :
  14901. * @version : 1.0
  14902. * @Date : 2021-08-20 16:44:21
  14903. * @LastAuthor : LQ
  14904. * @lastTime : 2021-08-20 16:56:30
  14905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14906. */
  14907. var _default = {
  14908. // collapse 组件
  14909. collapse: {
  14910. value: null,
  14911. accordion: false,
  14912. border: true
  14913. }
  14914. };
  14915. exports.default = _default;
  14916. /***/ }),
  14917. /* 86 */
  14918. /*!*************************************************************************************************************************!*\
  14919. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14920. \*************************************************************************************************************************/
  14921. /*! no static exports found */
  14922. /***/ (function(module, exports, __webpack_require__) {
  14923. "use strict";
  14924. Object.defineProperty(exports, "__esModule", {
  14925. value: true
  14926. });
  14927. exports.default = void 0;
  14928. /*
  14929. * @Author : LQ
  14930. * @Description :
  14931. * @version : 1.0
  14932. * @Date : 2021-08-20 16:44:21
  14933. * @LastAuthor : LQ
  14934. * @lastTime : 2021-08-20 16:56:42
  14935. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14936. */
  14937. var _default = {
  14938. // collapseItem 组件
  14939. collapseItem: {
  14940. title: '',
  14941. value: '',
  14942. label: '',
  14943. disabled: false,
  14944. isLink: true,
  14945. clickable: true,
  14946. border: true,
  14947. align: 'left',
  14948. name: '',
  14949. icon: '',
  14950. duration: 300
  14951. }
  14952. };
  14953. exports.default = _default;
  14954. /***/ }),
  14955. /* 87 */
  14956. /*!*************************************************************************************************************************!*\
  14957. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14958. \*************************************************************************************************************************/
  14959. /*! no static exports found */
  14960. /***/ (function(module, exports, __webpack_require__) {
  14961. "use strict";
  14962. Object.defineProperty(exports, "__esModule", {
  14963. value: true
  14964. });
  14965. exports.default = void 0;
  14966. /*
  14967. * @Author : LQ
  14968. * @Description :
  14969. * @version : 1.0
  14970. * @Date : 2021-08-20 16:44:21
  14971. * @LastAuthor : LQ
  14972. * @lastTime : 2021-08-20 16:57:16
  14973. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14974. */
  14975. var _default = {
  14976. // columnNotice 组件
  14977. columnNotice: {
  14978. text: '',
  14979. icon: 'volume',
  14980. mode: '',
  14981. color: '#f9ae3d',
  14982. bgColor: '#fdf6ec',
  14983. fontSize: 14,
  14984. speed: 80,
  14985. step: false,
  14986. duration: 1500,
  14987. disableTouch: true
  14988. }
  14989. };
  14990. exports.default = _default;
  14991. /***/ }),
  14992. /* 88 */
  14993. /*!**********************************************************************************************************************!*\
  14994. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/countDown.js ***!
  14995. \**********************************************************************************************************************/
  14996. /*! no static exports found */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. "use strict";
  14999. Object.defineProperty(exports, "__esModule", {
  15000. value: true
  15001. });
  15002. exports.default = void 0;
  15003. /*
  15004. * @Author : LQ
  15005. * @Description :
  15006. * @version : 1.0
  15007. * @Date : 2021-08-20 16:44:21
  15008. * @LastAuthor : LQ
  15009. * @lastTime : 2021-08-20 17:11:29
  15010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15011. */
  15012. var _default = {
  15013. // u-count-down 计时器组件
  15014. countDown: {
  15015. time: 0,
  15016. format: 'HH:mm:ss',
  15017. autoStart: true,
  15018. millisecond: false
  15019. }
  15020. };
  15021. exports.default = _default;
  15022. /***/ }),
  15023. /* 89 */
  15024. /*!********************************************************************************************************************!*\
  15025. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/countTo.js ***!
  15026. \********************************************************************************************************************/
  15027. /*! no static exports found */
  15028. /***/ (function(module, exports, __webpack_require__) {
  15029. "use strict";
  15030. Object.defineProperty(exports, "__esModule", {
  15031. value: true
  15032. });
  15033. exports.default = void 0;
  15034. /*
  15035. * @Author : LQ
  15036. * @Description :
  15037. * @version : 1.0
  15038. * @Date : 2021-08-20 16:44:21
  15039. * @LastAuthor : LQ
  15040. * @lastTime : 2021-08-20 16:57:32
  15041. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15042. */
  15043. var _default = {
  15044. // countTo 组件
  15045. countTo: {
  15046. startVal: 0,
  15047. endVal: 0,
  15048. duration: 2000,
  15049. autoplay: true,
  15050. decimals: 0,
  15051. useEasing: true,
  15052. decimal: '.',
  15053. color: '#606266',
  15054. fontSize: 22,
  15055. bold: false,
  15056. separator: ''
  15057. }
  15058. };
  15059. exports.default = _default;
  15060. /***/ }),
  15061. /* 90 */
  15062. /*!***************************************************************************************************************************!*\
  15063. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15064. \***************************************************************************************************************************/
  15065. /*! no static exports found */
  15066. /***/ (function(module, exports, __webpack_require__) {
  15067. "use strict";
  15068. Object.defineProperty(exports, "__esModule", {
  15069. value: true
  15070. });
  15071. exports.default = void 0;
  15072. /*
  15073. * @Author : LQ
  15074. * @Description :
  15075. * @version : 1.0
  15076. * @Date : 2021-08-20 16:44:21
  15077. * @LastAuthor : LQ
  15078. * @lastTime : 2021-08-20 16:57:48
  15079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15080. */
  15081. var _default = {
  15082. // datetimePicker 组件
  15083. datetimePicker: {
  15084. show: false,
  15085. showToolbar: true,
  15086. value: '',
  15087. title: '',
  15088. mode: 'datetime',
  15089. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15090. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15091. minHour: 0,
  15092. maxHour: 23,
  15093. minMinute: 0,
  15094. maxMinute: 59,
  15095. filter: null,
  15096. formatter: null,
  15097. loading: false,
  15098. itemHeight: 44,
  15099. cancelText: '取消',
  15100. confirmText: '确认',
  15101. cancelColor: '#909193',
  15102. confirmColor: '#3c9cff',
  15103. visibleItemCount: 5,
  15104. closeOnClickOverlay: false,
  15105. immediateChange: false,
  15106. defaultIndex: function defaultIndex() {
  15107. return [];
  15108. }
  15109. }
  15110. };
  15111. exports.default = _default;
  15112. /***/ }),
  15113. /* 91 */
  15114. /*!********************************************************************************************************************!*\
  15115. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/divider.js ***!
  15116. \********************************************************************************************************************/
  15117. /*! no static exports found */
  15118. /***/ (function(module, exports, __webpack_require__) {
  15119. "use strict";
  15120. Object.defineProperty(exports, "__esModule", {
  15121. value: true
  15122. });
  15123. exports.default = void 0;
  15124. /*
  15125. * @Author : LQ
  15126. * @Description :
  15127. * @version : 1.0
  15128. * @Date : 2021-08-20 16:44:21
  15129. * @LastAuthor : LQ
  15130. * @lastTime : 2021-08-20 16:58:03
  15131. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15132. */
  15133. var _default = {
  15134. // divider组件
  15135. divider: {
  15136. dashed: false,
  15137. hairline: true,
  15138. dot: false,
  15139. textPosition: 'center',
  15140. text: '',
  15141. textSize: 14,
  15142. textColor: '#909399',
  15143. lineColor: '#dcdfe6'
  15144. }
  15145. };
  15146. exports.default = _default;
  15147. /***/ }),
  15148. /* 92 */
  15149. /*!******************************************************************************************************************!*\
  15150. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/empty.js ***!
  15151. \******************************************************************************************************************/
  15152. /*! no static exports found */
  15153. /***/ (function(module, exports, __webpack_require__) {
  15154. "use strict";
  15155. Object.defineProperty(exports, "__esModule", {
  15156. value: true
  15157. });
  15158. exports.default = void 0;
  15159. /*
  15160. * @Author : LQ
  15161. * @Description :
  15162. * @version : 1.0
  15163. * @Date : 2021-08-20 16:44:21
  15164. * @LastAuthor : LQ
  15165. * @lastTime : 2021-08-20 17:03:27
  15166. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15167. */
  15168. var _default = {
  15169. // empty组件
  15170. empty: {
  15171. icon: '',
  15172. text: '',
  15173. textColor: '#c0c4cc',
  15174. textSize: 14,
  15175. iconColor: '#c0c4cc',
  15176. iconSize: 90,
  15177. mode: 'data',
  15178. width: 160,
  15179. height: 160,
  15180. show: true,
  15181. marginTop: 0
  15182. }
  15183. };
  15184. exports.default = _default;
  15185. /***/ }),
  15186. /* 93 */
  15187. /*!*****************************************************************************************************************!*\
  15188. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/form.js ***!
  15189. \*****************************************************************************************************************/
  15190. /*! no static exports found */
  15191. /***/ (function(module, exports, __webpack_require__) {
  15192. "use strict";
  15193. Object.defineProperty(exports, "__esModule", {
  15194. value: true
  15195. });
  15196. exports.default = void 0;
  15197. /*
  15198. * @Author : LQ
  15199. * @Description :
  15200. * @version : 1.0
  15201. * @Date : 2021-08-20 16:44:21
  15202. * @LastAuthor : LQ
  15203. * @lastTime : 2021-08-20 17:03:49
  15204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15205. */
  15206. var _default = {
  15207. // form 组件
  15208. form: {
  15209. model: function model() {
  15210. return {};
  15211. },
  15212. rules: function rules() {
  15213. return {};
  15214. },
  15215. errorType: 'message',
  15216. borderBottom: true,
  15217. labelPosition: 'left',
  15218. labelWidth: 45,
  15219. labelAlign: 'left',
  15220. labelStyle: function labelStyle() {
  15221. return {};
  15222. }
  15223. }
  15224. };
  15225. exports.default = _default;
  15226. /***/ }),
  15227. /* 94 */
  15228. /*!*********************************************************************************************************************!*\
  15229. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/formItem.js ***!
  15230. \*********************************************************************************************************************/
  15231. /*! no static exports found */
  15232. /***/ (function(module, exports, __webpack_require__) {
  15233. "use strict";
  15234. Object.defineProperty(exports, "__esModule", {
  15235. value: true
  15236. });
  15237. exports.default = void 0;
  15238. /*
  15239. * @Author : LQ
  15240. * @Description :
  15241. * @version : 1.0
  15242. * @Date : 2021-08-20 16:44:21
  15243. * @LastAuthor : LQ
  15244. * @lastTime : 2021-08-20 17:04:32
  15245. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15246. */
  15247. var _default = {
  15248. // formItem 组件
  15249. formItem: {
  15250. label: '',
  15251. prop: '',
  15252. borderBottom: '',
  15253. labelPosition: '',
  15254. labelWidth: '',
  15255. rightIcon: '',
  15256. leftIcon: '',
  15257. required: false,
  15258. leftIconStyle: ''
  15259. }
  15260. };
  15261. exports.default = _default;
  15262. /***/ }),
  15263. /* 95 */
  15264. /*!****************************************************************************************************************!*\
  15265. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/gap.js ***!
  15266. \****************************************************************************************************************/
  15267. /*! no static exports found */
  15268. /***/ (function(module, exports, __webpack_require__) {
  15269. "use strict";
  15270. Object.defineProperty(exports, "__esModule", {
  15271. value: true
  15272. });
  15273. exports.default = void 0;
  15274. /*
  15275. * @Author : LQ
  15276. * @Description :
  15277. * @version : 1.0
  15278. * @Date : 2021-08-20 16:44:21
  15279. * @LastAuthor : LQ
  15280. * @lastTime : 2021-08-20 17:05:25
  15281. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15282. */
  15283. var _default = {
  15284. // gap组件
  15285. gap: {
  15286. bgColor: 'transparent',
  15287. height: 20,
  15288. marginTop: 0,
  15289. marginBottom: 0,
  15290. customStyle: {}
  15291. }
  15292. };
  15293. exports.default = _default;
  15294. /***/ }),
  15295. /* 96 */
  15296. /*!*****************************************************************************************************************!*\
  15297. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/grid.js ***!
  15298. \*****************************************************************************************************************/
  15299. /*! no static exports found */
  15300. /***/ (function(module, exports, __webpack_require__) {
  15301. "use strict";
  15302. Object.defineProperty(exports, "__esModule", {
  15303. value: true
  15304. });
  15305. exports.default = void 0;
  15306. /*
  15307. * @Author : LQ
  15308. * @Description :
  15309. * @version : 1.0
  15310. * @Date : 2021-08-20 16:44:21
  15311. * @LastAuthor : LQ
  15312. * @lastTime : 2021-08-20 17:05:57
  15313. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15314. */
  15315. var _default = {
  15316. // grid组件
  15317. grid: {
  15318. col: 3,
  15319. border: false,
  15320. align: 'left'
  15321. }
  15322. };
  15323. exports.default = _default;
  15324. /***/ }),
  15325. /* 97 */
  15326. /*!*********************************************************************************************************************!*\
  15327. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/gridItem.js ***!
  15328. \*********************************************************************************************************************/
  15329. /*! no static exports found */
  15330. /***/ (function(module, exports, __webpack_require__) {
  15331. "use strict";
  15332. Object.defineProperty(exports, "__esModule", {
  15333. value: true
  15334. });
  15335. exports.default = void 0;
  15336. /*
  15337. * @Author : LQ
  15338. * @Description :
  15339. * @version : 1.0
  15340. * @Date : 2021-08-20 16:44:21
  15341. * @LastAuthor : LQ
  15342. * @lastTime : 2021-08-20 17:06:13
  15343. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15344. */
  15345. var _default = {
  15346. // grid-item组件
  15347. gridItem: {
  15348. name: null,
  15349. bgColor: 'transparent'
  15350. }
  15351. };
  15352. exports.default = _default;
  15353. /***/ }),
  15354. /* 98 */
  15355. /*!*****************************************************************************************************************!*\
  15356. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/icon.js ***!
  15357. \*****************************************************************************************************************/
  15358. /*! no static exports found */
  15359. /***/ (function(module, exports, __webpack_require__) {
  15360. "use strict";
  15361. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15362. Object.defineProperty(exports, "__esModule", {
  15363. value: true
  15364. });
  15365. exports.default = void 0;
  15366. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15367. /*
  15368. * @Author : LQ
  15369. * @Description :
  15370. * @version : 1.0
  15371. * @Date : 2021-08-20 16:44:21
  15372. * @LastAuthor : LQ
  15373. * @lastTime : 2021-08-20 18:00:14
  15374. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15375. */
  15376. var color = _config.default.color;
  15377. var _default = {
  15378. // icon组件
  15379. icon: {
  15380. name: '',
  15381. color: color['u-content-color'],
  15382. size: '16px',
  15383. bold: false,
  15384. index: '',
  15385. hoverClass: '',
  15386. customPrefix: 'uicon',
  15387. label: '',
  15388. labelPos: 'right',
  15389. labelSize: '15px',
  15390. labelColor: color['u-content-color'],
  15391. space: '3px',
  15392. imgMode: '',
  15393. width: '',
  15394. height: '',
  15395. top: 0,
  15396. stop: false
  15397. }
  15398. };
  15399. exports.default = _default;
  15400. /***/ }),
  15401. /* 99 */
  15402. /*!******************************************************************************************************************!*\
  15403. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/image.js ***!
  15404. \******************************************************************************************************************/
  15405. /*! no static exports found */
  15406. /***/ (function(module, exports, __webpack_require__) {
  15407. "use strict";
  15408. Object.defineProperty(exports, "__esModule", {
  15409. value: true
  15410. });
  15411. exports.default = void 0;
  15412. /*
  15413. * @Author : LQ
  15414. * @Description :
  15415. * @version : 1.0
  15416. * @Date : 2021-08-20 16:44:21
  15417. * @LastAuthor : LQ
  15418. * @lastTime : 2021-08-20 17:01:51
  15419. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15420. */
  15421. var _default = {
  15422. // image组件
  15423. image: {
  15424. src: '',
  15425. mode: 'aspectFill',
  15426. width: '300',
  15427. height: '225',
  15428. shape: 'square',
  15429. radius: 0,
  15430. lazyLoad: true,
  15431. showMenuByLongpress: true,
  15432. loadingIcon: 'photo',
  15433. errorIcon: 'error-circle',
  15434. showLoading: true,
  15435. showError: true,
  15436. fade: true,
  15437. webp: false,
  15438. duration: 500,
  15439. bgColor: '#f3f4f6'
  15440. }
  15441. };
  15442. exports.default = _default;
  15443. /***/ }),
  15444. /* 100 */
  15445. /*!************************************************************************************************************************!*\
  15446. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15447. \************************************************************************************************************************/
  15448. /*! no static exports found */
  15449. /***/ (function(module, exports, __webpack_require__) {
  15450. "use strict";
  15451. Object.defineProperty(exports, "__esModule", {
  15452. value: true
  15453. });
  15454. exports.default = void 0;
  15455. /*
  15456. * @Author : LQ
  15457. * @Description :
  15458. * @version : 1.0
  15459. * @Date : 2021-08-20 16:44:21
  15460. * @LastAuthor : LQ
  15461. * @lastTime : 2021-08-20 17:13:15
  15462. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15463. */
  15464. var _default = {
  15465. // indexAnchor 组件
  15466. indexAnchor: {
  15467. text: '',
  15468. color: '#606266',
  15469. size: 14,
  15470. bgColor: '#dedede',
  15471. height: 32
  15472. }
  15473. };
  15474. exports.default = _default;
  15475. /***/ }),
  15476. /* 101 */
  15477. /*!**********************************************************************************************************************!*\
  15478. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/indexList.js ***!
  15479. \**********************************************************************************************************************/
  15480. /*! no static exports found */
  15481. /***/ (function(module, exports, __webpack_require__) {
  15482. "use strict";
  15483. Object.defineProperty(exports, "__esModule", {
  15484. value: true
  15485. });
  15486. exports.default = void 0;
  15487. /*
  15488. * @Author : LQ
  15489. * @Description :
  15490. * @version : 1.0
  15491. * @Date : 2021-08-20 16:44:21
  15492. * @LastAuthor : LQ
  15493. * @lastTime : 2021-08-20 17:13:35
  15494. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15495. */
  15496. var _default = {
  15497. // indexList 组件
  15498. indexList: {
  15499. inactiveColor: '#606266',
  15500. activeColor: '#5677fc',
  15501. indexList: function indexList() {
  15502. return [];
  15503. },
  15504. sticky: true,
  15505. customNavHeight: 0
  15506. }
  15507. };
  15508. exports.default = _default;
  15509. /***/ }),
  15510. /* 102 */
  15511. /*!******************************************************************************************************************!*\
  15512. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/input.js ***!
  15513. \******************************************************************************************************************/
  15514. /*! no static exports found */
  15515. /***/ (function(module, exports, __webpack_require__) {
  15516. "use strict";
  15517. Object.defineProperty(exports, "__esModule", {
  15518. value: true
  15519. });
  15520. exports.default = void 0;
  15521. /*
  15522. * @Author : LQ
  15523. * @Description :
  15524. * @version : 1.0
  15525. * @Date : 2021-08-20 16:44:21
  15526. * @LastAuthor : LQ
  15527. * @lastTime : 2021-08-20 17:13:55
  15528. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15529. */
  15530. var _default = {
  15531. // index 组件
  15532. input: {
  15533. value: '',
  15534. type: 'text',
  15535. fixed: false,
  15536. disabled: false,
  15537. disabledColor: '#f5f7fa',
  15538. clearable: false,
  15539. password: false,
  15540. maxlength: -1,
  15541. placeholder: null,
  15542. placeholderClass: 'input-placeholder',
  15543. placeholderStyle: 'color: #c0c4cc',
  15544. showWordLimit: false,
  15545. confirmType: 'done',
  15546. confirmHold: false,
  15547. holdKeyboard: false,
  15548. focus: false,
  15549. autoBlur: false,
  15550. disableDefaultPadding: false,
  15551. cursor: -1,
  15552. cursorSpacing: 30,
  15553. selectionStart: -1,
  15554. selectionEnd: -1,
  15555. adjustPosition: true,
  15556. inputAlign: 'left',
  15557. fontSize: '15px',
  15558. color: '#303133',
  15559. prefixIcon: '',
  15560. prefixIconStyle: '',
  15561. suffixIcon: '',
  15562. suffixIconStyle: '',
  15563. border: 'surround',
  15564. readonly: false,
  15565. shape: 'square',
  15566. formatter: null
  15567. }
  15568. };
  15569. exports.default = _default;
  15570. /***/ }),
  15571. /* 103 */
  15572. /*!*********************************************************************************************************************!*\
  15573. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/keyboard.js ***!
  15574. \*********************************************************************************************************************/
  15575. /*! no static exports found */
  15576. /***/ (function(module, exports, __webpack_require__) {
  15577. "use strict";
  15578. Object.defineProperty(exports, "__esModule", {
  15579. value: true
  15580. });
  15581. exports.default = void 0;
  15582. /*
  15583. * @Author : LQ
  15584. * @Description :
  15585. * @version : 1.0
  15586. * @Date : 2021-08-20 16:44:21
  15587. * @LastAuthor : LQ
  15588. * @lastTime : 2021-08-20 17:07:49
  15589. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15590. */
  15591. var _default = {
  15592. // 键盘组件
  15593. keyboard: {
  15594. mode: 'number',
  15595. dotDisabled: false,
  15596. tooltip: true,
  15597. showTips: true,
  15598. tips: '',
  15599. showCancel: true,
  15600. showConfirm: true,
  15601. random: false,
  15602. safeAreaInsetBottom: true,
  15603. closeOnClickOverlay: true,
  15604. show: false,
  15605. overlay: true,
  15606. zIndex: 10075,
  15607. cancelText: '取消',
  15608. confirmText: '确定',
  15609. autoChange: false
  15610. }
  15611. };
  15612. exports.default = _default;
  15613. /***/ }),
  15614. /* 104 */
  15615. /*!*****************************************************************************************************************!*\
  15616. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/line.js ***!
  15617. \*****************************************************************************************************************/
  15618. /*! no static exports found */
  15619. /***/ (function(module, exports, __webpack_require__) {
  15620. "use strict";
  15621. Object.defineProperty(exports, "__esModule", {
  15622. value: true
  15623. });
  15624. exports.default = void 0;
  15625. /*
  15626. * @Author : LQ
  15627. * @Description :
  15628. * @version : 1.0
  15629. * @Date : 2021-08-20 16:44:21
  15630. * @LastAuthor : LQ
  15631. * @lastTime : 2021-08-20 17:04:49
  15632. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15633. */
  15634. var _default = {
  15635. // line组件
  15636. line: {
  15637. color: '#d6d7d9',
  15638. length: '100%',
  15639. direction: 'row',
  15640. hairline: true,
  15641. margin: 0,
  15642. dashed: false
  15643. }
  15644. };
  15645. exports.default = _default;
  15646. /***/ }),
  15647. /* 105 */
  15648. /*!*************************************************************************************************************************!*\
  15649. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15650. \*************************************************************************************************************************/
  15651. /*! no static exports found */
  15652. /***/ (function(module, exports, __webpack_require__) {
  15653. "use strict";
  15654. Object.defineProperty(exports, "__esModule", {
  15655. value: true
  15656. });
  15657. exports.default = void 0;
  15658. /*
  15659. * @Author : LQ
  15660. * @Description :
  15661. * @version : 1.0
  15662. * @Date : 2021-08-20 16:44:21
  15663. * @LastAuthor : LQ
  15664. * @lastTime : 2021-08-20 17:14:11
  15665. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15666. */
  15667. var _default = {
  15668. // lineProgress 组件
  15669. lineProgress: {
  15670. activeColor: '#19be6b',
  15671. inactiveColor: '#ececec',
  15672. percentage: 0,
  15673. showText: true,
  15674. height: 12
  15675. }
  15676. };
  15677. exports.default = _default;
  15678. /***/ }),
  15679. /* 106 */
  15680. /*!*****************************************************************************************************************!*\
  15681. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/link.js ***!
  15682. \*****************************************************************************************************************/
  15683. /*! no static exports found */
  15684. /***/ (function(module, exports, __webpack_require__) {
  15685. "use strict";
  15686. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15687. Object.defineProperty(exports, "__esModule", {
  15688. value: true
  15689. });
  15690. exports.default = void 0;
  15691. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15692. /*
  15693. * @Author : LQ
  15694. * @Description :
  15695. * @version : 1.0
  15696. * @Date : 2021-08-20 16:44:21
  15697. * @LastAuthor : LQ
  15698. * @lastTime : 2021-08-20 17:45:36
  15699. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15700. */
  15701. var color = _config.default.color;
  15702. var _default = {
  15703. // link超链接组件props参数
  15704. link: {
  15705. color: color['u-primary'],
  15706. fontSize: 15,
  15707. underLine: false,
  15708. href: '',
  15709. mpTips: '链接已复制,请在浏览器打开',
  15710. lineColor: '',
  15711. text: ''
  15712. }
  15713. };
  15714. exports.default = _default;
  15715. /***/ }),
  15716. /* 107 */
  15717. /*!*****************************************************************************************************************!*\
  15718. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/list.js ***!
  15719. \*****************************************************************************************************************/
  15720. /*! no static exports found */
  15721. /***/ (function(module, exports, __webpack_require__) {
  15722. "use strict";
  15723. Object.defineProperty(exports, "__esModule", {
  15724. value: true
  15725. });
  15726. exports.default = void 0;
  15727. /*
  15728. * @Author : LQ
  15729. * @Description :
  15730. * @version : 1.0
  15731. * @Date : 2021-08-20 16:44:21
  15732. * @LastAuthor : LQ
  15733. * @lastTime : 2021-08-20 17:14:53
  15734. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15735. */
  15736. var _default = {
  15737. // list 组件
  15738. list: {
  15739. showScrollbar: false,
  15740. lowerThreshold: 50,
  15741. upperThreshold: 0,
  15742. scrollTop: 0,
  15743. offsetAccuracy: 10,
  15744. enableFlex: false,
  15745. pagingEnabled: false,
  15746. scrollable: true,
  15747. scrollIntoView: '',
  15748. scrollWithAnimation: false,
  15749. enableBackToTop: false,
  15750. height: 0,
  15751. width: 0,
  15752. preLoadScreen: 1
  15753. }
  15754. };
  15755. exports.default = _default;
  15756. /***/ }),
  15757. /* 108 */
  15758. /*!*********************************************************************************************************************!*\
  15759. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/listItem.js ***!
  15760. \*********************************************************************************************************************/
  15761. /*! no static exports found */
  15762. /***/ (function(module, exports, __webpack_require__) {
  15763. "use strict";
  15764. Object.defineProperty(exports, "__esModule", {
  15765. value: true
  15766. });
  15767. exports.default = void 0;
  15768. /*
  15769. * @Author : LQ
  15770. * @Description :
  15771. * @version : 1.0
  15772. * @Date : 2021-08-20 16:44:21
  15773. * @LastAuthor : LQ
  15774. * @lastTime : 2021-08-20 17:15:40
  15775. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15776. */
  15777. var _default = {
  15778. // listItem 组件
  15779. listItem: {
  15780. anchor: ''
  15781. }
  15782. };
  15783. exports.default = _default;
  15784. /***/ }),
  15785. /* 109 */
  15786. /*!************************************************************************************************************************!*\
  15787. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15788. \************************************************************************************************************************/
  15789. /*! no static exports found */
  15790. /***/ (function(module, exports, __webpack_require__) {
  15791. "use strict";
  15792. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15793. Object.defineProperty(exports, "__esModule", {
  15794. value: true
  15795. });
  15796. exports.default = void 0;
  15797. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15798. /*
  15799. * @Author : LQ
  15800. * @Description :
  15801. * @version : 1.0
  15802. * @Date : 2021-08-20 16:44:21
  15803. * @LastAuthor : LQ
  15804. * @lastTime : 2021-08-20 17:45:47
  15805. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15806. */
  15807. var color = _config.default.color;
  15808. var _default = {
  15809. // loading-icon加载中图标组件
  15810. loadingIcon: {
  15811. show: true,
  15812. color: color['u-tips-color'],
  15813. textColor: color['u-tips-color'],
  15814. vertical: false,
  15815. mode: 'spinner',
  15816. size: 24,
  15817. textSize: 15,
  15818. text: '',
  15819. timingFunction: 'ease-in-out',
  15820. duration: 1200,
  15821. inactiveColor: ''
  15822. }
  15823. };
  15824. exports.default = _default;
  15825. /***/ }),
  15826. /* 110 */
  15827. /*!************************************************************************************************************************!*\
  15828. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15829. \************************************************************************************************************************/
  15830. /*! no static exports found */
  15831. /***/ (function(module, exports, __webpack_require__) {
  15832. "use strict";
  15833. Object.defineProperty(exports, "__esModule", {
  15834. value: true
  15835. });
  15836. exports.default = void 0;
  15837. /*
  15838. * @Author : LQ
  15839. * @Description :
  15840. * @version : 1.0
  15841. * @Date : 2021-08-20 16:44:21
  15842. * @LastAuthor : LQ
  15843. * @lastTime : 2021-08-20 17:00:23
  15844. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15845. */
  15846. var _default = {
  15847. // loading-page组件
  15848. loadingPage: {
  15849. loadingText: '正在加载',
  15850. image: '',
  15851. loadingMode: 'circle',
  15852. loading: false,
  15853. bgColor: '#ffffff',
  15854. color: '#C8C8C8',
  15855. fontSize: 19,
  15856. iconSize: 28,
  15857. loadingColor: '#C8C8C8'
  15858. }
  15859. };
  15860. exports.default = _default;
  15861. /***/ }),
  15862. /* 111 */
  15863. /*!*********************************************************************************************************************!*\
  15864. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/loadmore.js ***!
  15865. \*********************************************************************************************************************/
  15866. /*! no static exports found */
  15867. /***/ (function(module, exports, __webpack_require__) {
  15868. "use strict";
  15869. Object.defineProperty(exports, "__esModule", {
  15870. value: true
  15871. });
  15872. exports.default = void 0;
  15873. /*
  15874. * @Author : LQ
  15875. * @Description :
  15876. * @version : 1.0
  15877. * @Date : 2021-08-20 16:44:21
  15878. * @LastAuthor : LQ
  15879. * @lastTime : 2021-08-20 17:15:26
  15880. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15881. */
  15882. var _default = {
  15883. // loadmore 组件
  15884. loadmore: {
  15885. status: 'loadmore',
  15886. bgColor: 'transparent',
  15887. icon: true,
  15888. fontSize: 14,
  15889. iconSize: 17,
  15890. color: '#606266',
  15891. loadingIcon: 'spinner',
  15892. loadmoreText: '加载更多',
  15893. loadingText: '正在加载...',
  15894. nomoreText: '没有更多了',
  15895. isDot: false,
  15896. iconColor: '#b7b7b7',
  15897. marginTop: 10,
  15898. marginBottom: 10,
  15899. height: 'auto',
  15900. line: false,
  15901. lineColor: '#E6E8EB',
  15902. dashed: false
  15903. }
  15904. };
  15905. exports.default = _default;
  15906. /***/ }),
  15907. /* 112 */
  15908. /*!******************************************************************************************************************!*\
  15909. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/modal.js ***!
  15910. \******************************************************************************************************************/
  15911. /*! no static exports found */
  15912. /***/ (function(module, exports, __webpack_require__) {
  15913. "use strict";
  15914. Object.defineProperty(exports, "__esModule", {
  15915. value: true
  15916. });
  15917. exports.default = void 0;
  15918. /*
  15919. * @Author : LQ
  15920. * @Description :
  15921. * @version : 1.0
  15922. * @Date : 2021-08-20 16:44:21
  15923. * @LastAuthor : LQ
  15924. * @lastTime : 2021-08-20 17:15:59
  15925. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15926. */
  15927. var _default = {
  15928. // modal 组件
  15929. modal: {
  15930. show: false,
  15931. title: '',
  15932. content: '',
  15933. confirmText: '确认',
  15934. cancelText: '取消',
  15935. showConfirmButton: true,
  15936. showCancelButton: false,
  15937. confirmColor: '#2979ff',
  15938. cancelColor: '#606266',
  15939. buttonReverse: false,
  15940. zoom: true,
  15941. asyncClose: false,
  15942. closeOnClickOverlay: false,
  15943. negativeTop: 0,
  15944. width: '650rpx',
  15945. confirmButtonShape: '',
  15946. duration: 400
  15947. }
  15948. };
  15949. exports.default = _default;
  15950. /***/ }),
  15951. /* 113 */
  15952. /*!*******************************************************************************************************************!*\
  15953. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/navbar.js ***!
  15954. \*******************************************************************************************************************/
  15955. /*! no static exports found */
  15956. /***/ (function(module, exports, __webpack_require__) {
  15957. "use strict";
  15958. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15959. Object.defineProperty(exports, "__esModule", {
  15960. value: true
  15961. });
  15962. exports.default = void 0;
  15963. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15964. /*
  15965. * @Author : LQ
  15966. * @Description :
  15967. * @version : 1.0
  15968. * @Date : 2021-08-20 16:44:21
  15969. * @LastAuthor : LQ
  15970. * @lastTime : 2021-08-20 17:16:18
  15971. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15972. */
  15973. var _default = {
  15974. // navbar 组件
  15975. navbar: {
  15976. safeAreaInsetTop: true,
  15977. placeholder: false,
  15978. fixed: true,
  15979. border: false,
  15980. leftIcon: 'arrow-left',
  15981. leftText: '',
  15982. rightText: '',
  15983. rightIcon: '',
  15984. title: '',
  15985. bgColor: '#ffffff',
  15986. titleWidth: '400rpx',
  15987. height: '44px',
  15988. leftIconSize: 20,
  15989. leftIconColor: _color.default.mainColor,
  15990. autoBack: false,
  15991. titleStyle: ''
  15992. }
  15993. };
  15994. exports.default = _default;
  15995. /***/ }),
  15996. /* 114 */
  15997. /*!************************************************************************************************************!*\
  15998. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/color.js ***!
  15999. \************************************************************************************************************/
  16000. /*! no static exports found */
  16001. /***/ (function(module, exports, __webpack_require__) {
  16002. "use strict";
  16003. Object.defineProperty(exports, "__esModule", {
  16004. value: true
  16005. });
  16006. exports.default = void 0;
  16007. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16008. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16009. var color = {
  16010. primary: '#3c9cff',
  16011. info: '#909399',
  16012. default: '#909399',
  16013. warning: '#f9ae3d',
  16014. error: '#f56c6c',
  16015. success: '#5ac725',
  16016. mainColor: '#303133',
  16017. contentColor: '#606266',
  16018. tipsColor: '#909399',
  16019. lightColor: '#c0c4cc',
  16020. borderColor: '#e4e7ed'
  16021. };
  16022. var _default = color;
  16023. exports.default = _default;
  16024. /***/ }),
  16025. /* 115 */
  16026. /*!**********************************************************************************************************************!*\
  16027. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16028. \**********************************************************************************************************************/
  16029. /*! no static exports found */
  16030. /***/ (function(module, exports, __webpack_require__) {
  16031. "use strict";
  16032. Object.defineProperty(exports, "__esModule", {
  16033. value: true
  16034. });
  16035. exports.default = void 0;
  16036. /*
  16037. * @Author : LQ
  16038. * @Description :
  16039. * @version : 1.0
  16040. * @Date : 2021-08-20 16:44:21
  16041. * @LastAuthor : LQ
  16042. * @lastTime : 2021-08-20 17:16:39
  16043. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16044. */
  16045. var _default = {
  16046. // noNetwork
  16047. noNetwork: {
  16048. tips: '哎呀,网络信号丢失',
  16049. zIndex: '',
  16050. 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'
  16051. }
  16052. };
  16053. exports.default = _default;
  16054. /***/ }),
  16055. /* 116 */
  16056. /*!**********************************************************************************************************************!*\
  16057. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16058. \**********************************************************************************************************************/
  16059. /*! no static exports found */
  16060. /***/ (function(module, exports, __webpack_require__) {
  16061. "use strict";
  16062. Object.defineProperty(exports, "__esModule", {
  16063. value: true
  16064. });
  16065. exports.default = void 0;
  16066. /*
  16067. * @Author : LQ
  16068. * @Description :
  16069. * @version : 1.0
  16070. * @Date : 2021-08-20 16:44:21
  16071. * @LastAuthor : LQ
  16072. * @lastTime : 2021-08-20 17:17:13
  16073. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16074. */
  16075. var _default = {
  16076. // noticeBar
  16077. noticeBar: {
  16078. text: function text() {
  16079. return [];
  16080. },
  16081. direction: 'row',
  16082. step: false,
  16083. icon: 'volume',
  16084. mode: '',
  16085. color: '#f9ae3d',
  16086. bgColor: '#fdf6ec',
  16087. speed: 80,
  16088. fontSize: 14,
  16089. duration: 2000,
  16090. disableTouch: true,
  16091. url: '',
  16092. linkType: 'navigateTo'
  16093. }
  16094. };
  16095. exports.default = _default;
  16096. /***/ }),
  16097. /* 117 */
  16098. /*!*******************************************************************************************************************!*\
  16099. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/notify.js ***!
  16100. \*******************************************************************************************************************/
  16101. /*! no static exports found */
  16102. /***/ (function(module, exports, __webpack_require__) {
  16103. "use strict";
  16104. Object.defineProperty(exports, "__esModule", {
  16105. value: true
  16106. });
  16107. exports.default = void 0;
  16108. /*
  16109. * @Author : LQ
  16110. * @Description :
  16111. * @version : 1.0
  16112. * @Date : 2021-08-20 16:44:21
  16113. * @LastAuthor : LQ
  16114. * @lastTime : 2021-08-20 17:10:21
  16115. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16116. */
  16117. var _default = {
  16118. // notify组件
  16119. notify: {
  16120. top: 0,
  16121. type: 'primary',
  16122. color: '#ffffff',
  16123. bgColor: '',
  16124. message: '',
  16125. duration: 3000,
  16126. fontSize: 15,
  16127. safeAreaInsetTop: false
  16128. }
  16129. };
  16130. exports.default = _default;
  16131. /***/ }),
  16132. /* 118 */
  16133. /*!**********************************************************************************************************************!*\
  16134. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/numberBox.js ***!
  16135. \**********************************************************************************************************************/
  16136. /*! no static exports found */
  16137. /***/ (function(module, exports, __webpack_require__) {
  16138. "use strict";
  16139. Object.defineProperty(exports, "__esModule", {
  16140. value: true
  16141. });
  16142. exports.default = void 0;
  16143. /*
  16144. * @Author : LQ
  16145. * @Description :
  16146. * @version : 1.0
  16147. * @Date : 2021-08-20 16:44:21
  16148. * @LastAuthor : LQ
  16149. * @lastTime : 2021-08-20 17:11:46
  16150. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16151. */
  16152. var _default = {
  16153. // 步进器组件
  16154. numberBox: {
  16155. name: '',
  16156. value: 0,
  16157. min: 1,
  16158. max: Number.MAX_SAFE_INTEGER,
  16159. step: 1,
  16160. integer: false,
  16161. disabled: false,
  16162. disabledInput: false,
  16163. asyncChange: false,
  16164. inputWidth: 35,
  16165. showMinus: true,
  16166. showPlus: true,
  16167. decimalLength: null,
  16168. longPress: true,
  16169. color: '#323233',
  16170. buttonSize: 30,
  16171. bgColor: '#EBECEE',
  16172. cursorSpacing: 100,
  16173. disableMinus: false,
  16174. disablePlus: false,
  16175. iconStyle: ''
  16176. }
  16177. };
  16178. exports.default = _default;
  16179. /***/ }),
  16180. /* 119 */
  16181. /*!***************************************************************************************************************************!*\
  16182. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16183. \***************************************************************************************************************************/
  16184. /*! no static exports found */
  16185. /***/ (function(module, exports, __webpack_require__) {
  16186. "use strict";
  16187. Object.defineProperty(exports, "__esModule", {
  16188. value: true
  16189. });
  16190. exports.default = void 0;
  16191. /*
  16192. * @Author : LQ
  16193. * @Description :
  16194. * @version : 1.0
  16195. * @Date : 2021-08-20 16:44:21
  16196. * @LastAuthor : LQ
  16197. * @lastTime : 2021-08-20 17:08:05
  16198. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16199. */
  16200. var _default = {
  16201. // 数字键盘
  16202. numberKeyboard: {
  16203. mode: 'number',
  16204. dotDisabled: false,
  16205. random: false
  16206. }
  16207. };
  16208. exports.default = _default;
  16209. /***/ }),
  16210. /* 120 */
  16211. /*!********************************************************************************************************************!*\
  16212. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/overlay.js ***!
  16213. \********************************************************************************************************************/
  16214. /*! no static exports found */
  16215. /***/ (function(module, exports, __webpack_require__) {
  16216. "use strict";
  16217. Object.defineProperty(exports, "__esModule", {
  16218. value: true
  16219. });
  16220. exports.default = void 0;
  16221. /*
  16222. * @Author : LQ
  16223. * @Description :
  16224. * @version : 1.0
  16225. * @Date : 2021-08-20 16:44:21
  16226. * @LastAuthor : LQ
  16227. * @lastTime : 2021-08-20 17:06:50
  16228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16229. */
  16230. var _default = {
  16231. // overlay组件
  16232. overlay: {
  16233. show: false,
  16234. zIndex: 10070,
  16235. duration: 300,
  16236. opacity: 0.5
  16237. }
  16238. };
  16239. exports.default = _default;
  16240. /***/ }),
  16241. /* 121 */
  16242. /*!******************************************************************************************************************!*\
  16243. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/parse.js ***!
  16244. \******************************************************************************************************************/
  16245. /*! no static exports found */
  16246. /***/ (function(module, exports, __webpack_require__) {
  16247. "use strict";
  16248. Object.defineProperty(exports, "__esModule", {
  16249. value: true
  16250. });
  16251. exports.default = void 0;
  16252. /*
  16253. * @Author : LQ
  16254. * @Description :
  16255. * @version : 1.0
  16256. * @Date : 2021-08-20 16:44:21
  16257. * @LastAuthor : LQ
  16258. * @lastTime : 2021-08-20 17:17:33
  16259. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16260. */
  16261. var _default = {
  16262. // parse
  16263. parse: {
  16264. copyLink: true,
  16265. errorImg: '',
  16266. lazyLoad: false,
  16267. loadingImg: '',
  16268. pauseVideo: true,
  16269. previewImg: true,
  16270. setTitle: true,
  16271. showImgMenu: true
  16272. }
  16273. };
  16274. exports.default = _default;
  16275. /***/ }),
  16276. /* 122 */
  16277. /*!*******************************************************************************************************************!*\
  16278. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/picker.js ***!
  16279. \*******************************************************************************************************************/
  16280. /*! no static exports found */
  16281. /***/ (function(module, exports, __webpack_require__) {
  16282. "use strict";
  16283. Object.defineProperty(exports, "__esModule", {
  16284. value: true
  16285. });
  16286. exports.default = void 0;
  16287. /*
  16288. * @Author : LQ
  16289. * @Description :
  16290. * @version : 1.0
  16291. * @Date : 2021-08-20 16:44:21
  16292. * @LastAuthor : LQ
  16293. * @lastTime : 2021-08-20 17:18:20
  16294. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16295. */
  16296. var _default = {
  16297. // picker
  16298. picker: {
  16299. show: false,
  16300. showToolbar: true,
  16301. title: '',
  16302. columns: function columns() {
  16303. return [];
  16304. },
  16305. loading: false,
  16306. itemHeight: 44,
  16307. cancelText: '取消',
  16308. confirmText: '确定',
  16309. cancelColor: '#909193',
  16310. confirmColor: '#3c9cff',
  16311. visibleItemCount: 5,
  16312. keyName: 'text',
  16313. closeOnClickOverlay: false,
  16314. defaultIndex: function defaultIndex() {
  16315. return [];
  16316. },
  16317. immediateChange: false
  16318. }
  16319. };
  16320. exports.default = _default;
  16321. /***/ }),
  16322. /* 123 */
  16323. /*!******************************************************************************************************************!*\
  16324. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/popup.js ***!
  16325. \******************************************************************************************************************/
  16326. /*! no static exports found */
  16327. /***/ (function(module, exports, __webpack_require__) {
  16328. "use strict";
  16329. Object.defineProperty(exports, "__esModule", {
  16330. value: true
  16331. });
  16332. exports.default = void 0;
  16333. /*
  16334. * @Author : LQ
  16335. * @Description :
  16336. * @version : 1.0
  16337. * @Date : 2021-08-20 16:44:21
  16338. * @LastAuthor : LQ
  16339. * @lastTime : 2021-08-20 17:06:33
  16340. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16341. */
  16342. var _default = {
  16343. // popup组件
  16344. popup: {
  16345. show: false,
  16346. overlay: true,
  16347. mode: 'bottom',
  16348. duration: 300,
  16349. closeable: false,
  16350. overlayStyle: function overlayStyle() {},
  16351. closeOnClickOverlay: true,
  16352. zIndex: 10075,
  16353. safeAreaInsetBottom: true,
  16354. safeAreaInsetTop: false,
  16355. closeIconPos: 'top-right',
  16356. round: 0,
  16357. zoom: true,
  16358. bgColor: '',
  16359. overlayOpacity: 0.5
  16360. }
  16361. };
  16362. exports.default = _default;
  16363. /***/ }),
  16364. /* 124 */
  16365. /*!******************************************************************************************************************!*\
  16366. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/radio.js ***!
  16367. \******************************************************************************************************************/
  16368. /*! no static exports found */
  16369. /***/ (function(module, exports, __webpack_require__) {
  16370. "use strict";
  16371. Object.defineProperty(exports, "__esModule", {
  16372. value: true
  16373. });
  16374. exports.default = void 0;
  16375. /*
  16376. * @Author : LQ
  16377. * @Description :
  16378. * @version : 1.0
  16379. * @Date : 2021-08-20 16:44:21
  16380. * @LastAuthor : LQ
  16381. * @lastTime : 2021-08-20 17:02:34
  16382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16383. */
  16384. var _default = {
  16385. // radio组件
  16386. radio: {
  16387. name: '',
  16388. shape: '',
  16389. disabled: '',
  16390. labelDisabled: '',
  16391. activeColor: '',
  16392. inactiveColor: '',
  16393. iconSize: '',
  16394. labelSize: '',
  16395. label: '',
  16396. labelColor: '',
  16397. size: '',
  16398. iconColor: '',
  16399. placement: ''
  16400. }
  16401. };
  16402. exports.default = _default;
  16403. /***/ }),
  16404. /* 125 */
  16405. /*!***********************************************************************************************************************!*\
  16406. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16407. \***********************************************************************************************************************/
  16408. /*! no static exports found */
  16409. /***/ (function(module, exports, __webpack_require__) {
  16410. "use strict";
  16411. Object.defineProperty(exports, "__esModule", {
  16412. value: true
  16413. });
  16414. exports.default = void 0;
  16415. /*
  16416. * @Author : LQ
  16417. * @Description :
  16418. * @version : 1.0
  16419. * @Date : 2021-08-20 16:44:21
  16420. * @LastAuthor : LQ
  16421. * @lastTime : 2021-08-20 17:03:12
  16422. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16423. */
  16424. var _default = {
  16425. // radio-group组件
  16426. radioGroup: {
  16427. value: '',
  16428. disabled: false,
  16429. shape: 'circle',
  16430. activeColor: '#2979ff',
  16431. inactiveColor: '#c8c9cc',
  16432. name: '',
  16433. size: 18,
  16434. placement: 'row',
  16435. label: '',
  16436. labelColor: '#303133',
  16437. labelSize: 14,
  16438. labelDisabled: false,
  16439. iconColor: '#ffffff',
  16440. iconSize: 12,
  16441. borderBottom: false,
  16442. iconPlacement: 'left'
  16443. }
  16444. };
  16445. exports.default = _default;
  16446. /***/ }),
  16447. /* 126 */
  16448. /*!*****************************************************************************************************************!*\
  16449. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/rate.js ***!
  16450. \*****************************************************************************************************************/
  16451. /*! no static exports found */
  16452. /***/ (function(module, exports, __webpack_require__) {
  16453. "use strict";
  16454. Object.defineProperty(exports, "__esModule", {
  16455. value: true
  16456. });
  16457. exports.default = void 0;
  16458. /*
  16459. * @Author : LQ
  16460. * @Description :
  16461. * @version : 1.0
  16462. * @Date : 2021-08-20 16:44:21
  16463. * @LastAuthor : LQ
  16464. * @lastTime : 2021-08-20 17:05:09
  16465. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16466. */
  16467. var _default = {
  16468. // rate组件
  16469. rate: {
  16470. value: 1,
  16471. count: 5,
  16472. disabled: false,
  16473. size: 18,
  16474. inactiveColor: '#b2b2b2',
  16475. activeColor: '#FA3534',
  16476. gutter: 4,
  16477. minCount: 1,
  16478. allowHalf: false,
  16479. activeIcon: 'star-fill',
  16480. inactiveIcon: 'star',
  16481. touchable: true
  16482. }
  16483. };
  16484. exports.default = _default;
  16485. /***/ }),
  16486. /* 127 */
  16487. /*!*********************************************************************************************************************!*\
  16488. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/readMore.js ***!
  16489. \*********************************************************************************************************************/
  16490. /*! no static exports found */
  16491. /***/ (function(module, exports, __webpack_require__) {
  16492. "use strict";
  16493. Object.defineProperty(exports, "__esModule", {
  16494. value: true
  16495. });
  16496. exports.default = void 0;
  16497. /*
  16498. * @Author : LQ
  16499. * @Description :
  16500. * @version : 1.0
  16501. * @Date : 2021-08-20 16:44:21
  16502. * @LastAuthor : LQ
  16503. * @lastTime : 2021-08-20 17:18:41
  16504. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16505. */
  16506. var _default = {
  16507. // readMore
  16508. readMore: {
  16509. showHeight: 400,
  16510. toggle: false,
  16511. closeText: '展开阅读全文',
  16512. openText: '收起',
  16513. color: '#2979ff',
  16514. fontSize: 14,
  16515. textIndent: '2em',
  16516. name: ''
  16517. }
  16518. };
  16519. exports.default = _default;
  16520. /***/ }),
  16521. /* 128 */
  16522. /*!****************************************************************************************************************!*\
  16523. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/row.js ***!
  16524. \****************************************************************************************************************/
  16525. /*! no static exports found */
  16526. /***/ (function(module, exports, __webpack_require__) {
  16527. "use strict";
  16528. Object.defineProperty(exports, "__esModule", {
  16529. value: true
  16530. });
  16531. exports.default = void 0;
  16532. /*
  16533. * @Author : LQ
  16534. * @Description :
  16535. * @version : 1.0
  16536. * @Date : 2021-08-20 16:44:21
  16537. * @LastAuthor : LQ
  16538. * @lastTime : 2021-08-20 17:18:58
  16539. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16540. */
  16541. var _default = {
  16542. // row
  16543. row: {
  16544. gutter: 0,
  16545. justify: 'start',
  16546. align: 'center'
  16547. }
  16548. };
  16549. exports.default = _default;
  16550. /***/ }),
  16551. /* 129 */
  16552. /*!**********************************************************************************************************************!*\
  16553. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16554. \**********************************************************************************************************************/
  16555. /*! no static exports found */
  16556. /***/ (function(module, exports, __webpack_require__) {
  16557. "use strict";
  16558. Object.defineProperty(exports, "__esModule", {
  16559. value: true
  16560. });
  16561. exports.default = void 0;
  16562. /*
  16563. * @Author : LQ
  16564. * @Description :
  16565. * @version : 1.0
  16566. * @Date : 2021-08-20 16:44:21
  16567. * @LastAuthor : LQ
  16568. * @lastTime : 2021-08-20 17:19:13
  16569. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16570. */
  16571. var _default = {
  16572. // rowNotice
  16573. rowNotice: {
  16574. text: '',
  16575. icon: 'volume',
  16576. mode: '',
  16577. color: '#f9ae3d',
  16578. bgColor: '#fdf6ec',
  16579. fontSize: 14,
  16580. speed: 80
  16581. }
  16582. };
  16583. exports.default = _default;
  16584. /***/ }),
  16585. /* 130 */
  16586. /*!***********************************************************************************************************************!*\
  16587. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/scrollList.js ***!
  16588. \***********************************************************************************************************************/
  16589. /*! no static exports found */
  16590. /***/ (function(module, exports, __webpack_require__) {
  16591. "use strict";
  16592. Object.defineProperty(exports, "__esModule", {
  16593. value: true
  16594. });
  16595. exports.default = void 0;
  16596. /*
  16597. * @Author : LQ
  16598. * @Description :
  16599. * @version : 1.0
  16600. * @Date : 2021-08-20 16:44:21
  16601. * @LastAuthor : LQ
  16602. * @lastTime : 2021-08-20 17:19:28
  16603. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16604. */
  16605. var _default = {
  16606. // scrollList
  16607. scrollList: {
  16608. indicatorWidth: 50,
  16609. indicatorBarWidth: 20,
  16610. indicator: true,
  16611. indicatorColor: '#f2f2f2',
  16612. indicatorActiveColor: '#3c9cff',
  16613. indicatorStyle: ''
  16614. }
  16615. };
  16616. exports.default = _default;
  16617. /***/ }),
  16618. /* 131 */
  16619. /*!*******************************************************************************************************************!*\
  16620. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/search.js ***!
  16621. \*******************************************************************************************************************/
  16622. /*! no static exports found */
  16623. /***/ (function(module, exports, __webpack_require__) {
  16624. "use strict";
  16625. Object.defineProperty(exports, "__esModule", {
  16626. value: true
  16627. });
  16628. exports.default = void 0;
  16629. /*
  16630. * @Author : LQ
  16631. * @Description :
  16632. * @version : 1.0
  16633. * @Date : 2021-08-20 16:44:21
  16634. * @LastAuthor : LQ
  16635. * @lastTime : 2021-08-20 17:19:45
  16636. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16637. */
  16638. var _default = {
  16639. // search
  16640. search: {
  16641. shape: 'round',
  16642. bgColor: '#f2f2f2',
  16643. placeholder: '请输入关键字',
  16644. clearabled: true,
  16645. focus: false,
  16646. showAction: true,
  16647. actionStyle: function actionStyle() {
  16648. return {};
  16649. },
  16650. actionText: '搜索',
  16651. inputAlign: 'left',
  16652. inputStyle: function inputStyle() {
  16653. return {};
  16654. },
  16655. disabled: false,
  16656. borderColor: 'transparent',
  16657. searchIconColor: '#909399',
  16658. searchIconSize: 22,
  16659. color: '#606266',
  16660. placeholderColor: '#909399',
  16661. searchIcon: 'search',
  16662. margin: '0',
  16663. animation: false,
  16664. value: '',
  16665. maxlength: '-1',
  16666. height: 32,
  16667. label: null
  16668. }
  16669. };
  16670. exports.default = _default;
  16671. /***/ }),
  16672. /* 132 */
  16673. /*!********************************************************************************************************************!*\
  16674. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/section.js ***!
  16675. \********************************************************************************************************************/
  16676. /*! no static exports found */
  16677. /***/ (function(module, exports, __webpack_require__) {
  16678. "use strict";
  16679. Object.defineProperty(exports, "__esModule", {
  16680. value: true
  16681. });
  16682. exports.default = void 0;
  16683. /*
  16684. * @Author : LQ
  16685. * @Description :
  16686. * @version : 1.0
  16687. * @Date : 2021-08-20 16:44:21
  16688. * @LastAuthor : LQ
  16689. * @lastTime : 2021-08-20 17:07:33
  16690. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16691. */
  16692. var _default = {
  16693. // u-section组件
  16694. section: {
  16695. title: '',
  16696. subTitle: '更多',
  16697. right: true,
  16698. fontSize: 15,
  16699. bold: true,
  16700. color: '#303133',
  16701. subColor: '#909399',
  16702. showLine: true,
  16703. lineColor: '',
  16704. arrow: true
  16705. }
  16706. };
  16707. exports.default = _default;
  16708. /***/ }),
  16709. /* 133 */
  16710. /*!*********************************************************************************************************************!*\
  16711. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/skeleton.js ***!
  16712. \*********************************************************************************************************************/
  16713. /*! no static exports found */
  16714. /***/ (function(module, exports, __webpack_require__) {
  16715. "use strict";
  16716. Object.defineProperty(exports, "__esModule", {
  16717. value: true
  16718. });
  16719. exports.default = void 0;
  16720. /*
  16721. * @Author : LQ
  16722. * @Description :
  16723. * @version : 1.0
  16724. * @Date : 2021-08-20 16:44:21
  16725. * @LastAuthor : LQ
  16726. * @lastTime : 2021-08-20 17:20:14
  16727. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16728. */
  16729. var _default = {
  16730. // skeleton
  16731. skeleton: {
  16732. loading: true,
  16733. animate: true,
  16734. rows: 0,
  16735. rowsWidth: '100%',
  16736. rowsHeight: 18,
  16737. title: true,
  16738. titleWidth: '50%',
  16739. titleHeight: 18,
  16740. avatar: false,
  16741. avatarSize: 32,
  16742. avatarShape: 'circle'
  16743. }
  16744. };
  16745. exports.default = _default;
  16746. /***/ }),
  16747. /* 134 */
  16748. /*!*******************************************************************************************************************!*\
  16749. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/slider.js ***!
  16750. \*******************************************************************************************************************/
  16751. /*! no static exports found */
  16752. /***/ (function(module, exports, __webpack_require__) {
  16753. "use strict";
  16754. Object.defineProperty(exports, "__esModule", {
  16755. value: true
  16756. });
  16757. exports.default = void 0;
  16758. /*
  16759. * @Author : LQ
  16760. * @Description :
  16761. * @version : 1.0
  16762. * @Date : 2021-08-20 16:44:21
  16763. * @LastAuthor : LQ
  16764. * @lastTime : 2021-08-20 17:08:25
  16765. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16766. */
  16767. var _default = {
  16768. // slider组件
  16769. slider: {
  16770. value: 0,
  16771. blockSize: 18,
  16772. min: 0,
  16773. max: 100,
  16774. step: 1,
  16775. activeColor: '#2979ff',
  16776. inactiveColor: '#c0c4cc',
  16777. blockColor: '#ffffff',
  16778. showValue: false,
  16779. disabled: false,
  16780. blockStyle: function blockStyle() {}
  16781. }
  16782. };
  16783. exports.default = _default;
  16784. /***/ }),
  16785. /* 135 */
  16786. /*!**********************************************************************************************************************!*\
  16787. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/statusBar.js ***!
  16788. \**********************************************************************************************************************/
  16789. /*! no static exports found */
  16790. /***/ (function(module, exports, __webpack_require__) {
  16791. "use strict";
  16792. Object.defineProperty(exports, "__esModule", {
  16793. value: true
  16794. });
  16795. exports.default = void 0;
  16796. /*
  16797. * @Author : LQ
  16798. * @Description :
  16799. * @version : 1.0
  16800. * @Date : 2021-08-20 16:44:21
  16801. * @LastAuthor : LQ
  16802. * @lastTime : 2021-08-20 17:20:39
  16803. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16804. */
  16805. var _default = {
  16806. // statusBar
  16807. statusBar: {
  16808. bgColor: 'transparent'
  16809. }
  16810. };
  16811. exports.default = _default;
  16812. /***/ }),
  16813. /* 136 */
  16814. /*!******************************************************************************************************************!*\
  16815. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/steps.js ***!
  16816. \******************************************************************************************************************/
  16817. /*! no static exports found */
  16818. /***/ (function(module, exports, __webpack_require__) {
  16819. "use strict";
  16820. Object.defineProperty(exports, "__esModule", {
  16821. value: true
  16822. });
  16823. exports.default = void 0;
  16824. /*
  16825. * @Author : LQ
  16826. * @Description :
  16827. * @version : 1.0
  16828. * @Date : 2021-08-20 16:44:21
  16829. * @LastAuthor : LQ
  16830. * @lastTime : 2021-08-20 17:12:37
  16831. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16832. */
  16833. var _default = {
  16834. // steps组件
  16835. steps: {
  16836. direction: 'row',
  16837. current: 0,
  16838. activeColor: '#3c9cff',
  16839. inactiveColor: '#969799',
  16840. activeIcon: '',
  16841. inactiveIcon: '',
  16842. dot: false
  16843. }
  16844. };
  16845. exports.default = _default;
  16846. /***/ }),
  16847. /* 137 */
  16848. /*!**********************************************************************************************************************!*\
  16849. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16850. \**********************************************************************************************************************/
  16851. /*! no static exports found */
  16852. /***/ (function(module, exports, __webpack_require__) {
  16853. "use strict";
  16854. Object.defineProperty(exports, "__esModule", {
  16855. value: true
  16856. });
  16857. exports.default = void 0;
  16858. /*
  16859. * @Author : LQ
  16860. * @Description :
  16861. * @version : 1.0
  16862. * @Date : 2021-08-20 16:44:21
  16863. * @LastAuthor : LQ
  16864. * @lastTime : 2021-08-20 17:12:55
  16865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16866. */
  16867. var _default = {
  16868. // steps-item组件
  16869. stepsItem: {
  16870. title: '',
  16871. desc: '',
  16872. iconSize: 17,
  16873. error: false
  16874. }
  16875. };
  16876. exports.default = _default;
  16877. /***/ }),
  16878. /* 138 */
  16879. /*!*******************************************************************************************************************!*\
  16880. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/sticky.js ***!
  16881. \*******************************************************************************************************************/
  16882. /*! no static exports found */
  16883. /***/ (function(module, exports, __webpack_require__) {
  16884. "use strict";
  16885. Object.defineProperty(exports, "__esModule", {
  16886. value: true
  16887. });
  16888. exports.default = void 0;
  16889. /*
  16890. * @Author : LQ
  16891. * @Description :
  16892. * @version : 1.0
  16893. * @Date : 2021-08-20 16:44:21
  16894. * @LastAuthor : LQ
  16895. * @lastTime : 2021-08-20 17:01:30
  16896. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16897. */
  16898. var _default = {
  16899. // sticky组件
  16900. sticky: {
  16901. offsetTop: 0,
  16902. customNavHeight: 0,
  16903. disabled: false,
  16904. bgColor: 'transparent',
  16905. zIndex: '',
  16906. index: ''
  16907. }
  16908. };
  16909. exports.default = _default;
  16910. /***/ }),
  16911. /* 139 */
  16912. /*!***********************************************************************************************************************!*\
  16913. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/subsection.js ***!
  16914. \***********************************************************************************************************************/
  16915. /*! no static exports found */
  16916. /***/ (function(module, exports, __webpack_require__) {
  16917. "use strict";
  16918. Object.defineProperty(exports, "__esModule", {
  16919. value: true
  16920. });
  16921. exports.default = void 0;
  16922. /*
  16923. * @Author : LQ
  16924. * @Description :
  16925. * @version : 1.0
  16926. * @Date : 2021-08-20 16:44:21
  16927. * @LastAuthor : LQ
  16928. * @lastTime : 2021-08-20 17:12:20
  16929. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16930. */
  16931. var _default = {
  16932. // subsection组件
  16933. subsection: {
  16934. list: [],
  16935. current: 0,
  16936. activeColor: '#3c9cff',
  16937. inactiveColor: '#303133',
  16938. mode: 'button',
  16939. fontSize: 12,
  16940. bold: true,
  16941. bgColor: '#eeeeef',
  16942. keyName: 'name'
  16943. }
  16944. };
  16945. exports.default = _default;
  16946. /***/ }),
  16947. /* 140 */
  16948. /*!************************************************************************************************************************!*\
  16949. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16950. \************************************************************************************************************************/
  16951. /*! no static exports found */
  16952. /***/ (function(module, exports, __webpack_require__) {
  16953. "use strict";
  16954. Object.defineProperty(exports, "__esModule", {
  16955. value: true
  16956. });
  16957. exports.default = void 0;
  16958. /*
  16959. * @Author : LQ
  16960. * @Description :
  16961. * @version : 1.0
  16962. * @Date : 2021-08-20 16:44:21
  16963. * @LastAuthor : LQ
  16964. * @lastTime : 2021-08-20 17:00:42
  16965. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16966. */
  16967. var _default = {
  16968. // swipe-action组件
  16969. swipeAction: {
  16970. autoClose: true
  16971. }
  16972. };
  16973. exports.default = _default;
  16974. /***/ }),
  16975. /* 141 */
  16976. /*!****************************************************************************************************************************!*\
  16977. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16978. \****************************************************************************************************************************/
  16979. /*! no static exports found */
  16980. /***/ (function(module, exports, __webpack_require__) {
  16981. "use strict";
  16982. Object.defineProperty(exports, "__esModule", {
  16983. value: true
  16984. });
  16985. exports.default = void 0;
  16986. /*
  16987. * @Author : LQ
  16988. * @Description :
  16989. * @version : 1.0
  16990. * @Date : 2021-08-20 16:44:21
  16991. * @LastAuthor : LQ
  16992. * @lastTime : 2021-08-20 17:01:13
  16993. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16994. */
  16995. var _default = {
  16996. // swipeActionItem 组件
  16997. swipeActionItem: {
  16998. show: false,
  16999. name: '',
  17000. disabled: false,
  17001. threshold: 20,
  17002. autoClose: true,
  17003. options: [],
  17004. duration: 300
  17005. }
  17006. };
  17007. exports.default = _default;
  17008. /***/ }),
  17009. /* 142 */
  17010. /*!*******************************************************************************************************************!*\
  17011. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/swiper.js ***!
  17012. \*******************************************************************************************************************/
  17013. /*! no static exports found */
  17014. /***/ (function(module, exports, __webpack_require__) {
  17015. "use strict";
  17016. Object.defineProperty(exports, "__esModule", {
  17017. value: true
  17018. });
  17019. exports.default = void 0;
  17020. /*
  17021. * @Author : LQ
  17022. * @Description :
  17023. * @version : 1.0
  17024. * @Date : 2021-08-20 16:44:21
  17025. * @LastAuthor : LQ
  17026. * @lastTime : 2021-08-20 17:21:38
  17027. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17028. */
  17029. var _default = {
  17030. // swiper 组件
  17031. swiper: {
  17032. list: function list() {
  17033. return [];
  17034. },
  17035. indicator: false,
  17036. indicatorActiveColor: '#FFFFFF',
  17037. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17038. indicatorStyle: '',
  17039. indicatorMode: 'line',
  17040. autoplay: true,
  17041. current: 0,
  17042. currentItemId: '',
  17043. interval: 3000,
  17044. duration: 300,
  17045. circular: false,
  17046. previousMargin: 0,
  17047. nextMargin: 0,
  17048. acceleration: false,
  17049. displayMultipleItems: 1,
  17050. easingFunction: 'default',
  17051. keyName: 'url',
  17052. imgMode: 'aspectFill',
  17053. height: 130,
  17054. bgColor: '#f3f4f6',
  17055. radius: 4,
  17056. loading: false,
  17057. showTitle: false
  17058. }
  17059. };
  17060. exports.default = _default;
  17061. /***/ }),
  17062. /* 143 */
  17063. /*!*****************************************************************************************************************************!*\
  17064. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17065. \*****************************************************************************************************************************/
  17066. /*! no static exports found */
  17067. /***/ (function(module, exports, __webpack_require__) {
  17068. "use strict";
  17069. Object.defineProperty(exports, "__esModule", {
  17070. value: true
  17071. });
  17072. exports.default = void 0;
  17073. /*
  17074. * @Author : LQ
  17075. * @Description :
  17076. * @version : 1.0
  17077. * @Date : 2021-08-20 16:44:21
  17078. * @LastAuthor : LQ
  17079. * @lastTime : 2021-08-20 17:22:07
  17080. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17081. */
  17082. var _default = {
  17083. // swiperIndicator 组件
  17084. swiperIndicator: {
  17085. length: 0,
  17086. current: 0,
  17087. indicatorActiveColor: '',
  17088. indicatorInactiveColor: '',
  17089. indicatorMode: 'line'
  17090. }
  17091. };
  17092. exports.default = _default;
  17093. /***/ }),
  17094. /* 144 */
  17095. /*!*******************************************************************************************************************!*\
  17096. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/switch.js ***!
  17097. \*******************************************************************************************************************/
  17098. /*! no static exports found */
  17099. /***/ (function(module, exports, __webpack_require__) {
  17100. "use strict";
  17101. Object.defineProperty(exports, "__esModule", {
  17102. value: true
  17103. });
  17104. exports.default = void 0;
  17105. /*
  17106. * @Author : LQ
  17107. * @Description :
  17108. * @version : 1.0
  17109. * @Date : 2021-08-20 16:44:21
  17110. * @LastAuthor : LQ
  17111. * @lastTime : 2021-08-20 17:22:24
  17112. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17113. */
  17114. var _default = {
  17115. // switch
  17116. switch: {
  17117. loading: false,
  17118. disabled: false,
  17119. size: 25,
  17120. activeColor: '#2979ff',
  17121. inactiveColor: '#ffffff',
  17122. value: false,
  17123. activeValue: true,
  17124. inactiveValue: false,
  17125. asyncChange: false,
  17126. space: 0
  17127. }
  17128. };
  17129. exports.default = _default;
  17130. /***/ }),
  17131. /* 145 */
  17132. /*!*******************************************************************************************************************!*\
  17133. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/tabbar.js ***!
  17134. \*******************************************************************************************************************/
  17135. /*! no static exports found */
  17136. /***/ (function(module, exports, __webpack_require__) {
  17137. "use strict";
  17138. Object.defineProperty(exports, "__esModule", {
  17139. value: true
  17140. });
  17141. exports.default = void 0;
  17142. /*
  17143. * @Author : LQ
  17144. * @Description :
  17145. * @version : 1.0
  17146. * @Date : 2021-08-20 16:44:21
  17147. * @LastAuthor : LQ
  17148. * @lastTime : 2021-08-20 17:22:40
  17149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17150. */
  17151. var _default = {
  17152. // tabbar
  17153. tabbar: {
  17154. value: null,
  17155. safeAreaInsetBottom: true,
  17156. border: true,
  17157. zIndex: 1,
  17158. activeColor: '#1989fa',
  17159. inactiveColor: '#7d7e80',
  17160. fixed: true,
  17161. placeholder: true
  17162. }
  17163. };
  17164. exports.default = _default;
  17165. /***/ }),
  17166. /* 146 */
  17167. /*!***********************************************************************************************************************!*\
  17168. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17169. \***********************************************************************************************************************/
  17170. /*! no static exports found */
  17171. /***/ (function(module, exports, __webpack_require__) {
  17172. "use strict";
  17173. Object.defineProperty(exports, "__esModule", {
  17174. value: true
  17175. });
  17176. exports.default = void 0;
  17177. /*
  17178. * @Author : LQ
  17179. * @Description :
  17180. * @version : 1.0
  17181. * @Date : 2021-08-20 16:44:21
  17182. * @LastAuthor : LQ
  17183. * @lastTime : 2021-08-20 17:22:55
  17184. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17185. */
  17186. var _default = {
  17187. //
  17188. tabbarItem: {
  17189. name: null,
  17190. icon: '',
  17191. badge: null,
  17192. dot: false,
  17193. text: '',
  17194. badgeStyle: 'top: 6px;right:2px;'
  17195. }
  17196. };
  17197. exports.default = _default;
  17198. /***/ }),
  17199. /* 147 */
  17200. /*!*****************************************************************************************************************!*\
  17201. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/tabs.js ***!
  17202. \*****************************************************************************************************************/
  17203. /*! no static exports found */
  17204. /***/ (function(module, exports, __webpack_require__) {
  17205. "use strict";
  17206. Object.defineProperty(exports, "__esModule", {
  17207. value: true
  17208. });
  17209. exports.default = void 0;
  17210. /*
  17211. * @Author : LQ
  17212. * @Description :
  17213. * @version : 1.0
  17214. * @Date : 2021-08-20 16:44:21
  17215. * @LastAuthor : LQ
  17216. * @lastTime : 2021-08-20 17:23:14
  17217. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17218. */
  17219. var _default = {
  17220. //
  17221. tabs: {
  17222. duration: 300,
  17223. list: function list() {
  17224. return [];
  17225. },
  17226. lineColor: '#3c9cff',
  17227. activeStyle: function activeStyle() {
  17228. return {
  17229. color: '#303133'
  17230. };
  17231. },
  17232. inactiveStyle: function inactiveStyle() {
  17233. return {
  17234. color: '#606266'
  17235. };
  17236. },
  17237. lineWidth: 20,
  17238. lineHeight: 3,
  17239. lineBgSize: 'cover',
  17240. itemStyle: function itemStyle() {
  17241. return {
  17242. height: '44px'
  17243. };
  17244. },
  17245. scrollable: true,
  17246. current: 0,
  17247. keyName: 'name'
  17248. }
  17249. };
  17250. exports.default = _default;
  17251. /***/ }),
  17252. /* 148 */
  17253. /*!****************************************************************************************************************!*\
  17254. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/tag.js ***!
  17255. \****************************************************************************************************************/
  17256. /*! no static exports found */
  17257. /***/ (function(module, exports, __webpack_require__) {
  17258. "use strict";
  17259. Object.defineProperty(exports, "__esModule", {
  17260. value: true
  17261. });
  17262. exports.default = void 0;
  17263. /*
  17264. * @Author : LQ
  17265. * @Description :
  17266. * @version : 1.0
  17267. * @Date : 2021-08-20 16:44:21
  17268. * @LastAuthor : LQ
  17269. * @lastTime : 2021-08-20 17:23:37
  17270. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17271. */
  17272. var _default = {
  17273. // tag 组件
  17274. tag: {
  17275. type: 'primary',
  17276. disabled: false,
  17277. size: 'medium',
  17278. shape: 'square',
  17279. text: '',
  17280. bgColor: '',
  17281. color: '',
  17282. borderColor: '',
  17283. closeColor: '#C6C7CB',
  17284. name: '',
  17285. plainFill: false,
  17286. plain: false,
  17287. closable: false,
  17288. show: true,
  17289. icon: ''
  17290. }
  17291. };
  17292. exports.default = _default;
  17293. /***/ }),
  17294. /* 149 */
  17295. /*!*****************************************************************************************************************!*\
  17296. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/text.js ***!
  17297. \*****************************************************************************************************************/
  17298. /*! no static exports found */
  17299. /***/ (function(module, exports, __webpack_require__) {
  17300. "use strict";
  17301. Object.defineProperty(exports, "__esModule", {
  17302. value: true
  17303. });
  17304. exports.default = void 0;
  17305. /*
  17306. * @Author : LQ
  17307. * @Description :
  17308. * @version : 1.0
  17309. * @Date : 2021-08-20 16:44:21
  17310. * @LastAuthor : LQ
  17311. * @lastTime : 2021-08-20 17:23:58
  17312. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17313. */
  17314. var _default = {
  17315. // text 组件
  17316. text: {
  17317. type: '',
  17318. show: true,
  17319. text: '',
  17320. prefixIcon: '',
  17321. suffixIcon: '',
  17322. mode: '',
  17323. href: '',
  17324. format: '',
  17325. call: false,
  17326. openType: '',
  17327. bold: false,
  17328. block: false,
  17329. lines: '',
  17330. color: '#303133',
  17331. size: 15,
  17332. iconStyle: function iconStyle() {
  17333. return {
  17334. fontSize: '15px'
  17335. };
  17336. },
  17337. decoration: 'none',
  17338. margin: 0,
  17339. lineHeight: '',
  17340. align: 'left',
  17341. wordWrap: 'normal'
  17342. }
  17343. };
  17344. exports.default = _default;
  17345. /***/ }),
  17346. /* 150 */
  17347. /*!*********************************************************************************************************************!*\
  17348. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/textarea.js ***!
  17349. \*********************************************************************************************************************/
  17350. /*! no static exports found */
  17351. /***/ (function(module, exports, __webpack_require__) {
  17352. "use strict";
  17353. Object.defineProperty(exports, "__esModule", {
  17354. value: true
  17355. });
  17356. exports.default = void 0;
  17357. /*
  17358. * @Author : LQ
  17359. * @Description :
  17360. * @version : 1.0
  17361. * @Date : 2021-08-20 16:44:21
  17362. * @LastAuthor : LQ
  17363. * @lastTime : 2021-08-20 17:24:32
  17364. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17365. */
  17366. var _default = {
  17367. // textarea 组件
  17368. textarea: {
  17369. value: '',
  17370. placeholder: '',
  17371. placeholderClass: 'textarea-placeholder',
  17372. placeholderStyle: 'color: #c0c4cc',
  17373. height: 70,
  17374. confirmType: 'done',
  17375. disabled: false,
  17376. count: false,
  17377. focus: false,
  17378. autoHeight: false,
  17379. fixed: false,
  17380. cursorSpacing: 0,
  17381. cursor: '',
  17382. showConfirmBar: true,
  17383. selectionStart: -1,
  17384. selectionEnd: -1,
  17385. adjustPosition: true,
  17386. disableDefaultPadding: false,
  17387. holdKeyboard: false,
  17388. maxlength: 140,
  17389. border: 'surround',
  17390. formatter: null
  17391. }
  17392. };
  17393. exports.default = _default;
  17394. /***/ }),
  17395. /* 151 */
  17396. /*!******************************************************************************************************************!*\
  17397. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/toast.js ***!
  17398. \******************************************************************************************************************/
  17399. /*! no static exports found */
  17400. /***/ (function(module, exports, __webpack_require__) {
  17401. "use strict";
  17402. Object.defineProperty(exports, "__esModule", {
  17403. value: true
  17404. });
  17405. exports.default = void 0;
  17406. /*
  17407. * @Author : LQ
  17408. * @Description :
  17409. * @version : 1.0
  17410. * @Date : 2021-08-20 16:44:21
  17411. * @LastAuthor : LQ
  17412. * @lastTime : 2021-08-20 17:07:07
  17413. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17414. */
  17415. var _default = {
  17416. // toast组件
  17417. toast: {
  17418. zIndex: 10090,
  17419. loading: false,
  17420. text: '',
  17421. icon: '',
  17422. type: '',
  17423. loadingMode: '',
  17424. show: '',
  17425. overlay: false,
  17426. position: 'center',
  17427. params: function params() {},
  17428. duration: 2000,
  17429. isTab: false,
  17430. url: '',
  17431. callback: null,
  17432. back: false
  17433. }
  17434. };
  17435. exports.default = _default;
  17436. /***/ }),
  17437. /* 152 */
  17438. /*!********************************************************************************************************************!*\
  17439. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/toolbar.js ***!
  17440. \********************************************************************************************************************/
  17441. /*! no static exports found */
  17442. /***/ (function(module, exports, __webpack_require__) {
  17443. "use strict";
  17444. Object.defineProperty(exports, "__esModule", {
  17445. value: true
  17446. });
  17447. exports.default = void 0;
  17448. /*
  17449. * @Author : LQ
  17450. * @Description :
  17451. * @version : 1.0
  17452. * @Date : 2021-08-20 16:44:21
  17453. * @LastAuthor : LQ
  17454. * @lastTime : 2021-08-20 17:24:55
  17455. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17456. */
  17457. var _default = {
  17458. // toolbar 组件
  17459. toolbar: {
  17460. show: true,
  17461. cancelText: '取消',
  17462. confirmText: '确认',
  17463. cancelColor: '#909193',
  17464. confirmColor: '#3c9cff',
  17465. title: ''
  17466. }
  17467. };
  17468. exports.default = _default;
  17469. /***/ }),
  17470. /* 153 */
  17471. /*!********************************************************************************************************************!*\
  17472. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/tooltip.js ***!
  17473. \********************************************************************************************************************/
  17474. /*! no static exports found */
  17475. /***/ (function(module, exports, __webpack_require__) {
  17476. "use strict";
  17477. Object.defineProperty(exports, "__esModule", {
  17478. value: true
  17479. });
  17480. exports.default = void 0;
  17481. /*
  17482. * @Author : LQ
  17483. * @Description :
  17484. * @version : 1.0
  17485. * @Date : 2021-08-20 16:44:21
  17486. * @LastAuthor : LQ
  17487. * @lastTime : 2021-08-20 17:25:14
  17488. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17489. */
  17490. var _default = {
  17491. // tooltip 组件
  17492. tooltip: {
  17493. text: '',
  17494. copyText: '',
  17495. size: 14,
  17496. color: '#606266',
  17497. bgColor: 'transparent',
  17498. direction: 'top',
  17499. zIndex: 10071,
  17500. showCopy: true,
  17501. buttons: function buttons() {
  17502. return [];
  17503. },
  17504. overlay: true,
  17505. showToast: true
  17506. }
  17507. };
  17508. exports.default = _default;
  17509. /***/ }),
  17510. /* 154 */
  17511. /*!***********************************************************************************************************************!*\
  17512. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/transition.js ***!
  17513. \***********************************************************************************************************************/
  17514. /*! no static exports found */
  17515. /***/ (function(module, exports, __webpack_require__) {
  17516. "use strict";
  17517. Object.defineProperty(exports, "__esModule", {
  17518. value: true
  17519. });
  17520. exports.default = void 0;
  17521. /*
  17522. * @Author : LQ
  17523. * @Description :
  17524. * @version : 1.0
  17525. * @Date : 2021-08-20 16:44:21
  17526. * @LastAuthor : LQ
  17527. * @lastTime : 2021-08-20 16:59:00
  17528. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17529. */
  17530. var _default = {
  17531. // transition动画组件的props
  17532. transition: {
  17533. show: false,
  17534. mode: 'fade',
  17535. duration: '300',
  17536. timingFunction: 'ease-out'
  17537. }
  17538. };
  17539. exports.default = _default;
  17540. /***/ }),
  17541. /* 155 */
  17542. /*!*******************************************************************************************************************!*\
  17543. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/props/upload.js ***!
  17544. \*******************************************************************************************************************/
  17545. /*! no static exports found */
  17546. /***/ (function(module, exports, __webpack_require__) {
  17547. "use strict";
  17548. Object.defineProperty(exports, "__esModule", {
  17549. value: true
  17550. });
  17551. exports.default = void 0;
  17552. /*
  17553. * @Author : LQ
  17554. * @Description :
  17555. * @version : 1.0
  17556. * @Date : 2021-08-20 16:44:21
  17557. * @LastAuthor : LQ
  17558. * @lastTime : 2021-08-20 17:09:50
  17559. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17560. */
  17561. var _default = {
  17562. // upload组件
  17563. upload: {
  17564. accept: 'image',
  17565. capture: function capture() {
  17566. return ['album', 'camera'];
  17567. },
  17568. compressed: true,
  17569. camera: 'back',
  17570. maxDuration: 60,
  17571. uploadIcon: 'camera-fill',
  17572. uploadIconColor: '#D3D4D6',
  17573. useBeforeRead: false,
  17574. previewFullImage: true,
  17575. maxCount: 52,
  17576. disabled: false,
  17577. imageMode: 'aspectFill',
  17578. name: '',
  17579. sizeType: function sizeType() {
  17580. return ['original', 'compressed'];
  17581. },
  17582. multiple: false,
  17583. deletable: true,
  17584. maxSize: Number.MAX_VALUE,
  17585. fileList: function fileList() {
  17586. return [];
  17587. },
  17588. uploadText: '',
  17589. width: 80,
  17590. height: 80,
  17591. previewImage: true
  17592. }
  17593. };
  17594. exports.default = _default;
  17595. /***/ }),
  17596. /* 156 */
  17597. /*!*************************************************************************************************************!*\
  17598. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/config/zIndex.js ***!
  17599. \*************************************************************************************************************/
  17600. /*! no static exports found */
  17601. /***/ (function(module, exports, __webpack_require__) {
  17602. "use strict";
  17603. Object.defineProperty(exports, "__esModule", {
  17604. value: true
  17605. });
  17606. exports.default = void 0;
  17607. // uniapp在H5中各API的z-index值如下:
  17608. /**
  17609. * actionsheet: 999
  17610. * modal: 999
  17611. * navigate: 998
  17612. * tabbar: 998
  17613. * toast: 999
  17614. */
  17615. var _default = {
  17616. toast: 10090,
  17617. noNetwork: 10080,
  17618. // popup包含popup,actionsheet,keyboard,picker的值
  17619. popup: 10075,
  17620. mask: 10070,
  17621. navbar: 980,
  17622. topTips: 975,
  17623. sticky: 970,
  17624. indexListSticky: 965
  17625. };
  17626. exports.default = _default;
  17627. /***/ }),
  17628. /* 157 */
  17629. /*!*****************************************************************************************************************!*\
  17630. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/function/platform.js ***!
  17631. \*****************************************************************************************************************/
  17632. /*! no static exports found */
  17633. /***/ (function(module, exports, __webpack_require__) {
  17634. "use strict";
  17635. Object.defineProperty(exports, "__esModule", {
  17636. value: true
  17637. });
  17638. exports.default = void 0;
  17639. /**
  17640. * 注意:
  17641. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17642. * module.exports = {
  17643. * transpileDependencies: ['uview-v2']
  17644. * }
  17645. */
  17646. var platform = 'none';
  17647. platform = 'vue2';
  17648. platform = 'weixin';
  17649. platform = 'mp';
  17650. var _default = platform;
  17651. exports.default = _default;
  17652. /***/ }),
  17653. /* 158 */
  17654. /*!*********************************************************************************!*\
  17655. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/router/index.js ***!
  17656. \*********************************************************************************/
  17657. /*! no static exports found */
  17658. /***/ (function(module, exports, __webpack_require__) {
  17659. "use strict";
  17660. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17661. Object.defineProperty(exports, "__esModule", {
  17662. value: true
  17663. });
  17664. Object.defineProperty(exports, "RouterMount", {
  17665. enumerable: true,
  17666. get: function get() {
  17667. return _uniSimpleRouter.RouterMount;
  17668. }
  17669. });
  17670. exports.router = void 0;
  17671. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  17672. var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ 159));
  17673. var _uniSimpleRouter = __webpack_require__(/*! uni-simple-router */ 161);
  17674. var _auth = __webpack_require__(/*! @/utils/auth */ 163);
  17675. var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 164));
  17676. var _excluded = ["type", "level"];
  17677. var router = (0, _uniSimpleRouter.createRouter)({
  17678. platform: "mp-weixin",
  17679. routerErrorEach: function routerErrorEach(_ref) {
  17680. var type = _ref.type,
  17681. level = _ref.level,
  17682. args = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  17683. },
  17684. applet: {
  17685. animationDuration: 300 //默认 300ms v2.0.6+
  17686. },
  17687. routes: (0, _toConsumableArray2.default)([{"path":"/pages/login/index","aliasPath":"/"},{"path":"/pages/index/index"},{"path":"/pages/details/index"}])
  17688. });
  17689. // 免登录白名单
  17690. exports.router = router;
  17691. var whiteList = ['/pages/login/index', '/pages/details/index'];
  17692. //全局路由前置守卫
  17693. router.beforeEach(function (to, from, next) {
  17694. if ((0, _auth.getToken)()) {
  17695. /* 存在token */
  17696. if (to.path === '/pages/login/index') {
  17697. next({
  17698. path: '/pages/index/index',
  17699. NAVTYPE: 'replace'
  17700. });
  17701. } else {
  17702. if (!_store.default.getters.userId) {
  17703. // 判断当前用户是否已拉取完userInfo信息
  17704. _store.default.dispatch('UserInfo').then(function (res) {
  17705. next();
  17706. }).catch(function () {
  17707. next();
  17708. });
  17709. } else {
  17710. next();
  17711. }
  17712. }
  17713. } else {
  17714. /* 不存在token */
  17715. if (whiteList.indexOf(to.path) !== -1) {
  17716. // 在免登录白名单,直接进入
  17717. next();
  17718. } else {
  17719. (0, _auth.removeToken)();
  17720. next({
  17721. path: '/pages/login/index',
  17722. NAVTYPE: 'replaceAll'
  17723. });
  17724. }
  17725. }
  17726. });
  17727. // 全局路由后置守卫
  17728. router.afterEach(function (to, from) {});
  17729. /***/ }),
  17730. /* 159 */
  17731. /*!************************************************************************!*\
  17732. !*** ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***!
  17733. \************************************************************************/
  17734. /*! no static exports found */
  17735. /***/ (function(module, exports, __webpack_require__) {
  17736. var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ 160);
  17737. function _objectWithoutProperties(source, excluded) {
  17738. if (source == null) return {};
  17739. var target = objectWithoutPropertiesLoose(source, excluded);
  17740. var key, i;
  17741. if (Object.getOwnPropertySymbols) {
  17742. var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
  17743. for (i = 0; i < sourceSymbolKeys.length; i++) {
  17744. key = sourceSymbolKeys[i];
  17745. if (excluded.indexOf(key) >= 0) continue;
  17746. if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
  17747. target[key] = source[key];
  17748. }
  17749. }
  17750. return target;
  17751. }
  17752. module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
  17753. /***/ }),
  17754. /* 160 */
  17755. /*!*****************************************************************************!*\
  17756. !*** ./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
  17757. \*****************************************************************************/
  17758. /*! no static exports found */
  17759. /***/ (function(module, exports) {
  17760. function _objectWithoutPropertiesLoose(source, excluded) {
  17761. if (source == null) return {};
  17762. var target = {};
  17763. var sourceKeys = Object.keys(source);
  17764. var key, i;
  17765. for (i = 0; i < sourceKeys.length; i++) {
  17766. key = sourceKeys[i];
  17767. if (excluded.indexOf(key) >= 0) continue;
  17768. target[key] = source[key];
  17769. }
  17770. return target;
  17771. }
  17772. module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
  17773. /***/ }),
  17774. /* 161 */
  17775. /*!**************************************************************************************************************************!*\
  17776. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uni-simple-router/dist/uni-simple-router.js ***!
  17777. \**************************************************************************************************************************/
  17778. /*! no static exports found */
  17779. /***/ (function(module, exports, __webpack_require__) {
  17780. /* WEBPACK VAR INJECTION */(function(uni, module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17781. !function (e, t) {
  17782. "object" == ( false ? undefined : _typeof(exports)) && "object" == ( false ? undefined : _typeof(module)) ? module.exports = t() : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
  17783. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17784. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17785. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17786. }(self, function () {
  17787. return e = {
  17788. 779: function _(e, t, r) {
  17789. var o = r(173);
  17790. e.exports = function e(t, r, n) {
  17791. return o(r) || (n = r || n, r = []), n = n || {}, t instanceof RegExp ? function (e, t) {
  17792. var r = e.source.match(/\((?!\?)/g);
  17793. if (r) for (var o = 0; o < r.length; o++) {
  17794. t.push({
  17795. name: o,
  17796. prefix: null,
  17797. delimiter: null,
  17798. optional: !1,
  17799. repeat: !1,
  17800. partial: !1,
  17801. asterisk: !1,
  17802. pattern: null
  17803. });
  17804. }
  17805. return s(e, t);
  17806. }(t, r) : o(t) ? function (t, r, o) {
  17807. for (var n = [], a = 0; a < t.length; a++) {
  17808. n.push(e(t[a], r, o).source);
  17809. }
  17810. return s(new RegExp("(?:" + n.join("|") + ")", p(o)), r);
  17811. }(t, r, n) : function (e, t, r) {
  17812. return f(a(e, r), t, r);
  17813. }(t, r, n);
  17814. }, e.exports.parse = a, e.exports.compile = function (e, t) {
  17815. return u(a(e, t), t);
  17816. }, e.exports.tokensToFunction = u, e.exports.tokensToRegExp = f;
  17817. var n = new RegExp(["(\\\\.)", "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"), "g");
  17818. function a(e, t) {
  17819. for (var r, o = [], a = 0, i = 0, u = "", s = t && t.delimiter || "/"; null != (r = n.exec(e));) {
  17820. var p = r[0],
  17821. f = r[1],
  17822. h = r.index;
  17823. if (u += e.slice(i, h), i = h + p.length, f) u += f[1];else {
  17824. var v = e[i],
  17825. y = r[2],
  17826. g = r[3],
  17827. d = r[4],
  17828. m = r[5],
  17829. b = r[6],
  17830. P = r[7];
  17831. u && (o.push(u), u = "");
  17832. var O = null != y && null != v && v !== y,
  17833. k = "+" === b || "*" === b,
  17834. w = "?" === b || "*" === b,
  17835. j = r[2] || s,
  17836. R = d || m;
  17837. o.push({
  17838. name: g || a++,
  17839. prefix: y || "",
  17840. delimiter: j,
  17841. optional: w,
  17842. repeat: k,
  17843. partial: O,
  17844. asterisk: !!P,
  17845. pattern: R ? c(R) : P ? ".*" : "[^" + l(j) + "]+?"
  17846. });
  17847. }
  17848. }
  17849. return i < e.length && (u += e.substr(i)), u && o.push(u), o;
  17850. }
  17851. function i(e) {
  17852. return encodeURI(e).replace(/[\/?#]/g, function (e) {
  17853. return "%" + e.charCodeAt(0).toString(16).toUpperCase();
  17854. });
  17855. }
  17856. function u(e, t) {
  17857. for (var r = new Array(e.length), n = 0; n < e.length; n++) {
  17858. "object" == _typeof(e[n]) && (r[n] = new RegExp("^(?:" + e[n].pattern + ")$", p(t)));
  17859. }
  17860. return function (t, n) {
  17861. for (var a = "", u = t || {}, l = (n || {}).pretty ? i : encodeURIComponent, c = 0; c < e.length; c++) {
  17862. var s = e[c];
  17863. if ("string" != typeof s) {
  17864. var p,
  17865. f = u[s.name];
  17866. if (null == f) {
  17867. if (s.optional) {
  17868. s.partial && (a += s.prefix);
  17869. continue;
  17870. }
  17871. throw new TypeError('Expected "' + s.name + '" to be defined');
  17872. }
  17873. if (o(f)) {
  17874. if (!s.repeat) throw new TypeError('Expected "' + s.name + '" to not repeat, but received `' + JSON.stringify(f) + "`");
  17875. if (0 === f.length) {
  17876. if (s.optional) continue;
  17877. throw new TypeError('Expected "' + s.name + '" to not be empty');
  17878. }
  17879. for (var h = 0; h < f.length; h++) {
  17880. if (p = l(f[h]), !r[c].test(p)) throw new TypeError('Expected all "' + s.name + '" to match "' + s.pattern + '", but received `' + JSON.stringify(p) + "`");
  17881. a += (0 === h ? s.prefix : s.delimiter) + p;
  17882. }
  17883. } else {
  17884. if (p = s.asterisk ? encodeURI(f).replace(/[?#]/g, function (e) {
  17885. return "%" + e.charCodeAt(0).toString(16).toUpperCase();
  17886. }) : l(f), !r[c].test(p)) throw new TypeError('Expected "' + s.name + '" to match "' + s.pattern + '", but received "' + p + '"');
  17887. a += s.prefix + p;
  17888. }
  17889. } else a += s;
  17890. }
  17891. return a;
  17892. };
  17893. }
  17894. function l(e) {
  17895. return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
  17896. }
  17897. function c(e) {
  17898. return e.replace(/([=!:$\/()])/g, "\\$1");
  17899. }
  17900. function s(e, t) {
  17901. return e.keys = t, e;
  17902. }
  17903. function p(e) {
  17904. return e && e.sensitive ? "" : "i";
  17905. }
  17906. function f(e, t, r) {
  17907. o(t) || (r = t || r, t = []);
  17908. for (var n = (r = r || {}).strict, a = !1 !== r.end, i = "", u = 0; u < e.length; u++) {
  17909. var c = e[u];
  17910. if ("string" == typeof c) i += l(c);else {
  17911. var f = l(c.prefix),
  17912. h = "(?:" + c.pattern + ")";
  17913. t.push(c), c.repeat && (h += "(?:" + f + h + ")*"), i += h = c.optional ? c.partial ? f + "(" + h + ")?" : "(?:" + f + "(" + h + "))?" : f + "(" + h + ")";
  17914. }
  17915. }
  17916. var v = l(r.delimiter || "/"),
  17917. y = i.slice(-v.length) === v;
  17918. return n || (i = (y ? i.slice(0, -v.length) : i) + "(?:" + v + "(?=$))?"), i += a ? "$" : n && y ? "" : "(?=" + v + "|$)", s(new RegExp("^" + i, p(r)), t);
  17919. }
  17920. },
  17921. 173: function _(e) {
  17922. e.exports = Array.isArray || function (e) {
  17923. return "[object Array]" == Object.prototype.toString.call(e);
  17924. };
  17925. },
  17926. 844: function _(e, t, r) {
  17927. "use strict";
  17928. var o = this && this.__assign || function () {
  17929. return (o = Object.assign || function (e) {
  17930. for (var t, r = 1, o = arguments.length; r < o; r++) {
  17931. for (var n in t = arguments[r]) {
  17932. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  17933. }
  17934. }
  17935. return e;
  17936. }).apply(this, arguments);
  17937. };
  17938. Object.defineProperty(t, "__esModule", {
  17939. value: !0
  17940. }), t.buildVueRouter = t.buildVueRoutes = void 0;
  17941. var n = r(366),
  17942. a = r(883),
  17943. i = r(789),
  17944. u = r(169);
  17945. t.buildVueRoutes = function (e, t) {
  17946. for (var r = e.routesMap, o = r.pathMap, l = r.finallyPathList, c = Object.keys(t), s = 0; s < c.length; s++) {
  17947. var p = c[s],
  17948. f = o[p],
  17949. h = t[p];
  17950. if (f) {
  17951. var v = i.getRoutePath(f, e).finallyPath;
  17952. if (v instanceof Array) throw new Error("非 vueRouterDev 模式下,alias、aliasPath、path 无法提供数组类型! " + JSON.stringify(f));
  17953. null != f.name && (h.name = f.name);
  17954. var y = h.path,
  17955. g = h.alias;
  17956. delete h.alias, h.path = v, "/" === y && null != g && (h.alias = g, h.path = y), f.beforeEnter && (h.beforeEnter = function (t, r, o) {
  17957. u.onTriggerEachHook(t, r, e, n.hookToggle.enterHooks, o);
  17958. });
  17959. } else a.warn(p + " 路由地址在路由表中未找到,确定是否传递漏啦", e, !0);
  17960. }
  17961. return l.includes("*") && (t["*"] = o["*"]), t;
  17962. }, t.buildVueRouter = function (e, t, r) {
  17963. var n;
  17964. n = "[object Array]" === i.getDataType(r) ? r : Object.values(r);
  17965. var a = e.options.h5,
  17966. u = a.scrollBehavior,
  17967. l = a.fallback,
  17968. c = t.options.scrollBehavior;
  17969. t.options.scrollBehavior = function (e, t, r) {
  17970. return c && c(e, t, r), u(e, t, r);
  17971. }, t.fallback = l;
  17972. var s = new t.constructor(o(o({}, e.options.h5), {
  17973. base: t.options.base,
  17974. mode: t.options.mode,
  17975. routes: n
  17976. }));
  17977. t.matcher = s.matcher;
  17978. };
  17979. },
  17980. 369: function _(e, t, r) {
  17981. "use strict";
  17982. Object.defineProperty(t, "__esModule", {
  17983. value: !0
  17984. }), t.addKeepAliveInclude = void 0;
  17985. var o = r(789),
  17986. n = ["", ""],
  17987. a = n[0],
  17988. i = n[1];
  17989. t.addKeepAliveInclude = function (e) {
  17990. var t = getApp(),
  17991. r = t.keepAliveInclude;
  17992. if (0 === e.runId && 0 === r.length) {
  17993. i = t.$route.params.__id__;
  17994. var n = (a = t.$route.meta.name) + "-" + i;
  17995. t.keepAliveInclude.push(n);
  17996. } else if ("" !== a) for (var u = t.keepAliveInclude, l = 0; l < u.length; l++) {
  17997. n = u[l];
  17998. var c = new RegExp(a + "-(\\d+)$"),
  17999. s = a + "-" + i;
  18000. if (c.test(n) && n !== s) {
  18001. o.removeSimpleValue(u, s), a = "";
  18002. break;
  18003. }
  18004. }
  18005. };
  18006. },
  18007. 147: function _(e, t) {
  18008. "use strict";
  18009. var _r,
  18010. o = this && this.__extends || (_r = function r(e, t) {
  18011. return (_r = Object.setPrototypeOf || {
  18012. __proto__: []
  18013. } instanceof Array && function (e, t) {
  18014. e.__proto__ = t;
  18015. } || function (e, t) {
  18016. for (var r in t) {
  18017. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  18018. }
  18019. })(e, t);
  18020. }, function (e, t) {
  18021. function o() {
  18022. this.constructor = e;
  18023. }
  18024. _r(e, t), e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
  18025. });
  18026. Object.defineProperty(t, "__esModule", {
  18027. value: !0
  18028. }), t.proxyH5Mount = t.proxyEachHook = t.MyArray = void 0;
  18029. var n = function (e) {
  18030. function t(r, o, n, a) {
  18031. var i = e.call(this) || this;
  18032. return i.router = r, i.vueEachArray = o, i.myEachHook = n, i.hookName = a, Object.setPrototypeOf(i, t.prototype), i;
  18033. }
  18034. return o(t, e), t.prototype.push = function (e) {
  18035. var t = this;
  18036. this.vueEachArray.push(e);
  18037. var r = this.length;
  18038. this[this.length] = function (e, o, n) {
  18039. r > 0 ? t.vueEachArray[r](e, o, function () {
  18040. n && n();
  18041. }) : t.myEachHook(e, o, function (a) {
  18042. !1 === a ? n(!1) : t.vueEachArray[r](e, o, function (e) {
  18043. n(a);
  18044. });
  18045. }, t.router, !0);
  18046. };
  18047. }, t;
  18048. }(Array);
  18049. t.MyArray = n, t.proxyEachHook = function (e, t) {
  18050. for (var r = ["beforeHooks", "afterHooks"], o = 0; o < r.length; o++) {
  18051. var a = r[o],
  18052. i = e.lifeCycle[a][0];
  18053. if (i) {
  18054. var u = t[a];
  18055. t[a] = new n(e, u, i, a);
  18056. }
  18057. }
  18058. }, t.proxyH5Mount = function (e) {
  18059. var t;
  18060. if (0 === e.mount.length) {
  18061. if (null === (t = e.options.h5) || void 0 === t ? void 0 : t.vueRouterDev) return;
  18062. navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) && setTimeout(function () {
  18063. if (document.getElementsByTagName("uni-page").length > 0) return !1;
  18064. window.location.reload();
  18065. }, 0);
  18066. } else e.mount[0].app.$mount(), e.mount = [];
  18067. };
  18068. },
  18069. 814: function _(e, t) {
  18070. "use strict";
  18071. var r = this && this.__assign || function () {
  18072. return (r = Object.assign || function (e) {
  18073. for (var t, r = 1, o = arguments.length; r < o; r++) {
  18074. for (var n in t = arguments[r]) {
  18075. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  18076. }
  18077. }
  18078. return e;
  18079. }).apply(this, arguments);
  18080. };
  18081. Object.defineProperty(t, "__esModule", {
  18082. value: !0
  18083. }), t.tabIndexSelect = t.HomeNvueSwitchTab = t.runtimeQuit = t.registerLoddingPage = void 0;
  18084. var o = null,
  18085. n = null;
  18086. t.registerLoddingPage = function (e) {
  18087. var t;
  18088. if (null === (t = e.options.APP) || void 0 === t ? void 0 : t.registerLoadingPage) {
  18089. var o = e.options.APP,
  18090. n = o.loadingPageHook,
  18091. a = o.loadingPageStyle;
  18092. n(new plus.nativeObj.View("router-loadding", r({
  18093. top: "0px",
  18094. left: "0px",
  18095. height: "100%",
  18096. width: "100%"
  18097. }, a())));
  18098. }
  18099. }, t.runtimeQuit = function (e) {
  18100. void 0 === e && (e = "再按一次退出应用");
  18101. var t = +new Date();
  18102. o ? t - o < 1e3 && plus.runtime.quit() : (o = t, uni.showToast({
  18103. title: e,
  18104. icon: "none",
  18105. position: "bottom",
  18106. duration: 1e3
  18107. }), setTimeout(function () {
  18108. o = null;
  18109. }, 1e3));
  18110. }, t.HomeNvueSwitchTab = function (e, t, r) {
  18111. return new Promise(function (t) {
  18112. return 0 !== e.runId ? t(!1) : __uniConfig.tabBar && Array.isArray(__uniConfig.tabBar.list) ? void r({
  18113. url: __uniConfig.entryPagePath,
  18114. animationDuration: 0,
  18115. complete: function complete() {
  18116. return t(!0);
  18117. }
  18118. }) : t(!1);
  18119. });
  18120. }, t.tabIndexSelect = function (e, t) {
  18121. if (!__uniConfig.tabBar || !Array.isArray(__uniConfig.tabBar.list)) return !1;
  18122. for (var r = __uniConfig.tabBar.list, o = [], a = 0, i = 0; i < r.length; i++) {
  18123. var u = r[i];
  18124. if ("/" + u.pagePath !== e.path && "/" + u.pagePath !== t.path || (u.pagePath === t.path && (a = i), o.push(u)), 2 === o.length) break;
  18125. }
  18126. return 2 === o.length && (null == n && (n = uni.requireNativePlugin("uni-tabview")), n.switchSelect({
  18127. index: a
  18128. }), !0);
  18129. };
  18130. },
  18131. 334: function _(e, t) {
  18132. "use strict";
  18133. Object.defineProperty(t, "__esModule", {
  18134. value: !0
  18135. }), t.getEnterPath = void 0, t.getEnterPath = function (e, t) {
  18136. switch (t.options.platform) {
  18137. case "mp-alipay":
  18138. case "mp-weixin":
  18139. case "mp-toutiao":
  18140. case "mp-qq":
  18141. return e.$options.mpInstance.route;
  18142. case "mp-baidu":
  18143. return e.$options.mpInstance.is || e.$options.mpInstance.pageinstance.route;
  18144. }
  18145. return e.$options.mpInstance.route;
  18146. };
  18147. },
  18148. 282: function _(e, t, r) {
  18149. "use strict";
  18150. Object.defineProperty(t, "__esModule", {
  18151. value: !0
  18152. }), t.proxyHookName = t.proxyHookDeps = t.lifeCycle = t.baseConfig = t.mpPlatformReg = void 0;
  18153. var o = r(883),
  18154. n = r(99);
  18155. t.mpPlatformReg = "(^mp-weixin$)|(^mp-baidu$)|(^mp-alipay$)|(^mp-toutiao$)|(^mp-qq$)|(^mp-360$)", t.baseConfig = {
  18156. h5: {
  18157. paramsToQuery: !1,
  18158. vueRouterDev: !1,
  18159. vueNext: !1,
  18160. mode: "hash",
  18161. base: "/",
  18162. linkActiveClass: "router-link-active",
  18163. linkExactActiveClass: "router-link-exact-active",
  18164. scrollBehavior: function scrollBehavior(e, t, r) {
  18165. return {
  18166. x: 0,
  18167. y: 0
  18168. };
  18169. },
  18170. fallback: !0
  18171. },
  18172. APP: {
  18173. registerLoadingPage: !0,
  18174. loadingPageStyle: function loadingPageStyle() {
  18175. return JSON.parse('{"backgroundColor":"#FFF"}');
  18176. },
  18177. loadingPageHook: function loadingPageHook(e) {
  18178. e.show();
  18179. },
  18180. launchedHook: function launchedHook() {
  18181. plus.navigator.closeSplashscreen();
  18182. },
  18183. animation: {}
  18184. },
  18185. applet: {
  18186. animationDuration: 300
  18187. },
  18188. beforeProxyHooks: {
  18189. onLoad: function onLoad(e, t, r) {
  18190. var o = e[0];
  18191. t([n.parseQuery({
  18192. query: o
  18193. }, r)]);
  18194. }
  18195. },
  18196. platform: "h5",
  18197. keepUniOriginNav: !1,
  18198. debugger: !1,
  18199. routerBeforeEach: function routerBeforeEach(e, t, r) {
  18200. r();
  18201. },
  18202. routerAfterEach: function routerAfterEach(e, t) {},
  18203. routerErrorEach: function routerErrorEach(e, t) {
  18204. t.$lockStatus = !1, o.err(e, t, !0);
  18205. },
  18206. detectBeforeLock: function detectBeforeLock(e, t, r) {},
  18207. routes: [{
  18208. path: "/choose-location"
  18209. }, {
  18210. path: "/open-location"
  18211. }, {
  18212. path: "/preview-image"
  18213. }]
  18214. }, t.lifeCycle = {
  18215. beforeHooks: [],
  18216. afterHooks: [],
  18217. routerBeforeHooks: [],
  18218. routerAfterHooks: [],
  18219. routerErrorHooks: []
  18220. }, t.proxyHookDeps = {
  18221. resetIndex: [],
  18222. hooks: {},
  18223. options: {}
  18224. }, t.proxyHookName = ["onLaunch", "onShow", "onHide", "onError", "onInit", "onLoad", "onReady", "onUnload", "onResize", "created", "beforeMount", "mounted", "beforeDestroy", "destroyed"];
  18225. },
  18226. 801: function _(e, t, r) {
  18227. "use strict";
  18228. Object.defineProperty(t, "__esModule", {
  18229. value: !0
  18230. }), t.createRouteMap = void 0;
  18231. var o = r(883),
  18232. n = r(789);
  18233. t.createRouteMap = function (e, t) {
  18234. var r = {
  18235. finallyPathList: [],
  18236. finallyPathMap: Object.create(null),
  18237. aliasPathMap: Object.create(null),
  18238. pathMap: Object.create(null),
  18239. vueRouteMap: Object.create(null),
  18240. nameMap: Object.create(null)
  18241. };
  18242. return t.forEach(function (t) {
  18243. var a = n.getRoutePath(t, e),
  18244. i = a.finallyPath,
  18245. u = a.aliasPath,
  18246. l = a.path;
  18247. if (null == l) throw new Error("请提供一个完整的路由对象,包括以绝对路径开始的 ‘path’ 字符串 " + JSON.stringify(t));
  18248. if (i instanceof Array && !e.options.h5.vueRouterDev && "h5" === e.options.platform) throw new Error("非 vueRouterDev 模式下,route.alias 目前无法提供数组类型! " + JSON.stringify(t));
  18249. var c = i,
  18250. s = u;
  18251. "h5" !== e.options.platform && 0 !== c.indexOf("/") && "*" !== l && o.warn("当前路由对象下,route:" + JSON.stringify(t) + " 是否缺少了前缀 ‘/’", e, !0), r.finallyPathMap[c] || (r.finallyPathMap[c] = t, r.aliasPathMap[s] = t, r.pathMap[l] = t, r.finallyPathList.push(c), null != t.name && (r.nameMap[t.name] = t));
  18252. }), r;
  18253. };
  18254. },
  18255. 662: function _(e, t, r) {
  18256. "use strict";
  18257. Object.defineProperty(t, "__esModule", {
  18258. value: !0
  18259. }), t.registerEachHooks = t.registerRouterHooks = t.registerHook = void 0;
  18260. var o = r(366),
  18261. n = r(169);
  18262. function a(e, t) {
  18263. e[0] = t;
  18264. }
  18265. t.registerHook = a, t.registerRouterHooks = function (e, t) {
  18266. return a(e.routerBeforeHooks, function (e, r, o) {
  18267. t.routerBeforeEach(e, r, o);
  18268. }), a(e.routerAfterHooks, function (e, r) {
  18269. t.routerAfterEach(e, r);
  18270. }), a(e.routerErrorHooks, function (e, r) {
  18271. t.routerErrorEach(e, r);
  18272. }), e;
  18273. }, t.registerEachHooks = function (e, t, r) {
  18274. a(e.lifeCycle[t], function (e, a, i, u, l) {
  18275. l ? n.onTriggerEachHook(e, a, u, o.hookToggle[t], i) : r(e, a, i);
  18276. });
  18277. };
  18278. },
  18279. 460: function _(e, t, r) {
  18280. "use strict";
  18281. var o = this && this.__assign || function () {
  18282. return (o = Object.assign || function (e) {
  18283. for (var t, r = 1, o = arguments.length; r < o; r++) {
  18284. for (var n in t = arguments[r]) {
  18285. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  18286. }
  18287. }
  18288. return e;
  18289. }).apply(this, arguments);
  18290. };
  18291. Object.defineProperty(t, "__esModule", {
  18292. value: !0
  18293. }), t.initMixins = t.getMixins = void 0;
  18294. var n = r(801),
  18295. a = r(844),
  18296. i = r(147),
  18297. u = r(814),
  18298. l = r(845),
  18299. c = r(890),
  18300. s = r(789),
  18301. p = r(334),
  18302. f = r(282),
  18303. h = r(925),
  18304. v = !1,
  18305. y = !1,
  18306. g = {
  18307. app: !1,
  18308. page: ""
  18309. };
  18310. function d(e, t) {
  18311. var r = t.options.platform;
  18312. return new RegExp(f.mpPlatformReg, "g").test(r) && (r = "app-lets"), {
  18313. h5: {
  18314. beforeCreate: function beforeCreate() {
  18315. var e;
  18316. if (h.beforeProxyHook(this, t), this.$options.router) {
  18317. t.$route = this.$options.router;
  18318. var r = [];
  18319. (null === (e = t.options.h5) || void 0 === e ? void 0 : e.vueRouterDev) ? r = t.options.routes : (r = n.createRouteMap(t, this.$options.router.options.routes).finallyPathMap, t.routesMap.vueRouteMap = r, a.buildVueRoutes(t, r)), a.buildVueRouter(t, this.$options.router, r), i.proxyEachHook(t, this.$options.router);
  18320. }
  18321. }
  18322. },
  18323. "app-plus": {
  18324. beforeCreate: function beforeCreate() {
  18325. h.beforeProxyHook(this, t), v || (v = !0, l.proxyPageHook(this, t, "app"), u.registerLoddingPage(t));
  18326. }
  18327. },
  18328. "app-lets": {
  18329. beforeCreate: function beforeCreate() {
  18330. h.beforeProxyHook(this, t), s.voidFun("UNI-SIMPLE-ROUTER");
  18331. var e = !0,
  18332. r = this.$options.mpType;
  18333. y || ("component" === r ? e = s.assertParentChild(g.page, this) : "page" === r ? (g[r] = p.getEnterPath(this, t), t.enterPath = g[r]) : g[r] = !0, e && l.proxyPageHook(this, t, r));
  18334. },
  18335. onLoad: function onLoad() {
  18336. s.voidFun("UNI-SIMPLE-ROUTER"), !y && s.assertParentChild(g.page, this) && (y = !0, c.forceGuardEach(t));
  18337. }
  18338. }
  18339. }[r];
  18340. }
  18341. t.getMixins = d, t.initMixins = function (e, t) {
  18342. var r = n.createRouteMap(t, t.options.routes);
  18343. t.routesMap = r, e.mixin(o({}, d(0, t)));
  18344. };
  18345. },
  18346. 789: function _(e, t, r) {
  18347. "use strict";
  18348. var o = this && this.__assign || function () {
  18349. return (o = Object.assign || function (e) {
  18350. for (var t, r = 1, o = arguments.length; r < o; r++) {
  18351. for (var n in t = arguments[r]) {
  18352. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  18353. }
  18354. }
  18355. return e;
  18356. }).apply(this, arguments);
  18357. },
  18358. n = this && this.__rest || function (e, t) {
  18359. var r = {};
  18360. for (var o in e) {
  18361. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  18362. }
  18363. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  18364. var n = 0;
  18365. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  18366. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  18367. }
  18368. }
  18369. return r;
  18370. },
  18371. a = this && this.__spreadArrays || function () {
  18372. for (var e = 0, t = 0, r = arguments.length; t < r; t++) {
  18373. e += arguments[t].length;
  18374. }
  18375. var o = Array(e),
  18376. n = 0;
  18377. for (t = 0; t < r; t++) {
  18378. for (var a = arguments[t], i = 0, u = a.length; i < u; i++, n++) {
  18379. o[n] = a[i];
  18380. }
  18381. }
  18382. return o;
  18383. };
  18384. Object.defineProperty(t, "__esModule", {
  18385. value: !0
  18386. }), t.deepDecodeQuery = t.resolveAbsolutePath = t.assertParentChild = t.lockDetectWarn = t.deepClone = t.baseClone = t.assertDeepObject = t.paramsToQuery = t.forMatNextToFrom = t.urlToJson = t.getUniCachePage = t.removeSimpleValue = t.copyData = t.getDataType = t.routesForMapRoute = t.notRouteTo404 = t.getWildcardRule = t.assertNewOptions = t.getRoutePath = t.notDeepClearNull = t.mergeConfig = t.timeOut = t.def = t.voidFun = void 0;
  18387. var i = r(282),
  18388. u = r(169),
  18389. l = r(883),
  18390. c = r(890),
  18391. s = r(779);
  18392. function p(e, t) {
  18393. for (var r = Object.create(null), n = Object.keys(e).concat(["resolveQuery", "parseQuery"]), i = 0; i < n.length; i += 1) {
  18394. var u = n[i];
  18395. null != t[u] ? t[u].constructor === Object ? r[u] = o(o({}, e[u]), t[u]) : r[u] = "routes" === u ? a(e[u], t[u]) : t[u] : r[u] = e[u];
  18396. }
  18397. return r;
  18398. }
  18399. function f(e, t) {
  18400. var r = e.aliasPath || e.alias || e.path;
  18401. return "h5" !== t.options.platform && (r = e.path), {
  18402. finallyPath: r,
  18403. aliasPath: e.aliasPath || e.path,
  18404. path: e.path,
  18405. alias: e.alias
  18406. };
  18407. }
  18408. function h(e, t) {
  18409. var r = e.routesMap.finallyPathMap["*"];
  18410. if (r) return r;
  18411. throw t && u.ERRORHOOK[0](t, e), new Error("当前路由表匹配规则已全部匹配完成,未找到满足的匹配规则。你可以使用 '*' 通配符捕捉最后的异常");
  18412. }
  18413. function v(e) {
  18414. return Object.prototype.toString.call(e);
  18415. }
  18416. function y(e, t) {
  18417. if (null == e) t = e;else for (var r = 0, o = Object.keys(e); r < o.length; r++) {
  18418. var n = o[r],
  18419. a = n;
  18420. e[n] !== e && ("object" == _typeof(e[n]) ? (t[a] = "[object Array]" === v(e[n]) ? [] : {}, t[a] = y(e[n], t[a])) : t[a] = e[n]);
  18421. }
  18422. return t;
  18423. }
  18424. function g(e) {
  18425. var t = "[object Array]" === v(e) ? [] : {};
  18426. return y(e, t), t;
  18427. }
  18428. t.voidFun = function () {
  18429. for (var e = [], t = 0; t < arguments.length; t++) {
  18430. e[t] = arguments[t];
  18431. }
  18432. }, t.def = function (e, t, r) {
  18433. Object.defineProperty(e, t, {
  18434. get: function get() {
  18435. return r();
  18436. }
  18437. });
  18438. }, t.timeOut = function (e) {
  18439. return new Promise(function (t) {
  18440. setTimeout(function () {
  18441. t();
  18442. }, e);
  18443. });
  18444. }, t.mergeConfig = p, t.notDeepClearNull = function (e) {
  18445. for (var t in e) {
  18446. null == e[t] && delete e[t];
  18447. }
  18448. return e;
  18449. }, t.getRoutePath = f, t.assertNewOptions = function (e) {
  18450. var t,
  18451. r = e.platform,
  18452. o = e.routes;
  18453. if (null == r) throw new Error("你在实例化路由时必须传递 'platform'");
  18454. if (null == o || 0 === o.length) throw new Error("你在实例化路由时必须传递 routes 为空,这是无意义的。");
  18455. return "h5" === e.platform && (null === (t = e.h5) || void 0 === t ? void 0 : t.vueRouterDev) && (i.baseConfig.routes = []), p(i.baseConfig, e);
  18456. }, t.getWildcardRule = h, t.notRouteTo404 = function (e, t, r, o) {
  18457. if ("*" !== t.path) return t;
  18458. var n = t.redirect;
  18459. if (void 0 === n) throw new Error(" * 通配符必须配合 redirect 使用。redirect: string | Location | Function");
  18460. var a = n;
  18461. return "function" == typeof a && (a = a(r)), c.navjump(a, e, o, void 0, void 0, void 0, !1);
  18462. }, t.routesForMapRoute = function e(t, r, o, n) {
  18463. var a;
  18464. if (void 0 === n && (n = !1), null === (a = t.options.h5) || void 0 === a ? void 0 : a.vueRouterDev) return {
  18465. path: r
  18466. };
  18467. for (var i = r.split("?")[0], u = "", l = t.routesMap, c = 0; c < o.length; c++) {
  18468. for (var p = l[o[c]], f = 0, y = Object.entries(p); f < y.length; f++) {
  18469. var g = y[f],
  18470. d = g[0],
  18471. m = g[1];
  18472. if ("*" !== d) {
  18473. var b = m,
  18474. P = d;
  18475. if ("[object Array]" === v(p) && (P = b), null != s(P).exec(i)) return "[object String]" === v(b) ? l.finallyPathMap[b] : b;
  18476. } else "" === u && (u = "*");
  18477. }
  18478. }
  18479. if (n) return {};
  18480. if (l.aliasPathMap) {
  18481. var O = e(t, r, ["aliasPathMap"], !0);
  18482. if (Object.keys(O).length > 0) return O;
  18483. }
  18484. if ("" !== u) return h(t);
  18485. throw new Error(r + " 路径无法在路由表中找到!检查跳转路径及路由表");
  18486. }, t.getDataType = v, t.copyData = function (e) {
  18487. return JSON.parse(JSON.stringify(e));
  18488. }, t.removeSimpleValue = function (e, t) {
  18489. for (var r = 0; r < e.length; r++) {
  18490. if (e[r] === t) return e.splice(r, 1), !0;
  18491. }
  18492. return !1;
  18493. }, t.getUniCachePage = function (e) {
  18494. var t = getCurrentPages();
  18495. if (null == e) return t;
  18496. if (0 === t.length) return t;
  18497. var r = t.reverse()[e];
  18498. return null == r ? [] : r;
  18499. }, t.urlToJson = function (e) {
  18500. var t = {},
  18501. r = e.split("?"),
  18502. o = r[0],
  18503. n = r[1];
  18504. if (null != n) for (var a = 0, i = n.split("&"); a < i.length; a++) {
  18505. var u = i[a].split("=");
  18506. t[u[0]] = u[1];
  18507. }
  18508. return {
  18509. path: o,
  18510. query: t
  18511. };
  18512. }, t.forMatNextToFrom = function (e, t, r) {
  18513. var o = [t, r],
  18514. n = o[0],
  18515. a = o[1];
  18516. if ("h5" === e.options.platform) {
  18517. var i = e.options.h5,
  18518. u = i.vueNext,
  18519. l = i.vueRouterDev;
  18520. u || l || (n = c.createRoute(e, void 0, n), a = c.createRoute(e, void 0, a));
  18521. } else n = c.createRoute(e, void 0, g(n)), a = c.createRoute(e, void 0, g(a));
  18522. return {
  18523. matTo: n,
  18524. matFrom: a
  18525. };
  18526. }, t.paramsToQuery = function (e, t) {
  18527. var r;
  18528. if ("h5" === e.options.platform && !(null === (r = e.options.h5) || void 0 === r ? void 0 : r.paramsToQuery)) return t;
  18529. if ("[object Object]" === v(t)) {
  18530. var a = t,
  18531. i = a.name,
  18532. l = a.params,
  18533. c = n(a, ["name", "params"]),
  18534. s = l;
  18535. if ("h5" !== e.options.platform && null == s && (s = {}), null != i && null != s) {
  18536. var p = e.routesMap.nameMap[i];
  18537. null == p && (p = h(e, {
  18538. type: 2,
  18539. msg: "命名路由为:" + i + " 的路由,无法在路由表中找到!",
  18540. toRule: t
  18541. }));
  18542. var y = f(p, e).finallyPath;
  18543. if (!y.includes(":")) return o(o({}, c), {
  18544. path: y,
  18545. query: s
  18546. });
  18547. u.ERRORHOOK[0]({
  18548. type: 2,
  18549. msg: "动态路由:" + y + " 无法使用 paramsToQuery!",
  18550. toRule: t
  18551. }, e);
  18552. }
  18553. }
  18554. return t;
  18555. }, t.assertDeepObject = function (e) {
  18556. var t = null;
  18557. try {
  18558. t = JSON.stringify(e).match(/\{|\[|\}|\]/g);
  18559. } catch (e) {
  18560. l.warnLock("传递的参数解析对象失败。" + e);
  18561. }
  18562. return null != t && t.length > 3;
  18563. }, t.baseClone = y, t.deepClone = g, t.lockDetectWarn = function (e, t, r, o, n, a) {
  18564. if (void 0 === n && (n = {}), "afterHooks" === a) o();else {
  18565. var i = e.options.detectBeforeLock;
  18566. i && i(e, t, r), e.$lockStatus ? e.options.routerErrorEach({
  18567. type: 2,
  18568. msg: "当前页面正在处于跳转状态,请稍后再进行跳转....",
  18569. NAVTYPE: r,
  18570. uniActualData: n
  18571. }, e) : o();
  18572. }
  18573. }, t.assertParentChild = function (e, t) {
  18574. for (; null != t.$parent;) {
  18575. var r = t.$parent.$mp;
  18576. if (r.page && r.page.is === e) return !0;
  18577. t = t.$parent;
  18578. }
  18579. try {
  18580. if (t.$mp.page.is === e || t.$mp.page.route === e) return !0;
  18581. } catch (e) {
  18582. return !1;
  18583. }
  18584. return !1;
  18585. }, t.resolveAbsolutePath = function (e, t) {
  18586. var r = /^\/?([^\?\s]+)(\?.+)?$/,
  18587. o = e.trim();
  18588. if (!r.test(o)) throw new Error("【" + e + "】 路径错误,请提供完整的路径(10001)。");
  18589. var n = o.match(r);
  18590. if (null == n) throw new Error("【" + e + "】 路径错误,请提供完整的路径(10002)。");
  18591. var a = n[2] || "";
  18592. if (/^\.\/[^\.]+/.test(o)) return (t.currentRoute.path + e).replace(/[^\/]+\.\//, "");
  18593. var i = n[1].replace(/\//g, "\\/").replace(/\.\./g, "[^\\/]+").replace(/\./g, "\\."),
  18594. u = new RegExp("^\\/" + i + "$"),
  18595. l = t.options.routes.filter(function (e) {
  18596. return u.test(e.path);
  18597. });
  18598. if (1 !== l.length) throw new Error("【" + e + "】 路径错误,尝试转成绝对路径失败,请手动转成绝对路径(10003)。");
  18599. return l[0].path + a;
  18600. }, t.deepDecodeQuery = function e(t) {
  18601. for (var r = "[object Array]" === v(t) ? [] : {}, o = Object.keys(t), n = 0; n < o.length; n++) {
  18602. var a = o[n],
  18603. i = t[a];
  18604. if ("string" == typeof i) try {
  18605. var u = JSON.parse(decodeURIComponent(i));
  18606. "object" != _typeof(u) && (u = i), r[a] = u;
  18607. } catch (e) {
  18608. try {
  18609. r[a] = decodeURIComponent(i);
  18610. } catch (e) {
  18611. r[a] = i;
  18612. }
  18613. } else if ("object" == _typeof(i)) {
  18614. var l = e(i);
  18615. r[a] = l;
  18616. } else r[a] = i;
  18617. }
  18618. return r;
  18619. };
  18620. },
  18621. 883: function _(e, t) {
  18622. "use strict";
  18623. function r(e, t, r, o) {
  18624. if (void 0 === o && (o = !1), !o) {
  18625. var n = "[object Object]" === t.toString();
  18626. if (!1 === t) return !1;
  18627. if (n && !1 === t[e]) return !1;
  18628. }
  18629. return console[e](r), !0;
  18630. }
  18631. Object.defineProperty(t, "__esModule", {
  18632. value: !0
  18633. }), t.warnLock = t.log = t.warn = t.err = t.isLog = void 0, t.isLog = r, t.err = function (e, t, o) {
  18634. r("error", t.options.debugger, e, o);
  18635. }, t.warn = function (e, t, o) {
  18636. r("warn", t.options.debugger, e, o);
  18637. }, t.log = function (e, t, o) {
  18638. r("log", t.options.debugger, e, o);
  18639. }, t.warnLock = function (e) {
  18640. console.warn(e);
  18641. };
  18642. },
  18643. 607: function _(e, t, r) {
  18644. "use strict";
  18645. var o = this && this.__createBinding || (Object.create ? function (e, t, r, o) {
  18646. void 0 === o && (o = r), Object.defineProperty(e, o, {
  18647. enumerable: !0,
  18648. get: function get() {
  18649. return t[r];
  18650. }
  18651. });
  18652. } : function (e, t, r, o) {
  18653. void 0 === o && (o = r), e[o] = t[r];
  18654. }),
  18655. n = this && this.__exportStar || function (e, t) {
  18656. for (var r in e) {
  18657. "default" === r || Object.prototype.hasOwnProperty.call(t, r) || o(t, e, r);
  18658. }
  18659. };
  18660. Object.defineProperty(t, "__esModule", {
  18661. value: !0
  18662. }), t.createRouter = t.RouterMount = t.runtimeQuit = void 0, n(r(366), t), n(r(309), t), n(r(789), t);
  18663. var a = r(814);
  18664. Object.defineProperty(t, "runtimeQuit", {
  18665. enumerable: !0,
  18666. get: function get() {
  18667. return a.runtimeQuit;
  18668. }
  18669. });
  18670. var i = r(963);
  18671. Object.defineProperty(t, "RouterMount", {
  18672. enumerable: !0,
  18673. get: function get() {
  18674. return i.RouterMount;
  18675. }
  18676. }), Object.defineProperty(t, "createRouter", {
  18677. enumerable: !0,
  18678. get: function get() {
  18679. return i.createRouter;
  18680. }
  18681. });
  18682. var u = "2.0.8-BETA.4";
  18683. /[A-Z]/g.test(u) && console.warn("【" + "UNI-SIMPLE-ROUTER".toLocaleLowerCase() + " 提示】:当前版本 " + u.toLocaleLowerCase() + " 此版本为测试版。有BUG请退回正式版,线上正式版本:2.0.7");
  18684. },
  18685. 366: function _(e, t) {
  18686. "use strict";
  18687. var r, o, n;
  18688. Object.defineProperty(t, "__esModule", {
  18689. value: !0
  18690. }), t.rewriteMethodToggle = t.navtypeToggle = t.hookToggle = void 0, (n = t.hookToggle || (t.hookToggle = {})).beforeHooks = "beforeEach", n.afterHooks = "afterEach", n.enterHooks = "beforeEnter", (o = t.navtypeToggle || (t.navtypeToggle = {})).push = "navigateTo", o.replace = "redirectTo", o.replaceAll = "reLaunch", o.pushTab = "switchTab", o.back = "navigateBack", (r = t.rewriteMethodToggle || (t.rewriteMethodToggle = {})).navigateTo = "push", r.navigate = "push", r.redirectTo = "replace", r.reLaunch = "replaceAll", r.switchTab = "pushTab", r.navigateBack = "back";
  18691. },
  18692. 309: function _(e, t) {
  18693. "use strict";
  18694. Object.defineProperty(t, "__esModule", {
  18695. value: !0
  18696. });
  18697. },
  18698. 925: function _(e, t, r) {
  18699. "use strict";
  18700. Object.defineProperty(t, "__esModule", {
  18701. value: !0
  18702. }), t.beforeProxyHook = void 0;
  18703. var o = r(789),
  18704. n = r(883);
  18705. t.beforeProxyHook = function (e, t) {
  18706. var r = e.$options,
  18707. a = t.options.beforeProxyHooks;
  18708. if (null == r) return !1;
  18709. if (null == a) return !1;
  18710. for (var i = Object.keys(a), u = function u(e) {
  18711. var u = i[e],
  18712. l = r[u];
  18713. if (l) for (var c = a[u], s = function s(e) {
  18714. if (l[e].toString().includes("UNI-SIMPLE-ROUTER")) return "continue";
  18715. var r = l.splice(e, 1, function () {
  18716. for (var e = this, n = [], a = 0; a < arguments.length; a++) {
  18717. n[a] = arguments[a];
  18718. }
  18719. var i = "UNI-SIMPLE-ROUTER";
  18720. o.voidFun(i), c ? c.call(this, n, function (t) {
  18721. r.apply(e, t);
  18722. }, t) : r.apply(this, n);
  18723. })[0];
  18724. }, p = 0; p < l.length; p++) {
  18725. s(p);
  18726. } else n.warn("beforeProxyHooks ===> 当前组件不适合" + u + ",或者 hook: " + u + " 不存在,已为你规避处理,可以忽略。", t);
  18727. }, l = 0; l < i.length; l++) {
  18728. u(l);
  18729. }
  18730. return !0;
  18731. };
  18732. },
  18733. 169: function _(e, t, r) {
  18734. "use strict";
  18735. var o = this && this.__rest || function (e, t) {
  18736. var r = {};
  18737. for (var o in e) {
  18738. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  18739. }
  18740. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  18741. var n = 0;
  18742. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  18743. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  18744. }
  18745. }
  18746. return r;
  18747. };
  18748. Object.defineProperty(t, "__esModule", {
  18749. value: !0
  18750. }), t.loopCallHook = t.transitionTo = t.onTriggerEachHook = t.callHook = t.callBeforeRouteLeave = t.HOOKLIST = t.ERRORHOOK = void 0;
  18751. var n = r(789),
  18752. a = r(890),
  18753. i = r(147),
  18754. u = r(369),
  18755. l = r(814);
  18756. function c(e, t, r, o) {
  18757. var a,
  18758. i = n.getUniCachePage(0);
  18759. if (Object.keys(i).length > 0) {
  18760. var u = void 0;
  18761. switch ("h5" === e.options.platform ? u = i.$options.beforeRouteLeave : null != i.$vm && (u = i.$vm.$options.beforeRouteLeave), n.getDataType(u)) {
  18762. case "[object Array]":
  18763. a = (a = u[0]).bind(i);
  18764. break;
  18765. case "[object Function]":
  18766. a = u.bind(i.$vm);
  18767. }
  18768. }
  18769. return s(a, t, r, e, o);
  18770. }
  18771. function s(e, t, r, o, n, a) {
  18772. void 0 === a && (a = !0), null != e && e instanceof Function ? !0 === a ? e(t, r, n, o, !1) : (e(t, r, function () {}, o, !1), n()) : n();
  18773. }
  18774. function p(e, t, r, o, a, i) {
  18775. var u = n.forMatNextToFrom(e, t, r),
  18776. l = u.matTo,
  18777. c = u.matFrom;
  18778. "h5" === e.options.platform ? f(a, 0, i, e, l, c, o) : f(a.slice(0, 4), 0, function () {
  18779. i(function () {
  18780. f(a.slice(4), 0, n.voidFun, e, l, c, o);
  18781. });
  18782. }, e, l, c, o);
  18783. }
  18784. function f(e, r, i, u, c, s, p) {
  18785. var h = n.routesForMapRoute(u, c.path, ["finallyPathMap", "pathMap"]);
  18786. if (e.length - 1 < r) return i();
  18787. var v = e[r],
  18788. y = t.ERRORHOOK[0];
  18789. v(u, c, s, h, function (t) {
  18790. if ("app-plus" === u.options.platform && (!1 !== t && "string" != typeof t && "object" != _typeof(t) || l.tabIndexSelect(c, s)), !1 === t) "h5" === u.options.platform && i(!1), y({
  18791. type: 0,
  18792. msg: "管道函数传递 false 导航被终止!",
  18793. matTo: c,
  18794. matFrom: s,
  18795. nextTo: t
  18796. }, u);else if ("string" == typeof t || "object" == _typeof(t)) {
  18797. var n = p,
  18798. h = t;
  18799. if ("object" == _typeof(t)) {
  18800. var v = t.NAVTYPE;
  18801. h = o(t, ["NAVTYPE"]), null != v && (n = v);
  18802. }
  18803. a.navjump(h, u, n, {
  18804. from: s,
  18805. next: i
  18806. });
  18807. } else null == t ? (r++, f(e, r, i, u, c, s, p)) : y({
  18808. type: 1,
  18809. msg: "管道函数传递未知类型,无法被识别。导航被终止!",
  18810. matTo: c,
  18811. matFrom: s,
  18812. nextTo: t
  18813. }, u);
  18814. });
  18815. }
  18816. t.ERRORHOOK = [function (e, t) {
  18817. return t.lifeCycle.routerErrorHooks[0](e, t);
  18818. }], t.HOOKLIST = [function (e, t, r, o, n) {
  18819. return s(e.lifeCycle.routerBeforeHooks[0], t, r, e, n);
  18820. }, function (e, t, r, o, n) {
  18821. return c(e, t, r, n);
  18822. }, function (e, t, r, o, n) {
  18823. return s(e.lifeCycle.beforeHooks[0], t, r, e, n);
  18824. }, function (e, t, r, o, n) {
  18825. return s(o.beforeEnter, t, r, e, n);
  18826. }, function (e, t, r, o, n) {
  18827. return s(e.lifeCycle.afterHooks[0], t, r, e, n, !1);
  18828. }, function (e, t, r, o, n) {
  18829. return e.$lockStatus = !1, "h5" === e.options.platform && (i.proxyH5Mount(e), u.addKeepAliveInclude(e)), e.runId++, s(e.lifeCycle.routerAfterHooks[0], t, r, e, n, !1);
  18830. }], t.callBeforeRouteLeave = c, t.callHook = s, t.onTriggerEachHook = function (e, r, o, n, a) {
  18831. var i = [];
  18832. switch (n) {
  18833. case "beforeEach":
  18834. i = t.HOOKLIST.slice(0, 3);
  18835. break;
  18836. case "afterEach":
  18837. i = t.HOOKLIST.slice(4);
  18838. break;
  18839. case "beforeEnter":
  18840. i = t.HOOKLIST.slice(3, 4);
  18841. }
  18842. p(o, e, r, "push", i, a);
  18843. }, t.transitionTo = p, t.loopCallHook = f;
  18844. },
  18845. 890: function _(e, t, r) {
  18846. "use strict";
  18847. var o = this && this.__assign || function () {
  18848. return (o = Object.assign || function (e) {
  18849. for (var t, r = 1, o = arguments.length; r < o; r++) {
  18850. for (var n in t = arguments[r]) {
  18851. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  18852. }
  18853. }
  18854. return e;
  18855. }).apply(this, arguments);
  18856. },
  18857. n = this && this.__rest || function (e, t) {
  18858. var r = {};
  18859. for (var o in e) {
  18860. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  18861. }
  18862. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  18863. var n = 0;
  18864. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  18865. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  18866. }
  18867. }
  18868. return r;
  18869. };
  18870. Object.defineProperty(t, "__esModule", {
  18871. value: !0
  18872. }), t.createRoute = t.forceGuardEach = t.backOptionsBuild = t.navjump = t.lockNavjump = void 0;
  18873. var a = r(366),
  18874. i = r(99),
  18875. u = r(789),
  18876. l = r(169),
  18877. c = r(845),
  18878. s = r(169);
  18879. function p(e, t, r, o, n) {
  18880. u.lockDetectWarn(t, e, r, function () {
  18881. "h5" !== t.options.platform && (t.$lockStatus = !0), f(e, t, r, void 0, o, n);
  18882. }, n);
  18883. }
  18884. function f(e, t, r, n, p, f, v) {
  18885. if (void 0 === v && (v = !0), "back" === r) {
  18886. var y = 1;
  18887. if ("string" == typeof e ? y = +e : (y = e.delta || 1, f = o(o({}, f || {}), e)), "h5" === t.options.platform) {
  18888. t.$route.go(-y);
  18889. var g = (f || {
  18890. success: u.voidFun
  18891. }).success || u.voidFun,
  18892. d = (f || {
  18893. complete: u.voidFun
  18894. }).complete || u.voidFun;
  18895. return g({
  18896. errMsg: "navigateBack:ok"
  18897. }), void d({
  18898. errMsg: "navigateBack:ok"
  18899. });
  18900. }
  18901. e = h(t, y, f);
  18902. }
  18903. var m = i.queryPageToMap(e, t).rule;
  18904. m.type = a.navtypeToggle[r];
  18905. var b = u.paramsToQuery(t, m),
  18906. P = i.resolveQuery(b, t);
  18907. if ("h5" === t.options.platform) {
  18908. if ("push" !== r && (r = "replace"), null != n) n.next(o({
  18909. replace: "push" !== r
  18910. }, P));else if ("push" === r && Reflect.has(P, "events")) {
  18911. if (Reflect.has(P, "name")) throw new Error("在h5端上使用 'push'、'navigateTo' 跳转时,如果包含 events 不允许使用 name 跳转,因为 name 实现了动态路由。请更换为 path 或者 url 跳转!");
  18912. uni.navigateTo(P, !0, u.voidFun, p);
  18913. } else t.$route[r](P, P.success || u.voidFun, P.fail || u.voidFun);
  18914. } else {
  18915. var O = {
  18916. path: ""
  18917. };
  18918. if (null == n) {
  18919. var k = u.routesForMapRoute(t, P.path, ["finallyPathMap", "pathMap"]);
  18920. k = u.notRouteTo404(t, k, P, r), P = o(o(o(o({}, k), {
  18921. params: {}
  18922. }), P), {
  18923. path: k.path
  18924. }), O = c.createToFrom(P, t);
  18925. } else O = n.from;
  18926. if (c.createFullPath(P, O), !1 === v) return P;
  18927. l.transitionTo(t, P, O, r, s.HOOKLIST, function (e) {
  18928. uni[a.navtypeToggle[r]](P, !0, e, p);
  18929. });
  18930. }
  18931. }
  18932. function h(e, t, r) {
  18933. void 0 === r && (r = {});
  18934. var n = v(e, t, void 0, o({
  18935. NAVTYPE: "back"
  18936. }, r)),
  18937. a = o(o({}, r), {
  18938. path: n.path,
  18939. query: n.query,
  18940. delta: t
  18941. });
  18942. if ("[object Object]" === u.getDataType(r)) {
  18943. var i = r,
  18944. l = i.animationDuration,
  18945. c = i.animationType;
  18946. null != l && (a.animationDuration = l), null != c && (a.animationType = c);
  18947. var s = r.from;
  18948. null != s && (a.BACKTYPE = s);
  18949. }
  18950. return a;
  18951. }
  18952. function v(e, t, r, l) {
  18953. void 0 === t && (t = 0), void 0 === l && (l = {});
  18954. var c = {
  18955. name: "",
  18956. meta: {},
  18957. path: "",
  18958. fullPath: "",
  18959. NAVTYPE: "",
  18960. query: {},
  18961. params: {},
  18962. BACKTYPE: (r || {
  18963. BACKTYPE: ""
  18964. }).BACKTYPE || ""
  18965. };
  18966. if (19970806 === t) return c;
  18967. if ("h5" === e.options.platform) {
  18968. var s = {
  18969. path: ""
  18970. };
  18971. s = null != r ? r : e.$route.currentRoute;
  18972. var p = u.copyData(s.params);
  18973. delete p.__id__;
  18974. var f = i.parseQuery(o(o({}, p), u.copyData(s.query)), e);
  18975. s = o(o({}, s), {
  18976. query: f
  18977. }), c.path = s.path, c.fullPath = s.fullPath || "", c.query = u.deepDecodeQuery(s.query || {}), c.NAVTYPE = a.rewriteMethodToggle[s.type || "reLaunch"];
  18978. } else {
  18979. var h = {};
  18980. if (null != r) h = o(o({}, r), {
  18981. openType: r.type
  18982. });else {
  18983. var v = u.getUniCachePage(t);
  18984. if (0 === Object.keys(v).length) {
  18985. var y = l.NAVTYPE,
  18986. g = n(l, ["NAVTYPE"]),
  18987. d = "不存在的页面栈,请确保有足够的页面可用,当前 level:" + t;
  18988. throw e.options.routerErrorEach({
  18989. type: 3,
  18990. msg: d,
  18991. NAVTYPE: y,
  18992. level: t,
  18993. uniActualData: g
  18994. }, e), new Error(d);
  18995. }
  18996. var m = v.options || {};
  18997. h = o(o({}, v.$page || {}), {
  18998. query: u.deepDecodeQuery(m),
  18999. fullPath: decodeURIComponent((v.$page || {}).fullPath || "/" + v.route)
  19000. }), "app-plus" !== e.options.platform && (h.path = "/" + v.route);
  19001. }
  19002. var b = h.openType;
  19003. c.query = h.query, c.path = h.path, c.fullPath = h.fullPath, c.NAVTYPE = a.rewriteMethodToggle[b || "reLaunch"];
  19004. }
  19005. var P = u.routesForMapRoute(e, c.path, ["finallyPathMap", "pathMap"]),
  19006. O = o(o({}, c), P);
  19007. return O.query = i.parseQuery(O.query, e), O;
  19008. }
  19009. t.lockNavjump = p, t.navjump = f, t.backOptionsBuild = h, t.forceGuardEach = function (e, t, r) {
  19010. if (void 0 === t && (t = "replaceAll"), void 0 === r && (r = !1), "h5" === e.options.platform) throw new Error("在h5端上使用:forceGuardEach 是无意义的,目前 forceGuardEach 仅支持在非h5端上使用");
  19011. var o = u.getUniCachePage(0);
  19012. 0 === Object.keys(o).length && e.options.routerErrorEach({
  19013. type: 3,
  19014. NAVTYPE: t,
  19015. uniActualData: {},
  19016. level: 0,
  19017. msg: "不存在的页面栈,请确保有足够的页面可用,当前 level:0"
  19018. }, e);
  19019. var n = o,
  19020. a = n.route,
  19021. i = n.options;
  19022. p({
  19023. path: "/" + a,
  19024. query: u.deepDecodeQuery(i || {})
  19025. }, e, t, r);
  19026. }, t.createRoute = v;
  19027. },
  19028. 845: function _(e, t, r) {
  19029. "use strict";
  19030. Object.defineProperty(t, "__esModule", {
  19031. value: !0
  19032. }), t.resetPageHook = t.resetAndCallPageHook = t.proxyPageHook = t.createFullPath = t.createToFrom = void 0;
  19033. var o = r(282),
  19034. n = r(789),
  19035. a = r(890),
  19036. i = r(99);
  19037. function u(e) {
  19038. for (var t = e.proxyHookDeps, r = 0, o = Object.entries(t.hooks); r < o.length; r++) {
  19039. (0, o[r][1].resetHook)();
  19040. }
  19041. }
  19042. t.createToFrom = function (e, t) {
  19043. var r = n.getUniCachePage(0);
  19044. return "[object Array]" === n.getDataType(r) ? n.deepClone(e) : a.createRoute(t);
  19045. }, t.createFullPath = function (e, t) {
  19046. if (null == e.fullPath) {
  19047. var r = i.stringifyQuery(e.query);
  19048. e.fullPath = e.path + r;
  19049. }
  19050. null == t.fullPath && (r = i.stringifyQuery(t.query), t.fullPath = t.path + r);
  19051. }, t.proxyPageHook = function (e, t, r) {
  19052. for (var n = t.proxyHookDeps, a = e.$options, i = function i(_i) {
  19053. var u = o.proxyHookName[_i],
  19054. l = a[u];
  19055. if (l) for (var c = function c(o) {
  19056. if (l[o].toString().includes("UNI-SIMPLE-ROUTER")) return "continue";
  19057. var a = Object.keys(n.hooks).length + 1,
  19058. i = function i() {
  19059. for (var e = [], t = 0; t < arguments.length; t++) {
  19060. e[t] = arguments[t];
  19061. }
  19062. n.resetIndex.push(a), n.options[a] = e;
  19063. },
  19064. u = l.splice(o, 1, i)[0];
  19065. n.hooks[a] = {
  19066. proxyHook: i,
  19067. callHook: function callHook(o) {
  19068. if (t.enterPath.replace(/^\//, "") === o.replace(/^\//, "") || "app" === r) {
  19069. var i = n.options[a];
  19070. u.apply(e, i);
  19071. }
  19072. },
  19073. resetHook: function resetHook() {
  19074. l.splice(o, 1, u);
  19075. }
  19076. };
  19077. }, s = 0; s < l.length; s++) {
  19078. c(s);
  19079. }
  19080. }, u = 0; u < o.proxyHookName.length; u++) {
  19081. i(u);
  19082. }
  19083. }, t.resetAndCallPageHook = function (e, t, r) {
  19084. void 0 === r && (r = !0);
  19085. var o = t.trim().match(/^(\/?[^\?\s]+)(\?[\s\S]*$)?$/);
  19086. if (null == o) throw new Error("还原hook失败。请检查 【" + t + "】 路径是否正确。");
  19087. t = o[1];
  19088. for (var n = e.proxyHookDeps, a = n.resetIndex, i = 0; i < a.length; i++) {
  19089. var l = a[i];
  19090. (0, n.hooks[l].callHook)(t);
  19091. }
  19092. r && u(e);
  19093. }, t.resetPageHook = u;
  19094. },
  19095. 99: function _(e, t, r) {
  19096. "use strict";
  19097. var o = this && this.__assign || function () {
  19098. return (o = Object.assign || function (e) {
  19099. for (var t, r = 1, o = arguments.length; r < o; r++) {
  19100. for (var n in t = arguments[r]) {
  19101. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  19102. }
  19103. }
  19104. return e;
  19105. }).apply(this, arguments);
  19106. };
  19107. Object.defineProperty(t, "__esModule", {
  19108. value: !0
  19109. }), t.stringifyQuery = t.parseQuery = t.resolveQuery = t.queryPageToMap = void 0;
  19110. var n = r(789),
  19111. a = r(169),
  19112. i = r(883),
  19113. u = /[!'()*]/g,
  19114. l = function l(e) {
  19115. return "%" + e.charCodeAt(0).toString(16);
  19116. },
  19117. c = /%2C/g,
  19118. s = function s(e) {
  19119. return encodeURIComponent(e).replace(u, l).replace(c, ",");
  19120. };
  19121. t.queryPageToMap = function (e, t) {
  19122. var r = {},
  19123. i = "",
  19124. u = e.success,
  19125. l = e.fail;
  19126. if ("[object Object]" === n.getDataType(e)) {
  19127. var c = e;
  19128. if (null != c.path) {
  19129. var s = n.urlToJson(c.path),
  19130. p = s.path,
  19131. f = s.query;
  19132. i = n.routesForMapRoute(t, p, ["finallyPathList", "pathMap"]), r = o(o({}, f), e.query || {}), c.path = p, c.query = r, delete e.params;
  19133. } else null != c.name ? null == (i = t.routesMap.nameMap[c.name]) ? i = n.getWildcardRule(t, {
  19134. type: 2,
  19135. msg: "命名路由为:" + c.name + " 的路由,无法在路由表中找到!",
  19136. toRule: e
  19137. }) : (r = e.params || {}, delete e.query) : i = n.getWildcardRule(t, {
  19138. type: 2,
  19139. msg: e + " 解析失败,请检测当前路由表下是否有包含。",
  19140. toRule: e
  19141. });
  19142. } else e = n.urlToJson(e), i = n.routesForMapRoute(t, e.path, ["finallyPathList", "pathMap"]), r = e.query;
  19143. if ("h5" === t.options.platform) {
  19144. n.getRoutePath(i, t).finallyPath.includes(":") && null == e.name && a.ERRORHOOK[0]({
  19145. type: 2,
  19146. msg: "当有设置 alias或者aliasPath 为动态路由时,不允许使用 path 跳转。请使用 name 跳转!",
  19147. route: i
  19148. }, t);
  19149. var h = e.complete,
  19150. v = e.success,
  19151. y = e.fail;
  19152. if ("[object Function]" === n.getDataType(h)) {
  19153. var g = function g(e, t) {
  19154. "[object Function]" === n.getDataType(t) && t.apply(this, e), h.apply(this, e);
  19155. };
  19156. u = function u() {
  19157. for (var e = [], t = 0; t < arguments.length; t++) {
  19158. e[t] = arguments[t];
  19159. }
  19160. g.call(this, e, v);
  19161. }, l = function l() {
  19162. for (var e = [], t = 0; t < arguments.length; t++) {
  19163. e[t] = arguments[t];
  19164. }
  19165. g.call(this, e, y);
  19166. };
  19167. }
  19168. }
  19169. var d = e;
  19170. return "[object Function]" === n.getDataType(d.success) && (d.success = u), "[object Function]" === n.getDataType(d.fail) && (d.fail = l), {
  19171. rule: d,
  19172. route: i,
  19173. query: r
  19174. };
  19175. }, t.resolveQuery = function (e, t) {
  19176. var r = "query";
  19177. null != e.params && (r = "params"), null != e.query && (r = "query");
  19178. var o = n.copyData(e[r] || {}),
  19179. a = t.options.resolveQuery;
  19180. if (a) {
  19181. var u = a(o);
  19182. "[object Object]" !== n.getDataType(u) ? i.warn("请按格式返回参数: resolveQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}", t) : e[r] = u;
  19183. } else {
  19184. if (!n.assertDeepObject(o)) return e;
  19185. var l = JSON.stringify(o);
  19186. e[r] = {
  19187. query: l
  19188. };
  19189. }
  19190. return e;
  19191. }, t.parseQuery = function (e, t) {
  19192. var r = t.options.parseQuery;
  19193. if (r) e = r(n.copyData(e)), "[object Object]" !== n.getDataType(e) && i.warn("请按格式返回参数: parseQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}", t);else if (Reflect.get(e, "query")) {
  19194. var o = Reflect.get(e, "query");
  19195. if ("string" == typeof o) try {
  19196. o = JSON.parse(o);
  19197. } catch (e) {
  19198. i.warn("尝试解析深度对象失败,按原样输出。" + e, t);
  19199. }
  19200. if ("object" == _typeof(o)) return n.deepDecodeQuery(o);
  19201. }
  19202. return e;
  19203. }, t.stringifyQuery = function (e) {
  19204. var t = e ? Object.keys(e).map(function (t) {
  19205. var r = e[t];
  19206. if (void 0 === r) return "";
  19207. if (null === r) return s(t);
  19208. if (Array.isArray(r)) {
  19209. var o = [];
  19210. return r.forEach(function (e) {
  19211. void 0 !== e && (null === e ? o.push(s(t)) : o.push(s(t) + "=" + s(e)));
  19212. }), o.join("&");
  19213. }
  19214. return s(t) + "=" + s(r);
  19215. }).filter(function (e) {
  19216. return e.length > 0;
  19217. }).join("&") : null;
  19218. return t ? "?" + t : "";
  19219. };
  19220. },
  19221. 314: function _(e, t, r) {
  19222. "use strict";
  19223. var o = this && this.__awaiter || function (e, t, r, o) {
  19224. return new (r || (r = Promise))(function (n, a) {
  19225. function i(e) {
  19226. try {
  19227. l(o.next(e));
  19228. } catch (e) {
  19229. a(e);
  19230. }
  19231. }
  19232. function u(e) {
  19233. try {
  19234. l(o.throw(e));
  19235. } catch (e) {
  19236. a(e);
  19237. }
  19238. }
  19239. function l(e) {
  19240. var t;
  19241. e.done ? n(e.value) : (t = e.value, t instanceof r ? t : new r(function (e) {
  19242. e(t);
  19243. })).then(i, u);
  19244. }
  19245. l((o = o.apply(e, t || [])).next());
  19246. });
  19247. },
  19248. n = this && this.__generator || function (e, t) {
  19249. var r,
  19250. o,
  19251. n,
  19252. a,
  19253. i = {
  19254. label: 0,
  19255. sent: function sent() {
  19256. if (1 & n[0]) throw n[1];
  19257. return n[1];
  19258. },
  19259. trys: [],
  19260. ops: []
  19261. };
  19262. return a = {
  19263. next: u(0),
  19264. throw: u(1),
  19265. return: u(2)
  19266. }, "function" == typeof Symbol && (a[Symbol.iterator] = function () {
  19267. return this;
  19268. }), a;
  19269. function u(a) {
  19270. return function (u) {
  19271. return function (a) {
  19272. if (r) throw new TypeError("Generator is already executing.");
  19273. for (; i;) {
  19274. try {
  19275. if (r = 1, o && (n = 2 & a[0] ? o.return : a[0] ? o.throw || ((n = o.return) && n.call(o), 0) : o.next) && !(n = n.call(o, a[1])).done) return n;
  19276. switch (o = 0, n && (a = [2 & a[0], n.value]), a[0]) {
  19277. case 0:
  19278. case 1:
  19279. n = a;
  19280. break;
  19281. case 4:
  19282. return i.label++, {
  19283. value: a[1],
  19284. done: !1
  19285. };
  19286. case 5:
  19287. i.label++, o = a[1], a = [0];
  19288. continue;
  19289. case 7:
  19290. a = i.ops.pop(), i.trys.pop();
  19291. continue;
  19292. default:
  19293. if (!((n = (n = i.trys).length > 0 && n[n.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
  19294. i = 0;
  19295. continue;
  19296. }
  19297. if (3 === a[0] && (!n || a[1] > n[0] && a[1] < n[3])) {
  19298. i.label = a[1];
  19299. break;
  19300. }
  19301. if (6 === a[0] && i.label < n[1]) {
  19302. i.label = n[1], n = a;
  19303. break;
  19304. }
  19305. if (n && i.label < n[2]) {
  19306. i.label = n[2], i.ops.push(a);
  19307. break;
  19308. }
  19309. n[2] && i.ops.pop(), i.trys.pop();
  19310. continue;
  19311. }
  19312. a = t.call(e, i);
  19313. } catch (e) {
  19314. a = [6, e], o = 0;
  19315. } finally {
  19316. r = n = 0;
  19317. }
  19318. }
  19319. if (5 & a[0]) throw a[1];
  19320. return {
  19321. value: a[0] ? a[1] : void 0,
  19322. done: !0
  19323. };
  19324. }([a, u]);
  19325. };
  19326. }
  19327. };
  19328. Object.defineProperty(t, "__esModule", {
  19329. value: !0
  19330. }), t.rewriteMethod = void 0;
  19331. var a = r(366),
  19332. i = r(789),
  19333. u = r(883),
  19334. l = r(809),
  19335. c = r(814),
  19336. s = ["navigateTo", "redirectTo", "reLaunch", "switchTab", "navigateBack"],
  19337. p = {
  19338. navigateTo: function navigateTo() {},
  19339. redirectTo: function redirectTo() {},
  19340. reLaunch: function reLaunch() {},
  19341. switchTab: function switchTab() {},
  19342. navigateBack: function navigateBack() {}
  19343. };
  19344. t.rewriteMethod = function (e) {
  19345. !1 === e.options.keepUniOriginNav && s.forEach(function (t) {
  19346. var r = uni[t];
  19347. p[t] = r, uni[t] = function (s, f, h, v) {
  19348. return void 0 === f && (f = !1), o(this, void 0, void 0, function () {
  19349. return n(this, function (o) {
  19350. switch (o.label) {
  19351. case 0:
  19352. return f ? "app-plus" !== e.options.platform ? [3, 2] : [4, c.HomeNvueSwitchTab(e, s, p.reLaunch)] : [3, 3];
  19353. case 1:
  19354. o.sent(), o.label = 2;
  19355. case 2:
  19356. return l.uniOriginJump(e, r, t, s, h, v), [3, 4];
  19357. case 3:
  19358. "app-plus" === e.options.platform && 0 === Object.keys(e.appMain).length && (e.appMain = {
  19359. NAVTYPE: t,
  19360. path: s.url
  19361. }), function (e, t, r) {
  19362. if ("app-plus" === r.options.platform) {
  19363. var o = null;
  19364. e && (o = e.openType), null != o && "appLaunch" === o && (t = "reLaunch");
  19365. }
  19366. if ("reLaunch" === t && '{"url":"/"}' === JSON.stringify(e) && (u.warn("uni-app 原生方法:reLaunch({url:'/'}) 默认被重写啦!你可以使用 this.$Router.replaceAll() 或者 uni.reLaunch({url:'/?xxx=xxx'})", r), t = "navigateBack", e = {
  19367. from: "backbutton"
  19368. }), "navigateBack" === t) {
  19369. var n = 1;
  19370. null == e && (e = {
  19371. delta: 1
  19372. }), "[object Number]" === i.getDataType(e.delta) && (n = e.delta), r.back(n, e);
  19373. } else {
  19374. var l = a.rewriteMethodToggle[t],
  19375. c = e.url;
  19376. if (!c.startsWith("/")) {
  19377. var s = i.resolveAbsolutePath(c, r);
  19378. c = s, e.url = s;
  19379. }
  19380. if ("switchTab" === t) {
  19381. var p = i.routesForMapRoute(r, c, ["pathMap", "finallyPathList"]),
  19382. f = i.getRoutePath(p, r).finallyPath;
  19383. if ("[object Array]" === i.getDataType(f) && u.warn("uni-app 原生方法跳转路径为:" + c + "。此路为是tab页面时,不允许设置 alias 为数组的情况,并且不能为动态路由!当然你可以通过通配符*解决!", r), "*" === f && u.warn("uni-app 原生方法跳转路径为:" + c + "。在路由表中找不到相关路由表!当然你可以通过通配符*解决!", r), "h5" === r.options.platform) {
  19384. var h = e.success;
  19385. e.success = function () {
  19386. for (var t = [], r = 0; r < arguments.length; r++) {
  19387. t[r] = arguments[r];
  19388. }
  19389. null == h || h.apply(null, t), i.timeOut(150).then(function () {
  19390. var t = e.detail || {};
  19391. if (Object.keys(t).length > 0 && Reflect.has(t, "index")) {
  19392. var r = i.getUniCachePage(0);
  19393. if (0 === Object.keys(r).length) return !1;
  19394. var o = r,
  19395. n = o.$options.onTabItemTap;
  19396. if (n) for (var a = 0; a < n.length; a++) {
  19397. n[a].call(o, t);
  19398. }
  19399. }
  19400. });
  19401. };
  19402. }
  19403. c = f;
  19404. }
  19405. var v = e,
  19406. y = v.events,
  19407. g = v.success,
  19408. d = v.fail,
  19409. m = v.complete,
  19410. b = v.animationType,
  19411. P = {
  19412. path: c,
  19413. events: y,
  19414. success: g,
  19415. fail: d,
  19416. complete: m,
  19417. animationDuration: v.animationDuration,
  19418. animationType: b
  19419. };
  19420. r[l](i.notDeepClearNull(P));
  19421. }
  19422. }(s, t, e), o.label = 4;
  19423. case 4:
  19424. return [2];
  19425. }
  19426. });
  19427. });
  19428. };
  19429. });
  19430. };
  19431. },
  19432. 963: function _(e, t, r) {
  19433. "use strict";
  19434. var o = this && this.__assign || function () {
  19435. return (o = Object.assign || function (e) {
  19436. for (var t, r = 1, o = arguments.length; r < o; r++) {
  19437. for (var n in t = arguments[r]) {
  19438. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  19439. }
  19440. }
  19441. return e;
  19442. }).apply(this, arguments);
  19443. };
  19444. Object.defineProperty(t, "__esModule", {
  19445. value: !0
  19446. }), t.createRouter = t.RouterMount = void 0;
  19447. var n = r(282),
  19448. a = r(789),
  19449. i = r(662),
  19450. u = r(460),
  19451. l = r(890),
  19452. c = r(314),
  19453. s = function s() {},
  19454. p = new Promise(function (e) {
  19455. return s = e;
  19456. });
  19457. t.createRouter = function (e) {
  19458. var t = a.assertNewOptions(e),
  19459. r = {
  19460. options: t,
  19461. mount: [],
  19462. runId: 0,
  19463. Vue: null,
  19464. proxyHookDeps: n.proxyHookDeps,
  19465. appMain: {},
  19466. enterPath: "",
  19467. $route: null,
  19468. $lockStatus: !1,
  19469. routesMap: {},
  19470. lifeCycle: i.registerRouterHooks(n.lifeCycle, t),
  19471. push: function push(e) {
  19472. l.lockNavjump(e, r, "push");
  19473. },
  19474. replace: function replace(e) {
  19475. l.lockNavjump(e, r, "replace");
  19476. },
  19477. replaceAll: function replaceAll(e) {
  19478. l.lockNavjump(e, r, "replaceAll");
  19479. },
  19480. pushTab: function pushTab(e) {
  19481. l.lockNavjump(e, r, "pushTab");
  19482. },
  19483. back: function back(e, t) {
  19484. void 0 === e && (e = 1), "[object Object]" !== a.getDataType(t) ? t = {
  19485. from: "navigateBack"
  19486. } : Reflect.has(t, "from") || (t = o(o({}, t), {
  19487. from: "navigateBack"
  19488. })), l.lockNavjump(e + "", r, "back", void 0, t);
  19489. },
  19490. forceGuardEach: function forceGuardEach(e, t) {
  19491. l.forceGuardEach(r, e, t);
  19492. },
  19493. beforeEach: function beforeEach(e) {
  19494. i.registerEachHooks(r, "beforeHooks", e);
  19495. },
  19496. afterEach: function afterEach(e) {
  19497. i.registerEachHooks(r, "afterHooks", e);
  19498. },
  19499. install: function install(e) {
  19500. r.Vue = e, c.rewriteMethod(this), u.initMixins(e, this), Object.defineProperty(e.prototype, "$Router", {
  19501. get: function get() {
  19502. var e = r;
  19503. return Object.defineProperty(this, "$Router", {
  19504. value: e,
  19505. writable: !1,
  19506. configurable: !1,
  19507. enumerable: !1
  19508. }), Object.seal(e);
  19509. }
  19510. }), Object.defineProperty(e.prototype, "$Route", {
  19511. get: function get() {
  19512. return l.createRoute(r);
  19513. }
  19514. }), Object.defineProperty(e.prototype, "$AppReady", {
  19515. get: function get() {
  19516. return "h5" === r.options.platform ? Promise.resolve() : p;
  19517. },
  19518. set: function set(e) {
  19519. !0 === e && s();
  19520. }
  19521. });
  19522. }
  19523. };
  19524. return a.def(r, "currentRoute", function () {
  19525. return l.createRoute(r);
  19526. }), r.beforeEach(function (e, t, r) {
  19527. return r();
  19528. }), r.afterEach(function () {}), r;
  19529. }, t.RouterMount = function (e, t, r) {
  19530. if (void 0 === r && (r = "#app"), "[object Array]" !== a.getDataType(t.mount)) throw new Error("挂载路由失败,router.app 应该为数组类型。当前类型:" + _typeof(t.mount));
  19531. if (t.mount.push({
  19532. app: e,
  19533. el: r
  19534. }), "h5" === t.options.platform) {
  19535. var o = t.$route;
  19536. o.replace({
  19537. path: o.currentRoute.fullPath
  19538. });
  19539. }
  19540. };
  19541. },
  19542. 809: function _(e, t, r) {
  19543. "use strict";
  19544. var o = this && this.__assign || function () {
  19545. return (o = Object.assign || function (e) {
  19546. for (var t, r = 1, o = arguments.length; r < o; r++) {
  19547. for (var n in t = arguments[r]) {
  19548. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  19549. }
  19550. }
  19551. return e;
  19552. }).apply(this, arguments);
  19553. },
  19554. n = this && this.__awaiter || function (e, t, r, o) {
  19555. return new (r || (r = Promise))(function (n, a) {
  19556. function i(e) {
  19557. try {
  19558. l(o.next(e));
  19559. } catch (e) {
  19560. a(e);
  19561. }
  19562. }
  19563. function u(e) {
  19564. try {
  19565. l(o.throw(e));
  19566. } catch (e) {
  19567. a(e);
  19568. }
  19569. }
  19570. function l(e) {
  19571. var t;
  19572. e.done ? n(e.value) : (t = e.value, t instanceof r ? t : new r(function (e) {
  19573. e(t);
  19574. })).then(i, u);
  19575. }
  19576. l((o = o.apply(e, t || [])).next());
  19577. });
  19578. },
  19579. a = this && this.__generator || function (e, t) {
  19580. var r,
  19581. o,
  19582. n,
  19583. a,
  19584. i = {
  19585. label: 0,
  19586. sent: function sent() {
  19587. if (1 & n[0]) throw n[1];
  19588. return n[1];
  19589. },
  19590. trys: [],
  19591. ops: []
  19592. };
  19593. return a = {
  19594. next: u(0),
  19595. throw: u(1),
  19596. return: u(2)
  19597. }, "function" == typeof Symbol && (a[Symbol.iterator] = function () {
  19598. return this;
  19599. }), a;
  19600. function u(a) {
  19601. return function (u) {
  19602. return function (a) {
  19603. if (r) throw new TypeError("Generator is already executing.");
  19604. for (; i;) {
  19605. try {
  19606. if (r = 1, o && (n = 2 & a[0] ? o.return : a[0] ? o.throw || ((n = o.return) && n.call(o), 0) : o.next) && !(n = n.call(o, a[1])).done) return n;
  19607. switch (o = 0, n && (a = [2 & a[0], n.value]), a[0]) {
  19608. case 0:
  19609. case 1:
  19610. n = a;
  19611. break;
  19612. case 4:
  19613. return i.label++, {
  19614. value: a[1],
  19615. done: !1
  19616. };
  19617. case 5:
  19618. i.label++, o = a[1], a = [0];
  19619. continue;
  19620. case 7:
  19621. a = i.ops.pop(), i.trys.pop();
  19622. continue;
  19623. default:
  19624. if (!((n = (n = i.trys).length > 0 && n[n.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
  19625. i = 0;
  19626. continue;
  19627. }
  19628. if (3 === a[0] && (!n || a[1] > n[0] && a[1] < n[3])) {
  19629. i.label = a[1];
  19630. break;
  19631. }
  19632. if (6 === a[0] && i.label < n[1]) {
  19633. i.label = n[1], n = a;
  19634. break;
  19635. }
  19636. if (n && i.label < n[2]) {
  19637. i.label = n[2], i.ops.push(a);
  19638. break;
  19639. }
  19640. n[2] && i.ops.pop(), i.trys.pop();
  19641. continue;
  19642. }
  19643. a = t.call(e, i);
  19644. } catch (e) {
  19645. a = [6, e], o = 0;
  19646. } finally {
  19647. r = n = 0;
  19648. }
  19649. }
  19650. if (5 & a[0]) throw a[1];
  19651. return {
  19652. value: a[0] ? a[1] : void 0,
  19653. done: !0
  19654. };
  19655. }([a, u]);
  19656. };
  19657. }
  19658. },
  19659. i = this && this.__rest || function (e, t) {
  19660. var r = {};
  19661. for (var o in e) {
  19662. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  19663. }
  19664. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  19665. var n = 0;
  19666. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  19667. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  19668. }
  19669. }
  19670. return r;
  19671. };
  19672. Object.defineProperty(t, "__esModule", {
  19673. value: !0
  19674. }), t.formatOriginURLQuery = t.uniOriginJump = void 0;
  19675. var u = r(99),
  19676. l = r(789),
  19677. c = r(282),
  19678. s = r(845),
  19679. p = 0,
  19680. f = "reLaunch";
  19681. function h(e, t, r) {
  19682. var n,
  19683. a = t.url,
  19684. i = t.path,
  19685. c = t.query,
  19686. s = t.animationType,
  19687. p = t.animationDuration,
  19688. f = t.events,
  19689. h = t.success,
  19690. v = t.fail,
  19691. y = t.complete,
  19692. g = t.delta,
  19693. d = t.animation,
  19694. m = u.stringifyQuery(c || {}),
  19695. b = "" === m ? i || a : (i || a) + m,
  19696. P = {};
  19697. return "app-plus" === e.options.platform && "navigateBack" !== r && (P = (null === (n = e.options.APP) || void 0 === n ? void 0 : n.animation) || {}, P = o(o({}, P), d || {})), l.notDeepClearNull({
  19698. delta: g,
  19699. url: b,
  19700. animationType: s || P.animationType,
  19701. animationDuration: p || P.animationDuration,
  19702. events: f,
  19703. success: h,
  19704. fail: v,
  19705. complete: y
  19706. });
  19707. }
  19708. t.uniOriginJump = function (e, t, r, u, v, y) {
  19709. var g = h(e, u, r),
  19710. d = g.complete,
  19711. m = i(g, ["complete"]),
  19712. b = e.options.platform;
  19713. null != y && !1 === y ? (0 === p && (p++, "h5" !== b && (s.resetAndCallPageHook(e, m.url), e.Vue.prototype.$AppReady = !0)), d && d.apply(null, {
  19714. msg: "forceGuardEach强制触发并且不执行跳转"
  19715. }), v && v.apply(null, {
  19716. msg: "forceGuardEach强制触发并且不执行跳转"
  19717. })) : (0 === p && ("app-plus" === b ? s.resetAndCallPageHook(e, m.url) : new RegExp(c.mpPlatformReg, "g").test(b) && s.resetAndCallPageHook(e, m.url, !1)), t(o(o({}, m), {
  19718. from: u.BACKTYPE,
  19719. complete: function complete() {
  19720. for (var t, o, i, u, h = [], y = 0; y < arguments.length; y++) {
  19721. h[y] = arguments[y];
  19722. }
  19723. return n(this, void 0, void 0, function () {
  19724. var n, y, g;
  19725. return a(this, function (a) {
  19726. switch (a.label) {
  19727. case 0:
  19728. return 0 === p && (p++, "h5" !== b && (new RegExp(c.mpPlatformReg, "g").test(b) && s.resetPageHook(e), e.Vue.prototype.$AppReady = !0, "app-plus" === b && ((n = plus.nativeObj.View.getViewById("router-loadding")) && n.close(), (y = null === (t = e.options.APP) || void 0 === t ? void 0 : t.launchedHook) && y()))), g = 0, new RegExp(c.mpPlatformReg, "g").test(b) ? g = null === (o = e.options.applet) || void 0 === o ? void 0 : o.animationDuration : "app-plus" === b && "navigateBack" === r && "navigateTo" === f && (g = null === (u = null === (i = e.options.APP) || void 0 === i ? void 0 : i.animation) || void 0 === u ? void 0 : u.animationDuration), "navigateTo" !== r && "navigateBack" !== r || 0 === g ? [3, 2] : [4, l.timeOut(g)];
  19729. case 1:
  19730. a.sent(), a.label = 2;
  19731. case 2:
  19732. return f = r, d && d.apply(null, h), v && v.apply(null, h), [2];
  19733. }
  19734. });
  19735. });
  19736. }
  19737. })));
  19738. }, t.formatOriginURLQuery = h;
  19739. }
  19740. }, t = {}, function r(o) {
  19741. if (t[o]) return t[o].exports;
  19742. var n = t[o] = {
  19743. exports: {}
  19744. };
  19745. return e[o].call(n.exports, n, n.exports, r), n.exports;
  19746. }(607);
  19747. var e, t;
  19748. });
  19749. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! (webpack)/buildin/module.js */ 162)(module)))
  19750. /***/ }),
  19751. /* 162 */
  19752. /*!***********************************!*\
  19753. !*** (webpack)/buildin/module.js ***!
  19754. \***********************************/
  19755. /*! no static exports found */
  19756. /***/ (function(module, exports) {
  19757. module.exports = function(module) {
  19758. if (!module.webpackPolyfill) {
  19759. module.deprecate = function() {};
  19760. module.paths = [];
  19761. // module.parent = undefined by default
  19762. if (!module.children) module.children = [];
  19763. Object.defineProperty(module, "loaded", {
  19764. enumerable: true,
  19765. get: function() {
  19766. return module.l;
  19767. }
  19768. });
  19769. Object.defineProperty(module, "id", {
  19770. enumerable: true,
  19771. get: function() {
  19772. return module.i;
  19773. }
  19774. });
  19775. module.webpackPolyfill = 1;
  19776. }
  19777. return module;
  19778. };
  19779. /***/ }),
  19780. /* 163 */
  19781. /*!*******************************************************************************!*\
  19782. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/utils/auth.js ***!
  19783. \*******************************************************************************/
  19784. /*! no static exports found */
  19785. /***/ (function(module, exports, __webpack_require__) {
  19786. "use strict";
  19787. /* WEBPACK VAR INJECTION */(function(uni) {
  19788. Object.defineProperty(exports, "__esModule", {
  19789. value: true
  19790. });
  19791. exports.getToken = getToken;
  19792. exports.removeToken = removeToken;
  19793. exports.setToken = setToken;
  19794. var TokenKey = 'adminToken';
  19795. function getToken() {
  19796. return uni.getStorageSync(TokenKey);
  19797. }
  19798. function setToken(token) {
  19799. return uni.setStorageSync(TokenKey, token);
  19800. }
  19801. function removeToken() {
  19802. return uni.removeStorageSync(TokenKey);
  19803. }
  19804. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19805. /***/ }),
  19806. /* 164 */
  19807. /*!********************************************************************************!*\
  19808. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/store/index.js ***!
  19809. \********************************************************************************/
  19810. /*! no static exports found */
  19811. /***/ (function(module, exports, __webpack_require__) {
  19812. "use strict";
  19813. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19814. Object.defineProperty(exports, "__esModule", {
  19815. value: true
  19816. });
  19817. exports.default = void 0;
  19818. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  19819. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 165));
  19820. var _user = _interopRequireDefault(__webpack_require__(/*! ./modules/user */ 166));
  19821. var _getters = _interopRequireDefault(__webpack_require__(/*! ./getters */ 171));
  19822. _vue.default.use(_vuex.default);
  19823. var _default = new _vuex.default.Store({
  19824. modules: {
  19825. user: _user.default
  19826. },
  19827. getters: _getters.default
  19828. });
  19829. exports.default = _default;
  19830. /***/ }),
  19831. /* 165 */
  19832. /*!**************************************************************************************!*\
  19833. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  19834. \**************************************************************************************/
  19835. /*! no static exports found */
  19836. /***/ (function(module, exports, __webpack_require__) {
  19837. "use strict";
  19838. /* WEBPACK VAR INJECTION */(function(global) {/*!
  19839. * vuex v3.6.2
  19840. * (c) 2021 Evan You
  19841. * @license MIT
  19842. */
  19843. function applyMixin (Vue) {
  19844. var version = Number(Vue.version.split('.')[0]);
  19845. if (version >= 2) {
  19846. Vue.mixin({ beforeCreate: vuexInit });
  19847. } else {
  19848. // override init and inject vuex init procedure
  19849. // for 1.x backwards compatibility.
  19850. var _init = Vue.prototype._init;
  19851. Vue.prototype._init = function (options) {
  19852. if ( options === void 0 ) options = {};
  19853. options.init = options.init
  19854. ? [vuexInit].concat(options.init)
  19855. : vuexInit;
  19856. _init.call(this, options);
  19857. };
  19858. }
  19859. /**
  19860. * Vuex init hook, injected into each instances init hooks list.
  19861. */
  19862. function vuexInit () {
  19863. var options = this.$options;
  19864. // store injection
  19865. if (options.store) {
  19866. this.$store = typeof options.store === 'function'
  19867. ? options.store()
  19868. : options.store;
  19869. } else if (options.parent && options.parent.$store) {
  19870. this.$store = options.parent.$store;
  19871. }
  19872. }
  19873. }
  19874. var target = typeof window !== 'undefined'
  19875. ? window
  19876. : typeof global !== 'undefined'
  19877. ? global
  19878. : {};
  19879. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  19880. function devtoolPlugin (store) {
  19881. if (!devtoolHook) { return }
  19882. store._devtoolHook = devtoolHook;
  19883. devtoolHook.emit('vuex:init', store);
  19884. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  19885. store.replaceState(targetState);
  19886. });
  19887. store.subscribe(function (mutation, state) {
  19888. devtoolHook.emit('vuex:mutation', mutation, state);
  19889. }, { prepend: true });
  19890. store.subscribeAction(function (action, state) {
  19891. devtoolHook.emit('vuex:action', action, state);
  19892. }, { prepend: true });
  19893. }
  19894. /**
  19895. * Get the first item that pass the test
  19896. * by second argument function
  19897. *
  19898. * @param {Array} list
  19899. * @param {Function} f
  19900. * @return {*}
  19901. */
  19902. function find (list, f) {
  19903. return list.filter(f)[0]
  19904. }
  19905. /**
  19906. * Deep copy the given object considering circular structure.
  19907. * This function caches all nested objects and its copies.
  19908. * If it detects circular structure, use cached copy to avoid infinite loop.
  19909. *
  19910. * @param {*} obj
  19911. * @param {Array<Object>} cache
  19912. * @return {*}
  19913. */
  19914. function deepCopy (obj, cache) {
  19915. if ( cache === void 0 ) cache = [];
  19916. // just return if obj is immutable value
  19917. if (obj === null || typeof obj !== 'object') {
  19918. return obj
  19919. }
  19920. // if obj is hit, it is in circular structure
  19921. var hit = find(cache, function (c) { return c.original === obj; });
  19922. if (hit) {
  19923. return hit.copy
  19924. }
  19925. var copy = Array.isArray(obj) ? [] : {};
  19926. // put the copy into cache at first
  19927. // because we want to refer it in recursive deepCopy
  19928. cache.push({
  19929. original: obj,
  19930. copy: copy
  19931. });
  19932. Object.keys(obj).forEach(function (key) {
  19933. copy[key] = deepCopy(obj[key], cache);
  19934. });
  19935. return copy
  19936. }
  19937. /**
  19938. * forEach for object
  19939. */
  19940. function forEachValue (obj, fn) {
  19941. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  19942. }
  19943. function isObject (obj) {
  19944. return obj !== null && typeof obj === 'object'
  19945. }
  19946. function isPromise (val) {
  19947. return val && typeof val.then === 'function'
  19948. }
  19949. function assert (condition, msg) {
  19950. if (!condition) { throw new Error(("[vuex] " + msg)) }
  19951. }
  19952. function partial (fn, arg) {
  19953. return function () {
  19954. return fn(arg)
  19955. }
  19956. }
  19957. // Base data struct for store's module, package with some attribute and method
  19958. var Module = function Module (rawModule, runtime) {
  19959. this.runtime = runtime;
  19960. // Store some children item
  19961. this._children = Object.create(null);
  19962. // Store the origin module object which passed by programmer
  19963. this._rawModule = rawModule;
  19964. var rawState = rawModule.state;
  19965. // Store the origin module's state
  19966. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  19967. };
  19968. var prototypeAccessors = { namespaced: { configurable: true } };
  19969. prototypeAccessors.namespaced.get = function () {
  19970. return !!this._rawModule.namespaced
  19971. };
  19972. Module.prototype.addChild = function addChild (key, module) {
  19973. this._children[key] = module;
  19974. };
  19975. Module.prototype.removeChild = function removeChild (key) {
  19976. delete this._children[key];
  19977. };
  19978. Module.prototype.getChild = function getChild (key) {
  19979. return this._children[key]
  19980. };
  19981. Module.prototype.hasChild = function hasChild (key) {
  19982. return key in this._children
  19983. };
  19984. Module.prototype.update = function update (rawModule) {
  19985. this._rawModule.namespaced = rawModule.namespaced;
  19986. if (rawModule.actions) {
  19987. this._rawModule.actions = rawModule.actions;
  19988. }
  19989. if (rawModule.mutations) {
  19990. this._rawModule.mutations = rawModule.mutations;
  19991. }
  19992. if (rawModule.getters) {
  19993. this._rawModule.getters = rawModule.getters;
  19994. }
  19995. };
  19996. Module.prototype.forEachChild = function forEachChild (fn) {
  19997. forEachValue(this._children, fn);
  19998. };
  19999. Module.prototype.forEachGetter = function forEachGetter (fn) {
  20000. if (this._rawModule.getters) {
  20001. forEachValue(this._rawModule.getters, fn);
  20002. }
  20003. };
  20004. Module.prototype.forEachAction = function forEachAction (fn) {
  20005. if (this._rawModule.actions) {
  20006. forEachValue(this._rawModule.actions, fn);
  20007. }
  20008. };
  20009. Module.prototype.forEachMutation = function forEachMutation (fn) {
  20010. if (this._rawModule.mutations) {
  20011. forEachValue(this._rawModule.mutations, fn);
  20012. }
  20013. };
  20014. Object.defineProperties( Module.prototype, prototypeAccessors );
  20015. var ModuleCollection = function ModuleCollection (rawRootModule) {
  20016. // register root module (Vuex.Store options)
  20017. this.register([], rawRootModule, false);
  20018. };
  20019. ModuleCollection.prototype.get = function get (path) {
  20020. return path.reduce(function (module, key) {
  20021. return module.getChild(key)
  20022. }, this.root)
  20023. };
  20024. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  20025. var module = this.root;
  20026. return path.reduce(function (namespace, key) {
  20027. module = module.getChild(key);
  20028. return namespace + (module.namespaced ? key + '/' : '')
  20029. }, '')
  20030. };
  20031. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  20032. update([], this.root, rawRootModule);
  20033. };
  20034. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  20035. var this$1 = this;
  20036. if ( runtime === void 0 ) runtime = true;
  20037. if ((true)) {
  20038. assertRawModule(path, rawModule);
  20039. }
  20040. var newModule = new Module(rawModule, runtime);
  20041. if (path.length === 0) {
  20042. this.root = newModule;
  20043. } else {
  20044. var parent = this.get(path.slice(0, -1));
  20045. parent.addChild(path[path.length - 1], newModule);
  20046. }
  20047. // register nested modules
  20048. if (rawModule.modules) {
  20049. forEachValue(rawModule.modules, function (rawChildModule, key) {
  20050. this$1.register(path.concat(key), rawChildModule, runtime);
  20051. });
  20052. }
  20053. };
  20054. ModuleCollection.prototype.unregister = function unregister (path) {
  20055. var parent = this.get(path.slice(0, -1));
  20056. var key = path[path.length - 1];
  20057. var child = parent.getChild(key);
  20058. if (!child) {
  20059. if ((true)) {
  20060. console.warn(
  20061. "[vuex] trying to unregister module '" + key + "', which is " +
  20062. "not registered"
  20063. );
  20064. }
  20065. return
  20066. }
  20067. if (!child.runtime) {
  20068. return
  20069. }
  20070. parent.removeChild(key);
  20071. };
  20072. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  20073. var parent = this.get(path.slice(0, -1));
  20074. var key = path[path.length - 1];
  20075. if (parent) {
  20076. return parent.hasChild(key)
  20077. }
  20078. return false
  20079. };
  20080. function update (path, targetModule, newModule) {
  20081. if ((true)) {
  20082. assertRawModule(path, newModule);
  20083. }
  20084. // update target module
  20085. targetModule.update(newModule);
  20086. // update nested modules
  20087. if (newModule.modules) {
  20088. for (var key in newModule.modules) {
  20089. if (!targetModule.getChild(key)) {
  20090. if ((true)) {
  20091. console.warn(
  20092. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  20093. 'manual reload is needed'
  20094. );
  20095. }
  20096. return
  20097. }
  20098. update(
  20099. path.concat(key),
  20100. targetModule.getChild(key),
  20101. newModule.modules[key]
  20102. );
  20103. }
  20104. }
  20105. }
  20106. var functionAssert = {
  20107. assert: function (value) { return typeof value === 'function'; },
  20108. expected: 'function'
  20109. };
  20110. var objectAssert = {
  20111. assert: function (value) { return typeof value === 'function' ||
  20112. (typeof value === 'object' && typeof value.handler === 'function'); },
  20113. expected: 'function or object with "handler" function'
  20114. };
  20115. var assertTypes = {
  20116. getters: functionAssert,
  20117. mutations: functionAssert,
  20118. actions: objectAssert
  20119. };
  20120. function assertRawModule (path, rawModule) {
  20121. Object.keys(assertTypes).forEach(function (key) {
  20122. if (!rawModule[key]) { return }
  20123. var assertOptions = assertTypes[key];
  20124. forEachValue(rawModule[key], function (value, type) {
  20125. assert(
  20126. assertOptions.assert(value),
  20127. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  20128. );
  20129. });
  20130. });
  20131. }
  20132. function makeAssertionMessage (path, key, type, value, expected) {
  20133. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  20134. if (path.length > 0) {
  20135. buf += " in module \"" + (path.join('.')) + "\"";
  20136. }
  20137. buf += " is " + (JSON.stringify(value)) + ".";
  20138. return buf
  20139. }
  20140. var Vue; // bind on install
  20141. var Store = function Store (options) {
  20142. var this$1 = this;
  20143. if ( options === void 0 ) options = {};
  20144. // Auto install if it is not done yet and `window` has `Vue`.
  20145. // To allow users to avoid auto-installation in some cases,
  20146. // this code should be placed here. See #731
  20147. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  20148. install(window.Vue);
  20149. }
  20150. if ((true)) {
  20151. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  20152. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  20153. assert(this instanceof Store, "store must be called with the new operator.");
  20154. }
  20155. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  20156. var strict = options.strict; if ( strict === void 0 ) strict = false;
  20157. // store internal state
  20158. this._committing = false;
  20159. this._actions = Object.create(null);
  20160. this._actionSubscribers = [];
  20161. this._mutations = Object.create(null);
  20162. this._wrappedGetters = Object.create(null);
  20163. this._modules = new ModuleCollection(options);
  20164. this._modulesNamespaceMap = Object.create(null);
  20165. this._subscribers = [];
  20166. this._watcherVM = new Vue();
  20167. this._makeLocalGettersCache = Object.create(null);
  20168. // bind commit and dispatch to self
  20169. var store = this;
  20170. var ref = this;
  20171. var dispatch = ref.dispatch;
  20172. var commit = ref.commit;
  20173. this.dispatch = function boundDispatch (type, payload) {
  20174. return dispatch.call(store, type, payload)
  20175. };
  20176. this.commit = function boundCommit (type, payload, options) {
  20177. return commit.call(store, type, payload, options)
  20178. };
  20179. // strict mode
  20180. this.strict = strict;
  20181. var state = this._modules.root.state;
  20182. // init root module.
  20183. // this also recursively registers all sub-modules
  20184. // and collects all module getters inside this._wrappedGetters
  20185. installModule(this, state, [], this._modules.root);
  20186. // initialize the store vm, which is responsible for the reactivity
  20187. // (also registers _wrappedGetters as computed properties)
  20188. resetStoreVM(this, state);
  20189. // apply plugins
  20190. plugins.forEach(function (plugin) { return plugin(this$1); });
  20191. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  20192. if (useDevtools) {
  20193. devtoolPlugin(this);
  20194. }
  20195. };
  20196. var prototypeAccessors$1 = { state: { configurable: true } };
  20197. prototypeAccessors$1.state.get = function () {
  20198. return this._vm._data.$$state
  20199. };
  20200. prototypeAccessors$1.state.set = function (v) {
  20201. if ((true)) {
  20202. assert(false, "use store.replaceState() to explicit replace store state.");
  20203. }
  20204. };
  20205. Store.prototype.commit = function commit (_type, _payload, _options) {
  20206. var this$1 = this;
  20207. // check object-style commit
  20208. var ref = unifyObjectStyle(_type, _payload, _options);
  20209. var type = ref.type;
  20210. var payload = ref.payload;
  20211. var options = ref.options;
  20212. var mutation = { type: type, payload: payload };
  20213. var entry = this._mutations[type];
  20214. if (!entry) {
  20215. if ((true)) {
  20216. console.error(("[vuex] unknown mutation type: " + type));
  20217. }
  20218. return
  20219. }
  20220. this._withCommit(function () {
  20221. entry.forEach(function commitIterator (handler) {
  20222. handler(payload);
  20223. });
  20224. });
  20225. this._subscribers
  20226. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  20227. .forEach(function (sub) { return sub(mutation, this$1.state); });
  20228. if (
  20229. ( true) &&
  20230. options && options.silent
  20231. ) {
  20232. console.warn(
  20233. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  20234. 'Use the filter functionality in the vue-devtools'
  20235. );
  20236. }
  20237. };
  20238. Store.prototype.dispatch = function dispatch (_type, _payload) {
  20239. var this$1 = this;
  20240. // check object-style dispatch
  20241. var ref = unifyObjectStyle(_type, _payload);
  20242. var type = ref.type;
  20243. var payload = ref.payload;
  20244. var action = { type: type, payload: payload };
  20245. var entry = this._actions[type];
  20246. if (!entry) {
  20247. if ((true)) {
  20248. console.error(("[vuex] unknown action type: " + type));
  20249. }
  20250. return
  20251. }
  20252. try {
  20253. this._actionSubscribers
  20254. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  20255. .filter(function (sub) { return sub.before; })
  20256. .forEach(function (sub) { return sub.before(action, this$1.state); });
  20257. } catch (e) {
  20258. if ((true)) {
  20259. console.warn("[vuex] error in before action subscribers: ");
  20260. console.error(e);
  20261. }
  20262. }
  20263. var result = entry.length > 1
  20264. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  20265. : entry[0](payload);
  20266. return new Promise(function (resolve, reject) {
  20267. result.then(function (res) {
  20268. try {
  20269. this$1._actionSubscribers
  20270. .filter(function (sub) { return sub.after; })
  20271. .forEach(function (sub) { return sub.after(action, this$1.state); });
  20272. } catch (e) {
  20273. if ((true)) {
  20274. console.warn("[vuex] error in after action subscribers: ");
  20275. console.error(e);
  20276. }
  20277. }
  20278. resolve(res);
  20279. }, function (error) {
  20280. try {
  20281. this$1._actionSubscribers
  20282. .filter(function (sub) { return sub.error; })
  20283. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  20284. } catch (e) {
  20285. if ((true)) {
  20286. console.warn("[vuex] error in error action subscribers: ");
  20287. console.error(e);
  20288. }
  20289. }
  20290. reject(error);
  20291. });
  20292. })
  20293. };
  20294. Store.prototype.subscribe = function subscribe (fn, options) {
  20295. return genericSubscribe(fn, this._subscribers, options)
  20296. };
  20297. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  20298. var subs = typeof fn === 'function' ? { before: fn } : fn;
  20299. return genericSubscribe(subs, this._actionSubscribers, options)
  20300. };
  20301. Store.prototype.watch = function watch (getter, cb, options) {
  20302. var this$1 = this;
  20303. if ((true)) {
  20304. assert(typeof getter === 'function', "store.watch only accepts a function.");
  20305. }
  20306. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  20307. };
  20308. Store.prototype.replaceState = function replaceState (state) {
  20309. var this$1 = this;
  20310. this._withCommit(function () {
  20311. this$1._vm._data.$$state = state;
  20312. });
  20313. };
  20314. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  20315. if ( options === void 0 ) options = {};
  20316. if (typeof path === 'string') { path = [path]; }
  20317. if ((true)) {
  20318. assert(Array.isArray(path), "module path must be a string or an Array.");
  20319. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  20320. }
  20321. this._modules.register(path, rawModule);
  20322. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  20323. // reset store to update getters...
  20324. resetStoreVM(this, this.state);
  20325. };
  20326. Store.prototype.unregisterModule = function unregisterModule (path) {
  20327. var this$1 = this;
  20328. if (typeof path === 'string') { path = [path]; }
  20329. if ((true)) {
  20330. assert(Array.isArray(path), "module path must be a string or an Array.");
  20331. }
  20332. this._modules.unregister(path);
  20333. this._withCommit(function () {
  20334. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  20335. Vue.delete(parentState, path[path.length - 1]);
  20336. });
  20337. resetStore(this);
  20338. };
  20339. Store.prototype.hasModule = function hasModule (path) {
  20340. if (typeof path === 'string') { path = [path]; }
  20341. if ((true)) {
  20342. assert(Array.isArray(path), "module path must be a string or an Array.");
  20343. }
  20344. return this._modules.isRegistered(path)
  20345. };
  20346. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  20347. this._modules.update(newOptions);
  20348. resetStore(this, true);
  20349. };
  20350. Store.prototype._withCommit = function _withCommit (fn) {
  20351. var committing = this._committing;
  20352. this._committing = true;
  20353. fn();
  20354. this._committing = committing;
  20355. };
  20356. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  20357. function genericSubscribe (fn, subs, options) {
  20358. if (subs.indexOf(fn) < 0) {
  20359. options && options.prepend
  20360. ? subs.unshift(fn)
  20361. : subs.push(fn);
  20362. }
  20363. return function () {
  20364. var i = subs.indexOf(fn);
  20365. if (i > -1) {
  20366. subs.splice(i, 1);
  20367. }
  20368. }
  20369. }
  20370. function resetStore (store, hot) {
  20371. store._actions = Object.create(null);
  20372. store._mutations = Object.create(null);
  20373. store._wrappedGetters = Object.create(null);
  20374. store._modulesNamespaceMap = Object.create(null);
  20375. var state = store.state;
  20376. // init all modules
  20377. installModule(store, state, [], store._modules.root, true);
  20378. // reset vm
  20379. resetStoreVM(store, state, hot);
  20380. }
  20381. function resetStoreVM (store, state, hot) {
  20382. var oldVm = store._vm;
  20383. // bind store public getters
  20384. store.getters = {};
  20385. // reset local getters cache
  20386. store._makeLocalGettersCache = Object.create(null);
  20387. var wrappedGetters = store._wrappedGetters;
  20388. var computed = {};
  20389. forEachValue(wrappedGetters, function (fn, key) {
  20390. // use computed to leverage its lazy-caching mechanism
  20391. // direct inline function use will lead to closure preserving oldVm.
  20392. // using partial to return function with only arguments preserved in closure environment.
  20393. computed[key] = partial(fn, store);
  20394. Object.defineProperty(store.getters, key, {
  20395. get: function () { return store._vm[key]; },
  20396. enumerable: true // for local getters
  20397. });
  20398. });
  20399. // use a Vue instance to store the state tree
  20400. // suppress warnings just in case the user has added
  20401. // some funky global mixins
  20402. var silent = Vue.config.silent;
  20403. Vue.config.silent = true;
  20404. store._vm = new Vue({
  20405. data: {
  20406. $$state: state
  20407. },
  20408. computed: computed
  20409. });
  20410. Vue.config.silent = silent;
  20411. // enable strict mode for new vm
  20412. if (store.strict) {
  20413. enableStrictMode(store);
  20414. }
  20415. if (oldVm) {
  20416. if (hot) {
  20417. // dispatch changes in all subscribed watchers
  20418. // to force getter re-evaluation for hot reloading.
  20419. store._withCommit(function () {
  20420. oldVm._data.$$state = null;
  20421. });
  20422. }
  20423. Vue.nextTick(function () { return oldVm.$destroy(); });
  20424. }
  20425. }
  20426. function installModule (store, rootState, path, module, hot) {
  20427. var isRoot = !path.length;
  20428. var namespace = store._modules.getNamespace(path);
  20429. // register in namespace map
  20430. if (module.namespaced) {
  20431. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  20432. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  20433. }
  20434. store._modulesNamespaceMap[namespace] = module;
  20435. }
  20436. // set state
  20437. if (!isRoot && !hot) {
  20438. var parentState = getNestedState(rootState, path.slice(0, -1));
  20439. var moduleName = path[path.length - 1];
  20440. store._withCommit(function () {
  20441. if ((true)) {
  20442. if (moduleName in parentState) {
  20443. console.warn(
  20444. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  20445. );
  20446. }
  20447. }
  20448. Vue.set(parentState, moduleName, module.state);
  20449. });
  20450. }
  20451. var local = module.context = makeLocalContext(store, namespace, path);
  20452. module.forEachMutation(function (mutation, key) {
  20453. var namespacedType = namespace + key;
  20454. registerMutation(store, namespacedType, mutation, local);
  20455. });
  20456. module.forEachAction(function (action, key) {
  20457. var type = action.root ? key : namespace + key;
  20458. var handler = action.handler || action;
  20459. registerAction(store, type, handler, local);
  20460. });
  20461. module.forEachGetter(function (getter, key) {
  20462. var namespacedType = namespace + key;
  20463. registerGetter(store, namespacedType, getter, local);
  20464. });
  20465. module.forEachChild(function (child, key) {
  20466. installModule(store, rootState, path.concat(key), child, hot);
  20467. });
  20468. }
  20469. /**
  20470. * make localized dispatch, commit, getters and state
  20471. * if there is no namespace, just use root ones
  20472. */
  20473. function makeLocalContext (store, namespace, path) {
  20474. var noNamespace = namespace === '';
  20475. var local = {
  20476. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  20477. var args = unifyObjectStyle(_type, _payload, _options);
  20478. var payload = args.payload;
  20479. var options = args.options;
  20480. var type = args.type;
  20481. if (!options || !options.root) {
  20482. type = namespace + type;
  20483. if (( true) && !store._actions[type]) {
  20484. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  20485. return
  20486. }
  20487. }
  20488. return store.dispatch(type, payload)
  20489. },
  20490. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  20491. var args = unifyObjectStyle(_type, _payload, _options);
  20492. var payload = args.payload;
  20493. var options = args.options;
  20494. var type = args.type;
  20495. if (!options || !options.root) {
  20496. type = namespace + type;
  20497. if (( true) && !store._mutations[type]) {
  20498. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  20499. return
  20500. }
  20501. }
  20502. store.commit(type, payload, options);
  20503. }
  20504. };
  20505. // getters and state object must be gotten lazily
  20506. // because they will be changed by vm update
  20507. Object.defineProperties(local, {
  20508. getters: {
  20509. get: noNamespace
  20510. ? function () { return store.getters; }
  20511. : function () { return makeLocalGetters(store, namespace); }
  20512. },
  20513. state: {
  20514. get: function () { return getNestedState(store.state, path); }
  20515. }
  20516. });
  20517. return local
  20518. }
  20519. function makeLocalGetters (store, namespace) {
  20520. if (!store._makeLocalGettersCache[namespace]) {
  20521. var gettersProxy = {};
  20522. var splitPos = namespace.length;
  20523. Object.keys(store.getters).forEach(function (type) {
  20524. // skip if the target getter is not match this namespace
  20525. if (type.slice(0, splitPos) !== namespace) { return }
  20526. // extract local getter type
  20527. var localType = type.slice(splitPos);
  20528. // Add a port to the getters proxy.
  20529. // Define as getter property because
  20530. // we do not want to evaluate the getters in this time.
  20531. Object.defineProperty(gettersProxy, localType, {
  20532. get: function () { return store.getters[type]; },
  20533. enumerable: true
  20534. });
  20535. });
  20536. store._makeLocalGettersCache[namespace] = gettersProxy;
  20537. }
  20538. return store._makeLocalGettersCache[namespace]
  20539. }
  20540. function registerMutation (store, type, handler, local) {
  20541. var entry = store._mutations[type] || (store._mutations[type] = []);
  20542. entry.push(function wrappedMutationHandler (payload) {
  20543. handler.call(store, local.state, payload);
  20544. });
  20545. }
  20546. function registerAction (store, type, handler, local) {
  20547. var entry = store._actions[type] || (store._actions[type] = []);
  20548. entry.push(function wrappedActionHandler (payload) {
  20549. var res = handler.call(store, {
  20550. dispatch: local.dispatch,
  20551. commit: local.commit,
  20552. getters: local.getters,
  20553. state: local.state,
  20554. rootGetters: store.getters,
  20555. rootState: store.state
  20556. }, payload);
  20557. if (!isPromise(res)) {
  20558. res = Promise.resolve(res);
  20559. }
  20560. if (store._devtoolHook) {
  20561. return res.catch(function (err) {
  20562. store._devtoolHook.emit('vuex:error', err);
  20563. throw err
  20564. })
  20565. } else {
  20566. return res
  20567. }
  20568. });
  20569. }
  20570. function registerGetter (store, type, rawGetter, local) {
  20571. if (store._wrappedGetters[type]) {
  20572. if ((true)) {
  20573. console.error(("[vuex] duplicate getter key: " + type));
  20574. }
  20575. return
  20576. }
  20577. store._wrappedGetters[type] = function wrappedGetter (store) {
  20578. return rawGetter(
  20579. local.state, // local state
  20580. local.getters, // local getters
  20581. store.state, // root state
  20582. store.getters // root getters
  20583. )
  20584. };
  20585. }
  20586. function enableStrictMode (store) {
  20587. store._vm.$watch(function () { return this._data.$$state }, function () {
  20588. if ((true)) {
  20589. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  20590. }
  20591. }, { deep: true, sync: true });
  20592. }
  20593. function getNestedState (state, path) {
  20594. return path.reduce(function (state, key) { return state[key]; }, state)
  20595. }
  20596. function unifyObjectStyle (type, payload, options) {
  20597. if (isObject(type) && type.type) {
  20598. options = payload;
  20599. payload = type;
  20600. type = type.type;
  20601. }
  20602. if ((true)) {
  20603. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  20604. }
  20605. return { type: type, payload: payload, options: options }
  20606. }
  20607. function install (_Vue) {
  20608. if (Vue && _Vue === Vue) {
  20609. if ((true)) {
  20610. console.error(
  20611. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  20612. );
  20613. }
  20614. return
  20615. }
  20616. Vue = _Vue;
  20617. applyMixin(Vue);
  20618. }
  20619. /**
  20620. * Reduce the code which written in Vue.js for getting the state.
  20621. * @param {String} [namespace] - Module's namespace
  20622. * @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.
  20623. * @param {Object}
  20624. */
  20625. var mapState = normalizeNamespace(function (namespace, states) {
  20626. var res = {};
  20627. if (( true) && !isValidMap(states)) {
  20628. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  20629. }
  20630. normalizeMap(states).forEach(function (ref) {
  20631. var key = ref.key;
  20632. var val = ref.val;
  20633. res[key] = function mappedState () {
  20634. var state = this.$store.state;
  20635. var getters = this.$store.getters;
  20636. if (namespace) {
  20637. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  20638. if (!module) {
  20639. return
  20640. }
  20641. state = module.context.state;
  20642. getters = module.context.getters;
  20643. }
  20644. return typeof val === 'function'
  20645. ? val.call(this, state, getters)
  20646. : state[val]
  20647. };
  20648. // mark vuex getter for devtools
  20649. res[key].vuex = true;
  20650. });
  20651. return res
  20652. });
  20653. /**
  20654. * Reduce the code which written in Vue.js for committing the mutation
  20655. * @param {String} [namespace] - Module's namespace
  20656. * @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.
  20657. * @return {Object}
  20658. */
  20659. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  20660. var res = {};
  20661. if (( true) && !isValidMap(mutations)) {
  20662. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  20663. }
  20664. normalizeMap(mutations).forEach(function (ref) {
  20665. var key = ref.key;
  20666. var val = ref.val;
  20667. res[key] = function mappedMutation () {
  20668. var args = [], len = arguments.length;
  20669. while ( len-- ) args[ len ] = arguments[ len ];
  20670. // Get the commit method from store
  20671. var commit = this.$store.commit;
  20672. if (namespace) {
  20673. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  20674. if (!module) {
  20675. return
  20676. }
  20677. commit = module.context.commit;
  20678. }
  20679. return typeof val === 'function'
  20680. ? val.apply(this, [commit].concat(args))
  20681. : commit.apply(this.$store, [val].concat(args))
  20682. };
  20683. });
  20684. return res
  20685. });
  20686. /**
  20687. * Reduce the code which written in Vue.js for getting the getters
  20688. * @param {String} [namespace] - Module's namespace
  20689. * @param {Object|Array} getters
  20690. * @return {Object}
  20691. */
  20692. var mapGetters = normalizeNamespace(function (namespace, getters) {
  20693. var res = {};
  20694. if (( true) && !isValidMap(getters)) {
  20695. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  20696. }
  20697. normalizeMap(getters).forEach(function (ref) {
  20698. var key = ref.key;
  20699. var val = ref.val;
  20700. // The namespace has been mutated by normalizeNamespace
  20701. val = namespace + val;
  20702. res[key] = function mappedGetter () {
  20703. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  20704. return
  20705. }
  20706. if (( true) && !(val in this.$store.getters)) {
  20707. console.error(("[vuex] unknown getter: " + val));
  20708. return
  20709. }
  20710. return this.$store.getters[val]
  20711. };
  20712. // mark vuex getter for devtools
  20713. res[key].vuex = true;
  20714. });
  20715. return res
  20716. });
  20717. /**
  20718. * Reduce the code which written in Vue.js for dispatch the action
  20719. * @param {String} [namespace] - Module's namespace
  20720. * @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.
  20721. * @return {Object}
  20722. */
  20723. var mapActions = normalizeNamespace(function (namespace, actions) {
  20724. var res = {};
  20725. if (( true) && !isValidMap(actions)) {
  20726. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  20727. }
  20728. normalizeMap(actions).forEach(function (ref) {
  20729. var key = ref.key;
  20730. var val = ref.val;
  20731. res[key] = function mappedAction () {
  20732. var args = [], len = arguments.length;
  20733. while ( len-- ) args[ len ] = arguments[ len ];
  20734. // get dispatch function from store
  20735. var dispatch = this.$store.dispatch;
  20736. if (namespace) {
  20737. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  20738. if (!module) {
  20739. return
  20740. }
  20741. dispatch = module.context.dispatch;
  20742. }
  20743. return typeof val === 'function'
  20744. ? val.apply(this, [dispatch].concat(args))
  20745. : dispatch.apply(this.$store, [val].concat(args))
  20746. };
  20747. });
  20748. return res
  20749. });
  20750. /**
  20751. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  20752. * @param {String} namespace
  20753. * @return {Object}
  20754. */
  20755. var createNamespacedHelpers = function (namespace) { return ({
  20756. mapState: mapState.bind(null, namespace),
  20757. mapGetters: mapGetters.bind(null, namespace),
  20758. mapMutations: mapMutations.bind(null, namespace),
  20759. mapActions: mapActions.bind(null, namespace)
  20760. }); };
  20761. /**
  20762. * Normalize the map
  20763. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  20764. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  20765. * @param {Array|Object} map
  20766. * @return {Object}
  20767. */
  20768. function normalizeMap (map) {
  20769. if (!isValidMap(map)) {
  20770. return []
  20771. }
  20772. return Array.isArray(map)
  20773. ? map.map(function (key) { return ({ key: key, val: key }); })
  20774. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  20775. }
  20776. /**
  20777. * Validate whether given map is valid or not
  20778. * @param {*} map
  20779. * @return {Boolean}
  20780. */
  20781. function isValidMap (map) {
  20782. return Array.isArray(map) || isObject(map)
  20783. }
  20784. /**
  20785. * 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.
  20786. * @param {Function} fn
  20787. * @return {Function}
  20788. */
  20789. function normalizeNamespace (fn) {
  20790. return function (namespace, map) {
  20791. if (typeof namespace !== 'string') {
  20792. map = namespace;
  20793. namespace = '';
  20794. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  20795. namespace += '/';
  20796. }
  20797. return fn(namespace, map)
  20798. }
  20799. }
  20800. /**
  20801. * Search a special module from store by namespace. if module not exist, print error message.
  20802. * @param {Object} store
  20803. * @param {String} helper
  20804. * @param {String} namespace
  20805. * @return {Object}
  20806. */
  20807. function getModuleByNamespace (store, helper, namespace) {
  20808. var module = store._modulesNamespaceMap[namespace];
  20809. if (( true) && !module) {
  20810. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  20811. }
  20812. return module
  20813. }
  20814. // Credits: borrowed code from fcomb/redux-logger
  20815. function createLogger (ref) {
  20816. if ( ref === void 0 ) ref = {};
  20817. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  20818. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  20819. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  20820. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  20821. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  20822. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  20823. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  20824. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  20825. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  20826. return function (store) {
  20827. var prevState = deepCopy(store.state);
  20828. if (typeof logger === 'undefined') {
  20829. return
  20830. }
  20831. if (logMutations) {
  20832. store.subscribe(function (mutation, state) {
  20833. var nextState = deepCopy(state);
  20834. if (filter(mutation, prevState, nextState)) {
  20835. var formattedTime = getFormattedTime();
  20836. var formattedMutation = mutationTransformer(mutation);
  20837. var message = "mutation " + (mutation.type) + formattedTime;
  20838. startMessage(logger, message, collapsed);
  20839. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  20840. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  20841. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  20842. endMessage(logger);
  20843. }
  20844. prevState = nextState;
  20845. });
  20846. }
  20847. if (logActions) {
  20848. store.subscribeAction(function (action, state) {
  20849. if (actionFilter(action, state)) {
  20850. var formattedTime = getFormattedTime();
  20851. var formattedAction = actionTransformer(action);
  20852. var message = "action " + (action.type) + formattedTime;
  20853. startMessage(logger, message, collapsed);
  20854. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  20855. endMessage(logger);
  20856. }
  20857. });
  20858. }
  20859. }
  20860. }
  20861. function startMessage (logger, message, collapsed) {
  20862. var startMessage = collapsed
  20863. ? logger.groupCollapsed
  20864. : logger.group;
  20865. // render
  20866. try {
  20867. startMessage.call(logger, message);
  20868. } catch (e) {
  20869. logger.log(message);
  20870. }
  20871. }
  20872. function endMessage (logger) {
  20873. try {
  20874. logger.groupEnd();
  20875. } catch (e) {
  20876. logger.log('—— log end ——');
  20877. }
  20878. }
  20879. function getFormattedTime () {
  20880. var time = new Date();
  20881. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  20882. }
  20883. function repeat (str, times) {
  20884. return (new Array(times + 1)).join(str)
  20885. }
  20886. function pad (num, maxLength) {
  20887. return repeat('0', maxLength - num.toString().length) + num
  20888. }
  20889. var index_cjs = {
  20890. Store: Store,
  20891. install: install,
  20892. version: '3.6.2',
  20893. mapState: mapState,
  20894. mapMutations: mapMutations,
  20895. mapGetters: mapGetters,
  20896. mapActions: mapActions,
  20897. createNamespacedHelpers: createNamespacedHelpers,
  20898. createLogger: createLogger
  20899. };
  20900. module.exports = index_cjs;
  20901. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  20902. /***/ }),
  20903. /* 166 */
  20904. /*!***************************************************************************************!*\
  20905. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/store/modules/user.js ***!
  20906. \***************************************************************************************/
  20907. /*! no static exports found */
  20908. /***/ (function(module, exports, __webpack_require__) {
  20909. "use strict";
  20910. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20911. Object.defineProperty(exports, "__esModule", {
  20912. value: true
  20913. });
  20914. exports.default = void 0;
  20915. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  20916. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  20917. var _login = __webpack_require__(/*! @/api/login */ 167);
  20918. var _auth = __webpack_require__(/*! @/utils/auth.js */ 163);
  20919. var user = {
  20920. state: {
  20921. // 用户认证token
  20922. token: (0, _auth.getToken)(),
  20923. // 用户ID
  20924. userId: null,
  20925. // 用户信息
  20926. userInfo: {},
  20927. // 测试信息
  20928. testText: ''
  20929. },
  20930. mutations: {
  20931. SET_TOKEN: function SET_TOKEN(state, token) {
  20932. state.token = token;
  20933. },
  20934. SET_USER_ID: function SET_USER_ID(state, userId) {
  20935. state.userId = userId;
  20936. },
  20937. SET_USERINFO: function SET_USERINFO(state, userInfo) {
  20938. state.userInfo = userInfo;
  20939. },
  20940. SET_TEST_TEXT: function SET_TEST_TEXT(state, testText) {
  20941. state.testText = testText;
  20942. }
  20943. },
  20944. actions: {
  20945. // 用户登录
  20946. Login: function Login(_ref, userInfo) {
  20947. var commit = _ref.commit;
  20948. return new Promise( /*#__PURE__*/function () {
  20949. var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
  20950. var res;
  20951. return _regenerator.default.wrap(function _callee$(_context) {
  20952. while (1) {
  20953. switch (_context.prev = _context.next) {
  20954. case 0:
  20955. _context.next = 2;
  20956. return (0, _login.login)(userInfo);
  20957. case 2:
  20958. res = _context.sent;
  20959. (0, _auth.setToken)(res.data.token);
  20960. commit('SET_TOKEN', res.data.token);
  20961. resolve(res);
  20962. case 6:
  20963. case "end":
  20964. return _context.stop();
  20965. }
  20966. }
  20967. }, _callee);
  20968. }));
  20969. return function (_x, _x2) {
  20970. return _ref2.apply(this, arguments);
  20971. };
  20972. }());
  20973. },
  20974. // 获取用户信息
  20975. UserInfo: function UserInfo(_ref3) {
  20976. var commit = _ref3.commit;
  20977. return new Promise( /*#__PURE__*/function () {
  20978. var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {
  20979. var res;
  20980. return _regenerator.default.wrap(function _callee2$(_context2) {
  20981. while (1) {
  20982. switch (_context2.prev = _context2.next) {
  20983. case 0:
  20984. _context2.prev = 0;
  20985. _context2.next = 3;
  20986. return (0, _login.getUserInfo)();
  20987. case 3:
  20988. res = _context2.sent;
  20989. setUserId(res.data.userId);
  20990. commit('SET_USER_ID', res.data.userId);
  20991. commit('SET_USERINFO', res.data);
  20992. resolve(res);
  20993. _context2.next = 13;
  20994. break;
  20995. case 10:
  20996. _context2.prev = 10;
  20997. _context2.t0 = _context2["catch"](0);
  20998. reject(_context2.t0);
  20999. case 13:
  21000. case "end":
  21001. return _context2.stop();
  21002. }
  21003. }
  21004. }, _callee2, null, [[0, 10]]);
  21005. }));
  21006. return function (_x3, _x4) {
  21007. return _ref4.apply(this, arguments);
  21008. };
  21009. }());
  21010. },
  21011. // 退出登录
  21012. Logout: function Logout(_ref5) {
  21013. var commit = _ref5.commit;
  21014. return new Promise(function (resolve, reject) {
  21015. (0, _auth.removeToken)();
  21016. removeUserId();
  21017. commit('SET_TOKEN', null);
  21018. commit('SET_USER_ID', null);
  21019. resolve();
  21020. });
  21021. }
  21022. }
  21023. };
  21024. var _default = user;
  21025. exports.default = _default;
  21026. /***/ }),
  21027. /* 167 */
  21028. /*!******************************************************************************!*\
  21029. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/api/login.js ***!
  21030. \******************************************************************************/
  21031. /*! no static exports found */
  21032. /***/ (function(module, exports, __webpack_require__) {
  21033. "use strict";
  21034. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21035. Object.defineProperty(exports, "__esModule", {
  21036. value: true
  21037. });
  21038. exports.getUserInfo = getUserInfo;
  21039. exports.login = login;
  21040. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 168));
  21041. // api地址
  21042. var api = {
  21043. // TODO: 根据自身需求,修改登录和获取用户信息接口
  21044. login: "/user/login",
  21045. getUserInfo: ""
  21046. };
  21047. // 用户登录
  21048. function login(data) {
  21049. return _request.default.post(api.login, data);
  21050. }
  21051. // 获取用户信息
  21052. function getUserInfo() {
  21053. return _request.default.get(api.getUserInfo);
  21054. }
  21055. /***/ }),
  21056. /* 168 */
  21057. /*!****************************************************************************************!*\
  21058. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/utils/request/index.js ***!
  21059. \****************************************************************************************/
  21060. /*! no static exports found */
  21061. /***/ (function(module, exports, __webpack_require__) {
  21062. "use strict";
  21063. /* WEBPACK VAR INJECTION */(function(uni) {
  21064. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21065. Object.defineProperty(exports, "__esModule", {
  21066. value: true
  21067. });
  21068. exports.default = void 0;
  21069. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  21070. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  21071. var _request = _interopRequireDefault(__webpack_require__(/*! ./core/request.js */ 169));
  21072. var _auth = __webpack_require__(/*! @/utils/auth.js */ 163);
  21073. // TODO: 设置基础接口地址,可根据小程序体验版和线上版本区分
  21074. var baseUrl = "http://127.0.0.1";
  21075. //可以new多个request来支持多个域名请求
  21076. var $http = new _request.default({
  21077. //接口请求地址
  21078. baseUrl: baseUrl,
  21079. //设置请求头(如果使用报错跨域问题,可能是content-type请求类型和后台那边设置的不一致)
  21080. header: {
  21081. 'content-type': 'application/json;charset=UTF-8'
  21082. },
  21083. // 请求超时时间(默认6000)
  21084. timeout: 10000,
  21085. // 默认配置(可不写)
  21086. config: {
  21087. // 是否自动提示错误
  21088. isPrompt: true,
  21089. // 是否显示加载动画
  21090. load: true,
  21091. // 是否使用数据工厂
  21092. isFactory: true
  21093. }
  21094. });
  21095. //当前接口请求数
  21096. var requestNum = 0;
  21097. // 当前失败接口数
  21098. var requestFailNum = 0;
  21099. //请求开始拦截器
  21100. $http.requestStart = function (options) {
  21101. if (options.load) {
  21102. if (requestNum <= 0) {
  21103. //打开加载动画
  21104. uni.showLoading({
  21105. title: '加载中',
  21106. mask: true
  21107. });
  21108. }
  21109. requestNum += 1;
  21110. }
  21111. //请求前加入token,从缓存中读取token,请在登录后将token存储在本地缓存中
  21112. options.header['token'] = (0, _auth.getToken)();
  21113. return options;
  21114. };
  21115. //请求结束
  21116. $http.requestEnd = function (options) {
  21117. //判断当前接口是否需要加载动画
  21118. if (options.load) {
  21119. requestNum = requestNum - 1;
  21120. if (requestNum <= 0) {
  21121. uni.hideLoading();
  21122. }
  21123. }
  21124. };
  21125. //所有接口数据处理(可在接口里设置不调用此方法)
  21126. //此方法需要开发者根据各自的接口返回类型修改,以下只是模板
  21127. $http.dataFactory = /*#__PURE__*/function () {
  21128. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(res) {
  21129. var httpData;
  21130. return _regenerator.default.wrap(function _callee$(_context) {
  21131. while (1) {
  21132. switch (_context.prev = _context.next) {
  21133. case 0:
  21134. if (!(res.response.statusCode && res.response.statusCode == 200)) {
  21135. _context.next = 11;
  21136. break;
  21137. }
  21138. httpData = res.response.data;
  21139. if (typeof httpData == "string") {
  21140. httpData = JSON.parse(httpData);
  21141. }
  21142. /*********以下只是模板(及共参考),需要开发者根据各自的接口返回类型修改*********/
  21143. // TODO: 判断数据是否请求成功,根据后端返回的成功状态码修改
  21144. if (!(httpData.code == 200)) {
  21145. _context.next = 7;
  21146. break;
  21147. }
  21148. return _context.abrupt("return", Promise.resolve(httpData));
  21149. case 7:
  21150. //其他错误提示
  21151. if (res.isPrompt) {
  21152. // 自动提示错误
  21153. uni.showToast({
  21154. title: httpData.info || httpData.msg,
  21155. icon: "none",
  21156. duration: 3000
  21157. });
  21158. }
  21159. // 返回错误的结果(catch接受数据)
  21160. return _context.abrupt("return", Promise.reject({
  21161. statusCode: 500,
  21162. errMsg: httpData.info || httpData.msg
  21163. }));
  21164. case 9:
  21165. _context.next = 22;
  21166. break;
  21167. case 11:
  21168. if (!(res.response.statusCode && res.response.statusCode == 401)) {
  21169. _context.next = 17;
  21170. break;
  21171. }
  21172. // 用户身份信息过期处理,清除token并返回登录页
  21173. if (requestFailNum <= 0) {
  21174. (0, _auth.removeToken)();
  21175. uni.showModal({
  21176. title: '温馨提示',
  21177. content: '登录状态过期,请重新登录!',
  21178. confirmText: "确认",
  21179. showCancel: false,
  21180. success: function success(result) {
  21181. uni.reLaunch({
  21182. url: '/pages/login/index'
  21183. });
  21184. }
  21185. });
  21186. }
  21187. requestFailNum++;
  21188. return _context.abrupt("return", Promise.reject({
  21189. statusCode: res.response.statusCode,
  21190. errMsg: "登录状态过期"
  21191. }));
  21192. case 17:
  21193. if (!(res.response.statusCode && res.response.statusCode == 404)) {
  21194. _context.next = 21;
  21195. break;
  21196. }
  21197. return _context.abrupt("return", Promise.reject({
  21198. statusCode: res.response.statusCode,
  21199. errMsg: "请求失败,请检查接口地址是否正确"
  21200. }));
  21201. case 21:
  21202. return _context.abrupt("return", Promise.reject({
  21203. statusCode: res.response.statusCode,
  21204. errMsg: "数据工厂验证不通过"
  21205. }));
  21206. case 22:
  21207. case "end":
  21208. return _context.stop();
  21209. }
  21210. }
  21211. }, _callee);
  21212. }));
  21213. return function (_x) {
  21214. return _ref.apply(this, arguments);
  21215. };
  21216. }();
  21217. // 错误回调
  21218. $http.requestError = function (e) {
  21219. if (!e.errMsg) {
  21220. return;
  21221. }
  21222. // e.statusCode === 0 是参数校验错误抛出的
  21223. if (e.statusCode === 0 || e.statusCode === 401) {
  21224. throw e;
  21225. } else {
  21226. // 解决hideLoading会隐藏Toast的bug,setTimeout让showToast在requestEnd回调之后再执行
  21227. setTimeout(function () {
  21228. if (e.errMsg == "request:fail") {
  21229. e.errMsg = "请求失败,请检查接口地址是否正确!";
  21230. }
  21231. uni.showToast({
  21232. title: e.errMsg || "网络错误,请检查一下网络",
  21233. icon: "none",
  21234. duration: 3000
  21235. });
  21236. });
  21237. }
  21238. };
  21239. var _default = $http;
  21240. exports.default = _default;
  21241. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21242. /***/ }),
  21243. /* 169 */
  21244. /*!***********************************************************************************************!*\
  21245. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/utils/request/core/request.js ***!
  21246. \***********************************************************************************************/
  21247. /*! no static exports found */
  21248. /***/ (function(module, exports, __webpack_require__) {
  21249. "use strict";
  21250. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21251. Object.defineProperty(exports, "__esModule", {
  21252. value: true
  21253. });
  21254. exports.default = void 0;
  21255. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  21256. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  21257. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  21258. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  21259. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  21260. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  21261. var _utils = __webpack_require__(/*! ./utils.js */ 170);
  21262. 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; }
  21263. 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; }
  21264. var request = /*#__PURE__*/function () {
  21265. function request(options) {
  21266. (0, _classCallCheck2.default)(this, request);
  21267. //请求公共地址
  21268. this.baseUrl = options.baseUrl || "";
  21269. // 超时时间
  21270. this.timeout = options.timeout || 10000;
  21271. //默认请求头
  21272. this.header = options.header || {};
  21273. //默认配置
  21274. this.config = options.config || {
  21275. isPrompt: true,
  21276. load: true,
  21277. isFactory: true
  21278. };
  21279. }
  21280. //post请求
  21281. (0, _createClass2.default)(request, [{
  21282. key: "post",
  21283. value: function post() {
  21284. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21285. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21286. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21287. return this.request(_objectSpread({
  21288. method: "POST",
  21289. data: data,
  21290. url: url
  21291. }, options));
  21292. }
  21293. //get请求
  21294. }, {
  21295. key: "get",
  21296. value: function get() {
  21297. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21298. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21299. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21300. return this.request(_objectSpread({
  21301. method: "GET",
  21302. data: data,
  21303. url: url
  21304. }, options));
  21305. }
  21306. //put请求
  21307. }, {
  21308. key: "put",
  21309. value: function put() {
  21310. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21311. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21312. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21313. return this.request(_objectSpread({
  21314. method: "PUT",
  21315. data: data,
  21316. url: url
  21317. }, options));
  21318. }
  21319. //delete请求
  21320. }, {
  21321. key: "delete",
  21322. value: function _delete() {
  21323. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21324. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21325. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21326. return this.request(_objectSpread({
  21327. method: "DELETE",
  21328. data: data,
  21329. url: url
  21330. }, options));
  21331. }
  21332. //jsonp请求(只限于H5使用)
  21333. }, {
  21334. key: "jsonp",
  21335. value: function jsonp() {
  21336. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21337. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21338. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21339. return this.request(_objectSpread({
  21340. method: "JSONP",
  21341. data: data,
  21342. url: url
  21343. }, options));
  21344. }
  21345. //接口请求方法
  21346. }, {
  21347. key: "request",
  21348. value: function () {
  21349. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {
  21350. var requestInfo, runRequestStart, requestStart, changekeys, requestResult, result;
  21351. return _regenerator.default.wrap(function _callee$(_context) {
  21352. while (1) {
  21353. switch (_context.prev = _context.next) {
  21354. case 0:
  21355. // 请求数据
  21356. runRequestStart = false;
  21357. _context.prev = 1;
  21358. if (data.url) {
  21359. _context.next = 4;
  21360. break;
  21361. }
  21362. throw {
  21363. errMsg: "【request】缺失数据url",
  21364. statusCode: 0
  21365. };
  21366. case 4:
  21367. // 数据合并
  21368. requestInfo = (0, _utils.mergeConfig)(this, data);
  21369. // 代表之前运行到这里
  21370. runRequestStart = true;
  21371. //请求前回调
  21372. if (!this.requestStart) {
  21373. _context.next = 14;
  21374. break;
  21375. }
  21376. requestStart = this.requestStart(requestInfo);
  21377. if (!((0, _typeof2.default)(requestStart) == "object")) {
  21378. _context.next = 13;
  21379. break;
  21380. }
  21381. changekeys = ["data", "header", "isPrompt", "load", "isFactory"];
  21382. changekeys.forEach(function (key) {
  21383. requestInfo[key] = requestStart[key];
  21384. });
  21385. _context.next = 14;
  21386. break;
  21387. case 13:
  21388. throw {
  21389. errMsg: "【request】请求开始拦截器未通过",
  21390. statusCode: 0,
  21391. data: requestInfo.data,
  21392. method: requestInfo.method,
  21393. header: requestInfo.header,
  21394. url: requestInfo.url
  21395. };
  21396. case 14:
  21397. requestResult = {};
  21398. if (!(requestInfo.method == "JSONP")) {
  21399. _context.next = 21;
  21400. break;
  21401. }
  21402. _context.next = 18;
  21403. return (0, _utils.jsonpRequest)(requestInfo);
  21404. case 18:
  21405. requestResult = _context.sent;
  21406. _context.next = 24;
  21407. break;
  21408. case 21:
  21409. _context.next = 23;
  21410. return (0, _utils.dispatchRequest)(requestInfo);
  21411. case 23:
  21412. requestResult = _context.sent;
  21413. case 24:
  21414. if (!(requestInfo.isFactory && this.dataFactory)) {
  21415. _context.next = 31;
  21416. break;
  21417. }
  21418. _context.next = 27;
  21419. return this.dataFactory(_objectSpread(_objectSpread({}, requestInfo), {}, {
  21420. response: requestResult
  21421. }));
  21422. case 27:
  21423. result = _context.sent;
  21424. return _context.abrupt("return", Promise.resolve(result));
  21425. case 31:
  21426. return _context.abrupt("return", Promise.resolve(requestResult));
  21427. case 32:
  21428. _context.next = 38;
  21429. break;
  21430. case 34:
  21431. _context.prev = 34;
  21432. _context.t0 = _context["catch"](1);
  21433. this.requestError && this.requestError(_context.t0);
  21434. return _context.abrupt("return", Promise.reject(_context.t0));
  21435. case 38:
  21436. _context.prev = 38;
  21437. // 如果请求开始未运行到,请求结束也不运行
  21438. if (runRequestStart) {
  21439. this.requestEnd && this.requestEnd(requestInfo);
  21440. }
  21441. return _context.finish(38);
  21442. case 41:
  21443. case "end":
  21444. return _context.stop();
  21445. }
  21446. }
  21447. }, _callee, this, [[1, 34, 38, 41]]);
  21448. }));
  21449. function request(_x) {
  21450. return _request.apply(this, arguments);
  21451. }
  21452. return request;
  21453. }()
  21454. }]);
  21455. return request;
  21456. }();
  21457. exports.default = request;
  21458. /***/ }),
  21459. /* 170 */
  21460. /*!*********************************************************************************************!*\
  21461. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/utils/request/core/utils.js ***!
  21462. \*********************************************************************************************/
  21463. /*! no static exports found */
  21464. /***/ (function(module, exports, __webpack_require__) {
  21465. "use strict";
  21466. /* WEBPACK VAR INJECTION */(function(uni) {
  21467. Object.defineProperty(exports, "__esModule", {
  21468. value: true
  21469. });
  21470. exports.mergeConfig = exports.jsonpRequest = exports.dispatchRequest = void 0;
  21471. // 获取合并的数据
  21472. var mergeConfig = function mergeConfig(_this, options) {
  21473. //判断url是不是链接
  21474. var urlType = /^(http|https):\/\//.test(options.url);
  21475. var config = Object.assign({
  21476. timeout: _this.timeout
  21477. }, _this.config, options);
  21478. if (options.method == "FILE") {
  21479. config.url = urlType ? options.url : _this.fileUrl + options.url;
  21480. } else {
  21481. config.url = urlType ? options.url : _this.baseUrl + options.url;
  21482. }
  21483. //请求头
  21484. if (options.header) {
  21485. config.header = Object.assign({}, _this.header, options.header);
  21486. } else {
  21487. config.header = Object.assign({}, _this.header);
  21488. }
  21489. return config;
  21490. };
  21491. // 请求
  21492. exports.mergeConfig = mergeConfig;
  21493. var dispatchRequest = function dispatchRequest(requestInfo) {
  21494. return new Promise(function (resolve, reject) {
  21495. var requestAbort = true;
  21496. var requestData = {
  21497. url: requestInfo.url,
  21498. header: requestInfo.header,
  21499. //加入请求头
  21500. success: function success(res) {
  21501. requestAbort = false;
  21502. resolve(res);
  21503. },
  21504. fail: function fail(err) {
  21505. requestAbort = false;
  21506. if (err.errMsg == "request:fail abort") {
  21507. reject({
  21508. errMsg: "请求超时,请重新尝试",
  21509. statusCode: 0
  21510. });
  21511. } else {
  21512. reject(err);
  21513. }
  21514. }
  21515. };
  21516. //请求类型
  21517. if (requestInfo.method) {
  21518. requestData.method = requestInfo.method;
  21519. }
  21520. if (requestInfo.data) {
  21521. requestData.data = requestInfo.data;
  21522. }
  21523. if (requestInfo.timeout) {
  21524. requestData.timeout = requestInfo.timeout;
  21525. }
  21526. if (requestInfo.dataType) {
  21527. requestData.dataType = requestInfo.dataType;
  21528. }
  21529. if (requestInfo.responseType) {
  21530. requestData.responseType = requestInfo.responseType;
  21531. }
  21532. var requestTask = uni.request(requestData);
  21533. setTimeout(function () {
  21534. if (requestAbort) {
  21535. requestTask.abort();
  21536. }
  21537. }, requestInfo.timeout);
  21538. });
  21539. };
  21540. // jsonp请求
  21541. exports.dispatchRequest = dispatchRequest;
  21542. var jsonpRequest = function jsonpRequest(requestInfo) {
  21543. return new Promise(function (resolve, reject) {
  21544. var dataStr = '';
  21545. Object.keys(requestInfo.data).forEach(function (key) {
  21546. dataStr += key + '=' + requestInfo.data[key] + '&';
  21547. });
  21548. //匹配最后一个&并去除
  21549. if (dataStr !== '') {
  21550. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  21551. }
  21552. requestInfo.url = requestInfo.url + '?' + dataStr;
  21553. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  21554. });
  21555. };
  21556. exports.jsonpRequest = jsonpRequest;
  21557. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21558. /***/ }),
  21559. /* 171 */
  21560. /*!**********************************************************************************!*\
  21561. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/store/getters.js ***!
  21562. \**********************************************************************************/
  21563. /*! no static exports found */
  21564. /***/ (function(module, exports, __webpack_require__) {
  21565. "use strict";
  21566. Object.defineProperty(exports, "__esModule", {
  21567. value: true
  21568. });
  21569. exports.default = void 0;
  21570. var getters = {
  21571. token: function token(state) {
  21572. return state.user.token;
  21573. },
  21574. userId: function userId(state) {
  21575. return state.user.userId;
  21576. },
  21577. userInfo: function userInfo(state) {
  21578. return state.user.userInfo;
  21579. },
  21580. testText: function testText(state) {
  21581. return state.user.testText;
  21582. }
  21583. };
  21584. var _default = getters;
  21585. exports.default = _default;
  21586. /***/ }),
  21587. /* 172 */,
  21588. /* 173 */,
  21589. /* 174 */,
  21590. /* 175 */,
  21591. /* 176 */,
  21592. /* 177 */,
  21593. /* 178 */,
  21594. /* 179 */,
  21595. /* 180 */,
  21596. /* 181 */,
  21597. /* 182 */,
  21598. /* 183 */,
  21599. /* 184 */,
  21600. /* 185 */,
  21601. /* 186 */,
  21602. /* 187 */,
  21603. /* 188 */,
  21604. /* 189 */,
  21605. /* 190 */,
  21606. /* 191 */,
  21607. /* 192 */,
  21608. /* 193 */
  21609. /*!******************************************************************************************************************!*\
  21610. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-form/props.js ***!
  21611. \******************************************************************************************************************/
  21612. /*! no static exports found */
  21613. /***/ (function(module, exports, __webpack_require__) {
  21614. "use strict";
  21615. /* WEBPACK VAR INJECTION */(function(uni) {
  21616. Object.defineProperty(exports, "__esModule", {
  21617. value: true
  21618. });
  21619. exports.default = void 0;
  21620. var _default = {
  21621. props: {
  21622. // 当前form的需要验证字段的集合
  21623. model: {
  21624. type: Object,
  21625. default: uni.$u.props.form.model
  21626. },
  21627. // 验证规则
  21628. rules: {
  21629. type: [Object, Function, Array],
  21630. default: uni.$u.props.form.rules
  21631. },
  21632. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  21633. // border-bottom-下边框呈现红色,none-无提示
  21634. errorType: {
  21635. type: String,
  21636. default: uni.$u.props.form.errorType
  21637. },
  21638. // 是否显示表单域的下划线边框
  21639. borderBottom: {
  21640. type: Boolean,
  21641. default: uni.$u.props.form.borderBottom
  21642. },
  21643. // label的位置,left-左边,top-上边
  21644. labelPosition: {
  21645. type: String,
  21646. default: uni.$u.props.form.labelPosition
  21647. },
  21648. // label的宽度,单位px
  21649. labelWidth: {
  21650. type: [String, Number],
  21651. default: uni.$u.props.form.labelWidth
  21652. },
  21653. // lable字体的对齐方式
  21654. labelAlign: {
  21655. type: String,
  21656. default: uni.$u.props.form.labelAlign
  21657. },
  21658. // lable的样式,对象形式
  21659. labelStyle: {
  21660. type: Object,
  21661. default: uni.$u.props.form.labelStyle
  21662. }
  21663. }
  21664. };
  21665. exports.default = _default;
  21666. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21667. /***/ }),
  21668. /* 194 */,
  21669. /* 195 */,
  21670. /* 196 */,
  21671. /* 197 */,
  21672. /* 198 */,
  21673. /* 199 */
  21674. /*!***********************************************************************************************************************!*\
  21675. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-form-item/props.js ***!
  21676. \***********************************************************************************************************************/
  21677. /*! no static exports found */
  21678. /***/ (function(module, exports, __webpack_require__) {
  21679. "use strict";
  21680. /* WEBPACK VAR INJECTION */(function(uni) {
  21681. Object.defineProperty(exports, "__esModule", {
  21682. value: true
  21683. });
  21684. exports.default = void 0;
  21685. var _default = {
  21686. props: {
  21687. // input的label提示语
  21688. label: {
  21689. type: String,
  21690. default: uni.$u.props.formItem.label
  21691. },
  21692. // 绑定的值
  21693. prop: {
  21694. type: String,
  21695. default: uni.$u.props.formItem.prop
  21696. },
  21697. // 是否显示表单域的下划线边框
  21698. borderBottom: {
  21699. type: [String, Boolean],
  21700. default: uni.$u.props.formItem.borderBottom
  21701. },
  21702. // label的位置,left-左边,top-上边
  21703. labelPosition: {
  21704. type: String,
  21705. default: uni.$u.props.formItem.labelPosition
  21706. },
  21707. // label的宽度,单位px
  21708. labelWidth: {
  21709. type: [String, Number],
  21710. default: uni.$u.props.formItem.labelWidth
  21711. },
  21712. // 右侧图标
  21713. rightIcon: {
  21714. type: String,
  21715. default: uni.$u.props.formItem.rightIcon
  21716. },
  21717. // 左侧图标
  21718. leftIcon: {
  21719. type: String,
  21720. default: uni.$u.props.formItem.leftIcon
  21721. },
  21722. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  21723. required: {
  21724. type: Boolean,
  21725. default: uni.$u.props.formItem.required
  21726. },
  21727. leftIconStyle: {
  21728. type: [String, Object],
  21729. default: uni.$u.props.formItem.leftIconStyle
  21730. }
  21731. }
  21732. };
  21733. exports.default = _default;
  21734. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21735. /***/ }),
  21736. /* 200 */,
  21737. /* 201 */,
  21738. /* 202 */,
  21739. /* 203 */,
  21740. /* 204 */,
  21741. /* 205 */,
  21742. /* 206 */,
  21743. /* 207 */
  21744. /*!*******************************************************************************************************************!*\
  21745. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-input/props.js ***!
  21746. \*******************************************************************************************************************/
  21747. /*! no static exports found */
  21748. /***/ (function(module, exports, __webpack_require__) {
  21749. "use strict";
  21750. /* WEBPACK VAR INJECTION */(function(uni) {
  21751. Object.defineProperty(exports, "__esModule", {
  21752. value: true
  21753. });
  21754. exports.default = void 0;
  21755. var _default = {
  21756. props: {
  21757. // 输入的值
  21758. value: {
  21759. type: [String, Number],
  21760. default: uni.$u.props.input.value
  21761. },
  21762. // 输入框类型
  21763. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  21764. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  21765. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  21766. // text-文本输入键盘
  21767. type: {
  21768. type: String,
  21769. default: uni.$u.props.input.type
  21770. },
  21771. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  21772. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  21773. fixed: {
  21774. type: Boolean,
  21775. default: uni.$u.props.input.fixed
  21776. },
  21777. // 是否禁用输入框
  21778. disabled: {
  21779. type: Boolean,
  21780. default: uni.$u.props.input.disabled
  21781. },
  21782. // 禁用状态时的背景色
  21783. disabledColor: {
  21784. type: String,
  21785. default: uni.$u.props.input.disabledColor
  21786. },
  21787. // 是否显示清除控件
  21788. clearable: {
  21789. type: Boolean,
  21790. default: uni.$u.props.input.clearable
  21791. },
  21792. // 是否密码类型
  21793. password: {
  21794. type: Boolean,
  21795. default: uni.$u.props.input.password
  21796. },
  21797. // 最大输入长度,设置为 -1 的时候不限制最大长度
  21798. maxlength: {
  21799. type: [String, Number],
  21800. default: uni.$u.props.input.maxlength
  21801. },
  21802. // 输入框为空时的占位符
  21803. placeholder: {
  21804. type: String,
  21805. default: uni.$u.props.input.placeholder
  21806. },
  21807. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  21808. placeholderClass: {
  21809. type: String,
  21810. default: uni.$u.props.input.placeholderClass
  21811. },
  21812. // 指定placeholder的样式
  21813. placeholderStyle: {
  21814. type: [String, Object],
  21815. default: uni.$u.props.input.placeholderStyle
  21816. },
  21817. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  21818. showWordLimit: {
  21819. type: Boolean,
  21820. default: uni.$u.props.input.showWordLimit
  21821. },
  21822. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  21823. // https://uniapp.dcloud.io/component/input
  21824. // https://uniapp.dcloud.io/component/textarea
  21825. confirmType: {
  21826. type: String,
  21827. default: uni.$u.props.input.confirmType
  21828. },
  21829. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  21830. confirmHold: {
  21831. type: Boolean,
  21832. default: uni.$u.props.input.confirmHold
  21833. },
  21834. // focus时,点击页面的时候不收起键盘,微信小程序有效
  21835. holdKeyboard: {
  21836. type: Boolean,
  21837. default: uni.$u.props.input.holdKeyboard
  21838. },
  21839. // 自动获取焦点
  21840. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  21841. focus: {
  21842. type: Boolean,
  21843. default: uni.$u.props.input.focus
  21844. },
  21845. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  21846. autoBlur: {
  21847. type: Boolean,
  21848. default: uni.$u.props.input.autoBlur
  21849. },
  21850. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  21851. disableDefaultPadding: {
  21852. type: Boolean,
  21853. default: uni.$u.props.input.disableDefaultPadding
  21854. },
  21855. // 指定focus时光标的位置
  21856. cursor: {
  21857. type: [String, Number],
  21858. default: uni.$u.props.input.cursor
  21859. },
  21860. // 输入框聚焦时底部与键盘的距离
  21861. cursorSpacing: {
  21862. type: [String, Number],
  21863. default: uni.$u.props.input.cursorSpacing
  21864. },
  21865. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  21866. selectionStart: {
  21867. type: [String, Number],
  21868. default: uni.$u.props.input.selectionStart
  21869. },
  21870. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  21871. selectionEnd: {
  21872. type: [String, Number],
  21873. default: uni.$u.props.input.selectionEnd
  21874. },
  21875. // 键盘弹起时,是否自动上推页面
  21876. adjustPosition: {
  21877. type: Boolean,
  21878. default: uni.$u.props.input.adjustPosition
  21879. },
  21880. // 输入框内容对齐方式,可选值为:left|center|right
  21881. inputAlign: {
  21882. type: String,
  21883. default: uni.$u.props.input.inputAlign
  21884. },
  21885. // 输入框字体的大小
  21886. fontSize: {
  21887. type: [String, Number],
  21888. default: uni.$u.props.input.fontSize
  21889. },
  21890. // 输入框字体颜色
  21891. color: {
  21892. type: String,
  21893. default: uni.$u.props.input.color
  21894. },
  21895. // 输入框前置图标
  21896. prefixIcon: {
  21897. type: String,
  21898. default: uni.$u.props.input.prefixIcon
  21899. },
  21900. // 前置图标样式,对象或字符串
  21901. prefixIconStyle: {
  21902. type: [String, Object],
  21903. default: uni.$u.props.input.prefixIconStyle
  21904. },
  21905. // 输入框后置图标
  21906. suffixIcon: {
  21907. type: String,
  21908. default: uni.$u.props.input.suffixIcon
  21909. },
  21910. // 后置图标样式,对象或字符串
  21911. suffixIconStyle: {
  21912. type: [String, Object],
  21913. default: uni.$u.props.input.suffixIconStyle
  21914. },
  21915. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  21916. border: {
  21917. type: String,
  21918. default: uni.$u.props.input.border
  21919. },
  21920. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  21921. readonly: {
  21922. type: Boolean,
  21923. default: uni.$u.props.input.readonly
  21924. },
  21925. // 输入框形状,circle-圆形,square-方形
  21926. shape: {
  21927. type: String,
  21928. default: uni.$u.props.input.shape
  21929. },
  21930. // 用于处理或者过滤输入框内容的方法
  21931. formatter: {
  21932. type: [Function, null],
  21933. default: uni.$u.props.input.formatter
  21934. },
  21935. // 是否忽略组件内对文本合成系统事件的处理
  21936. ignoreCompositionEvent: {
  21937. type: Boolean,
  21938. default: true
  21939. }
  21940. }
  21941. };
  21942. exports.default = _default;
  21943. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21944. /***/ }),
  21945. /* 208 */,
  21946. /* 209 */,
  21947. /* 210 */,
  21948. /* 211 */,
  21949. /* 212 */,
  21950. /* 213 */,
  21951. /* 214 */,
  21952. /* 215 */
  21953. /*!************************************************************************************************************!*\
  21954. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/mixin/button.js ***!
  21955. \************************************************************************************************************/
  21956. /*! no static exports found */
  21957. /***/ (function(module, exports, __webpack_require__) {
  21958. "use strict";
  21959. Object.defineProperty(exports, "__esModule", {
  21960. value: true
  21961. });
  21962. exports.default = void 0;
  21963. var _default = {
  21964. props: {
  21965. lang: String,
  21966. sessionFrom: String,
  21967. sendMessageTitle: String,
  21968. sendMessagePath: String,
  21969. sendMessageImg: String,
  21970. showMessageCard: Boolean,
  21971. appParameter: String,
  21972. formType: String,
  21973. openType: String
  21974. }
  21975. };
  21976. exports.default = _default;
  21977. /***/ }),
  21978. /* 216 */
  21979. /*!**************************************************************************************************************!*\
  21980. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/mixin/openType.js ***!
  21981. \**************************************************************************************************************/
  21982. /*! no static exports found */
  21983. /***/ (function(module, exports, __webpack_require__) {
  21984. "use strict";
  21985. Object.defineProperty(exports, "__esModule", {
  21986. value: true
  21987. });
  21988. exports.default = void 0;
  21989. var _default = {
  21990. props: {
  21991. openType: String
  21992. },
  21993. methods: {
  21994. onGetUserInfo: function onGetUserInfo(event) {
  21995. this.$emit('getuserinfo', event.detail);
  21996. },
  21997. onContact: function onContact(event) {
  21998. this.$emit('contact', event.detail);
  21999. },
  22000. onGetPhoneNumber: function onGetPhoneNumber(event) {
  22001. this.$emit('getphonenumber', event.detail);
  22002. },
  22003. onError: function onError(event) {
  22004. this.$emit('error', event.detail);
  22005. },
  22006. onLaunchApp: function onLaunchApp(event) {
  22007. this.$emit('launchapp', event.detail);
  22008. },
  22009. onOpenSetting: function onOpenSetting(event) {
  22010. this.$emit('opensetting', event.detail);
  22011. }
  22012. }
  22013. };
  22014. exports.default = _default;
  22015. /***/ }),
  22016. /* 217 */
  22017. /*!********************************************************************************************************************!*\
  22018. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-button/props.js ***!
  22019. \********************************************************************************************************************/
  22020. /*! no static exports found */
  22021. /***/ (function(module, exports, __webpack_require__) {
  22022. "use strict";
  22023. /* WEBPACK VAR INJECTION */(function(uni) {
  22024. Object.defineProperty(exports, "__esModule", {
  22025. value: true
  22026. });
  22027. exports.default = void 0;
  22028. /*
  22029. * @Author : LQ
  22030. * @Description :
  22031. * @version : 1.0
  22032. * @Date : 2021-08-16 10:04:04
  22033. * @LastAuthor : LQ
  22034. * @lastTime : 2021-08-16 10:04:24
  22035. * @FilePath : /u-view2.0/uview-ui/components/u-button/props.js
  22036. */
  22037. var _default = {
  22038. props: {
  22039. // 是否细边框
  22040. hairline: {
  22041. type: Boolean,
  22042. default: uni.$u.props.button.hairline
  22043. },
  22044. // 按钮的预置样式,info,primary,error,warning,success
  22045. type: {
  22046. type: String,
  22047. default: uni.$u.props.button.type
  22048. },
  22049. // 按钮尺寸,large,normal,small,mini
  22050. size: {
  22051. type: String,
  22052. default: uni.$u.props.button.size
  22053. },
  22054. // 按钮形状,circle(两边为半圆),square(带圆角)
  22055. shape: {
  22056. type: String,
  22057. default: uni.$u.props.button.shape
  22058. },
  22059. // 按钮是否镂空
  22060. plain: {
  22061. type: Boolean,
  22062. default: uni.$u.props.button.plain
  22063. },
  22064. // 是否禁止状态
  22065. disabled: {
  22066. type: Boolean,
  22067. default: uni.$u.props.button.disabled
  22068. },
  22069. // 是否加载中
  22070. loading: {
  22071. type: Boolean,
  22072. default: uni.$u.props.button.loading
  22073. },
  22074. // 加载中提示文字
  22075. loadingText: {
  22076. type: [String, Number],
  22077. default: uni.$u.props.button.loadingText
  22078. },
  22079. // 加载状态图标类型
  22080. loadingMode: {
  22081. type: String,
  22082. default: uni.$u.props.button.loadingMode
  22083. },
  22084. // 加载图标大小
  22085. loadingSize: {
  22086. type: [String, Number],
  22087. default: uni.$u.props.button.loadingSize
  22088. },
  22089. // 开放能力,具体请看uniapp稳定关于button组件部分说明
  22090. // https://uniapp.dcloud.io/component/button
  22091. openType: {
  22092. type: String,
  22093. default: uni.$u.props.button.openType
  22094. },
  22095. // 用于 <form> 组件,点击分别会触发 <form> 组件的 submit/reset 事件
  22096. // 取值为submit(提交表单),reset(重置表单)
  22097. formType: {
  22098. type: String,
  22099. default: uni.$u.props.button.formType
  22100. },
  22101. // 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
  22102. // 只微信小程序、QQ小程序有效
  22103. appParameter: {
  22104. type: String,
  22105. default: uni.$u.props.button.appParameter
  22106. },
  22107. // 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
  22108. hoverStopPropagation: {
  22109. type: Boolean,
  22110. default: uni.$u.props.button.hoverStopPropagation
  22111. },
  22112. // 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。只微信小程序有效
  22113. lang: {
  22114. type: String,
  22115. default: uni.$u.props.button.lang
  22116. },
  22117. // 会话来源,open-type="contact"时有效。只微信小程序有效
  22118. sessionFrom: {
  22119. type: String,
  22120. default: uni.$u.props.button.sessionFrom
  22121. },
  22122. // 会话内消息卡片标题,open-type="contact"时有效
  22123. // 默认当前标题,只微信小程序有效
  22124. sendMessageTitle: {
  22125. type: String,
  22126. default: uni.$u.props.button.sendMessageTitle
  22127. },
  22128. // 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
  22129. // 默认当前分享路径,只微信小程序有效
  22130. sendMessagePath: {
  22131. type: String,
  22132. default: uni.$u.props.button.sendMessagePath
  22133. },
  22134. // 会话内消息卡片图片,open-type="contact"时有效
  22135. // 默认当前页面截图,只微信小程序有效
  22136. sendMessageImg: {
  22137. type: String,
  22138. default: uni.$u.props.button.sendMessageImg
  22139. },
  22140. // 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,
  22141. // 用户点击后可以快速发送小程序消息,open-type="contact"时有效
  22142. showMessageCard: {
  22143. type: Boolean,
  22144. default: uni.$u.props.button.showMessageCard
  22145. },
  22146. // 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
  22147. dataName: {
  22148. type: String,
  22149. default: uni.$u.props.button.dataName
  22150. },
  22151. // 节流,一定时间内只能触发一次
  22152. throttleTime: {
  22153. type: [String, Number],
  22154. default: uni.$u.props.button.throttleTime
  22155. },
  22156. // 按住后多久出现点击态,单位毫秒
  22157. hoverStartTime: {
  22158. type: [String, Number],
  22159. default: uni.$u.props.button.hoverStartTime
  22160. },
  22161. // 手指松开后点击态保留时间,单位毫秒
  22162. hoverStayTime: {
  22163. type: [String, Number],
  22164. default: uni.$u.props.button.hoverStayTime
  22165. },
  22166. // 按钮文字,之所以通过props传入,是因为slot传入的话
  22167. // nvue中无法控制文字的样式
  22168. text: {
  22169. type: [String, Number],
  22170. default: uni.$u.props.button.text
  22171. },
  22172. // 按钮图标
  22173. icon: {
  22174. type: String,
  22175. default: uni.$u.props.button.icon
  22176. },
  22177. // 按钮图标
  22178. iconColor: {
  22179. type: String,
  22180. default: uni.$u.props.button.icon
  22181. },
  22182. // 按钮颜色,支持传入linear-gradient渐变色
  22183. color: {
  22184. type: String,
  22185. default: uni.$u.props.button.color
  22186. }
  22187. }
  22188. };
  22189. exports.default = _default;
  22190. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22191. /***/ }),
  22192. /* 218 */,
  22193. /* 219 */,
  22194. /* 220 */,
  22195. /* 221 */,
  22196. /* 222 */,
  22197. /* 223 */,
  22198. /* 224 */,
  22199. /* 225 */
  22200. /*!********************************************************************************************************************!*\
  22201. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/libs/util/async-validator.js ***!
  22202. \********************************************************************************************************************/
  22203. /*! no static exports found */
  22204. /***/ (function(module, exports, __webpack_require__) {
  22205. "use strict";
  22206. /* WEBPACK VAR INJECTION */(function(process) {
  22207. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22208. Object.defineProperty(exports, "__esModule", {
  22209. value: true
  22210. });
  22211. exports.default = void 0;
  22212. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  22213. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  22214. 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; }
  22215. 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; }
  22216. function _extends() {
  22217. _extends = Object.assign || function (target) {
  22218. for (var i = 1; i < arguments.length; i++) {
  22219. var source = arguments[i];
  22220. for (var key in source) {
  22221. if (Object.prototype.hasOwnProperty.call(source, key)) {
  22222. target[key] = source[key];
  22223. }
  22224. }
  22225. }
  22226. return target;
  22227. };
  22228. return _extends.apply(this, arguments);
  22229. }
  22230. /* eslint no-console:0 */
  22231. var formatRegExp = /%[sdj%]/g;
  22232. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  22233. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"uniapp-template","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  22234. warning = function warning(type, errors) {
  22235. if (typeof console !== 'undefined' && console.warn) {
  22236. if (errors.every(function (e) {
  22237. return typeof e === 'string';
  22238. })) {
  22239. console.warn(type, errors);
  22240. }
  22241. }
  22242. };
  22243. }
  22244. function convertFieldsError(errors) {
  22245. if (!errors || !errors.length) return null;
  22246. var fields = {};
  22247. errors.forEach(function (error) {
  22248. var field = error.field;
  22249. fields[field] = fields[field] || [];
  22250. fields[field].push(error);
  22251. });
  22252. return fields;
  22253. }
  22254. function format() {
  22255. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  22256. args[_key] = arguments[_key];
  22257. }
  22258. var i = 1;
  22259. var f = args[0];
  22260. var len = args.length;
  22261. if (typeof f === 'function') {
  22262. return f.apply(null, args.slice(1));
  22263. }
  22264. if (typeof f === 'string') {
  22265. var str = String(f).replace(formatRegExp, function (x) {
  22266. if (x === '%%') {
  22267. return '%';
  22268. }
  22269. if (i >= len) {
  22270. return x;
  22271. }
  22272. switch (x) {
  22273. case '%s':
  22274. return String(args[i++]);
  22275. case '%d':
  22276. return Number(args[i++]);
  22277. case '%j':
  22278. try {
  22279. return JSON.stringify(args[i++]);
  22280. } catch (_) {
  22281. return '[Circular]';
  22282. }
  22283. break;
  22284. default:
  22285. return x;
  22286. }
  22287. });
  22288. for (var arg = args[i]; i < len; arg = args[++i]) {
  22289. str += " ".concat(arg);
  22290. }
  22291. return str;
  22292. }
  22293. return f;
  22294. }
  22295. function isNativeStringType(type) {
  22296. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  22297. }
  22298. function isEmptyValue(value, type) {
  22299. if (value === undefined || value === null) {
  22300. return true;
  22301. }
  22302. if (type === 'array' && Array.isArray(value) && !value.length) {
  22303. return true;
  22304. }
  22305. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  22306. return true;
  22307. }
  22308. return false;
  22309. }
  22310. function asyncParallelArray(arr, func, callback) {
  22311. var results = [];
  22312. var total = 0;
  22313. var arrLength = arr.length;
  22314. function count(errors) {
  22315. results.push.apply(results, errors);
  22316. total++;
  22317. if (total === arrLength) {
  22318. callback(results);
  22319. }
  22320. }
  22321. arr.forEach(function (a) {
  22322. func(a, count);
  22323. });
  22324. }
  22325. function asyncSerialArray(arr, func, callback) {
  22326. var index = 0;
  22327. var arrLength = arr.length;
  22328. function next(errors) {
  22329. if (errors && errors.length) {
  22330. callback(errors);
  22331. return;
  22332. }
  22333. var original = index;
  22334. index += 1;
  22335. if (original < arrLength) {
  22336. func(arr[original], next);
  22337. } else {
  22338. callback([]);
  22339. }
  22340. }
  22341. next([]);
  22342. }
  22343. function flattenObjArr(objArr) {
  22344. var ret = [];
  22345. Object.keys(objArr).forEach(function (k) {
  22346. ret.push.apply(ret, objArr[k]);
  22347. });
  22348. return ret;
  22349. }
  22350. function asyncMap(objArr, option, func, callback) {
  22351. if (option.first) {
  22352. var _pending = new Promise(function (resolve, reject) {
  22353. var next = function next(errors) {
  22354. callback(errors);
  22355. return errors.length ? reject({
  22356. errors: errors,
  22357. fields: convertFieldsError(errors)
  22358. }) : resolve();
  22359. };
  22360. var flattenArr = flattenObjArr(objArr);
  22361. asyncSerialArray(flattenArr, func, next);
  22362. });
  22363. _pending.catch(function (e) {
  22364. return e;
  22365. });
  22366. return _pending;
  22367. }
  22368. var firstFields = option.firstFields || [];
  22369. if (firstFields === true) {
  22370. firstFields = Object.keys(objArr);
  22371. }
  22372. var objArrKeys = Object.keys(objArr);
  22373. var objArrLength = objArrKeys.length;
  22374. var total = 0;
  22375. var results = [];
  22376. var pending = new Promise(function (resolve, reject) {
  22377. var next = function next(errors) {
  22378. results.push.apply(results, errors);
  22379. total++;
  22380. if (total === objArrLength) {
  22381. callback(results);
  22382. return results.length ? reject({
  22383. errors: results,
  22384. fields: convertFieldsError(results)
  22385. }) : resolve();
  22386. }
  22387. };
  22388. if (!objArrKeys.length) {
  22389. callback(results);
  22390. resolve();
  22391. }
  22392. objArrKeys.forEach(function (key) {
  22393. var arr = objArr[key];
  22394. if (firstFields.indexOf(key) !== -1) {
  22395. asyncSerialArray(arr, func, next);
  22396. } else {
  22397. asyncParallelArray(arr, func, next);
  22398. }
  22399. });
  22400. });
  22401. pending.catch(function (e) {
  22402. return e;
  22403. });
  22404. return pending;
  22405. }
  22406. function complementError(rule) {
  22407. return function (oe) {
  22408. if (oe && oe.message) {
  22409. oe.field = oe.field || rule.fullField;
  22410. return oe;
  22411. }
  22412. return {
  22413. message: typeof oe === 'function' ? oe() : oe,
  22414. field: oe.field || rule.fullField
  22415. };
  22416. };
  22417. }
  22418. function deepMerge(target, source) {
  22419. if (source) {
  22420. for (var s in source) {
  22421. if (source.hasOwnProperty(s)) {
  22422. var value = source[s];
  22423. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  22424. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  22425. } else {
  22426. target[s] = value;
  22427. }
  22428. }
  22429. }
  22430. }
  22431. return target;
  22432. }
  22433. /**
  22434. * Rule for validating required fields.
  22435. *
  22436. * @param rule The validation rule.
  22437. * @param value The value of the field on the source object.
  22438. * @param source The source object being validated.
  22439. * @param errors An array of errors that this rule may add
  22440. * validation errors to.
  22441. * @param options The validation options.
  22442. * @param options.messages The validation messages.
  22443. */
  22444. function required(rule, value, source, errors, options, type) {
  22445. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  22446. errors.push(format(options.messages.required, rule.fullField));
  22447. }
  22448. }
  22449. /**
  22450. * Rule for validating whitespace.
  22451. *
  22452. * @param rule The validation rule.
  22453. * @param value The value of the field on the source object.
  22454. * @param source The source object being validated.
  22455. * @param errors An array of errors that this rule may add
  22456. * validation errors to.
  22457. * @param options The validation options.
  22458. * @param options.messages The validation messages.
  22459. */
  22460. function whitespace(rule, value, source, errors, options) {
  22461. if (/^\s+$/.test(value) || value === '') {
  22462. errors.push(format(options.messages.whitespace, rule.fullField));
  22463. }
  22464. }
  22465. /* eslint max-len:0 */
  22466. var pattern = {
  22467. // http://emailregex.com/
  22468. 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,}))$/,
  22469. 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'),
  22470. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  22471. };
  22472. var types = {
  22473. integer: function integer(value) {
  22474. return /^(-)?\d+$/.test(value);
  22475. },
  22476. float: function float(value) {
  22477. return /^(-)?\d+(\.\d+)?$/.test(value);
  22478. },
  22479. array: function array(value) {
  22480. return Array.isArray(value);
  22481. },
  22482. regexp: function regexp(value) {
  22483. if (value instanceof RegExp) {
  22484. return true;
  22485. }
  22486. try {
  22487. return !!new RegExp(value);
  22488. } catch (e) {
  22489. return false;
  22490. }
  22491. },
  22492. date: function date(value) {
  22493. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  22494. },
  22495. number: function number(value) {
  22496. if (isNaN(value)) {
  22497. return false;
  22498. }
  22499. // 修改源码,将字符串数值先转为数值
  22500. return typeof +value === 'number';
  22501. },
  22502. object: function object(value) {
  22503. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  22504. },
  22505. method: function method(value) {
  22506. return typeof value === 'function';
  22507. },
  22508. email: function email(value) {
  22509. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  22510. },
  22511. url: function url(value) {
  22512. return typeof value === 'string' && !!value.match(pattern.url);
  22513. },
  22514. hex: function hex(value) {
  22515. return typeof value === 'string' && !!value.match(pattern.hex);
  22516. }
  22517. };
  22518. /**
  22519. * Rule for validating the type of a value.
  22520. *
  22521. * @param rule The validation rule.
  22522. * @param value The value of the field on the source object.
  22523. * @param source The source object being validated.
  22524. * @param errors An array of errors that this rule may add
  22525. * validation errors to.
  22526. * @param options The validation options.
  22527. * @param options.messages The validation messages.
  22528. */
  22529. function type(rule, value, source, errors, options) {
  22530. if (rule.required && value === undefined) {
  22531. required(rule, value, source, errors, options);
  22532. return;
  22533. }
  22534. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  22535. var ruleType = rule.type;
  22536. if (custom.indexOf(ruleType) > -1) {
  22537. if (!types[ruleType](value)) {
  22538. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  22539. } // straight typeof check
  22540. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  22541. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  22542. }
  22543. }
  22544. /**
  22545. * Rule for validating minimum and maximum allowed values.
  22546. *
  22547. * @param rule The validation rule.
  22548. * @param value The value of the field on the source object.
  22549. * @param source The source object being validated.
  22550. * @param errors An array of errors that this rule may add
  22551. * validation errors to.
  22552. * @param options The validation options.
  22553. * @param options.messages The validation messages.
  22554. */
  22555. function range(rule, value, source, errors, options) {
  22556. var len = typeof rule.len === 'number';
  22557. var min = typeof rule.min === 'number';
  22558. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  22559. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  22560. var val = value;
  22561. var key = null;
  22562. var num = typeof value === 'number';
  22563. var str = typeof value === 'string';
  22564. var arr = Array.isArray(value);
  22565. if (num) {
  22566. key = 'number';
  22567. } else if (str) {
  22568. key = 'string';
  22569. } else if (arr) {
  22570. key = 'array';
  22571. } // if the value is not of a supported type for range validation
  22572. // the validation rule rule should use the
  22573. // type property to also test for a particular type
  22574. if (!key) {
  22575. return false;
  22576. }
  22577. if (arr) {
  22578. val = value.length;
  22579. }
  22580. if (str) {
  22581. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  22582. val = value.replace(spRegexp, '_').length;
  22583. }
  22584. if (len) {
  22585. if (val !== rule.len) {
  22586. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  22587. }
  22588. } else if (min && !max && val < rule.min) {
  22589. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  22590. } else if (max && !min && val > rule.max) {
  22591. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  22592. } else if (min && max && (val < rule.min || val > rule.max)) {
  22593. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  22594. }
  22595. }
  22596. var ENUM = 'enum';
  22597. /**
  22598. * Rule for validating a value exists in an enumerable list.
  22599. *
  22600. * @param rule The validation rule.
  22601. * @param value The value of the field on the source object.
  22602. * @param source The source object being validated.
  22603. * @param errors An array of errors that this rule may add
  22604. * validation errors to.
  22605. * @param options The validation options.
  22606. * @param options.messages The validation messages.
  22607. */
  22608. function enumerable(rule, value, source, errors, options) {
  22609. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  22610. if (rule[ENUM].indexOf(value) === -1) {
  22611. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  22612. }
  22613. }
  22614. /**
  22615. * Rule for validating a regular expression pattern.
  22616. *
  22617. * @param rule The validation rule.
  22618. * @param value The value of the field on the source object.
  22619. * @param source The source object being validated.
  22620. * @param errors An array of errors that this rule may add
  22621. * validation errors to.
  22622. * @param options The validation options.
  22623. * @param options.messages The validation messages.
  22624. */
  22625. function pattern$1(rule, value, source, errors, options) {
  22626. if (rule.pattern) {
  22627. if (rule.pattern instanceof RegExp) {
  22628. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  22629. // flag is accidentally set to `true`, which in a validation scenario
  22630. // is not necessary and the result might be misleading
  22631. rule.pattern.lastIndex = 0;
  22632. if (!rule.pattern.test(value)) {
  22633. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  22634. }
  22635. } else if (typeof rule.pattern === 'string') {
  22636. var _pattern = new RegExp(rule.pattern);
  22637. if (!_pattern.test(value)) {
  22638. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  22639. }
  22640. }
  22641. }
  22642. }
  22643. var rules = {
  22644. required: required,
  22645. whitespace: whitespace,
  22646. type: type,
  22647. range: range,
  22648. enum: enumerable,
  22649. pattern: pattern$1
  22650. };
  22651. /**
  22652. * Performs validation for string types.
  22653. *
  22654. * @param rule The validation rule.
  22655. * @param value The value of the field on the source object.
  22656. * @param callback The callback function.
  22657. * @param source The source object being validated.
  22658. * @param options The validation options.
  22659. * @param options.messages The validation messages.
  22660. */
  22661. function string(rule, value, callback, source, options) {
  22662. var errors = [];
  22663. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22664. if (validate) {
  22665. if (isEmptyValue(value, 'string') && !rule.required) {
  22666. return callback();
  22667. }
  22668. rules.required(rule, value, source, errors, options, 'string');
  22669. if (!isEmptyValue(value, 'string')) {
  22670. rules.type(rule, value, source, errors, options);
  22671. rules.range(rule, value, source, errors, options);
  22672. rules.pattern(rule, value, source, errors, options);
  22673. if (rule.whitespace === true) {
  22674. rules.whitespace(rule, value, source, errors, options);
  22675. }
  22676. }
  22677. }
  22678. callback(errors);
  22679. }
  22680. /**
  22681. * Validates a function.
  22682. *
  22683. * @param rule The validation rule.
  22684. * @param value The value of the field on the source object.
  22685. * @param callback The callback function.
  22686. * @param source The source object being validated.
  22687. * @param options The validation options.
  22688. * @param options.messages The validation messages.
  22689. */
  22690. function method(rule, value, callback, source, options) {
  22691. var errors = [];
  22692. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22693. if (validate) {
  22694. if (isEmptyValue(value) && !rule.required) {
  22695. return callback();
  22696. }
  22697. rules.required(rule, value, source, errors, options);
  22698. if (value !== undefined) {
  22699. rules.type(rule, value, source, errors, options);
  22700. }
  22701. }
  22702. callback(errors);
  22703. }
  22704. /**
  22705. * Validates a number.
  22706. *
  22707. * @param rule The validation rule.
  22708. * @param value The value of the field on the source object.
  22709. * @param callback The callback function.
  22710. * @param source The source object being validated.
  22711. * @param options The validation options.
  22712. * @param options.messages The validation messages.
  22713. */
  22714. function number(rule, value, callback, source, options) {
  22715. var errors = [];
  22716. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22717. if (validate) {
  22718. if (value === '') {
  22719. value = undefined;
  22720. }
  22721. if (isEmptyValue(value) && !rule.required) {
  22722. return callback();
  22723. }
  22724. rules.required(rule, value, source, errors, options);
  22725. if (value !== undefined) {
  22726. rules.type(rule, value, source, errors, options);
  22727. rules.range(rule, value, source, errors, options);
  22728. }
  22729. }
  22730. callback(errors);
  22731. }
  22732. /**
  22733. * Validates a boolean.
  22734. *
  22735. * @param rule The validation rule.
  22736. * @param value The value of the field on the source object.
  22737. * @param callback The callback function.
  22738. * @param source The source object being validated.
  22739. * @param options The validation options.
  22740. * @param options.messages The validation messages.
  22741. */
  22742. function _boolean(rule, value, callback, source, options) {
  22743. var errors = [];
  22744. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22745. if (validate) {
  22746. if (isEmptyValue(value) && !rule.required) {
  22747. return callback();
  22748. }
  22749. rules.required(rule, value, source, errors, options);
  22750. if (value !== undefined) {
  22751. rules.type(rule, value, source, errors, options);
  22752. }
  22753. }
  22754. callback(errors);
  22755. }
  22756. /**
  22757. * Validates the regular expression type.
  22758. *
  22759. * @param rule The validation rule.
  22760. * @param value The value of the field on the source object.
  22761. * @param callback The callback function.
  22762. * @param source The source object being validated.
  22763. * @param options The validation options.
  22764. * @param options.messages The validation messages.
  22765. */
  22766. function regexp(rule, value, callback, source, options) {
  22767. var errors = [];
  22768. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22769. if (validate) {
  22770. if (isEmptyValue(value) && !rule.required) {
  22771. return callback();
  22772. }
  22773. rules.required(rule, value, source, errors, options);
  22774. if (!isEmptyValue(value)) {
  22775. rules.type(rule, value, source, errors, options);
  22776. }
  22777. }
  22778. callback(errors);
  22779. }
  22780. /**
  22781. * Validates a number is an integer.
  22782. *
  22783. * @param rule The validation rule.
  22784. * @param value The value of the field on the source object.
  22785. * @param callback The callback function.
  22786. * @param source The source object being validated.
  22787. * @param options The validation options.
  22788. * @param options.messages The validation messages.
  22789. */
  22790. function integer(rule, value, callback, source, options) {
  22791. var errors = [];
  22792. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22793. if (validate) {
  22794. if (isEmptyValue(value) && !rule.required) {
  22795. return callback();
  22796. }
  22797. rules.required(rule, value, source, errors, options);
  22798. if (value !== undefined) {
  22799. rules.type(rule, value, source, errors, options);
  22800. rules.range(rule, value, source, errors, options);
  22801. }
  22802. }
  22803. callback(errors);
  22804. }
  22805. /**
  22806. * Validates a number is a floating point number.
  22807. *
  22808. * @param rule The validation rule.
  22809. * @param value The value of the field on the source object.
  22810. * @param callback The callback function.
  22811. * @param source The source object being validated.
  22812. * @param options The validation options.
  22813. * @param options.messages The validation messages.
  22814. */
  22815. function floatFn(rule, value, callback, source, options) {
  22816. var errors = [];
  22817. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22818. if (validate) {
  22819. if (isEmptyValue(value) && !rule.required) {
  22820. return callback();
  22821. }
  22822. rules.required(rule, value, source, errors, options);
  22823. if (value !== undefined) {
  22824. rules.type(rule, value, source, errors, options);
  22825. rules.range(rule, value, source, errors, options);
  22826. }
  22827. }
  22828. callback(errors);
  22829. }
  22830. /**
  22831. * Validates an array.
  22832. *
  22833. * @param rule The validation rule.
  22834. * @param value The value of the field on the source object.
  22835. * @param callback The callback function.
  22836. * @param source The source object being validated.
  22837. * @param options The validation options.
  22838. * @param options.messages The validation messages.
  22839. */
  22840. function array(rule, value, callback, source, options) {
  22841. var errors = [];
  22842. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22843. if (validate) {
  22844. if (isEmptyValue(value, 'array') && !rule.required) {
  22845. return callback();
  22846. }
  22847. rules.required(rule, value, source, errors, options, 'array');
  22848. if (!isEmptyValue(value, 'array')) {
  22849. rules.type(rule, value, source, errors, options);
  22850. rules.range(rule, value, source, errors, options);
  22851. }
  22852. }
  22853. callback(errors);
  22854. }
  22855. /**
  22856. * Validates an object.
  22857. *
  22858. * @param rule The validation rule.
  22859. * @param value The value of the field on the source object.
  22860. * @param callback The callback function.
  22861. * @param source The source object being validated.
  22862. * @param options The validation options.
  22863. * @param options.messages The validation messages.
  22864. */
  22865. function object(rule, value, callback, source, options) {
  22866. var errors = [];
  22867. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22868. if (validate) {
  22869. if (isEmptyValue(value) && !rule.required) {
  22870. return callback();
  22871. }
  22872. rules.required(rule, value, source, errors, options);
  22873. if (value !== undefined) {
  22874. rules.type(rule, value, source, errors, options);
  22875. }
  22876. }
  22877. callback(errors);
  22878. }
  22879. var ENUM$1 = 'enum';
  22880. /**
  22881. * Validates an enumerable list.
  22882. *
  22883. * @param rule The validation rule.
  22884. * @param value The value of the field on the source object.
  22885. * @param callback The callback function.
  22886. * @param source The source object being validated.
  22887. * @param options The validation options.
  22888. * @param options.messages The validation messages.
  22889. */
  22890. function enumerable$1(rule, value, callback, source, options) {
  22891. var errors = [];
  22892. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22893. if (validate) {
  22894. if (isEmptyValue(value) && !rule.required) {
  22895. return callback();
  22896. }
  22897. rules.required(rule, value, source, errors, options);
  22898. if (value !== undefined) {
  22899. rules[ENUM$1](rule, value, source, errors, options);
  22900. }
  22901. }
  22902. callback(errors);
  22903. }
  22904. /**
  22905. * Validates a regular expression pattern.
  22906. *
  22907. * Performs validation when a rule only contains
  22908. * a pattern property but is not declared as a string type.
  22909. *
  22910. * @param rule The validation rule.
  22911. * @param value The value of the field on the source object.
  22912. * @param callback The callback function.
  22913. * @param source The source object being validated.
  22914. * @param options The validation options.
  22915. * @param options.messages The validation messages.
  22916. */
  22917. function pattern$2(rule, value, callback, source, options) {
  22918. var errors = [];
  22919. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22920. if (validate) {
  22921. if (isEmptyValue(value, 'string') && !rule.required) {
  22922. return callback();
  22923. }
  22924. rules.required(rule, value, source, errors, options);
  22925. if (!isEmptyValue(value, 'string')) {
  22926. rules.pattern(rule, value, source, errors, options);
  22927. }
  22928. }
  22929. callback(errors);
  22930. }
  22931. function date(rule, value, callback, source, options) {
  22932. var errors = [];
  22933. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22934. if (validate) {
  22935. if (isEmptyValue(value) && !rule.required) {
  22936. return callback();
  22937. }
  22938. rules.required(rule, value, source, errors, options);
  22939. if (!isEmptyValue(value)) {
  22940. var dateObject;
  22941. if (typeof value === 'number') {
  22942. dateObject = new Date(value);
  22943. } else {
  22944. dateObject = value;
  22945. }
  22946. rules.type(rule, dateObject, source, errors, options);
  22947. if (dateObject) {
  22948. rules.range(rule, dateObject.getTime(), source, errors, options);
  22949. }
  22950. }
  22951. }
  22952. callback(errors);
  22953. }
  22954. function required$1(rule, value, callback, source, options) {
  22955. var errors = [];
  22956. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  22957. rules.required(rule, value, source, errors, options, type);
  22958. callback(errors);
  22959. }
  22960. function type$1(rule, value, callback, source, options) {
  22961. var ruleType = rule.type;
  22962. var errors = [];
  22963. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22964. if (validate) {
  22965. if (isEmptyValue(value, ruleType) && !rule.required) {
  22966. return callback();
  22967. }
  22968. rules.required(rule, value, source, errors, options, ruleType);
  22969. if (!isEmptyValue(value, ruleType)) {
  22970. rules.type(rule, value, source, errors, options);
  22971. }
  22972. }
  22973. callback(errors);
  22974. }
  22975. /**
  22976. * Performs validation for any type.
  22977. *
  22978. * @param rule The validation rule.
  22979. * @param value The value of the field on the source object.
  22980. * @param callback The callback function.
  22981. * @param source The source object being validated.
  22982. * @param options The validation options.
  22983. * @param options.messages The validation messages.
  22984. */
  22985. function any(rule, value, callback, source, options) {
  22986. var errors = [];
  22987. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  22988. if (validate) {
  22989. if (isEmptyValue(value) && !rule.required) {
  22990. return callback();
  22991. }
  22992. rules.required(rule, value, source, errors, options);
  22993. }
  22994. callback(errors);
  22995. }
  22996. var validators = {
  22997. string: string,
  22998. method: method,
  22999. number: number,
  23000. boolean: _boolean,
  23001. regexp: regexp,
  23002. integer: integer,
  23003. float: floatFn,
  23004. array: array,
  23005. object: object,
  23006. enum: enumerable$1,
  23007. pattern: pattern$2,
  23008. date: date,
  23009. url: type$1,
  23010. hex: type$1,
  23011. email: type$1,
  23012. required: required$1,
  23013. any: any
  23014. };
  23015. function newMessages() {
  23016. return {
  23017. default: 'Validation error on field %s',
  23018. required: '%s is required',
  23019. enum: '%s must be one of %s',
  23020. whitespace: '%s cannot be empty',
  23021. date: {
  23022. format: '%s date %s is invalid for format %s',
  23023. parse: '%s date could not be parsed, %s is invalid ',
  23024. invalid: '%s date %s is invalid'
  23025. },
  23026. types: {
  23027. string: '%s is not a %s',
  23028. method: '%s is not a %s (function)',
  23029. array: '%s is not an %s',
  23030. object: '%s is not an %s',
  23031. number: '%s is not a %s',
  23032. date: '%s is not a %s',
  23033. boolean: '%s is not a %s',
  23034. integer: '%s is not an %s',
  23035. float: '%s is not a %s',
  23036. regexp: '%s is not a valid %s',
  23037. email: '%s is not a valid %s',
  23038. url: '%s is not a valid %s',
  23039. hex: '%s is not a valid %s'
  23040. },
  23041. string: {
  23042. len: '%s must be exactly %s characters',
  23043. min: '%s must be at least %s characters',
  23044. max: '%s cannot be longer than %s characters',
  23045. range: '%s must be between %s and %s characters'
  23046. },
  23047. number: {
  23048. len: '%s must equal %s',
  23049. min: '%s cannot be less than %s',
  23050. max: '%s cannot be greater than %s',
  23051. range: '%s must be between %s and %s'
  23052. },
  23053. array: {
  23054. len: '%s must be exactly %s in length',
  23055. min: '%s cannot be less than %s in length',
  23056. max: '%s cannot be greater than %s in length',
  23057. range: '%s must be between %s and %s in length'
  23058. },
  23059. pattern: {
  23060. mismatch: '%s value %s does not match pattern %s'
  23061. },
  23062. clone: function clone() {
  23063. var cloned = JSON.parse(JSON.stringify(this));
  23064. cloned.clone = this.clone;
  23065. return cloned;
  23066. }
  23067. };
  23068. }
  23069. var messages = newMessages();
  23070. /**
  23071. * Encapsulates a validation schema.
  23072. *
  23073. * @param descriptor An object declaring validation rules
  23074. * for this schema.
  23075. */
  23076. function Schema(descriptor) {
  23077. this.rules = null;
  23078. this._messages = messages;
  23079. this.define(descriptor);
  23080. }
  23081. Schema.prototype = {
  23082. messages: function messages(_messages) {
  23083. if (_messages) {
  23084. this._messages = deepMerge(newMessages(), _messages);
  23085. }
  23086. return this._messages;
  23087. },
  23088. define: function define(rules) {
  23089. if (!rules) {
  23090. throw new Error('Cannot configure a schema with no rules');
  23091. }
  23092. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  23093. throw new Error('Rules must be an object');
  23094. }
  23095. this.rules = {};
  23096. var z;
  23097. var item;
  23098. for (z in rules) {
  23099. if (rules.hasOwnProperty(z)) {
  23100. item = rules[z];
  23101. this.rules[z] = Array.isArray(item) ? item : [item];
  23102. }
  23103. }
  23104. },
  23105. validate: function validate(source_, o, oc) {
  23106. var _this = this;
  23107. if (o === void 0) {
  23108. o = {};
  23109. }
  23110. if (oc === void 0) {
  23111. oc = function oc() {};
  23112. }
  23113. var source = source_;
  23114. var options = o;
  23115. var callback = oc;
  23116. if (typeof options === 'function') {
  23117. callback = options;
  23118. options = {};
  23119. }
  23120. if (!this.rules || Object.keys(this.rules).length === 0) {
  23121. if (callback) {
  23122. callback();
  23123. }
  23124. return Promise.resolve();
  23125. }
  23126. function complete(results) {
  23127. var i;
  23128. var errors = [];
  23129. var fields = {};
  23130. function add(e) {
  23131. if (Array.isArray(e)) {
  23132. var _errors;
  23133. errors = (_errors = errors).concat.apply(_errors, e);
  23134. } else {
  23135. errors.push(e);
  23136. }
  23137. }
  23138. for (i = 0; i < results.length; i++) {
  23139. add(results[i]);
  23140. }
  23141. if (!errors.length) {
  23142. errors = null;
  23143. fields = null;
  23144. } else {
  23145. fields = convertFieldsError(errors);
  23146. }
  23147. callback(errors, fields);
  23148. }
  23149. if (options.messages) {
  23150. var messages$1 = this.messages();
  23151. if (messages$1 === messages) {
  23152. messages$1 = newMessages();
  23153. }
  23154. deepMerge(messages$1, options.messages);
  23155. options.messages = messages$1;
  23156. } else {
  23157. options.messages = this.messages();
  23158. }
  23159. var arr;
  23160. var value;
  23161. var series = {};
  23162. var keys = options.keys || Object.keys(this.rules);
  23163. keys.forEach(function (z) {
  23164. arr = _this.rules[z];
  23165. value = source[z];
  23166. arr.forEach(function (r) {
  23167. var rule = r;
  23168. if (typeof rule.transform === 'function') {
  23169. if (source === source_) {
  23170. source = _objectSpread({}, source);
  23171. }
  23172. value = source[z] = rule.transform(value);
  23173. }
  23174. if (typeof rule === 'function') {
  23175. rule = {
  23176. validator: rule
  23177. };
  23178. } else {
  23179. rule = _objectSpread({}, rule);
  23180. }
  23181. rule.validator = _this.getValidationMethod(rule);
  23182. rule.field = z;
  23183. rule.fullField = rule.fullField || z;
  23184. rule.type = _this.getType(rule);
  23185. if (!rule.validator) {
  23186. return;
  23187. }
  23188. series[z] = series[z] || [];
  23189. series[z].push({
  23190. rule: rule,
  23191. value: value,
  23192. source: source,
  23193. field: z
  23194. });
  23195. });
  23196. });
  23197. var errorFields = {};
  23198. return asyncMap(series, options, function (data, doIt) {
  23199. var rule = data.rule;
  23200. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  23201. deep = deep && (rule.required || !rule.required && data.value);
  23202. rule.field = data.field;
  23203. function addFullfield(key, schema) {
  23204. return _objectSpread(_objectSpread({}, schema), {}, {
  23205. fullField: "".concat(rule.fullField, ".").concat(key)
  23206. });
  23207. }
  23208. function cb(e) {
  23209. if (e === void 0) {
  23210. e = [];
  23211. }
  23212. var errors = e;
  23213. if (!Array.isArray(errors)) {
  23214. errors = [errors];
  23215. }
  23216. if (!options.suppressWarning && errors.length) {
  23217. Schema.warning('async-validator:', errors);
  23218. }
  23219. if (errors.length && rule.message) {
  23220. errors = [].concat(rule.message);
  23221. }
  23222. errors = errors.map(complementError(rule));
  23223. if (options.first && errors.length) {
  23224. errorFields[rule.field] = 1;
  23225. return doIt(errors);
  23226. }
  23227. if (!deep) {
  23228. doIt(errors);
  23229. } else {
  23230. // if rule is required but the target object
  23231. // does not exist fail at the rule level and don't
  23232. // go deeper
  23233. if (rule.required && !data.value) {
  23234. if (rule.message) {
  23235. errors = [].concat(rule.message).map(complementError(rule));
  23236. } else if (options.error) {
  23237. errors = [options.error(rule, format(options.messages.required, rule.field))];
  23238. } else {
  23239. errors = [];
  23240. }
  23241. return doIt(errors);
  23242. }
  23243. var fieldsSchema = {};
  23244. if (rule.defaultField) {
  23245. for (var k in data.value) {
  23246. if (data.value.hasOwnProperty(k)) {
  23247. fieldsSchema[k] = rule.defaultField;
  23248. }
  23249. }
  23250. }
  23251. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  23252. for (var f in fieldsSchema) {
  23253. if (fieldsSchema.hasOwnProperty(f)) {
  23254. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  23255. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  23256. }
  23257. }
  23258. var schema = new Schema(fieldsSchema);
  23259. schema.messages(options.messages);
  23260. if (data.rule.options) {
  23261. data.rule.options.messages = options.messages;
  23262. data.rule.options.error = options.error;
  23263. }
  23264. schema.validate(data.value, data.rule.options || options, function (errs) {
  23265. var finalErrors = [];
  23266. if (errors && errors.length) {
  23267. finalErrors.push.apply(finalErrors, errors);
  23268. }
  23269. if (errs && errs.length) {
  23270. finalErrors.push.apply(finalErrors, errs);
  23271. }
  23272. doIt(finalErrors.length ? finalErrors : null);
  23273. });
  23274. }
  23275. }
  23276. var res;
  23277. if (rule.asyncValidator) {
  23278. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  23279. } else if (rule.validator) {
  23280. res = rule.validator(rule, data.value, cb, data.source, options);
  23281. if (res === true) {
  23282. cb();
  23283. } else if (res === false) {
  23284. cb(rule.message || "".concat(rule.field, " fails"));
  23285. } else if (res instanceof Array) {
  23286. cb(res);
  23287. } else if (res instanceof Error) {
  23288. cb(res.message);
  23289. }
  23290. }
  23291. if (res && res.then) {
  23292. res.then(function () {
  23293. return cb();
  23294. }, function (e) {
  23295. return cb(e);
  23296. });
  23297. }
  23298. }, function (results) {
  23299. complete(results);
  23300. });
  23301. },
  23302. getType: function getType(rule) {
  23303. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  23304. rule.type = 'pattern';
  23305. }
  23306. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  23307. throw new Error(format('Unknown rule type %s', rule.type));
  23308. }
  23309. return rule.type || 'string';
  23310. },
  23311. getValidationMethod: function getValidationMethod(rule) {
  23312. if (typeof rule.validator === 'function') {
  23313. return rule.validator;
  23314. }
  23315. var keys = Object.keys(rule);
  23316. var messageIndex = keys.indexOf('message');
  23317. if (messageIndex !== -1) {
  23318. keys.splice(messageIndex, 1);
  23319. }
  23320. if (keys.length === 1 && keys[0] === 'required') {
  23321. return validators.required;
  23322. }
  23323. return validators[this.getType(rule)] || false;
  23324. }
  23325. };
  23326. Schema.register = function register(type, validator) {
  23327. if (typeof validator !== 'function') {
  23328. throw new Error('Cannot register a validator by type, validator is not a function');
  23329. }
  23330. validators[type] = validator;
  23331. };
  23332. Schema.warning = warning;
  23333. Schema.messages = messages;
  23334. var _default = Schema; // # sourceMappingURL=index.js.map
  23335. exports.default = _default;
  23336. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 226)))
  23337. /***/ }),
  23338. /* 226 */
  23339. /*!********************************************************!*\
  23340. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  23341. \********************************************************/
  23342. /*! no static exports found */
  23343. /***/ (function(module, exports, __webpack_require__) {
  23344. exports.nextTick = function nextTick(fn) {
  23345. var args = Array.prototype.slice.call(arguments);
  23346. args.shift();
  23347. setTimeout(function () {
  23348. fn.apply(null, args);
  23349. }, 0);
  23350. };
  23351. exports.platform = exports.arch =
  23352. exports.execPath = exports.title = 'browser';
  23353. exports.pid = 1;
  23354. exports.browser = true;
  23355. exports.env = {};
  23356. exports.argv = [];
  23357. exports.binding = function (name) {
  23358. throw new Error('No such module. (Possibly not yet loaded)')
  23359. };
  23360. (function () {
  23361. var cwd = '/';
  23362. var path;
  23363. exports.cwd = function () { return cwd };
  23364. exports.chdir = function (dir) {
  23365. if (!path) path = __webpack_require__(/*! path */ 227);
  23366. cwd = path.resolve(dir, cwd);
  23367. };
  23368. })();
  23369. exports.exit = exports.kill =
  23370. exports.umask = exports.dlopen =
  23371. exports.uptime = exports.memoryUsage =
  23372. exports.uvCounters = function() {};
  23373. exports.features = {};
  23374. /***/ }),
  23375. /* 227 */
  23376. /*!***********************************************!*\
  23377. !*** ./node_modules/path-browserify/index.js ***!
  23378. \***********************************************/
  23379. /*! no static exports found */
  23380. /***/ (function(module, exports, __webpack_require__) {
  23381. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  23382. // backported and transplited with Babel, with backwards-compat fixes
  23383. // Copyright Joyent, Inc. and other Node contributors.
  23384. //
  23385. // Permission is hereby granted, free of charge, to any person obtaining a
  23386. // copy of this software and associated documentation files (the
  23387. // "Software"), to deal in the Software without restriction, including
  23388. // without limitation the rights to use, copy, modify, merge, publish,
  23389. // distribute, sublicense, and/or sell copies of the Software, and to permit
  23390. // persons to whom the Software is furnished to do so, subject to the
  23391. // following conditions:
  23392. //
  23393. // The above copyright notice and this permission notice shall be included
  23394. // in all copies or substantial portions of the Software.
  23395. //
  23396. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  23397. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23398. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  23399. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  23400. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  23401. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  23402. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  23403. // resolves . and .. elements in a path array with directory names there
  23404. // must be no slashes, empty elements, or device names (c:\) in the array
  23405. // (so also no leading and trailing slashes - it does not distinguish
  23406. // relative and absolute paths)
  23407. function normalizeArray(parts, allowAboveRoot) {
  23408. // if the path tries to go above the root, `up` ends up > 0
  23409. var up = 0;
  23410. for (var i = parts.length - 1; i >= 0; i--) {
  23411. var last = parts[i];
  23412. if (last === '.') {
  23413. parts.splice(i, 1);
  23414. } else if (last === '..') {
  23415. parts.splice(i, 1);
  23416. up++;
  23417. } else if (up) {
  23418. parts.splice(i, 1);
  23419. up--;
  23420. }
  23421. }
  23422. // if the path is allowed to go above the root, restore leading ..s
  23423. if (allowAboveRoot) {
  23424. for (; up--; up) {
  23425. parts.unshift('..');
  23426. }
  23427. }
  23428. return parts;
  23429. }
  23430. // path.resolve([from ...], to)
  23431. // posix version
  23432. exports.resolve = function() {
  23433. var resolvedPath = '',
  23434. resolvedAbsolute = false;
  23435. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  23436. var path = (i >= 0) ? arguments[i] : process.cwd();
  23437. // Skip empty and invalid entries
  23438. if (typeof path !== 'string') {
  23439. throw new TypeError('Arguments to path.resolve must be strings');
  23440. } else if (!path) {
  23441. continue;
  23442. }
  23443. resolvedPath = path + '/' + resolvedPath;
  23444. resolvedAbsolute = path.charAt(0) === '/';
  23445. }
  23446. // At this point the path should be resolved to a full absolute path, but
  23447. // handle relative paths to be safe (might happen when process.cwd() fails)
  23448. // Normalize the path
  23449. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  23450. return !!p;
  23451. }), !resolvedAbsolute).join('/');
  23452. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  23453. };
  23454. // path.normalize(path)
  23455. // posix version
  23456. exports.normalize = function(path) {
  23457. var isAbsolute = exports.isAbsolute(path),
  23458. trailingSlash = substr(path, -1) === '/';
  23459. // Normalize the path
  23460. path = normalizeArray(filter(path.split('/'), function(p) {
  23461. return !!p;
  23462. }), !isAbsolute).join('/');
  23463. if (!path && !isAbsolute) {
  23464. path = '.';
  23465. }
  23466. if (path && trailingSlash) {
  23467. path += '/';
  23468. }
  23469. return (isAbsolute ? '/' : '') + path;
  23470. };
  23471. // posix version
  23472. exports.isAbsolute = function(path) {
  23473. return path.charAt(0) === '/';
  23474. };
  23475. // posix version
  23476. exports.join = function() {
  23477. var paths = Array.prototype.slice.call(arguments, 0);
  23478. return exports.normalize(filter(paths, function(p, index) {
  23479. if (typeof p !== 'string') {
  23480. throw new TypeError('Arguments to path.join must be strings');
  23481. }
  23482. return p;
  23483. }).join('/'));
  23484. };
  23485. // path.relative(from, to)
  23486. // posix version
  23487. exports.relative = function(from, to) {
  23488. from = exports.resolve(from).substr(1);
  23489. to = exports.resolve(to).substr(1);
  23490. function trim(arr) {
  23491. var start = 0;
  23492. for (; start < arr.length; start++) {
  23493. if (arr[start] !== '') break;
  23494. }
  23495. var end = arr.length - 1;
  23496. for (; end >= 0; end--) {
  23497. if (arr[end] !== '') break;
  23498. }
  23499. if (start > end) return [];
  23500. return arr.slice(start, end - start + 1);
  23501. }
  23502. var fromParts = trim(from.split('/'));
  23503. var toParts = trim(to.split('/'));
  23504. var length = Math.min(fromParts.length, toParts.length);
  23505. var samePartsLength = length;
  23506. for (var i = 0; i < length; i++) {
  23507. if (fromParts[i] !== toParts[i]) {
  23508. samePartsLength = i;
  23509. break;
  23510. }
  23511. }
  23512. var outputParts = [];
  23513. for (var i = samePartsLength; i < fromParts.length; i++) {
  23514. outputParts.push('..');
  23515. }
  23516. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  23517. return outputParts.join('/');
  23518. };
  23519. exports.sep = '/';
  23520. exports.delimiter = ':';
  23521. exports.dirname = function (path) {
  23522. if (typeof path !== 'string') path = path + '';
  23523. if (path.length === 0) return '.';
  23524. var code = path.charCodeAt(0);
  23525. var hasRoot = code === 47 /*/*/;
  23526. var end = -1;
  23527. var matchedSlash = true;
  23528. for (var i = path.length - 1; i >= 1; --i) {
  23529. code = path.charCodeAt(i);
  23530. if (code === 47 /*/*/) {
  23531. if (!matchedSlash) {
  23532. end = i;
  23533. break;
  23534. }
  23535. } else {
  23536. // We saw the first non-path separator
  23537. matchedSlash = false;
  23538. }
  23539. }
  23540. if (end === -1) return hasRoot ? '/' : '.';
  23541. if (hasRoot && end === 1) {
  23542. // return '//';
  23543. // Backwards-compat fix:
  23544. return '/';
  23545. }
  23546. return path.slice(0, end);
  23547. };
  23548. function basename(path) {
  23549. if (typeof path !== 'string') path = path + '';
  23550. var start = 0;
  23551. var end = -1;
  23552. var matchedSlash = true;
  23553. var i;
  23554. for (i = path.length - 1; i >= 0; --i) {
  23555. if (path.charCodeAt(i) === 47 /*/*/) {
  23556. // If we reached a path separator that was not part of a set of path
  23557. // separators at the end of the string, stop now
  23558. if (!matchedSlash) {
  23559. start = i + 1;
  23560. break;
  23561. }
  23562. } else if (end === -1) {
  23563. // We saw the first non-path separator, mark this as the end of our
  23564. // path component
  23565. matchedSlash = false;
  23566. end = i + 1;
  23567. }
  23568. }
  23569. if (end === -1) return '';
  23570. return path.slice(start, end);
  23571. }
  23572. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  23573. // in new Node.js versions, so only basename() above is backported here
  23574. exports.basename = function (path, ext) {
  23575. var f = basename(path);
  23576. if (ext && f.substr(-1 * ext.length) === ext) {
  23577. f = f.substr(0, f.length - ext.length);
  23578. }
  23579. return f;
  23580. };
  23581. exports.extname = function (path) {
  23582. if (typeof path !== 'string') path = path + '';
  23583. var startDot = -1;
  23584. var startPart = 0;
  23585. var end = -1;
  23586. var matchedSlash = true;
  23587. // Track the state of characters (if any) we see before our first dot and
  23588. // after any path separator we find
  23589. var preDotState = 0;
  23590. for (var i = path.length - 1; i >= 0; --i) {
  23591. var code = path.charCodeAt(i);
  23592. if (code === 47 /*/*/) {
  23593. // If we reached a path separator that was not part of a set of path
  23594. // separators at the end of the string, stop now
  23595. if (!matchedSlash) {
  23596. startPart = i + 1;
  23597. break;
  23598. }
  23599. continue;
  23600. }
  23601. if (end === -1) {
  23602. // We saw the first non-path separator, mark this as the end of our
  23603. // extension
  23604. matchedSlash = false;
  23605. end = i + 1;
  23606. }
  23607. if (code === 46 /*.*/) {
  23608. // If this is our first dot, mark it as the start of our extension
  23609. if (startDot === -1)
  23610. startDot = i;
  23611. else if (preDotState !== 1)
  23612. preDotState = 1;
  23613. } else if (startDot !== -1) {
  23614. // We saw a non-dot and non-path separator before our dot, so we should
  23615. // have a good chance at having a non-empty extension
  23616. preDotState = -1;
  23617. }
  23618. }
  23619. if (startDot === -1 || end === -1 ||
  23620. // We saw a non-dot character immediately before the dot
  23621. preDotState === 0 ||
  23622. // The (right-most) trimmed path component is exactly '..'
  23623. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  23624. return '';
  23625. }
  23626. return path.slice(startDot, end);
  23627. };
  23628. function filter (xs, f) {
  23629. if (xs.filter) return xs.filter(f);
  23630. var res = [];
  23631. for (var i = 0; i < xs.length; i++) {
  23632. if (f(xs[i], i, xs)) res.push(xs[i]);
  23633. }
  23634. return res;
  23635. }
  23636. // String.prototype.substr - negative index don't work in IE8
  23637. var substr = 'ab'.substr(-1) === 'b'
  23638. ? function (str, start, len) { return str.substr(start, len) }
  23639. : function (str, start, len) {
  23640. if (start < 0) start = str.length + start;
  23641. return str.substr(start, len);
  23642. }
  23643. ;
  23644. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 226)))
  23645. /***/ }),
  23646. /* 228 */,
  23647. /* 229 */,
  23648. /* 230 */,
  23649. /* 231 */,
  23650. /* 232 */,
  23651. /* 233 */
  23652. /*!******************************************************************************************************************!*\
  23653. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-icon/icons.js ***!
  23654. \******************************************************************************************************************/
  23655. /*! no static exports found */
  23656. /***/ (function(module, exports, __webpack_require__) {
  23657. "use strict";
  23658. Object.defineProperty(exports, "__esModule", {
  23659. value: true
  23660. });
  23661. exports.default = void 0;
  23662. var _default = {
  23663. 'uicon-level': "\uE693",
  23664. 'uicon-column-line': "\uE68E",
  23665. 'uicon-checkbox-mark': "\uE807",
  23666. 'uicon-folder': "\uE7F5",
  23667. 'uicon-movie': "\uE7F6",
  23668. 'uicon-star-fill': "\uE669",
  23669. 'uicon-star': "\uE65F",
  23670. 'uicon-phone-fill': "\uE64F",
  23671. 'uicon-phone': "\uE622",
  23672. 'uicon-apple-fill': "\uE881",
  23673. 'uicon-chrome-circle-fill': "\uE885",
  23674. 'uicon-backspace': "\uE67B",
  23675. 'uicon-attach': "\uE632",
  23676. 'uicon-cut': "\uE948",
  23677. 'uicon-empty-car': "\uE602",
  23678. 'uicon-empty-coupon': "\uE682",
  23679. 'uicon-empty-address': "\uE646",
  23680. 'uicon-empty-favor': "\uE67C",
  23681. 'uicon-empty-permission': "\uE686",
  23682. 'uicon-empty-news': "\uE687",
  23683. 'uicon-empty-search': "\uE664",
  23684. 'uicon-github-circle-fill': "\uE887",
  23685. 'uicon-rmb': "\uE608",
  23686. 'uicon-person-delete-fill': "\uE66A",
  23687. 'uicon-reload': "\uE788",
  23688. 'uicon-order': "\uE68F",
  23689. 'uicon-server-man': "\uE6BC",
  23690. 'uicon-search': "\uE62A",
  23691. 'uicon-fingerprint': "\uE955",
  23692. 'uicon-more-dot-fill': "\uE630",
  23693. 'uicon-scan': "\uE662",
  23694. 'uicon-share-square': "\uE60B",
  23695. 'uicon-map': "\uE61D",
  23696. 'uicon-map-fill': "\uE64E",
  23697. 'uicon-tags': "\uE629",
  23698. 'uicon-tags-fill': "\uE651",
  23699. 'uicon-bookmark-fill': "\uE63B",
  23700. 'uicon-bookmark': "\uE60A",
  23701. 'uicon-eye': "\uE613",
  23702. 'uicon-eye-fill': "\uE641",
  23703. 'uicon-mic': "\uE64A",
  23704. 'uicon-mic-off': "\uE649",
  23705. 'uicon-calendar': "\uE66E",
  23706. 'uicon-calendar-fill': "\uE634",
  23707. 'uicon-trash': "\uE623",
  23708. 'uicon-trash-fill': "\uE658",
  23709. 'uicon-play-left': "\uE66D",
  23710. 'uicon-play-right': "\uE610",
  23711. 'uicon-minus': "\uE618",
  23712. 'uicon-plus': "\uE62D",
  23713. 'uicon-info': "\uE653",
  23714. 'uicon-info-circle': "\uE7D2",
  23715. 'uicon-info-circle-fill': "\uE64B",
  23716. 'uicon-question': "\uE715",
  23717. 'uicon-error': "\uE6D3",
  23718. 'uicon-close': "\uE685",
  23719. 'uicon-checkmark': "\uE6A8",
  23720. 'uicon-android-circle-fill': "\uE67E",
  23721. 'uicon-android-fill': "\uE67D",
  23722. 'uicon-ie': "\uE87B",
  23723. 'uicon-IE-circle-fill': "\uE889",
  23724. 'uicon-google': "\uE87A",
  23725. 'uicon-google-circle-fill': "\uE88A",
  23726. 'uicon-setting-fill': "\uE872",
  23727. 'uicon-setting': "\uE61F",
  23728. 'uicon-minus-square-fill': "\uE855",
  23729. 'uicon-plus-square-fill': "\uE856",
  23730. 'uicon-heart': "\uE7DF",
  23731. 'uicon-heart-fill': "\uE851",
  23732. 'uicon-camera': "\uE7D7",
  23733. 'uicon-camera-fill': "\uE870",
  23734. 'uicon-more-circle': "\uE63E",
  23735. 'uicon-more-circle-fill': "\uE645",
  23736. 'uicon-chat': "\uE620",
  23737. 'uicon-chat-fill': "\uE61E",
  23738. 'uicon-bag-fill': "\uE617",
  23739. 'uicon-bag': "\uE619",
  23740. 'uicon-error-circle-fill': "\uE62C",
  23741. 'uicon-error-circle': "\uE624",
  23742. 'uicon-close-circle': "\uE63F",
  23743. 'uicon-close-circle-fill': "\uE637",
  23744. 'uicon-checkmark-circle': "\uE63D",
  23745. 'uicon-checkmark-circle-fill': "\uE635",
  23746. 'uicon-question-circle-fill': "\uE666",
  23747. 'uicon-question-circle': "\uE625",
  23748. 'uicon-share': "\uE631",
  23749. 'uicon-share-fill': "\uE65E",
  23750. 'uicon-shopping-cart': "\uE621",
  23751. 'uicon-shopping-cart-fill': "\uE65D",
  23752. 'uicon-bell': "\uE609",
  23753. 'uicon-bell-fill': "\uE640",
  23754. 'uicon-list': "\uE650",
  23755. 'uicon-list-dot': "\uE616",
  23756. 'uicon-zhihu': "\uE6BA",
  23757. 'uicon-zhihu-circle-fill': "\uE709",
  23758. 'uicon-zhifubao': "\uE6B9",
  23759. 'uicon-zhifubao-circle-fill': "\uE6B8",
  23760. 'uicon-weixin-circle-fill': "\uE6B1",
  23761. 'uicon-weixin-fill': "\uE6B2",
  23762. 'uicon-twitter-circle-fill': "\uE6AB",
  23763. 'uicon-twitter': "\uE6AA",
  23764. 'uicon-taobao-circle-fill': "\uE6A7",
  23765. 'uicon-taobao': "\uE6A6",
  23766. 'uicon-weibo-circle-fill': "\uE6A5",
  23767. 'uicon-weibo': "\uE6A4",
  23768. 'uicon-qq-fill': "\uE6A1",
  23769. 'uicon-qq-circle-fill': "\uE6A0",
  23770. 'uicon-moments-circel-fill': "\uE69A",
  23771. 'uicon-moments': "\uE69B",
  23772. 'uicon-qzone': "\uE695",
  23773. 'uicon-qzone-circle-fill': "\uE696",
  23774. 'uicon-baidu-circle-fill': "\uE680",
  23775. 'uicon-baidu': "\uE681",
  23776. 'uicon-facebook-circle-fill': "\uE68A",
  23777. 'uicon-facebook': "\uE689",
  23778. 'uicon-car': "\uE60C",
  23779. 'uicon-car-fill': "\uE636",
  23780. 'uicon-warning-fill': "\uE64D",
  23781. 'uicon-warning': "\uE694",
  23782. 'uicon-clock-fill': "\uE638",
  23783. 'uicon-clock': "\uE60F",
  23784. 'uicon-edit-pen': "\uE612",
  23785. 'uicon-edit-pen-fill': "\uE66B",
  23786. 'uicon-email': "\uE611",
  23787. 'uicon-email-fill': "\uE642",
  23788. 'uicon-minus-circle': "\uE61B",
  23789. 'uicon-minus-circle-fill': "\uE652",
  23790. 'uicon-plus-circle': "\uE62E",
  23791. 'uicon-plus-circle-fill': "\uE661",
  23792. 'uicon-file-text': "\uE663",
  23793. 'uicon-file-text-fill': "\uE665",
  23794. 'uicon-pushpin': "\uE7E3",
  23795. 'uicon-pushpin-fill': "\uE86E",
  23796. 'uicon-grid': "\uE673",
  23797. 'uicon-grid-fill': "\uE678",
  23798. 'uicon-play-circle': "\uE647",
  23799. 'uicon-play-circle-fill': "\uE655",
  23800. 'uicon-pause-circle-fill': "\uE654",
  23801. 'uicon-pause': "\uE8FA",
  23802. 'uicon-pause-circle': "\uE643",
  23803. 'uicon-eye-off': "\uE648",
  23804. 'uicon-eye-off-outline': "\uE62B",
  23805. 'uicon-gift-fill': "\uE65C",
  23806. 'uicon-gift': "\uE65B",
  23807. 'uicon-rmb-circle-fill': "\uE657",
  23808. 'uicon-rmb-circle': "\uE677",
  23809. 'uicon-kefu-ermai': "\uE656",
  23810. 'uicon-server-fill': "\uE751",
  23811. 'uicon-coupon-fill': "\uE8C4",
  23812. 'uicon-coupon': "\uE8AE",
  23813. 'uicon-integral': "\uE704",
  23814. 'uicon-integral-fill': "\uE703",
  23815. 'uicon-home-fill': "\uE964",
  23816. 'uicon-home': "\uE965",
  23817. 'uicon-hourglass-half-fill': "\uE966",
  23818. 'uicon-hourglass': "\uE967",
  23819. 'uicon-account': "\uE628",
  23820. 'uicon-plus-people-fill': "\uE626",
  23821. 'uicon-minus-people-fill': "\uE615",
  23822. 'uicon-account-fill': "\uE614",
  23823. 'uicon-thumb-down-fill': "\uE726",
  23824. 'uicon-thumb-down': "\uE727",
  23825. 'uicon-thumb-up': "\uE733",
  23826. 'uicon-thumb-up-fill': "\uE72F",
  23827. 'uicon-lock-fill': "\uE979",
  23828. 'uicon-lock-open': "\uE973",
  23829. 'uicon-lock-opened-fill': "\uE974",
  23830. 'uicon-lock': "\uE97A",
  23831. 'uicon-red-packet-fill': "\uE690",
  23832. 'uicon-photo-fill': "\uE98B",
  23833. 'uicon-photo': "\uE98D",
  23834. 'uicon-volume-off-fill': "\uE659",
  23835. 'uicon-volume-off': "\uE644",
  23836. 'uicon-volume-fill': "\uE670",
  23837. 'uicon-volume': "\uE633",
  23838. 'uicon-red-packet': "\uE691",
  23839. 'uicon-download': "\uE63C",
  23840. 'uicon-arrow-up-fill': "\uE6B0",
  23841. 'uicon-arrow-down-fill': "\uE600",
  23842. 'uicon-play-left-fill': "\uE675",
  23843. 'uicon-play-right-fill': "\uE676",
  23844. 'uicon-rewind-left-fill': "\uE679",
  23845. 'uicon-rewind-right-fill': "\uE67A",
  23846. 'uicon-arrow-downward': "\uE604",
  23847. 'uicon-arrow-leftward': "\uE601",
  23848. 'uicon-arrow-rightward': "\uE603",
  23849. 'uicon-arrow-upward': "\uE607",
  23850. 'uicon-arrow-down': "\uE60D",
  23851. 'uicon-arrow-right': "\uE605",
  23852. 'uicon-arrow-left': "\uE60E",
  23853. 'uicon-arrow-up': "\uE606",
  23854. 'uicon-skip-back-left': "\uE674",
  23855. 'uicon-skip-forward-right': "\uE672",
  23856. 'uicon-rewind-right': "\uE66F",
  23857. 'uicon-rewind-left': "\uE671",
  23858. 'uicon-arrow-right-double': "\uE68D",
  23859. 'uicon-arrow-left-double': "\uE68C",
  23860. 'uicon-wifi-off': "\uE668",
  23861. 'uicon-wifi': "\uE667",
  23862. 'uicon-empty-data': "\uE62F",
  23863. 'uicon-empty-history': "\uE684",
  23864. 'uicon-empty-list': "\uE68B",
  23865. 'uicon-empty-page': "\uE627",
  23866. 'uicon-empty-order': "\uE639",
  23867. 'uicon-man': "\uE697",
  23868. 'uicon-woman': "\uE69C",
  23869. 'uicon-man-add': "\uE61C",
  23870. 'uicon-man-add-fill': "\uE64C",
  23871. 'uicon-man-delete': "\uE61A",
  23872. 'uicon-man-delete-fill': "\uE66A",
  23873. 'uicon-zh': "\uE70A",
  23874. 'uicon-en': "\uE692"
  23875. };
  23876. exports.default = _default;
  23877. /***/ }),
  23878. /* 234 */
  23879. /*!******************************************************************************************************************!*\
  23880. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-icon/props.js ***!
  23881. \******************************************************************************************************************/
  23882. /*! no static exports found */
  23883. /***/ (function(module, exports, __webpack_require__) {
  23884. "use strict";
  23885. /* WEBPACK VAR INJECTION */(function(uni) {
  23886. Object.defineProperty(exports, "__esModule", {
  23887. value: true
  23888. });
  23889. exports.default = void 0;
  23890. var _default = {
  23891. props: {
  23892. // 图标类名
  23893. name: {
  23894. type: String,
  23895. default: uni.$u.props.icon.name
  23896. },
  23897. // 图标颜色,可接受主题色
  23898. color: {
  23899. type: String,
  23900. default: uni.$u.props.icon.color
  23901. },
  23902. // 字体大小,单位px
  23903. size: {
  23904. type: [String, Number],
  23905. default: uni.$u.props.icon.size
  23906. },
  23907. // 是否显示粗体
  23908. bold: {
  23909. type: Boolean,
  23910. default: uni.$u.props.icon.bold
  23911. },
  23912. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  23913. index: {
  23914. type: [String, Number],
  23915. default: uni.$u.props.icon.index
  23916. },
  23917. // 触摸图标时的类名
  23918. hoverClass: {
  23919. type: String,
  23920. default: uni.$u.props.icon.hoverClass
  23921. },
  23922. // 自定义扩展前缀,方便用户扩展自己的图标库
  23923. customPrefix: {
  23924. type: String,
  23925. default: uni.$u.props.icon.customPrefix
  23926. },
  23927. // 图标右边或者下面的文字
  23928. label: {
  23929. type: [String, Number],
  23930. default: uni.$u.props.icon.label
  23931. },
  23932. // label的位置,只能右边或者下边
  23933. labelPos: {
  23934. type: String,
  23935. default: uni.$u.props.icon.labelPos
  23936. },
  23937. // label的大小
  23938. labelSize: {
  23939. type: [String, Number],
  23940. default: uni.$u.props.icon.labelSize
  23941. },
  23942. // label的颜色
  23943. labelColor: {
  23944. type: String,
  23945. default: uni.$u.props.icon.labelColor
  23946. },
  23947. // label与图标的距离
  23948. space: {
  23949. type: [String, Number],
  23950. default: uni.$u.props.icon.space
  23951. },
  23952. // 图片的mode
  23953. imgMode: {
  23954. type: String,
  23955. default: uni.$u.props.icon.imgMode
  23956. },
  23957. // 用于显示图片小图标时,图片的宽度
  23958. width: {
  23959. type: [String, Number],
  23960. default: uni.$u.props.icon.width
  23961. },
  23962. // 用于显示图片小图标时,图片的高度
  23963. height: {
  23964. type: [String, Number],
  23965. default: uni.$u.props.icon.height
  23966. },
  23967. // 用于解决某些情况下,让图标垂直居中的用途
  23968. top: {
  23969. type: [String, Number],
  23970. default: uni.$u.props.icon.top
  23971. },
  23972. // 是否阻止事件传播
  23973. stop: {
  23974. type: Boolean,
  23975. default: uni.$u.props.icon.stop
  23976. }
  23977. }
  23978. };
  23979. exports.default = _default;
  23980. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23981. /***/ }),
  23982. /* 235 */,
  23983. /* 236 */,
  23984. /* 237 */,
  23985. /* 238 */,
  23986. /* 239 */,
  23987. /* 240 */,
  23988. /* 241 */,
  23989. /* 242 */
  23990. /*!******************************************************************************************************************!*\
  23991. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-line/props.js ***!
  23992. \******************************************************************************************************************/
  23993. /*! no static exports found */
  23994. /***/ (function(module, exports, __webpack_require__) {
  23995. "use strict";
  23996. /* WEBPACK VAR INJECTION */(function(uni) {
  23997. Object.defineProperty(exports, "__esModule", {
  23998. value: true
  23999. });
  24000. exports.default = void 0;
  24001. var _default = {
  24002. props: {
  24003. color: {
  24004. type: String,
  24005. default: uni.$u.props.line.color
  24006. },
  24007. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  24008. length: {
  24009. type: [String, Number],
  24010. default: uni.$u.props.line.length
  24011. },
  24012. // 线条方向,col-竖向,row-横向
  24013. direction: {
  24014. type: String,
  24015. default: uni.$u.props.line.direction
  24016. },
  24017. // 是否显示细边框
  24018. hairline: {
  24019. type: Boolean,
  24020. default: uni.$u.props.line.hairline
  24021. },
  24022. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  24023. margin: {
  24024. type: [String, Number],
  24025. default: uni.$u.props.line.margin
  24026. },
  24027. // 是否虚线,true-虚线,false-实线
  24028. dashed: {
  24029. type: Boolean,
  24030. default: uni.$u.props.line.dashed
  24031. }
  24032. }
  24033. };
  24034. exports.default = _default;
  24035. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24036. /***/ }),
  24037. /* 243 */,
  24038. /* 244 */,
  24039. /* 245 */,
  24040. /* 246 */,
  24041. /* 247 */,
  24042. /* 248 */,
  24043. /* 249 */,
  24044. /* 250 */
  24045. /*!**************************************************************************************************************************!*\
  24046. !*** C:/Users/14116/Documents/HBuilderProjects/uniapp-template/node_modules/uview-ui/components/u-loading-icon/props.js ***!
  24047. \**************************************************************************************************************************/
  24048. /*! no static exports found */
  24049. /***/ (function(module, exports, __webpack_require__) {
  24050. "use strict";
  24051. /* WEBPACK VAR INJECTION */(function(uni) {
  24052. Object.defineProperty(exports, "__esModule", {
  24053. value: true
  24054. });
  24055. exports.default = void 0;
  24056. var _default = {
  24057. props: {
  24058. // 是否显示组件
  24059. show: {
  24060. type: Boolean,
  24061. default: uni.$u.props.loadingIcon.show
  24062. },
  24063. // 颜色
  24064. color: {
  24065. type: String,
  24066. default: uni.$u.props.loadingIcon.color
  24067. },
  24068. // 提示文字颜色
  24069. textColor: {
  24070. type: String,
  24071. default: uni.$u.props.loadingIcon.textColor
  24072. },
  24073. // 文字和图标是否垂直排列
  24074. vertical: {
  24075. type: Boolean,
  24076. default: uni.$u.props.loadingIcon.vertical
  24077. },
  24078. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  24079. mode: {
  24080. type: String,
  24081. default: uni.$u.props.loadingIcon.mode
  24082. },
  24083. // 图标大小,单位默认px
  24084. size: {
  24085. type: [String, Number],
  24086. default: uni.$u.props.loadingIcon.size
  24087. },
  24088. // 文字大小
  24089. textSize: {
  24090. type: [String, Number],
  24091. default: uni.$u.props.loadingIcon.textSize
  24092. },
  24093. // 文字内容
  24094. text: {
  24095. type: [String, Number],
  24096. default: uni.$u.props.loadingIcon.text
  24097. },
  24098. // 动画模式
  24099. timingFunction: {
  24100. type: String,
  24101. default: uni.$u.props.loadingIcon.timingFunction
  24102. },
  24103. // 动画执行周期时间
  24104. duration: {
  24105. type: [String, Number],
  24106. default: uni.$u.props.loadingIcon.duration
  24107. },
  24108. // mode=circle时的暗边颜色
  24109. inactiveColor: {
  24110. type: String,
  24111. default: uni.$u.props.loadingIcon.inactiveColor
  24112. }
  24113. }
  24114. };
  24115. exports.default = _default;
  24116. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24117. /***/ })
  24118. ]]);
  24119. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map