vendor.js 544 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  10. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. function sortObject(obj) {
  107. var sortObj = {};
  108. if (isPlainObject(obj)) {
  109. Object.keys(obj).sort().forEach(function (key) {
  110. sortObj[key] = obj[key];
  111. });
  112. }
  113. return !Object.keys(sortObj) ? obj : sortObj;
  114. }
  115. var HOOKS = [
  116. 'invoke',
  117. 'success',
  118. 'fail',
  119. 'complete',
  120. 'returnValue'];
  121. var globalInterceptors = {};
  122. var scopedInterceptors = {};
  123. function mergeHook(parentVal, childVal) {
  124. var res = childVal ?
  125. parentVal ?
  126. parentVal.concat(childVal) :
  127. Array.isArray(childVal) ?
  128. childVal : [childVal] :
  129. parentVal;
  130. return res ?
  131. dedupeHooks(res) :
  132. res;
  133. }
  134. function dedupeHooks(hooks) {
  135. var res = [];
  136. for (var i = 0; i < hooks.length; i++) {
  137. if (res.indexOf(hooks[i]) === -1) {
  138. res.push(hooks[i]);
  139. }
  140. }
  141. return res;
  142. }
  143. function removeHook(hooks, hook) {
  144. var index = hooks.indexOf(hook);
  145. if (index !== -1) {
  146. hooks.splice(index, 1);
  147. }
  148. }
  149. function mergeInterceptorHook(interceptor, option) {
  150. Object.keys(option).forEach(function (hook) {
  151. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  152. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  153. }
  154. });
  155. }
  156. function removeInterceptorHook(interceptor, option) {
  157. if (!interceptor || !option) {
  158. return;
  159. }
  160. Object.keys(option).forEach(function (hook) {
  161. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  162. removeHook(interceptor[hook], option[hook]);
  163. }
  164. });
  165. }
  166. function addInterceptor(method, option) {
  167. if (typeof method === 'string' && isPlainObject(option)) {
  168. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  169. } else if (isPlainObject(method)) {
  170. mergeInterceptorHook(globalInterceptors, method);
  171. }
  172. }
  173. function removeInterceptor(method, option) {
  174. if (typeof method === 'string') {
  175. if (isPlainObject(option)) {
  176. removeInterceptorHook(scopedInterceptors[method], option);
  177. } else {
  178. delete scopedInterceptors[method];
  179. }
  180. } else if (isPlainObject(method)) {
  181. removeInterceptorHook(globalInterceptors, method);
  182. }
  183. }
  184. function wrapperHook(hook) {
  185. return function (data) {
  186. return hook(data) || data;
  187. };
  188. }
  189. function isPromise(obj) {
  190. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  191. }
  192. function queue(hooks, data) {
  193. var promise = false;
  194. for (var i = 0; i < hooks.length; i++) {
  195. var hook = hooks[i];
  196. if (promise) {
  197. promise = Promise.resolve(wrapperHook(hook));
  198. } else {
  199. var res = hook(data);
  200. if (isPromise(res)) {
  201. promise = Promise.resolve(res);
  202. }
  203. if (res === false) {
  204. return {
  205. then: function then() {} };
  206. }
  207. }
  208. }
  209. return promise || {
  210. then: function then(callback) {
  211. return callback(data);
  212. } };
  213. }
  214. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  215. ['success', 'fail', 'complete'].forEach(function (name) {
  216. if (Array.isArray(interceptor[name])) {
  217. var oldCallback = options[name];
  218. options[name] = function callbackInterceptor(res) {
  219. queue(interceptor[name], res).then(function (res) {
  220. /* eslint-disable no-mixed-operators */
  221. return isFn(oldCallback) && oldCallback(res) || res;
  222. });
  223. };
  224. }
  225. });
  226. return options;
  227. }
  228. function wrapperReturnValue(method, returnValue) {
  229. var returnValueHooks = [];
  230. if (Array.isArray(globalInterceptors.returnValue)) {
  231. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  232. }
  233. var interceptor = scopedInterceptors[method];
  234. if (interceptor && Array.isArray(interceptor.returnValue)) {
  235. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  236. }
  237. returnValueHooks.forEach(function (hook) {
  238. returnValue = hook(returnValue) || returnValue;
  239. });
  240. return returnValue;
  241. }
  242. function getApiInterceptorHooks(method) {
  243. var interceptor = Object.create(null);
  244. Object.keys(globalInterceptors).forEach(function (hook) {
  245. if (hook !== 'returnValue') {
  246. interceptor[hook] = globalInterceptors[hook].slice();
  247. }
  248. });
  249. var scopedInterceptor = scopedInterceptors[method];
  250. if (scopedInterceptor) {
  251. Object.keys(scopedInterceptor).forEach(function (hook) {
  252. if (hook !== 'returnValue') {
  253. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  254. }
  255. });
  256. }
  257. return interceptor;
  258. }
  259. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  260. var interceptor = getApiInterceptorHooks(method);
  261. if (interceptor && Object.keys(interceptor).length) {
  262. if (Array.isArray(interceptor.invoke)) {
  263. var res = queue(interceptor.invoke, options);
  264. return res.then(function (options) {
  265. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  266. });
  267. } else {
  268. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  269. }
  270. }
  271. return api.apply(void 0, [options].concat(params));
  272. }
  273. var promiseInterceptor = {
  274. returnValue: function returnValue(res) {
  275. if (!isPromise(res)) {
  276. return res;
  277. }
  278. return new Promise(function (resolve, reject) {
  279. res.then(function (res) {
  280. if (res[0]) {
  281. reject(res[0]);
  282. } else {
  283. resolve(res[1]);
  284. }
  285. });
  286. });
  287. } };
  288. var SYNC_API_RE =
  289. /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo/;
  290. var CONTEXT_API_RE = /^create|Manager$/;
  291. // Context例外情况
  292. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  293. // 同步例外情况
  294. var ASYNC_API = ['createBLEConnection'];
  295. var CALLBACK_API_RE = /^on|^off/;
  296. function isContextApi(name) {
  297. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  298. }
  299. function isSyncApi(name) {
  300. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  301. }
  302. function isCallbackApi(name) {
  303. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  304. }
  305. function handlePromise(promise) {
  306. return promise.then(function (data) {
  307. return [null, data];
  308. }).
  309. catch(function (err) {return [err];});
  310. }
  311. function shouldPromise(name) {
  312. if (
  313. isContextApi(name) ||
  314. isSyncApi(name) ||
  315. isCallbackApi(name))
  316. {
  317. return false;
  318. }
  319. return true;
  320. }
  321. /* eslint-disable no-extend-native */
  322. if (!Promise.prototype.finally) {
  323. Promise.prototype.finally = function (callback) {
  324. var promise = this.constructor;
  325. return this.then(
  326. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  327. function (reason) {return promise.resolve(callback()).then(function () {
  328. throw reason;
  329. });});
  330. };
  331. }
  332. function promisify(name, api) {
  333. if (!shouldPromise(name)) {
  334. return api;
  335. }
  336. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  337. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  338. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  339. }
  340. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  341. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  342. success: resolve,
  343. fail: reject })].concat(
  344. params));
  345. })));
  346. };
  347. }
  348. var EPS = 1e-4;
  349. var BASE_DEVICE_WIDTH = 750;
  350. var isIOS = false;
  351. var deviceWidth = 0;
  352. var deviceDPR = 0;
  353. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  354. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  355. deviceWidth = windowWidth;
  356. deviceDPR = pixelRatio;
  357. isIOS = platform === 'ios';
  358. }
  359. function upx2px(number, newDeviceWidth) {
  360. if (deviceWidth === 0) {
  361. checkDeviceWidth();
  362. }
  363. number = Number(number);
  364. if (number === 0) {
  365. return 0;
  366. }
  367. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  368. if (result < 0) {
  369. result = -result;
  370. }
  371. result = Math.floor(result + EPS);
  372. if (result === 0) {
  373. if (deviceDPR === 1 || !isIOS) {
  374. result = 1;
  375. } else {
  376. result = 0.5;
  377. }
  378. }
  379. return number < 0 ? -result : result;
  380. }
  381. var LOCALE_ZH_HANS = 'zh-Hans';
  382. var LOCALE_ZH_HANT = 'zh-Hant';
  383. var LOCALE_EN = 'en';
  384. var LOCALE_FR = 'fr';
  385. var LOCALE_ES = 'es';
  386. var messages = {};
  387. var locale;
  388. {
  389. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  390. }
  391. function initI18nMessages() {
  392. if (!isEnableLocale()) {
  393. return;
  394. }
  395. var localeKeys = Object.keys(__uniConfig.locales);
  396. if (localeKeys.length) {
  397. localeKeys.forEach(function (locale) {
  398. var curMessages = messages[locale];
  399. var userMessages = __uniConfig.locales[locale];
  400. if (curMessages) {
  401. Object.assign(curMessages, userMessages);
  402. } else {
  403. messages[locale] = userMessages;
  404. }
  405. });
  406. }
  407. }
  408. initI18nMessages();
  409. var i18n = (0, _uniI18n.initVueI18n)(
  410. locale,
  411. {});
  412. var t = i18n.t;
  413. var i18nMixin = i18n.mixin = {
  414. beforeCreate: function beforeCreate() {var _this = this;
  415. var unwatch = i18n.i18n.watchLocale(function () {
  416. _this.$forceUpdate();
  417. });
  418. this.$once('hook:beforeDestroy', function () {
  419. unwatch();
  420. });
  421. },
  422. methods: {
  423. $$t: function $$t(key, values) {
  424. return t(key, values);
  425. } } };
  426. var setLocale = i18n.setLocale;
  427. var getLocale = i18n.getLocale;
  428. function initAppLocale(Vue, appVm, locale) {
  429. var state = Vue.observable({
  430. locale: locale || i18n.getLocale() });
  431. var localeWatchers = [];
  432. appVm.$watchLocale = function (fn) {
  433. localeWatchers.push(fn);
  434. };
  435. Object.defineProperty(appVm, '$locale', {
  436. get: function get() {
  437. return state.locale;
  438. },
  439. set: function set(v) {
  440. state.locale = v;
  441. localeWatchers.forEach(function (watch) {return watch(v);});
  442. } });
  443. }
  444. function isEnableLocale() {
  445. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  446. }
  447. function include(str, parts) {
  448. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  449. }
  450. function startsWith(str, parts) {
  451. return parts.find(function (part) {return str.indexOf(part) === 0;});
  452. }
  453. function normalizeLocale(locale, messages) {
  454. if (!locale) {
  455. return;
  456. }
  457. locale = locale.trim().replace(/_/g, '-');
  458. if (messages && messages[locale]) {
  459. return locale;
  460. }
  461. locale = locale.toLowerCase();
  462. if (locale === 'chinese') {
  463. // 支付宝
  464. return LOCALE_ZH_HANS;
  465. }
  466. if (locale.indexOf('zh') === 0) {
  467. if (locale.indexOf('-hans') > -1) {
  468. return LOCALE_ZH_HANS;
  469. }
  470. if (locale.indexOf('-hant') > -1) {
  471. return LOCALE_ZH_HANT;
  472. }
  473. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  474. return LOCALE_ZH_HANT;
  475. }
  476. return LOCALE_ZH_HANS;
  477. }
  478. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  479. if (lang) {
  480. return lang;
  481. }
  482. }
  483. // export function initI18n() {
  484. // const localeKeys = Object.keys(__uniConfig.locales || {})
  485. // if (localeKeys.length) {
  486. // localeKeys.forEach((locale) =>
  487. // i18n.add(locale, __uniConfig.locales[locale])
  488. // )
  489. // }
  490. // }
  491. function getLocale$1() {
  492. // 优先使用 $locale
  493. var app = getApp({
  494. allowDefault: true });
  495. if (app && app.$vm) {
  496. return app.$vm.$locale;
  497. }
  498. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  499. }
  500. function setLocale$1(locale) {
  501. var app = getApp();
  502. if (!app) {
  503. return false;
  504. }
  505. var oldLocale = app.$vm.$locale;
  506. if (oldLocale !== locale) {
  507. app.$vm.$locale = locale;
  508. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  509. locale: locale });});
  510. return true;
  511. }
  512. return false;
  513. }
  514. var onLocaleChangeCallbacks = [];
  515. function onLocaleChange(fn) {
  516. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  517. onLocaleChangeCallbacks.push(fn);
  518. }
  519. }
  520. if (typeof global !== 'undefined') {
  521. global.getLocale = getLocale$1;
  522. }
  523. var interceptors = {
  524. promiseInterceptor: promiseInterceptor };
  525. var baseApi = /*#__PURE__*/Object.freeze({
  526. __proto__: null,
  527. upx2px: upx2px,
  528. getLocale: getLocale$1,
  529. setLocale: setLocale$1,
  530. onLocaleChange: onLocaleChange,
  531. addInterceptor: addInterceptor,
  532. removeInterceptor: removeInterceptor,
  533. interceptors: interceptors });
  534. function findExistsPageIndex(url) {
  535. var pages = getCurrentPages();
  536. var len = pages.length;
  537. while (len--) {
  538. var page = pages[len];
  539. if (page.$page && page.$page.fullPath === url) {
  540. return len;
  541. }
  542. }
  543. return -1;
  544. }
  545. var redirectTo = {
  546. name: function name(fromArgs) {
  547. if (fromArgs.exists === 'back' && fromArgs.delta) {
  548. return 'navigateBack';
  549. }
  550. return 'redirectTo';
  551. },
  552. args: function args(fromArgs) {
  553. if (fromArgs.exists === 'back' && fromArgs.url) {
  554. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  555. if (existsPageIndex !== -1) {
  556. var delta = getCurrentPages().length - 1 - existsPageIndex;
  557. if (delta > 0) {
  558. fromArgs.delta = delta;
  559. }
  560. }
  561. }
  562. } };
  563. var previewImage = {
  564. args: function args(fromArgs) {
  565. var currentIndex = parseInt(fromArgs.current);
  566. if (isNaN(currentIndex)) {
  567. return;
  568. }
  569. var urls = fromArgs.urls;
  570. if (!Array.isArray(urls)) {
  571. return;
  572. }
  573. var len = urls.length;
  574. if (!len) {
  575. return;
  576. }
  577. if (currentIndex < 0) {
  578. currentIndex = 0;
  579. } else if (currentIndex >= len) {
  580. currentIndex = len - 1;
  581. }
  582. if (currentIndex > 0) {
  583. fromArgs.current = urls[currentIndex];
  584. fromArgs.urls = urls.filter(
  585. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  586. } else {
  587. fromArgs.current = urls[0];
  588. }
  589. return {
  590. indicator: false,
  591. loop: false };
  592. } };
  593. var UUID_KEY = '__DC_STAT_UUID';
  594. var deviceId;
  595. function useDeviceId(result) {
  596. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  597. if (!deviceId) {
  598. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  599. wx.setStorage({
  600. key: UUID_KEY,
  601. data: deviceId });
  602. }
  603. result.deviceId = deviceId;
  604. }
  605. function addSafeAreaInsets(result) {
  606. if (result.safeArea) {
  607. var safeArea = result.safeArea;
  608. result.safeAreaInsets = {
  609. top: safeArea.top,
  610. left: safeArea.left,
  611. right: result.windowWidth - safeArea.right,
  612. bottom: result.screenHeight - safeArea.bottom };
  613. }
  614. }
  615. function populateParameters(result) {var _result$brand =
  616. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  617. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  618. // osName osVersion
  619. var osName = '';
  620. var osVersion = '';
  621. {
  622. osName = system.split(' ')[0] || '';
  623. osVersion = system.split(' ')[1] || '';
  624. }
  625. var hostVersion = version;
  626. // deviceType
  627. var deviceType = getGetDeviceType(result, model);
  628. // deviceModel
  629. var deviceBrand = getDeviceBrand(brand);
  630. // hostName
  631. var _hostName = getHostName(result);
  632. // deviceOrientation
  633. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  634. // devicePixelRatio
  635. var _devicePixelRatio = pixelRatio;
  636. // SDKVersion
  637. var _SDKVersion = SDKVersion;
  638. // hostLanguage
  639. var hostLanguage = language.replace(/_/g, '-');
  640. // wx.getAccountInfoSync
  641. var parameters = {
  642. appId: "__UNI__8459F27",
  643. appName: "sampling",
  644. appVersion: "1.0.0",
  645. appVersionCode: "100",
  646. appLanguage: getAppLanguage(hostLanguage),
  647. uniCompileVersion: "3.4.18",
  648. uniRuntimeVersion: "3.4.18",
  649. uniPlatform: undefined || "mp-weixin",
  650. deviceBrand: deviceBrand,
  651. deviceModel: model,
  652. deviceType: deviceType,
  653. devicePixelRatio: _devicePixelRatio,
  654. deviceOrientation: _deviceOrientation,
  655. osName: osName.toLocaleLowerCase(),
  656. osVersion: osVersion,
  657. hostTheme: theme,
  658. hostVersion: hostVersion,
  659. hostLanguage: hostLanguage,
  660. hostName: _hostName,
  661. hostSDKVersion: _SDKVersion,
  662. hostFontSizeSetting: fontSizeSetting,
  663. windowTop: 0,
  664. windowBottom: 0,
  665. // TODO
  666. osLanguage: undefined,
  667. osTheme: undefined,
  668. ua: undefined,
  669. hostPackageName: undefined,
  670. browserName: undefined,
  671. browserVersion: undefined };
  672. Object.assign(result, parameters);
  673. }
  674. function getGetDeviceType(result, model) {
  675. var deviceType = result.deviceType || 'phone';
  676. {
  677. var deviceTypeMaps = {
  678. ipad: 'pad',
  679. windows: 'pc',
  680. mac: 'pc' };
  681. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  682. var _model = model.toLocaleLowerCase();
  683. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  684. var _m = deviceTypeMapsKeys[index];
  685. if (_model.indexOf(_m) !== -1) {
  686. deviceType = deviceTypeMaps[_m];
  687. break;
  688. }
  689. }
  690. }
  691. return deviceType;
  692. }
  693. function getDeviceBrand(brand) {
  694. var deviceBrand = brand;
  695. if (deviceBrand) {
  696. deviceBrand = brand.toLocaleLowerCase();
  697. }
  698. return deviceBrand;
  699. }
  700. function getAppLanguage(defaultLanguage) {
  701. return getLocale$1 ?
  702. getLocale$1() :
  703. defaultLanguage;
  704. }
  705. function getHostName(result) {
  706. var _platform = 'WeChat';
  707. var _hostName = result.hostName || _platform; // mp-jd
  708. {
  709. if (result.environment) {
  710. _hostName = result.environment;
  711. } else if (result.host && result.host.env) {
  712. _hostName = result.host.env;
  713. }
  714. }
  715. return _hostName;
  716. }
  717. var getSystemInfo = {
  718. returnValue: function returnValue(result) {
  719. useDeviceId(result);
  720. addSafeAreaInsets(result);
  721. populateParameters(result);
  722. } };
  723. var showActionSheet = {
  724. args: function args(fromArgs) {
  725. if (typeof fromArgs === 'object') {
  726. fromArgs.alertText = fromArgs.title;
  727. }
  728. } };
  729. var getAppBaseInfo = {
  730. returnValue: function returnValue(result) {var _result =
  731. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  732. var _hostName = getHostName(result);
  733. var hostLanguage = language.replace('_', '-');
  734. result = sortObject(Object.assign(result, {
  735. appId: "__UNI__8459F27",
  736. appName: "sampling",
  737. appVersion: "1.0.0",
  738. appVersionCode: "100",
  739. appLanguage: getAppLanguage(hostLanguage),
  740. hostVersion: version,
  741. hostLanguage: hostLanguage,
  742. hostName: _hostName,
  743. hostSDKVersion: SDKVersion,
  744. hostTheme: theme }));
  745. } };
  746. var getDeviceInfo = {
  747. returnValue: function returnValue(result) {var _result2 =
  748. result,brand = _result2.brand,model = _result2.model;
  749. var deviceType = getGetDeviceType(result, model);
  750. var deviceBrand = getDeviceBrand(brand);
  751. useDeviceId(result);
  752. result = sortObject(Object.assign(result, {
  753. deviceType: deviceType,
  754. deviceBrand: deviceBrand,
  755. deviceModel: model }));
  756. } };
  757. var getWindowInfo = {
  758. returnValue: function returnValue(result) {
  759. addSafeAreaInsets(result);
  760. result = sortObject(Object.assign(result, {
  761. windowTop: 0,
  762. windowBottom: 0 }));
  763. } };
  764. // import navigateTo from 'uni-helpers/navigate-to'
  765. var protocols = {
  766. redirectTo: redirectTo,
  767. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  768. previewImage: previewImage,
  769. getSystemInfo: getSystemInfo,
  770. getSystemInfoSync: getSystemInfo,
  771. showActionSheet: showActionSheet,
  772. getAppBaseInfo: getAppBaseInfo,
  773. getDeviceInfo: getDeviceInfo,
  774. getWindowInfo: getWindowInfo };
  775. var todos = [
  776. 'vibrate',
  777. 'preloadPage',
  778. 'unPreloadPage',
  779. 'loadSubPackage'];
  780. var canIUses = [];
  781. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  782. function processCallback(methodName, method, returnValue) {
  783. return function (res) {
  784. return method(processReturnValue(methodName, res, returnValue));
  785. };
  786. }
  787. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  788. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  789. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  790. if (isFn(argsOption)) {
  791. argsOption = argsOption(fromArgs, toArgs) || {};
  792. }
  793. for (var key in fromArgs) {
  794. if (hasOwn(argsOption, key)) {
  795. var keyOption = argsOption[key];
  796. if (isFn(keyOption)) {
  797. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  798. }
  799. if (!keyOption) {// 不支持的参数
  800. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  801. } else if (isStr(keyOption)) {// 重写参数 key
  802. toArgs[keyOption] = fromArgs[key];
  803. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  804. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  805. }
  806. } else if (CALLBACKS.indexOf(key) !== -1) {
  807. if (isFn(fromArgs[key])) {
  808. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  809. }
  810. } else {
  811. if (!keepFromArgs) {
  812. toArgs[key] = fromArgs[key];
  813. }
  814. }
  815. }
  816. return toArgs;
  817. } else if (isFn(fromArgs)) {
  818. fromArgs = processCallback(methodName, fromArgs, returnValue);
  819. }
  820. return fromArgs;
  821. }
  822. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  823. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  824. res = protocols.returnValue(methodName, res);
  825. }
  826. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  827. }
  828. function wrapper(methodName, method) {
  829. if (hasOwn(protocols, methodName)) {
  830. var protocol = protocols[methodName];
  831. if (!protocol) {// 暂不支持的 api
  832. return function () {
  833. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  834. };
  835. }
  836. return function (arg1, arg2) {// 目前 api 最多两个参数
  837. var options = protocol;
  838. if (isFn(protocol)) {
  839. options = protocol(arg1);
  840. }
  841. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  842. var args = [arg1];
  843. if (typeof arg2 !== 'undefined') {
  844. args.push(arg2);
  845. }
  846. if (isFn(options.name)) {
  847. methodName = options.name(arg1);
  848. } else if (isStr(options.name)) {
  849. methodName = options.name;
  850. }
  851. var returnValue = wx[methodName].apply(wx, args);
  852. if (isSyncApi(methodName)) {// 同步 api
  853. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  854. }
  855. return returnValue;
  856. };
  857. }
  858. return method;
  859. }
  860. var todoApis = Object.create(null);
  861. var TODOS = [
  862. 'onTabBarMidButtonTap',
  863. 'subscribePush',
  864. 'unsubscribePush',
  865. 'onPush',
  866. 'offPush',
  867. 'share'];
  868. function createTodoApi(name) {
  869. return function todoApi(_ref)
  870. {var fail = _ref.fail,complete = _ref.complete;
  871. var res = {
  872. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  873. isFn(fail) && fail(res);
  874. isFn(complete) && complete(res);
  875. };
  876. }
  877. TODOS.forEach(function (name) {
  878. todoApis[name] = createTodoApi(name);
  879. });
  880. var providers = {
  881. oauth: ['weixin'],
  882. share: ['weixin'],
  883. payment: ['wxpay'],
  884. push: ['weixin'] };
  885. function getProvider(_ref2)
  886. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  887. var res = false;
  888. if (providers[service]) {
  889. res = {
  890. errMsg: 'getProvider:ok',
  891. service: service,
  892. provider: providers[service] };
  893. isFn(success) && success(res);
  894. } else {
  895. res = {
  896. errMsg: 'getProvider:fail service not found' };
  897. isFn(fail) && fail(res);
  898. }
  899. isFn(complete) && complete(res);
  900. }
  901. var extraApi = /*#__PURE__*/Object.freeze({
  902. __proto__: null,
  903. getProvider: getProvider });
  904. var getEmitter = function () {
  905. var Emitter;
  906. return function getUniEmitter() {
  907. if (!Emitter) {
  908. Emitter = new _vue.default();
  909. }
  910. return Emitter;
  911. };
  912. }();
  913. function apply(ctx, method, args) {
  914. return ctx[method].apply(ctx, args);
  915. }
  916. function $on() {
  917. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  918. }
  919. function $off() {
  920. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  921. }
  922. function $once() {
  923. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  924. }
  925. function $emit() {
  926. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  927. }
  928. var eventApi = /*#__PURE__*/Object.freeze({
  929. __proto__: null,
  930. $on: $on,
  931. $off: $off,
  932. $once: $once,
  933. $emit: $emit });
  934. /**
  935. * 框架内 try-catch
  936. */
  937. /**
  938. * 开发者 try-catch
  939. */
  940. function tryCatch(fn) {
  941. return function () {
  942. try {
  943. return fn.apply(fn, arguments);
  944. } catch (e) {
  945. // TODO
  946. console.error(e);
  947. }
  948. };
  949. }
  950. function getApiCallbacks(params) {
  951. var apiCallbacks = {};
  952. for (var name in params) {
  953. var param = params[name];
  954. if (isFn(param)) {
  955. apiCallbacks[name] = tryCatch(param);
  956. delete params[name];
  957. }
  958. }
  959. return apiCallbacks;
  960. }
  961. var cid;
  962. var cidErrMsg;
  963. function normalizePushMessage(message) {
  964. try {
  965. return JSON.parse(message);
  966. } catch (e) {}
  967. return message;
  968. }
  969. function invokePushCallback(
  970. args)
  971. {
  972. if (args.type === 'clientId') {
  973. cid = args.cid;
  974. cidErrMsg = args.errMsg;
  975. invokeGetPushCidCallbacks(cid, args.errMsg);
  976. } else if (args.type === 'pushMsg') {
  977. onPushMessageCallbacks.forEach(function (callback) {
  978. callback({
  979. type: 'receive',
  980. data: normalizePushMessage(args.message) });
  981. });
  982. } else if (args.type === 'click') {
  983. onPushMessageCallbacks.forEach(function (callback) {
  984. callback({
  985. type: 'click',
  986. data: normalizePushMessage(args.message) });
  987. });
  988. }
  989. }
  990. var getPushCidCallbacks = [];
  991. function invokeGetPushCidCallbacks(cid, errMsg) {
  992. getPushCidCallbacks.forEach(function (callback) {
  993. callback(cid, errMsg);
  994. });
  995. getPushCidCallbacks.length = 0;
  996. }
  997. function getPushClientid(args) {
  998. if (!isPlainObject(args)) {
  999. args = {};
  1000. }var _getApiCallbacks =
  1001. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1002. var hasSuccess = isFn(success);
  1003. var hasFail = isFn(fail);
  1004. var hasComplete = isFn(complete);
  1005. getPushCidCallbacks.push(function (cid, errMsg) {
  1006. var res;
  1007. if (cid) {
  1008. res = {
  1009. errMsg: 'getPushClientid:ok',
  1010. cid: cid };
  1011. hasSuccess && success(res);
  1012. } else {
  1013. res = {
  1014. errMsg: 'getPushClientid:fail' + (errMsg ? ' ' + errMsg : '') };
  1015. hasFail && fail(res);
  1016. }
  1017. hasComplete && complete(res);
  1018. });
  1019. if (typeof cid !== 'undefined') {
  1020. Promise.resolve().then(function () {return invokeGetPushCidCallbacks(cid, cidErrMsg);});
  1021. }
  1022. }
  1023. var onPushMessageCallbacks = [];
  1024. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1025. var onPushMessage = function onPushMessage(fn) {
  1026. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1027. onPushMessageCallbacks.push(fn);
  1028. }
  1029. };
  1030. var offPushMessage = function offPushMessage(fn) {
  1031. if (!fn) {
  1032. onPushMessageCallbacks.length = 0;
  1033. } else {
  1034. var index = onPushMessageCallbacks.indexOf(fn);
  1035. if (index > -1) {
  1036. onPushMessageCallbacks.splice(index, 1);
  1037. }
  1038. }
  1039. };
  1040. var api = /*#__PURE__*/Object.freeze({
  1041. __proto__: null,
  1042. getPushClientid: getPushClientid,
  1043. onPushMessage: onPushMessage,
  1044. offPushMessage: offPushMessage,
  1045. invokePushCallback: invokePushCallback });
  1046. var MPPage = Page;
  1047. var MPComponent = Component;
  1048. var customizeRE = /:/g;
  1049. var customize = cached(function (str) {
  1050. return camelize(str.replace(customizeRE, '-'));
  1051. });
  1052. function initTriggerEvent(mpInstance) {
  1053. var oldTriggerEvent = mpInstance.triggerEvent;
  1054. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1055. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  1056. };
  1057. try {
  1058. // 京东小程序 triggerEvent 为只读
  1059. mpInstance.triggerEvent = newTriggerEvent;
  1060. } catch (error) {
  1061. mpInstance._triggerEvent = newTriggerEvent;
  1062. }
  1063. }
  1064. function initHook(name, options, isComponent) {
  1065. var oldHook = options[name];
  1066. if (!oldHook) {
  1067. options[name] = function () {
  1068. initTriggerEvent(this);
  1069. };
  1070. } else {
  1071. options[name] = function () {
  1072. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1073. return oldHook.apply(this, args);
  1074. };
  1075. }
  1076. }
  1077. if (!MPPage.__$wrappered) {
  1078. MPPage.__$wrappered = true;
  1079. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1080. initHook('onLoad', options);
  1081. return MPPage(options);
  1082. };
  1083. Page.after = MPPage.after;
  1084. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1085. initHook('created', options);
  1086. return MPComponent(options);
  1087. };
  1088. }
  1089. var PAGE_EVENT_HOOKS = [
  1090. 'onPullDownRefresh',
  1091. 'onReachBottom',
  1092. 'onAddToFavorites',
  1093. 'onShareTimeline',
  1094. 'onShareAppMessage',
  1095. 'onPageScroll',
  1096. 'onResize',
  1097. 'onTabItemTap'];
  1098. function initMocks(vm, mocks) {
  1099. var mpInstance = vm.$mp[vm.mpType];
  1100. mocks.forEach(function (mock) {
  1101. if (hasOwn(mpInstance, mock)) {
  1102. vm[mock] = mpInstance[mock];
  1103. }
  1104. });
  1105. }
  1106. function hasHook(hook, vueOptions) {
  1107. if (!vueOptions) {
  1108. return true;
  1109. }
  1110. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1111. return true;
  1112. }
  1113. vueOptions = vueOptions.default || vueOptions;
  1114. if (isFn(vueOptions)) {
  1115. if (isFn(vueOptions.extendOptions[hook])) {
  1116. return true;
  1117. }
  1118. if (vueOptions.super &&
  1119. vueOptions.super.options &&
  1120. Array.isArray(vueOptions.super.options[hook])) {
  1121. return true;
  1122. }
  1123. return false;
  1124. }
  1125. if (isFn(vueOptions[hook])) {
  1126. return true;
  1127. }
  1128. var mixins = vueOptions.mixins;
  1129. if (Array.isArray(mixins)) {
  1130. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1131. }
  1132. }
  1133. function initHooks(mpOptions, hooks, vueOptions) {
  1134. hooks.forEach(function (hook) {
  1135. if (hasHook(hook, vueOptions)) {
  1136. mpOptions[hook] = function (args) {
  1137. return this.$vm && this.$vm.__call_hook(hook, args);
  1138. };
  1139. }
  1140. });
  1141. }
  1142. function initVueComponent(Vue, vueOptions) {
  1143. vueOptions = vueOptions.default || vueOptions;
  1144. var VueComponent;
  1145. if (isFn(vueOptions)) {
  1146. VueComponent = vueOptions;
  1147. } else {
  1148. VueComponent = Vue.extend(vueOptions);
  1149. }
  1150. vueOptions = VueComponent.options;
  1151. return [VueComponent, vueOptions];
  1152. }
  1153. function initSlots(vm, vueSlots) {
  1154. if (Array.isArray(vueSlots) && vueSlots.length) {
  1155. var $slots = Object.create(null);
  1156. vueSlots.forEach(function (slotName) {
  1157. $slots[slotName] = true;
  1158. });
  1159. vm.$scopedSlots = vm.$slots = $slots;
  1160. }
  1161. }
  1162. function initVueIds(vueIds, mpInstance) {
  1163. vueIds = (vueIds || '').split(',');
  1164. var len = vueIds.length;
  1165. if (len === 1) {
  1166. mpInstance._$vueId = vueIds[0];
  1167. } else if (len === 2) {
  1168. mpInstance._$vueId = vueIds[0];
  1169. mpInstance._$vuePid = vueIds[1];
  1170. }
  1171. }
  1172. function initData(vueOptions, context) {
  1173. var data = vueOptions.data || {};
  1174. var methods = vueOptions.methods || {};
  1175. if (typeof data === 'function') {
  1176. try {
  1177. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1178. } catch (e) {
  1179. if (Object({"VUE_APP_NAME":"sampling","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1180. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1181. }
  1182. }
  1183. } else {
  1184. try {
  1185. // 对 data 格式化
  1186. data = JSON.parse(JSON.stringify(data));
  1187. } catch (e) {}
  1188. }
  1189. if (!isPlainObject(data)) {
  1190. data = {};
  1191. }
  1192. Object.keys(methods).forEach(function (methodName) {
  1193. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1194. data[methodName] = methods[methodName];
  1195. }
  1196. });
  1197. return data;
  1198. }
  1199. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1200. function createObserver(name) {
  1201. return function observer(newVal, oldVal) {
  1202. if (this.$vm) {
  1203. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1204. }
  1205. };
  1206. }
  1207. function initBehaviors(vueOptions, initBehavior) {
  1208. var vueBehaviors = vueOptions.behaviors;
  1209. var vueExtends = vueOptions.extends;
  1210. var vueMixins = vueOptions.mixins;
  1211. var vueProps = vueOptions.props;
  1212. if (!vueProps) {
  1213. vueOptions.props = vueProps = [];
  1214. }
  1215. var behaviors = [];
  1216. if (Array.isArray(vueBehaviors)) {
  1217. vueBehaviors.forEach(function (behavior) {
  1218. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1219. if (behavior === 'uni://form-field') {
  1220. if (Array.isArray(vueProps)) {
  1221. vueProps.push('name');
  1222. vueProps.push('value');
  1223. } else {
  1224. vueProps.name = {
  1225. type: String,
  1226. default: '' };
  1227. vueProps.value = {
  1228. type: [String, Number, Boolean, Array, Object, Date],
  1229. default: '' };
  1230. }
  1231. }
  1232. });
  1233. }
  1234. if (isPlainObject(vueExtends) && vueExtends.props) {
  1235. behaviors.push(
  1236. initBehavior({
  1237. properties: initProperties(vueExtends.props, true) }));
  1238. }
  1239. if (Array.isArray(vueMixins)) {
  1240. vueMixins.forEach(function (vueMixin) {
  1241. if (isPlainObject(vueMixin) && vueMixin.props) {
  1242. behaviors.push(
  1243. initBehavior({
  1244. properties: initProperties(vueMixin.props, true) }));
  1245. }
  1246. });
  1247. }
  1248. return behaviors;
  1249. }
  1250. function parsePropType(key, type, defaultValue, file) {
  1251. // [String]=>String
  1252. if (Array.isArray(type) && type.length === 1) {
  1253. return type[0];
  1254. }
  1255. return type;
  1256. }
  1257. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1258. var properties = {};
  1259. if (!isBehavior) {
  1260. properties.vueId = {
  1261. type: String,
  1262. value: '' };
  1263. // 用于字节跳动小程序模拟抽象节点
  1264. properties.generic = {
  1265. type: Object,
  1266. value: null };
  1267. // scopedSlotsCompiler auto
  1268. properties.scopedSlotsCompiler = {
  1269. type: String,
  1270. value: '' };
  1271. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1272. type: null,
  1273. value: [],
  1274. observer: function observer(newVal, oldVal) {
  1275. var $slots = Object.create(null);
  1276. newVal.forEach(function (slotName) {
  1277. $slots[slotName] = true;
  1278. });
  1279. this.setData({
  1280. $slots: $slots });
  1281. } };
  1282. }
  1283. if (Array.isArray(props)) {// ['title']
  1284. props.forEach(function (key) {
  1285. properties[key] = {
  1286. type: null,
  1287. observer: createObserver(key) };
  1288. });
  1289. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1290. Object.keys(props).forEach(function (key) {
  1291. var opts = props[key];
  1292. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1293. var value = opts.default;
  1294. if (isFn(value)) {
  1295. value = value();
  1296. }
  1297. opts.type = parsePropType(key, opts.type);
  1298. properties[key] = {
  1299. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1300. value: value,
  1301. observer: createObserver(key) };
  1302. } else {// content:String
  1303. var type = parsePropType(key, opts);
  1304. properties[key] = {
  1305. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1306. observer: createObserver(key) };
  1307. }
  1308. });
  1309. }
  1310. return properties;
  1311. }
  1312. function wrapper$1(event) {
  1313. // TODO 又得兼容 mpvue 的 mp 对象
  1314. try {
  1315. event.mp = JSON.parse(JSON.stringify(event));
  1316. } catch (e) {}
  1317. event.stopPropagation = noop;
  1318. event.preventDefault = noop;
  1319. event.target = event.target || {};
  1320. if (!hasOwn(event, 'detail')) {
  1321. event.detail = {};
  1322. }
  1323. if (hasOwn(event, 'markerId')) {
  1324. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1325. event.detail.markerId = event.markerId;
  1326. }
  1327. if (isPlainObject(event.detail)) {
  1328. event.target = Object.assign({}, event.target, event.detail);
  1329. }
  1330. return event;
  1331. }
  1332. function getExtraValue(vm, dataPathsArray) {
  1333. var context = vm;
  1334. dataPathsArray.forEach(function (dataPathArray) {
  1335. var dataPath = dataPathArray[0];
  1336. var value = dataPathArray[2];
  1337. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1338. var propPath = dataPathArray[1];
  1339. var valuePath = dataPathArray[3];
  1340. var vFor;
  1341. if (Number.isInteger(dataPath)) {
  1342. vFor = dataPath;
  1343. } else if (!dataPath) {
  1344. vFor = context;
  1345. } else if (typeof dataPath === 'string' && dataPath) {
  1346. if (dataPath.indexOf('#s#') === 0) {
  1347. vFor = dataPath.substr(3);
  1348. } else {
  1349. vFor = vm.__get_value(dataPath, context);
  1350. }
  1351. }
  1352. if (Number.isInteger(vFor)) {
  1353. context = value;
  1354. } else if (!propPath) {
  1355. context = vFor[value];
  1356. } else {
  1357. if (Array.isArray(vFor)) {
  1358. context = vFor.find(function (vForItem) {
  1359. return vm.__get_value(propPath, vForItem) === value;
  1360. });
  1361. } else if (isPlainObject(vFor)) {
  1362. context = Object.keys(vFor).find(function (vForKey) {
  1363. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1364. });
  1365. } else {
  1366. console.error('v-for 暂不支持循环数据:', vFor);
  1367. }
  1368. }
  1369. if (valuePath) {
  1370. context = vm.__get_value(valuePath, context);
  1371. }
  1372. }
  1373. });
  1374. return context;
  1375. }
  1376. function processEventExtra(vm, extra, event) {
  1377. var extraObj = {};
  1378. if (Array.isArray(extra) && extra.length) {
  1379. /**
  1380. *[
  1381. * ['data.items', 'data.id', item.data.id],
  1382. * ['metas', 'id', meta.id]
  1383. *],
  1384. *[
  1385. * ['data.items', 'data.id', item.data.id],
  1386. * ['metas', 'id', meta.id]
  1387. *],
  1388. *'test'
  1389. */
  1390. extra.forEach(function (dataPath, index) {
  1391. if (typeof dataPath === 'string') {
  1392. if (!dataPath) {// model,prop.sync
  1393. extraObj['$' + index] = vm;
  1394. } else {
  1395. if (dataPath === '$event') {// $event
  1396. extraObj['$' + index] = event;
  1397. } else if (dataPath === 'arguments') {
  1398. if (event.detail && event.detail.__args__) {
  1399. extraObj['$' + index] = event.detail.__args__;
  1400. } else {
  1401. extraObj['$' + index] = [event];
  1402. }
  1403. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1404. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1405. } else {
  1406. extraObj['$' + index] = vm.__get_value(dataPath);
  1407. }
  1408. }
  1409. } else {
  1410. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1411. }
  1412. });
  1413. }
  1414. return extraObj;
  1415. }
  1416. function getObjByArray(arr) {
  1417. var obj = {};
  1418. for (var i = 1; i < arr.length; i++) {
  1419. var element = arr[i];
  1420. obj[element[0]] = element[1];
  1421. }
  1422. return obj;
  1423. }
  1424. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1425. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1426. if (isCustom) {// 自定义事件
  1427. isCustomMPEvent = event.currentTarget &&
  1428. event.currentTarget.dataset &&
  1429. event.currentTarget.dataset.comType === 'wx';
  1430. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1431. if (isCustomMPEvent) {
  1432. return [event];
  1433. }
  1434. return event.detail.__args__ || event.detail;
  1435. }
  1436. }
  1437. var extraObj = processEventExtra(vm, extra, event);
  1438. var ret = [];
  1439. args.forEach(function (arg) {
  1440. if (arg === '$event') {
  1441. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1442. ret.push(event.target.value);
  1443. } else {
  1444. if (isCustom && !isCustomMPEvent) {
  1445. ret.push(event.detail.__args__[0]);
  1446. } else {// wxcomponent 组件或内置组件
  1447. ret.push(event);
  1448. }
  1449. }
  1450. } else {
  1451. if (Array.isArray(arg) && arg[0] === 'o') {
  1452. ret.push(getObjByArray(arg));
  1453. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1454. ret.push(extraObj[arg]);
  1455. } else {
  1456. ret.push(arg);
  1457. }
  1458. }
  1459. });
  1460. return ret;
  1461. }
  1462. var ONCE = '~';
  1463. var CUSTOM = '^';
  1464. function isMatchEventType(eventType, optType) {
  1465. return eventType === optType ||
  1466. optType === 'regionchange' && (
  1467. eventType === 'begin' ||
  1468. eventType === 'end');
  1469. }
  1470. function getContextVm(vm) {
  1471. var $parent = vm.$parent;
  1472. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1473. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1474. $parent = $parent.$parent;
  1475. }
  1476. return $parent && $parent.$parent;
  1477. }
  1478. function handleEvent(event) {var _this2 = this;
  1479. event = wrapper$1(event);
  1480. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1481. var dataset = (event.currentTarget || event.target).dataset;
  1482. if (!dataset) {
  1483. return console.warn('事件信息不存在');
  1484. }
  1485. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1486. if (!eventOpts) {
  1487. return console.warn('事件信息不存在');
  1488. }
  1489. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1490. var eventType = event.type;
  1491. var ret = [];
  1492. eventOpts.forEach(function (eventOpt) {
  1493. var type = eventOpt[0];
  1494. var eventsArray = eventOpt[1];
  1495. var isCustom = type.charAt(0) === CUSTOM;
  1496. type = isCustom ? type.slice(1) : type;
  1497. var isOnce = type.charAt(0) === ONCE;
  1498. type = isOnce ? type.slice(1) : type;
  1499. if (eventsArray && isMatchEventType(eventType, type)) {
  1500. eventsArray.forEach(function (eventArray) {
  1501. var methodName = eventArray[0];
  1502. if (methodName) {
  1503. var handlerCtx = _this2.$vm;
  1504. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1505. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1506. }
  1507. if (methodName === '$emit') {
  1508. handlerCtx.$emit.apply(handlerCtx,
  1509. processEventArgs(
  1510. _this2.$vm,
  1511. event,
  1512. eventArray[1],
  1513. eventArray[2],
  1514. isCustom,
  1515. methodName));
  1516. return;
  1517. }
  1518. var handler = handlerCtx[methodName];
  1519. if (!isFn(handler)) {
  1520. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1521. }
  1522. if (isOnce) {
  1523. if (handler.once) {
  1524. return;
  1525. }
  1526. handler.once = true;
  1527. }
  1528. var params = processEventArgs(
  1529. _this2.$vm,
  1530. event,
  1531. eventArray[1],
  1532. eventArray[2],
  1533. isCustom,
  1534. methodName);
  1535. params = Array.isArray(params) ? params : [];
  1536. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1537. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1538. // eslint-disable-next-line no-sparse-arrays
  1539. params = params.concat([,,,,,,,,,, event]);
  1540. }
  1541. ret.push(handler.apply(handlerCtx, params));
  1542. }
  1543. });
  1544. }
  1545. });
  1546. if (
  1547. eventType === 'input' &&
  1548. ret.length === 1 &&
  1549. typeof ret[0] !== 'undefined')
  1550. {
  1551. return ret[0];
  1552. }
  1553. }
  1554. var eventChannels = {};
  1555. var eventChannelStack = [];
  1556. function getEventChannel(id) {
  1557. if (id) {
  1558. var eventChannel = eventChannels[id];
  1559. delete eventChannels[id];
  1560. return eventChannel;
  1561. }
  1562. return eventChannelStack.shift();
  1563. }
  1564. var hooks = [
  1565. 'onShow',
  1566. 'onHide',
  1567. 'onError',
  1568. 'onPageNotFound',
  1569. 'onThemeChange',
  1570. 'onUnhandledRejection'];
  1571. function initEventChannel() {
  1572. _vue.default.prototype.getOpenerEventChannel = function () {
  1573. // 微信小程序使用自身getOpenerEventChannel
  1574. {
  1575. return this.$scope.getOpenerEventChannel();
  1576. }
  1577. };
  1578. var callHook = _vue.default.prototype.__call_hook;
  1579. _vue.default.prototype.__call_hook = function (hook, args) {
  1580. if (hook === 'onLoad' && args && args.__id__) {
  1581. this.__eventChannel__ = getEventChannel(args.__id__);
  1582. delete args.__id__;
  1583. }
  1584. return callHook.call(this, hook, args);
  1585. };
  1586. }
  1587. function initScopedSlotsParams() {
  1588. var center = {};
  1589. var parents = {};
  1590. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1591. var has = center[vueId];
  1592. if (!has) {
  1593. parents[vueId] = this;
  1594. this.$on('hook:destroyed', function () {
  1595. delete parents[vueId];
  1596. });
  1597. }
  1598. return has;
  1599. };
  1600. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1601. var data = center[vueId];
  1602. if (data) {
  1603. var object = data[name] || {};
  1604. return key ? object[key] : object;
  1605. } else {
  1606. parents[vueId] = this;
  1607. this.$on('hook:destroyed', function () {
  1608. delete parents[vueId];
  1609. });
  1610. }
  1611. };
  1612. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1613. var vueIds = this.$options.propsData.vueId;
  1614. if (vueIds) {
  1615. var vueId = vueIds.split(',')[0];
  1616. var object = center[vueId] = center[vueId] || {};
  1617. object[name] = value;
  1618. if (parents[vueId]) {
  1619. parents[vueId].$forceUpdate();
  1620. }
  1621. }
  1622. };
  1623. _vue.default.mixin({
  1624. destroyed: function destroyed() {
  1625. var propsData = this.$options.propsData;
  1626. var vueId = propsData && propsData.vueId;
  1627. if (vueId) {
  1628. delete center[vueId];
  1629. delete parents[vueId];
  1630. }
  1631. } });
  1632. }
  1633. function parseBaseApp(vm, _ref3)
  1634. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1635. initEventChannel();
  1636. {
  1637. initScopedSlotsParams();
  1638. }
  1639. if (vm.$options.store) {
  1640. _vue.default.prototype.$store = vm.$options.store;
  1641. }
  1642. uniIdMixin(_vue.default);
  1643. _vue.default.prototype.mpHost = "mp-weixin";
  1644. _vue.default.mixin({
  1645. beforeCreate: function beforeCreate() {
  1646. if (!this.$options.mpType) {
  1647. return;
  1648. }
  1649. this.mpType = this.$options.mpType;
  1650. this.$mp = _defineProperty({
  1651. data: {} },
  1652. this.mpType, this.$options.mpInstance);
  1653. this.$scope = this.$options.mpInstance;
  1654. delete this.$options.mpType;
  1655. delete this.$options.mpInstance;
  1656. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1657. var app = getApp();
  1658. if (app.$vm && app.$vm.$i18n) {
  1659. this._i18n = app.$vm.$i18n;
  1660. }
  1661. }
  1662. if (this.mpType !== 'app') {
  1663. initRefs(this);
  1664. initMocks(this, mocks);
  1665. }
  1666. } });
  1667. var appOptions = {
  1668. onLaunch: function onLaunch(args) {
  1669. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1670. return;
  1671. }
  1672. {
  1673. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1674. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1675. }
  1676. }
  1677. this.$vm = vm;
  1678. this.$vm.$mp = {
  1679. app: this };
  1680. this.$vm.$scope = this;
  1681. // vm 上也挂载 globalData
  1682. this.$vm.globalData = this.globalData;
  1683. this.$vm._isMounted = true;
  1684. this.$vm.__call_hook('mounted', args);
  1685. this.$vm.__call_hook('onLaunch', args);
  1686. } };
  1687. // 兼容旧版本 globalData
  1688. appOptions.globalData = vm.$options.globalData || {};
  1689. // 将 methods 中的方法挂在 getApp() 中
  1690. var methods = vm.$options.methods;
  1691. if (methods) {
  1692. Object.keys(methods).forEach(function (name) {
  1693. appOptions[name] = methods[name];
  1694. });
  1695. }
  1696. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1697. initHooks(appOptions, hooks);
  1698. return appOptions;
  1699. }
  1700. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1701. function findVmByVueId(vm, vuePid) {
  1702. var $children = vm.$children;
  1703. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1704. for (var i = $children.length - 1; i >= 0; i--) {
  1705. var childVm = $children[i];
  1706. if (childVm.$scope._$vueId === vuePid) {
  1707. return childVm;
  1708. }
  1709. }
  1710. // 反向递归查找
  1711. var parentVm;
  1712. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1713. parentVm = findVmByVueId($children[_i], vuePid);
  1714. if (parentVm) {
  1715. return parentVm;
  1716. }
  1717. }
  1718. }
  1719. function initBehavior(options) {
  1720. return Behavior(options);
  1721. }
  1722. function isPage() {
  1723. return !!this.route;
  1724. }
  1725. function initRelation(detail) {
  1726. this.triggerEvent('__l', detail);
  1727. }
  1728. function selectAllComponents(mpInstance, selector, $refs) {
  1729. var components = mpInstance.selectAllComponents(selector);
  1730. components.forEach(function (component) {
  1731. var ref = component.dataset.ref;
  1732. $refs[ref] = component.$vm || component;
  1733. {
  1734. if (component.dataset.vueGeneric === 'scoped') {
  1735. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1736. selectAllComponents(scopedComponent, selector, $refs);
  1737. });
  1738. }
  1739. }
  1740. });
  1741. }
  1742. function initRefs(vm) {
  1743. var mpInstance = vm.$scope;
  1744. Object.defineProperty(vm, '$refs', {
  1745. get: function get() {
  1746. var $refs = {};
  1747. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1748. // TODO 暂不考虑 for 中的 scoped
  1749. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1750. forComponents.forEach(function (component) {
  1751. var ref = component.dataset.ref;
  1752. if (!$refs[ref]) {
  1753. $refs[ref] = [];
  1754. }
  1755. $refs[ref].push(component.$vm || component);
  1756. });
  1757. return $refs;
  1758. } });
  1759. }
  1760. function handleLink(event) {var _ref4 =
  1761. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1762. var parentVm;
  1763. if (vuePid) {
  1764. parentVm = findVmByVueId(this.$vm, vuePid);
  1765. }
  1766. if (!parentVm) {
  1767. parentVm = this.$vm;
  1768. }
  1769. vueOptions.parent = parentVm;
  1770. }
  1771. function parseApp(vm) {
  1772. return parseBaseApp(vm, {
  1773. mocks: mocks,
  1774. initRefs: initRefs });
  1775. }
  1776. function createApp(vm) {
  1777. App(parseApp(vm));
  1778. return vm;
  1779. }
  1780. var encodeReserveRE = /[!'()*]/g;
  1781. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1782. var commaRE = /%2C/g;
  1783. // fixed encodeURIComponent which is more conformant to RFC3986:
  1784. // - escapes [!'()*]
  1785. // - preserve commas
  1786. var encode = function encode(str) {return encodeURIComponent(str).
  1787. replace(encodeReserveRE, encodeReserveReplacer).
  1788. replace(commaRE, ',');};
  1789. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1790. var res = obj ? Object.keys(obj).map(function (key) {
  1791. var val = obj[key];
  1792. if (val === undefined) {
  1793. return '';
  1794. }
  1795. if (val === null) {
  1796. return encodeStr(key);
  1797. }
  1798. if (Array.isArray(val)) {
  1799. var result = [];
  1800. val.forEach(function (val2) {
  1801. if (val2 === undefined) {
  1802. return;
  1803. }
  1804. if (val2 === null) {
  1805. result.push(encodeStr(key));
  1806. } else {
  1807. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1808. }
  1809. });
  1810. return result.join('&');
  1811. }
  1812. return encodeStr(key) + '=' + encodeStr(val);
  1813. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1814. return res ? "?".concat(res) : '';
  1815. }
  1816. function parseBaseComponent(vueComponentOptions)
  1817. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1818. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1819. var options = _objectSpread({
  1820. multipleSlots: true,
  1821. addGlobalClass: true },
  1822. vueOptions.options || {});
  1823. {
  1824. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1825. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1826. Object.assign(options, vueOptions['mp-weixin'].options);
  1827. }
  1828. }
  1829. var componentOptions = {
  1830. options: options,
  1831. data: initData(vueOptions, _vue.default.prototype),
  1832. behaviors: initBehaviors(vueOptions, initBehavior),
  1833. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1834. lifetimes: {
  1835. attached: function attached() {
  1836. var properties = this.properties;
  1837. var options = {
  1838. mpType: isPage.call(this) ? 'page' : 'component',
  1839. mpInstance: this,
  1840. propsData: properties };
  1841. initVueIds(properties.vueId, this);
  1842. // 处理父子关系
  1843. initRelation.call(this, {
  1844. vuePid: this._$vuePid,
  1845. vueOptions: options });
  1846. // 初始化 vue 实例
  1847. this.$vm = new VueComponent(options);
  1848. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1849. initSlots(this.$vm, properties.vueSlots);
  1850. // 触发首次 setData
  1851. this.$vm.$mount();
  1852. },
  1853. ready: function ready() {
  1854. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1855. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1856. if (this.$vm) {
  1857. this.$vm._isMounted = true;
  1858. this.$vm.__call_hook('mounted');
  1859. this.$vm.__call_hook('onReady');
  1860. }
  1861. },
  1862. detached: function detached() {
  1863. this.$vm && this.$vm.$destroy();
  1864. } },
  1865. pageLifetimes: {
  1866. show: function show(args) {
  1867. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1868. },
  1869. hide: function hide() {
  1870. this.$vm && this.$vm.__call_hook('onPageHide');
  1871. },
  1872. resize: function resize(size) {
  1873. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1874. } },
  1875. methods: {
  1876. __l: handleLink,
  1877. __e: handleEvent } };
  1878. // externalClasses
  1879. if (vueOptions.externalClasses) {
  1880. componentOptions.externalClasses = vueOptions.externalClasses;
  1881. }
  1882. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1883. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1884. componentOptions.methods[callMethod] = function (args) {
  1885. return this.$vm[callMethod](args);
  1886. };
  1887. });
  1888. }
  1889. if (isPage) {
  1890. return componentOptions;
  1891. }
  1892. return [componentOptions, VueComponent];
  1893. }
  1894. function parseComponent(vueComponentOptions) {
  1895. return parseBaseComponent(vueComponentOptions, {
  1896. isPage: isPage,
  1897. initRelation: initRelation });
  1898. }
  1899. var hooks$1 = [
  1900. 'onShow',
  1901. 'onHide',
  1902. 'onUnload'];
  1903. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1904. function parseBasePage(vuePageOptions, _ref6)
  1905. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1906. var pageOptions = parseComponent(vuePageOptions);
  1907. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1908. pageOptions.methods.onLoad = function (query) {
  1909. this.options = query;
  1910. var copyQuery = Object.assign({}, query);
  1911. delete copyQuery.__id__;
  1912. this.$page = {
  1913. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1914. this.$vm.$mp.query = query; // 兼容 mpvue
  1915. this.$vm.__call_hook('onLoad', query);
  1916. };
  1917. return pageOptions;
  1918. }
  1919. function parsePage(vuePageOptions) {
  1920. return parseBasePage(vuePageOptions, {
  1921. isPage: isPage,
  1922. initRelation: initRelation });
  1923. }
  1924. function createPage(vuePageOptions) {
  1925. {
  1926. return Component(parsePage(vuePageOptions));
  1927. }
  1928. }
  1929. function createComponent(vueOptions) {
  1930. {
  1931. return Component(parseComponent(vueOptions));
  1932. }
  1933. }
  1934. function createSubpackageApp(vm) {
  1935. var appOptions = parseApp(vm);
  1936. var app = getApp({
  1937. allowDefault: true });
  1938. vm.$scope = app;
  1939. var globalData = app.globalData;
  1940. if (globalData) {
  1941. Object.keys(appOptions.globalData).forEach(function (name) {
  1942. if (!hasOwn(globalData, name)) {
  1943. globalData[name] = appOptions.globalData[name];
  1944. }
  1945. });
  1946. }
  1947. Object.keys(appOptions).forEach(function (name) {
  1948. if (!hasOwn(app, name)) {
  1949. app[name] = appOptions[name];
  1950. }
  1951. });
  1952. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1953. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1954. vm.__call_hook('onShow', args);
  1955. });
  1956. }
  1957. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1958. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1959. vm.__call_hook('onHide', args);
  1960. });
  1961. }
  1962. if (isFn(appOptions.onLaunch)) {
  1963. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1964. vm.__call_hook('onLaunch', args);
  1965. }
  1966. return vm;
  1967. }
  1968. function createPlugin(vm) {
  1969. var appOptions = parseApp(vm);
  1970. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1971. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1972. vm.__call_hook('onShow', args);
  1973. });
  1974. }
  1975. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1976. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1977. vm.__call_hook('onHide', args);
  1978. });
  1979. }
  1980. if (isFn(appOptions.onLaunch)) {
  1981. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1982. vm.__call_hook('onLaunch', args);
  1983. }
  1984. return vm;
  1985. }
  1986. todos.forEach(function (todoApi) {
  1987. protocols[todoApi] = false;
  1988. });
  1989. canIUses.forEach(function (canIUseApi) {
  1990. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1991. canIUseApi;
  1992. if (!wx.canIUse(apiName)) {
  1993. protocols[canIUseApi] = false;
  1994. }
  1995. });
  1996. var uni = {};
  1997. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1998. uni = new Proxy({}, {
  1999. get: function get(target, name) {
  2000. if (hasOwn(target, name)) {
  2001. return target[name];
  2002. }
  2003. if (baseApi[name]) {
  2004. return baseApi[name];
  2005. }
  2006. if (api[name]) {
  2007. return promisify(name, api[name]);
  2008. }
  2009. {
  2010. if (extraApi[name]) {
  2011. return promisify(name, extraApi[name]);
  2012. }
  2013. if (todoApis[name]) {
  2014. return promisify(name, todoApis[name]);
  2015. }
  2016. }
  2017. if (eventApi[name]) {
  2018. return eventApi[name];
  2019. }
  2020. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2021. return;
  2022. }
  2023. return promisify(name, wrapper(name, wx[name]));
  2024. },
  2025. set: function set(target, name, value) {
  2026. target[name] = value;
  2027. return true;
  2028. } });
  2029. } else {
  2030. Object.keys(baseApi).forEach(function (name) {
  2031. uni[name] = baseApi[name];
  2032. });
  2033. {
  2034. Object.keys(todoApis).forEach(function (name) {
  2035. uni[name] = promisify(name, todoApis[name]);
  2036. });
  2037. Object.keys(extraApi).forEach(function (name) {
  2038. uni[name] = promisify(name, todoApis[name]);
  2039. });
  2040. }
  2041. Object.keys(eventApi).forEach(function (name) {
  2042. uni[name] = eventApi[name];
  2043. });
  2044. Object.keys(api).forEach(function (name) {
  2045. uni[name] = promisify(name, api[name]);
  2046. });
  2047. Object.keys(wx).forEach(function (name) {
  2048. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2049. uni[name] = promisify(name, wrapper(name, wx[name]));
  2050. }
  2051. });
  2052. }
  2053. wx.createApp = createApp;
  2054. wx.createPage = createPage;
  2055. wx.createComponent = createComponent;
  2056. wx.createSubpackageApp = createSubpackageApp;
  2057. wx.createPlugin = createPlugin;
  2058. var uni$1 = uni;var _default =
  2059. uni$1;exports.default = _default;
  2060. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2061. /***/ }),
  2062. /***/ 100:
  2063. /*!**********************************************************************************************************!*\
  2064. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json ***!
  2065. \**********************************************************************************************************/
  2066. /*! exports provided: uni-calender.ok, uni-calender.cancel, uni-calender.today, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, default */
  2067. /***/ (function(module) {
  2068. module.exports = JSON.parse("{\"uni-calender.ok\":\"确定\",\"uni-calender.cancel\":\"取消\",\"uni-calender.today\":\"今日\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\"}");
  2069. /***/ }),
  2070. /***/ 101:
  2071. /*!**********************************************************************************************************!*\
  2072. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json ***!
  2073. \**********************************************************************************************************/
  2074. /*! exports provided: uni-calender.ok, uni-calender.cancel, uni-calender.today, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, default */
  2075. /***/ (function(module) {
  2076. module.exports = JSON.parse("{\"uni-calender.ok\":\"確定\",\"uni-calender.cancel\":\"取消\",\"uni-calender.today\":\"今日\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\"}");
  2077. /***/ }),
  2078. /***/ 109:
  2079. /*!**********************************************************************************************!*\
  2080. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  2081. \**********************************************************************************************/
  2082. /*! no static exports found */
  2083. /***/ (function(module, exports, __webpack_require__) {
  2084. "use strict";
  2085. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 47));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _inherits(subClass, superClass) {if (typeof superClass !== "function" && superClass !== null) {throw new TypeError("Super expression must either be null or a function");}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);}function _setPrototypeOf(o, p) {_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {o.__proto__ = p;return o;};return _setPrototypeOf(o, p);}function _createSuper(Derived) {var hasNativeReflectConstruct = _isNativeReflectConstruct();return function _createSuperInternal() {var Super = _getPrototypeOf(Derived),result;if (hasNativeReflectConstruct) {var NewTarget = _getPrototypeOf(this).constructor;result = Reflect.construct(Super, arguments, NewTarget);} else {result = Super.apply(this, arguments);}return _possibleConstructorReturn(this, result);};}function _possibleConstructorReturn(self, call) {if (call && (typeof call === "object" || typeof call === "function")) {return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self) {if (self === void 0) {throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct() {if (typeof Reflect === "undefined" || !Reflect.construct) return false;if (Reflect.construct.sham) return false;if (typeof Proxy === "function") return true;try {Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));return true;} catch (e) {return false;}}function _getPrototypeOf(o) {_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {return o.__proto__ || Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var pattern = {
  2086. email: /^\S+?@\S+?\.\S+?$/,
  2087. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  2088. url: new RegExp(
  2089. "^(?!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]*)?$",
  2090. 'i') };
  2091. var FORMAT_MAPPING = {
  2092. "int": 'integer',
  2093. "bool": 'boolean',
  2094. "double": 'number',
  2095. "long": 'number',
  2096. "password": 'string'
  2097. // "fileurls": 'array'
  2098. };
  2099. function formatMessage(args) {var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  2100. var defaultMessage = ['label'];
  2101. defaultMessage.forEach(function (item) {
  2102. if (args[item] === undefined) {
  2103. args[item] = '';
  2104. }
  2105. });
  2106. var str = resources;
  2107. for (var key in args) {
  2108. var reg = new RegExp('{' + key + '}');
  2109. str = str.replace(reg, args[key]);
  2110. }
  2111. return str;
  2112. }
  2113. function isEmptyValue(value, type) {
  2114. if (value === undefined || value === null) {
  2115. return true;
  2116. }
  2117. if (typeof value === 'string' && !value) {
  2118. return true;
  2119. }
  2120. if (Array.isArray(value) && !value.length) {
  2121. return true;
  2122. }
  2123. if (type === 'object' && !Object.keys(value).length) {
  2124. return true;
  2125. }
  2126. return false;
  2127. }
  2128. var types = {
  2129. integer: function integer(value) {
  2130. return types.number(value) && parseInt(value, 10) === value;
  2131. },
  2132. string: function string(value) {
  2133. return typeof value === 'string';
  2134. },
  2135. number: function number(value) {
  2136. if (isNaN(value)) {
  2137. return false;
  2138. }
  2139. return typeof value === 'number';
  2140. },
  2141. "boolean": function boolean(value) {
  2142. return typeof value === 'boolean';
  2143. },
  2144. "float": function float(value) {
  2145. return types.number(value) && !types.integer(value);
  2146. },
  2147. array: function array(value) {
  2148. return Array.isArray(value);
  2149. },
  2150. object: function object(value) {
  2151. return typeof value === 'object' && !types.array(value);
  2152. },
  2153. date: function date(value) {
  2154. return value instanceof Date;
  2155. },
  2156. timestamp: function timestamp(value) {
  2157. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  2158. return false;
  2159. }
  2160. return true;
  2161. },
  2162. file: function file(value) {
  2163. return typeof value.url === 'string';
  2164. },
  2165. email: function email(value) {
  2166. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  2167. },
  2168. url: function url(value) {
  2169. return typeof value === 'string' && !!value.match(pattern.url);
  2170. },
  2171. pattern: function pattern(reg, value) {
  2172. try {
  2173. return new RegExp(reg).test(value);
  2174. } catch (e) {
  2175. return false;
  2176. }
  2177. },
  2178. method: function method(value) {
  2179. return typeof value === 'function';
  2180. },
  2181. idcard: function idcard(value) {
  2182. return typeof value === 'string' && !!value.match(pattern.idcard);
  2183. },
  2184. 'url-https': function urlHttps(value) {
  2185. return this.url(value) && value.startsWith('https://');
  2186. },
  2187. 'url-scheme': function urlScheme(value) {
  2188. return value.startsWith('://');
  2189. },
  2190. 'url-web': function urlWeb(value) {
  2191. return false;
  2192. } };var
  2193. RuleValidator = /*#__PURE__*/function () {
  2194. function RuleValidator(message) {_classCallCheck(this, RuleValidator);
  2195. this._message = message;
  2196. }_createClass(RuleValidator, [{ key: "validateRule", value: function () {var _validateRule = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(
  2197. fieldKey, fieldValue, value, data, allData) {var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  2198. result = null;
  2199. rules = fieldValue.rules;
  2200. hasRequired = rules.findIndex(function (item) {
  2201. return item.required;
  2202. });if (!(
  2203. hasRequired < 0)) {_context.next = 8;break;}if (!(
  2204. value === null || value === undefined)) {_context.next = 6;break;}return _context.abrupt("return",
  2205. result);case 6:if (!(
  2206. typeof value === 'string' && !value.length)) {_context.next = 8;break;}return _context.abrupt("return",
  2207. result);case 8:
  2208. message = this._message;if (!(
  2209. rules === undefined)) {_context.next = 11;break;}return _context.abrupt("return",
  2210. message['default']);case 11:
  2211. i = 0;case 12:if (!(i < rules.length)) {_context.next = 35;break;}
  2212. rule = rules[i];
  2213. vt = this._getValidateType(rule);
  2214. Object.assign(rule, {
  2215. label: fieldValue.label || "[\"".concat(fieldKey, "\"]") });if (!
  2216. RuleValidatorHelper[vt]) {_context.next = 20;break;}
  2217. result = RuleValidatorHelper[vt](rule, value, message);if (!(
  2218. result != null)) {_context.next = 20;break;}return _context.abrupt("break", 35);case 20:if (!
  2219. rule.validateExpr) {_context.next = 26;break;}
  2220. now = Date.now();
  2221. resultExpr = rule.validateExpr(value, allData, now);if (!(
  2222. resultExpr === false)) {_context.next = 26;break;}
  2223. result = this._getMessage(rule, rule.errorMessage || this._message['default']);return _context.abrupt("break", 35);case 26:if (!
  2224. rule.validateFunction) {_context.next = 32;break;}_context.next = 29;return (
  2225. this.validateFunction(rule, value, data, allData, vt));case 29:result = _context.sent;if (!(
  2226. result !== null)) {_context.next = 32;break;}return _context.abrupt("break", 35);case 32:i++;_context.next = 12;break;case 35:
  2227. if (result !== null) {
  2228. result = message.TAG + result;
  2229. }return _context.abrupt("return",
  2230. result);case 37:case "end":return _context.stop();}}}, _callee, this);}));function validateRule(_x, _x2, _x3, _x4, _x5) {return _validateRule.apply(this, arguments);}return validateRule;}() }, { key: "validateFunction", value: function () {var _validateFunction = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2(
  2231. rule, value, data, allData, vt) {var result, callbackMessage, res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
  2232. result = null;_context2.prev = 1;
  2233. callbackMessage = null;_context2.next = 5;return (
  2234. rule.validateFunction(rule, value, allData || data, function (message) {
  2235. callbackMessage = message;
  2236. }));case 5:res = _context2.sent;
  2237. if (callbackMessage || typeof res === 'string' && res || res === false) {
  2238. result = this._getMessage(rule, callbackMessage || res, vt);
  2239. }_context2.next = 12;break;case 9:_context2.prev = 9;_context2.t0 = _context2["catch"](1);
  2240. result = this._getMessage(rule, _context2.t0.message, vt);case 12:return _context2.abrupt("return",
  2241. result);case 13:case "end":return _context2.stop();}}}, _callee2, this, [[1, 9]]);}));function validateFunction(_x6, _x7, _x8, _x9, _x10) {return _validateFunction.apply(this, arguments);}return validateFunction;}() }, { key: "_getMessage", value: function _getMessage(
  2242. rule, message, vt) {
  2243. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  2244. } }, { key: "_getValidateType", value: function _getValidateType(
  2245. rule) {
  2246. var result = '';
  2247. if (rule.required) {
  2248. result = 'required';
  2249. } else if (rule.format) {
  2250. result = 'format';
  2251. } else if (rule.arrayType) {
  2252. result = 'arrayTypeFormat';
  2253. } else if (rule.range) {
  2254. result = 'range';
  2255. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  2256. result = 'rangeNumber';
  2257. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  2258. result = 'rangeLength';
  2259. } else if (rule.pattern) {
  2260. result = 'pattern';
  2261. } else if (rule.validateFunction) {
  2262. result = 'validateFunction';
  2263. }
  2264. return result;
  2265. } }]);return RuleValidator;}();
  2266. var RuleValidatorHelper = {
  2267. required: function required(rule, value, message) {
  2268. if (rule.required && isEmptyValue(value, rule.format || typeof value)) {
  2269. return formatMessage(rule, rule.errorMessage || message.required);
  2270. }
  2271. return null;
  2272. },
  2273. range: function range(rule, value, message) {var
  2274. range =
  2275. rule.range,errorMessage = rule.errorMessage;
  2276. var list = new Array(range.length);
  2277. for (var i = 0; i < range.length; i++) {
  2278. var item = range[i];
  2279. if (types.object(item) && item.value !== undefined) {
  2280. list[i] = item.value;
  2281. } else {
  2282. list[i] = item;
  2283. }
  2284. }
  2285. var result = false;
  2286. if (Array.isArray(value)) {
  2287. result = new Set(value.concat(list)).size === list.length;
  2288. } else {
  2289. if (list.indexOf(value) > -1) {
  2290. result = true;
  2291. }
  2292. }
  2293. if (!result) {
  2294. return formatMessage(rule, errorMessage || message['enum']);
  2295. }
  2296. return null;
  2297. },
  2298. rangeNumber: function rangeNumber(rule, value, message) {
  2299. if (!types.number(value)) {
  2300. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  2301. }var
  2302. minimum =
  2303. rule.minimum,maximum = rule.maximum,exclusiveMinimum = rule.exclusiveMinimum,exclusiveMaximum = rule.exclusiveMaximum;
  2304. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  2305. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  2306. if (minimum !== undefined && min) {
  2307. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ?
  2308. 'exclusiveMinimum' : 'minimum']);
  2309. } else if (maximum !== undefined && max) {
  2310. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ?
  2311. 'exclusiveMaximum' : 'maximum']);
  2312. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  2313. return formatMessage(rule, rule.errorMessage || message['number'].range);
  2314. }
  2315. return null;
  2316. },
  2317. rangeLength: function rangeLength(rule, value, message) {
  2318. if (!types.string(value) && !types.array(value)) {
  2319. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  2320. }
  2321. var min = rule.minLength;
  2322. var max = rule.maxLength;
  2323. var val = value.length;
  2324. if (min !== undefined && val < min) {
  2325. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  2326. } else if (max !== undefined && val > max) {
  2327. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  2328. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  2329. return formatMessage(rule, rule.errorMessage || message['length'].range);
  2330. }
  2331. return null;
  2332. },
  2333. pattern: function pattern(rule, value, message) {
  2334. if (!types['pattern'](rule.pattern, value)) {
  2335. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  2336. }
  2337. return null;
  2338. },
  2339. format: function format(rule, value, message) {
  2340. var customTypes = Object.keys(types);
  2341. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  2342. if (customTypes.indexOf(format) > -1) {
  2343. if (!types[format](value)) {
  2344. return formatMessage(rule, rule.errorMessage || message.typeError);
  2345. }
  2346. }
  2347. return null;
  2348. },
  2349. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  2350. if (!Array.isArray(value)) {
  2351. return formatMessage(rule, rule.errorMessage || message.typeError);
  2352. }
  2353. for (var i = 0; i < value.length; i++) {
  2354. var element = value[i];
  2355. var formatResult = this.format(rule, element, message);
  2356. if (formatResult !== null) {
  2357. return formatResult;
  2358. }
  2359. }
  2360. return null;
  2361. } };var
  2362. SchemaValidator = /*#__PURE__*/function (_RuleValidator) {_inherits(SchemaValidator, _RuleValidator);var _super = _createSuper(SchemaValidator);
  2363. function SchemaValidator(schema, options) {var _this;_classCallCheck(this, SchemaValidator);
  2364. _this = _super.call(this, SchemaValidator.message);
  2365. _this._schema = schema;
  2366. _this._options = options || null;return _this;
  2367. }_createClass(SchemaValidator, [{ key: "updateSchema", value: function updateSchema(
  2368. schema) {
  2369. this._schema = schema;
  2370. } }, { key: "validate", value: function () {var _validate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(
  2371. data, allData) {var result;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:
  2372. result = this._checkFieldInSchema(data);if (
  2373. result) {_context3.next = 5;break;}_context3.next = 4;return (
  2374. this.invokeValidate(data, false, allData));case 4:result = _context3.sent;case 5:return _context3.abrupt("return",
  2375. result.length ? result[0] : null);case 6:case "end":return _context3.stop();}}}, _callee3, this);}));function validate(_x11, _x12) {return _validate.apply(this, arguments);}return validate;}() }, { key: "validateAll", value: function () {var _validateAll = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4(
  2376. data, allData) {var result;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:
  2377. result = this._checkFieldInSchema(data);if (
  2378. result) {_context4.next = 5;break;}_context4.next = 4;return (
  2379. this.invokeValidate(data, true, allData));case 4:result = _context4.sent;case 5:return _context4.abrupt("return",
  2380. result);case 6:case "end":return _context4.stop();}}}, _callee4, this);}));function validateAll(_x13, _x14) {return _validateAll.apply(this, arguments);}return validateAll;}() }, { key: "validateUpdate", value: function () {var _validateUpdate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee5(
  2381. data, allData) {var result;return _regenerator.default.wrap(function _callee5$(_context5) {while (1) {switch (_context5.prev = _context5.next) {case 0:
  2382. result = this._checkFieldInSchema(data);if (
  2383. result) {_context5.next = 5;break;}_context5.next = 4;return (
  2384. this.invokeValidateUpdate(data, false, allData));case 4:result = _context5.sent;case 5:return _context5.abrupt("return",
  2385. result.length ? result[0] : null);case 6:case "end":return _context5.stop();}}}, _callee5, this);}));function validateUpdate(_x15, _x16) {return _validateUpdate.apply(this, arguments);}return validateUpdate;}() }, { key: "invokeValidate", value: function () {var _invokeValidate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee6(
  2386. data, all, allData) {var result, schema, key, value, errorMessage;return _regenerator.default.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:
  2387. result = [];
  2388. schema = this._schema;_context6.t0 = _regenerator.default.keys(
  2389. schema);case 3:if ((_context6.t1 = _context6.t0()).done) {_context6.next = 15;break;}key = _context6.t1.value;
  2390. value = schema[key];_context6.next = 8;return (
  2391. this.validateRule(key, value, data[key], data, allData));case 8:errorMessage = _context6.sent;if (!(
  2392. errorMessage != null)) {_context6.next = 13;break;}
  2393. result.push({
  2394. key: key,
  2395. errorMessage: errorMessage });if (
  2396. all) {_context6.next = 13;break;}return _context6.abrupt("break", 15);case 13:_context6.next = 3;break;case 15:return _context6.abrupt("return",
  2397. result);case 16:case "end":return _context6.stop();}}}, _callee6, this);}));function invokeValidate(_x17, _x18, _x19) {return _invokeValidate.apply(this, arguments);}return invokeValidate;}() }, { key: "invokeValidateUpdate", value: function () {var _invokeValidateUpdate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee7(
  2398. data, all, allData) {var result, key, errorMessage;return _regenerator.default.wrap(function _callee7$(_context7) {while (1) {switch (_context7.prev = _context7.next) {case 0:
  2399. result = [];_context7.t0 = _regenerator.default.keys(
  2400. data);case 2:if ((_context7.t1 = _context7.t0()).done) {_context7.next = 13;break;}key = _context7.t1.value;_context7.next = 6;return (
  2401. this.validateRule(key, this._schema[key], data[key], data, allData));case 6:errorMessage = _context7.sent;if (!(
  2402. errorMessage != null)) {_context7.next = 11;break;}
  2403. result.push({
  2404. key: key,
  2405. errorMessage: errorMessage });if (
  2406. all) {_context7.next = 11;break;}return _context7.abrupt("break", 13);case 11:_context7.next = 2;break;case 13:return _context7.abrupt("return",
  2407. result);case 14:case "end":return _context7.stop();}}}, _callee7, this);}));function invokeValidateUpdate(_x20, _x21, _x22) {return _invokeValidateUpdate.apply(this, arguments);}return invokeValidateUpdate;}() }, { key: "_checkFieldInSchema", value: function _checkFieldInSchema(
  2408. data) {
  2409. var keys = Object.keys(data);
  2410. var keys2 = Object.keys(this._schema);
  2411. if (new Set(keys.concat(keys2)).size === keys2.length) {
  2412. return '';
  2413. }
  2414. var noExistFields = keys.filter(function (key) {
  2415. return keys2.indexOf(key) < 0;
  2416. });
  2417. var errorMessage = formatMessage({
  2418. field: JSON.stringify(noExistFields) },
  2419. SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  2420. return [{
  2421. key: 'invalid',
  2422. errorMessage: errorMessage }];
  2423. } }]);return SchemaValidator;}(RuleValidator);
  2424. function Message() {
  2425. return {
  2426. TAG: "",
  2427. default: '验证错误',
  2428. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  2429. validateFunction: '验证无效',
  2430. required: '{label}必填',
  2431. 'enum': '{label}超出范围',
  2432. timestamp: '{label}格式无效',
  2433. whitespace: '{label}不能为空',
  2434. typeError: '{label}类型无效',
  2435. date: {
  2436. format: '{label}日期{value}格式无效',
  2437. parse: '{label}日期无法解析,{value}无效',
  2438. invalid: '{label}日期{value}无效' },
  2439. length: {
  2440. minLength: '{label}长度不能少于{minLength}',
  2441. maxLength: '{label}长度不能超过{maxLength}',
  2442. range: '{label}必须介于{minLength}和{maxLength}之间' },
  2443. number: {
  2444. minimum: '{label}不能小于{minimum}',
  2445. maximum: '{label}不能大于{maximum}',
  2446. exclusiveMinimum: '{label}不能小于等于{minimum}',
  2447. exclusiveMaximum: '{label}不能大于等于{maximum}',
  2448. range: '{label}必须介于{minimum}and{maximum}之间' },
  2449. pattern: {
  2450. mismatch: '{label}格式不匹配' } };
  2451. }
  2452. SchemaValidator.message = new Message();var _default =
  2453. SchemaValidator;exports.default = _default;
  2454. /***/ }),
  2455. /***/ 11:
  2456. /*!**********************************************************************************************************!*\
  2457. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  2458. \**********************************************************************************************************/
  2459. /*! exports provided: default */
  2460. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2461. "use strict";
  2462. __webpack_require__.r(__webpack_exports__);
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  2464. /* globals __VUE_SSR_CONTEXT__ */
  2465. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  2466. // This module is a runtime utility for cleaner component module output and will
  2467. // be included in the final webpack user bundle.
  2468. function normalizeComponent (
  2469. scriptExports,
  2470. render,
  2471. staticRenderFns,
  2472. functionalTemplate,
  2473. injectStyles,
  2474. scopeId,
  2475. moduleIdentifier, /* server only */
  2476. shadowMode, /* vue-cli only */
  2477. components, // fixed by xxxxxx auto components
  2478. renderjs // fixed by xxxxxx renderjs
  2479. ) {
  2480. // Vue.extend constructor export interop
  2481. var options = typeof scriptExports === 'function'
  2482. ? scriptExports.options
  2483. : scriptExports
  2484. // fixed by xxxxxx auto components
  2485. if (components) {
  2486. if (!options.components) {
  2487. options.components = {}
  2488. }
  2489. var hasOwn = Object.prototype.hasOwnProperty
  2490. for (var name in components) {
  2491. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  2492. options.components[name] = components[name]
  2493. }
  2494. }
  2495. }
  2496. // fixed by xxxxxx renderjs
  2497. if (renderjs) {
  2498. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  2499. this[renderjs.__module] = this
  2500. });
  2501. (options.mixins || (options.mixins = [])).push(renderjs)
  2502. }
  2503. // render functions
  2504. if (render) {
  2505. options.render = render
  2506. options.staticRenderFns = staticRenderFns
  2507. options._compiled = true
  2508. }
  2509. // functional template
  2510. if (functionalTemplate) {
  2511. options.functional = true
  2512. }
  2513. // scopedId
  2514. if (scopeId) {
  2515. options._scopeId = 'data-v-' + scopeId
  2516. }
  2517. var hook
  2518. if (moduleIdentifier) { // server build
  2519. hook = function (context) {
  2520. // 2.3 injection
  2521. context =
  2522. context || // cached call
  2523. (this.$vnode && this.$vnode.ssrContext) || // stateful
  2524. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  2525. // 2.2 with runInNewContext: true
  2526. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  2527. context = __VUE_SSR_CONTEXT__
  2528. }
  2529. // inject component styles
  2530. if (injectStyles) {
  2531. injectStyles.call(this, context)
  2532. }
  2533. // register component module identifier for async chunk inferrence
  2534. if (context && context._registeredComponents) {
  2535. context._registeredComponents.add(moduleIdentifier)
  2536. }
  2537. }
  2538. // used by ssr in case component is cached and beforeCreate
  2539. // never gets called
  2540. options._ssrRegister = hook
  2541. } else if (injectStyles) {
  2542. hook = shadowMode
  2543. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  2544. : injectStyles
  2545. }
  2546. if (hook) {
  2547. if (options.functional) {
  2548. // for template-only hot-reload because in that case the render fn doesn't
  2549. // go through the normalizer
  2550. options._injectStyles = hook
  2551. // register for functioal component in vue file
  2552. var originalRender = options.render
  2553. options.render = function renderWithStyleInjection (h, context) {
  2554. hook.call(context)
  2555. return originalRender(h, context)
  2556. }
  2557. } else {
  2558. // inject component registration as beforeCreate hook
  2559. var existing = options.beforeCreate
  2560. options.beforeCreate = existing
  2561. ? [].concat(existing, hook)
  2562. : [hook]
  2563. }
  2564. }
  2565. return {
  2566. exports: scriptExports,
  2567. options: options
  2568. }
  2569. }
  2570. /***/ }),
  2571. /***/ 110:
  2572. /*!*******************************************************************************************!*\
  2573. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  2574. \*******************************************************************************************/
  2575. /*! no static exports found */
  2576. /***/ (function(module, exports, __webpack_require__) {
  2577. "use strict";
  2578. Object.defineProperty(exports, "__esModule", { value: true });exports.isEqual = exports.type = exports.isRequiredField = exports.isBoolean = exports.isNumber = exports.objGet = exports.objSet = exports.name2arr = exports.rawData = exports.isRealName = exports.realName = exports.getDataValueType = exports.getDataValue = exports.setDataValue = exports.getValue = exports.typeFilter = exports.deepCopy = void 0; /**
  2579. * 简单处理对象拷贝
  2580. * @param {Obejct} 被拷贝对象
  2581. * @@return {Object} 拷贝对象
  2582. */
  2583. var deepCopy = function deepCopy(val) {
  2584. return JSON.parse(JSON.stringify(val));
  2585. };
  2586. /**
  2587. * 过滤数字类型
  2588. * @param {String} format 数字类型
  2589. * @@return {Boolean} 返回是否为数字类型
  2590. */exports.deepCopy = deepCopy;
  2591. var typeFilter = function typeFilter(format) {
  2592. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  2593. };
  2594. /**
  2595. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  2596. * @param {String} key 字段名
  2597. * @param {any} value 字段值
  2598. * @param {Object} rules 表单校验规则
  2599. */exports.typeFilter = typeFilter;
  2600. var getValue = function getValue(key, value, rules) {
  2601. var isRuleNumType = rules.find(function (val) {return val.format && typeFilter(val.format);});
  2602. var isRuleBoolType = rules.find(function (val) {return val.format && val.format === 'boolean' || val.format === 'bool';});
  2603. // 输入类型为 number
  2604. if (!!isRuleNumType) {
  2605. if (!value && value !== 0) {
  2606. value = null;
  2607. } else {
  2608. value = isNumber(Number(value)) ? Number(value) : value;
  2609. }
  2610. }
  2611. // 输入类型为 boolean
  2612. if (!!isRuleBoolType) {
  2613. value = isBoolean(value) ? value : false;
  2614. }
  2615. return value;
  2616. };
  2617. /**
  2618. * 获取表单数据
  2619. * @param {String|Array} name 真实名称,需要使用 realName 获取
  2620. * @param {Object} data 原始数据
  2621. * @param {any} value 需要设置的值
  2622. */exports.getValue = getValue;
  2623. var setDataValue = function setDataValue(field, formdata, value) {
  2624. formdata[field] = value;
  2625. return value || '';
  2626. };
  2627. /**
  2628. * 获取表单数据
  2629. * @param {String|Array} field 真实名称,需要使用 realName 获取
  2630. * @param {Object} data 原始数据
  2631. */exports.setDataValue = setDataValue;
  2632. var getDataValue = function getDataValue(field, data) {
  2633. return objGet(data, field);
  2634. };
  2635. /**
  2636. * 获取表单类型
  2637. * @param {String|Array} field 真实名称,需要使用 realName 获取
  2638. */exports.getDataValue = getDataValue;
  2639. var getDataValueType = function getDataValueType(field, data) {
  2640. var value = getDataValue(field, data);
  2641. return {
  2642. type: type(value),
  2643. value: value };
  2644. };
  2645. /**
  2646. * 获取表单可用的真实name
  2647. * @param {String|Array} name 表单name
  2648. * @@return {String} 表单可用的真实name
  2649. */exports.getDataValueType = getDataValueType;
  2650. var realName = function realName(name) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2651. var base_name = _basePath(name);
  2652. if (typeof base_name === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  2653. var realname = base_name.reduce(function (a, b) {return a += "#".concat(b);}, '_formdata_');
  2654. return realname;
  2655. }
  2656. return base_name[0] || name;
  2657. };
  2658. /**
  2659. * 判断是否表单可用的真实name
  2660. * @param {String|Array} name 表单name
  2661. * @@return {String} 表单可用的真实name
  2662. */exports.realName = realName;
  2663. var isRealName = function isRealName(name) {
  2664. var reg = /^_formdata_#*/;
  2665. return reg.test(name);
  2666. };
  2667. /**
  2668. * 获取表单数据的原始格式
  2669. * @@return {Object|Array} object 需要解析的数据
  2670. */exports.isRealName = isRealName;
  2671. var rawData = function rawData() {var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var name = arguments.length > 1 ? arguments[1] : undefined;
  2672. var newData = JSON.parse(JSON.stringify(object));
  2673. var formData = {};
  2674. for (var i in newData) {
  2675. var path = name2arr(i);
  2676. objSet(formData, path, newData[i]);
  2677. }
  2678. return formData;
  2679. };
  2680. /**
  2681. * 真实name还原为 array
  2682. * @param {*} name
  2683. */exports.rawData = rawData;
  2684. var name2arr = function name2arr(name) {
  2685. var field = name.replace('_formdata_#', '');
  2686. field = field.split('#').map(function (v) {return isNumber(v) ? Number(v) : v;});
  2687. return field;
  2688. };
  2689. /**
  2690. * 对象中设置值
  2691. * @param {Object|Array} object 源数据
  2692. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  2693. * @param {String} value 需要设置的值
  2694. */exports.name2arr = name2arr;
  2695. var objSet = function objSet(object, path, value) {
  2696. if (typeof object !== 'object') return object;
  2697. _basePath(path).reduce(function (o, k, i, _) {
  2698. if (i === _.length - 1) {
  2699. // 若遍历结束直接赋值
  2700. o[k] = value;
  2701. return null;
  2702. } else if (k in o) {
  2703. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  2704. return o[k];
  2705. } else {
  2706. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  2707. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  2708. return o[k];
  2709. }
  2710. }, object);
  2711. // 返回object
  2712. return object;
  2713. };
  2714. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  2715. exports.objSet = objSet;function _basePath(path) {
  2716. // 若是数组,则直接返回
  2717. if (Array.isArray(path)) return path;
  2718. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  2719. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  2720. }
  2721. /**
  2722. * 从对象中获取值
  2723. * @param {Object|Array} object 源数据
  2724. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  2725. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  2726. */
  2727. var objGet = function objGet(object, path) {var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  2728. // 先将path处理成统一格式
  2729. var newPath = _basePath(path);
  2730. // 递归处理,返回最后结果
  2731. var val = newPath.reduce(function (o, k) {
  2732. return (o || {})[k];
  2733. }, object);
  2734. return !val || val !== undefined ? val : defaultVal;
  2735. };
  2736. /**
  2737. * 是否为 number 类型
  2738. * @param {any} num 需要判断的值
  2739. * @return {Boolean} 是否为 number
  2740. */exports.objGet = objGet;
  2741. var isNumber = function isNumber(num) {
  2742. return !isNaN(Number(num));
  2743. };
  2744. /**
  2745. * 是否为 boolean 类型
  2746. * @param {any} bool 需要判断的值
  2747. * @return {Boolean} 是否为 boolean
  2748. */exports.isNumber = isNumber;
  2749. var isBoolean = function isBoolean(bool) {
  2750. return typeof bool === 'boolean';
  2751. };
  2752. /**
  2753. * 是否有必填字段
  2754. * @param {Object} rules 规则
  2755. * @return {Boolean} 是否有必填字段
  2756. */exports.isBoolean = isBoolean;
  2757. var isRequiredField = function isRequiredField(rules) {
  2758. var isNoField = false;
  2759. for (var i = 0; i < rules.length; i++) {
  2760. var ruleData = rules[i];
  2761. if (ruleData.required) {
  2762. isNoField = true;
  2763. break;
  2764. }
  2765. }
  2766. return isNoField;
  2767. };
  2768. /**
  2769. * 获取数据类型
  2770. * @param {Any} obj 需要获取数据类型的值
  2771. */exports.isRequiredField = isRequiredField;
  2772. var type = function type(obj) {
  2773. var class2type = {};
  2774. // 生成class2type映射
  2775. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  2776. class2type["[object " + item + "]"] = item.toLowerCase();
  2777. });
  2778. if (obj == null) {
  2779. return obj + "";
  2780. }
  2781. return typeof obj === "object" || typeof obj === "function" ?
  2782. class2type[Object.prototype.toString.call(obj)] || "object" :
  2783. typeof obj;
  2784. };
  2785. /**
  2786. * 判断两个值是否相等
  2787. * @param {any} a 值
  2788. * @param {any} b 值
  2789. * @return {Boolean} 是否相等
  2790. */exports.type = type;
  2791. var isEqual = function isEqual(a, b) {
  2792. //如果a和b本来就全等
  2793. if (a === b) {
  2794. //判断是否为0和-0
  2795. return a !== 0 || 1 / a === 1 / b;
  2796. }
  2797. //判断是否为null和undefined
  2798. if (a == null || b == null) {
  2799. return a === b;
  2800. }
  2801. //接下来判断a和b的数据类型
  2802. var classNameA = toString.call(a),
  2803. classNameB = toString.call(b);
  2804. //如果数据类型不相等,则返回false
  2805. if (classNameA !== classNameB) {
  2806. return false;
  2807. }
  2808. //如果数据类型相等,再根据不同数据类型分别判断
  2809. switch (classNameA) {
  2810. case '[object RegExp]':
  2811. case '[object String]':
  2812. //进行字符串转换比较
  2813. return '' + a === '' + b;
  2814. case '[object Number]':
  2815. //进行数字转换比较,判断是否为NaN
  2816. if (+a !== +a) {
  2817. return +b !== +b;
  2818. }
  2819. //判断是否为0或-0
  2820. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  2821. case '[object Date]':
  2822. case '[object Boolean]':
  2823. return +a === +b;}
  2824. //如果是对象类型
  2825. if (classNameA == '[object Object]') {
  2826. //获取a和b的属性长度
  2827. var propsA = Object.getOwnPropertyNames(a),
  2828. propsB = Object.getOwnPropertyNames(b);
  2829. if (propsA.length != propsB.length) {
  2830. return false;
  2831. }
  2832. for (var i = 0; i < propsA.length; i++) {
  2833. var propName = propsA[i];
  2834. //如果对应属性对应值不相等,则返回false
  2835. if (a[propName] !== b[propName]) {
  2836. return false;
  2837. }
  2838. }
  2839. return true;
  2840. }
  2841. //如果是数组类型
  2842. if (classNameA == '[object Array]') {
  2843. if (a.toString() == b.toString()) {
  2844. return true;
  2845. }
  2846. return false;
  2847. }
  2848. };exports.isEqual = isEqual;
  2849. /***/ }),
  2850. /***/ 125:
  2851. /*!**********************************************************************************************************!*\
  2852. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  2853. \**********************************************************************************************************/
  2854. /*! no static exports found */
  2855. /***/ (function(module, exports, __webpack_require__) {
  2856. "use strict";
  2857. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 126));
  2858. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 127));
  2859. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 128));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  2860. {
  2861. en: _en.default,
  2862. 'zh-Hans': _zhHans.default,
  2863. 'zh-Hant': _zhHant.default };exports.default = _default;
  2864. /***/ }),
  2865. /***/ 126:
  2866. /*!*********************************************************************************************************!*\
  2867. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  2868. \*********************************************************************************************************/
  2869. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  2870. /***/ (function(module) {
  2871. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  2872. /***/ }),
  2873. /***/ 127:
  2874. /*!**************************************************************************************************************!*\
  2875. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  2876. \**************************************************************************************************************/
  2877. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  2878. /***/ (function(module) {
  2879. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  2880. /***/ }),
  2881. /***/ 128:
  2882. /*!**************************************************************************************************************!*\
  2883. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  2884. \**************************************************************************************************************/
  2885. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  2886. /***/ (function(module) {
  2887. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  2888. /***/ }),
  2889. /***/ 136:
  2890. /*!*******************************************************************************************!*\
  2891. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  2892. \*******************************************************************************************/
  2893. /*! no static exports found */
  2894. /***/ (function(module, exports, __webpack_require__) {
  2895. "use strict";
  2896. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  2897. "id": "2852637",
  2898. "name": "uniui图标库",
  2899. "font_family": "uniicons",
  2900. "css_prefix_text": "uniui-",
  2901. "description": "",
  2902. "glyphs": [
  2903. {
  2904. "icon_id": "25027049",
  2905. "name": "yanse",
  2906. "font_class": "color",
  2907. "unicode": "e6cf",
  2908. "unicode_decimal": 59087 },
  2909. {
  2910. "icon_id": "25027048",
  2911. "name": "wallet",
  2912. "font_class": "wallet",
  2913. "unicode": "e6b1",
  2914. "unicode_decimal": 59057 },
  2915. {
  2916. "icon_id": "25015720",
  2917. "name": "settings-filled",
  2918. "font_class": "settings-filled",
  2919. "unicode": "e6ce",
  2920. "unicode_decimal": 59086 },
  2921. {
  2922. "icon_id": "25015434",
  2923. "name": "shimingrenzheng-filled",
  2924. "font_class": "auth-filled",
  2925. "unicode": "e6cc",
  2926. "unicode_decimal": 59084 },
  2927. {
  2928. "icon_id": "24934246",
  2929. "name": "shop-filled",
  2930. "font_class": "shop-filled",
  2931. "unicode": "e6cd",
  2932. "unicode_decimal": 59085 },
  2933. {
  2934. "icon_id": "24934159",
  2935. "name": "staff-filled-01",
  2936. "font_class": "staff-filled",
  2937. "unicode": "e6cb",
  2938. "unicode_decimal": 59083 },
  2939. {
  2940. "icon_id": "24932461",
  2941. "name": "VIP-filled",
  2942. "font_class": "vip-filled",
  2943. "unicode": "e6c6",
  2944. "unicode_decimal": 59078 },
  2945. {
  2946. "icon_id": "24932462",
  2947. "name": "plus_circle_fill",
  2948. "font_class": "plus-filled",
  2949. "unicode": "e6c7",
  2950. "unicode_decimal": 59079 },
  2951. {
  2952. "icon_id": "24932463",
  2953. "name": "folder_add-filled",
  2954. "font_class": "folder-add-filled",
  2955. "unicode": "e6c8",
  2956. "unicode_decimal": 59080 },
  2957. {
  2958. "icon_id": "24932464",
  2959. "name": "yanse-filled",
  2960. "font_class": "color-filled",
  2961. "unicode": "e6c9",
  2962. "unicode_decimal": 59081 },
  2963. {
  2964. "icon_id": "24932465",
  2965. "name": "tune-filled",
  2966. "font_class": "tune-filled",
  2967. "unicode": "e6ca",
  2968. "unicode_decimal": 59082 },
  2969. {
  2970. "icon_id": "24932455",
  2971. "name": "a-rilidaka-filled",
  2972. "font_class": "calendar-filled",
  2973. "unicode": "e6c0",
  2974. "unicode_decimal": 59072 },
  2975. {
  2976. "icon_id": "24932456",
  2977. "name": "notification-filled",
  2978. "font_class": "notification-filled",
  2979. "unicode": "e6c1",
  2980. "unicode_decimal": 59073 },
  2981. {
  2982. "icon_id": "24932457",
  2983. "name": "wallet-filled",
  2984. "font_class": "wallet-filled",
  2985. "unicode": "e6c2",
  2986. "unicode_decimal": 59074 },
  2987. {
  2988. "icon_id": "24932458",
  2989. "name": "paihangbang-filled",
  2990. "font_class": "medal-filled",
  2991. "unicode": "e6c3",
  2992. "unicode_decimal": 59075 },
  2993. {
  2994. "icon_id": "24932459",
  2995. "name": "gift-filled",
  2996. "font_class": "gift-filled",
  2997. "unicode": "e6c4",
  2998. "unicode_decimal": 59076 },
  2999. {
  3000. "icon_id": "24932460",
  3001. "name": "fire-filled",
  3002. "font_class": "fire-filled",
  3003. "unicode": "e6c5",
  3004. "unicode_decimal": 59077 },
  3005. {
  3006. "icon_id": "24928001",
  3007. "name": "refreshempty",
  3008. "font_class": "refreshempty",
  3009. "unicode": "e6bf",
  3010. "unicode_decimal": 59071 },
  3011. {
  3012. "icon_id": "24926853",
  3013. "name": "location-ellipse",
  3014. "font_class": "location-filled",
  3015. "unicode": "e6af",
  3016. "unicode_decimal": 59055 },
  3017. {
  3018. "icon_id": "24926735",
  3019. "name": "person-filled",
  3020. "font_class": "person-filled",
  3021. "unicode": "e69d",
  3022. "unicode_decimal": 59037 },
  3023. {
  3024. "icon_id": "24926703",
  3025. "name": "personadd-filled",
  3026. "font_class": "personadd-filled",
  3027. "unicode": "e698",
  3028. "unicode_decimal": 59032 },
  3029. {
  3030. "icon_id": "24923351",
  3031. "name": "back",
  3032. "font_class": "back",
  3033. "unicode": "e6b9",
  3034. "unicode_decimal": 59065 },
  3035. {
  3036. "icon_id": "24923352",
  3037. "name": "forward",
  3038. "font_class": "forward",
  3039. "unicode": "e6ba",
  3040. "unicode_decimal": 59066 },
  3041. {
  3042. "icon_id": "24923353",
  3043. "name": "arrowthinright",
  3044. "font_class": "arrow-right",
  3045. "unicode": "e6bb",
  3046. "unicode_decimal": 59067 },
  3047. {
  3048. "icon_id": "24923353",
  3049. "name": "arrowthinright",
  3050. "font_class": "arrowthinright",
  3051. "unicode": "e6bb",
  3052. "unicode_decimal": 59067 },
  3053. {
  3054. "icon_id": "24923354",
  3055. "name": "arrowthinleft",
  3056. "font_class": "arrow-left",
  3057. "unicode": "e6bc",
  3058. "unicode_decimal": 59068 },
  3059. {
  3060. "icon_id": "24923354",
  3061. "name": "arrowthinleft",
  3062. "font_class": "arrowthinleft",
  3063. "unicode": "e6bc",
  3064. "unicode_decimal": 59068 },
  3065. {
  3066. "icon_id": "24923355",
  3067. "name": "arrowthinup",
  3068. "font_class": "arrow-up",
  3069. "unicode": "e6bd",
  3070. "unicode_decimal": 59069 },
  3071. {
  3072. "icon_id": "24923355",
  3073. "name": "arrowthinup",
  3074. "font_class": "arrowthinup",
  3075. "unicode": "e6bd",
  3076. "unicode_decimal": 59069 },
  3077. {
  3078. "icon_id": "24923356",
  3079. "name": "arrowthindown",
  3080. "font_class": "arrow-down",
  3081. "unicode": "e6be",
  3082. "unicode_decimal": 59070 },
  3083. {
  3084. "icon_id": "24923356",
  3085. "name": "arrowthindown",
  3086. "font_class": "arrowthindown",
  3087. "unicode": "e6be",
  3088. "unicode_decimal": 59070 },
  3089. {
  3090. "icon_id": "24923349",
  3091. "name": "arrowdown",
  3092. "font_class": "bottom",
  3093. "unicode": "e6b8",
  3094. "unicode_decimal": 59064 },
  3095. {
  3096. "icon_id": "24923349",
  3097. "name": "arrowdown",
  3098. "font_class": "arrowdown",
  3099. "unicode": "e6b8",
  3100. "unicode_decimal": 59064 },
  3101. {
  3102. "icon_id": "24923346",
  3103. "name": "arrowright",
  3104. "font_class": "right",
  3105. "unicode": "e6b5",
  3106. "unicode_decimal": 59061 },
  3107. {
  3108. "icon_id": "24923346",
  3109. "name": "arrowright",
  3110. "font_class": "arrowright",
  3111. "unicode": "e6b5",
  3112. "unicode_decimal": 59061 },
  3113. {
  3114. "icon_id": "24923347",
  3115. "name": "arrowup",
  3116. "font_class": "top",
  3117. "unicode": "e6b6",
  3118. "unicode_decimal": 59062 },
  3119. {
  3120. "icon_id": "24923347",
  3121. "name": "arrowup",
  3122. "font_class": "arrowup",
  3123. "unicode": "e6b6",
  3124. "unicode_decimal": 59062 },
  3125. {
  3126. "icon_id": "24923348",
  3127. "name": "arrowleft",
  3128. "font_class": "left",
  3129. "unicode": "e6b7",
  3130. "unicode_decimal": 59063 },
  3131. {
  3132. "icon_id": "24923348",
  3133. "name": "arrowleft",
  3134. "font_class": "arrowleft",
  3135. "unicode": "e6b7",
  3136. "unicode_decimal": 59063 },
  3137. {
  3138. "icon_id": "24923334",
  3139. "name": "eye",
  3140. "font_class": "eye",
  3141. "unicode": "e651",
  3142. "unicode_decimal": 58961 },
  3143. {
  3144. "icon_id": "24923335",
  3145. "name": "eye-filled",
  3146. "font_class": "eye-filled",
  3147. "unicode": "e66a",
  3148. "unicode_decimal": 58986 },
  3149. {
  3150. "icon_id": "24923336",
  3151. "name": "eye-slash",
  3152. "font_class": "eye-slash",
  3153. "unicode": "e6b3",
  3154. "unicode_decimal": 59059 },
  3155. {
  3156. "icon_id": "24923337",
  3157. "name": "eye-slash-filled",
  3158. "font_class": "eye-slash-filled",
  3159. "unicode": "e6b4",
  3160. "unicode_decimal": 59060 },
  3161. {
  3162. "icon_id": "24923305",
  3163. "name": "info-filled",
  3164. "font_class": "info-filled",
  3165. "unicode": "e649",
  3166. "unicode_decimal": 58953 },
  3167. {
  3168. "icon_id": "24923299",
  3169. "name": "reload-01",
  3170. "font_class": "reload",
  3171. "unicode": "e6b2",
  3172. "unicode_decimal": 59058 },
  3173. {
  3174. "icon_id": "24923195",
  3175. "name": "mic_slash_fill",
  3176. "font_class": "micoff-filled",
  3177. "unicode": "e6b0",
  3178. "unicode_decimal": 59056 },
  3179. {
  3180. "icon_id": "24923165",
  3181. "name": "map-pin-ellipse",
  3182. "font_class": "map-pin-ellipse",
  3183. "unicode": "e6ac",
  3184. "unicode_decimal": 59052 },
  3185. {
  3186. "icon_id": "24923166",
  3187. "name": "map-pin",
  3188. "font_class": "map-pin",
  3189. "unicode": "e6ad",
  3190. "unicode_decimal": 59053 },
  3191. {
  3192. "icon_id": "24923167",
  3193. "name": "location",
  3194. "font_class": "location",
  3195. "unicode": "e6ae",
  3196. "unicode_decimal": 59054 },
  3197. {
  3198. "icon_id": "24923064",
  3199. "name": "starhalf",
  3200. "font_class": "starhalf",
  3201. "unicode": "e683",
  3202. "unicode_decimal": 59011 },
  3203. {
  3204. "icon_id": "24923065",
  3205. "name": "star",
  3206. "font_class": "star",
  3207. "unicode": "e688",
  3208. "unicode_decimal": 59016 },
  3209. {
  3210. "icon_id": "24923066",
  3211. "name": "star-filled",
  3212. "font_class": "star-filled",
  3213. "unicode": "e68f",
  3214. "unicode_decimal": 59023 },
  3215. {
  3216. "icon_id": "24899646",
  3217. "name": "a-rilidaka",
  3218. "font_class": "calendar",
  3219. "unicode": "e6a0",
  3220. "unicode_decimal": 59040 },
  3221. {
  3222. "icon_id": "24899647",
  3223. "name": "fire",
  3224. "font_class": "fire",
  3225. "unicode": "e6a1",
  3226. "unicode_decimal": 59041 },
  3227. {
  3228. "icon_id": "24899648",
  3229. "name": "paihangbang",
  3230. "font_class": "medal",
  3231. "unicode": "e6a2",
  3232. "unicode_decimal": 59042 },
  3233. {
  3234. "icon_id": "24899649",
  3235. "name": "font",
  3236. "font_class": "font",
  3237. "unicode": "e6a3",
  3238. "unicode_decimal": 59043 },
  3239. {
  3240. "icon_id": "24899650",
  3241. "name": "gift",
  3242. "font_class": "gift",
  3243. "unicode": "e6a4",
  3244. "unicode_decimal": 59044 },
  3245. {
  3246. "icon_id": "24899651",
  3247. "name": "link",
  3248. "font_class": "link",
  3249. "unicode": "e6a5",
  3250. "unicode_decimal": 59045 },
  3251. {
  3252. "icon_id": "24899652",
  3253. "name": "notification",
  3254. "font_class": "notification",
  3255. "unicode": "e6a6",
  3256. "unicode_decimal": 59046 },
  3257. {
  3258. "icon_id": "24899653",
  3259. "name": "staff",
  3260. "font_class": "staff",
  3261. "unicode": "e6a7",
  3262. "unicode_decimal": 59047 },
  3263. {
  3264. "icon_id": "24899654",
  3265. "name": "VIP",
  3266. "font_class": "vip",
  3267. "unicode": "e6a8",
  3268. "unicode_decimal": 59048 },
  3269. {
  3270. "icon_id": "24899655",
  3271. "name": "folder_add",
  3272. "font_class": "folder-add",
  3273. "unicode": "e6a9",
  3274. "unicode_decimal": 59049 },
  3275. {
  3276. "icon_id": "24899656",
  3277. "name": "tune",
  3278. "font_class": "tune",
  3279. "unicode": "e6aa",
  3280. "unicode_decimal": 59050 },
  3281. {
  3282. "icon_id": "24899657",
  3283. "name": "shimingrenzheng",
  3284. "font_class": "auth",
  3285. "unicode": "e6ab",
  3286. "unicode_decimal": 59051 },
  3287. {
  3288. "icon_id": "24899565",
  3289. "name": "person",
  3290. "font_class": "person",
  3291. "unicode": "e699",
  3292. "unicode_decimal": 59033 },
  3293. {
  3294. "icon_id": "24899566",
  3295. "name": "email-filled",
  3296. "font_class": "email-filled",
  3297. "unicode": "e69a",
  3298. "unicode_decimal": 59034 },
  3299. {
  3300. "icon_id": "24899567",
  3301. "name": "phone-filled",
  3302. "font_class": "phone-filled",
  3303. "unicode": "e69b",
  3304. "unicode_decimal": 59035 },
  3305. {
  3306. "icon_id": "24899568",
  3307. "name": "phone",
  3308. "font_class": "phone",
  3309. "unicode": "e69c",
  3310. "unicode_decimal": 59036 },
  3311. {
  3312. "icon_id": "24899570",
  3313. "name": "email",
  3314. "font_class": "email",
  3315. "unicode": "e69e",
  3316. "unicode_decimal": 59038 },
  3317. {
  3318. "icon_id": "24899571",
  3319. "name": "personadd",
  3320. "font_class": "personadd",
  3321. "unicode": "e69f",
  3322. "unicode_decimal": 59039 },
  3323. {
  3324. "icon_id": "24899558",
  3325. "name": "chatboxes-filled",
  3326. "font_class": "chatboxes-filled",
  3327. "unicode": "e692",
  3328. "unicode_decimal": 59026 },
  3329. {
  3330. "icon_id": "24899559",
  3331. "name": "contact",
  3332. "font_class": "contact",
  3333. "unicode": "e693",
  3334. "unicode_decimal": 59027 },
  3335. {
  3336. "icon_id": "24899560",
  3337. "name": "chatbubble-filled",
  3338. "font_class": "chatbubble-filled",
  3339. "unicode": "e694",
  3340. "unicode_decimal": 59028 },
  3341. {
  3342. "icon_id": "24899561",
  3343. "name": "contact-filled",
  3344. "font_class": "contact-filled",
  3345. "unicode": "e695",
  3346. "unicode_decimal": 59029 },
  3347. {
  3348. "icon_id": "24899562",
  3349. "name": "chatboxes",
  3350. "font_class": "chatboxes",
  3351. "unicode": "e696",
  3352. "unicode_decimal": 59030 },
  3353. {
  3354. "icon_id": "24899563",
  3355. "name": "chatbubble",
  3356. "font_class": "chatbubble",
  3357. "unicode": "e697",
  3358. "unicode_decimal": 59031 },
  3359. {
  3360. "icon_id": "24881290",
  3361. "name": "upload-filled",
  3362. "font_class": "upload-filled",
  3363. "unicode": "e68e",
  3364. "unicode_decimal": 59022 },
  3365. {
  3366. "icon_id": "24881292",
  3367. "name": "upload",
  3368. "font_class": "upload",
  3369. "unicode": "e690",
  3370. "unicode_decimal": 59024 },
  3371. {
  3372. "icon_id": "24881293",
  3373. "name": "weixin",
  3374. "font_class": "weixin",
  3375. "unicode": "e691",
  3376. "unicode_decimal": 59025 },
  3377. {
  3378. "icon_id": "24881274",
  3379. "name": "compose",
  3380. "font_class": "compose",
  3381. "unicode": "e67f",
  3382. "unicode_decimal": 59007 },
  3383. {
  3384. "icon_id": "24881275",
  3385. "name": "qq",
  3386. "font_class": "qq",
  3387. "unicode": "e680",
  3388. "unicode_decimal": 59008 },
  3389. {
  3390. "icon_id": "24881276",
  3391. "name": "download-filled",
  3392. "font_class": "download-filled",
  3393. "unicode": "e681",
  3394. "unicode_decimal": 59009 },
  3395. {
  3396. "icon_id": "24881277",
  3397. "name": "pengyouquan",
  3398. "font_class": "pyq",
  3399. "unicode": "e682",
  3400. "unicode_decimal": 59010 },
  3401. {
  3402. "icon_id": "24881279",
  3403. "name": "sound",
  3404. "font_class": "sound",
  3405. "unicode": "e684",
  3406. "unicode_decimal": 59012 },
  3407. {
  3408. "icon_id": "24881280",
  3409. "name": "trash-filled",
  3410. "font_class": "trash-filled",
  3411. "unicode": "e685",
  3412. "unicode_decimal": 59013 },
  3413. {
  3414. "icon_id": "24881281",
  3415. "name": "sound-filled",
  3416. "font_class": "sound-filled",
  3417. "unicode": "e686",
  3418. "unicode_decimal": 59014 },
  3419. {
  3420. "icon_id": "24881282",
  3421. "name": "trash",
  3422. "font_class": "trash",
  3423. "unicode": "e687",
  3424. "unicode_decimal": 59015 },
  3425. {
  3426. "icon_id": "24881284",
  3427. "name": "videocam-filled",
  3428. "font_class": "videocam-filled",
  3429. "unicode": "e689",
  3430. "unicode_decimal": 59017 },
  3431. {
  3432. "icon_id": "24881285",
  3433. "name": "spinner-cycle",
  3434. "font_class": "spinner-cycle",
  3435. "unicode": "e68a",
  3436. "unicode_decimal": 59018 },
  3437. {
  3438. "icon_id": "24881286",
  3439. "name": "weibo",
  3440. "font_class": "weibo",
  3441. "unicode": "e68b",
  3442. "unicode_decimal": 59019 },
  3443. {
  3444. "icon_id": "24881288",
  3445. "name": "videocam",
  3446. "font_class": "videocam",
  3447. "unicode": "e68c",
  3448. "unicode_decimal": 59020 },
  3449. {
  3450. "icon_id": "24881289",
  3451. "name": "download",
  3452. "font_class": "download",
  3453. "unicode": "e68d",
  3454. "unicode_decimal": 59021 },
  3455. {
  3456. "icon_id": "24879601",
  3457. "name": "help",
  3458. "font_class": "help",
  3459. "unicode": "e679",
  3460. "unicode_decimal": 59001 },
  3461. {
  3462. "icon_id": "24879602",
  3463. "name": "navigate-filled",
  3464. "font_class": "navigate-filled",
  3465. "unicode": "e67a",
  3466. "unicode_decimal": 59002 },
  3467. {
  3468. "icon_id": "24879603",
  3469. "name": "plusempty",
  3470. "font_class": "plusempty",
  3471. "unicode": "e67b",
  3472. "unicode_decimal": 59003 },
  3473. {
  3474. "icon_id": "24879604",
  3475. "name": "smallcircle",
  3476. "font_class": "smallcircle",
  3477. "unicode": "e67c",
  3478. "unicode_decimal": 59004 },
  3479. {
  3480. "icon_id": "24879605",
  3481. "name": "minus-filled",
  3482. "font_class": "minus-filled",
  3483. "unicode": "e67d",
  3484. "unicode_decimal": 59005 },
  3485. {
  3486. "icon_id": "24879606",
  3487. "name": "micoff",
  3488. "font_class": "micoff",
  3489. "unicode": "e67e",
  3490. "unicode_decimal": 59006 },
  3491. {
  3492. "icon_id": "24879588",
  3493. "name": "closeempty",
  3494. "font_class": "closeempty",
  3495. "unicode": "e66c",
  3496. "unicode_decimal": 58988 },
  3497. {
  3498. "icon_id": "24879589",
  3499. "name": "clear",
  3500. "font_class": "clear",
  3501. "unicode": "e66d",
  3502. "unicode_decimal": 58989 },
  3503. {
  3504. "icon_id": "24879590",
  3505. "name": "navigate",
  3506. "font_class": "navigate",
  3507. "unicode": "e66e",
  3508. "unicode_decimal": 58990 },
  3509. {
  3510. "icon_id": "24879591",
  3511. "name": "minus",
  3512. "font_class": "minus",
  3513. "unicode": "e66f",
  3514. "unicode_decimal": 58991 },
  3515. {
  3516. "icon_id": "24879592",
  3517. "name": "image",
  3518. "font_class": "image",
  3519. "unicode": "e670",
  3520. "unicode_decimal": 58992 },
  3521. {
  3522. "icon_id": "24879593",
  3523. "name": "mic",
  3524. "font_class": "mic",
  3525. "unicode": "e671",
  3526. "unicode_decimal": 58993 },
  3527. {
  3528. "icon_id": "24879594",
  3529. "name": "paperplane",
  3530. "font_class": "paperplane",
  3531. "unicode": "e672",
  3532. "unicode_decimal": 58994 },
  3533. {
  3534. "icon_id": "24879595",
  3535. "name": "close",
  3536. "font_class": "close",
  3537. "unicode": "e673",
  3538. "unicode_decimal": 58995 },
  3539. {
  3540. "icon_id": "24879596",
  3541. "name": "help-filled",
  3542. "font_class": "help-filled",
  3543. "unicode": "e674",
  3544. "unicode_decimal": 58996 },
  3545. {
  3546. "icon_id": "24879597",
  3547. "name": "plus-filled",
  3548. "font_class": "paperplane-filled",
  3549. "unicode": "e675",
  3550. "unicode_decimal": 58997 },
  3551. {
  3552. "icon_id": "24879598",
  3553. "name": "plus",
  3554. "font_class": "plus",
  3555. "unicode": "e676",
  3556. "unicode_decimal": 58998 },
  3557. {
  3558. "icon_id": "24879599",
  3559. "name": "mic-filled",
  3560. "font_class": "mic-filled",
  3561. "unicode": "e677",
  3562. "unicode_decimal": 58999 },
  3563. {
  3564. "icon_id": "24879600",
  3565. "name": "image-filled",
  3566. "font_class": "image-filled",
  3567. "unicode": "e678",
  3568. "unicode_decimal": 59000 },
  3569. {
  3570. "icon_id": "24855900",
  3571. "name": "locked-filled",
  3572. "font_class": "locked-filled",
  3573. "unicode": "e668",
  3574. "unicode_decimal": 58984 },
  3575. {
  3576. "icon_id": "24855901",
  3577. "name": "info",
  3578. "font_class": "info",
  3579. "unicode": "e669",
  3580. "unicode_decimal": 58985 },
  3581. {
  3582. "icon_id": "24855903",
  3583. "name": "locked",
  3584. "font_class": "locked",
  3585. "unicode": "e66b",
  3586. "unicode_decimal": 58987 },
  3587. {
  3588. "icon_id": "24855884",
  3589. "name": "camera-filled",
  3590. "font_class": "camera-filled",
  3591. "unicode": "e658",
  3592. "unicode_decimal": 58968 },
  3593. {
  3594. "icon_id": "24855885",
  3595. "name": "chat-filled",
  3596. "font_class": "chat-filled",
  3597. "unicode": "e659",
  3598. "unicode_decimal": 58969 },
  3599. {
  3600. "icon_id": "24855886",
  3601. "name": "camera",
  3602. "font_class": "camera",
  3603. "unicode": "e65a",
  3604. "unicode_decimal": 58970 },
  3605. {
  3606. "icon_id": "24855887",
  3607. "name": "circle",
  3608. "font_class": "circle",
  3609. "unicode": "e65b",
  3610. "unicode_decimal": 58971 },
  3611. {
  3612. "icon_id": "24855888",
  3613. "name": "checkmarkempty",
  3614. "font_class": "checkmarkempty",
  3615. "unicode": "e65c",
  3616. "unicode_decimal": 58972 },
  3617. {
  3618. "icon_id": "24855889",
  3619. "name": "chat",
  3620. "font_class": "chat",
  3621. "unicode": "e65d",
  3622. "unicode_decimal": 58973 },
  3623. {
  3624. "icon_id": "24855890",
  3625. "name": "circle-filled",
  3626. "font_class": "circle-filled",
  3627. "unicode": "e65e",
  3628. "unicode_decimal": 58974 },
  3629. {
  3630. "icon_id": "24855891",
  3631. "name": "flag",
  3632. "font_class": "flag",
  3633. "unicode": "e65f",
  3634. "unicode_decimal": 58975 },
  3635. {
  3636. "icon_id": "24855892",
  3637. "name": "flag-filled",
  3638. "font_class": "flag-filled",
  3639. "unicode": "e660",
  3640. "unicode_decimal": 58976 },
  3641. {
  3642. "icon_id": "24855893",
  3643. "name": "gear-filled",
  3644. "font_class": "gear-filled",
  3645. "unicode": "e661",
  3646. "unicode_decimal": 58977 },
  3647. {
  3648. "icon_id": "24855894",
  3649. "name": "home",
  3650. "font_class": "home",
  3651. "unicode": "e662",
  3652. "unicode_decimal": 58978 },
  3653. {
  3654. "icon_id": "24855895",
  3655. "name": "home-filled",
  3656. "font_class": "home-filled",
  3657. "unicode": "e663",
  3658. "unicode_decimal": 58979 },
  3659. {
  3660. "icon_id": "24855896",
  3661. "name": "gear",
  3662. "font_class": "gear",
  3663. "unicode": "e664",
  3664. "unicode_decimal": 58980 },
  3665. {
  3666. "icon_id": "24855897",
  3667. "name": "smallcircle-filled",
  3668. "font_class": "smallcircle-filled",
  3669. "unicode": "e665",
  3670. "unicode_decimal": 58981 },
  3671. {
  3672. "icon_id": "24855898",
  3673. "name": "map-filled",
  3674. "font_class": "map-filled",
  3675. "unicode": "e666",
  3676. "unicode_decimal": 58982 },
  3677. {
  3678. "icon_id": "24855899",
  3679. "name": "map",
  3680. "font_class": "map",
  3681. "unicode": "e667",
  3682. "unicode_decimal": 58983 },
  3683. {
  3684. "icon_id": "24855825",
  3685. "name": "refresh-filled",
  3686. "font_class": "refresh-filled",
  3687. "unicode": "e656",
  3688. "unicode_decimal": 58966 },
  3689. {
  3690. "icon_id": "24855826",
  3691. "name": "refresh",
  3692. "font_class": "refresh",
  3693. "unicode": "e657",
  3694. "unicode_decimal": 58967 },
  3695. {
  3696. "icon_id": "24855808",
  3697. "name": "cloud-upload",
  3698. "font_class": "cloud-upload",
  3699. "unicode": "e645",
  3700. "unicode_decimal": 58949 },
  3701. {
  3702. "icon_id": "24855809",
  3703. "name": "cloud-download-filled",
  3704. "font_class": "cloud-download-filled",
  3705. "unicode": "e646",
  3706. "unicode_decimal": 58950 },
  3707. {
  3708. "icon_id": "24855810",
  3709. "name": "cloud-download",
  3710. "font_class": "cloud-download",
  3711. "unicode": "e647",
  3712. "unicode_decimal": 58951 },
  3713. {
  3714. "icon_id": "24855811",
  3715. "name": "cloud-upload-filled",
  3716. "font_class": "cloud-upload-filled",
  3717. "unicode": "e648",
  3718. "unicode_decimal": 58952 },
  3719. {
  3720. "icon_id": "24855813",
  3721. "name": "redo",
  3722. "font_class": "redo",
  3723. "unicode": "e64a",
  3724. "unicode_decimal": 58954 },
  3725. {
  3726. "icon_id": "24855814",
  3727. "name": "images-filled",
  3728. "font_class": "images-filled",
  3729. "unicode": "e64b",
  3730. "unicode_decimal": 58955 },
  3731. {
  3732. "icon_id": "24855815",
  3733. "name": "undo-filled",
  3734. "font_class": "undo-filled",
  3735. "unicode": "e64c",
  3736. "unicode_decimal": 58956 },
  3737. {
  3738. "icon_id": "24855816",
  3739. "name": "more",
  3740. "font_class": "more",
  3741. "unicode": "e64d",
  3742. "unicode_decimal": 58957 },
  3743. {
  3744. "icon_id": "24855817",
  3745. "name": "more-filled",
  3746. "font_class": "more-filled",
  3747. "unicode": "e64e",
  3748. "unicode_decimal": 58958 },
  3749. {
  3750. "icon_id": "24855818",
  3751. "name": "undo",
  3752. "font_class": "undo",
  3753. "unicode": "e64f",
  3754. "unicode_decimal": 58959 },
  3755. {
  3756. "icon_id": "24855819",
  3757. "name": "images",
  3758. "font_class": "images",
  3759. "unicode": "e650",
  3760. "unicode_decimal": 58960 },
  3761. {
  3762. "icon_id": "24855821",
  3763. "name": "paperclip",
  3764. "font_class": "paperclip",
  3765. "unicode": "e652",
  3766. "unicode_decimal": 58962 },
  3767. {
  3768. "icon_id": "24855822",
  3769. "name": "settings",
  3770. "font_class": "settings",
  3771. "unicode": "e653",
  3772. "unicode_decimal": 58963 },
  3773. {
  3774. "icon_id": "24855823",
  3775. "name": "search",
  3776. "font_class": "search",
  3777. "unicode": "e654",
  3778. "unicode_decimal": 58964 },
  3779. {
  3780. "icon_id": "24855824",
  3781. "name": "redo-filled",
  3782. "font_class": "redo-filled",
  3783. "unicode": "e655",
  3784. "unicode_decimal": 58965 },
  3785. {
  3786. "icon_id": "24841702",
  3787. "name": "list",
  3788. "font_class": "list",
  3789. "unicode": "e644",
  3790. "unicode_decimal": 58948 },
  3791. {
  3792. "icon_id": "24841489",
  3793. "name": "mail-open-filled",
  3794. "font_class": "mail-open-filled",
  3795. "unicode": "e63a",
  3796. "unicode_decimal": 58938 },
  3797. {
  3798. "icon_id": "24841491",
  3799. "name": "hand-thumbsdown-filled",
  3800. "font_class": "hand-down-filled",
  3801. "unicode": "e63c",
  3802. "unicode_decimal": 58940 },
  3803. {
  3804. "icon_id": "24841492",
  3805. "name": "hand-thumbsdown",
  3806. "font_class": "hand-down",
  3807. "unicode": "e63d",
  3808. "unicode_decimal": 58941 },
  3809. {
  3810. "icon_id": "24841493",
  3811. "name": "hand-thumbsup-filled",
  3812. "font_class": "hand-up-filled",
  3813. "unicode": "e63e",
  3814. "unicode_decimal": 58942 },
  3815. {
  3816. "icon_id": "24841494",
  3817. "name": "hand-thumbsup",
  3818. "font_class": "hand-up",
  3819. "unicode": "e63f",
  3820. "unicode_decimal": 58943 },
  3821. {
  3822. "icon_id": "24841496",
  3823. "name": "heart-filled",
  3824. "font_class": "heart-filled",
  3825. "unicode": "e641",
  3826. "unicode_decimal": 58945 },
  3827. {
  3828. "icon_id": "24841498",
  3829. "name": "mail-open",
  3830. "font_class": "mail-open",
  3831. "unicode": "e643",
  3832. "unicode_decimal": 58947 },
  3833. {
  3834. "icon_id": "24841488",
  3835. "name": "heart",
  3836. "font_class": "heart",
  3837. "unicode": "e639",
  3838. "unicode_decimal": 58937 },
  3839. {
  3840. "icon_id": "24839963",
  3841. "name": "loop",
  3842. "font_class": "loop",
  3843. "unicode": "e633",
  3844. "unicode_decimal": 58931 },
  3845. {
  3846. "icon_id": "24839866",
  3847. "name": "pulldown",
  3848. "font_class": "pulldown",
  3849. "unicode": "e632",
  3850. "unicode_decimal": 58930 },
  3851. {
  3852. "icon_id": "24813798",
  3853. "name": "scan",
  3854. "font_class": "scan",
  3855. "unicode": "e62a",
  3856. "unicode_decimal": 58922 },
  3857. {
  3858. "icon_id": "24813786",
  3859. "name": "bars",
  3860. "font_class": "bars",
  3861. "unicode": "e627",
  3862. "unicode_decimal": 58919 },
  3863. {
  3864. "icon_id": "24813788",
  3865. "name": "cart-filled",
  3866. "font_class": "cart-filled",
  3867. "unicode": "e629",
  3868. "unicode_decimal": 58921 },
  3869. {
  3870. "icon_id": "24813790",
  3871. "name": "checkbox",
  3872. "font_class": "checkbox",
  3873. "unicode": "e62b",
  3874. "unicode_decimal": 58923 },
  3875. {
  3876. "icon_id": "24813791",
  3877. "name": "checkbox-filled",
  3878. "font_class": "checkbox-filled",
  3879. "unicode": "e62c",
  3880. "unicode_decimal": 58924 },
  3881. {
  3882. "icon_id": "24813794",
  3883. "name": "shop",
  3884. "font_class": "shop",
  3885. "unicode": "e62f",
  3886. "unicode_decimal": 58927 },
  3887. {
  3888. "icon_id": "24813795",
  3889. "name": "headphones",
  3890. "font_class": "headphones",
  3891. "unicode": "e630",
  3892. "unicode_decimal": 58928 },
  3893. {
  3894. "icon_id": "24813796",
  3895. "name": "cart",
  3896. "font_class": "cart",
  3897. "unicode": "e631",
  3898. "unicode_decimal": 58929 }] };exports.default = _default;
  3899. /***/ }),
  3900. /***/ 2:
  3901. /*!***********************************!*\
  3902. !*** (webpack)/buildin/global.js ***!
  3903. \***********************************/
  3904. /*! no static exports found */
  3905. /***/ (function(module, exports) {
  3906. var g;
  3907. // This works in non-strict mode
  3908. g = (function() {
  3909. return this;
  3910. })();
  3911. try {
  3912. // This works if eval is allowed (see CSP)
  3913. g = g || new Function("return this")();
  3914. } catch (e) {
  3915. // This works if the window reference is available
  3916. if (typeof window === "object") g = window;
  3917. }
  3918. // g can still be undefined, but nothing to do about it...
  3919. // We return undefined, instead of nothing here, so it's
  3920. // easier to handle this case. if(!global) { ...}
  3921. module.exports = g;
  3922. /***/ }),
  3923. /***/ 24:
  3924. /*!************************************************************!*\
  3925. !*** X:/sampling最新/sampling/sampling/static/icon/piao.png ***!
  3926. \************************************************************/
  3927. /*! no static exports found */
  3928. /***/ (function(module, exports) {
  3929. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFc9JREFUeF7tnXuwHHWVx7+n594kQGEyfSORAOFxpye8RAi4qOgSH1uyBUQLLF7WrrA8kum5gGgW1yoRWdhawQhLkplJAAUtX4uP5bkFuFW6EN4oT4E7PUlQkssjd3oSoRSSO322OgmYjblJ/3796+m5PWf+Pud7fudz5js9/SbIRwgIgXEJkLARAkJgfAJiEPl2CIGdEBCDyNdDCIhB5DsgBPQIyBZEj5tk9QgBMUiPDFra1CMgBtHjJlk9QkAM0iODljb1CIhB9LhJVo8QEIP0yKClTT0CYhA9bpLVIwTEID0yaGlTj4AYRI+bZPUIATFIjwxa2tQjIAbR4yZZPUJADNIjg5Y29QiIQfS4S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aJtzONLZI9dZZXR4dM8i2C5y2xJtrWcFcJut42vKCTDMfolcQ4A7m9h3dsNXYUVN7Lh+e3j9m/QMT5hnt3QzBblS5F4R70cYj/pDaAxdMNJOKQbZf+OYL1HIoUsCzQUGRQcWozREQ7ng/zxY8kHV/a/7ghqi5accN1Ib/JuC+OeDg/SAcmvZ60q5P4DrYqrNFw7k26qoXriax/q4wSBKNiaYQMEFADGKComhkloAYJLOjlcZMEBCDmKAoGpklIAbJ7GilMRMExCAmKIpGZgmIQTI7WmnMBAExiAmKopFZAmKQzI5WGjNBQAxigqJoZJaAGCSzo5XGTBAQg5igKBqZJSAGyexopTETBMQgJiiKRmYJiEEyO1ppzAQBMYgJiqKRWQJikMyOVhozQUAMYoKiaGSWgBgks6OVxkwQEIOYoCgamSUgBsnsaKUxEwTEICYoikZmCYhBMjtaacwEATGICYqikVkCYpDMjlYaM0FADGKComhkloAYJLOjlcZMEBCDmKAoGpklIAbJ7GilMRMExCAmKIpGZgmIQTI7WmnMBAExiAmKopFZAmKQzI5WGjNBQAxigqJoZJbA/wHGzwZfPUBx5QAAAABJRU5ErkJggg=="
  3930. /***/ }),
  3931. /***/ 25:
  3932. /*!***************************************************************!*\
  3933. !*** X:/sampling最新/sampling/sampling/static/icon/caiyang.png ***!
  3934. \***************************************************************/
  3935. /*! no static exports found */
  3936. /***/ (function(module, exports) {
  3937. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfXm4HFWZ/vtV35uEJSRdfcM24ADp6iQYAsgaFgdGkGVQBBGIjKiAJF19A8IIMY6yOMMg4LCEdHXCIqiDG4MoAiIoI+AMi7KFLberL8uAYSC3q28IS5J7u77fU50LP5YkXefU0qdy6zzP/et+63vq7VrOOd9HSEeKQIrAehGgFJsUgRSB9SOQEiS9OlIENoBASpD08kgRSAmSXgMpAnIIpHcQOdxSrVGCQEqQUTLRaZpyCKQEkcMt1RolC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raFWacy063qpYD2BYDfPSb8BoPuZXYvHCwVvLq+voZvgnjWcotf2IeHh68AYQ8ASp4u85V1KuQDAXoRcG8O0gDTh5PIRbyiIxphywEz/6iMMyGCvOfg/KfH9GyzyYzhITd9L5FBXXEdTaP+IK2TFU9PKDw5ggi5SIVTBJKLQEqQ5M5dGnkMCKQEiQHk1EVyEUgJkty5SyOPAYGUIDGAnLpILgIpQZI7d2nkMSCQEiQGkFMXyUUgJUhy5y6NPAYEUoLEAHLqIrkIpARJ7tylkceAQEqQGEBOXSQXgZQgyZ27NPIYEEgJEgPIqYvkIpASJLlzl0YeAwIpQWIAOXWRXARSgiR37tLIY0AgJUgMIKcukotASpDkzl0aeQwIpASJAeTURXIRSAmS3LlLI48BgZQgMYCcukguAilBkjt3aeQxIJASJAaQUxfJRSAlSHLnLo08BgRSgsQAcuoiuQikBEnu3KWRx4DA/wP8uPBuCqOC2AAAAABJRU5ErkJggg=="
  3938. /***/ }),
  3939. /***/ 26:
  3940. /*!**************************************************************!*\
  3941. !*** X:/sampling最新/sampling/sampling/static/icon/dengji.png ***!
  3942. \**************************************************************/
  3943. /*! no static exports found */
  3944. /***/ (function(module, exports) {
  3945. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGnZJREFUeF7tnXmUHFW9x7+/6skCJCZdnUDEBAjT1QMhRAU8iOJ5oHhURHGbURFQnsBkqkM0IIiAQlQeogiapGsSUFFk8aEggoAi60PZJJElLOnqsCQYSWa6erIQskzX752aJBBCJlP3VlV3Vfetc/LX/NbvrU+qquvWvQR1KAWUAoMqQEobpYBSYHAFFCDq7FAK7EIBBYg6PZQCChB1DigF5BRQVxA53ZRXkyigAGmSgVZtyimgAJHTTXk1iQIKkCYZaNWmnAIKEDndlFeTKKAAaZKBVm3KKaAAkdNNeTWJAgqQJhlo1aacAgoQOd2UV5MooABpkoFWbcopoACR0015NYkCNQdkzNznJxNS+zaJvjVtk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1GESB/weSjXN9D/diQAAAAABJRU5ErkJggg=="
  3946. /***/ }),
  3947. /***/ 27:
  3948. /*!**************************************************************!*\
  3949. !*** X:/sampling最新/sampling/sampling/static/icon/chaxun.png ***!
  3950. \**************************************************************/
  3951. /*! no static exports found */
  3952. /***/ (function(module, exports) {
  3953. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGYlJREFUeF7tXXuYHFWV/53qmaAxgenqCYEogTBdMyRBUIyLAotENqCCvFwRVFBXZejqJIiAq6ILWVdYQZeQpGsyUUQQBIQPiMIirEvYj3VFSRSQR2aqk2DESB5dPQEiJJmus1+FBEMyj763bnVXdd/+vvlrzu88fuf+urpe5xL0RzOgGRiWAdLcaAY0A8MzoAWiV4dmYAQGtED08tAMaIHoNaAZkGNAH0HkeNOoJmFAC6RJGq3LlGNAC0SON41qEga0QJqk0bpMOQa0QOR406gmYUALpEkarcuUY0ALRI43jWoSBrRAmqTRukw5BrRA5HjTqCZhQAukSRqty5RjQAtEjjeNahIGEi8Qs1A8yPe5o0n6JV0mE17a3Jr9A7ppu7STJgQmUiBthf53pYjmMTADwKQm7JtUyQxsJWAFg24q29klUk6aDJQ4gZiO+yUA1zVZn5SXy8CKsm0FXzD6MwIDiRJIu1N8jw9erjuqjIEHPNv6iDJvDegoMQKZ1Ltu7GuVLQ8DOLoB+1C3khjUrX9uDU9/YgSS6XHPY8bNdVtJDRuYn/LsziMbtryQhSVGIKZTvAbgy0LWq+FDMNC65a/j1l925BZNzt4MJEcghf77QaR/L0ewiomNvyvlOx6PwHXiXSZGIGnHXUbACYlnPIYF+BXMHJhjPRLD1OqekhZI3VtQ/wS0QBrgJF0fQaITkhaIFkh0q6sBPGuBaIE0wDKOrgQtEC2Q6FZXA3jWAmlmgbA/rwHWcFUlMBkfkLnSpwVSQ4G09z5/YMUf/AD5lcOIjKN8YHxV3a3CSKb5nm0l5kpdFRSMaCJ7IYMBdZd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PuJZ+/oU/Iw7IdHq9WIDvzCX5vE42ZBr8ynZjfFj7N2nsgMrYx00Zi3sA+lo32IKBohqbTfw0RncWMjt2wO4a3ebYVYgNP0Uy0/UgMRCIQTXn1DOx6tAODLU/UakZu9dlpSy0QvQY0AyMwoAWil4dmQAtErwHNgBwD+ggix5tGNQkDWiBN0mhdphwDWiByvGlUkzCgBdIkjdZlyjGgBSLHm0Y1CQNaIE3SaF2mHANaIHK8aVSTMKAF0iSN1mXKMaAFIsebRjUJA1ogTdJoXaYcA1ogcrxpVJMwoAXSJI3WZcoxoAUix5tGNQkD/w++QdZuhiDEpQAAAABJRU5ErkJggg=="
  3954. /***/ }),
  3955. /***/ 3:
  3956. /*!*************************************************************!*\
  3957. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3958. \*************************************************************/
  3959. /*! no static exports found */
  3960. /***/ (function(module, exports, __webpack_require__) {
  3961. "use strict";
  3962. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  3963. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  3964. var defaultDelimiters = ['{', '}'];var
  3965. BaseFormatter = /*#__PURE__*/function () {
  3966. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  3967. this._caches = Object.create(null);
  3968. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  3969. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3970. if (!values) {
  3971. return [message];
  3972. }
  3973. var tokens = this._caches[message];
  3974. if (!tokens) {
  3975. tokens = parse(message, delimiters);
  3976. this._caches[message] = tokens;
  3977. }
  3978. return compile(tokens, values);
  3979. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  3980. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3981. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3982. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  3983. var tokens = [];
  3984. var position = 0;
  3985. var text = '';
  3986. while (position < format.length) {
  3987. var char = format[position++];
  3988. if (char === startDelimiter) {
  3989. if (text) {
  3990. tokens.push({ type: 'text', value: text });
  3991. }
  3992. text = '';
  3993. var sub = '';
  3994. char = format[position++];
  3995. while (char !== undefined && char !== endDelimiter) {
  3996. sub += char;
  3997. char = format[position++];
  3998. }
  3999. var isClosed = char === endDelimiter;
  4000. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  4001. 'list' :
  4002. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  4003. 'named' :
  4004. 'unknown';
  4005. tokens.push({ value: sub, type: type });
  4006. }
  4007. // else if (char === '%') {
  4008. // // when found rails i18n syntax, skip text capture
  4009. // if (format[position] !== '{') {
  4010. // text += char
  4011. // }
  4012. // }
  4013. else {
  4014. text += char;
  4015. }
  4016. }
  4017. text && tokens.push({ type: 'text', value: text });
  4018. return tokens;
  4019. }
  4020. function compile(tokens, values) {
  4021. var compiled = [];
  4022. var index = 0;
  4023. var mode = isArray(values) ?
  4024. 'list' :
  4025. isObject(values) ?
  4026. 'named' :
  4027. 'unknown';
  4028. if (mode === 'unknown') {
  4029. return compiled;
  4030. }
  4031. while (index < tokens.length) {
  4032. var token = tokens[index];
  4033. switch (token.type) {
  4034. case 'text':
  4035. compiled.push(token.value);
  4036. break;
  4037. case 'list':
  4038. compiled.push(values[parseInt(token.value, 10)]);
  4039. break;
  4040. case 'named':
  4041. if (mode === 'named') {
  4042. compiled.push(values[token.value]);
  4043. } else
  4044. {
  4045. if (true) {
  4046. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  4047. }
  4048. }
  4049. break;
  4050. case 'unknown':
  4051. if (true) {
  4052. console.warn("Detect 'unknown' type of token!");
  4053. }
  4054. break;}
  4055. index++;
  4056. }
  4057. return compiled;
  4058. }
  4059. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  4060. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  4061. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  4062. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  4063. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  4064. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4065. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  4066. var defaultFormatter = new BaseFormatter();
  4067. function include(str, parts) {
  4068. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  4069. }
  4070. function startsWith(str, parts) {
  4071. return parts.find(function (part) {return str.indexOf(part) === 0;});
  4072. }
  4073. function normalizeLocale(locale, messages) {
  4074. if (!locale) {
  4075. return;
  4076. }
  4077. locale = locale.trim().replace(/_/g, '-');
  4078. if (messages && messages[locale]) {
  4079. return locale;
  4080. }
  4081. locale = locale.toLowerCase();
  4082. if (locale.indexOf('zh') === 0) {
  4083. if (locale.indexOf('-hans') > -1) {
  4084. return LOCALE_ZH_HANS;
  4085. }
  4086. if (locale.indexOf('-hant') > -1) {
  4087. return LOCALE_ZH_HANT;
  4088. }
  4089. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  4090. return LOCALE_ZH_HANT;
  4091. }
  4092. return LOCALE_ZH_HANS;
  4093. }
  4094. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  4095. if (lang) {
  4096. return lang;
  4097. }
  4098. }var
  4099. I18n = /*#__PURE__*/function () {
  4100. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  4101. this.locale = LOCALE_EN;
  4102. this.fallbackLocale = LOCALE_EN;
  4103. this.message = {};
  4104. this.messages = {};
  4105. this.watchers = [];
  4106. if (fallbackLocale) {
  4107. this.fallbackLocale = fallbackLocale;
  4108. }
  4109. this.formater = formater || defaultFormatter;
  4110. this.messages = messages || {};
  4111. this.setLocale(locale || LOCALE_EN);
  4112. if (watcher) {
  4113. this.watchLocale(watcher);
  4114. }
  4115. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  4116. locale) {var _this = this;
  4117. var oldLocale = this.locale;
  4118. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  4119. if (!this.messages[this.locale]) {
  4120. // 可能初始化时不存在
  4121. this.messages[this.locale] = {};
  4122. }
  4123. this.message = this.messages[this.locale];
  4124. // 仅发生变化时,通知
  4125. if (oldLocale !== this.locale) {
  4126. this.watchers.forEach(function (watcher) {
  4127. watcher(_this.locale, oldLocale);
  4128. });
  4129. }
  4130. } }, { key: "getLocale", value: function getLocale()
  4131. {
  4132. return this.locale;
  4133. } }, { key: "watchLocale", value: function watchLocale(
  4134. fn) {var _this2 = this;
  4135. var index = this.watchers.push(fn) - 1;
  4136. return function () {
  4137. _this2.watchers.splice(index, 1);
  4138. };
  4139. } }, { key: "add", value: function add(
  4140. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4141. var curMessages = this.messages[locale];
  4142. if (curMessages) {
  4143. if (override) {
  4144. Object.assign(curMessages, message);
  4145. } else
  4146. {
  4147. Object.keys(message).forEach(function (key) {
  4148. if (!hasOwn(curMessages, key)) {
  4149. curMessages[key] = message[key];
  4150. }
  4151. });
  4152. }
  4153. } else
  4154. {
  4155. this.messages[locale] = message;
  4156. }
  4157. } }, { key: "f", value: function f(
  4158. message, values, delimiters) {
  4159. return this.formater.interpolate(message, values, delimiters).join('');
  4160. } }, { key: "t", value: function t(
  4161. key, locale, values) {
  4162. var message = this.message;
  4163. if (typeof locale === 'string') {
  4164. locale = normalizeLocale(locale, this.messages);
  4165. locale && (message = this.messages[locale]);
  4166. } else
  4167. {
  4168. values = locale;
  4169. }
  4170. if (!hasOwn(message, key)) {
  4171. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  4172. return key;
  4173. }
  4174. return this.formater.interpolate(message[key], values).join('');
  4175. } }]);return I18n;}();exports.I18n = I18n;
  4176. function watchAppLocale(appVm, i18n) {
  4177. // 需要保证 watch 的触发在组件渲染之前
  4178. if (appVm.$watchLocale) {
  4179. // vue2
  4180. appVm.$watchLocale(function (newLocale) {
  4181. i18n.setLocale(newLocale);
  4182. });
  4183. } else
  4184. {
  4185. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  4186. i18n.setLocale(newLocale);
  4187. });
  4188. }
  4189. }
  4190. function getDefaultLocale() {
  4191. if (typeof uni !== 'undefined' && uni.getLocale) {
  4192. return uni.getLocale();
  4193. }
  4194. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  4195. if (typeof global !== 'undefined' && global.getLocale) {
  4196. return global.getLocale();
  4197. }
  4198. return LOCALE_EN;
  4199. }
  4200. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  4201. // 兼容旧版本入参
  4202. if (typeof locale !== 'string') {var _ref4 =
  4203. [
  4204. messages,
  4205. locale];locale = _ref4[0];messages = _ref4[1];
  4206. }
  4207. if (typeof locale !== 'string') {
  4208. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  4209. locale = getDefaultLocale();
  4210. }
  4211. if (typeof fallbackLocale !== 'string') {
  4212. fallbackLocale =
  4213. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  4214. LOCALE_EN;
  4215. }
  4216. var i18n = new I18n({
  4217. locale: locale,
  4218. fallbackLocale: fallbackLocale,
  4219. messages: messages,
  4220. watcher: watcher });
  4221. var _t = function t(key, values) {
  4222. if (typeof getApp !== 'function') {
  4223. // app view
  4224. /* eslint-disable no-func-assign */
  4225. _t = function t(key, values) {
  4226. return i18n.t(key, values);
  4227. };
  4228. } else
  4229. {
  4230. var isWatchedAppLocale = false;
  4231. _t = function t(key, values) {
  4232. var appVm = getApp().$vm;
  4233. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  4234. // options: {
  4235. // type: Array,
  4236. // default () {
  4237. // return [{
  4238. // icon: 'shop',
  4239. // text: t("uni-goods-nav.options.shop"),
  4240. // }, {
  4241. // icon: 'cart',
  4242. // text: t("uni-goods-nav.options.cart")
  4243. // }]
  4244. // }
  4245. // },
  4246. if (appVm) {
  4247. // 触发响应式
  4248. appVm.$locale;
  4249. if (!isWatchedAppLocale) {
  4250. isWatchedAppLocale = true;
  4251. watchAppLocale(appVm, i18n);
  4252. }
  4253. }
  4254. return i18n.t(key, values);
  4255. };
  4256. }
  4257. return _t(key, values);
  4258. };
  4259. return {
  4260. i18n: i18n,
  4261. f: function f(message, values, delimiters) {
  4262. return i18n.f(message, values, delimiters);
  4263. },
  4264. t: function t(key, values) {
  4265. return _t(key, values);
  4266. },
  4267. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4268. return i18n.add(locale, message, override);
  4269. },
  4270. watch: function watch(fn) {
  4271. return i18n.watchLocale(fn);
  4272. },
  4273. getLocale: function getLocale() {
  4274. return i18n.getLocale();
  4275. },
  4276. setLocale: function setLocale(newLocale) {
  4277. return i18n.setLocale(newLocale);
  4278. } };
  4279. }
  4280. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  4281. var formater;
  4282. function hasI18nJson(jsonObj, delimiters) {
  4283. if (!formater) {
  4284. formater = new BaseFormatter();
  4285. }
  4286. return walkJsonObj(jsonObj, function (jsonObj, key) {
  4287. var value = jsonObj[key];
  4288. if (isString(value)) {
  4289. if (isI18nStr(value, delimiters)) {
  4290. return true;
  4291. }
  4292. } else
  4293. {
  4294. return hasI18nJson(value, delimiters);
  4295. }
  4296. });
  4297. }
  4298. function parseI18nJson(jsonObj, values, delimiters) {
  4299. if (!formater) {
  4300. formater = new BaseFormatter();
  4301. }
  4302. walkJsonObj(jsonObj, function (jsonObj, key) {
  4303. var value = jsonObj[key];
  4304. if (isString(value)) {
  4305. if (isI18nStr(value, delimiters)) {
  4306. jsonObj[key] = compileStr(value, values, delimiters);
  4307. }
  4308. } else
  4309. {
  4310. parseI18nJson(value, values, delimiters);
  4311. }
  4312. });
  4313. return jsonObj;
  4314. }
  4315. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  4316. if (!isI18nStr(jsonStr, delimiters)) {
  4317. return jsonStr;
  4318. }
  4319. if (!formater) {
  4320. formater = new BaseFormatter();
  4321. }
  4322. var localeValues = [];
  4323. Object.keys(locales).forEach(function (name) {
  4324. if (name !== locale) {
  4325. localeValues.push({
  4326. locale: name,
  4327. values: locales[name] });
  4328. }
  4329. });
  4330. localeValues.unshift({ locale: locale, values: locales[locale] });
  4331. try {
  4332. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  4333. }
  4334. catch (e) {}
  4335. return jsonStr;
  4336. }
  4337. function isI18nStr(value, delimiters) {
  4338. return value.indexOf(delimiters[0]) > -1;
  4339. }
  4340. function compileStr(value, values, delimiters) {
  4341. return formater.interpolate(value, values, delimiters).join('');
  4342. }
  4343. function compileValue(jsonObj, key, localeValues, delimiters) {
  4344. var value = jsonObj[key];
  4345. if (isString(value)) {
  4346. // 存在国际化
  4347. if (isI18nStr(value, delimiters)) {
  4348. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  4349. if (localeValues.length > 1) {
  4350. // 格式化国际化语言
  4351. var valueLocales = jsonObj[key + 'Locales'] = {};
  4352. localeValues.forEach(function (localValue) {
  4353. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  4354. });
  4355. }
  4356. }
  4357. } else
  4358. {
  4359. compileJsonObj(value, localeValues, delimiters);
  4360. }
  4361. }
  4362. function compileJsonObj(jsonObj, localeValues, delimiters) {
  4363. walkJsonObj(jsonObj, function (jsonObj, key) {
  4364. compileValue(jsonObj, key, localeValues, delimiters);
  4365. });
  4366. return jsonObj;
  4367. }
  4368. function walkJsonObj(jsonObj, walk) {
  4369. if (isArray(jsonObj)) {
  4370. for (var i = 0; i < jsonObj.length; i++) {
  4371. if (walk(jsonObj, i)) {
  4372. return true;
  4373. }
  4374. }
  4375. } else
  4376. if (isObject(jsonObj)) {
  4377. for (var key in jsonObj) {
  4378. if (walk(jsonObj, key)) {
  4379. return true;
  4380. }
  4381. }
  4382. }
  4383. return false;
  4384. }
  4385. function resolveLocale(locales) {
  4386. return function (locale) {
  4387. if (!locale) {
  4388. return locale;
  4389. }
  4390. locale = normalizeLocale(locale) || locale;
  4391. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  4392. };
  4393. }
  4394. function resolveLocaleChain(locale) {
  4395. var chain = [];
  4396. var tokens = locale.split('-');
  4397. while (tokens.length) {
  4398. chain.push(tokens.join('-'));
  4399. tokens.pop();
  4400. }
  4401. return chain;
  4402. }
  4403. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  4404. /***/ }),
  4405. /***/ 4:
  4406. /*!******************************************************************************************!*\
  4407. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  4408. \******************************************************************************************/
  4409. /*! exports provided: default */
  4410. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4411. "use strict";
  4412. __webpack_require__.r(__webpack_exports__);
  4413. /* WEBPACK VAR INJECTION */(function(global) {/*!
  4414. * Vue.js v2.6.11
  4415. * (c) 2014-2022 Evan You
  4416. * Released under the MIT License.
  4417. */
  4418. /* */
  4419. var emptyObject = Object.freeze({});
  4420. // These helpers produce better VM code in JS engines due to their
  4421. // explicitness and function inlining.
  4422. function isUndef (v) {
  4423. return v === undefined || v === null
  4424. }
  4425. function isDef (v) {
  4426. return v !== undefined && v !== null
  4427. }
  4428. function isTrue (v) {
  4429. return v === true
  4430. }
  4431. function isFalse (v) {
  4432. return v === false
  4433. }
  4434. /**
  4435. * Check if value is primitive.
  4436. */
  4437. function isPrimitive (value) {
  4438. return (
  4439. typeof value === 'string' ||
  4440. typeof value === 'number' ||
  4441. // $flow-disable-line
  4442. typeof value === 'symbol' ||
  4443. typeof value === 'boolean'
  4444. )
  4445. }
  4446. /**
  4447. * Quick object check - this is primarily used to tell
  4448. * Objects from primitive values when we know the value
  4449. * is a JSON-compliant type.
  4450. */
  4451. function isObject (obj) {
  4452. return obj !== null && typeof obj === 'object'
  4453. }
  4454. /**
  4455. * Get the raw type string of a value, e.g., [object Object].
  4456. */
  4457. var _toString = Object.prototype.toString;
  4458. function toRawType (value) {
  4459. return _toString.call(value).slice(8, -1)
  4460. }
  4461. /**
  4462. * Strict object type check. Only returns true
  4463. * for plain JavaScript objects.
  4464. */
  4465. function isPlainObject (obj) {
  4466. return _toString.call(obj) === '[object Object]'
  4467. }
  4468. function isRegExp (v) {
  4469. return _toString.call(v) === '[object RegExp]'
  4470. }
  4471. /**
  4472. * Check if val is a valid array index.
  4473. */
  4474. function isValidArrayIndex (val) {
  4475. var n = parseFloat(String(val));
  4476. return n >= 0 && Math.floor(n) === n && isFinite(val)
  4477. }
  4478. function isPromise (val) {
  4479. return (
  4480. isDef(val) &&
  4481. typeof val.then === 'function' &&
  4482. typeof val.catch === 'function'
  4483. )
  4484. }
  4485. /**
  4486. * Convert a value to a string that is actually rendered.
  4487. */
  4488. function toString (val) {
  4489. return val == null
  4490. ? ''
  4491. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  4492. ? JSON.stringify(val, null, 2)
  4493. : String(val)
  4494. }
  4495. /**
  4496. * Convert an input value to a number for persistence.
  4497. * If the conversion fails, return original string.
  4498. */
  4499. function toNumber (val) {
  4500. var n = parseFloat(val);
  4501. return isNaN(n) ? val : n
  4502. }
  4503. /**
  4504. * Make a map and return a function for checking if a key
  4505. * is in that map.
  4506. */
  4507. function makeMap (
  4508. str,
  4509. expectsLowerCase
  4510. ) {
  4511. var map = Object.create(null);
  4512. var list = str.split(',');
  4513. for (var i = 0; i < list.length; i++) {
  4514. map[list[i]] = true;
  4515. }
  4516. return expectsLowerCase
  4517. ? function (val) { return map[val.toLowerCase()]; }
  4518. : function (val) { return map[val]; }
  4519. }
  4520. /**
  4521. * Check if a tag is a built-in tag.
  4522. */
  4523. var isBuiltInTag = makeMap('slot,component', true);
  4524. /**
  4525. * Check if an attribute is a reserved attribute.
  4526. */
  4527. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  4528. /**
  4529. * Remove an item from an array.
  4530. */
  4531. function remove (arr, item) {
  4532. if (arr.length) {
  4533. var index = arr.indexOf(item);
  4534. if (index > -1) {
  4535. return arr.splice(index, 1)
  4536. }
  4537. }
  4538. }
  4539. /**
  4540. * Check whether an object has the property.
  4541. */
  4542. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4543. function hasOwn (obj, key) {
  4544. return hasOwnProperty.call(obj, key)
  4545. }
  4546. /**
  4547. * Create a cached version of a pure function.
  4548. */
  4549. function cached (fn) {
  4550. var cache = Object.create(null);
  4551. return (function cachedFn (str) {
  4552. var hit = cache[str];
  4553. return hit || (cache[str] = fn(str))
  4554. })
  4555. }
  4556. /**
  4557. * Camelize a hyphen-delimited string.
  4558. */
  4559. var camelizeRE = /-(\w)/g;
  4560. var camelize = cached(function (str) {
  4561. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  4562. });
  4563. /**
  4564. * Capitalize a string.
  4565. */
  4566. var capitalize = cached(function (str) {
  4567. return str.charAt(0).toUpperCase() + str.slice(1)
  4568. });
  4569. /**
  4570. * Hyphenate a camelCase string.
  4571. */
  4572. var hyphenateRE = /\B([A-Z])/g;
  4573. var hyphenate = cached(function (str) {
  4574. return str.replace(hyphenateRE, '-$1').toLowerCase()
  4575. });
  4576. /**
  4577. * Simple bind polyfill for environments that do not support it,
  4578. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  4579. * since native bind is now performant enough in most browsers.
  4580. * But removing it would mean breaking code that was able to run in
  4581. * PhantomJS 1.x, so this must be kept for backward compatibility.
  4582. */
  4583. /* istanbul ignore next */
  4584. function polyfillBind (fn, ctx) {
  4585. function boundFn (a) {
  4586. var l = arguments.length;
  4587. return l
  4588. ? l > 1
  4589. ? fn.apply(ctx, arguments)
  4590. : fn.call(ctx, a)
  4591. : fn.call(ctx)
  4592. }
  4593. boundFn._length = fn.length;
  4594. return boundFn
  4595. }
  4596. function nativeBind (fn, ctx) {
  4597. return fn.bind(ctx)
  4598. }
  4599. var bind = Function.prototype.bind
  4600. ? nativeBind
  4601. : polyfillBind;
  4602. /**
  4603. * Convert an Array-like object to a real Array.
  4604. */
  4605. function toArray (list, start) {
  4606. start = start || 0;
  4607. var i = list.length - start;
  4608. var ret = new Array(i);
  4609. while (i--) {
  4610. ret[i] = list[i + start];
  4611. }
  4612. return ret
  4613. }
  4614. /**
  4615. * Mix properties into target object.
  4616. */
  4617. function extend (to, _from) {
  4618. for (var key in _from) {
  4619. to[key] = _from[key];
  4620. }
  4621. return to
  4622. }
  4623. /**
  4624. * Merge an Array of Objects into a single Object.
  4625. */
  4626. function toObject (arr) {
  4627. var res = {};
  4628. for (var i = 0; i < arr.length; i++) {
  4629. if (arr[i]) {
  4630. extend(res, arr[i]);
  4631. }
  4632. }
  4633. return res
  4634. }
  4635. /* eslint-disable no-unused-vars */
  4636. /**
  4637. * Perform no operation.
  4638. * Stubbing args to make Flow happy without leaving useless transpiled code
  4639. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  4640. */
  4641. function noop (a, b, c) {}
  4642. /**
  4643. * Always return false.
  4644. */
  4645. var no = function (a, b, c) { return false; };
  4646. /* eslint-enable no-unused-vars */
  4647. /**
  4648. * Return the same value.
  4649. */
  4650. var identity = function (_) { return _; };
  4651. /**
  4652. * Check if two values are loosely equal - that is,
  4653. * if they are plain objects, do they have the same shape?
  4654. */
  4655. function looseEqual (a, b) {
  4656. if (a === b) { return true }
  4657. var isObjectA = isObject(a);
  4658. var isObjectB = isObject(b);
  4659. if (isObjectA && isObjectB) {
  4660. try {
  4661. var isArrayA = Array.isArray(a);
  4662. var isArrayB = Array.isArray(b);
  4663. if (isArrayA && isArrayB) {
  4664. return a.length === b.length && a.every(function (e, i) {
  4665. return looseEqual(e, b[i])
  4666. })
  4667. } else if (a instanceof Date && b instanceof Date) {
  4668. return a.getTime() === b.getTime()
  4669. } else if (!isArrayA && !isArrayB) {
  4670. var keysA = Object.keys(a);
  4671. var keysB = Object.keys(b);
  4672. return keysA.length === keysB.length && keysA.every(function (key) {
  4673. return looseEqual(a[key], b[key])
  4674. })
  4675. } else {
  4676. /* istanbul ignore next */
  4677. return false
  4678. }
  4679. } catch (e) {
  4680. /* istanbul ignore next */
  4681. return false
  4682. }
  4683. } else if (!isObjectA && !isObjectB) {
  4684. return String(a) === String(b)
  4685. } else {
  4686. return false
  4687. }
  4688. }
  4689. /**
  4690. * Return the first index at which a loosely equal value can be
  4691. * found in the array (if value is a plain object, the array must
  4692. * contain an object of the same shape), or -1 if it is not present.
  4693. */
  4694. function looseIndexOf (arr, val) {
  4695. for (var i = 0; i < arr.length; i++) {
  4696. if (looseEqual(arr[i], val)) { return i }
  4697. }
  4698. return -1
  4699. }
  4700. /**
  4701. * Ensure a function is called only once.
  4702. */
  4703. function once (fn) {
  4704. var called = false;
  4705. return function () {
  4706. if (!called) {
  4707. called = true;
  4708. fn.apply(this, arguments);
  4709. }
  4710. }
  4711. }
  4712. var ASSET_TYPES = [
  4713. 'component',
  4714. 'directive',
  4715. 'filter'
  4716. ];
  4717. var LIFECYCLE_HOOKS = [
  4718. 'beforeCreate',
  4719. 'created',
  4720. 'beforeMount',
  4721. 'mounted',
  4722. 'beforeUpdate',
  4723. 'updated',
  4724. 'beforeDestroy',
  4725. 'destroyed',
  4726. 'activated',
  4727. 'deactivated',
  4728. 'errorCaptured',
  4729. 'serverPrefetch'
  4730. ];
  4731. /* */
  4732. var config = ({
  4733. /**
  4734. * Option merge strategies (used in core/util/options)
  4735. */
  4736. // $flow-disable-line
  4737. optionMergeStrategies: Object.create(null),
  4738. /**
  4739. * Whether to suppress warnings.
  4740. */
  4741. silent: false,
  4742. /**
  4743. * Show production mode tip message on boot?
  4744. */
  4745. productionTip: "development" !== 'production',
  4746. /**
  4747. * Whether to enable devtools
  4748. */
  4749. devtools: "development" !== 'production',
  4750. /**
  4751. * Whether to record perf
  4752. */
  4753. performance: false,
  4754. /**
  4755. * Error handler for watcher errors
  4756. */
  4757. errorHandler: null,
  4758. /**
  4759. * Warn handler for watcher warns
  4760. */
  4761. warnHandler: null,
  4762. /**
  4763. * Ignore certain custom elements
  4764. */
  4765. ignoredElements: [],
  4766. /**
  4767. * Custom user key aliases for v-on
  4768. */
  4769. // $flow-disable-line
  4770. keyCodes: Object.create(null),
  4771. /**
  4772. * Check if a tag is reserved so that it cannot be registered as a
  4773. * component. This is platform-dependent and may be overwritten.
  4774. */
  4775. isReservedTag: no,
  4776. /**
  4777. * Check if an attribute is reserved so that it cannot be used as a component
  4778. * prop. This is platform-dependent and may be overwritten.
  4779. */
  4780. isReservedAttr: no,
  4781. /**
  4782. * Check if a tag is an unknown element.
  4783. * Platform-dependent.
  4784. */
  4785. isUnknownElement: no,
  4786. /**
  4787. * Get the namespace of an element
  4788. */
  4789. getTagNamespace: noop,
  4790. /**
  4791. * Parse the real tag name for the specific platform.
  4792. */
  4793. parsePlatformTagName: identity,
  4794. /**
  4795. * Check if an attribute must be bound using property, e.g. value
  4796. * Platform-dependent.
  4797. */
  4798. mustUseProp: no,
  4799. /**
  4800. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  4801. * This will significantly reduce performance if set to false.
  4802. */
  4803. async: true,
  4804. /**
  4805. * Exposed for legacy reasons
  4806. */
  4807. _lifecycleHooks: LIFECYCLE_HOOKS
  4808. });
  4809. /* */
  4810. /**
  4811. * unicode letters used for parsing html tags, component names and property paths.
  4812. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  4813. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  4814. */
  4815. 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/;
  4816. /**
  4817. * Check if a string starts with $ or _
  4818. */
  4819. function isReserved (str) {
  4820. var c = (str + '').charCodeAt(0);
  4821. return c === 0x24 || c === 0x5F
  4822. }
  4823. /**
  4824. * Define a property.
  4825. */
  4826. function def (obj, key, val, enumerable) {
  4827. Object.defineProperty(obj, key, {
  4828. value: val,
  4829. enumerable: !!enumerable,
  4830. writable: true,
  4831. configurable: true
  4832. });
  4833. }
  4834. /**
  4835. * Parse simple path.
  4836. */
  4837. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  4838. function parsePath (path) {
  4839. if (bailRE.test(path)) {
  4840. return
  4841. }
  4842. var segments = path.split('.');
  4843. return function (obj) {
  4844. for (var i = 0; i < segments.length; i++) {
  4845. if (!obj) { return }
  4846. obj = obj[segments[i]];
  4847. }
  4848. return obj
  4849. }
  4850. }
  4851. /* */
  4852. // can we use __proto__?
  4853. var hasProto = '__proto__' in {};
  4854. // Browser environment sniffing
  4855. var inBrowser = typeof window !== 'undefined';
  4856. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  4857. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  4858. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  4859. var isIE = UA && /msie|trident/.test(UA);
  4860. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  4861. var isEdge = UA && UA.indexOf('edge/') > 0;
  4862. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  4863. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  4864. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  4865. var isPhantomJS = UA && /phantomjs/.test(UA);
  4866. var isFF = UA && UA.match(/firefox\/(\d+)/);
  4867. // Firefox has a "watch" function on Object.prototype...
  4868. var nativeWatch = ({}).watch;
  4869. if (inBrowser) {
  4870. try {
  4871. var opts = {};
  4872. Object.defineProperty(opts, 'passive', ({
  4873. get: function get () {
  4874. }
  4875. })); // https://github.com/facebook/flow/issues/285
  4876. window.addEventListener('test-passive', null, opts);
  4877. } catch (e) {}
  4878. }
  4879. // this needs to be lazy-evaled because vue may be required before
  4880. // vue-server-renderer can set VUE_ENV
  4881. var _isServer;
  4882. var isServerRendering = function () {
  4883. if (_isServer === undefined) {
  4884. /* istanbul ignore if */
  4885. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  4886. // detect presence of vue-server-renderer and avoid
  4887. // Webpack shimming the process
  4888. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  4889. } else {
  4890. _isServer = false;
  4891. }
  4892. }
  4893. return _isServer
  4894. };
  4895. // detect devtools
  4896. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  4897. /* istanbul ignore next */
  4898. function isNative (Ctor) {
  4899. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  4900. }
  4901. var hasSymbol =
  4902. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  4903. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  4904. var _Set;
  4905. /* istanbul ignore if */ // $flow-disable-line
  4906. if (typeof Set !== 'undefined' && isNative(Set)) {
  4907. // use native Set when available.
  4908. _Set = Set;
  4909. } else {
  4910. // a non-standard Set polyfill that only works with primitive keys.
  4911. _Set = /*@__PURE__*/(function () {
  4912. function Set () {
  4913. this.set = Object.create(null);
  4914. }
  4915. Set.prototype.has = function has (key) {
  4916. return this.set[key] === true
  4917. };
  4918. Set.prototype.add = function add (key) {
  4919. this.set[key] = true;
  4920. };
  4921. Set.prototype.clear = function clear () {
  4922. this.set = Object.create(null);
  4923. };
  4924. return Set;
  4925. }());
  4926. }
  4927. /* */
  4928. var warn = noop;
  4929. var tip = noop;
  4930. var generateComponentTrace = (noop); // work around flow check
  4931. var formatComponentName = (noop);
  4932. if (true) {
  4933. var hasConsole = typeof console !== 'undefined';
  4934. var classifyRE = /(?:^|[-_])(\w)/g;
  4935. var classify = function (str) { return str
  4936. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  4937. .replace(/[-_]/g, ''); };
  4938. warn = function (msg, vm) {
  4939. var trace = vm ? generateComponentTrace(vm) : '';
  4940. if (config.warnHandler) {
  4941. config.warnHandler.call(null, msg, vm, trace);
  4942. } else if (hasConsole && (!config.silent)) {
  4943. console.error(("[Vue warn]: " + msg + trace));
  4944. }
  4945. };
  4946. tip = function (msg, vm) {
  4947. if (hasConsole && (!config.silent)) {
  4948. console.warn("[Vue tip]: " + msg + (
  4949. vm ? generateComponentTrace(vm) : ''
  4950. ));
  4951. }
  4952. };
  4953. formatComponentName = function (vm, includeFile) {
  4954. if (vm.$root === vm) {
  4955. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  4956. return ('') + vm.$options.__file
  4957. }
  4958. return '<Root>'
  4959. }
  4960. var options = typeof vm === 'function' && vm.cid != null
  4961. ? vm.options
  4962. : vm._isVue
  4963. ? vm.$options || vm.constructor.options
  4964. : vm;
  4965. var name = options.name || options._componentTag;
  4966. var file = options.__file;
  4967. if (!name && file) {
  4968. var match = file.match(/([^/\\]+)\.vue$/);
  4969. name = match && match[1];
  4970. }
  4971. return (
  4972. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  4973. (file && includeFile !== false ? (" at " + file) : '')
  4974. )
  4975. };
  4976. var repeat = function (str, n) {
  4977. var res = '';
  4978. while (n) {
  4979. if (n % 2 === 1) { res += str; }
  4980. if (n > 1) { str += str; }
  4981. n >>= 1;
  4982. }
  4983. return res
  4984. };
  4985. generateComponentTrace = function (vm) {
  4986. if (vm._isVue && vm.$parent) {
  4987. var tree = [];
  4988. var currentRecursiveSequence = 0;
  4989. while (vm && vm.$options.name !== 'PageBody') {
  4990. if (tree.length > 0) {
  4991. var last = tree[tree.length - 1];
  4992. if (last.constructor === vm.constructor) {
  4993. currentRecursiveSequence++;
  4994. vm = vm.$parent;
  4995. continue
  4996. } else if (currentRecursiveSequence > 0) {
  4997. tree[tree.length - 1] = [last, currentRecursiveSequence];
  4998. currentRecursiveSequence = 0;
  4999. }
  5000. }
  5001. !vm.$options.isReserved && tree.push(vm);
  5002. vm = vm.$parent;
  5003. }
  5004. return '\n\nfound in\n\n' + tree
  5005. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  5006. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  5007. : formatComponentName(vm))); })
  5008. .join('\n')
  5009. } else {
  5010. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  5011. }
  5012. };
  5013. }
  5014. /* */
  5015. var uid = 0;
  5016. /**
  5017. * A dep is an observable that can have multiple
  5018. * directives subscribing to it.
  5019. */
  5020. var Dep = function Dep () {
  5021. this.id = uid++;
  5022. this.subs = [];
  5023. };
  5024. Dep.prototype.addSub = function addSub (sub) {
  5025. this.subs.push(sub);
  5026. };
  5027. Dep.prototype.removeSub = function removeSub (sub) {
  5028. remove(this.subs, sub);
  5029. };
  5030. Dep.prototype.depend = function depend () {
  5031. if (Dep.SharedObject.target) {
  5032. Dep.SharedObject.target.addDep(this);
  5033. }
  5034. };
  5035. Dep.prototype.notify = function notify () {
  5036. // stabilize the subscriber list first
  5037. var subs = this.subs.slice();
  5038. if ( true && !config.async) {
  5039. // subs aren't sorted in scheduler if not running async
  5040. // we need to sort them now to make sure they fire in correct
  5041. // order
  5042. subs.sort(function (a, b) { return a.id - b.id; });
  5043. }
  5044. for (var i = 0, l = subs.length; i < l; i++) {
  5045. subs[i].update();
  5046. }
  5047. };
  5048. // The current target watcher being evaluated.
  5049. // This is globally unique because only one watcher
  5050. // can be evaluated at a time.
  5051. // fixed by xxxxxx (nvue shared vuex)
  5052. /* eslint-disable no-undef */
  5053. Dep.SharedObject = {};
  5054. Dep.SharedObject.target = null;
  5055. Dep.SharedObject.targetStack = [];
  5056. function pushTarget (target) {
  5057. Dep.SharedObject.targetStack.push(target);
  5058. Dep.SharedObject.target = target;
  5059. Dep.target = target;
  5060. }
  5061. function popTarget () {
  5062. Dep.SharedObject.targetStack.pop();
  5063. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  5064. Dep.target = Dep.SharedObject.target;
  5065. }
  5066. /* */
  5067. var VNode = function VNode (
  5068. tag,
  5069. data,
  5070. children,
  5071. text,
  5072. elm,
  5073. context,
  5074. componentOptions,
  5075. asyncFactory
  5076. ) {
  5077. this.tag = tag;
  5078. this.data = data;
  5079. this.children = children;
  5080. this.text = text;
  5081. this.elm = elm;
  5082. this.ns = undefined;
  5083. this.context = context;
  5084. this.fnContext = undefined;
  5085. this.fnOptions = undefined;
  5086. this.fnScopeId = undefined;
  5087. this.key = data && data.key;
  5088. this.componentOptions = componentOptions;
  5089. this.componentInstance = undefined;
  5090. this.parent = undefined;
  5091. this.raw = false;
  5092. this.isStatic = false;
  5093. this.isRootInsert = true;
  5094. this.isComment = false;
  5095. this.isCloned = false;
  5096. this.isOnce = false;
  5097. this.asyncFactory = asyncFactory;
  5098. this.asyncMeta = undefined;
  5099. this.isAsyncPlaceholder = false;
  5100. };
  5101. var prototypeAccessors = { child: { configurable: true } };
  5102. // DEPRECATED: alias for componentInstance for backwards compat.
  5103. /* istanbul ignore next */
  5104. prototypeAccessors.child.get = function () {
  5105. return this.componentInstance
  5106. };
  5107. Object.defineProperties( VNode.prototype, prototypeAccessors );
  5108. var createEmptyVNode = function (text) {
  5109. if ( text === void 0 ) text = '';
  5110. var node = new VNode();
  5111. node.text = text;
  5112. node.isComment = true;
  5113. return node
  5114. };
  5115. function createTextVNode (val) {
  5116. return new VNode(undefined, undefined, undefined, String(val))
  5117. }
  5118. // optimized shallow clone
  5119. // used for static nodes and slot nodes because they may be reused across
  5120. // multiple renders, cloning them avoids errors when DOM manipulations rely
  5121. // on their elm reference.
  5122. function cloneVNode (vnode) {
  5123. var cloned = new VNode(
  5124. vnode.tag,
  5125. vnode.data,
  5126. // #7975
  5127. // clone children array to avoid mutating original in case of cloning
  5128. // a child.
  5129. vnode.children && vnode.children.slice(),
  5130. vnode.text,
  5131. vnode.elm,
  5132. vnode.context,
  5133. vnode.componentOptions,
  5134. vnode.asyncFactory
  5135. );
  5136. cloned.ns = vnode.ns;
  5137. cloned.isStatic = vnode.isStatic;
  5138. cloned.key = vnode.key;
  5139. cloned.isComment = vnode.isComment;
  5140. cloned.fnContext = vnode.fnContext;
  5141. cloned.fnOptions = vnode.fnOptions;
  5142. cloned.fnScopeId = vnode.fnScopeId;
  5143. cloned.asyncMeta = vnode.asyncMeta;
  5144. cloned.isCloned = true;
  5145. return cloned
  5146. }
  5147. /*
  5148. * not type checking this file because flow doesn't play well with
  5149. * dynamically accessing methods on Array prototype
  5150. */
  5151. var arrayProto = Array.prototype;
  5152. var arrayMethods = Object.create(arrayProto);
  5153. var methodsToPatch = [
  5154. 'push',
  5155. 'pop',
  5156. 'shift',
  5157. 'unshift',
  5158. 'splice',
  5159. 'sort',
  5160. 'reverse'
  5161. ];
  5162. /**
  5163. * Intercept mutating methods and emit events
  5164. */
  5165. methodsToPatch.forEach(function (method) {
  5166. // cache original method
  5167. var original = arrayProto[method];
  5168. def(arrayMethods, method, function mutator () {
  5169. var args = [], len = arguments.length;
  5170. while ( len-- ) args[ len ] = arguments[ len ];
  5171. var result = original.apply(this, args);
  5172. var ob = this.__ob__;
  5173. var inserted;
  5174. switch (method) {
  5175. case 'push':
  5176. case 'unshift':
  5177. inserted = args;
  5178. break
  5179. case 'splice':
  5180. inserted = args.slice(2);
  5181. break
  5182. }
  5183. if (inserted) { ob.observeArray(inserted); }
  5184. // notify change
  5185. ob.dep.notify();
  5186. return result
  5187. });
  5188. });
  5189. /* */
  5190. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  5191. /**
  5192. * In some cases we may want to disable observation inside a component's
  5193. * update computation.
  5194. */
  5195. var shouldObserve = true;
  5196. function toggleObserving (value) {
  5197. shouldObserve = value;
  5198. }
  5199. /**
  5200. * Observer class that is attached to each observed
  5201. * object. Once attached, the observer converts the target
  5202. * object's property keys into getter/setters that
  5203. * collect dependencies and dispatch updates.
  5204. */
  5205. var Observer = function Observer (value) {
  5206. this.value = value;
  5207. this.dep = new Dep();
  5208. this.vmCount = 0;
  5209. def(value, '__ob__', this);
  5210. if (Array.isArray(value)) {
  5211. if (hasProto) {
  5212. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  5213. if(value.push !== value.__proto__.push){
  5214. copyAugment(value, arrayMethods, arrayKeys);
  5215. } else {
  5216. protoAugment(value, arrayMethods);
  5217. }
  5218. }
  5219. } else {
  5220. copyAugment(value, arrayMethods, arrayKeys);
  5221. }
  5222. this.observeArray(value);
  5223. } else {
  5224. this.walk(value);
  5225. }
  5226. };
  5227. /**
  5228. * Walk through all properties and convert them into
  5229. * getter/setters. This method should only be called when
  5230. * value type is Object.
  5231. */
  5232. Observer.prototype.walk = function walk (obj) {
  5233. var keys = Object.keys(obj);
  5234. for (var i = 0; i < keys.length; i++) {
  5235. defineReactive$$1(obj, keys[i]);
  5236. }
  5237. };
  5238. /**
  5239. * Observe a list of Array items.
  5240. */
  5241. Observer.prototype.observeArray = function observeArray (items) {
  5242. for (var i = 0, l = items.length; i < l; i++) {
  5243. observe(items[i]);
  5244. }
  5245. };
  5246. // helpers
  5247. /**
  5248. * Augment a target Object or Array by intercepting
  5249. * the prototype chain using __proto__
  5250. */
  5251. function protoAugment (target, src) {
  5252. /* eslint-disable no-proto */
  5253. target.__proto__ = src;
  5254. /* eslint-enable no-proto */
  5255. }
  5256. /**
  5257. * Augment a target Object or Array by defining
  5258. * hidden properties.
  5259. */
  5260. /* istanbul ignore next */
  5261. function copyAugment (target, src, keys) {
  5262. for (var i = 0, l = keys.length; i < l; i++) {
  5263. var key = keys[i];
  5264. def(target, key, src[key]);
  5265. }
  5266. }
  5267. /**
  5268. * Attempt to create an observer instance for a value,
  5269. * returns the new observer if successfully observed,
  5270. * or the existing observer if the value already has one.
  5271. */
  5272. function observe (value, asRootData) {
  5273. if (!isObject(value) || value instanceof VNode) {
  5274. return
  5275. }
  5276. var ob;
  5277. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  5278. ob = value.__ob__;
  5279. } else if (
  5280. shouldObserve &&
  5281. !isServerRendering() &&
  5282. (Array.isArray(value) || isPlainObject(value)) &&
  5283. Object.isExtensible(value) &&
  5284. !value._isVue
  5285. ) {
  5286. ob = new Observer(value);
  5287. }
  5288. if (asRootData && ob) {
  5289. ob.vmCount++;
  5290. }
  5291. return ob
  5292. }
  5293. /**
  5294. * Define a reactive property on an Object.
  5295. */
  5296. function defineReactive$$1 (
  5297. obj,
  5298. key,
  5299. val,
  5300. customSetter,
  5301. shallow
  5302. ) {
  5303. var dep = new Dep();
  5304. var property = Object.getOwnPropertyDescriptor(obj, key);
  5305. if (property && property.configurable === false) {
  5306. return
  5307. }
  5308. // cater for pre-defined getter/setters
  5309. var getter = property && property.get;
  5310. var setter = property && property.set;
  5311. if ((!getter || setter) && arguments.length === 2) {
  5312. val = obj[key];
  5313. }
  5314. var childOb = !shallow && observe(val);
  5315. Object.defineProperty(obj, key, {
  5316. enumerable: true,
  5317. configurable: true,
  5318. get: function reactiveGetter () {
  5319. var value = getter ? getter.call(obj) : val;
  5320. if (Dep.SharedObject.target) { // fixed by xxxxxx
  5321. dep.depend();
  5322. if (childOb) {
  5323. childOb.dep.depend();
  5324. if (Array.isArray(value)) {
  5325. dependArray(value);
  5326. }
  5327. }
  5328. }
  5329. return value
  5330. },
  5331. set: function reactiveSetter (newVal) {
  5332. var value = getter ? getter.call(obj) : val;
  5333. /* eslint-disable no-self-compare */
  5334. if (newVal === value || (newVal !== newVal && value !== value)) {
  5335. return
  5336. }
  5337. /* eslint-enable no-self-compare */
  5338. if ( true && customSetter) {
  5339. customSetter();
  5340. }
  5341. // #7981: for accessor properties without setter
  5342. if (getter && !setter) { return }
  5343. if (setter) {
  5344. setter.call(obj, newVal);
  5345. } else {
  5346. val = newVal;
  5347. }
  5348. childOb = !shallow && observe(newVal);
  5349. dep.notify();
  5350. }
  5351. });
  5352. }
  5353. /**
  5354. * Set a property on an object. Adds the new property and
  5355. * triggers change notification if the property doesn't
  5356. * already exist.
  5357. */
  5358. function set (target, key, val) {
  5359. if ( true &&
  5360. (isUndef(target) || isPrimitive(target))
  5361. ) {
  5362. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  5363. }
  5364. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5365. target.length = Math.max(target.length, key);
  5366. target.splice(key, 1, val);
  5367. return val
  5368. }
  5369. if (key in target && !(key in Object.prototype)) {
  5370. target[key] = val;
  5371. return val
  5372. }
  5373. var ob = (target).__ob__;
  5374. if (target._isVue || (ob && ob.vmCount)) {
  5375. true && warn(
  5376. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  5377. 'at runtime - declare it upfront in the data option.'
  5378. );
  5379. return val
  5380. }
  5381. if (!ob) {
  5382. target[key] = val;
  5383. return val
  5384. }
  5385. defineReactive$$1(ob.value, key, val);
  5386. ob.dep.notify();
  5387. return val
  5388. }
  5389. /**
  5390. * Delete a property and trigger change if necessary.
  5391. */
  5392. function del (target, key) {
  5393. if ( true &&
  5394. (isUndef(target) || isPrimitive(target))
  5395. ) {
  5396. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  5397. }
  5398. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5399. target.splice(key, 1);
  5400. return
  5401. }
  5402. var ob = (target).__ob__;
  5403. if (target._isVue || (ob && ob.vmCount)) {
  5404. true && warn(
  5405. 'Avoid deleting properties on a Vue instance or its root $data ' +
  5406. '- just set it to null.'
  5407. );
  5408. return
  5409. }
  5410. if (!hasOwn(target, key)) {
  5411. return
  5412. }
  5413. delete target[key];
  5414. if (!ob) {
  5415. return
  5416. }
  5417. ob.dep.notify();
  5418. }
  5419. /**
  5420. * Collect dependencies on array elements when the array is touched, since
  5421. * we cannot intercept array element access like property getters.
  5422. */
  5423. function dependArray (value) {
  5424. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  5425. e = value[i];
  5426. e && e.__ob__ && e.__ob__.dep.depend();
  5427. if (Array.isArray(e)) {
  5428. dependArray(e);
  5429. }
  5430. }
  5431. }
  5432. /* */
  5433. /**
  5434. * Option overwriting strategies are functions that handle
  5435. * how to merge a parent option value and a child option
  5436. * value into the final value.
  5437. */
  5438. var strats = config.optionMergeStrategies;
  5439. /**
  5440. * Options with restrictions
  5441. */
  5442. if (true) {
  5443. strats.el = strats.propsData = function (parent, child, vm, key) {
  5444. if (!vm) {
  5445. warn(
  5446. "option \"" + key + "\" can only be used during instance " +
  5447. 'creation with the `new` keyword.'
  5448. );
  5449. }
  5450. return defaultStrat(parent, child)
  5451. };
  5452. }
  5453. /**
  5454. * Helper that recursively merges two data objects together.
  5455. */
  5456. function mergeData (to, from) {
  5457. if (!from) { return to }
  5458. var key, toVal, fromVal;
  5459. var keys = hasSymbol
  5460. ? Reflect.ownKeys(from)
  5461. : Object.keys(from);
  5462. for (var i = 0; i < keys.length; i++) {
  5463. key = keys[i];
  5464. // in case the object is already observed...
  5465. if (key === '__ob__') { continue }
  5466. toVal = to[key];
  5467. fromVal = from[key];
  5468. if (!hasOwn(to, key)) {
  5469. set(to, key, fromVal);
  5470. } else if (
  5471. toVal !== fromVal &&
  5472. isPlainObject(toVal) &&
  5473. isPlainObject(fromVal)
  5474. ) {
  5475. mergeData(toVal, fromVal);
  5476. }
  5477. }
  5478. return to
  5479. }
  5480. /**
  5481. * Data
  5482. */
  5483. function mergeDataOrFn (
  5484. parentVal,
  5485. childVal,
  5486. vm
  5487. ) {
  5488. if (!vm) {
  5489. // in a Vue.extend merge, both should be functions
  5490. if (!childVal) {
  5491. return parentVal
  5492. }
  5493. if (!parentVal) {
  5494. return childVal
  5495. }
  5496. // when parentVal & childVal are both present,
  5497. // we need to return a function that returns the
  5498. // merged result of both functions... no need to
  5499. // check if parentVal is a function here because
  5500. // it has to be a function to pass previous merges.
  5501. return function mergedDataFn () {
  5502. return mergeData(
  5503. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  5504. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  5505. )
  5506. }
  5507. } else {
  5508. return function mergedInstanceDataFn () {
  5509. // instance merge
  5510. var instanceData = typeof childVal === 'function'
  5511. ? childVal.call(vm, vm)
  5512. : childVal;
  5513. var defaultData = typeof parentVal === 'function'
  5514. ? parentVal.call(vm, vm)
  5515. : parentVal;
  5516. if (instanceData) {
  5517. return mergeData(instanceData, defaultData)
  5518. } else {
  5519. return defaultData
  5520. }
  5521. }
  5522. }
  5523. }
  5524. strats.data = function (
  5525. parentVal,
  5526. childVal,
  5527. vm
  5528. ) {
  5529. if (!vm) {
  5530. if (childVal && typeof childVal !== 'function') {
  5531. true && warn(
  5532. 'The "data" option should be a function ' +
  5533. 'that returns a per-instance value in component ' +
  5534. 'definitions.',
  5535. vm
  5536. );
  5537. return parentVal
  5538. }
  5539. return mergeDataOrFn(parentVal, childVal)
  5540. }
  5541. return mergeDataOrFn(parentVal, childVal, vm)
  5542. };
  5543. /**
  5544. * Hooks and props are merged as arrays.
  5545. */
  5546. function mergeHook (
  5547. parentVal,
  5548. childVal
  5549. ) {
  5550. var res = childVal
  5551. ? parentVal
  5552. ? parentVal.concat(childVal)
  5553. : Array.isArray(childVal)
  5554. ? childVal
  5555. : [childVal]
  5556. : parentVal;
  5557. return res
  5558. ? dedupeHooks(res)
  5559. : res
  5560. }
  5561. function dedupeHooks (hooks) {
  5562. var res = [];
  5563. for (var i = 0; i < hooks.length; i++) {
  5564. if (res.indexOf(hooks[i]) === -1) {
  5565. res.push(hooks[i]);
  5566. }
  5567. }
  5568. return res
  5569. }
  5570. LIFECYCLE_HOOKS.forEach(function (hook) {
  5571. strats[hook] = mergeHook;
  5572. });
  5573. /**
  5574. * Assets
  5575. *
  5576. * When a vm is present (instance creation), we need to do
  5577. * a three-way merge between constructor options, instance
  5578. * options and parent options.
  5579. */
  5580. function mergeAssets (
  5581. parentVal,
  5582. childVal,
  5583. vm,
  5584. key
  5585. ) {
  5586. var res = Object.create(parentVal || null);
  5587. if (childVal) {
  5588. true && assertObjectType(key, childVal, vm);
  5589. return extend(res, childVal)
  5590. } else {
  5591. return res
  5592. }
  5593. }
  5594. ASSET_TYPES.forEach(function (type) {
  5595. strats[type + 's'] = mergeAssets;
  5596. });
  5597. /**
  5598. * Watchers.
  5599. *
  5600. * Watchers hashes should not overwrite one
  5601. * another, so we merge them as arrays.
  5602. */
  5603. strats.watch = function (
  5604. parentVal,
  5605. childVal,
  5606. vm,
  5607. key
  5608. ) {
  5609. // work around Firefox's Object.prototype.watch...
  5610. if (parentVal === nativeWatch) { parentVal = undefined; }
  5611. if (childVal === nativeWatch) { childVal = undefined; }
  5612. /* istanbul ignore if */
  5613. if (!childVal) { return Object.create(parentVal || null) }
  5614. if (true) {
  5615. assertObjectType(key, childVal, vm);
  5616. }
  5617. if (!parentVal) { return childVal }
  5618. var ret = {};
  5619. extend(ret, parentVal);
  5620. for (var key$1 in childVal) {
  5621. var parent = ret[key$1];
  5622. var child = childVal[key$1];
  5623. if (parent && !Array.isArray(parent)) {
  5624. parent = [parent];
  5625. }
  5626. ret[key$1] = parent
  5627. ? parent.concat(child)
  5628. : Array.isArray(child) ? child : [child];
  5629. }
  5630. return ret
  5631. };
  5632. /**
  5633. * Other object hashes.
  5634. */
  5635. strats.props =
  5636. strats.methods =
  5637. strats.inject =
  5638. strats.computed = function (
  5639. parentVal,
  5640. childVal,
  5641. vm,
  5642. key
  5643. ) {
  5644. if (childVal && "development" !== 'production') {
  5645. assertObjectType(key, childVal, vm);
  5646. }
  5647. if (!parentVal) { return childVal }
  5648. var ret = Object.create(null);
  5649. extend(ret, parentVal);
  5650. if (childVal) { extend(ret, childVal); }
  5651. return ret
  5652. };
  5653. strats.provide = mergeDataOrFn;
  5654. /**
  5655. * Default strategy.
  5656. */
  5657. var defaultStrat = function (parentVal, childVal) {
  5658. return childVal === undefined
  5659. ? parentVal
  5660. : childVal
  5661. };
  5662. /**
  5663. * Validate component names
  5664. */
  5665. function checkComponents (options) {
  5666. for (var key in options.components) {
  5667. validateComponentName(key);
  5668. }
  5669. }
  5670. function validateComponentName (name) {
  5671. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  5672. warn(
  5673. 'Invalid component name: "' + name + '". Component names ' +
  5674. 'should conform to valid custom element name in html5 specification.'
  5675. );
  5676. }
  5677. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  5678. warn(
  5679. 'Do not use built-in or reserved HTML elements as component ' +
  5680. 'id: ' + name
  5681. );
  5682. }
  5683. }
  5684. /**
  5685. * Ensure all props option syntax are normalized into the
  5686. * Object-based format.
  5687. */
  5688. function normalizeProps (options, vm) {
  5689. var props = options.props;
  5690. if (!props) { return }
  5691. var res = {};
  5692. var i, val, name;
  5693. if (Array.isArray(props)) {
  5694. i = props.length;
  5695. while (i--) {
  5696. val = props[i];
  5697. if (typeof val === 'string') {
  5698. name = camelize(val);
  5699. res[name] = { type: null };
  5700. } else if (true) {
  5701. warn('props must be strings when using array syntax.');
  5702. }
  5703. }
  5704. } else if (isPlainObject(props)) {
  5705. for (var key in props) {
  5706. val = props[key];
  5707. name = camelize(key);
  5708. res[name] = isPlainObject(val)
  5709. ? val
  5710. : { type: val };
  5711. }
  5712. } else if (true) {
  5713. warn(
  5714. "Invalid value for option \"props\": expected an Array or an Object, " +
  5715. "but got " + (toRawType(props)) + ".",
  5716. vm
  5717. );
  5718. }
  5719. options.props = res;
  5720. }
  5721. /**
  5722. * Normalize all injections into Object-based format
  5723. */
  5724. function normalizeInject (options, vm) {
  5725. var inject = options.inject;
  5726. if (!inject) { return }
  5727. var normalized = options.inject = {};
  5728. if (Array.isArray(inject)) {
  5729. for (var i = 0; i < inject.length; i++) {
  5730. normalized[inject[i]] = { from: inject[i] };
  5731. }
  5732. } else if (isPlainObject(inject)) {
  5733. for (var key in inject) {
  5734. var val = inject[key];
  5735. normalized[key] = isPlainObject(val)
  5736. ? extend({ from: key }, val)
  5737. : { from: val };
  5738. }
  5739. } else if (true) {
  5740. warn(
  5741. "Invalid value for option \"inject\": expected an Array or an Object, " +
  5742. "but got " + (toRawType(inject)) + ".",
  5743. vm
  5744. );
  5745. }
  5746. }
  5747. /**
  5748. * Normalize raw function directives into object format.
  5749. */
  5750. function normalizeDirectives (options) {
  5751. var dirs = options.directives;
  5752. if (dirs) {
  5753. for (var key in dirs) {
  5754. var def$$1 = dirs[key];
  5755. if (typeof def$$1 === 'function') {
  5756. dirs[key] = { bind: def$$1, update: def$$1 };
  5757. }
  5758. }
  5759. }
  5760. }
  5761. function assertObjectType (name, value, vm) {
  5762. if (!isPlainObject(value)) {
  5763. warn(
  5764. "Invalid value for option \"" + name + "\": expected an Object, " +
  5765. "but got " + (toRawType(value)) + ".",
  5766. vm
  5767. );
  5768. }
  5769. }
  5770. /**
  5771. * Merge two option objects into a new one.
  5772. * Core utility used in both instantiation and inheritance.
  5773. */
  5774. function mergeOptions (
  5775. parent,
  5776. child,
  5777. vm
  5778. ) {
  5779. if (true) {
  5780. checkComponents(child);
  5781. }
  5782. if (typeof child === 'function') {
  5783. child = child.options;
  5784. }
  5785. normalizeProps(child, vm);
  5786. normalizeInject(child, vm);
  5787. normalizeDirectives(child);
  5788. // Apply extends and mixins on the child options,
  5789. // but only if it is a raw options object that isn't
  5790. // the result of another mergeOptions call.
  5791. // Only merged options has the _base property.
  5792. if (!child._base) {
  5793. if (child.extends) {
  5794. parent = mergeOptions(parent, child.extends, vm);
  5795. }
  5796. if (child.mixins) {
  5797. for (var i = 0, l = child.mixins.length; i < l; i++) {
  5798. parent = mergeOptions(parent, child.mixins[i], vm);
  5799. }
  5800. }
  5801. }
  5802. var options = {};
  5803. var key;
  5804. for (key in parent) {
  5805. mergeField(key);
  5806. }
  5807. for (key in child) {
  5808. if (!hasOwn(parent, key)) {
  5809. mergeField(key);
  5810. }
  5811. }
  5812. function mergeField (key) {
  5813. var strat = strats[key] || defaultStrat;
  5814. options[key] = strat(parent[key], child[key], vm, key);
  5815. }
  5816. return options
  5817. }
  5818. /**
  5819. * Resolve an asset.
  5820. * This function is used because child instances need access
  5821. * to assets defined in its ancestor chain.
  5822. */
  5823. function resolveAsset (
  5824. options,
  5825. type,
  5826. id,
  5827. warnMissing
  5828. ) {
  5829. /* istanbul ignore if */
  5830. if (typeof id !== 'string') {
  5831. return
  5832. }
  5833. var assets = options[type];
  5834. // check local registration variations first
  5835. if (hasOwn(assets, id)) { return assets[id] }
  5836. var camelizedId = camelize(id);
  5837. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  5838. var PascalCaseId = capitalize(camelizedId);
  5839. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  5840. // fallback to prototype chain
  5841. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  5842. if ( true && warnMissing && !res) {
  5843. warn(
  5844. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  5845. options
  5846. );
  5847. }
  5848. return res
  5849. }
  5850. /* */
  5851. function validateProp (
  5852. key,
  5853. propOptions,
  5854. propsData,
  5855. vm
  5856. ) {
  5857. var prop = propOptions[key];
  5858. var absent = !hasOwn(propsData, key);
  5859. var value = propsData[key];
  5860. // boolean casting
  5861. var booleanIndex = getTypeIndex(Boolean, prop.type);
  5862. if (booleanIndex > -1) {
  5863. if (absent && !hasOwn(prop, 'default')) {
  5864. value = false;
  5865. } else if (value === '' || value === hyphenate(key)) {
  5866. // only cast empty string / same name to boolean if
  5867. // boolean has higher priority
  5868. var stringIndex = getTypeIndex(String, prop.type);
  5869. if (stringIndex < 0 || booleanIndex < stringIndex) {
  5870. value = true;
  5871. }
  5872. }
  5873. }
  5874. // check default value
  5875. if (value === undefined) {
  5876. value = getPropDefaultValue(vm, prop, key);
  5877. // since the default value is a fresh copy,
  5878. // make sure to observe it.
  5879. var prevShouldObserve = shouldObserve;
  5880. toggleObserving(true);
  5881. observe(value);
  5882. toggleObserving(prevShouldObserve);
  5883. }
  5884. if (
  5885. true
  5886. ) {
  5887. assertProp(prop, key, value, vm, absent);
  5888. }
  5889. return value
  5890. }
  5891. /**
  5892. * Get the default value of a prop.
  5893. */
  5894. function getPropDefaultValue (vm, prop, key) {
  5895. // no default, return undefined
  5896. if (!hasOwn(prop, 'default')) {
  5897. return undefined
  5898. }
  5899. var def = prop.default;
  5900. // warn against non-factory defaults for Object & Array
  5901. if ( true && isObject(def)) {
  5902. warn(
  5903. 'Invalid default value for prop "' + key + '": ' +
  5904. 'Props with type Object/Array must use a factory function ' +
  5905. 'to return the default value.',
  5906. vm
  5907. );
  5908. }
  5909. // the raw prop value was also undefined from previous render,
  5910. // return previous default value to avoid unnecessary watcher trigger
  5911. if (vm && vm.$options.propsData &&
  5912. vm.$options.propsData[key] === undefined &&
  5913. vm._props[key] !== undefined
  5914. ) {
  5915. return vm._props[key]
  5916. }
  5917. // call factory function for non-Function types
  5918. // a value is Function if its prototype is function even across different execution context
  5919. return typeof def === 'function' && getType(prop.type) !== 'Function'
  5920. ? def.call(vm)
  5921. : def
  5922. }
  5923. /**
  5924. * Assert whether a prop is valid.
  5925. */
  5926. function assertProp (
  5927. prop,
  5928. name,
  5929. value,
  5930. vm,
  5931. absent
  5932. ) {
  5933. if (prop.required && absent) {
  5934. warn(
  5935. 'Missing required prop: "' + name + '"',
  5936. vm
  5937. );
  5938. return
  5939. }
  5940. if (value == null && !prop.required) {
  5941. return
  5942. }
  5943. var type = prop.type;
  5944. var valid = !type || type === true;
  5945. var expectedTypes = [];
  5946. if (type) {
  5947. if (!Array.isArray(type)) {
  5948. type = [type];
  5949. }
  5950. for (var i = 0; i < type.length && !valid; i++) {
  5951. var assertedType = assertType(value, type[i]);
  5952. expectedTypes.push(assertedType.expectedType || '');
  5953. valid = assertedType.valid;
  5954. }
  5955. }
  5956. if (!valid) {
  5957. warn(
  5958. getInvalidTypeMessage(name, value, expectedTypes),
  5959. vm
  5960. );
  5961. return
  5962. }
  5963. var validator = prop.validator;
  5964. if (validator) {
  5965. if (!validator(value)) {
  5966. warn(
  5967. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  5968. vm
  5969. );
  5970. }
  5971. }
  5972. }
  5973. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  5974. function assertType (value, type) {
  5975. var valid;
  5976. var expectedType = getType(type);
  5977. if (simpleCheckRE.test(expectedType)) {
  5978. var t = typeof value;
  5979. valid = t === expectedType.toLowerCase();
  5980. // for primitive wrapper objects
  5981. if (!valid && t === 'object') {
  5982. valid = value instanceof type;
  5983. }
  5984. } else if (expectedType === 'Object') {
  5985. valid = isPlainObject(value);
  5986. } else if (expectedType === 'Array') {
  5987. valid = Array.isArray(value);
  5988. } else {
  5989. valid = value instanceof type;
  5990. }
  5991. return {
  5992. valid: valid,
  5993. expectedType: expectedType
  5994. }
  5995. }
  5996. /**
  5997. * Use function string name to check built-in types,
  5998. * because a simple equality check will fail when running
  5999. * across different vms / iframes.
  6000. */
  6001. function getType (fn) {
  6002. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  6003. return match ? match[1] : ''
  6004. }
  6005. function isSameType (a, b) {
  6006. return getType(a) === getType(b)
  6007. }
  6008. function getTypeIndex (type, expectedTypes) {
  6009. if (!Array.isArray(expectedTypes)) {
  6010. return isSameType(expectedTypes, type) ? 0 : -1
  6011. }
  6012. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  6013. if (isSameType(expectedTypes[i], type)) {
  6014. return i
  6015. }
  6016. }
  6017. return -1
  6018. }
  6019. function getInvalidTypeMessage (name, value, expectedTypes) {
  6020. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  6021. " Expected " + (expectedTypes.map(capitalize).join(', '));
  6022. var expectedType = expectedTypes[0];
  6023. var receivedType = toRawType(value);
  6024. var expectedValue = styleValue(value, expectedType);
  6025. var receivedValue = styleValue(value, receivedType);
  6026. // check if we need to specify expected value
  6027. if (expectedTypes.length === 1 &&
  6028. isExplicable(expectedType) &&
  6029. !isBoolean(expectedType, receivedType)) {
  6030. message += " with value " + expectedValue;
  6031. }
  6032. message += ", got " + receivedType + " ";
  6033. // check if we need to specify received value
  6034. if (isExplicable(receivedType)) {
  6035. message += "with value " + receivedValue + ".";
  6036. }
  6037. return message
  6038. }
  6039. function styleValue (value, type) {
  6040. if (type === 'String') {
  6041. return ("\"" + value + "\"")
  6042. } else if (type === 'Number') {
  6043. return ("" + (Number(value)))
  6044. } else {
  6045. return ("" + value)
  6046. }
  6047. }
  6048. function isExplicable (value) {
  6049. var explicitTypes = ['string', 'number', 'boolean'];
  6050. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  6051. }
  6052. function isBoolean () {
  6053. var args = [], len = arguments.length;
  6054. while ( len-- ) args[ len ] = arguments[ len ];
  6055. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  6056. }
  6057. /* */
  6058. function handleError (err, vm, info) {
  6059. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  6060. // See: https://github.com/vuejs/vuex/issues/1505
  6061. pushTarget();
  6062. try {
  6063. if (vm) {
  6064. var cur = vm;
  6065. while ((cur = cur.$parent)) {
  6066. var hooks = cur.$options.errorCaptured;
  6067. if (hooks) {
  6068. for (var i = 0; i < hooks.length; i++) {
  6069. try {
  6070. var capture = hooks[i].call(cur, err, vm, info) === false;
  6071. if (capture) { return }
  6072. } catch (e) {
  6073. globalHandleError(e, cur, 'errorCaptured hook');
  6074. }
  6075. }
  6076. }
  6077. }
  6078. }
  6079. globalHandleError(err, vm, info);
  6080. } finally {
  6081. popTarget();
  6082. }
  6083. }
  6084. function invokeWithErrorHandling (
  6085. handler,
  6086. context,
  6087. args,
  6088. vm,
  6089. info
  6090. ) {
  6091. var res;
  6092. try {
  6093. res = args ? handler.apply(context, args) : handler.call(context);
  6094. if (res && !res._isVue && isPromise(res) && !res._handled) {
  6095. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  6096. // issue #9511
  6097. // avoid catch triggering multiple times when nested calls
  6098. res._handled = true;
  6099. }
  6100. } catch (e) {
  6101. handleError(e, vm, info);
  6102. }
  6103. return res
  6104. }
  6105. function globalHandleError (err, vm, info) {
  6106. if (config.errorHandler) {
  6107. try {
  6108. return config.errorHandler.call(null, err, vm, info)
  6109. } catch (e) {
  6110. // if the user intentionally throws the original error in the handler,
  6111. // do not log it twice
  6112. if (e !== err) {
  6113. logError(e, null, 'config.errorHandler');
  6114. }
  6115. }
  6116. }
  6117. logError(err, vm, info);
  6118. }
  6119. function logError (err, vm, info) {
  6120. if (true) {
  6121. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  6122. }
  6123. /* istanbul ignore else */
  6124. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  6125. console.error(err);
  6126. } else {
  6127. throw err
  6128. }
  6129. }
  6130. /* */
  6131. var callbacks = [];
  6132. var pending = false;
  6133. function flushCallbacks () {
  6134. pending = false;
  6135. var copies = callbacks.slice(0);
  6136. callbacks.length = 0;
  6137. for (var i = 0; i < copies.length; i++) {
  6138. copies[i]();
  6139. }
  6140. }
  6141. // Here we have async deferring wrappers using microtasks.
  6142. // In 2.5 we used (macro) tasks (in combination with microtasks).
  6143. // However, it has subtle problems when state is changed right before repaint
  6144. // (e.g. #6813, out-in transitions).
  6145. // Also, using (macro) tasks in event handler would cause some weird behaviors
  6146. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  6147. // So we now use microtasks everywhere, again.
  6148. // A major drawback of this tradeoff is that there are some scenarios
  6149. // where microtasks have too high a priority and fire in between supposedly
  6150. // sequential events (e.g. #4521, #6690, which have workarounds)
  6151. // or even between bubbling of the same event (#6566).
  6152. var timerFunc;
  6153. // The nextTick behavior leverages the microtask queue, which can be accessed
  6154. // via either native Promise.then or MutationObserver.
  6155. // MutationObserver has wider support, however it is seriously bugged in
  6156. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  6157. // completely stops working after triggering a few times... so, if native
  6158. // Promise is available, we will use it:
  6159. /* istanbul ignore next, $flow-disable-line */
  6160. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  6161. var p = Promise.resolve();
  6162. timerFunc = function () {
  6163. p.then(flushCallbacks);
  6164. // In problematic UIWebViews, Promise.then doesn't completely break, but
  6165. // it can get stuck in a weird state where callbacks are pushed into the
  6166. // microtask queue but the queue isn't being flushed, until the browser
  6167. // needs to do some other work, e.g. handle a timer. Therefore we can
  6168. // "force" the microtask queue to be flushed by adding an empty timer.
  6169. if (isIOS) { setTimeout(noop); }
  6170. };
  6171. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  6172. isNative(MutationObserver) ||
  6173. // PhantomJS and iOS 7.x
  6174. MutationObserver.toString() === '[object MutationObserverConstructor]'
  6175. )) {
  6176. // Use MutationObserver where native Promise is not available,
  6177. // e.g. PhantomJS, iOS7, Android 4.4
  6178. // (#6466 MutationObserver is unreliable in IE11)
  6179. var counter = 1;
  6180. var observer = new MutationObserver(flushCallbacks);
  6181. var textNode = document.createTextNode(String(counter));
  6182. observer.observe(textNode, {
  6183. characterData: true
  6184. });
  6185. timerFunc = function () {
  6186. counter = (counter + 1) % 2;
  6187. textNode.data = String(counter);
  6188. };
  6189. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  6190. // Fallback to setImmediate.
  6191. // Technically it leverages the (macro) task queue,
  6192. // but it is still a better choice than setTimeout.
  6193. timerFunc = function () {
  6194. setImmediate(flushCallbacks);
  6195. };
  6196. } else {
  6197. // Fallback to setTimeout.
  6198. timerFunc = function () {
  6199. setTimeout(flushCallbacks, 0);
  6200. };
  6201. }
  6202. function nextTick (cb, ctx) {
  6203. var _resolve;
  6204. callbacks.push(function () {
  6205. if (cb) {
  6206. try {
  6207. cb.call(ctx);
  6208. } catch (e) {
  6209. handleError(e, ctx, 'nextTick');
  6210. }
  6211. } else if (_resolve) {
  6212. _resolve(ctx);
  6213. }
  6214. });
  6215. if (!pending) {
  6216. pending = true;
  6217. timerFunc();
  6218. }
  6219. // $flow-disable-line
  6220. if (!cb && typeof Promise !== 'undefined') {
  6221. return new Promise(function (resolve) {
  6222. _resolve = resolve;
  6223. })
  6224. }
  6225. }
  6226. /* */
  6227. /* not type checking this file because flow doesn't play well with Proxy */
  6228. var initProxy;
  6229. if (true) {
  6230. var allowedGlobals = makeMap(
  6231. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  6232. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  6233. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  6234. 'require' // for Webpack/Browserify
  6235. );
  6236. var warnNonPresent = function (target, key) {
  6237. warn(
  6238. "Property or method \"" + key + "\" is not defined on the instance but " +
  6239. 'referenced during render. Make sure that this property is reactive, ' +
  6240. 'either in the data option, or for class-based components, by ' +
  6241. 'initializing the property. ' +
  6242. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  6243. target
  6244. );
  6245. };
  6246. var warnReservedPrefix = function (target, key) {
  6247. warn(
  6248. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  6249. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  6250. 'prevent conflicts with Vue internals. ' +
  6251. 'See: https://vuejs.org/v2/api/#data',
  6252. target
  6253. );
  6254. };
  6255. var hasProxy =
  6256. typeof Proxy !== 'undefined' && isNative(Proxy);
  6257. if (hasProxy) {
  6258. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  6259. config.keyCodes = new Proxy(config.keyCodes, {
  6260. set: function set (target, key, value) {
  6261. if (isBuiltInModifier(key)) {
  6262. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  6263. return false
  6264. } else {
  6265. target[key] = value;
  6266. return true
  6267. }
  6268. }
  6269. });
  6270. }
  6271. var hasHandler = {
  6272. has: function has (target, key) {
  6273. var has = key in target;
  6274. var isAllowed = allowedGlobals(key) ||
  6275. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  6276. if (!has && !isAllowed) {
  6277. if (key in target.$data) { warnReservedPrefix(target, key); }
  6278. else { warnNonPresent(target, key); }
  6279. }
  6280. return has || !isAllowed
  6281. }
  6282. };
  6283. var getHandler = {
  6284. get: function get (target, key) {
  6285. if (typeof key === 'string' && !(key in target)) {
  6286. if (key in target.$data) { warnReservedPrefix(target, key); }
  6287. else { warnNonPresent(target, key); }
  6288. }
  6289. return target[key]
  6290. }
  6291. };
  6292. initProxy = function initProxy (vm) {
  6293. if (hasProxy) {
  6294. // determine which proxy handler to use
  6295. var options = vm.$options;
  6296. var handlers = options.render && options.render._withStripped
  6297. ? getHandler
  6298. : hasHandler;
  6299. vm._renderProxy = new Proxy(vm, handlers);
  6300. } else {
  6301. vm._renderProxy = vm;
  6302. }
  6303. };
  6304. }
  6305. /* */
  6306. var seenObjects = new _Set();
  6307. /**
  6308. * Recursively traverse an object to evoke all converted
  6309. * getters, so that every nested property inside the object
  6310. * is collected as a "deep" dependency.
  6311. */
  6312. function traverse (val) {
  6313. _traverse(val, seenObjects);
  6314. seenObjects.clear();
  6315. }
  6316. function _traverse (val, seen) {
  6317. var i, keys;
  6318. var isA = Array.isArray(val);
  6319. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  6320. return
  6321. }
  6322. if (val.__ob__) {
  6323. var depId = val.__ob__.dep.id;
  6324. if (seen.has(depId)) {
  6325. return
  6326. }
  6327. seen.add(depId);
  6328. }
  6329. if (isA) {
  6330. i = val.length;
  6331. while (i--) { _traverse(val[i], seen); }
  6332. } else {
  6333. keys = Object.keys(val);
  6334. i = keys.length;
  6335. while (i--) { _traverse(val[keys[i]], seen); }
  6336. }
  6337. }
  6338. var mark;
  6339. var measure;
  6340. if (true) {
  6341. var perf = inBrowser && window.performance;
  6342. /* istanbul ignore if */
  6343. if (
  6344. perf &&
  6345. perf.mark &&
  6346. perf.measure &&
  6347. perf.clearMarks &&
  6348. perf.clearMeasures
  6349. ) {
  6350. mark = function (tag) { return perf.mark(tag); };
  6351. measure = function (name, startTag, endTag) {
  6352. perf.measure(name, startTag, endTag);
  6353. perf.clearMarks(startTag);
  6354. perf.clearMarks(endTag);
  6355. // perf.clearMeasures(name)
  6356. };
  6357. }
  6358. }
  6359. /* */
  6360. var normalizeEvent = cached(function (name) {
  6361. var passive = name.charAt(0) === '&';
  6362. name = passive ? name.slice(1) : name;
  6363. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  6364. name = once$$1 ? name.slice(1) : name;
  6365. var capture = name.charAt(0) === '!';
  6366. name = capture ? name.slice(1) : name;
  6367. return {
  6368. name: name,
  6369. once: once$$1,
  6370. capture: capture,
  6371. passive: passive
  6372. }
  6373. });
  6374. function createFnInvoker (fns, vm) {
  6375. function invoker () {
  6376. var arguments$1 = arguments;
  6377. var fns = invoker.fns;
  6378. if (Array.isArray(fns)) {
  6379. var cloned = fns.slice();
  6380. for (var i = 0; i < cloned.length; i++) {
  6381. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  6382. }
  6383. } else {
  6384. // return handler return value for single handlers
  6385. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  6386. }
  6387. }
  6388. invoker.fns = fns;
  6389. return invoker
  6390. }
  6391. function updateListeners (
  6392. on,
  6393. oldOn,
  6394. add,
  6395. remove$$1,
  6396. createOnceHandler,
  6397. vm
  6398. ) {
  6399. var name, def$$1, cur, old, event;
  6400. for (name in on) {
  6401. def$$1 = cur = on[name];
  6402. old = oldOn[name];
  6403. event = normalizeEvent(name);
  6404. if (isUndef(cur)) {
  6405. true && warn(
  6406. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  6407. vm
  6408. );
  6409. } else if (isUndef(old)) {
  6410. if (isUndef(cur.fns)) {
  6411. cur = on[name] = createFnInvoker(cur, vm);
  6412. }
  6413. if (isTrue(event.once)) {
  6414. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  6415. }
  6416. add(event.name, cur, event.capture, event.passive, event.params);
  6417. } else if (cur !== old) {
  6418. old.fns = cur;
  6419. on[name] = old;
  6420. }
  6421. }
  6422. for (name in oldOn) {
  6423. if (isUndef(on[name])) {
  6424. event = normalizeEvent(name);
  6425. remove$$1(event.name, oldOn[name], event.capture);
  6426. }
  6427. }
  6428. }
  6429. /* */
  6430. /* */
  6431. // fixed by xxxxxx (mp properties)
  6432. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  6433. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  6434. if (isUndef(propOptions)) {
  6435. return res
  6436. }
  6437. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  6438. var attrs = data.attrs;
  6439. var props = data.props;
  6440. if (isDef(attrs) || isDef(props)) {
  6441. for (var key in propOptions) {
  6442. var altKey = hyphenate(key);
  6443. var result = checkProp(res, props, key, altKey, true) ||
  6444. checkProp(res, attrs, key, altKey, false);
  6445. // externalClass
  6446. if (
  6447. result &&
  6448. res[key] &&
  6449. externalClasses.indexOf(altKey) !== -1 &&
  6450. context[camelize(res[key])]
  6451. ) {
  6452. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  6453. res[key] = context[camelize(res[key])];
  6454. }
  6455. }
  6456. }
  6457. return res
  6458. }
  6459. function extractPropsFromVNodeData (
  6460. data,
  6461. Ctor,
  6462. tag,
  6463. context// fixed by xxxxxx
  6464. ) {
  6465. // we are only extracting raw values here.
  6466. // validation and default values are handled in the child
  6467. // component itself.
  6468. var propOptions = Ctor.options.props;
  6469. if (isUndef(propOptions)) {
  6470. // fixed by xxxxxx
  6471. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  6472. }
  6473. var res = {};
  6474. var attrs = data.attrs;
  6475. var props = data.props;
  6476. if (isDef(attrs) || isDef(props)) {
  6477. for (var key in propOptions) {
  6478. var altKey = hyphenate(key);
  6479. if (true) {
  6480. var keyInLowerCase = key.toLowerCase();
  6481. if (
  6482. key !== keyInLowerCase &&
  6483. attrs && hasOwn(attrs, keyInLowerCase)
  6484. ) {
  6485. tip(
  6486. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  6487. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  6488. " \"" + key + "\". " +
  6489. "Note that HTML attributes are case-insensitive and camelCased " +
  6490. "props need to use their kebab-case equivalents when using in-DOM " +
  6491. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  6492. );
  6493. }
  6494. }
  6495. checkProp(res, props, key, altKey, true) ||
  6496. checkProp(res, attrs, key, altKey, false);
  6497. }
  6498. }
  6499. // fixed by xxxxxx
  6500. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  6501. }
  6502. function checkProp (
  6503. res,
  6504. hash,
  6505. key,
  6506. altKey,
  6507. preserve
  6508. ) {
  6509. if (isDef(hash)) {
  6510. if (hasOwn(hash, key)) {
  6511. res[key] = hash[key];
  6512. if (!preserve) {
  6513. delete hash[key];
  6514. }
  6515. return true
  6516. } else if (hasOwn(hash, altKey)) {
  6517. res[key] = hash[altKey];
  6518. if (!preserve) {
  6519. delete hash[altKey];
  6520. }
  6521. return true
  6522. }
  6523. }
  6524. return false
  6525. }
  6526. /* */
  6527. // The template compiler attempts to minimize the need for normalization by
  6528. // statically analyzing the template at compile time.
  6529. //
  6530. // For plain HTML markup, normalization can be completely skipped because the
  6531. // generated render function is guaranteed to return Array<VNode>. There are
  6532. // two cases where extra normalization is needed:
  6533. // 1. When the children contains components - because a functional component
  6534. // may return an Array instead of a single root. In this case, just a simple
  6535. // normalization is needed - if any child is an Array, we flatten the whole
  6536. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  6537. // because functional components already normalize their own children.
  6538. function simpleNormalizeChildren (children) {
  6539. for (var i = 0; i < children.length; i++) {
  6540. if (Array.isArray(children[i])) {
  6541. return Array.prototype.concat.apply([], children)
  6542. }
  6543. }
  6544. return children
  6545. }
  6546. // 2. When the children contains constructs that always generated nested Arrays,
  6547. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  6548. // with hand-written render functions / JSX. In such cases a full normalization
  6549. // is needed to cater to all possible types of children values.
  6550. function normalizeChildren (children) {
  6551. return isPrimitive(children)
  6552. ? [createTextVNode(children)]
  6553. : Array.isArray(children)
  6554. ? normalizeArrayChildren(children)
  6555. : undefined
  6556. }
  6557. function isTextNode (node) {
  6558. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  6559. }
  6560. function normalizeArrayChildren (children, nestedIndex) {
  6561. var res = [];
  6562. var i, c, lastIndex, last;
  6563. for (i = 0; i < children.length; i++) {
  6564. c = children[i];
  6565. if (isUndef(c) || typeof c === 'boolean') { continue }
  6566. lastIndex = res.length - 1;
  6567. last = res[lastIndex];
  6568. // nested
  6569. if (Array.isArray(c)) {
  6570. if (c.length > 0) {
  6571. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  6572. // merge adjacent text nodes
  6573. if (isTextNode(c[0]) && isTextNode(last)) {
  6574. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  6575. c.shift();
  6576. }
  6577. res.push.apply(res, c);
  6578. }
  6579. } else if (isPrimitive(c)) {
  6580. if (isTextNode(last)) {
  6581. // merge adjacent text nodes
  6582. // this is necessary for SSR hydration because text nodes are
  6583. // essentially merged when rendered to HTML strings
  6584. res[lastIndex] = createTextVNode(last.text + c);
  6585. } else if (c !== '') {
  6586. // convert primitive to vnode
  6587. res.push(createTextVNode(c));
  6588. }
  6589. } else {
  6590. if (isTextNode(c) && isTextNode(last)) {
  6591. // merge adjacent text nodes
  6592. res[lastIndex] = createTextVNode(last.text + c.text);
  6593. } else {
  6594. // default key for nested array children (likely generated by v-for)
  6595. if (isTrue(children._isVList) &&
  6596. isDef(c.tag) &&
  6597. isUndef(c.key) &&
  6598. isDef(nestedIndex)) {
  6599. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  6600. }
  6601. res.push(c);
  6602. }
  6603. }
  6604. }
  6605. return res
  6606. }
  6607. /* */
  6608. function initProvide (vm) {
  6609. var provide = vm.$options.provide;
  6610. if (provide) {
  6611. vm._provided = typeof provide === 'function'
  6612. ? provide.call(vm)
  6613. : provide;
  6614. }
  6615. }
  6616. function initInjections (vm) {
  6617. var result = resolveInject(vm.$options.inject, vm);
  6618. if (result) {
  6619. toggleObserving(false);
  6620. Object.keys(result).forEach(function (key) {
  6621. /* istanbul ignore else */
  6622. if (true) {
  6623. defineReactive$$1(vm, key, result[key], function () {
  6624. warn(
  6625. "Avoid mutating an injected value directly since the changes will be " +
  6626. "overwritten whenever the provided component re-renders. " +
  6627. "injection being mutated: \"" + key + "\"",
  6628. vm
  6629. );
  6630. });
  6631. } else {}
  6632. });
  6633. toggleObserving(true);
  6634. }
  6635. }
  6636. function resolveInject (inject, vm) {
  6637. if (inject) {
  6638. // inject is :any because flow is not smart enough to figure out cached
  6639. var result = Object.create(null);
  6640. var keys = hasSymbol
  6641. ? Reflect.ownKeys(inject)
  6642. : Object.keys(inject);
  6643. for (var i = 0; i < keys.length; i++) {
  6644. var key = keys[i];
  6645. // #6574 in case the inject object is observed...
  6646. if (key === '__ob__') { continue }
  6647. var provideKey = inject[key].from;
  6648. var source = vm;
  6649. while (source) {
  6650. if (source._provided && hasOwn(source._provided, provideKey)) {
  6651. result[key] = source._provided[provideKey];
  6652. break
  6653. }
  6654. source = source.$parent;
  6655. }
  6656. if (!source) {
  6657. if ('default' in inject[key]) {
  6658. var provideDefault = inject[key].default;
  6659. result[key] = typeof provideDefault === 'function'
  6660. ? provideDefault.call(vm)
  6661. : provideDefault;
  6662. } else if (true) {
  6663. warn(("Injection \"" + key + "\" not found"), vm);
  6664. }
  6665. }
  6666. }
  6667. return result
  6668. }
  6669. }
  6670. /* */
  6671. /**
  6672. * Runtime helper for resolving raw children VNodes into a slot object.
  6673. */
  6674. function resolveSlots (
  6675. children,
  6676. context
  6677. ) {
  6678. if (!children || !children.length) {
  6679. return {}
  6680. }
  6681. var slots = {};
  6682. for (var i = 0, l = children.length; i < l; i++) {
  6683. var child = children[i];
  6684. var data = child.data;
  6685. // remove slot attribute if the node is resolved as a Vue slot node
  6686. if (data && data.attrs && data.attrs.slot) {
  6687. delete data.attrs.slot;
  6688. }
  6689. // named slots should only be respected if the vnode was rendered in the
  6690. // same context.
  6691. if ((child.context === context || child.fnContext === context) &&
  6692. data && data.slot != null
  6693. ) {
  6694. var name = data.slot;
  6695. var slot = (slots[name] || (slots[name] = []));
  6696. if (child.tag === 'template') {
  6697. slot.push.apply(slot, child.children || []);
  6698. } else {
  6699. slot.push(child);
  6700. }
  6701. } else {
  6702. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  6703. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  6704. (slots['page'] || (slots['page'] = [])).push(child);
  6705. }else{
  6706. (slots.default || (slots.default = [])).push(child);
  6707. }
  6708. }
  6709. }
  6710. // ignore slots that contains only whitespace
  6711. for (var name$1 in slots) {
  6712. if (slots[name$1].every(isWhitespace)) {
  6713. delete slots[name$1];
  6714. }
  6715. }
  6716. return slots
  6717. }
  6718. function isWhitespace (node) {
  6719. return (node.isComment && !node.asyncFactory) || node.text === ' '
  6720. }
  6721. /* */
  6722. function normalizeScopedSlots (
  6723. slots,
  6724. normalSlots,
  6725. prevSlots
  6726. ) {
  6727. var res;
  6728. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  6729. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  6730. var key = slots && slots.$key;
  6731. if (!slots) {
  6732. res = {};
  6733. } else if (slots._normalized) {
  6734. // fast path 1: child component re-render only, parent did not change
  6735. return slots._normalized
  6736. } else if (
  6737. isStable &&
  6738. prevSlots &&
  6739. prevSlots !== emptyObject &&
  6740. key === prevSlots.$key &&
  6741. !hasNormalSlots &&
  6742. !prevSlots.$hasNormal
  6743. ) {
  6744. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  6745. // only need to normalize once
  6746. return prevSlots
  6747. } else {
  6748. res = {};
  6749. for (var key$1 in slots) {
  6750. if (slots[key$1] && key$1[0] !== '$') {
  6751. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  6752. }
  6753. }
  6754. }
  6755. // expose normal slots on scopedSlots
  6756. for (var key$2 in normalSlots) {
  6757. if (!(key$2 in res)) {
  6758. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  6759. }
  6760. }
  6761. // avoriaz seems to mock a non-extensible $scopedSlots object
  6762. // and when that is passed down this would cause an error
  6763. if (slots && Object.isExtensible(slots)) {
  6764. (slots)._normalized = res;
  6765. }
  6766. def(res, '$stable', isStable);
  6767. def(res, '$key', key);
  6768. def(res, '$hasNormal', hasNormalSlots);
  6769. return res
  6770. }
  6771. function normalizeScopedSlot(normalSlots, key, fn) {
  6772. var normalized = function () {
  6773. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  6774. res = res && typeof res === 'object' && !Array.isArray(res)
  6775. ? [res] // single vnode
  6776. : normalizeChildren(res);
  6777. return res && (
  6778. res.length === 0 ||
  6779. (res.length === 1 && res[0].isComment) // #9658
  6780. ) ? undefined
  6781. : res
  6782. };
  6783. // this is a slot using the new v-slot syntax without scope. although it is
  6784. // compiled as a scoped slot, render fn users would expect it to be present
  6785. // on this.$slots because the usage is semantically a normal slot.
  6786. if (fn.proxy) {
  6787. Object.defineProperty(normalSlots, key, {
  6788. get: normalized,
  6789. enumerable: true,
  6790. configurable: true
  6791. });
  6792. }
  6793. return normalized
  6794. }
  6795. function proxyNormalSlot(slots, key) {
  6796. return function () { return slots[key]; }
  6797. }
  6798. /* */
  6799. /**
  6800. * Runtime helper for rendering v-for lists.
  6801. */
  6802. function renderList (
  6803. val,
  6804. render
  6805. ) {
  6806. var ret, i, l, keys, key;
  6807. if (Array.isArray(val) || typeof val === 'string') {
  6808. ret = new Array(val.length);
  6809. for (i = 0, l = val.length; i < l; i++) {
  6810. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  6811. }
  6812. } else if (typeof val === 'number') {
  6813. ret = new Array(val);
  6814. for (i = 0; i < val; i++) {
  6815. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  6816. }
  6817. } else if (isObject(val)) {
  6818. if (hasSymbol && val[Symbol.iterator]) {
  6819. ret = [];
  6820. var iterator = val[Symbol.iterator]();
  6821. var result = iterator.next();
  6822. while (!result.done) {
  6823. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  6824. result = iterator.next();
  6825. }
  6826. } else {
  6827. keys = Object.keys(val);
  6828. ret = new Array(keys.length);
  6829. for (i = 0, l = keys.length; i < l; i++) {
  6830. key = keys[i];
  6831. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  6832. }
  6833. }
  6834. }
  6835. if (!isDef(ret)) {
  6836. ret = [];
  6837. }
  6838. (ret)._isVList = true;
  6839. return ret
  6840. }
  6841. /* */
  6842. /**
  6843. * Runtime helper for rendering <slot>
  6844. */
  6845. function renderSlot (
  6846. name,
  6847. fallback,
  6848. props,
  6849. bindObject
  6850. ) {
  6851. var scopedSlotFn = this.$scopedSlots[name];
  6852. var nodes;
  6853. if (scopedSlotFn) { // scoped slot
  6854. props = props || {};
  6855. if (bindObject) {
  6856. if ( true && !isObject(bindObject)) {
  6857. warn(
  6858. 'slot v-bind without argument expects an Object',
  6859. this
  6860. );
  6861. }
  6862. props = extend(extend({}, bindObject), props);
  6863. }
  6864. // fixed by xxxxxx app-plus scopedSlot
  6865. nodes = scopedSlotFn(props, this, props._i) || fallback;
  6866. } else {
  6867. nodes = this.$slots[name] || fallback;
  6868. }
  6869. var target = props && props.slot;
  6870. if (target) {
  6871. return this.$createElement('template', { slot: target }, nodes)
  6872. } else {
  6873. return nodes
  6874. }
  6875. }
  6876. /* */
  6877. /**
  6878. * Runtime helper for resolving filters
  6879. */
  6880. function resolveFilter (id) {
  6881. return resolveAsset(this.$options, 'filters', id, true) || identity
  6882. }
  6883. /* */
  6884. function isKeyNotMatch (expect, actual) {
  6885. if (Array.isArray(expect)) {
  6886. return expect.indexOf(actual) === -1
  6887. } else {
  6888. return expect !== actual
  6889. }
  6890. }
  6891. /**
  6892. * Runtime helper for checking keyCodes from config.
  6893. * exposed as Vue.prototype._k
  6894. * passing in eventKeyName as last argument separately for backwards compat
  6895. */
  6896. function checkKeyCodes (
  6897. eventKeyCode,
  6898. key,
  6899. builtInKeyCode,
  6900. eventKeyName,
  6901. builtInKeyName
  6902. ) {
  6903. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  6904. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  6905. return isKeyNotMatch(builtInKeyName, eventKeyName)
  6906. } else if (mappedKeyCode) {
  6907. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  6908. } else if (eventKeyName) {
  6909. return hyphenate(eventKeyName) !== key
  6910. }
  6911. }
  6912. /* */
  6913. /**
  6914. * Runtime helper for merging v-bind="object" into a VNode's data.
  6915. */
  6916. function bindObjectProps (
  6917. data,
  6918. tag,
  6919. value,
  6920. asProp,
  6921. isSync
  6922. ) {
  6923. if (value) {
  6924. if (!isObject(value)) {
  6925. true && warn(
  6926. 'v-bind without argument expects an Object or Array value',
  6927. this
  6928. );
  6929. } else {
  6930. if (Array.isArray(value)) {
  6931. value = toObject(value);
  6932. }
  6933. var hash;
  6934. var loop = function ( key ) {
  6935. if (
  6936. key === 'class' ||
  6937. key === 'style' ||
  6938. isReservedAttribute(key)
  6939. ) {
  6940. hash = data;
  6941. } else {
  6942. var type = data.attrs && data.attrs.type;
  6943. hash = asProp || config.mustUseProp(tag, type, key)
  6944. ? data.domProps || (data.domProps = {})
  6945. : data.attrs || (data.attrs = {});
  6946. }
  6947. var camelizedKey = camelize(key);
  6948. var hyphenatedKey = hyphenate(key);
  6949. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  6950. hash[key] = value[key];
  6951. if (isSync) {
  6952. var on = data.on || (data.on = {});
  6953. on[("update:" + key)] = function ($event) {
  6954. value[key] = $event;
  6955. };
  6956. }
  6957. }
  6958. };
  6959. for (var key in value) loop( key );
  6960. }
  6961. }
  6962. return data
  6963. }
  6964. /* */
  6965. /**
  6966. * Runtime helper for rendering static trees.
  6967. */
  6968. function renderStatic (
  6969. index,
  6970. isInFor
  6971. ) {
  6972. var cached = this._staticTrees || (this._staticTrees = []);
  6973. var tree = cached[index];
  6974. // if has already-rendered static tree and not inside v-for,
  6975. // we can reuse the same tree.
  6976. if (tree && !isInFor) {
  6977. return tree
  6978. }
  6979. // otherwise, render a fresh tree.
  6980. tree = cached[index] = this.$options.staticRenderFns[index].call(
  6981. this._renderProxy,
  6982. null,
  6983. this // for render fns generated for functional component templates
  6984. );
  6985. markStatic(tree, ("__static__" + index), false);
  6986. return tree
  6987. }
  6988. /**
  6989. * Runtime helper for v-once.
  6990. * Effectively it means marking the node as static with a unique key.
  6991. */
  6992. function markOnce (
  6993. tree,
  6994. index,
  6995. key
  6996. ) {
  6997. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  6998. return tree
  6999. }
  7000. function markStatic (
  7001. tree,
  7002. key,
  7003. isOnce
  7004. ) {
  7005. if (Array.isArray(tree)) {
  7006. for (var i = 0; i < tree.length; i++) {
  7007. if (tree[i] && typeof tree[i] !== 'string') {
  7008. markStaticNode(tree[i], (key + "_" + i), isOnce);
  7009. }
  7010. }
  7011. } else {
  7012. markStaticNode(tree, key, isOnce);
  7013. }
  7014. }
  7015. function markStaticNode (node, key, isOnce) {
  7016. node.isStatic = true;
  7017. node.key = key;
  7018. node.isOnce = isOnce;
  7019. }
  7020. /* */
  7021. function bindObjectListeners (data, value) {
  7022. if (value) {
  7023. if (!isPlainObject(value)) {
  7024. true && warn(
  7025. 'v-on without argument expects an Object value',
  7026. this
  7027. );
  7028. } else {
  7029. var on = data.on = data.on ? extend({}, data.on) : {};
  7030. for (var key in value) {
  7031. var existing = on[key];
  7032. var ours = value[key];
  7033. on[key] = existing ? [].concat(existing, ours) : ours;
  7034. }
  7035. }
  7036. }
  7037. return data
  7038. }
  7039. /* */
  7040. function resolveScopedSlots (
  7041. fns, // see flow/vnode
  7042. res,
  7043. // the following are added in 2.6
  7044. hasDynamicKeys,
  7045. contentHashKey
  7046. ) {
  7047. res = res || { $stable: !hasDynamicKeys };
  7048. for (var i = 0; i < fns.length; i++) {
  7049. var slot = fns[i];
  7050. if (Array.isArray(slot)) {
  7051. resolveScopedSlots(slot, res, hasDynamicKeys);
  7052. } else if (slot) {
  7053. // marker for reverse proxying v-slot without scope on this.$slots
  7054. if (slot.proxy) {
  7055. slot.fn.proxy = true;
  7056. }
  7057. res[slot.key] = slot.fn;
  7058. }
  7059. }
  7060. if (contentHashKey) {
  7061. (res).$key = contentHashKey;
  7062. }
  7063. return res
  7064. }
  7065. /* */
  7066. function bindDynamicKeys (baseObj, values) {
  7067. for (var i = 0; i < values.length; i += 2) {
  7068. var key = values[i];
  7069. if (typeof key === 'string' && key) {
  7070. baseObj[values[i]] = values[i + 1];
  7071. } else if ( true && key !== '' && key !== null) {
  7072. // null is a special value for explicitly removing a binding
  7073. warn(
  7074. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  7075. this
  7076. );
  7077. }
  7078. }
  7079. return baseObj
  7080. }
  7081. // helper to dynamically append modifier runtime markers to event names.
  7082. // ensure only append when value is already string, otherwise it will be cast
  7083. // to string and cause the type check to miss.
  7084. function prependModifier (value, symbol) {
  7085. return typeof value === 'string' ? symbol + value : value
  7086. }
  7087. /* */
  7088. function installRenderHelpers (target) {
  7089. target._o = markOnce;
  7090. target._n = toNumber;
  7091. target._s = toString;
  7092. target._l = renderList;
  7093. target._t = renderSlot;
  7094. target._q = looseEqual;
  7095. target._i = looseIndexOf;
  7096. target._m = renderStatic;
  7097. target._f = resolveFilter;
  7098. target._k = checkKeyCodes;
  7099. target._b = bindObjectProps;
  7100. target._v = createTextVNode;
  7101. target._e = createEmptyVNode;
  7102. target._u = resolveScopedSlots;
  7103. target._g = bindObjectListeners;
  7104. target._d = bindDynamicKeys;
  7105. target._p = prependModifier;
  7106. }
  7107. /* */
  7108. function FunctionalRenderContext (
  7109. data,
  7110. props,
  7111. children,
  7112. parent,
  7113. Ctor
  7114. ) {
  7115. var this$1 = this;
  7116. var options = Ctor.options;
  7117. // ensure the createElement function in functional components
  7118. // gets a unique context - this is necessary for correct named slot check
  7119. var contextVm;
  7120. if (hasOwn(parent, '_uid')) {
  7121. contextVm = Object.create(parent);
  7122. // $flow-disable-line
  7123. contextVm._original = parent;
  7124. } else {
  7125. // the context vm passed in is a functional context as well.
  7126. // in this case we want to make sure we are able to get a hold to the
  7127. // real context instance.
  7128. contextVm = parent;
  7129. // $flow-disable-line
  7130. parent = parent._original;
  7131. }
  7132. var isCompiled = isTrue(options._compiled);
  7133. var needNormalization = !isCompiled;
  7134. this.data = data;
  7135. this.props = props;
  7136. this.children = children;
  7137. this.parent = parent;
  7138. this.listeners = data.on || emptyObject;
  7139. this.injections = resolveInject(options.inject, parent);
  7140. this.slots = function () {
  7141. if (!this$1.$slots) {
  7142. normalizeScopedSlots(
  7143. data.scopedSlots,
  7144. this$1.$slots = resolveSlots(children, parent)
  7145. );
  7146. }
  7147. return this$1.$slots
  7148. };
  7149. Object.defineProperty(this, 'scopedSlots', ({
  7150. enumerable: true,
  7151. get: function get () {
  7152. return normalizeScopedSlots(data.scopedSlots, this.slots())
  7153. }
  7154. }));
  7155. // support for compiled functional template
  7156. if (isCompiled) {
  7157. // exposing $options for renderStatic()
  7158. this.$options = options;
  7159. // pre-resolve slots for renderSlot()
  7160. this.$slots = this.slots();
  7161. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  7162. }
  7163. if (options._scopeId) {
  7164. this._c = function (a, b, c, d) {
  7165. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  7166. if (vnode && !Array.isArray(vnode)) {
  7167. vnode.fnScopeId = options._scopeId;
  7168. vnode.fnContext = parent;
  7169. }
  7170. return vnode
  7171. };
  7172. } else {
  7173. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  7174. }
  7175. }
  7176. installRenderHelpers(FunctionalRenderContext.prototype);
  7177. function createFunctionalComponent (
  7178. Ctor,
  7179. propsData,
  7180. data,
  7181. contextVm,
  7182. children
  7183. ) {
  7184. var options = Ctor.options;
  7185. var props = {};
  7186. var propOptions = options.props;
  7187. if (isDef(propOptions)) {
  7188. for (var key in propOptions) {
  7189. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  7190. }
  7191. } else {
  7192. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  7193. if (isDef(data.props)) { mergeProps(props, data.props); }
  7194. }
  7195. var renderContext = new FunctionalRenderContext(
  7196. data,
  7197. props,
  7198. children,
  7199. contextVm,
  7200. Ctor
  7201. );
  7202. var vnode = options.render.call(null, renderContext._c, renderContext);
  7203. if (vnode instanceof VNode) {
  7204. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  7205. } else if (Array.isArray(vnode)) {
  7206. var vnodes = normalizeChildren(vnode) || [];
  7207. var res = new Array(vnodes.length);
  7208. for (var i = 0; i < vnodes.length; i++) {
  7209. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  7210. }
  7211. return res
  7212. }
  7213. }
  7214. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  7215. // #7817 clone node before setting fnContext, otherwise if the node is reused
  7216. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  7217. // that should not be matched to match.
  7218. var clone = cloneVNode(vnode);
  7219. clone.fnContext = contextVm;
  7220. clone.fnOptions = options;
  7221. if (true) {
  7222. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  7223. }
  7224. if (data.slot) {
  7225. (clone.data || (clone.data = {})).slot = data.slot;
  7226. }
  7227. return clone
  7228. }
  7229. function mergeProps (to, from) {
  7230. for (var key in from) {
  7231. to[camelize(key)] = from[key];
  7232. }
  7233. }
  7234. /* */
  7235. /* */
  7236. /* */
  7237. /* */
  7238. // inline hooks to be invoked on component VNodes during patch
  7239. var componentVNodeHooks = {
  7240. init: function init (vnode, hydrating) {
  7241. if (
  7242. vnode.componentInstance &&
  7243. !vnode.componentInstance._isDestroyed &&
  7244. vnode.data.keepAlive
  7245. ) {
  7246. // kept-alive components, treat as a patch
  7247. var mountedNode = vnode; // work around flow
  7248. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  7249. } else {
  7250. var child = vnode.componentInstance = createComponentInstanceForVnode(
  7251. vnode,
  7252. activeInstance
  7253. );
  7254. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  7255. }
  7256. },
  7257. prepatch: function prepatch (oldVnode, vnode) {
  7258. var options = vnode.componentOptions;
  7259. var child = vnode.componentInstance = oldVnode.componentInstance;
  7260. updateChildComponent(
  7261. child,
  7262. options.propsData, // updated props
  7263. options.listeners, // updated listeners
  7264. vnode, // new parent vnode
  7265. options.children // new children
  7266. );
  7267. },
  7268. insert: function insert (vnode) {
  7269. var context = vnode.context;
  7270. var componentInstance = vnode.componentInstance;
  7271. if (!componentInstance._isMounted) {
  7272. callHook(componentInstance, 'onServiceCreated');
  7273. callHook(componentInstance, 'onServiceAttached');
  7274. componentInstance._isMounted = true;
  7275. callHook(componentInstance, 'mounted');
  7276. }
  7277. if (vnode.data.keepAlive) {
  7278. if (context._isMounted) {
  7279. // vue-router#1212
  7280. // During updates, a kept-alive component's child components may
  7281. // change, so directly walking the tree here may call activated hooks
  7282. // on incorrect children. Instead we push them into a queue which will
  7283. // be processed after the whole patch process ended.
  7284. queueActivatedComponent(componentInstance);
  7285. } else {
  7286. activateChildComponent(componentInstance, true /* direct */);
  7287. }
  7288. }
  7289. },
  7290. destroy: function destroy (vnode) {
  7291. var componentInstance = vnode.componentInstance;
  7292. if (!componentInstance._isDestroyed) {
  7293. if (!vnode.data.keepAlive) {
  7294. componentInstance.$destroy();
  7295. } else {
  7296. deactivateChildComponent(componentInstance, true /* direct */);
  7297. }
  7298. }
  7299. }
  7300. };
  7301. var hooksToMerge = Object.keys(componentVNodeHooks);
  7302. function createComponent (
  7303. Ctor,
  7304. data,
  7305. context,
  7306. children,
  7307. tag
  7308. ) {
  7309. if (isUndef(Ctor)) {
  7310. return
  7311. }
  7312. var baseCtor = context.$options._base;
  7313. // plain options object: turn it into a constructor
  7314. if (isObject(Ctor)) {
  7315. Ctor = baseCtor.extend(Ctor);
  7316. }
  7317. // if at this stage it's not a constructor or an async component factory,
  7318. // reject.
  7319. if (typeof Ctor !== 'function') {
  7320. if (true) {
  7321. warn(("Invalid Component definition: " + (String(Ctor))), context);
  7322. }
  7323. return
  7324. }
  7325. // async component
  7326. var asyncFactory;
  7327. if (isUndef(Ctor.cid)) {
  7328. asyncFactory = Ctor;
  7329. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  7330. if (Ctor === undefined) {
  7331. // return a placeholder node for async component, which is rendered
  7332. // as a comment node but preserves all the raw information for the node.
  7333. // the information will be used for async server-rendering and hydration.
  7334. return createAsyncPlaceholder(
  7335. asyncFactory,
  7336. data,
  7337. context,
  7338. children,
  7339. tag
  7340. )
  7341. }
  7342. }
  7343. data = data || {};
  7344. // resolve constructor options in case global mixins are applied after
  7345. // component constructor creation
  7346. resolveConstructorOptions(Ctor);
  7347. // transform component v-model data into props & events
  7348. if (isDef(data.model)) {
  7349. transformModel(Ctor.options, data);
  7350. }
  7351. // extract props
  7352. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  7353. // functional component
  7354. if (isTrue(Ctor.options.functional)) {
  7355. return createFunctionalComponent(Ctor, propsData, data, context, children)
  7356. }
  7357. // extract listeners, since these needs to be treated as
  7358. // child component listeners instead of DOM listeners
  7359. var listeners = data.on;
  7360. // replace with listeners with .native modifier
  7361. // so it gets processed during parent component patch.
  7362. data.on = data.nativeOn;
  7363. if (isTrue(Ctor.options.abstract)) {
  7364. // abstract components do not keep anything
  7365. // other than props & listeners & slot
  7366. // work around flow
  7367. var slot = data.slot;
  7368. data = {};
  7369. if (slot) {
  7370. data.slot = slot;
  7371. }
  7372. }
  7373. // install component management hooks onto the placeholder node
  7374. installComponentHooks(data);
  7375. // return a placeholder vnode
  7376. var name = Ctor.options.name || tag;
  7377. var vnode = new VNode(
  7378. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  7379. data, undefined, undefined, undefined, context,
  7380. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  7381. asyncFactory
  7382. );
  7383. return vnode
  7384. }
  7385. function createComponentInstanceForVnode (
  7386. vnode, // we know it's MountedComponentVNode but flow doesn't
  7387. parent // activeInstance in lifecycle state
  7388. ) {
  7389. var options = {
  7390. _isComponent: true,
  7391. _parentVnode: vnode,
  7392. parent: parent
  7393. };
  7394. // check inline-template render functions
  7395. var inlineTemplate = vnode.data.inlineTemplate;
  7396. if (isDef(inlineTemplate)) {
  7397. options.render = inlineTemplate.render;
  7398. options.staticRenderFns = inlineTemplate.staticRenderFns;
  7399. }
  7400. return new vnode.componentOptions.Ctor(options)
  7401. }
  7402. function installComponentHooks (data) {
  7403. var hooks = data.hook || (data.hook = {});
  7404. for (var i = 0; i < hooksToMerge.length; i++) {
  7405. var key = hooksToMerge[i];
  7406. var existing = hooks[key];
  7407. var toMerge = componentVNodeHooks[key];
  7408. if (existing !== toMerge && !(existing && existing._merged)) {
  7409. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  7410. }
  7411. }
  7412. }
  7413. function mergeHook$1 (f1, f2) {
  7414. var merged = function (a, b) {
  7415. // flow complains about extra args which is why we use any
  7416. f1(a, b);
  7417. f2(a, b);
  7418. };
  7419. merged._merged = true;
  7420. return merged
  7421. }
  7422. // transform component v-model info (value and callback) into
  7423. // prop and event handler respectively.
  7424. function transformModel (options, data) {
  7425. var prop = (options.model && options.model.prop) || 'value';
  7426. var event = (options.model && options.model.event) || 'input'
  7427. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  7428. var on = data.on || (data.on = {});
  7429. var existing = on[event];
  7430. var callback = data.model.callback;
  7431. if (isDef(existing)) {
  7432. if (
  7433. Array.isArray(existing)
  7434. ? existing.indexOf(callback) === -1
  7435. : existing !== callback
  7436. ) {
  7437. on[event] = [callback].concat(existing);
  7438. }
  7439. } else {
  7440. on[event] = callback;
  7441. }
  7442. }
  7443. /* */
  7444. var SIMPLE_NORMALIZE = 1;
  7445. var ALWAYS_NORMALIZE = 2;
  7446. // wrapper function for providing a more flexible interface
  7447. // without getting yelled at by flow
  7448. function createElement (
  7449. context,
  7450. tag,
  7451. data,
  7452. children,
  7453. normalizationType,
  7454. alwaysNormalize
  7455. ) {
  7456. if (Array.isArray(data) || isPrimitive(data)) {
  7457. normalizationType = children;
  7458. children = data;
  7459. data = undefined;
  7460. }
  7461. if (isTrue(alwaysNormalize)) {
  7462. normalizationType = ALWAYS_NORMALIZE;
  7463. }
  7464. return _createElement(context, tag, data, children, normalizationType)
  7465. }
  7466. function _createElement (
  7467. context,
  7468. tag,
  7469. data,
  7470. children,
  7471. normalizationType
  7472. ) {
  7473. if (isDef(data) && isDef((data).__ob__)) {
  7474. true && warn(
  7475. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  7476. 'Always create fresh vnode data objects in each render!',
  7477. context
  7478. );
  7479. return createEmptyVNode()
  7480. }
  7481. // object syntax in v-bind
  7482. if (isDef(data) && isDef(data.is)) {
  7483. tag = data.is;
  7484. }
  7485. if (!tag) {
  7486. // in case of component :is set to falsy value
  7487. return createEmptyVNode()
  7488. }
  7489. // warn against non-primitive key
  7490. if ( true &&
  7491. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  7492. ) {
  7493. {
  7494. warn(
  7495. 'Avoid using non-primitive value as key, ' +
  7496. 'use string/number value instead.',
  7497. context
  7498. );
  7499. }
  7500. }
  7501. // support single function children as default scoped slot
  7502. if (Array.isArray(children) &&
  7503. typeof children[0] === 'function'
  7504. ) {
  7505. data = data || {};
  7506. data.scopedSlots = { default: children[0] };
  7507. children.length = 0;
  7508. }
  7509. if (normalizationType === ALWAYS_NORMALIZE) {
  7510. children = normalizeChildren(children);
  7511. } else if (normalizationType === SIMPLE_NORMALIZE) {
  7512. children = simpleNormalizeChildren(children);
  7513. }
  7514. var vnode, ns;
  7515. if (typeof tag === 'string') {
  7516. var Ctor;
  7517. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  7518. if (config.isReservedTag(tag)) {
  7519. // platform built-in elements
  7520. if ( true && isDef(data) && isDef(data.nativeOn)) {
  7521. warn(
  7522. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  7523. context
  7524. );
  7525. }
  7526. vnode = new VNode(
  7527. config.parsePlatformTagName(tag), data, children,
  7528. undefined, undefined, context
  7529. );
  7530. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  7531. // component
  7532. vnode = createComponent(Ctor, data, context, children, tag);
  7533. } else {
  7534. // unknown or unlisted namespaced elements
  7535. // check at runtime because it may get assigned a namespace when its
  7536. // parent normalizes children
  7537. vnode = new VNode(
  7538. tag, data, children,
  7539. undefined, undefined, context
  7540. );
  7541. }
  7542. } else {
  7543. // direct component options / constructor
  7544. vnode = createComponent(tag, data, context, children);
  7545. }
  7546. if (Array.isArray(vnode)) {
  7547. return vnode
  7548. } else if (isDef(vnode)) {
  7549. if (isDef(ns)) { applyNS(vnode, ns); }
  7550. if (isDef(data)) { registerDeepBindings(data); }
  7551. return vnode
  7552. } else {
  7553. return createEmptyVNode()
  7554. }
  7555. }
  7556. function applyNS (vnode, ns, force) {
  7557. vnode.ns = ns;
  7558. if (vnode.tag === 'foreignObject') {
  7559. // use default namespace inside foreignObject
  7560. ns = undefined;
  7561. force = true;
  7562. }
  7563. if (isDef(vnode.children)) {
  7564. for (var i = 0, l = vnode.children.length; i < l; i++) {
  7565. var child = vnode.children[i];
  7566. if (isDef(child.tag) && (
  7567. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  7568. applyNS(child, ns, force);
  7569. }
  7570. }
  7571. }
  7572. }
  7573. // ref #5318
  7574. // necessary to ensure parent re-render when deep bindings like :style and
  7575. // :class are used on slot nodes
  7576. function registerDeepBindings (data) {
  7577. if (isObject(data.style)) {
  7578. traverse(data.style);
  7579. }
  7580. if (isObject(data.class)) {
  7581. traverse(data.class);
  7582. }
  7583. }
  7584. /* */
  7585. function initRender (vm) {
  7586. vm._vnode = null; // the root of the child tree
  7587. vm._staticTrees = null; // v-once cached trees
  7588. var options = vm.$options;
  7589. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  7590. var renderContext = parentVnode && parentVnode.context;
  7591. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  7592. vm.$scopedSlots = emptyObject;
  7593. // bind the createElement fn to this instance
  7594. // so that we get proper render context inside it.
  7595. // args order: tag, data, children, normalizationType, alwaysNormalize
  7596. // internal version is used by render functions compiled from templates
  7597. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  7598. // normalization is always applied for the public version, used in
  7599. // user-written render functions.
  7600. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  7601. // $attrs & $listeners are exposed for easier HOC creation.
  7602. // they need to be reactive so that HOCs using them are always updated
  7603. var parentData = parentVnode && parentVnode.data;
  7604. /* istanbul ignore else */
  7605. if (true) {
  7606. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  7607. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  7608. }, true);
  7609. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  7610. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  7611. }, true);
  7612. } else {}
  7613. }
  7614. var currentRenderingInstance = null;
  7615. function renderMixin (Vue) {
  7616. // install runtime convenience helpers
  7617. installRenderHelpers(Vue.prototype);
  7618. Vue.prototype.$nextTick = function (fn) {
  7619. return nextTick(fn, this)
  7620. };
  7621. Vue.prototype._render = function () {
  7622. var vm = this;
  7623. var ref = vm.$options;
  7624. var render = ref.render;
  7625. var _parentVnode = ref._parentVnode;
  7626. if (_parentVnode) {
  7627. vm.$scopedSlots = normalizeScopedSlots(
  7628. _parentVnode.data.scopedSlots,
  7629. vm.$slots,
  7630. vm.$scopedSlots
  7631. );
  7632. }
  7633. // set parent vnode. this allows render functions to have access
  7634. // to the data on the placeholder node.
  7635. vm.$vnode = _parentVnode;
  7636. // render self
  7637. var vnode;
  7638. try {
  7639. // There's no need to maintain a stack because all render fns are called
  7640. // separately from one another. Nested component's render fns are called
  7641. // when parent component is patched.
  7642. currentRenderingInstance = vm;
  7643. vnode = render.call(vm._renderProxy, vm.$createElement);
  7644. } catch (e) {
  7645. handleError(e, vm, "render");
  7646. // return error render result,
  7647. // or previous vnode to prevent render error causing blank component
  7648. /* istanbul ignore else */
  7649. if ( true && vm.$options.renderError) {
  7650. try {
  7651. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  7652. } catch (e) {
  7653. handleError(e, vm, "renderError");
  7654. vnode = vm._vnode;
  7655. }
  7656. } else {
  7657. vnode = vm._vnode;
  7658. }
  7659. } finally {
  7660. currentRenderingInstance = null;
  7661. }
  7662. // if the returned array contains only a single node, allow it
  7663. if (Array.isArray(vnode) && vnode.length === 1) {
  7664. vnode = vnode[0];
  7665. }
  7666. // return empty vnode in case the render function errored out
  7667. if (!(vnode instanceof VNode)) {
  7668. if ( true && Array.isArray(vnode)) {
  7669. warn(
  7670. 'Multiple root nodes returned from render function. Render function ' +
  7671. 'should return a single root node.',
  7672. vm
  7673. );
  7674. }
  7675. vnode = createEmptyVNode();
  7676. }
  7677. // set parent
  7678. vnode.parent = _parentVnode;
  7679. return vnode
  7680. };
  7681. }
  7682. /* */
  7683. function ensureCtor (comp, base) {
  7684. if (
  7685. comp.__esModule ||
  7686. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  7687. ) {
  7688. comp = comp.default;
  7689. }
  7690. return isObject(comp)
  7691. ? base.extend(comp)
  7692. : comp
  7693. }
  7694. function createAsyncPlaceholder (
  7695. factory,
  7696. data,
  7697. context,
  7698. children,
  7699. tag
  7700. ) {
  7701. var node = createEmptyVNode();
  7702. node.asyncFactory = factory;
  7703. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  7704. return node
  7705. }
  7706. function resolveAsyncComponent (
  7707. factory,
  7708. baseCtor
  7709. ) {
  7710. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  7711. return factory.errorComp
  7712. }
  7713. if (isDef(factory.resolved)) {
  7714. return factory.resolved
  7715. }
  7716. var owner = currentRenderingInstance;
  7717. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  7718. // already pending
  7719. factory.owners.push(owner);
  7720. }
  7721. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  7722. return factory.loadingComp
  7723. }
  7724. if (owner && !isDef(factory.owners)) {
  7725. var owners = factory.owners = [owner];
  7726. var sync = true;
  7727. var timerLoading = null;
  7728. var timerTimeout = null
  7729. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  7730. var forceRender = function (renderCompleted) {
  7731. for (var i = 0, l = owners.length; i < l; i++) {
  7732. (owners[i]).$forceUpdate();
  7733. }
  7734. if (renderCompleted) {
  7735. owners.length = 0;
  7736. if (timerLoading !== null) {
  7737. clearTimeout(timerLoading);
  7738. timerLoading = null;
  7739. }
  7740. if (timerTimeout !== null) {
  7741. clearTimeout(timerTimeout);
  7742. timerTimeout = null;
  7743. }
  7744. }
  7745. };
  7746. var resolve = once(function (res) {
  7747. // cache resolved
  7748. factory.resolved = ensureCtor(res, baseCtor);
  7749. // invoke callbacks only if this is not a synchronous resolve
  7750. // (async resolves are shimmed as synchronous during SSR)
  7751. if (!sync) {
  7752. forceRender(true);
  7753. } else {
  7754. owners.length = 0;
  7755. }
  7756. });
  7757. var reject = once(function (reason) {
  7758. true && warn(
  7759. "Failed to resolve async component: " + (String(factory)) +
  7760. (reason ? ("\nReason: " + reason) : '')
  7761. );
  7762. if (isDef(factory.errorComp)) {
  7763. factory.error = true;
  7764. forceRender(true);
  7765. }
  7766. });
  7767. var res = factory(resolve, reject);
  7768. if (isObject(res)) {
  7769. if (isPromise(res)) {
  7770. // () => Promise
  7771. if (isUndef(factory.resolved)) {
  7772. res.then(resolve, reject);
  7773. }
  7774. } else if (isPromise(res.component)) {
  7775. res.component.then(resolve, reject);
  7776. if (isDef(res.error)) {
  7777. factory.errorComp = ensureCtor(res.error, baseCtor);
  7778. }
  7779. if (isDef(res.loading)) {
  7780. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  7781. if (res.delay === 0) {
  7782. factory.loading = true;
  7783. } else {
  7784. timerLoading = setTimeout(function () {
  7785. timerLoading = null;
  7786. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  7787. factory.loading = true;
  7788. forceRender(false);
  7789. }
  7790. }, res.delay || 200);
  7791. }
  7792. }
  7793. if (isDef(res.timeout)) {
  7794. timerTimeout = setTimeout(function () {
  7795. timerTimeout = null;
  7796. if (isUndef(factory.resolved)) {
  7797. reject(
  7798. true
  7799. ? ("timeout (" + (res.timeout) + "ms)")
  7800. : undefined
  7801. );
  7802. }
  7803. }, res.timeout);
  7804. }
  7805. }
  7806. }
  7807. sync = false;
  7808. // return in case resolved synchronously
  7809. return factory.loading
  7810. ? factory.loadingComp
  7811. : factory.resolved
  7812. }
  7813. }
  7814. /* */
  7815. function isAsyncPlaceholder (node) {
  7816. return node.isComment && node.asyncFactory
  7817. }
  7818. /* */
  7819. function getFirstComponentChild (children) {
  7820. if (Array.isArray(children)) {
  7821. for (var i = 0; i < children.length; i++) {
  7822. var c = children[i];
  7823. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  7824. return c
  7825. }
  7826. }
  7827. }
  7828. }
  7829. /* */
  7830. /* */
  7831. function initEvents (vm) {
  7832. vm._events = Object.create(null);
  7833. vm._hasHookEvent = false;
  7834. // init parent attached events
  7835. var listeners = vm.$options._parentListeners;
  7836. if (listeners) {
  7837. updateComponentListeners(vm, listeners);
  7838. }
  7839. }
  7840. var target;
  7841. function add (event, fn) {
  7842. target.$on(event, fn);
  7843. }
  7844. function remove$1 (event, fn) {
  7845. target.$off(event, fn);
  7846. }
  7847. function createOnceHandler (event, fn) {
  7848. var _target = target;
  7849. return function onceHandler () {
  7850. var res = fn.apply(null, arguments);
  7851. if (res !== null) {
  7852. _target.$off(event, onceHandler);
  7853. }
  7854. }
  7855. }
  7856. function updateComponentListeners (
  7857. vm,
  7858. listeners,
  7859. oldListeners
  7860. ) {
  7861. target = vm;
  7862. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  7863. target = undefined;
  7864. }
  7865. function eventsMixin (Vue) {
  7866. var hookRE = /^hook:/;
  7867. Vue.prototype.$on = function (event, fn) {
  7868. var vm = this;
  7869. if (Array.isArray(event)) {
  7870. for (var i = 0, l = event.length; i < l; i++) {
  7871. vm.$on(event[i], fn);
  7872. }
  7873. } else {
  7874. (vm._events[event] || (vm._events[event] = [])).push(fn);
  7875. // optimize hook:event cost by using a boolean flag marked at registration
  7876. // instead of a hash lookup
  7877. if (hookRE.test(event)) {
  7878. vm._hasHookEvent = true;
  7879. }
  7880. }
  7881. return vm
  7882. };
  7883. Vue.prototype.$once = function (event, fn) {
  7884. var vm = this;
  7885. function on () {
  7886. vm.$off(event, on);
  7887. fn.apply(vm, arguments);
  7888. }
  7889. on.fn = fn;
  7890. vm.$on(event, on);
  7891. return vm
  7892. };
  7893. Vue.prototype.$off = function (event, fn) {
  7894. var vm = this;
  7895. // all
  7896. if (!arguments.length) {
  7897. vm._events = Object.create(null);
  7898. return vm
  7899. }
  7900. // array of events
  7901. if (Array.isArray(event)) {
  7902. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  7903. vm.$off(event[i$1], fn);
  7904. }
  7905. return vm
  7906. }
  7907. // specific event
  7908. var cbs = vm._events[event];
  7909. if (!cbs) {
  7910. return vm
  7911. }
  7912. if (!fn) {
  7913. vm._events[event] = null;
  7914. return vm
  7915. }
  7916. // specific handler
  7917. var cb;
  7918. var i = cbs.length;
  7919. while (i--) {
  7920. cb = cbs[i];
  7921. if (cb === fn || cb.fn === fn) {
  7922. cbs.splice(i, 1);
  7923. break
  7924. }
  7925. }
  7926. return vm
  7927. };
  7928. Vue.prototype.$emit = function (event) {
  7929. var vm = this;
  7930. if (true) {
  7931. var lowerCaseEvent = event.toLowerCase();
  7932. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  7933. tip(
  7934. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  7935. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  7936. "Note that HTML attributes are case-insensitive and you cannot use " +
  7937. "v-on to listen to camelCase events when using in-DOM templates. " +
  7938. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  7939. );
  7940. }
  7941. }
  7942. var cbs = vm._events[event];
  7943. if (cbs) {
  7944. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  7945. var args = toArray(arguments, 1);
  7946. var info = "event handler for \"" + event + "\"";
  7947. for (var i = 0, l = cbs.length; i < l; i++) {
  7948. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  7949. }
  7950. }
  7951. return vm
  7952. };
  7953. }
  7954. /* */
  7955. var activeInstance = null;
  7956. var isUpdatingChildComponent = false;
  7957. function setActiveInstance(vm) {
  7958. var prevActiveInstance = activeInstance;
  7959. activeInstance = vm;
  7960. return function () {
  7961. activeInstance = prevActiveInstance;
  7962. }
  7963. }
  7964. function initLifecycle (vm) {
  7965. var options = vm.$options;
  7966. // locate first non-abstract parent
  7967. var parent = options.parent;
  7968. if (parent && !options.abstract) {
  7969. while (parent.$options.abstract && parent.$parent) {
  7970. parent = parent.$parent;
  7971. }
  7972. parent.$children.push(vm);
  7973. }
  7974. vm.$parent = parent;
  7975. vm.$root = parent ? parent.$root : vm;
  7976. vm.$children = [];
  7977. vm.$refs = {};
  7978. vm._watcher = null;
  7979. vm._inactive = null;
  7980. vm._directInactive = false;
  7981. vm._isMounted = false;
  7982. vm._isDestroyed = false;
  7983. vm._isBeingDestroyed = false;
  7984. }
  7985. function lifecycleMixin (Vue) {
  7986. Vue.prototype._update = function (vnode, hydrating) {
  7987. var vm = this;
  7988. var prevEl = vm.$el;
  7989. var prevVnode = vm._vnode;
  7990. var restoreActiveInstance = setActiveInstance(vm);
  7991. vm._vnode = vnode;
  7992. // Vue.prototype.__patch__ is injected in entry points
  7993. // based on the rendering backend used.
  7994. if (!prevVnode) {
  7995. // initial render
  7996. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  7997. } else {
  7998. // updates
  7999. vm.$el = vm.__patch__(prevVnode, vnode);
  8000. }
  8001. restoreActiveInstance();
  8002. // update __vue__ reference
  8003. if (prevEl) {
  8004. prevEl.__vue__ = null;
  8005. }
  8006. if (vm.$el) {
  8007. vm.$el.__vue__ = vm;
  8008. }
  8009. // if parent is an HOC, update its $el as well
  8010. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  8011. vm.$parent.$el = vm.$el;
  8012. }
  8013. // updated hook is called by the scheduler to ensure that children are
  8014. // updated in a parent's updated hook.
  8015. };
  8016. Vue.prototype.$forceUpdate = function () {
  8017. var vm = this;
  8018. if (vm._watcher) {
  8019. vm._watcher.update();
  8020. }
  8021. };
  8022. Vue.prototype.$destroy = function () {
  8023. var vm = this;
  8024. if (vm._isBeingDestroyed) {
  8025. return
  8026. }
  8027. callHook(vm, 'beforeDestroy');
  8028. vm._isBeingDestroyed = true;
  8029. // remove self from parent
  8030. var parent = vm.$parent;
  8031. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  8032. remove(parent.$children, vm);
  8033. }
  8034. // teardown watchers
  8035. if (vm._watcher) {
  8036. vm._watcher.teardown();
  8037. }
  8038. var i = vm._watchers.length;
  8039. while (i--) {
  8040. vm._watchers[i].teardown();
  8041. }
  8042. // remove reference from data ob
  8043. // frozen object may not have observer.
  8044. if (vm._data.__ob__) {
  8045. vm._data.__ob__.vmCount--;
  8046. }
  8047. // call the last hook...
  8048. vm._isDestroyed = true;
  8049. // invoke destroy hooks on current rendered tree
  8050. vm.__patch__(vm._vnode, null);
  8051. // fire destroyed hook
  8052. callHook(vm, 'destroyed');
  8053. // turn off all instance listeners.
  8054. vm.$off();
  8055. // remove __vue__ reference
  8056. if (vm.$el) {
  8057. vm.$el.__vue__ = null;
  8058. }
  8059. // release circular reference (#6759)
  8060. if (vm.$vnode) {
  8061. vm.$vnode.parent = null;
  8062. }
  8063. };
  8064. }
  8065. function updateChildComponent (
  8066. vm,
  8067. propsData,
  8068. listeners,
  8069. parentVnode,
  8070. renderChildren
  8071. ) {
  8072. if (true) {
  8073. isUpdatingChildComponent = true;
  8074. }
  8075. // determine whether component has slot children
  8076. // we need to do this before overwriting $options._renderChildren.
  8077. // check if there are dynamic scopedSlots (hand-written or compiled but with
  8078. // dynamic slot names). Static scoped slots compiled from template has the
  8079. // "$stable" marker.
  8080. var newScopedSlots = parentVnode.data.scopedSlots;
  8081. var oldScopedSlots = vm.$scopedSlots;
  8082. var hasDynamicScopedSlot = !!(
  8083. (newScopedSlots && !newScopedSlots.$stable) ||
  8084. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  8085. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  8086. );
  8087. // Any static slot children from the parent may have changed during parent's
  8088. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  8089. // update is necessary to ensure correctness.
  8090. var needsForceUpdate = !!(
  8091. renderChildren || // has new static slots
  8092. vm.$options._renderChildren || // has old static slots
  8093. hasDynamicScopedSlot
  8094. );
  8095. vm.$options._parentVnode = parentVnode;
  8096. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  8097. if (vm._vnode) { // update child tree's parent
  8098. vm._vnode.parent = parentVnode;
  8099. }
  8100. vm.$options._renderChildren = renderChildren;
  8101. // update $attrs and $listeners hash
  8102. // these are also reactive so they may trigger child update if the child
  8103. // used them during render
  8104. vm.$attrs = parentVnode.data.attrs || emptyObject;
  8105. vm.$listeners = listeners || emptyObject;
  8106. // update props
  8107. if (propsData && vm.$options.props) {
  8108. toggleObserving(false);
  8109. var props = vm._props;
  8110. var propKeys = vm.$options._propKeys || [];
  8111. for (var i = 0; i < propKeys.length; i++) {
  8112. var key = propKeys[i];
  8113. var propOptions = vm.$options.props; // wtf flow?
  8114. props[key] = validateProp(key, propOptions, propsData, vm);
  8115. }
  8116. toggleObserving(true);
  8117. // keep a copy of raw propsData
  8118. vm.$options.propsData = propsData;
  8119. }
  8120. // fixed by xxxxxx update properties(mp runtime)
  8121. vm._$updateProperties && vm._$updateProperties(vm);
  8122. // update listeners
  8123. listeners = listeners || emptyObject;
  8124. var oldListeners = vm.$options._parentListeners;
  8125. vm.$options._parentListeners = listeners;
  8126. updateComponentListeners(vm, listeners, oldListeners);
  8127. // resolve slots + force update if has children
  8128. if (needsForceUpdate) {
  8129. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  8130. vm.$forceUpdate();
  8131. }
  8132. if (true) {
  8133. isUpdatingChildComponent = false;
  8134. }
  8135. }
  8136. function isInInactiveTree (vm) {
  8137. while (vm && (vm = vm.$parent)) {
  8138. if (vm._inactive) { return true }
  8139. }
  8140. return false
  8141. }
  8142. function activateChildComponent (vm, direct) {
  8143. if (direct) {
  8144. vm._directInactive = false;
  8145. if (isInInactiveTree(vm)) {
  8146. return
  8147. }
  8148. } else if (vm._directInactive) {
  8149. return
  8150. }
  8151. if (vm._inactive || vm._inactive === null) {
  8152. vm._inactive = false;
  8153. for (var i = 0; i < vm.$children.length; i++) {
  8154. activateChildComponent(vm.$children[i]);
  8155. }
  8156. callHook(vm, 'activated');
  8157. }
  8158. }
  8159. function deactivateChildComponent (vm, direct) {
  8160. if (direct) {
  8161. vm._directInactive = true;
  8162. if (isInInactiveTree(vm)) {
  8163. return
  8164. }
  8165. }
  8166. if (!vm._inactive) {
  8167. vm._inactive = true;
  8168. for (var i = 0; i < vm.$children.length; i++) {
  8169. deactivateChildComponent(vm.$children[i]);
  8170. }
  8171. callHook(vm, 'deactivated');
  8172. }
  8173. }
  8174. function callHook (vm, hook) {
  8175. // #7573 disable dep collection when invoking lifecycle hooks
  8176. pushTarget();
  8177. var handlers = vm.$options[hook];
  8178. var info = hook + " hook";
  8179. if (handlers) {
  8180. for (var i = 0, j = handlers.length; i < j; i++) {
  8181. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  8182. }
  8183. }
  8184. if (vm._hasHookEvent) {
  8185. vm.$emit('hook:' + hook);
  8186. }
  8187. popTarget();
  8188. }
  8189. /* */
  8190. var MAX_UPDATE_COUNT = 100;
  8191. var queue = [];
  8192. var activatedChildren = [];
  8193. var has = {};
  8194. var circular = {};
  8195. var waiting = false;
  8196. var flushing = false;
  8197. var index = 0;
  8198. /**
  8199. * Reset the scheduler's state.
  8200. */
  8201. function resetSchedulerState () {
  8202. index = queue.length = activatedChildren.length = 0;
  8203. has = {};
  8204. if (true) {
  8205. circular = {};
  8206. }
  8207. waiting = flushing = false;
  8208. }
  8209. // Async edge case #6566 requires saving the timestamp when event listeners are
  8210. // attached. However, calling performance.now() has a perf overhead especially
  8211. // if the page has thousands of event listeners. Instead, we take a timestamp
  8212. // every time the scheduler flushes and use that for all event listeners
  8213. // attached during that flush.
  8214. var currentFlushTimestamp = 0;
  8215. // Async edge case fix requires storing an event listener's attach timestamp.
  8216. var getNow = Date.now;
  8217. // Determine what event timestamp the browser is using. Annoyingly, the
  8218. // timestamp can either be hi-res (relative to page load) or low-res
  8219. // (relative to UNIX epoch), so in order to compare time we have to use the
  8220. // same timestamp type when saving the flush timestamp.
  8221. // All IE versions use low-res event timestamps, and have problematic clock
  8222. // implementations (#9632)
  8223. if (inBrowser && !isIE) {
  8224. var performance = window.performance;
  8225. if (
  8226. performance &&
  8227. typeof performance.now === 'function' &&
  8228. getNow() > document.createEvent('Event').timeStamp
  8229. ) {
  8230. // if the event timestamp, although evaluated AFTER the Date.now(), is
  8231. // smaller than it, it means the event is using a hi-res timestamp,
  8232. // and we need to use the hi-res version for event listener timestamps as
  8233. // well.
  8234. getNow = function () { return performance.now(); };
  8235. }
  8236. }
  8237. /**
  8238. * Flush both queues and run the watchers.
  8239. */
  8240. function flushSchedulerQueue () {
  8241. currentFlushTimestamp = getNow();
  8242. flushing = true;
  8243. var watcher, id;
  8244. // Sort queue before flush.
  8245. // This ensures that:
  8246. // 1. Components are updated from parent to child. (because parent is always
  8247. // created before the child)
  8248. // 2. A component's user watchers are run before its render watcher (because
  8249. // user watchers are created before the render watcher)
  8250. // 3. If a component is destroyed during a parent component's watcher run,
  8251. // its watchers can be skipped.
  8252. queue.sort(function (a, b) { return a.id - b.id; });
  8253. // do not cache length because more watchers might be pushed
  8254. // as we run existing watchers
  8255. for (index = 0; index < queue.length; index++) {
  8256. watcher = queue[index];
  8257. if (watcher.before) {
  8258. watcher.before();
  8259. }
  8260. id = watcher.id;
  8261. has[id] = null;
  8262. watcher.run();
  8263. // in dev build, check and stop circular updates.
  8264. if ( true && has[id] != null) {
  8265. circular[id] = (circular[id] || 0) + 1;
  8266. if (circular[id] > MAX_UPDATE_COUNT) {
  8267. warn(
  8268. 'You may have an infinite update loop ' + (
  8269. watcher.user
  8270. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  8271. : "in a component render function."
  8272. ),
  8273. watcher.vm
  8274. );
  8275. break
  8276. }
  8277. }
  8278. }
  8279. // keep copies of post queues before resetting state
  8280. var activatedQueue = activatedChildren.slice();
  8281. var updatedQueue = queue.slice();
  8282. resetSchedulerState();
  8283. // call component updated and activated hooks
  8284. callActivatedHooks(activatedQueue);
  8285. callUpdatedHooks(updatedQueue);
  8286. // devtool hook
  8287. /* istanbul ignore if */
  8288. if (devtools && config.devtools) {
  8289. devtools.emit('flush');
  8290. }
  8291. }
  8292. function callUpdatedHooks (queue) {
  8293. var i = queue.length;
  8294. while (i--) {
  8295. var watcher = queue[i];
  8296. var vm = watcher.vm;
  8297. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  8298. callHook(vm, 'updated');
  8299. }
  8300. }
  8301. }
  8302. /**
  8303. * Queue a kept-alive component that was activated during patch.
  8304. * The queue will be processed after the entire tree has been patched.
  8305. */
  8306. function queueActivatedComponent (vm) {
  8307. // setting _inactive to false here so that a render function can
  8308. // rely on checking whether it's in an inactive tree (e.g. router-view)
  8309. vm._inactive = false;
  8310. activatedChildren.push(vm);
  8311. }
  8312. function callActivatedHooks (queue) {
  8313. for (var i = 0; i < queue.length; i++) {
  8314. queue[i]._inactive = true;
  8315. activateChildComponent(queue[i], true /* true */);
  8316. }
  8317. }
  8318. /**
  8319. * Push a watcher into the watcher queue.
  8320. * Jobs with duplicate IDs will be skipped unless it's
  8321. * pushed when the queue is being flushed.
  8322. */
  8323. function queueWatcher (watcher) {
  8324. var id = watcher.id;
  8325. if (has[id] == null) {
  8326. has[id] = true;
  8327. if (!flushing) {
  8328. queue.push(watcher);
  8329. } else {
  8330. // if already flushing, splice the watcher based on its id
  8331. // if already past its id, it will be run next immediately.
  8332. var i = queue.length - 1;
  8333. while (i > index && queue[i].id > watcher.id) {
  8334. i--;
  8335. }
  8336. queue.splice(i + 1, 0, watcher);
  8337. }
  8338. // queue the flush
  8339. if (!waiting) {
  8340. waiting = true;
  8341. if ( true && !config.async) {
  8342. flushSchedulerQueue();
  8343. return
  8344. }
  8345. nextTick(flushSchedulerQueue);
  8346. }
  8347. }
  8348. }
  8349. /* */
  8350. var uid$2 = 0;
  8351. /**
  8352. * A watcher parses an expression, collects dependencies,
  8353. * and fires callback when the expression value changes.
  8354. * This is used for both the $watch() api and directives.
  8355. */
  8356. var Watcher = function Watcher (
  8357. vm,
  8358. expOrFn,
  8359. cb,
  8360. options,
  8361. isRenderWatcher
  8362. ) {
  8363. this.vm = vm;
  8364. if (isRenderWatcher) {
  8365. vm._watcher = this;
  8366. }
  8367. vm._watchers.push(this);
  8368. // options
  8369. if (options) {
  8370. this.deep = !!options.deep;
  8371. this.user = !!options.user;
  8372. this.lazy = !!options.lazy;
  8373. this.sync = !!options.sync;
  8374. this.before = options.before;
  8375. } else {
  8376. this.deep = this.user = this.lazy = this.sync = false;
  8377. }
  8378. this.cb = cb;
  8379. this.id = ++uid$2; // uid for batching
  8380. this.active = true;
  8381. this.dirty = this.lazy; // for lazy watchers
  8382. this.deps = [];
  8383. this.newDeps = [];
  8384. this.depIds = new _Set();
  8385. this.newDepIds = new _Set();
  8386. this.expression = true
  8387. ? expOrFn.toString()
  8388. : undefined;
  8389. // parse expression for getter
  8390. if (typeof expOrFn === 'function') {
  8391. this.getter = expOrFn;
  8392. } else {
  8393. this.getter = parsePath(expOrFn);
  8394. if (!this.getter) {
  8395. this.getter = noop;
  8396. true && warn(
  8397. "Failed watching path: \"" + expOrFn + "\" " +
  8398. 'Watcher only accepts simple dot-delimited paths. ' +
  8399. 'For full control, use a function instead.',
  8400. vm
  8401. );
  8402. }
  8403. }
  8404. this.value = this.lazy
  8405. ? undefined
  8406. : this.get();
  8407. };
  8408. /**
  8409. * Evaluate the getter, and re-collect dependencies.
  8410. */
  8411. Watcher.prototype.get = function get () {
  8412. pushTarget(this);
  8413. var value;
  8414. var vm = this.vm;
  8415. try {
  8416. value = this.getter.call(vm, vm);
  8417. } catch (e) {
  8418. if (this.user) {
  8419. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  8420. } else {
  8421. throw e
  8422. }
  8423. } finally {
  8424. // "touch" every property so they are all tracked as
  8425. // dependencies for deep watching
  8426. if (this.deep) {
  8427. traverse(value);
  8428. }
  8429. popTarget();
  8430. this.cleanupDeps();
  8431. }
  8432. return value
  8433. };
  8434. /**
  8435. * Add a dependency to this directive.
  8436. */
  8437. Watcher.prototype.addDep = function addDep (dep) {
  8438. var id = dep.id;
  8439. if (!this.newDepIds.has(id)) {
  8440. this.newDepIds.add(id);
  8441. this.newDeps.push(dep);
  8442. if (!this.depIds.has(id)) {
  8443. dep.addSub(this);
  8444. }
  8445. }
  8446. };
  8447. /**
  8448. * Clean up for dependency collection.
  8449. */
  8450. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  8451. var i = this.deps.length;
  8452. while (i--) {
  8453. var dep = this.deps[i];
  8454. if (!this.newDepIds.has(dep.id)) {
  8455. dep.removeSub(this);
  8456. }
  8457. }
  8458. var tmp = this.depIds;
  8459. this.depIds = this.newDepIds;
  8460. this.newDepIds = tmp;
  8461. this.newDepIds.clear();
  8462. tmp = this.deps;
  8463. this.deps = this.newDeps;
  8464. this.newDeps = tmp;
  8465. this.newDeps.length = 0;
  8466. };
  8467. /**
  8468. * Subscriber interface.
  8469. * Will be called when a dependency changes.
  8470. */
  8471. Watcher.prototype.update = function update () {
  8472. /* istanbul ignore else */
  8473. if (this.lazy) {
  8474. this.dirty = true;
  8475. } else if (this.sync) {
  8476. this.run();
  8477. } else {
  8478. queueWatcher(this);
  8479. }
  8480. };
  8481. /**
  8482. * Scheduler job interface.
  8483. * Will be called by the scheduler.
  8484. */
  8485. Watcher.prototype.run = function run () {
  8486. if (this.active) {
  8487. var value = this.get();
  8488. if (
  8489. value !== this.value ||
  8490. // Deep watchers and watchers on Object/Arrays should fire even
  8491. // when the value is the same, because the value may
  8492. // have mutated.
  8493. isObject(value) ||
  8494. this.deep
  8495. ) {
  8496. // set new value
  8497. var oldValue = this.value;
  8498. this.value = value;
  8499. if (this.user) {
  8500. try {
  8501. this.cb.call(this.vm, value, oldValue);
  8502. } catch (e) {
  8503. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  8504. }
  8505. } else {
  8506. this.cb.call(this.vm, value, oldValue);
  8507. }
  8508. }
  8509. }
  8510. };
  8511. /**
  8512. * Evaluate the value of the watcher.
  8513. * This only gets called for lazy watchers.
  8514. */
  8515. Watcher.prototype.evaluate = function evaluate () {
  8516. this.value = this.get();
  8517. this.dirty = false;
  8518. };
  8519. /**
  8520. * Depend on all deps collected by this watcher.
  8521. */
  8522. Watcher.prototype.depend = function depend () {
  8523. var i = this.deps.length;
  8524. while (i--) {
  8525. this.deps[i].depend();
  8526. }
  8527. };
  8528. /**
  8529. * Remove self from all dependencies' subscriber list.
  8530. */
  8531. Watcher.prototype.teardown = function teardown () {
  8532. if (this.active) {
  8533. // remove self from vm's watcher list
  8534. // this is a somewhat expensive operation so we skip it
  8535. // if the vm is being destroyed.
  8536. if (!this.vm._isBeingDestroyed) {
  8537. remove(this.vm._watchers, this);
  8538. }
  8539. var i = this.deps.length;
  8540. while (i--) {
  8541. this.deps[i].removeSub(this);
  8542. }
  8543. this.active = false;
  8544. }
  8545. };
  8546. /* */
  8547. var sharedPropertyDefinition = {
  8548. enumerable: true,
  8549. configurable: true,
  8550. get: noop,
  8551. set: noop
  8552. };
  8553. function proxy (target, sourceKey, key) {
  8554. sharedPropertyDefinition.get = function proxyGetter () {
  8555. return this[sourceKey][key]
  8556. };
  8557. sharedPropertyDefinition.set = function proxySetter (val) {
  8558. this[sourceKey][key] = val;
  8559. };
  8560. Object.defineProperty(target, key, sharedPropertyDefinition);
  8561. }
  8562. function initState (vm) {
  8563. vm._watchers = [];
  8564. var opts = vm.$options;
  8565. if (opts.props) { initProps(vm, opts.props); }
  8566. if (opts.methods) { initMethods(vm, opts.methods); }
  8567. if (opts.data) {
  8568. initData(vm);
  8569. } else {
  8570. observe(vm._data = {}, true /* asRootData */);
  8571. }
  8572. if (opts.computed) { initComputed(vm, opts.computed); }
  8573. if (opts.watch && opts.watch !== nativeWatch) {
  8574. initWatch(vm, opts.watch);
  8575. }
  8576. }
  8577. function initProps (vm, propsOptions) {
  8578. var propsData = vm.$options.propsData || {};
  8579. var props = vm._props = {};
  8580. // cache prop keys so that future props updates can iterate using Array
  8581. // instead of dynamic object key enumeration.
  8582. var keys = vm.$options._propKeys = [];
  8583. var isRoot = !vm.$parent;
  8584. // root instance props should be converted
  8585. if (!isRoot) {
  8586. toggleObserving(false);
  8587. }
  8588. var loop = function ( key ) {
  8589. keys.push(key);
  8590. var value = validateProp(key, propsOptions, propsData, vm);
  8591. /* istanbul ignore else */
  8592. if (true) {
  8593. var hyphenatedKey = hyphenate(key);
  8594. if (isReservedAttribute(hyphenatedKey) ||
  8595. config.isReservedAttr(hyphenatedKey)) {
  8596. warn(
  8597. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  8598. vm
  8599. );
  8600. }
  8601. defineReactive$$1(props, key, value, function () {
  8602. if (!isRoot && !isUpdatingChildComponent) {
  8603. {
  8604. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  8605. return
  8606. }
  8607. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  8608. if(
  8609. key === 'value' &&
  8610. Array.isArray(vm.$options.behaviors) &&
  8611. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8612. ){
  8613. return
  8614. }
  8615. if(vm._getFormData){
  8616. return
  8617. }
  8618. var $parent = vm.$parent;
  8619. while($parent){
  8620. if($parent.__next_tick_pending){
  8621. return
  8622. }
  8623. $parent = $parent.$parent;
  8624. }
  8625. }
  8626. warn(
  8627. "Avoid mutating a prop directly since the value will be " +
  8628. "overwritten whenever the parent component re-renders. " +
  8629. "Instead, use a data or computed property based on the prop's " +
  8630. "value. Prop being mutated: \"" + key + "\"",
  8631. vm
  8632. );
  8633. }
  8634. });
  8635. } else {}
  8636. // static props are already proxied on the component's prototype
  8637. // during Vue.extend(). We only need to proxy props defined at
  8638. // instantiation here.
  8639. if (!(key in vm)) {
  8640. proxy(vm, "_props", key);
  8641. }
  8642. };
  8643. for (var key in propsOptions) loop( key );
  8644. toggleObserving(true);
  8645. }
  8646. function initData (vm) {
  8647. var data = vm.$options.data;
  8648. data = vm._data = typeof data === 'function'
  8649. ? getData(data, vm)
  8650. : data || {};
  8651. if (!isPlainObject(data)) {
  8652. data = {};
  8653. true && warn(
  8654. 'data functions should return an object:\n' +
  8655. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  8656. vm
  8657. );
  8658. }
  8659. // proxy data on instance
  8660. var keys = Object.keys(data);
  8661. var props = vm.$options.props;
  8662. var methods = vm.$options.methods;
  8663. var i = keys.length;
  8664. while (i--) {
  8665. var key = keys[i];
  8666. if (true) {
  8667. if (methods && hasOwn(methods, key)) {
  8668. warn(
  8669. ("Method \"" + key + "\" has already been defined as a data property."),
  8670. vm
  8671. );
  8672. }
  8673. }
  8674. if (props && hasOwn(props, key)) {
  8675. true && warn(
  8676. "The data property \"" + key + "\" is already declared as a prop. " +
  8677. "Use prop default value instead.",
  8678. vm
  8679. );
  8680. } else if (!isReserved(key)) {
  8681. proxy(vm, "_data", key);
  8682. }
  8683. }
  8684. // observe data
  8685. observe(data, true /* asRootData */);
  8686. }
  8687. function getData (data, vm) {
  8688. // #7573 disable dep collection when invoking data getters
  8689. pushTarget();
  8690. try {
  8691. return data.call(vm, vm)
  8692. } catch (e) {
  8693. handleError(e, vm, "data()");
  8694. return {}
  8695. } finally {
  8696. popTarget();
  8697. }
  8698. }
  8699. var computedWatcherOptions = { lazy: true };
  8700. function initComputed (vm, computed) {
  8701. // $flow-disable-line
  8702. var watchers = vm._computedWatchers = Object.create(null);
  8703. // computed properties are just getters during SSR
  8704. var isSSR = isServerRendering();
  8705. for (var key in computed) {
  8706. var userDef = computed[key];
  8707. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  8708. if ( true && getter == null) {
  8709. warn(
  8710. ("Getter is missing for computed property \"" + key + "\"."),
  8711. vm
  8712. );
  8713. }
  8714. if (!isSSR) {
  8715. // create internal watcher for the computed property.
  8716. watchers[key] = new Watcher(
  8717. vm,
  8718. getter || noop,
  8719. noop,
  8720. computedWatcherOptions
  8721. );
  8722. }
  8723. // component-defined computed properties are already defined on the
  8724. // component prototype. We only need to define computed properties defined
  8725. // at instantiation here.
  8726. if (!(key in vm)) {
  8727. defineComputed(vm, key, userDef);
  8728. } else if (true) {
  8729. if (key in vm.$data) {
  8730. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  8731. } else if (vm.$options.props && key in vm.$options.props) {
  8732. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  8733. }
  8734. }
  8735. }
  8736. }
  8737. function defineComputed (
  8738. target,
  8739. key,
  8740. userDef
  8741. ) {
  8742. var shouldCache = !isServerRendering();
  8743. if (typeof userDef === 'function') {
  8744. sharedPropertyDefinition.get = shouldCache
  8745. ? createComputedGetter(key)
  8746. : createGetterInvoker(userDef);
  8747. sharedPropertyDefinition.set = noop;
  8748. } else {
  8749. sharedPropertyDefinition.get = userDef.get
  8750. ? shouldCache && userDef.cache !== false
  8751. ? createComputedGetter(key)
  8752. : createGetterInvoker(userDef.get)
  8753. : noop;
  8754. sharedPropertyDefinition.set = userDef.set || noop;
  8755. }
  8756. if ( true &&
  8757. sharedPropertyDefinition.set === noop) {
  8758. sharedPropertyDefinition.set = function () {
  8759. warn(
  8760. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  8761. this
  8762. );
  8763. };
  8764. }
  8765. Object.defineProperty(target, key, sharedPropertyDefinition);
  8766. }
  8767. function createComputedGetter (key) {
  8768. return function computedGetter () {
  8769. var watcher = this._computedWatchers && this._computedWatchers[key];
  8770. if (watcher) {
  8771. if (watcher.dirty) {
  8772. watcher.evaluate();
  8773. }
  8774. if (Dep.SharedObject.target) {// fixed by xxxxxx
  8775. watcher.depend();
  8776. }
  8777. return watcher.value
  8778. }
  8779. }
  8780. }
  8781. function createGetterInvoker(fn) {
  8782. return function computedGetter () {
  8783. return fn.call(this, this)
  8784. }
  8785. }
  8786. function initMethods (vm, methods) {
  8787. var props = vm.$options.props;
  8788. for (var key in methods) {
  8789. if (true) {
  8790. if (typeof methods[key] !== 'function') {
  8791. warn(
  8792. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  8793. "Did you reference the function correctly?",
  8794. vm
  8795. );
  8796. }
  8797. if (props && hasOwn(props, key)) {
  8798. warn(
  8799. ("Method \"" + key + "\" has already been defined as a prop."),
  8800. vm
  8801. );
  8802. }
  8803. if ((key in vm) && isReserved(key)) {
  8804. warn(
  8805. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  8806. "Avoid defining component methods that start with _ or $."
  8807. );
  8808. }
  8809. }
  8810. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  8811. }
  8812. }
  8813. function initWatch (vm, watch) {
  8814. for (var key in watch) {
  8815. var handler = watch[key];
  8816. if (Array.isArray(handler)) {
  8817. for (var i = 0; i < handler.length; i++) {
  8818. createWatcher(vm, key, handler[i]);
  8819. }
  8820. } else {
  8821. createWatcher(vm, key, handler);
  8822. }
  8823. }
  8824. }
  8825. function createWatcher (
  8826. vm,
  8827. expOrFn,
  8828. handler,
  8829. options
  8830. ) {
  8831. if (isPlainObject(handler)) {
  8832. options = handler;
  8833. handler = handler.handler;
  8834. }
  8835. if (typeof handler === 'string') {
  8836. handler = vm[handler];
  8837. }
  8838. return vm.$watch(expOrFn, handler, options)
  8839. }
  8840. function stateMixin (Vue) {
  8841. // flow somehow has problems with directly declared definition object
  8842. // when using Object.defineProperty, so we have to procedurally build up
  8843. // the object here.
  8844. var dataDef = {};
  8845. dataDef.get = function () { return this._data };
  8846. var propsDef = {};
  8847. propsDef.get = function () { return this._props };
  8848. if (true) {
  8849. dataDef.set = function () {
  8850. warn(
  8851. 'Avoid replacing instance root $data. ' +
  8852. 'Use nested data properties instead.',
  8853. this
  8854. );
  8855. };
  8856. propsDef.set = function () {
  8857. warn("$props is readonly.", this);
  8858. };
  8859. }
  8860. Object.defineProperty(Vue.prototype, '$data', dataDef);
  8861. Object.defineProperty(Vue.prototype, '$props', propsDef);
  8862. Vue.prototype.$set = set;
  8863. Vue.prototype.$delete = del;
  8864. Vue.prototype.$watch = function (
  8865. expOrFn,
  8866. cb,
  8867. options
  8868. ) {
  8869. var vm = this;
  8870. if (isPlainObject(cb)) {
  8871. return createWatcher(vm, expOrFn, cb, options)
  8872. }
  8873. options = options || {};
  8874. options.user = true;
  8875. var watcher = new Watcher(vm, expOrFn, cb, options);
  8876. if (options.immediate) {
  8877. try {
  8878. cb.call(vm, watcher.value);
  8879. } catch (error) {
  8880. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  8881. }
  8882. }
  8883. return function unwatchFn () {
  8884. watcher.teardown();
  8885. }
  8886. };
  8887. }
  8888. /* */
  8889. var uid$3 = 0;
  8890. function initMixin (Vue) {
  8891. Vue.prototype._init = function (options) {
  8892. var vm = this;
  8893. // a uid
  8894. vm._uid = uid$3++;
  8895. var startTag, endTag;
  8896. /* istanbul ignore if */
  8897. if ( true && config.performance && mark) {
  8898. startTag = "vue-perf-start:" + (vm._uid);
  8899. endTag = "vue-perf-end:" + (vm._uid);
  8900. mark(startTag);
  8901. }
  8902. // a flag to avoid this being observed
  8903. vm._isVue = true;
  8904. // merge options
  8905. if (options && options._isComponent) {
  8906. // optimize internal component instantiation
  8907. // since dynamic options merging is pretty slow, and none of the
  8908. // internal component options needs special treatment.
  8909. initInternalComponent(vm, options);
  8910. } else {
  8911. vm.$options = mergeOptions(
  8912. resolveConstructorOptions(vm.constructor),
  8913. options || {},
  8914. vm
  8915. );
  8916. }
  8917. /* istanbul ignore else */
  8918. if (true) {
  8919. initProxy(vm);
  8920. } else {}
  8921. // expose real self
  8922. vm._self = vm;
  8923. initLifecycle(vm);
  8924. initEvents(vm);
  8925. initRender(vm);
  8926. callHook(vm, 'beforeCreate');
  8927. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  8928. initState(vm);
  8929. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  8930. !vm._$fallback && callHook(vm, 'created');
  8931. /* istanbul ignore if */
  8932. if ( true && config.performance && mark) {
  8933. vm._name = formatComponentName(vm, false);
  8934. mark(endTag);
  8935. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  8936. }
  8937. if (vm.$options.el) {
  8938. vm.$mount(vm.$options.el);
  8939. }
  8940. };
  8941. }
  8942. function initInternalComponent (vm, options) {
  8943. var opts = vm.$options = Object.create(vm.constructor.options);
  8944. // doing this because it's faster than dynamic enumeration.
  8945. var parentVnode = options._parentVnode;
  8946. opts.parent = options.parent;
  8947. opts._parentVnode = parentVnode;
  8948. var vnodeComponentOptions = parentVnode.componentOptions;
  8949. opts.propsData = vnodeComponentOptions.propsData;
  8950. opts._parentListeners = vnodeComponentOptions.listeners;
  8951. opts._renderChildren = vnodeComponentOptions.children;
  8952. opts._componentTag = vnodeComponentOptions.tag;
  8953. if (options.render) {
  8954. opts.render = options.render;
  8955. opts.staticRenderFns = options.staticRenderFns;
  8956. }
  8957. }
  8958. function resolveConstructorOptions (Ctor) {
  8959. var options = Ctor.options;
  8960. if (Ctor.super) {
  8961. var superOptions = resolveConstructorOptions(Ctor.super);
  8962. var cachedSuperOptions = Ctor.superOptions;
  8963. if (superOptions !== cachedSuperOptions) {
  8964. // super option changed,
  8965. // need to resolve new options.
  8966. Ctor.superOptions = superOptions;
  8967. // check if there are any late-modified/attached options (#4976)
  8968. var modifiedOptions = resolveModifiedOptions(Ctor);
  8969. // update base extend options
  8970. if (modifiedOptions) {
  8971. extend(Ctor.extendOptions, modifiedOptions);
  8972. }
  8973. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  8974. if (options.name) {
  8975. options.components[options.name] = Ctor;
  8976. }
  8977. }
  8978. }
  8979. return options
  8980. }
  8981. function resolveModifiedOptions (Ctor) {
  8982. var modified;
  8983. var latest = Ctor.options;
  8984. var sealed = Ctor.sealedOptions;
  8985. for (var key in latest) {
  8986. if (latest[key] !== sealed[key]) {
  8987. if (!modified) { modified = {}; }
  8988. modified[key] = latest[key];
  8989. }
  8990. }
  8991. return modified
  8992. }
  8993. function Vue (options) {
  8994. if ( true &&
  8995. !(this instanceof Vue)
  8996. ) {
  8997. warn('Vue is a constructor and should be called with the `new` keyword');
  8998. }
  8999. this._init(options);
  9000. }
  9001. initMixin(Vue);
  9002. stateMixin(Vue);
  9003. eventsMixin(Vue);
  9004. lifecycleMixin(Vue);
  9005. renderMixin(Vue);
  9006. /* */
  9007. function initUse (Vue) {
  9008. Vue.use = function (plugin) {
  9009. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  9010. if (installedPlugins.indexOf(plugin) > -1) {
  9011. return this
  9012. }
  9013. // additional parameters
  9014. var args = toArray(arguments, 1);
  9015. args.unshift(this);
  9016. if (typeof plugin.install === 'function') {
  9017. plugin.install.apply(plugin, args);
  9018. } else if (typeof plugin === 'function') {
  9019. plugin.apply(null, args);
  9020. }
  9021. installedPlugins.push(plugin);
  9022. return this
  9023. };
  9024. }
  9025. /* */
  9026. function initMixin$1 (Vue) {
  9027. Vue.mixin = function (mixin) {
  9028. this.options = mergeOptions(this.options, mixin);
  9029. return this
  9030. };
  9031. }
  9032. /* */
  9033. function initExtend (Vue) {
  9034. /**
  9035. * Each instance constructor, including Vue, has a unique
  9036. * cid. This enables us to create wrapped "child
  9037. * constructors" for prototypal inheritance and cache them.
  9038. */
  9039. Vue.cid = 0;
  9040. var cid = 1;
  9041. /**
  9042. * Class inheritance
  9043. */
  9044. Vue.extend = function (extendOptions) {
  9045. extendOptions = extendOptions || {};
  9046. var Super = this;
  9047. var SuperId = Super.cid;
  9048. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  9049. if (cachedCtors[SuperId]) {
  9050. return cachedCtors[SuperId]
  9051. }
  9052. var name = extendOptions.name || Super.options.name;
  9053. if ( true && name) {
  9054. validateComponentName(name);
  9055. }
  9056. var Sub = function VueComponent (options) {
  9057. this._init(options);
  9058. };
  9059. Sub.prototype = Object.create(Super.prototype);
  9060. Sub.prototype.constructor = Sub;
  9061. Sub.cid = cid++;
  9062. Sub.options = mergeOptions(
  9063. Super.options,
  9064. extendOptions
  9065. );
  9066. Sub['super'] = Super;
  9067. // For props and computed properties, we define the proxy getters on
  9068. // the Vue instances at extension time, on the extended prototype. This
  9069. // avoids Object.defineProperty calls for each instance created.
  9070. if (Sub.options.props) {
  9071. initProps$1(Sub);
  9072. }
  9073. if (Sub.options.computed) {
  9074. initComputed$1(Sub);
  9075. }
  9076. // allow further extension/mixin/plugin usage
  9077. Sub.extend = Super.extend;
  9078. Sub.mixin = Super.mixin;
  9079. Sub.use = Super.use;
  9080. // create asset registers, so extended classes
  9081. // can have their private assets too.
  9082. ASSET_TYPES.forEach(function (type) {
  9083. Sub[type] = Super[type];
  9084. });
  9085. // enable recursive self-lookup
  9086. if (name) {
  9087. Sub.options.components[name] = Sub;
  9088. }
  9089. // keep a reference to the super options at extension time.
  9090. // later at instantiation we can check if Super's options have
  9091. // been updated.
  9092. Sub.superOptions = Super.options;
  9093. Sub.extendOptions = extendOptions;
  9094. Sub.sealedOptions = extend({}, Sub.options);
  9095. // cache constructor
  9096. cachedCtors[SuperId] = Sub;
  9097. return Sub
  9098. };
  9099. }
  9100. function initProps$1 (Comp) {
  9101. var props = Comp.options.props;
  9102. for (var key in props) {
  9103. proxy(Comp.prototype, "_props", key);
  9104. }
  9105. }
  9106. function initComputed$1 (Comp) {
  9107. var computed = Comp.options.computed;
  9108. for (var key in computed) {
  9109. defineComputed(Comp.prototype, key, computed[key]);
  9110. }
  9111. }
  9112. /* */
  9113. function initAssetRegisters (Vue) {
  9114. /**
  9115. * Create asset registration methods.
  9116. */
  9117. ASSET_TYPES.forEach(function (type) {
  9118. Vue[type] = function (
  9119. id,
  9120. definition
  9121. ) {
  9122. if (!definition) {
  9123. return this.options[type + 's'][id]
  9124. } else {
  9125. /* istanbul ignore if */
  9126. if ( true && type === 'component') {
  9127. validateComponentName(id);
  9128. }
  9129. if (type === 'component' && isPlainObject(definition)) {
  9130. definition.name = definition.name || id;
  9131. definition = this.options._base.extend(definition);
  9132. }
  9133. if (type === 'directive' && typeof definition === 'function') {
  9134. definition = { bind: definition, update: definition };
  9135. }
  9136. this.options[type + 's'][id] = definition;
  9137. return definition
  9138. }
  9139. };
  9140. });
  9141. }
  9142. /* */
  9143. function getComponentName (opts) {
  9144. return opts && (opts.Ctor.options.name || opts.tag)
  9145. }
  9146. function matches (pattern, name) {
  9147. if (Array.isArray(pattern)) {
  9148. return pattern.indexOf(name) > -1
  9149. } else if (typeof pattern === 'string') {
  9150. return pattern.split(',').indexOf(name) > -1
  9151. } else if (isRegExp(pattern)) {
  9152. return pattern.test(name)
  9153. }
  9154. /* istanbul ignore next */
  9155. return false
  9156. }
  9157. function pruneCache (keepAliveInstance, filter) {
  9158. var cache = keepAliveInstance.cache;
  9159. var keys = keepAliveInstance.keys;
  9160. var _vnode = keepAliveInstance._vnode;
  9161. for (var key in cache) {
  9162. var cachedNode = cache[key];
  9163. if (cachedNode) {
  9164. var name = getComponentName(cachedNode.componentOptions);
  9165. if (name && !filter(name)) {
  9166. pruneCacheEntry(cache, key, keys, _vnode);
  9167. }
  9168. }
  9169. }
  9170. }
  9171. function pruneCacheEntry (
  9172. cache,
  9173. key,
  9174. keys,
  9175. current
  9176. ) {
  9177. var cached$$1 = cache[key];
  9178. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  9179. cached$$1.componentInstance.$destroy();
  9180. }
  9181. cache[key] = null;
  9182. remove(keys, key);
  9183. }
  9184. var patternTypes = [String, RegExp, Array];
  9185. var KeepAlive = {
  9186. name: 'keep-alive',
  9187. abstract: true,
  9188. props: {
  9189. include: patternTypes,
  9190. exclude: patternTypes,
  9191. max: [String, Number]
  9192. },
  9193. created: function created () {
  9194. this.cache = Object.create(null);
  9195. this.keys = [];
  9196. },
  9197. destroyed: function destroyed () {
  9198. for (var key in this.cache) {
  9199. pruneCacheEntry(this.cache, key, this.keys);
  9200. }
  9201. },
  9202. mounted: function mounted () {
  9203. var this$1 = this;
  9204. this.$watch('include', function (val) {
  9205. pruneCache(this$1, function (name) { return matches(val, name); });
  9206. });
  9207. this.$watch('exclude', function (val) {
  9208. pruneCache(this$1, function (name) { return !matches(val, name); });
  9209. });
  9210. },
  9211. render: function render () {
  9212. var slot = this.$slots.default;
  9213. var vnode = getFirstComponentChild(slot);
  9214. var componentOptions = vnode && vnode.componentOptions;
  9215. if (componentOptions) {
  9216. // check pattern
  9217. var name = getComponentName(componentOptions);
  9218. var ref = this;
  9219. var include = ref.include;
  9220. var exclude = ref.exclude;
  9221. if (
  9222. // not included
  9223. (include && (!name || !matches(include, name))) ||
  9224. // excluded
  9225. (exclude && name && matches(exclude, name))
  9226. ) {
  9227. return vnode
  9228. }
  9229. var ref$1 = this;
  9230. var cache = ref$1.cache;
  9231. var keys = ref$1.keys;
  9232. var key = vnode.key == null
  9233. // same constructor may get registered as different local components
  9234. // so cid alone is not enough (#3269)
  9235. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  9236. : vnode.key;
  9237. if (cache[key]) {
  9238. vnode.componentInstance = cache[key].componentInstance;
  9239. // make current key freshest
  9240. remove(keys, key);
  9241. keys.push(key);
  9242. } else {
  9243. cache[key] = vnode;
  9244. keys.push(key);
  9245. // prune oldest entry
  9246. if (this.max && keys.length > parseInt(this.max)) {
  9247. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  9248. }
  9249. }
  9250. vnode.data.keepAlive = true;
  9251. }
  9252. return vnode || (slot && slot[0])
  9253. }
  9254. };
  9255. var builtInComponents = {
  9256. KeepAlive: KeepAlive
  9257. };
  9258. /* */
  9259. function initGlobalAPI (Vue) {
  9260. // config
  9261. var configDef = {};
  9262. configDef.get = function () { return config; };
  9263. if (true) {
  9264. configDef.set = function () {
  9265. warn(
  9266. 'Do not replace the Vue.config object, set individual fields instead.'
  9267. );
  9268. };
  9269. }
  9270. Object.defineProperty(Vue, 'config', configDef);
  9271. // exposed util methods.
  9272. // NOTE: these are not considered part of the public API - avoid relying on
  9273. // them unless you are aware of the risk.
  9274. Vue.util = {
  9275. warn: warn,
  9276. extend: extend,
  9277. mergeOptions: mergeOptions,
  9278. defineReactive: defineReactive$$1
  9279. };
  9280. Vue.set = set;
  9281. Vue.delete = del;
  9282. Vue.nextTick = nextTick;
  9283. // 2.6 explicit observable API
  9284. Vue.observable = function (obj) {
  9285. observe(obj);
  9286. return obj
  9287. };
  9288. Vue.options = Object.create(null);
  9289. ASSET_TYPES.forEach(function (type) {
  9290. Vue.options[type + 's'] = Object.create(null);
  9291. });
  9292. // this is used to identify the "base" constructor to extend all plain-object
  9293. // components with in Weex's multi-instance scenarios.
  9294. Vue.options._base = Vue;
  9295. extend(Vue.options.components, builtInComponents);
  9296. initUse(Vue);
  9297. initMixin$1(Vue);
  9298. initExtend(Vue);
  9299. initAssetRegisters(Vue);
  9300. }
  9301. initGlobalAPI(Vue);
  9302. Object.defineProperty(Vue.prototype, '$isServer', {
  9303. get: isServerRendering
  9304. });
  9305. Object.defineProperty(Vue.prototype, '$ssrContext', {
  9306. get: function get () {
  9307. /* istanbul ignore next */
  9308. return this.$vnode && this.$vnode.ssrContext
  9309. }
  9310. });
  9311. // expose FunctionalRenderContext for ssr runtime helper installation
  9312. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  9313. value: FunctionalRenderContext
  9314. });
  9315. Vue.version = '2.6.11';
  9316. /**
  9317. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  9318. */
  9319. var ARRAYTYPE = '[object Array]';
  9320. var OBJECTTYPE = '[object Object]';
  9321. // const FUNCTIONTYPE = '[object Function]'
  9322. function diff(current, pre) {
  9323. var result = {};
  9324. syncKeys(current, pre);
  9325. _diff(current, pre, '', result);
  9326. return result
  9327. }
  9328. function syncKeys(current, pre) {
  9329. if (current === pre) { return }
  9330. var rootCurrentType = type(current);
  9331. var rootPreType = type(pre);
  9332. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  9333. if(Object.keys(current).length >= Object.keys(pre).length){
  9334. for (var key in pre) {
  9335. var currentValue = current[key];
  9336. if (currentValue === undefined) {
  9337. current[key] = null;
  9338. } else {
  9339. syncKeys(currentValue, pre[key]);
  9340. }
  9341. }
  9342. }
  9343. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  9344. if (current.length >= pre.length) {
  9345. pre.forEach(function (item, index) {
  9346. syncKeys(current[index], item);
  9347. });
  9348. }
  9349. }
  9350. }
  9351. function _diff(current, pre, path, result) {
  9352. if (current === pre) { return }
  9353. var rootCurrentType = type(current);
  9354. var rootPreType = type(pre);
  9355. if (rootCurrentType == OBJECTTYPE) {
  9356. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  9357. setResult(result, path, current);
  9358. } else {
  9359. var loop = function ( key ) {
  9360. var currentValue = current[key];
  9361. var preValue = pre[key];
  9362. var currentType = type(currentValue);
  9363. var preType = type(preValue);
  9364. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  9365. if (currentValue !== pre[key]) {
  9366. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9367. }
  9368. } else if (currentType == ARRAYTYPE) {
  9369. if (preType != ARRAYTYPE) {
  9370. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9371. } else {
  9372. if (currentValue.length < preValue.length) {
  9373. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9374. } else {
  9375. currentValue.forEach(function (item, index) {
  9376. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  9377. });
  9378. }
  9379. }
  9380. } else if (currentType == OBJECTTYPE) {
  9381. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  9382. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9383. } else {
  9384. for (var subKey in currentValue) {
  9385. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  9386. }
  9387. }
  9388. }
  9389. };
  9390. for (var key in current) loop( key );
  9391. }
  9392. } else if (rootCurrentType == ARRAYTYPE) {
  9393. if (rootPreType != ARRAYTYPE) {
  9394. setResult(result, path, current);
  9395. } else {
  9396. if (current.length < pre.length) {
  9397. setResult(result, path, current);
  9398. } else {
  9399. current.forEach(function (item, index) {
  9400. _diff(item, pre[index], path + '[' + index + ']', result);
  9401. });
  9402. }
  9403. }
  9404. } else {
  9405. setResult(result, path, current);
  9406. }
  9407. }
  9408. function setResult(result, k, v) {
  9409. // if (type(v) != FUNCTIONTYPE) {
  9410. result[k] = v;
  9411. // }
  9412. }
  9413. function type(obj) {
  9414. return Object.prototype.toString.call(obj)
  9415. }
  9416. /* */
  9417. function flushCallbacks$1(vm) {
  9418. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  9419. if (Object({"VUE_APP_NAME":"sampling","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9420. var mpInstance = vm.$scope;
  9421. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9422. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  9423. }
  9424. var copies = vm.__next_tick_callbacks.slice(0);
  9425. vm.__next_tick_callbacks.length = 0;
  9426. for (var i = 0; i < copies.length; i++) {
  9427. copies[i]();
  9428. }
  9429. }
  9430. }
  9431. function hasRenderWatcher(vm) {
  9432. return queue.find(function (watcher) { return vm._watcher === watcher; })
  9433. }
  9434. function nextTick$1(vm, cb) {
  9435. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  9436. //2.nextTick 之前存在 render watcher
  9437. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  9438. if(Object({"VUE_APP_NAME":"sampling","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  9439. var mpInstance = vm.$scope;
  9440. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9441. ']:nextVueTick');
  9442. }
  9443. return nextTick(cb, vm)
  9444. }else{
  9445. if(Object({"VUE_APP_NAME":"sampling","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  9446. var mpInstance$1 = vm.$scope;
  9447. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  9448. ']:nextMPTick');
  9449. }
  9450. }
  9451. var _resolve;
  9452. if (!vm.__next_tick_callbacks) {
  9453. vm.__next_tick_callbacks = [];
  9454. }
  9455. vm.__next_tick_callbacks.push(function () {
  9456. if (cb) {
  9457. try {
  9458. cb.call(vm);
  9459. } catch (e) {
  9460. handleError(e, vm, 'nextTick');
  9461. }
  9462. } else if (_resolve) {
  9463. _resolve(vm);
  9464. }
  9465. });
  9466. // $flow-disable-line
  9467. if (!cb && typeof Promise !== 'undefined') {
  9468. return new Promise(function (resolve) {
  9469. _resolve = resolve;
  9470. })
  9471. }
  9472. }
  9473. /* */
  9474. function cloneWithData(vm) {
  9475. // 确保当前 vm 所有数据被同步
  9476. var ret = Object.create(null);
  9477. var dataKeys = [].concat(
  9478. Object.keys(vm._data || {}),
  9479. Object.keys(vm._computedWatchers || {}));
  9480. dataKeys.reduce(function(ret, key) {
  9481. ret[key] = vm[key];
  9482. return ret
  9483. }, ret);
  9484. // vue-composition-api
  9485. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  9486. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  9487. if (rawBindings) {
  9488. Object.keys(rawBindings).forEach(function (key) {
  9489. ret[key] = vm[key];
  9490. });
  9491. }
  9492. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  9493. Object.assign(ret, vm.$mp.data || {});
  9494. if (
  9495. Array.isArray(vm.$options.behaviors) &&
  9496. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9497. ) { //form-field
  9498. ret['name'] = vm.name;
  9499. ret['value'] = vm.value;
  9500. }
  9501. return JSON.parse(JSON.stringify(ret))
  9502. }
  9503. var patch = function(oldVnode, vnode) {
  9504. var this$1 = this;
  9505. if (vnode === null) { //destroy
  9506. return
  9507. }
  9508. if (this.mpType === 'page' || this.mpType === 'component') {
  9509. var mpInstance = this.$scope;
  9510. var data = Object.create(null);
  9511. try {
  9512. data = cloneWithData(this);
  9513. } catch (err) {
  9514. console.error(err);
  9515. }
  9516. data.__webviewId__ = mpInstance.data.__webviewId__;
  9517. var mpData = Object.create(null);
  9518. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  9519. mpData[key] = mpInstance.data[key];
  9520. });
  9521. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  9522. if (Object.keys(diffData).length) {
  9523. if (Object({"VUE_APP_NAME":"sampling","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9524. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  9525. ']差量更新',
  9526. JSON.stringify(diffData));
  9527. }
  9528. this.__next_tick_pending = true;
  9529. mpInstance.setData(diffData, function () {
  9530. this$1.__next_tick_pending = false;
  9531. flushCallbacks$1(this$1);
  9532. });
  9533. } else {
  9534. flushCallbacks$1(this);
  9535. }
  9536. }
  9537. };
  9538. /* */
  9539. function createEmptyRender() {
  9540. }
  9541. function mountComponent$1(
  9542. vm,
  9543. el,
  9544. hydrating
  9545. ) {
  9546. if (!vm.mpType) {//main.js 中的 new Vue
  9547. return vm
  9548. }
  9549. if (vm.mpType === 'app') {
  9550. vm.$options.render = createEmptyRender;
  9551. }
  9552. if (!vm.$options.render) {
  9553. vm.$options.render = createEmptyRender;
  9554. if (true) {
  9555. /* istanbul ignore if */
  9556. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  9557. vm.$options.el || el) {
  9558. warn(
  9559. 'You are using the runtime-only build of Vue where the template ' +
  9560. 'compiler is not available. Either pre-compile the templates into ' +
  9561. 'render functions, or use the compiler-included build.',
  9562. vm
  9563. );
  9564. } else {
  9565. warn(
  9566. 'Failed to mount component: template or render function not defined.',
  9567. vm
  9568. );
  9569. }
  9570. }
  9571. }
  9572. !vm._$fallback && callHook(vm, 'beforeMount');
  9573. var updateComponent = function () {
  9574. vm._update(vm._render(), hydrating);
  9575. };
  9576. // we set this to vm._watcher inside the watcher's constructor
  9577. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  9578. // component's mounted hook), which relies on vm._watcher being already defined
  9579. new Watcher(vm, updateComponent, noop, {
  9580. before: function before() {
  9581. if (vm._isMounted && !vm._isDestroyed) {
  9582. callHook(vm, 'beforeUpdate');
  9583. }
  9584. }
  9585. }, true /* isRenderWatcher */);
  9586. hydrating = false;
  9587. return vm
  9588. }
  9589. /* */
  9590. function renderClass (
  9591. staticClass,
  9592. dynamicClass
  9593. ) {
  9594. if (isDef(staticClass) || isDef(dynamicClass)) {
  9595. return concat(staticClass, stringifyClass(dynamicClass))
  9596. }
  9597. /* istanbul ignore next */
  9598. return ''
  9599. }
  9600. function concat (a, b) {
  9601. return a ? b ? (a + ' ' + b) : a : (b || '')
  9602. }
  9603. function stringifyClass (value) {
  9604. if (Array.isArray(value)) {
  9605. return stringifyArray(value)
  9606. }
  9607. if (isObject(value)) {
  9608. return stringifyObject(value)
  9609. }
  9610. if (typeof value === 'string') {
  9611. return value
  9612. }
  9613. /* istanbul ignore next */
  9614. return ''
  9615. }
  9616. function stringifyArray (value) {
  9617. var res = '';
  9618. var stringified;
  9619. for (var i = 0, l = value.length; i < l; i++) {
  9620. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  9621. if (res) { res += ' '; }
  9622. res += stringified;
  9623. }
  9624. }
  9625. return res
  9626. }
  9627. function stringifyObject (value) {
  9628. var res = '';
  9629. for (var key in value) {
  9630. if (value[key]) {
  9631. if (res) { res += ' '; }
  9632. res += key;
  9633. }
  9634. }
  9635. return res
  9636. }
  9637. /* */
  9638. var parseStyleText = cached(function (cssText) {
  9639. var res = {};
  9640. var listDelimiter = /;(?![^(]*\))/g;
  9641. var propertyDelimiter = /:(.+)/;
  9642. cssText.split(listDelimiter).forEach(function (item) {
  9643. if (item) {
  9644. var tmp = item.split(propertyDelimiter);
  9645. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  9646. }
  9647. });
  9648. return res
  9649. });
  9650. // normalize possible array / string values into Object
  9651. function normalizeStyleBinding (bindingStyle) {
  9652. if (Array.isArray(bindingStyle)) {
  9653. return toObject(bindingStyle)
  9654. }
  9655. if (typeof bindingStyle === 'string') {
  9656. return parseStyleText(bindingStyle)
  9657. }
  9658. return bindingStyle
  9659. }
  9660. /* */
  9661. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  9662. function getTarget(obj, path) {
  9663. var parts = path.split('.');
  9664. var key = parts[0];
  9665. if (key.indexOf('__$n') === 0) { //number index
  9666. key = parseInt(key.replace('__$n', ''));
  9667. }
  9668. if (parts.length === 1) {
  9669. return obj[key]
  9670. }
  9671. return getTarget(obj[key], parts.slice(1).join('.'))
  9672. }
  9673. function internalMixin(Vue) {
  9674. Vue.config.errorHandler = function(err, vm, info) {
  9675. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  9676. console.error(err);
  9677. /* eslint-disable no-undef */
  9678. var app = typeof getApp === 'function' && getApp();
  9679. if (app && app.onError) {
  9680. app.onError(err);
  9681. }
  9682. };
  9683. var oldEmit = Vue.prototype.$emit;
  9684. Vue.prototype.$emit = function(event) {
  9685. if (this.$scope && event) {
  9686. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
  9687. __args__: toArray(arguments, 1)
  9688. });
  9689. }
  9690. return oldEmit.apply(this, arguments)
  9691. };
  9692. Vue.prototype.$nextTick = function(fn) {
  9693. return nextTick$1(this, fn)
  9694. };
  9695. MP_METHODS.forEach(function (method) {
  9696. Vue.prototype[method] = function(args) {
  9697. if (this.$scope && this.$scope[method]) {
  9698. return this.$scope[method](args)
  9699. }
  9700. // mp-alipay
  9701. if (typeof my === 'undefined') {
  9702. return
  9703. }
  9704. if (method === 'createSelectorQuery') {
  9705. /* eslint-disable no-undef */
  9706. return my.createSelectorQuery(args)
  9707. } else if (method === 'createIntersectionObserver') {
  9708. /* eslint-disable no-undef */
  9709. return my.createIntersectionObserver(args)
  9710. }
  9711. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  9712. };
  9713. });
  9714. Vue.prototype.__init_provide = initProvide;
  9715. Vue.prototype.__init_injections = initInjections;
  9716. Vue.prototype.__call_hook = function(hook, args) {
  9717. var vm = this;
  9718. // #7573 disable dep collection when invoking lifecycle hooks
  9719. pushTarget();
  9720. var handlers = vm.$options[hook];
  9721. var info = hook + " hook";
  9722. var ret;
  9723. if (handlers) {
  9724. for (var i = 0, j = handlers.length; i < j; i++) {
  9725. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  9726. }
  9727. }
  9728. if (vm._hasHookEvent) {
  9729. vm.$emit('hook:' + hook, args);
  9730. }
  9731. popTarget();
  9732. return ret
  9733. };
  9734. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  9735. if (Array.isArray(modifiers)) {
  9736. if (modifiers.indexOf('trim') !== -1) {
  9737. value = value.trim();
  9738. }
  9739. if (modifiers.indexOf('number') !== -1) {
  9740. value = this._n(value);
  9741. }
  9742. }
  9743. if (!target) {
  9744. target = this;
  9745. }
  9746. // 解决动态属性添加
  9747. Vue.set(target, key, value);
  9748. };
  9749. Vue.prototype.__set_sync = function(target, key, value) {
  9750. if (!target) {
  9751. target = this;
  9752. }
  9753. // 解决动态属性添加
  9754. Vue.set(target, key, value);
  9755. };
  9756. Vue.prototype.__get_orig = function(item) {
  9757. if (isPlainObject(item)) {
  9758. return item['$orig'] || item
  9759. }
  9760. return item
  9761. };
  9762. Vue.prototype.__get_value = function(dataPath, target) {
  9763. return getTarget(target || this, dataPath)
  9764. };
  9765. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  9766. return renderClass(staticClass, dynamicClass)
  9767. };
  9768. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  9769. if (!dynamicStyle && !staticStyle) {
  9770. return ''
  9771. }
  9772. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  9773. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  9774. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  9775. };
  9776. Vue.prototype.__map = function(val, iteratee) {
  9777. //TODO 暂不考虑 string
  9778. var ret, i, l, keys, key;
  9779. if (Array.isArray(val)) {
  9780. ret = new Array(val.length);
  9781. for (i = 0, l = val.length; i < l; i++) {
  9782. ret[i] = iteratee(val[i], i);
  9783. }
  9784. return ret
  9785. } else if (isObject(val)) {
  9786. keys = Object.keys(val);
  9787. ret = Object.create(null);
  9788. for (i = 0, l = keys.length; i < l; i++) {
  9789. key = keys[i];
  9790. ret[key] = iteratee(val[key], key, i);
  9791. }
  9792. return ret
  9793. } else if (typeof val === 'number') {
  9794. ret = new Array(val);
  9795. for (i = 0, l = val; i < l; i++) {
  9796. // 第一个参数暂时仍和小程序一致
  9797. ret[i] = iteratee(i, i);
  9798. }
  9799. return ret
  9800. }
  9801. return []
  9802. };
  9803. }
  9804. /* */
  9805. var LIFECYCLE_HOOKS$1 = [
  9806. //App
  9807. 'onLaunch',
  9808. 'onShow',
  9809. 'onHide',
  9810. 'onUniNViewMessage',
  9811. 'onPageNotFound',
  9812. 'onThemeChange',
  9813. 'onError',
  9814. 'onUnhandledRejection',
  9815. //Page
  9816. 'onInit',
  9817. 'onLoad',
  9818. // 'onShow',
  9819. 'onReady',
  9820. // 'onHide',
  9821. 'onUnload',
  9822. 'onPullDownRefresh',
  9823. 'onReachBottom',
  9824. 'onTabItemTap',
  9825. 'onAddToFavorites',
  9826. 'onShareTimeline',
  9827. 'onShareAppMessage',
  9828. 'onResize',
  9829. 'onPageScroll',
  9830. 'onNavigationBarButtonTap',
  9831. 'onBackPress',
  9832. 'onNavigationBarSearchInputChanged',
  9833. 'onNavigationBarSearchInputConfirmed',
  9834. 'onNavigationBarSearchInputClicked',
  9835. //Component
  9836. // 'onReady', // 兼容旧版本,应该移除该事件
  9837. 'onPageShow',
  9838. 'onPageHide',
  9839. 'onPageResize'
  9840. ];
  9841. function lifecycleMixin$1(Vue) {
  9842. //fixed vue-class-component
  9843. var oldExtend = Vue.extend;
  9844. Vue.extend = function(extendOptions) {
  9845. extendOptions = extendOptions || {};
  9846. var methods = extendOptions.methods;
  9847. if (methods) {
  9848. Object.keys(methods).forEach(function (methodName) {
  9849. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  9850. extendOptions[methodName] = methods[methodName];
  9851. delete methods[methodName];
  9852. }
  9853. });
  9854. }
  9855. return oldExtend.call(this, extendOptions)
  9856. };
  9857. var strategies = Vue.config.optionMergeStrategies;
  9858. var mergeHook = strategies.created;
  9859. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  9860. strategies[hook] = mergeHook;
  9861. });
  9862. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  9863. }
  9864. /* */
  9865. // install platform patch function
  9866. Vue.prototype.__patch__ = patch;
  9867. // public mount method
  9868. Vue.prototype.$mount = function(
  9869. el ,
  9870. hydrating
  9871. ) {
  9872. return mountComponent$1(this, el, hydrating)
  9873. };
  9874. lifecycleMixin$1(Vue);
  9875. internalMixin(Vue);
  9876. /* */
  9877. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  9878. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  9879. /***/ }),
  9880. /***/ 46:
  9881. /*!*******************************************************!*\
  9882. !*** X:/sampling最新/sampling/sampling/api/sampling.js ***!
  9883. \*******************************************************/
  9884. /*! no static exports found */
  9885. /***/ (function(module, exports, __webpack_require__) {
  9886. "use strict";
  9887. Object.defineProperty(exports, "__esModule", { value: true });exports.getAdmissionsList = exports.addResult = exports.getIsolationpointsList = exports.getSampleList = exports.getApplyManList = exports.applyadmission = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 47));var _request = __webpack_require__(/*! ../util/request */ 50);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}
  9888. // 添加入场申请
  9889. var applyadmission = /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(param) {var res;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
  9890. (0, _request.request)({
  9891. url: '/entrance/addAdmission',
  9892. data: param,
  9893. method: 'POST' }));case 2:res = _context.sent;return _context.abrupt("return",
  9894. res);case 4:case "end":return _context.stop();}}}, _callee);}));return function applyadmission(_x) {return _ref.apply(this, arguments);};}();
  9895. // 获取申请人列表,入场申请时的申请人
  9896. exports.applyadmission = applyadmission;var getApplyManList = /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var res;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
  9897. (0, _request.request)({
  9898. url: '/applicantslist/getApplicants' }));case 2:res = _context2.sent;return _context2.abrupt("return",
  9899. res);case 4:case "end":return _context2.stop();}}}, _callee2);}));return function getApplyManList() {return _ref2.apply(this, arguments);};}();
  9900. // const getSampleList= async () => {
  9901. // let res = await request({
  9902. // url: '/sample/get'
  9903. // })
  9904. // return res
  9905. // }
  9906. // 检查结果录入和查询检查结果那里,输入隔离点和批次搜索采样列表
  9907. exports.getApplyManList = getApplyManList;var getSampleList = /*#__PURE__*/function () {var _ref3 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(param) {var res;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return (
  9908. (0, _request.request)({
  9909. url: '/sample/search',
  9910. data: param,
  9911. method: 'POST' }));case 2:res = _context3.sent;return _context3.abrupt("return",
  9912. res);case 4:case "end":return _context3.stop();}}}, _callee3);}));return function getSampleList(_x2) {return _ref3.apply(this, arguments);};}();
  9913. // 获取隔离点列表
  9914. exports.getSampleList = getSampleList;var getIsolationpointsList = /*#__PURE__*/function () {var _ref4 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4() {var res;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:_context4.next = 2;return (
  9915. (0, _request.request)({
  9916. url: '/isolationpoints/getIsolatedPoints' }));case 2:res = _context4.sent;return _context4.abrupt("return",
  9917. res);case 4:case "end":return _context4.stop();}}}, _callee4);}));return function getIsolationpointsList() {return _ref4.apply(this, arguments);};}();
  9918. // 检查结果录入
  9919. exports.getIsolationpointsList = getIsolationpointsList;var addResult = /*#__PURE__*/function () {var _ref5 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee5(data) {var res;return _regenerator.default.wrap(function _callee5$(_context5) {while (1) {switch (_context5.prev = _context5.next) {case 0:_context5.next = 2;return (
  9920. (0, _request.request)({
  9921. url: '/sample/updateResult',
  9922. data: data,
  9923. method: 'POST' }));case 2:res = _context5.sent;return _context5.abrupt("return",
  9924. res);case 4:case "end":return _context5.stop();}}}, _callee5);}));return function addResult(_x3) {return _ref5.apply(this, arguments);};}();
  9925. // 获取入场申请列表,人员采样页面
  9926. exports.addResult = addResult;var getAdmissionsList = /*#__PURE__*/function () {var _ref6 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee6() {var res;return _regenerator.default.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:_context6.next = 2;return (
  9927. (0, _request.request)({
  9928. url: '/entrance/getAdmission' }));case 2:res = _context6.sent;return _context6.abrupt("return",
  9929. res);case 4:case "end":return _context6.stop();}}}, _callee6);}));return function getAdmissionsList() {return _ref6.apply(this, arguments);};}();exports.getAdmissionsList = getAdmissionsList;
  9930. /***/ }),
  9931. /***/ 47:
  9932. /*!**********************************************************!*\
  9933. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  9934. \**********************************************************/
  9935. /*! no static exports found */
  9936. /***/ (function(module, exports, __webpack_require__) {
  9937. module.exports = __webpack_require__(/*! regenerator-runtime */ 48);
  9938. /***/ }),
  9939. /***/ 48:
  9940. /*!************************************************************!*\
  9941. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  9942. \************************************************************/
  9943. /*! no static exports found */
  9944. /***/ (function(module, exports, __webpack_require__) {
  9945. /**
  9946. * Copyright (c) 2014-present, Facebook, Inc.
  9947. *
  9948. * This source code is licensed under the MIT license found in the
  9949. * LICENSE file in the root directory of this source tree.
  9950. */
  9951. // This method of obtaining a reference to the global object needs to be
  9952. // kept identical to the way it is obtained in runtime.js
  9953. var g = (function() {
  9954. return this || (typeof self === "object" && self);
  9955. })() || Function("return this")();
  9956. // Use `getOwnPropertyNames` because not all browsers support calling
  9957. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  9958. var hadRuntime = g.regeneratorRuntime &&
  9959. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  9960. // Save the old regeneratorRuntime in case it needs to be restored later.
  9961. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  9962. // Force reevalutation of runtime.js.
  9963. g.regeneratorRuntime = undefined;
  9964. module.exports = __webpack_require__(/*! ./runtime */ 49);
  9965. if (hadRuntime) {
  9966. // Restore the original runtime.
  9967. g.regeneratorRuntime = oldRuntime;
  9968. } else {
  9969. // Remove the global property added by runtime.js.
  9970. try {
  9971. delete g.regeneratorRuntime;
  9972. } catch(e) {
  9973. g.regeneratorRuntime = undefined;
  9974. }
  9975. }
  9976. /***/ }),
  9977. /***/ 49:
  9978. /*!*****************************************************!*\
  9979. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  9980. \*****************************************************/
  9981. /*! no static exports found */
  9982. /***/ (function(module, exports) {
  9983. /**
  9984. * Copyright (c) 2014-present, Facebook, Inc.
  9985. *
  9986. * This source code is licensed under the MIT license found in the
  9987. * LICENSE file in the root directory of this source tree.
  9988. */
  9989. !(function(global) {
  9990. "use strict";
  9991. var Op = Object.prototype;
  9992. var hasOwn = Op.hasOwnProperty;
  9993. var undefined; // More compressible than void 0.
  9994. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  9995. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  9996. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  9997. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  9998. var inModule = typeof module === "object";
  9999. var runtime = global.regeneratorRuntime;
  10000. if (runtime) {
  10001. if (inModule) {
  10002. // If regeneratorRuntime is defined globally and we're in a module,
  10003. // make the exports object identical to regeneratorRuntime.
  10004. module.exports = runtime;
  10005. }
  10006. // Don't bother evaluating the rest of this file if the runtime was
  10007. // already defined globally.
  10008. return;
  10009. }
  10010. // Define the runtime globally (as expected by generated code) as either
  10011. // module.exports (if we're in a module) or a new, empty object.
  10012. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  10013. function wrap(innerFn, outerFn, self, tryLocsList) {
  10014. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  10015. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  10016. var generator = Object.create(protoGenerator.prototype);
  10017. var context = new Context(tryLocsList || []);
  10018. // The ._invoke method unifies the implementations of the .next,
  10019. // .throw, and .return methods.
  10020. generator._invoke = makeInvokeMethod(innerFn, self, context);
  10021. return generator;
  10022. }
  10023. runtime.wrap = wrap;
  10024. // Try/catch helper to minimize deoptimizations. Returns a completion
  10025. // record like context.tryEntries[i].completion. This interface could
  10026. // have been (and was previously) designed to take a closure to be
  10027. // invoked without arguments, but in all the cases we care about we
  10028. // already have an existing method we want to call, so there's no need
  10029. // to create a new function object. We can even get away with assuming
  10030. // the method takes exactly one argument, since that happens to be true
  10031. // in every case, so we don't have to touch the arguments object. The
  10032. // only additional allocation required is the completion record, which
  10033. // has a stable shape and so hopefully should be cheap to allocate.
  10034. function tryCatch(fn, obj, arg) {
  10035. try {
  10036. return { type: "normal", arg: fn.call(obj, arg) };
  10037. } catch (err) {
  10038. return { type: "throw", arg: err };
  10039. }
  10040. }
  10041. var GenStateSuspendedStart = "suspendedStart";
  10042. var GenStateSuspendedYield = "suspendedYield";
  10043. var GenStateExecuting = "executing";
  10044. var GenStateCompleted = "completed";
  10045. // Returning this object from the innerFn has the same effect as
  10046. // breaking out of the dispatch switch statement.
  10047. var ContinueSentinel = {};
  10048. // Dummy constructor functions that we use as the .constructor and
  10049. // .constructor.prototype properties for functions that return Generator
  10050. // objects. For full spec compliance, you may wish to configure your
  10051. // minifier not to mangle the names of these two functions.
  10052. function Generator() {}
  10053. function GeneratorFunction() {}
  10054. function GeneratorFunctionPrototype() {}
  10055. // This is a polyfill for %IteratorPrototype% for environments that
  10056. // don't natively support it.
  10057. var IteratorPrototype = {};
  10058. IteratorPrototype[iteratorSymbol] = function () {
  10059. return this;
  10060. };
  10061. var getProto = Object.getPrototypeOf;
  10062. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  10063. if (NativeIteratorPrototype &&
  10064. NativeIteratorPrototype !== Op &&
  10065. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  10066. // This environment has a native %IteratorPrototype%; use it instead
  10067. // of the polyfill.
  10068. IteratorPrototype = NativeIteratorPrototype;
  10069. }
  10070. var Gp = GeneratorFunctionPrototype.prototype =
  10071. Generator.prototype = Object.create(IteratorPrototype);
  10072. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  10073. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  10074. GeneratorFunctionPrototype[toStringTagSymbol] =
  10075. GeneratorFunction.displayName = "GeneratorFunction";
  10076. // Helper for defining the .next, .throw, and .return methods of the
  10077. // Iterator interface in terms of a single ._invoke method.
  10078. function defineIteratorMethods(prototype) {
  10079. ["next", "throw", "return"].forEach(function(method) {
  10080. prototype[method] = function(arg) {
  10081. return this._invoke(method, arg);
  10082. };
  10083. });
  10084. }
  10085. runtime.isGeneratorFunction = function(genFun) {
  10086. var ctor = typeof genFun === "function" && genFun.constructor;
  10087. return ctor
  10088. ? ctor === GeneratorFunction ||
  10089. // For the native GeneratorFunction constructor, the best we can
  10090. // do is to check its .name property.
  10091. (ctor.displayName || ctor.name) === "GeneratorFunction"
  10092. : false;
  10093. };
  10094. runtime.mark = function(genFun) {
  10095. if (Object.setPrototypeOf) {
  10096. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  10097. } else {
  10098. genFun.__proto__ = GeneratorFunctionPrototype;
  10099. if (!(toStringTagSymbol in genFun)) {
  10100. genFun[toStringTagSymbol] = "GeneratorFunction";
  10101. }
  10102. }
  10103. genFun.prototype = Object.create(Gp);
  10104. return genFun;
  10105. };
  10106. // Within the body of any async function, `await x` is transformed to
  10107. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  10108. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  10109. // meant to be awaited.
  10110. runtime.awrap = function(arg) {
  10111. return { __await: arg };
  10112. };
  10113. function AsyncIterator(generator) {
  10114. function invoke(method, arg, resolve, reject) {
  10115. var record = tryCatch(generator[method], generator, arg);
  10116. if (record.type === "throw") {
  10117. reject(record.arg);
  10118. } else {
  10119. var result = record.arg;
  10120. var value = result.value;
  10121. if (value &&
  10122. typeof value === "object" &&
  10123. hasOwn.call(value, "__await")) {
  10124. return Promise.resolve(value.__await).then(function(value) {
  10125. invoke("next", value, resolve, reject);
  10126. }, function(err) {
  10127. invoke("throw", err, resolve, reject);
  10128. });
  10129. }
  10130. return Promise.resolve(value).then(function(unwrapped) {
  10131. // When a yielded Promise is resolved, its final value becomes
  10132. // the .value of the Promise<{value,done}> result for the
  10133. // current iteration.
  10134. result.value = unwrapped;
  10135. resolve(result);
  10136. }, function(error) {
  10137. // If a rejected Promise was yielded, throw the rejection back
  10138. // into the async generator function so it can be handled there.
  10139. return invoke("throw", error, resolve, reject);
  10140. });
  10141. }
  10142. }
  10143. var previousPromise;
  10144. function enqueue(method, arg) {
  10145. function callInvokeWithMethodAndArg() {
  10146. return new Promise(function(resolve, reject) {
  10147. invoke(method, arg, resolve, reject);
  10148. });
  10149. }
  10150. return previousPromise =
  10151. // If enqueue has been called before, then we want to wait until
  10152. // all previous Promises have been resolved before calling invoke,
  10153. // so that results are always delivered in the correct order. If
  10154. // enqueue has not been called before, then it is important to
  10155. // call invoke immediately, without waiting on a callback to fire,
  10156. // so that the async generator function has the opportunity to do
  10157. // any necessary setup in a predictable way. This predictability
  10158. // is why the Promise constructor synchronously invokes its
  10159. // executor callback, and why async functions synchronously
  10160. // execute code before the first await. Since we implement simple
  10161. // async functions in terms of async generators, it is especially
  10162. // important to get this right, even though it requires care.
  10163. previousPromise ? previousPromise.then(
  10164. callInvokeWithMethodAndArg,
  10165. // Avoid propagating failures to Promises returned by later
  10166. // invocations of the iterator.
  10167. callInvokeWithMethodAndArg
  10168. ) : callInvokeWithMethodAndArg();
  10169. }
  10170. // Define the unified helper method that is used to implement .next,
  10171. // .throw, and .return (see defineIteratorMethods).
  10172. this._invoke = enqueue;
  10173. }
  10174. defineIteratorMethods(AsyncIterator.prototype);
  10175. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  10176. return this;
  10177. };
  10178. runtime.AsyncIterator = AsyncIterator;
  10179. // Note that simple async functions are implemented on top of
  10180. // AsyncIterator objects; they just return a Promise for the value of
  10181. // the final result produced by the iterator.
  10182. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  10183. var iter = new AsyncIterator(
  10184. wrap(innerFn, outerFn, self, tryLocsList)
  10185. );
  10186. return runtime.isGeneratorFunction(outerFn)
  10187. ? iter // If outerFn is a generator, return the full iterator.
  10188. : iter.next().then(function(result) {
  10189. return result.done ? result.value : iter.next();
  10190. });
  10191. };
  10192. function makeInvokeMethod(innerFn, self, context) {
  10193. var state = GenStateSuspendedStart;
  10194. return function invoke(method, arg) {
  10195. if (state === GenStateExecuting) {
  10196. throw new Error("Generator is already running");
  10197. }
  10198. if (state === GenStateCompleted) {
  10199. if (method === "throw") {
  10200. throw arg;
  10201. }
  10202. // Be forgiving, per 25.3.3.3.3 of the spec:
  10203. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  10204. return doneResult();
  10205. }
  10206. context.method = method;
  10207. context.arg = arg;
  10208. while (true) {
  10209. var delegate = context.delegate;
  10210. if (delegate) {
  10211. var delegateResult = maybeInvokeDelegate(delegate, context);
  10212. if (delegateResult) {
  10213. if (delegateResult === ContinueSentinel) continue;
  10214. return delegateResult;
  10215. }
  10216. }
  10217. if (context.method === "next") {
  10218. // Setting context._sent for legacy support of Babel's
  10219. // function.sent implementation.
  10220. context.sent = context._sent = context.arg;
  10221. } else if (context.method === "throw") {
  10222. if (state === GenStateSuspendedStart) {
  10223. state = GenStateCompleted;
  10224. throw context.arg;
  10225. }
  10226. context.dispatchException(context.arg);
  10227. } else if (context.method === "return") {
  10228. context.abrupt("return", context.arg);
  10229. }
  10230. state = GenStateExecuting;
  10231. var record = tryCatch(innerFn, self, context);
  10232. if (record.type === "normal") {
  10233. // If an exception is thrown from innerFn, we leave state ===
  10234. // GenStateExecuting and loop back for another invocation.
  10235. state = context.done
  10236. ? GenStateCompleted
  10237. : GenStateSuspendedYield;
  10238. if (record.arg === ContinueSentinel) {
  10239. continue;
  10240. }
  10241. return {
  10242. value: record.arg,
  10243. done: context.done
  10244. };
  10245. } else if (record.type === "throw") {
  10246. state = GenStateCompleted;
  10247. // Dispatch the exception by looping back around to the
  10248. // context.dispatchException(context.arg) call above.
  10249. context.method = "throw";
  10250. context.arg = record.arg;
  10251. }
  10252. }
  10253. };
  10254. }
  10255. // Call delegate.iterator[context.method](context.arg) and handle the
  10256. // result, either by returning a { value, done } result from the
  10257. // delegate iterator, or by modifying context.method and context.arg,
  10258. // setting context.delegate to null, and returning the ContinueSentinel.
  10259. function maybeInvokeDelegate(delegate, context) {
  10260. var method = delegate.iterator[context.method];
  10261. if (method === undefined) {
  10262. // A .throw or .return when the delegate iterator has no .throw
  10263. // method always terminates the yield* loop.
  10264. context.delegate = null;
  10265. if (context.method === "throw") {
  10266. if (delegate.iterator.return) {
  10267. // If the delegate iterator has a return method, give it a
  10268. // chance to clean up.
  10269. context.method = "return";
  10270. context.arg = undefined;
  10271. maybeInvokeDelegate(delegate, context);
  10272. if (context.method === "throw") {
  10273. // If maybeInvokeDelegate(context) changed context.method from
  10274. // "return" to "throw", let that override the TypeError below.
  10275. return ContinueSentinel;
  10276. }
  10277. }
  10278. context.method = "throw";
  10279. context.arg = new TypeError(
  10280. "The iterator does not provide a 'throw' method");
  10281. }
  10282. return ContinueSentinel;
  10283. }
  10284. var record = tryCatch(method, delegate.iterator, context.arg);
  10285. if (record.type === "throw") {
  10286. context.method = "throw";
  10287. context.arg = record.arg;
  10288. context.delegate = null;
  10289. return ContinueSentinel;
  10290. }
  10291. var info = record.arg;
  10292. if (! info) {
  10293. context.method = "throw";
  10294. context.arg = new TypeError("iterator result is not an object");
  10295. context.delegate = null;
  10296. return ContinueSentinel;
  10297. }
  10298. if (info.done) {
  10299. // Assign the result of the finished delegate to the temporary
  10300. // variable specified by delegate.resultName (see delegateYield).
  10301. context[delegate.resultName] = info.value;
  10302. // Resume execution at the desired location (see delegateYield).
  10303. context.next = delegate.nextLoc;
  10304. // If context.method was "throw" but the delegate handled the
  10305. // exception, let the outer generator proceed normally. If
  10306. // context.method was "next", forget context.arg since it has been
  10307. // "consumed" by the delegate iterator. If context.method was
  10308. // "return", allow the original .return call to continue in the
  10309. // outer generator.
  10310. if (context.method !== "return") {
  10311. context.method = "next";
  10312. context.arg = undefined;
  10313. }
  10314. } else {
  10315. // Re-yield the result returned by the delegate method.
  10316. return info;
  10317. }
  10318. // The delegate iterator is finished, so forget it and continue with
  10319. // the outer generator.
  10320. context.delegate = null;
  10321. return ContinueSentinel;
  10322. }
  10323. // Define Generator.prototype.{next,throw,return} in terms of the
  10324. // unified ._invoke helper method.
  10325. defineIteratorMethods(Gp);
  10326. Gp[toStringTagSymbol] = "Generator";
  10327. // A Generator should always return itself as the iterator object when the
  10328. // @@iterator function is called on it. Some browsers' implementations of the
  10329. // iterator prototype chain incorrectly implement this, causing the Generator
  10330. // object to not be returned from this call. This ensures that doesn't happen.
  10331. // See https://github.com/facebook/regenerator/issues/274 for more details.
  10332. Gp[iteratorSymbol] = function() {
  10333. return this;
  10334. };
  10335. Gp.toString = function() {
  10336. return "[object Generator]";
  10337. };
  10338. function pushTryEntry(locs) {
  10339. var entry = { tryLoc: locs[0] };
  10340. if (1 in locs) {
  10341. entry.catchLoc = locs[1];
  10342. }
  10343. if (2 in locs) {
  10344. entry.finallyLoc = locs[2];
  10345. entry.afterLoc = locs[3];
  10346. }
  10347. this.tryEntries.push(entry);
  10348. }
  10349. function resetTryEntry(entry) {
  10350. var record = entry.completion || {};
  10351. record.type = "normal";
  10352. delete record.arg;
  10353. entry.completion = record;
  10354. }
  10355. function Context(tryLocsList) {
  10356. // The root entry object (effectively a try statement without a catch
  10357. // or a finally block) gives us a place to store values thrown from
  10358. // locations where there is no enclosing try statement.
  10359. this.tryEntries = [{ tryLoc: "root" }];
  10360. tryLocsList.forEach(pushTryEntry, this);
  10361. this.reset(true);
  10362. }
  10363. runtime.keys = function(object) {
  10364. var keys = [];
  10365. for (var key in object) {
  10366. keys.push(key);
  10367. }
  10368. keys.reverse();
  10369. // Rather than returning an object with a next method, we keep
  10370. // things simple and return the next function itself.
  10371. return function next() {
  10372. while (keys.length) {
  10373. var key = keys.pop();
  10374. if (key in object) {
  10375. next.value = key;
  10376. next.done = false;
  10377. return next;
  10378. }
  10379. }
  10380. // To avoid creating an additional object, we just hang the .value
  10381. // and .done properties off the next function object itself. This
  10382. // also ensures that the minifier will not anonymize the function.
  10383. next.done = true;
  10384. return next;
  10385. };
  10386. };
  10387. function values(iterable) {
  10388. if (iterable) {
  10389. var iteratorMethod = iterable[iteratorSymbol];
  10390. if (iteratorMethod) {
  10391. return iteratorMethod.call(iterable);
  10392. }
  10393. if (typeof iterable.next === "function") {
  10394. return iterable;
  10395. }
  10396. if (!isNaN(iterable.length)) {
  10397. var i = -1, next = function next() {
  10398. while (++i < iterable.length) {
  10399. if (hasOwn.call(iterable, i)) {
  10400. next.value = iterable[i];
  10401. next.done = false;
  10402. return next;
  10403. }
  10404. }
  10405. next.value = undefined;
  10406. next.done = true;
  10407. return next;
  10408. };
  10409. return next.next = next;
  10410. }
  10411. }
  10412. // Return an iterator with no values.
  10413. return { next: doneResult };
  10414. }
  10415. runtime.values = values;
  10416. function doneResult() {
  10417. return { value: undefined, done: true };
  10418. }
  10419. Context.prototype = {
  10420. constructor: Context,
  10421. reset: function(skipTempReset) {
  10422. this.prev = 0;
  10423. this.next = 0;
  10424. // Resetting context._sent for legacy support of Babel's
  10425. // function.sent implementation.
  10426. this.sent = this._sent = undefined;
  10427. this.done = false;
  10428. this.delegate = null;
  10429. this.method = "next";
  10430. this.arg = undefined;
  10431. this.tryEntries.forEach(resetTryEntry);
  10432. if (!skipTempReset) {
  10433. for (var name in this) {
  10434. // Not sure about the optimal order of these conditions:
  10435. if (name.charAt(0) === "t" &&
  10436. hasOwn.call(this, name) &&
  10437. !isNaN(+name.slice(1))) {
  10438. this[name] = undefined;
  10439. }
  10440. }
  10441. }
  10442. },
  10443. stop: function() {
  10444. this.done = true;
  10445. var rootEntry = this.tryEntries[0];
  10446. var rootRecord = rootEntry.completion;
  10447. if (rootRecord.type === "throw") {
  10448. throw rootRecord.arg;
  10449. }
  10450. return this.rval;
  10451. },
  10452. dispatchException: function(exception) {
  10453. if (this.done) {
  10454. throw exception;
  10455. }
  10456. var context = this;
  10457. function handle(loc, caught) {
  10458. record.type = "throw";
  10459. record.arg = exception;
  10460. context.next = loc;
  10461. if (caught) {
  10462. // If the dispatched exception was caught by a catch block,
  10463. // then let that catch block handle the exception normally.
  10464. context.method = "next";
  10465. context.arg = undefined;
  10466. }
  10467. return !! caught;
  10468. }
  10469. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10470. var entry = this.tryEntries[i];
  10471. var record = entry.completion;
  10472. if (entry.tryLoc === "root") {
  10473. // Exception thrown outside of any try block that could handle
  10474. // it, so set the completion value of the entire function to
  10475. // throw the exception.
  10476. return handle("end");
  10477. }
  10478. if (entry.tryLoc <= this.prev) {
  10479. var hasCatch = hasOwn.call(entry, "catchLoc");
  10480. var hasFinally = hasOwn.call(entry, "finallyLoc");
  10481. if (hasCatch && hasFinally) {
  10482. if (this.prev < entry.catchLoc) {
  10483. return handle(entry.catchLoc, true);
  10484. } else if (this.prev < entry.finallyLoc) {
  10485. return handle(entry.finallyLoc);
  10486. }
  10487. } else if (hasCatch) {
  10488. if (this.prev < entry.catchLoc) {
  10489. return handle(entry.catchLoc, true);
  10490. }
  10491. } else if (hasFinally) {
  10492. if (this.prev < entry.finallyLoc) {
  10493. return handle(entry.finallyLoc);
  10494. }
  10495. } else {
  10496. throw new Error("try statement without catch or finally");
  10497. }
  10498. }
  10499. }
  10500. },
  10501. abrupt: function(type, arg) {
  10502. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10503. var entry = this.tryEntries[i];
  10504. if (entry.tryLoc <= this.prev &&
  10505. hasOwn.call(entry, "finallyLoc") &&
  10506. this.prev < entry.finallyLoc) {
  10507. var finallyEntry = entry;
  10508. break;
  10509. }
  10510. }
  10511. if (finallyEntry &&
  10512. (type === "break" ||
  10513. type === "continue") &&
  10514. finallyEntry.tryLoc <= arg &&
  10515. arg <= finallyEntry.finallyLoc) {
  10516. // Ignore the finally entry if control is not jumping to a
  10517. // location outside the try/catch block.
  10518. finallyEntry = null;
  10519. }
  10520. var record = finallyEntry ? finallyEntry.completion : {};
  10521. record.type = type;
  10522. record.arg = arg;
  10523. if (finallyEntry) {
  10524. this.method = "next";
  10525. this.next = finallyEntry.finallyLoc;
  10526. return ContinueSentinel;
  10527. }
  10528. return this.complete(record);
  10529. },
  10530. complete: function(record, afterLoc) {
  10531. if (record.type === "throw") {
  10532. throw record.arg;
  10533. }
  10534. if (record.type === "break" ||
  10535. record.type === "continue") {
  10536. this.next = record.arg;
  10537. } else if (record.type === "return") {
  10538. this.rval = this.arg = record.arg;
  10539. this.method = "return";
  10540. this.next = "end";
  10541. } else if (record.type === "normal" && afterLoc) {
  10542. this.next = afterLoc;
  10543. }
  10544. return ContinueSentinel;
  10545. },
  10546. finish: function(finallyLoc) {
  10547. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10548. var entry = this.tryEntries[i];
  10549. if (entry.finallyLoc === finallyLoc) {
  10550. this.complete(entry.completion, entry.afterLoc);
  10551. resetTryEntry(entry);
  10552. return ContinueSentinel;
  10553. }
  10554. }
  10555. },
  10556. "catch": function(tryLoc) {
  10557. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10558. var entry = this.tryEntries[i];
  10559. if (entry.tryLoc === tryLoc) {
  10560. var record = entry.completion;
  10561. if (record.type === "throw") {
  10562. var thrown = record.arg;
  10563. resetTryEntry(entry);
  10564. }
  10565. return thrown;
  10566. }
  10567. }
  10568. // The context.catch method must only be called with a location
  10569. // argument that corresponds to a known catch block.
  10570. throw new Error("illegal catch attempt");
  10571. },
  10572. delegateYield: function(iterable, resultName, nextLoc) {
  10573. this.delegate = {
  10574. iterator: values(iterable),
  10575. resultName: resultName,
  10576. nextLoc: nextLoc
  10577. };
  10578. if (this.method === "next") {
  10579. // Deliberately forget the last sent value so that we don't
  10580. // accidentally pass it on to the delegate.
  10581. this.arg = undefined;
  10582. }
  10583. return ContinueSentinel;
  10584. }
  10585. };
  10586. })(
  10587. // In sloppy mode, unbound `this` refers to the global object, fallback to
  10588. // Function constructor if we're in global strict mode. That is sadly a form
  10589. // of indirect eval which violates Content Security Policy.
  10590. (function() {
  10591. return this || (typeof self === "object" && self);
  10592. })() || Function("return this")()
  10593. );
  10594. /***/ }),
  10595. /***/ 5:
  10596. /*!**************************************************!*\
  10597. !*** X:/sampling最新/sampling/sampling/pages.json ***!
  10598. \**************************************************/
  10599. /*! no static exports found */
  10600. /***/ (function(module, exports) {
  10601. /***/ }),
  10602. /***/ 50:
  10603. /*!*******************************************************!*\
  10604. !*** X:/sampling最新/sampling/sampling/util/request.js ***!
  10605. \*******************************************************/
  10606. /*! no static exports found */
  10607. /***/ (function(module, exports, __webpack_require__) {
  10608. "use strict";
  10609. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = exports.request = void 0;var _config = _interopRequireDefault(__webpack_require__(/*! @/util/config.js */ 51));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  10610. var request = function request(options) {
  10611. return new Promise(function (resolve, reject) {
  10612. var token = uni.getStorageSync('login_token');
  10613. // 在登录的时候需要储存 token uni.setStorageSync("authorization","这里是登录获取的token值")
  10614. uni.request({
  10615. url: _config.default.baseUrl + options.url,
  10616. data: options.data || {},
  10617. method: options.method || 'GET',
  10618. header: options.header || {
  10619. // 根据实际接口设计 key 取 token 或者 authorization
  10620. 'Authorization': token },
  10621. success: function success(res) {
  10622. // console.log(res.data); // 控制台显示数据信息
  10623. resolve(res.data);
  10624. },
  10625. fail: function fail(err) {
  10626. // 页面中弹框显示失败
  10627. uni.showToast({
  10628. title: '请求接口失败',
  10629. icon: 'none' });
  10630. // 返回错误消息
  10631. reject(err);
  10632. },
  10633. catch: function _catch(e) {
  10634. console.log(e);
  10635. } });
  10636. });
  10637. };
  10638. // 将对象导出外部引入使用
  10639. exports.request = request;var _default = {
  10640. request: request };exports.default = _default;
  10641. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  10642. /***/ }),
  10643. /***/ 51:
  10644. /*!******************************************************!*\
  10645. !*** X:/sampling最新/sampling/sampling/util/config.js ***!
  10646. \******************************************************/
  10647. /*! no static exports found */
  10648. /***/ (function(module, exports, __webpack_require__) {
  10649. "use strict";
  10650. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  10651. // baseUrl: "https://pan.rubinchu.com/api/",
  10652. // baseUrl: "http://192.168.0.104:8080",
  10653. // baseUrl: "http://114.116.114.108:17778",
  10654. baseUrl: "http://192.168.0.103:9091/" };exports.default = _default;
  10655. /***/ }),
  10656. /***/ 87:
  10657. /*!************************************************************************************!*\
  10658. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  10659. \************************************************************************************/
  10660. /*! no static exports found */
  10661. /***/ (function(module, exports, __webpack_require__) {
  10662. "use strict";
  10663. /* WEBPACK VAR INJECTION */(function(global, uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 47));var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _createForOfIteratorHelper(o, allowArrayLike) {var it;if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {if (it) o = it;var i = 0;var F = function F() {};return { s: F, n: function n() {if (i >= o.length) return { done: true };return { done: false, value: o[i++] };}, e: function e(_e27) {throw _e27;}, f: F };}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion = true,didErr = false,err;return { s: function s() {it = o[Symbol.iterator]();}, n: function n() {var step = it.next();normalCompletion = step.done;return step;}, e: function e(_e28) {didErr = true;err = _e28;}, f: function f() {try {if (!normalCompletion && it.return != null) it.return();} finally {if (didErr) throw err;}} };}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _inherits(subClass, superClass) {if (typeof superClass !== "function" && superClass !== null) {throw new TypeError("Super expression must either be null or a function");}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });if (superClass) _setPrototypeOf(subClass, superClass);}function _createSuper(Derived) {var hasNativeReflectConstruct = _isNativeReflectConstruct();return function _createSuperInternal() {var Super = _getPrototypeOf(Derived),result;if (hasNativeReflectConstruct) {var NewTarget = _getPrototypeOf(this).constructor;result = Reflect.construct(Super, arguments, NewTarget);} else {result = Super.apply(this, arguments);}return _possibleConstructorReturn(this, result);};}function _possibleConstructorReturn(self, call) {if (call && (typeof call === "object" || typeof call === "function")) {return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self) {if (self === void 0) {throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _wrapNativeSuper(Class) {var _cache = typeof Map === "function" ? new Map() : undefined;_wrapNativeSuper = function _wrapNativeSuper(Class) {if (Class === null || !_isNativeFunction(Class)) return Class;if (typeof Class !== "function") {throw new TypeError("Super expression must either be null or a function");}if (typeof _cache !== "undefined") {if (_cache.has(Class)) return _cache.get(Class);_cache.set(Class, Wrapper);}function Wrapper() {return _construct(Class, arguments, _getPrototypeOf(this).constructor);}Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } });return _setPrototypeOf(Wrapper, Class);};return _wrapNativeSuper(Class);}function _construct(Parent, args, Class) {if (_isNativeReflectConstruct()) {_construct = Reflect.construct;} else {_construct = function _construct(Parent, args, Class) {var a = [null];a.push.apply(a, args);var Constructor = Function.bind.apply(Parent, a);var instance = new Constructor();if (Class) _setPrototypeOf(instance, Class.prototype);return instance;};}return _construct.apply(null, arguments);}function _isNativeReflectConstruct() {if (typeof Reflect === "undefined" || !Reflect.construct) return false;if (Reflect.construct.sham) return false;if (typeof Proxy === "function") return true;try {Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));return true;} catch (e) {return false;}}function _isNativeFunction(fn) {return Function.toString.call(fn).indexOf("[native code]") !== -1;}function _setPrototypeOf(o, p) {_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {o.__proto__ = p;return o;};return _setPrototypeOf(o, p);}function _getPrototypeOf(o) {_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {return o.__proto__ || Object.getPrototypeOf(o);};return _getPrototypeOf(o);}"undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;function t(e) {return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;}function n(e, t, n) {return e(n = { path: t, exports: {}, require: function require(e, t) {return function () {throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");}(null == t && n.path);} }, n.exports), n.exports;}var s = n(function (e, t) {var n;e.exports = (n = n || function (e, t) {var n = Object.create || function () {function e() {}return function (t) {var n;return e.prototype = t, n = new e(), e.prototype = null, n;};}(),s = {},o = s.lib = {},r = o.Base = { extend: function extend(e) {var t = n(this);return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {t.$super.init.apply(this, arguments);}), t.init.prototype = t, t.$super = this, t;}, create: function create() {var e = this.extend();return e.init.apply(e, arguments), e;}, init: function init() {}, mixIn: function mixIn(e) {for (var t in e) {e.hasOwnProperty(t) && (this[t] = e[t]);}e.hasOwnProperty("toString") && (this.toString = e.toString);}, clone: function clone() {return this.init.prototype.extend(this);} },i = o.WordArray = r.extend({ init: function init(e, n) {e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;}, toString: function toString(e) {return (e || c).stringify(this);}, concat: function concat(e) {var t = this.words,n = e.words,s = this.sigBytes,o = e.sigBytes;if (this.clamp(), s % 4) for (var r = 0; r < o; r++) {var i = n[r >>> 2] >>> 24 - r % 4 * 8 & 255;t[s + r >>> 2] |= i << 24 - (s + r) % 4 * 8;} else for (r = 0; r < o; r += 4) {t[s + r >>> 2] = n[r >>> 2];}return this.sigBytes += o, this;}, clamp: function clamp() {var t = this.words,n = this.sigBytes;t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);}, clone: function clone() {var e = r.clone.call(this);return e.words = this.words.slice(0), e;}, random: function random(t) {for (var n, s = [], o = function o(t) {t = t;var n = 987654321,s = 4294967295;return function () {var o = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;return o /= 4294967296, (o += .5) * (e.random() > .5 ? 1 : -1);};}, r = 0; r < t; r += 4) {var a = o(4294967296 * (n || e.random()));n = 987654071 * a(), s.push(4294967296 * a() | 0);}return new i.init(s, t);} }),a = s.enc = {},c = a.Hex = { stringify: function stringify(e) {for (var t = e.words, n = e.sigBytes, s = [], o = 0; o < n; o++) {var r = t[o >>> 2] >>> 24 - o % 4 * 8 & 255;s.push((r >>> 4).toString(16)), s.push((15 & r).toString(16));}return s.join("");}, parse: function parse(e) {for (var t = e.length, n = [], s = 0; s < t; s += 2) {n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;}return new i.init(n, t / 2);} },u = a.Latin1 = { stringify: function stringify(e) {for (var t = e.words, n = e.sigBytes, s = [], o = 0; o < n; o++) {var r = t[o >>> 2] >>> 24 - o % 4 * 8 & 255;s.push(String.fromCharCode(r));}return s.join("");}, parse: function parse(e) {for (var t = e.length, n = [], s = 0; s < t; s++) {n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;}return new i.init(n, t);} },l = a.Utf8 = { stringify: function stringify(e) {try {return decodeURIComponent(escape(u.stringify(e)));} catch (e) {throw new Error("Malformed UTF-8 data");}}, parse: function parse(e) {return u.parse(unescape(encodeURIComponent(e)));} },h = o.BufferedBlockAlgorithm = r.extend({ reset: function reset() {this._data = new i.init(), this._nDataBytes = 0;}, _append: function _append(e) {"string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;}, _process: function _process(t) {var n = this._data,s = n.words,o = n.sigBytes,r = this.blockSize,a = o / (4 * r),c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * r,u = e.min(4 * c, o);if (c) {for (var l = 0; l < c; l += r) {this._doProcessBlock(s, l);}var h = s.splice(0, c);n.sigBytes -= u;}return new i.init(h, u);}, clone: function clone() {var e = r.clone.call(this);return e._data = this._data.clone(), e;}, _minBufferSize: 0 });o.Hasher = h.extend({ cfg: r.extend(), init: function init(e) {this.cfg = this.cfg.extend(e), this.reset();}, reset: function reset() {h.reset.call(this), this._doReset();}, update: function update(e) {return this._append(e), this._process(), this;}, finalize: function finalize(e) {return e && this._append(e), this._doFinalize();}, blockSize: 16, _createHelper: function _createHelper(e) {return function (t, n) {return new e.init(n).finalize(t);};}, _createHmacHelper: function _createHmacHelper(e) {return function (t, n) {return new d.HMAC.init(e, n).finalize(t);};} });var d = s.algo = {};return s;}(Math), n);}),o = (n(function (e, t) {var n;e.exports = (n = s, function (e) {var t = n,s = t.lib,o = s.WordArray,r = s.Hasher,i = t.algo,a = [];!function () {for (var t = 0; t < 64; t++) {a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;}}();var c = i.MD5 = r.extend({ _doReset: function _doReset() {this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878]);}, _doProcessBlock: function _doProcessBlock(e, t) {for (var n = 0; n < 16; n++) {var s = t + n,o = e[s];e[s] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8);}var r = this._hash.words,i = e[t + 0],c = e[t + 1],f = e[t + 2],p = e[t + 3],g = e[t + 4],m = e[t + 5],y = e[t + 6],_ = e[t + 7],w = e[t + 8],k = e[t + 9],S = e[t + 10],v = e[t + 11],T = e[t + 12],A = e[t + 13],P = e[t + 14],I = e[t + 15],O = r[0],b = r[1],C = r[2],E = r[3];O = u(O, b, C, E, i, 7, a[0]), E = u(E, O, b, C, c, 12, a[1]), C = u(C, E, O, b, f, 17, a[2]), b = u(b, C, E, O, p, 22, a[3]), O = u(O, b, C, E, g, 7, a[4]), E = u(E, O, b, C, m, 12, a[5]), C = u(C, E, O, b, y, 17, a[6]), b = u(b, C, E, O, _, 22, a[7]), O = u(O, b, C, E, w, 7, a[8]), E = u(E, O, b, C, k, 12, a[9]), C = u(C, E, O, b, S, 17, a[10]), b = u(b, C, E, O, v, 22, a[11]), O = u(O, b, C, E, T, 7, a[12]), E = u(E, O, b, C, A, 12, a[13]), C = u(C, E, O, b, P, 17, a[14]), O = l(O, b = u(b, C, E, O, I, 22, a[15]), C, E, c, 5, a[16]), E = l(E, O, b, C, y, 9, a[17]), C = l(C, E, O, b, v, 14, a[18]), b = l(b, C, E, O, i, 20, a[19]), O = l(O, b, C, E, m, 5, a[20]), E = l(E, O, b, C, S, 9, a[21]), C = l(C, E, O, b, I, 14, a[22]), b = l(b, C, E, O, g, 20, a[23]), O = l(O, b, C, E, k, 5, a[24]), E = l(E, O, b, C, P, 9, a[25]), C = l(C, E, O, b, p, 14, a[26]), b = l(b, C, E, O, w, 20, a[27]), O = l(O, b, C, E, A, 5, a[28]), E = l(E, O, b, C, f, 9, a[29]), C = l(C, E, O, b, _, 14, a[30]), O = h(O, b = l(b, C, E, O, T, 20, a[31]), C, E, m, 4, a[32]), E = h(E, O, b, C, w, 11, a[33]), C = h(C, E, O, b, v, 16, a[34]), b = h(b, C, E, O, P, 23, a[35]), O = h(O, b, C, E, c, 4, a[36]), E = h(E, O, b, C, g, 11, a[37]), C = h(C, E, O, b, _, 16, a[38]), b = h(b, C, E, O, S, 23, a[39]), O = h(O, b, C, E, A, 4, a[40]), E = h(E, O, b, C, i, 11, a[41]), C = h(C, E, O, b, p, 16, a[42]), b = h(b, C, E, O, y, 23, a[43]), O = h(O, b, C, E, k, 4, a[44]), E = h(E, O, b, C, T, 11, a[45]), C = h(C, E, O, b, I, 16, a[46]), O = d(O, b = h(b, C, E, O, f, 23, a[47]), C, E, i, 6, a[48]), E = d(E, O, b, C, _, 10, a[49]), C = d(C, E, O, b, P, 15, a[50]), b = d(b, C, E, O, m, 21, a[51]), O = d(O, b, C, E, T, 6, a[52]), E = d(E, O, b, C, p, 10, a[53]), C = d(C, E, O, b, S, 15, a[54]), b = d(b, C, E, O, c, 21, a[55]), O = d(O, b, C, E, w, 6, a[56]), E = d(E, O, b, C, I, 10, a[57]), C = d(C, E, O, b, y, 15, a[58]), b = d(b, C, E, O, A, 21, a[59]), O = d(O, b, C, E, g, 6, a[60]), E = d(E, O, b, C, v, 10, a[61]), C = d(C, E, O, b, f, 15, a[62]), b = d(b, C, E, O, k, 21, a[63]), r[0] = r[0] + O | 0, r[1] = r[1] + b | 0, r[2] = r[2] + C | 0, r[3] = r[3] + E | 0;}, _doFinalize: function _doFinalize() {var t = this._data,n = t.words,s = 8 * this._nDataBytes,o = 8 * t.sigBytes;n[o >>> 5] |= 128 << 24 - o % 32;var r = e.floor(s / 4294967296),i = s;n[15 + (o + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), n[14 + (o + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {var l = c[u];c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);}return a;}, clone: function clone() {var e = r.clone.call(this);return e._hash = this._hash.clone(), e;} });function u(e, t, n, s, o, r, i) {var a = e + (t & n | ~t & s) + o + i;return (a << r | a >>> 32 - r) + t;}function l(e, t, n, s, o, r, i) {var a = e + (t & s | n & ~s) + o + i;return (a << r | a >>> 32 - r) + t;}function h(e, t, n, s, o, r, i) {var a = e + (t ^ n ^ s) + o + i;return (a << r | a >>> 32 - r) + t;}function d(e, t, n, s, o, r, i) {var a = e + (n ^ (t | ~s)) + o + i;return (a << r | a >>> 32 - r) + t;}t.MD5 = r._createHelper(c), t.HmacMD5 = r._createHmacHelper(c);}(Math), n.MD5);}), n(function (e, t) {var n, o, r;e.exports = (o = (n = s).lib.Base, r = n.enc.Utf8, void (n.algo.HMAC = o.extend({ init: function init(e, t) {e = this._hasher = new e.init(), "string" == typeof t && (t = r.parse(t));var n = e.blockSize,s = 4 * n;t.sigBytes > s && (t = e.finalize(t)), t.clamp();for (var o = this._oKey = t.clone(), i = this._iKey = t.clone(), a = o.words, c = i.words, u = 0; u < n; u++) {a[u] ^= 1549556828, c[u] ^= 909522486;}o.sigBytes = i.sigBytes = s, this.reset();}, reset: function reset() {var e = this._hasher;e.reset(), e.update(this._iKey);}, update: function update(e) {return this._hasher.update(e), this;}, finalize: function finalize(e) {var t = this._hasher,n = t.finalize(e);return t.reset(), t.finalize(this._oKey.clone().concat(n));} })));}), n(function (e, t) {e.exports = s.HmacMD5;}));var r = "FUNCTION",i = "OBJECT",a = "CLIENT_DB";function c(e) {return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();}function u(e) {return "object" === c(e);}function l(e) {return e && "string" == typeof e ? JSON.parse(e) : e;}var h = "development" === "development",d = "mp-weixin",f = l(undefined),p = l([]),g = true;var m = "";try {{var _e2 = __webpack_require__(/*! uni-stat-config */ 88).default || __webpack_require__(/*! uni-stat-config */ 88);m = _e2.appid;}} catch (e) {}var y = {};function _(e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var n, s;return n = y, s = e, Object.prototype.hasOwnProperty.call(n, s) || (y[e] = t), y[e];}"app-plus" === d && (y = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});var w = ["invoke", "success", "fail", "complete"],k = _("_globalUniCloudInterceptor");function S(e, t) {k[e] || (k[e] = {}), u(t) && Object.keys(t).forEach(function (n) {w.indexOf(n) > -1 && function (e, t, n) {var s = k[e][t];s || (s = k[e][t] = []), -1 === s.indexOf(n) && "function" == typeof n && s.push(n);}(e, n, t[n]);});}function v(e, t) {k[e] || (k[e] = {}), u(t) ? Object.keys(t).forEach(function (n) {w.indexOf(n) > -1 && function (e, t, n) {var s = k[e][t];if (!s) return;var o = s.indexOf(n);o > -1 && s.splice(o, 1);}(e, n, t[n]);}) : delete k[e];}function T(e, t) {return e && 0 !== e.length ? e.reduce(function (e, n) {return e.then(function () {return n(t);});}, Promise.resolve()) : Promise.resolve();}function A(e, t) {return k[e] && k[e][t] || [];}var P = _("_globalUniCloudListener"),I = "response",O = "clientdb",b = "cloudfunction",C = "cloudobject";function E(e) {return P[e] || (P[e] = []), P[e];}function U(e, t) {var n = E(e);for (var _e3 = 0; _e3 < n.length; _e3++) {(0, n[_e3])(t);}}function R(e, t) {return t ? function (n) {var _this = this;var s = !1;if ("callFunction" === t) {var _e4 = n && n.type || r;s = _e4 !== r;}var o = "callFunction" === t && !s;var i;i = this.isReady ? Promise.resolve() : this.initUniCloud, n = n || {};var a = i.then(function () {return s ? Promise.resolve() : T(A(t, "invoke"), n);}).then(function () {return e.call(_this, n);}).then(function (e) {return s ? Promise.resolve(e) : T(A(t, "success"), e).then(function () {return T(A(t, "complete"), e);}).then(function () {return o && U(I, { type: b, content: e }), Promise.resolve(e);});}, function (e) {return s ? Promise.reject(e) : T(A(t, "fail"), e).then(function () {return T(A(t, "complete"), e);}).then(function () {return U(I, { type: b, content: e }), Promise.reject(e);});});if (!(n.success || n.fail || n.complete)) return a;a.then(function (e) {n.success && n.success(e), n.complete && n.complete(e), o && U(I, { type: b, content: e });}, function (e) {n.fail && n.fail(e), n.complete && n.complete(e), o && U(I, { type: b, content: e });});} : function (t) {if (!((t = t || {}).success || t.fail || t.complete)) return e.call(this, t);e.call(this, t).then(function (e) {t.success && t.success(e), t.complete && t.complete(e);}, function (e) {t.fail && t.fail(e), t.complete && t.complete(e);});};}var x = /*#__PURE__*/function (_Error) {_inherits(x, _Error);var _super = _createSuper(x);function x(e) {var _this2;_classCallCheck(this, x);_this2 = _super.call(this, e.message), _this2.errMsg = e.message || "", _this2.errCode = _this2.code = e.code || "SYSTEM_ERROR", _this2.requestId = e.requestId;return _this2;}return x;}( /*#__PURE__*/_wrapNativeSuper(Error));function D() {var e;try {if (uni.getLaunchOptionsSync) {if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),_t2 = _uni$getLaunchOptions.scene,_n = _uni$getLaunchOptions.channel;e = _t2 || _n;}} catch (e) {}return e;}var q;function L() {var e = uni.getLocale && uni.getLocale() || "en";if (q) return _objectSpread(_objectSpread({}, q), {}, { locale: e, LOCALE: e });var t = uni.getSystemInfoSync(),n = t.deviceId,s = t.platform,o = t.osName,r = t.uniPlatform,i = t.appId;return q = _objectSpread({ PLATFORM: r || d, OS: o || s, APPID: i || m, DEVICEID: n, channel: D() }, t), _objectSpread(_objectSpread({}, q), {}, { locale: e, LOCALE: e });}var F = { sign: function sign(e, t) {var n = "";return Object.keys(e).sort().forEach(function (t) {e[t] && (n = n + "&" + t + "=" + e[t]);}), n = n.slice(1), o(n, t).toString();}, wrappedRequest: function wrappedRequest(e, t) {return new Promise(function (n, s) {t(Object.assign(e, { complete: function complete(e) {e || (e = {}), h && "h5" === d && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];if (!e.statusCode || e.statusCode >= 400) return s(new x({ code: "SYS_ERR", message: e.errMsg || "request:fail", requestId: t }));var o = e.data;if (o.error) return s(new x({ code: o.error.code, message: o.error.message, requestId: t }));o.result = o.data, o.requestId = t, delete o.data, n(o);} }));});} };var N = { request: function request(e) {return uni.request(e);}, uploadFile: function uploadFile(e) {return uni.uploadFile(e);}, setStorageSync: function setStorageSync(e, t) {return uni.setStorageSync(e, t);}, getStorageSync: function getStorageSync(e) {return uni.getStorageSync(e);}, removeStorageSync: function removeStorageSync(e) {return uni.removeStorageSync(e);}, clearStorageSync: function clearStorageSync() {return uni.clearStorageSync();} },M = { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" };var _e5 = (0, _uniI18n.initVueI18n)({ "zh-Hans": { "uniCloud.init.paramRequired": "缺少参数:{param}", "uniCloud.uploadFile.fileError": "filePath应为File对象" }, "zh-Hant": { "uniCloud.init.paramRequired": "缺少参数:{param}", "uniCloud.uploadFile.fileError": "filePath应为File对象" }, en: M, fr: { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" }, es: { "uniCloud.init.paramRequired": "{param} required", "uniCloud.uploadFile.fileError": "filePath should be instance of File" }, ja: M }, "zh-Hans"),j = _e5.t;var $ = /*#__PURE__*/function () {function $(e) {_classCallCheck(this, $);["spaceId", "clientSecret"].forEach(function (t) {if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error(j("uniCloud.init.paramRequired", { param: t }));}), this.config = Object.assign({}, { endpoint: "https://api.bspapp.com" }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = N, this._getAccessTokenPromise = null, this._getAccessTokenPromiseStatus = null;}_createClass($, [{ key: "setAccessToken", value: function setAccessToken(e) {this.accessToken = e;} }, { key: "requestWrapped", value: function requestWrapped(e) {return F.wrappedRequest(e, this.adapter.request);} }, { key: "requestAuth", value: function requestAuth(e) {return this.requestWrapped(e);} }, { key: "request", value: function request(e, t) {var _this3 = this;return Promise.resolve().then(function () {return _this3.hasAccessToken ? t ? _this3.requestWrapped(e) : _this3.requestWrapped(e).catch(function (t) {return new Promise(function (e, n) {!t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();}).then(function () {return _this3.getAccessToken();}).then(function () {var t = _this3.rebuildRequest(e);return _this3.request(t, !0);});}) : _this3.getAccessToken().then(function () {var t = _this3.rebuildRequest(e);return _this3.request(t, !0);});});} }, { key: "rebuildRequest", value: function rebuildRequest(e) {var t = Object.assign({}, e);return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = F.sign(t.data, this.config.clientSecret), t;} }, { key: "setupRequest", value: function setupRequest(e, t) {var n = Object.assign({}, e, { spaceId: this.config.spaceId, timestamp: Date.now() }),s = { "Content-Type": "application/json" };return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = F.sign(n, this.config.clientSecret), { url: this.config.requestUrl, method: "POST", data: n, dataType: "json", header: s };} }, { key: "getAccessToken", value: function getAccessToken() {var _this4 = this;if ("pending" === this._getAccessTokenPromiseStatus) return this._getAccessTokenPromise;this._getAccessTokenPromiseStatus = "pending";return this._getAccessTokenPromise = this.requestAuth(this.setupRequest({ method: "serverless.auth.user.anonymousAuthorize", params: "{}" }, "auth")).then(function (e) {return new Promise(function (t, n) {e.result && e.result.accessToken ? (_this4.setAccessToken(e.result.accessToken), _this4._getAccessTokenPromiseStatus = "fulfilled", t(_this4.accessToken)) : (_this4._getAccessTokenPromiseStatus = "rejected", n(new x({ code: "AUTH_FAILED", message: "获取accessToken失败" })));});}, function (e) {return _this4._getAccessTokenPromiseStatus = "rejected", Promise.reject(e);}), this._getAccessTokenPromise;} }, { key: "authorize", value: function authorize() {this.getAccessToken();} }, { key: "callFunction", value: function callFunction(e) {var t = { method: "serverless.function.runtime.invoke", params: JSON.stringify({ functionTarget: e.name, functionArgs: e.data || {} }) };return this.request(this.setupRequest(t));} }, { key: "getOSSUploadOptionsFromPath", value: function getOSSUploadOptionsFromPath(e) {var t = { method: "serverless.file.resource.generateProximalSign", params: JSON.stringify(e) };return this.request(this.setupRequest(t));} }, { key: "uploadFileToOSS", value: function uploadFileToOSS(_ref) {var _this5 = this;var e = _ref.url,t = _ref.formData,n = _ref.name,s = _ref.filePath,o = _ref.fileType,r = _ref.onUploadProgress;return new Promise(function (i, a) {var c = _this5.adapter.uploadFile({ url: e, formData: t, name: n, filePath: s, fileType: o, header: { "X-OSS-server-side-encrpytion": "AES256" }, success: function success(e) {e && e.statusCode < 400 ? i(e) : a(new x({ code: "UPLOAD_FAILED", message: "文件上传失败" }));}, fail: function fail(e) {a(new x({ code: e.code || "UPLOAD_FAILED", message: e.message || e.errMsg || "文件上传失败" }));} });"function" == typeof r && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {r({ loaded: e.totalBytesSent, total: e.totalBytesExpectedToSend });});});} }, { key: "reportOSSUpload", value: function reportOSSUpload(e) {var t = { method: "serverless.file.resource.report", params: JSON.stringify(e) };return this.request(this.setupRequest(t));} }, { key: "uploadFile", value: function uploadFile(_ref2) {var _this6 = this;var e = _ref2.filePath,t = _ref2.cloudPath,_ref2$fileType = _ref2.fileType,n = _ref2$fileType === void 0 ? "image" : _ref2$fileType,s = _ref2.onUploadProgress,o = _ref2.config;if ("string" !== c(t)) throw new x({ code: "INVALID_PARAM", message: "cloudPath必须为字符串类型" });if (!(t = t.trim())) throw new x({ code: "CLOUDPATH_REQUIRED", message: "cloudPath不可为空" });if (/:\/\//.test(t)) throw new x({ code: "INVALID_PARAM", message: "cloudPath不合法" });var r = o && o.envType || this.config.envType;var i, a;return this.getOSSUploadOptionsFromPath({ env: r, filename: t }).then(function (t) {var o = t.result;i = o.id, a = "https://" + o.cdnDomain + "/" + o.ossPath;var r = { url: "https://" + o.host, formData: { "Cache-Control": "max-age=2592000", "Content-Disposition": "attachment", OSSAccessKeyId: o.accessKeyId, Signature: o.signature, host: o.host, id: i, key: o.ossPath, policy: o.policy, success_action_status: 200 }, fileName: "file", name: "file", filePath: e, fileType: n };return _this6.uploadFileToOSS(Object.assign({}, r, { onUploadProgress: s }));}).then(function () {return _this6.reportOSSUpload({ id: i });}).then(function (t) {return new Promise(function (n, s) {t.success ? n({ success: !0, filePath: e, fileID: a }) : s(new x({ code: "UPLOAD_FAILED", message: "文件上传失败" }));});});} }, { key: "deleteFile", value: function deleteFile(_ref3) {var e = _ref3.fileList;var t = { method: "serverless.file.resource.delete", params: JSON.stringify({ id: e[0] }) };return this.request(this.setupRequest(t));} }, { key: "getTempFileURL", value: function getTempFileURL() {var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref4.fileList;return new Promise(function (t, n) {Array.isArray(e) && 0 !== e.length || n(new x({ code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" })), t({ fileList: e.map(function (e) {return { fileID: e, tempFileURL: e };}) });});} }, { key: "hasAccessToken", get: function get() {return !!this.accessToken;} }]);return $;}();var B = { init: function init(e) {var t = new $(e),n = { signInAnonymously: function signInAnonymously() {return t.authorize();}, getLoginState: function getLoginState() {return Promise.resolve(!1);} };return t.auth = function () {return n;}, t.customAuth = t.auth, t;} };var K = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";var H;!function (e) {e.local = "local", e.none = "none", e.session = "session";}(H || (H = {}));var W = function W() {};var z = function z() {var e;if (!Promise) {e = function e() {}, e.promise = {};var _t3 = function _t3() {throw new x({ message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.' });};return Object.defineProperty(e.promise, "then", { get: _t3 }), Object.defineProperty(e.promise, "catch", { get: _t3 }), e;}var t = new Promise(function (t, n) {e = function e(_e6, s) {return _e6 ? n(_e6) : t(s);};});return e.promise = t, e;};function J(e) {return void 0 === e;}function V(e) {return "[object Null]" === Object.prototype.toString.call(e);}var Y;function X(e) {var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);var n;var _iterator = _createForOfIteratorHelper(t),_step;try {for (_iterator.s(); !(_step = _iterator.n()).done;) {var _e7 = _step.value;var _t4 = _e7.isMatch,_n2 = _e7.genAdapter,_s = _e7.runtime;if (_t4()) return { adapter: _n2(), runtime: _s };}} catch (err) {_iterator.e(err);} finally {_iterator.f();}}!function (e) {e.WEB = "web", e.WX_MP = "wx_mp";}(Y || (Y = {}));var G = { adapter: null, runtime: void 0 },Q = ["anonymousUuidKey"];var Z = /*#__PURE__*/function (_W) {_inherits(Z, _W);var _super2 = _createSuper(Z);function Z() {var _this7;_classCallCheck(this, Z);_this7 = _super2.call(this), G.adapter.root.tcbObject || (G.adapter.root.tcbObject = {});return _this7;}_createClass(Z, [{ key: "setItem", value: function setItem(e, t) {G.adapter.root.tcbObject[e] = t;} }, { key: "getItem", value: function getItem(e) {return G.adapter.root.tcbObject[e];} }, { key: "removeItem", value: function removeItem(e) {delete G.adapter.root.tcbObject[e];} }, { key: "clear", value: function clear() {delete G.adapter.root.tcbObject;} }]);return Z;}(W);function ee(e, t) {switch (e) {case "local":return t.localStorage || new Z();case "none":return new Z();default:return t.sessionStorage || new Z();}}var te = /*#__PURE__*/function () {function te(e) {_classCallCheck(this, te);if (!this._storage) {this._persistence = G.adapter.primaryStorage || e.persistence, this._storage = ee(this._persistence, G.adapter);var _t5 = "access_token_".concat(e.env),_n3 = "access_token_expire_".concat(e.env),_s2 = "refresh_token_".concat(e.env),_o = "anonymous_uuid_".concat(e.env),_r = "login_type_".concat(e.env),_i = "user_info_".concat(e.env);this.keys = { accessTokenKey: _t5, accessTokenExpireKey: _n3, refreshTokenKey: _s2, anonymousUuidKey: _o, loginTypeKey: _r, userInfoKey: _i };}}_createClass(te, [{ key: "updatePersistence", value: function updatePersistence(e) {if (e === this._persistence) return;var t = "local" === this._persistence;this._persistence = e;var n = ee(e, G.adapter);for (var _e8 in this.keys) {var _s3 = this.keys[_e8];if (t && Q.includes(_e8)) continue;var _o2 = this._storage.getItem(_s3);J(_o2) || V(_o2) || (n.setItem(_s3, _o2), this._storage.removeItem(_s3));}this._storage = n;} }, { key: "setStore", value: function setStore(e, t, n) {if (!this._storage) return;var s = { version: n || "localCachev1", content: t },o = JSON.stringify(s);try {this._storage.setItem(e, o);} catch (e) {throw e;}} }, { key: "getStore", value: function getStore(e, t) {try {if (!this._storage) return;} catch (e) {return "";}t = t || "localCachev1";var n = this._storage.getItem(e);if (!n) return "";if (n.indexOf(t) >= 0) {return JSON.parse(n).content;}return "";} }, { key: "removeStore", value: function removeStore(e) {this._storage.removeItem(e);} }]);return te;}();var ne = {},se = {};function oe(e) {return ne[e];}var re = function re(e, t) {_classCallCheck(this, re);this.data = t || null, this.name = e;};var ie = /*#__PURE__*/function (_re) {_inherits(ie, _re);var _super3 = _createSuper(ie);function ie(e, t) {var _this8;_classCallCheck(this, ie);_this8 = _super3.call(this, "error", { error: e, data: t }), _this8.error = e;return _this8;}return ie;}(re);var ae = new ( /*#__PURE__*/function () {function _class() {_classCallCheck(this, _class);this._listeners = {};}_createClass(_class, [{ key: "on", value: function on(e, t) {return function (e, t, n) {n[e] = n[e] || [], n[e].push(t);}(e, t, this._listeners), this;} }, { key: "off", value: function off(e, t) {return function (e, t, n) {if (n && n[e]) {var _s4 = n[e].indexOf(t);-1 !== _s4 && n[e].splice(_s4, 1);}}(e, t, this._listeners), this;} }, { key: "fire", value: function fire(e, t) {if (e instanceof ie) return console.error(e.error), this;var n = "string" == typeof e ? new re(e, t || {}) : e;var s = n.name;if (this._listens(s)) {n.target = this;var _e9 = this._listeners[s] ? _toConsumableArray(this._listeners[s]) : [];var _iterator2 = _createForOfIteratorHelper(_e9),_step2;try {for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {var _t6 = _step2.value;_t6.call(this, n);}} catch (err) {_iterator2.e(err);} finally {_iterator2.f();}}return this;} }, { key: "_listens", value: function _listens(e) {return this._listeners[e] && this._listeners[e].length > 0;} }]);return _class;}())();function ce(e, t) {ae.on(e, t);}function ue(e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};ae.fire(e, t);}function le(e, t) {ae.off(e, t);}var he = "loginStateChanged",de = "loginStateExpire",fe = "loginTypeChanged",pe = "anonymousConverted",ge = "refreshAccessToken";var me;!function (e) {e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";}(me || (me = {}));var ye = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],_e = { "X-SDK-Version": "1.3.5" };function we(e, t, n) {var s = e[t];e[t] = function (t) {var o = {},r = {};n.forEach(function (n) {var _n$call = n.call(e, t),s = _n$call.data,i = _n$call.headers;Object.assign(o, s), Object.assign(r, i);});var i = t.data;return i && function () {var e;if (e = i, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, i), o);else for (var _e10 in o) {i.append(_e10, o[_e10]);}}(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), r), s.call(e, t);};}function ke() {var e = Math.random().toString(16).slice(2);return { data: { seqId: e }, headers: _objectSpread(_objectSpread({}, _e), {}, { "x-seqid": e }) };}var Se = /*#__PURE__*/function () {function Se() {var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};_classCallCheck(this, Se);var t;this.config = e, this._reqClass = new G.adapter.reqClass({ timeout: this.config.timeout, timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"), restrictedMethods: ["post"] }), this._cache = oe(this.config.env), this._localCache = (t = this.config.env, se[t]), we(this._reqClass, "post", [ke]), we(this._reqClass, "upload", [ke]), we(this._reqClass, "download", [ke]);}_createClass(Se, [{ key: "post", value: function () {var _post = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return this._reqClass.post(e);case 2:return _context.abrupt("return", _context.sent);case 3:case "end":return _context.stop();}}}, _callee, this);}));function post(_x) {return _post.apply(this, arguments);}return post;}() }, { key: "upload", value: function () {var _upload = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2(e) {return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return this._reqClass.upload(e);case 2:return _context2.abrupt("return", _context2.sent);case 3:case "end":return _context2.stop();}}}, _callee2, this);}));function upload(_x2) {return _upload.apply(this, arguments);}return upload;}() }, { key: "download", value: function () {var _download = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(e) {return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return this._reqClass.download(e);case 2:return _context3.abrupt("return", _context3.sent);case 3:case "end":return _context3.stop();}}}, _callee3, this);}));function download(_x3) {return _download.apply(this, arguments);}return download;}() }, { key: "refreshAccessToken", value: function () {var _refreshAccessToken2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4() {var e, t;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());_context4.prev = 1;_context4.next = 4;return this._refreshAccessTokenPromise;case 4:e = _context4.sent;_context4.next = 10;break;case 7:_context4.prev = 7;_context4.t0 = _context4["catch"](1);t = _context4.t0;case 10:if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {_context4.next = 12;break;}throw t;case 12:return _context4.abrupt("return", e);case 13:case "end":return _context4.stop();}}}, _callee4, this, [[1, 7]]);}));function refreshAccessToken() {return _refreshAccessToken2.apply(this, arguments);}return refreshAccessToken;}() }, { key: "_refreshAccessToken", value: function () {var _refreshAccessToken3 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee5() {var _this$_cache$keys, e, t, n, s, o, r, i, a, _e11, _e12, _t7, _s5;return _regenerator.default.wrap(function _callee5$(_context5) {while (1) {switch (_context5.prev = _context5.next) {case 0:_this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, o = _this$_cache$keys.anonymousUuidKey;this._cache.removeStore(e), this._cache.removeStore(t);r = this._cache.getStore(n);if (r) {_context5.next = 5;break;}throw new x({ message: "未登录CloudBase" });case 5:i = { refresh_token: r };_context5.next = 8;return this.request("auth.fetchAccessTokenWithRefreshToken", i);case 8:a = _context5.sent;if (!a.data.code) {_context5.next = 21;break;}_e11 = a.data.code;if (!("SIGN_PARAM_INVALID" === _e11 || "REFRESH_TOKEN_EXPIRED" === _e11 || "INVALID_REFRESH_TOKEN" === _e11)) {_context5.next = 20;break;}if (!(this._cache.getStore(s) === me.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e11)) {_context5.next = 19;break;}_e12 = this._cache.getStore(o);_t7 = this._cache.getStore(n);_context5.next = 17;return this.send("auth.signInAnonymously", { anonymous_uuid: _e12, refresh_token: _t7 });case 17:_s5 = _context5.sent;return _context5.abrupt("return", (this.setRefreshToken(_s5.refresh_token), this._refreshAccessToken()));case 19:ue(de), this._cache.removeStore(n);case 20:throw new x({ code: a.data.code, message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code) });case 21:if (!a.data.access_token) {_context5.next = 23;break;}return _context5.abrupt("return", (ue(ge), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), { accessToken: a.data.access_token, accessTokenExpire: a.data.access_token_expire }));case 23:a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());case 24:case "end":return _context5.stop();}}}, _callee5, this);}));function _refreshAccessToken() {return _refreshAccessToken3.apply(this, arguments);}return _refreshAccessToken;}() }, { key: "getAccessToken", value: function () {var _getAccessToken = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee6() {var _this$_cache$keys2, e, t, n, s, o, r;return _regenerator.default.wrap(function _callee6$(_context6) {while (1) {switch (_context6.prev = _context6.next) {case 0:_this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;if (this._cache.getStore(n)) {_context6.next = 3;break;}throw new x({ message: "refresh token不存在,登录状态异常" });case 3:s = this._cache.getStore(e), o = this._cache.getStore(t), r = !0;_context6.t0 = this._shouldRefreshAccessTokenHook;if (!_context6.t0) {_context6.next = 9;break;}_context6.next = 8;return this._shouldRefreshAccessTokenHook(s, o);case 8:_context6.t0 = !_context6.sent;case 9:_context6.t1 = _context6.t0;if (!_context6.t1) {_context6.next = 12;break;}r = !1;case 12:return _context6.abrupt("return", (!s || !o || o < Date.now()) && r ? this.refreshAccessToken() : { accessToken: s, accessTokenExpire: o });case 13:case "end":return _context6.stop();}}}, _callee6, this);}));function getAccessToken() {return _getAccessToken.apply(this, arguments);}return getAccessToken;}() }, { key: "request", value: function () {var _request = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee7(e, t, n) {var s, o, r, _e13, i, _e14, _e15, a, c, u, l, h, d, f, p, g;return _regenerator.default.wrap(function _callee7$(_context7) {while (1) {switch (_context7.prev = _context7.next) {case 0:s = "x-tcb-trace_".concat(this.config.env);o = "application/x-www-form-urlencoded";r = _objectSpread({ action: e, env: this.config.env, dataVersion: "2019-08-16" }, t);if (!(-1 === ye.indexOf(e))) {_context7.next = 10;break;}_e13 = this._cache.keys.refreshTokenKey;_context7.t0 = this._cache.getStore(_e13);if (!_context7.t0) {_context7.next = 10;break;}_context7.next = 9;return this.getAccessToken();case 9:r.access_token = _context7.sent.accessToken;case 10:if ("storage.uploadFile" === e) {i = new FormData();for (_e14 in i) {i.hasOwnProperty(_e14) && void 0 !== i[_e14] && i.append(_e14, r[_e14]);}o = "multipart/form-data";} else {o = "application/json", i = {};for (_e15 in r) {void 0 !== r[_e15] && (i[_e15] = r[_e15]);}}a = { headers: { "content-type": o } };n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);c = this._localCache.getStore(s);c && (a.headers["X-TCB-Trace"] = c);u = t.parse, l = t.inQuery, h = t.search;d = { env: this.config.env };u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));f = function (e, t) {var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var s = /\?/.test(t);var o = "";for (var _e16 in n) {"" === o ? !s && (t += "?") : o += "&", o += "".concat(_e16, "=").concat(encodeURIComponent(n[_e16]));}return /^http(s)?\:\/\//.test(t += o) ? t : "".concat(e).concat(t);}(K, "//tcb-api.tencentcloudapi.com/web", d);h && (f += h);_context7.next = 22;return this.post(_objectSpread({ url: f, data: i }, a));case 22:p = _context7.sent;g = p.header && p.header["x-tcb-trace"];if (!(g && this._localCache.setStore(s, g), 200 !== Number(p.status) && 200 !== Number(p.statusCode) || !p.data)) {_context7.next = 26;break;}throw new x({ code: "NETWORK_ERROR", message: "network request error" });case 26:return _context7.abrupt("return", p);case 27:case "end":return _context7.stop();}}}, _callee7, this);}));function request(_x4, _x5, _x6) {return _request.apply(this, arguments);}return request;}() }, { key: "send", value: function () {var _send = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee8(e) {var t,n,_n4,_args8 = arguments;return _regenerator.default.wrap(function _callee8$(_context8) {while (1) {switch (_context8.prev = _context8.next) {case 0:t = _args8.length > 1 && _args8[1] !== undefined ? _args8[1] : {};_context8.next = 3;return this.request(e, t, { onUploadProgress: t.onUploadProgress });case 3:n = _context8.sent;if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === ye.indexOf(e))) {_context8.next = 13;break;}_context8.next = 7;return this.refreshAccessToken();case 7:_context8.next = 9;return this.request(e, t, { onUploadProgress: t.onUploadProgress });case 9:_n4 = _context8.sent;if (!_n4.data.code) {_context8.next = 12;break;}throw new x({ code: _n4.data.code, message: _n4.data.message });case 12:return _context8.abrupt("return", _n4.data);case 13:if (!n.data.code) {_context8.next = 15;break;}throw new x({ code: n.data.code, message: n.data.message });case 15:return _context8.abrupt("return", n.data);case 16:case "end":return _context8.stop();}}}, _callee8, this);}));function send(_x7) {return _send.apply(this, arguments);}return send;}() }, { key: "setRefreshToken", value: function setRefreshToken(e) {var _this$_cache$keys3 = this._cache.keys,t = _this$_cache$keys3.accessTokenKey,n = _this$_cache$keys3.accessTokenExpireKey,s = _this$_cache$keys3.refreshTokenKey;this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);} }]);return Se;}();var ve = {};function Te(e) {return ve[e];}var Ae = /*#__PURE__*/function () {function Ae(e) {_classCallCheck(this, Ae);this.config = e, this._cache = oe(e.env), this._request = Te(e.env);}_createClass(Ae, [{ key: "setRefreshToken", value: function setRefreshToken(e) {var _this$_cache$keys4 = this._cache.keys,t = _this$_cache$keys4.accessTokenKey,n = _this$_cache$keys4.accessTokenExpireKey,s = _this$_cache$keys4.refreshTokenKey;this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);} }, { key: "setAccessToken", value: function setAccessToken(e, t) {var _this$_cache$keys5 = this._cache.keys,n = _this$_cache$keys5.accessTokenKey,s = _this$_cache$keys5.accessTokenExpireKey;this._cache.setStore(n, e), this._cache.setStore(s, t);} }, { key: "refreshUserInfo", value: function () {var _refreshUserInfo = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee9() {var _yield$this$_request$, e;return _regenerator.default.wrap(function _callee9$(_context9) {while (1) {switch (_context9.prev = _context9.next) {case 0:_context9.next = 2;return this._request.send("auth.getUserInfo", {});case 2:_yield$this$_request$ = _context9.sent;e = _yield$this$_request$.data;return _context9.abrupt("return", (this.setLocalUserInfo(e), e));case 5:case "end":return _context9.stop();}}}, _callee9, this);}));function refreshUserInfo() {return _refreshUserInfo.apply(this, arguments);}return refreshUserInfo;}() }, { key: "setLocalUserInfo", value: function setLocalUserInfo(e) {var t = this._cache.keys.userInfoKey;this._cache.setStore(t, e);} }]);return Ae;}();var Pe = /*#__PURE__*/function () {function Pe(e) {_classCallCheck(this, Pe);if (!e) throw new x({ code: "PARAM_ERROR", message: "envId is not defined" });this._envId = e, this._cache = oe(this._envId), this._request = Te(this._envId), this.setUserInfo();}_createClass(Pe, [{ key: "linkWithTicket", value: function linkWithTicket(e) {if ("string" != typeof e) throw new x({ code: "PARAM_ERROR", message: "ticket must be string" });return this._request.send("auth.linkWithTicket", { ticket: e });} }, { key: "linkWithRedirect", value: function linkWithRedirect(e) {e.signInWithRedirect();} }, { key: "updatePassword", value: function updatePassword(e, t) {return this._request.send("auth.updatePassword", { oldPassword: t, newPassword: e });} }, { key: "updateEmail", value: function updateEmail(e) {return this._request.send("auth.updateEmail", { newEmail: e });} }, { key: "updateUsername", value: function updateUsername(e) {if ("string" != typeof e) throw new x({ code: "PARAM_ERROR", message: "username must be a string" });return this._request.send("auth.updateUsername", { username: e });} }, { key: "getLinkedUidList", value: function () {var _getLinkedUidList = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee10() {var _yield$this$_request$2, e, t, n;return _regenerator.default.wrap(function _callee10$(_context10) {while (1) {switch (_context10.prev = _context10.next) {case 0:_context10.next = 2;return this._request.send("auth.getLinkedUidList", {});case 2:_yield$this$_request$2 = _context10.sent;e = _yield$this$_request$2.data;t = !1;n = e.users;return _context10.abrupt("return", (n.forEach(function (e) {e.wxOpenId && e.wxPublicId && (t = !0);}), { users: n, hasPrimaryUid: t }));case 7:case "end":return _context10.stop();}}}, _callee10, this);}));function getLinkedUidList() {return _getLinkedUidList.apply(this, arguments);}return getLinkedUidList;}() }, { key: "setPrimaryUid", value: function setPrimaryUid(e) {return this._request.send("auth.setPrimaryUid", { uid: e });} }, { key: "unlink", value: function unlink(e) {return this._request.send("auth.unlink", { platform: e });} }, { key: "update", value: function () {var _update = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {var t, n, s, o, r, i, _yield$this$_request$3, a;return _regenerator.default.wrap(function _callee11$(_context11) {while (1) {switch (_context11.prev = _context11.next) {case 0:t = e.nickName;n = e.gender;s = e.avatarUrl;o = e.province;r = e.country;i = e.city;_context11.next = 8;return this._request.send("auth.updateUserInfo", { nickName: t, gender: n, avatarUrl: s, province: o, country: r, city: i });case 8:_yield$this$_request$3 = _context11.sent;a = _yield$this$_request$3.data;this.setLocalUserInfo(a);case 11:case "end":return _context11.stop();}}}, _callee11, this);}));function update(_x8) {return _update.apply(this, arguments);}return update;}() }, { key: "refresh", value: function () {var _refresh = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee12() {var _yield$this$_request$4, e;return _regenerator.default.wrap(function _callee12$(_context12) {while (1) {switch (_context12.prev = _context12.next) {case 0:_context12.next = 2;return this._request.send("auth.getUserInfo", {});case 2:_yield$this$_request$4 = _context12.sent;e = _yield$this$_request$4.data;return _context12.abrupt("return", (this.setLocalUserInfo(e), e));case 5:case "end":return _context12.stop();}}}, _callee12, this);}));function refresh() {return _refresh.apply(this, arguments);}return refresh;}() }, { key: "setUserInfo", value: function setUserInfo() {var _this9 = this;var e = this._cache.keys.userInfoKey,t = this._cache.getStore(e);["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {_this9[e] = t[e];}), this.location = { country: t.country, province: t.province, city: t.city };} }, { key: "setLocalUserInfo", value: function setLocalUserInfo(e) {var t = this._cache.keys.userInfoKey;this._cache.setStore(t, e), this.setUserInfo();} }]);return Pe;}();var Ie = /*#__PURE__*/function () {function Ie(e) {_classCallCheck(this, Ie);if (!e) throw new x({ code: "PARAM_ERROR", message: "envId is not defined" });this._cache = oe(e);var _this$_cache$keys6 = this._cache.keys,t = _this$_cache$keys6.refreshTokenKey,n = _this$_cache$keys6.accessTokenKey,s = _this$_cache$keys6.accessTokenExpireKey,o = this._cache.getStore(t),r = this._cache.getStore(n),i = this._cache.getStore(s);this.credential = { refreshToken: o, accessToken: r, accessTokenExpire: i }, this.user = new Pe(e);}_createClass(Ie, [{ key: "isAnonymousAuth", get: function get() {return this.loginType === me.ANONYMOUS;} }, { key: "isCustomAuth", get: function get() {return this.loginType === me.CUSTOM;} }, { key: "isWeixinAuth", get: function get() {return this.loginType === me.WECHAT || this.loginType === me.WECHAT_OPEN || this.loginType === me.WECHAT_PUBLIC;} }, { key: "loginType", get: function get() {return this._cache.getStore(this._cache.keys.loginTypeKey);} }]);return Ie;}();var Oe = /*#__PURE__*/function (_Ae) {_inherits(Oe, _Ae);var _super4 = _createSuper(Oe);function Oe() {_classCallCheck(this, Oe);return _super4.apply(this, arguments);}_createClass(Oe, [{ key: "signIn", value: function () {var _signIn = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee13() {var _this$_cache$keys7, e, t, n, s, o, _e17;return _regenerator.default.wrap(function _callee13$(_context13) {while (1) {switch (_context13.prev = _context13.next) {case 0:this._cache.updatePersistence("local");_this$_cache$keys7 = this._cache.keys;e = _this$_cache$keys7.anonymousUuidKey;t = _this$_cache$keys7.refreshTokenKey;n = this._cache.getStore(e) || void 0;s = this._cache.getStore(t) || void 0;_context13.next = 8;return this._request.send("auth.signInAnonymously", { anonymous_uuid: n, refresh_token: s });case 8:o = _context13.sent;if (!(o.uuid && o.refresh_token)) {_context13.next = 20;break;}this._setAnonymousUUID(o.uuid);this.setRefreshToken(o.refresh_token);_context13.next = 14;return this._request.refreshAccessToken();case 14:ue(he);ue(fe, { env: this.config.env, loginType: me.ANONYMOUS, persistence: "local" });_e17 = new Ie(this.config.env);_context13.next = 19;return _e17.user.refresh();case 19:return _context13.abrupt("return", _e17);case 20:throw new x({ message: "匿名登录失败" });case 21:case "end":return _context13.stop();}}}, _callee13, this);}));function signIn() {return _signIn.apply(this, arguments);}return signIn;}() }, { key: "linkAndRetrieveDataWithTicket", value: function () {var _linkAndRetrieveDataWithTicket = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {var _this$_cache$keys8, t, n, s, o, r;return _regenerator.default.wrap(function _callee14$(_context14) {while (1) {switch (_context14.prev = _context14.next) {case 0:_this$_cache$keys8 = this._cache.keys;t = _this$_cache$keys8.anonymousUuidKey;n = _this$_cache$keys8.refreshTokenKey;s = this._cache.getStore(t);o = this._cache.getStore(n);_context14.next = 7;return this._request.send("auth.linkAndRetrieveDataWithTicket", { anonymous_uuid: s, refresh_token: o, ticket: e });case 7:r = _context14.sent;if (!r.refresh_token) {_context14.next = 16;break;}this._clearAnonymousUUID();this.setRefreshToken(r.refresh_token);_context14.next = 13;return this._request.refreshAccessToken();case 13:ue(pe, { env: this.config.env });ue(fe, { loginType: me.CUSTOM, persistence: "local" });return _context14.abrupt("return", { credential: { refreshToken: r.refresh_token } });case 16:throw new x({ message: "匿名转化失败" });case 17:case "end":return _context14.stop();}}}, _callee14, this);}));function linkAndRetrieveDataWithTicket(_x9) {return _linkAndRetrieveDataWithTicket.apply(this, arguments);}return linkAndRetrieveDataWithTicket;}() }, { key: "_setAnonymousUUID", value: function _setAnonymousUUID(e) {var _this$_cache$keys9 = this._cache.keys,t = _this$_cache$keys9.anonymousUuidKey,n = _this$_cache$keys9.loginTypeKey;this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, me.ANONYMOUS);} }, { key: "_clearAnonymousUUID", value: function _clearAnonymousUUID() {this._cache.removeStore(this._cache.keys.anonymousUuidKey);} }]);return Oe;}(Ae);var be = /*#__PURE__*/function (_Ae2) {_inherits(be, _Ae2);var _super5 = _createSuper(be);function be() {_classCallCheck(this, be);return _super5.apply(this, arguments);}_createClass(be, [{ key: "signIn", value: function () {var _signIn2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee15(e) {var t, n;return _regenerator.default.wrap(function _callee15$(_context15) {while (1) {switch (_context15.prev = _context15.next) {case 0:if (!("string" != typeof e)) {_context15.next = 2;break;}throw new x({ param: "PARAM_ERROR", message: "ticket must be a string" });case 2:t = this._cache.keys.refreshTokenKey;_context15.next = 5;return this._request.send("auth.signInWithTicket", { ticket: e, refresh_token: this._cache.getStore(t) || "" });case 5:n = _context15.sent;if (!n.refresh_token) {_context15.next = 15;break;}this.setRefreshToken(n.refresh_token);_context15.next = 10;return this._request.refreshAccessToken();case 10:ue(he);ue(fe, { env: this.config.env, loginType: me.CUSTOM, persistence: this.config.persistence });_context15.next = 14;return this.refreshUserInfo();case 14:return _context15.abrupt("return", new Ie(this.config.env));case 15:throw new x({ message: "自定义登录失败" });case 16:case "end":return _context15.stop();}}}, _callee15, this);}));function signIn(_x10) {return _signIn2.apply(this, arguments);}return signIn;}() }]);return be;}(Ae);var Ce = /*#__PURE__*/function (_Ae3) {_inherits(Ce, _Ae3);var _super6 = _createSuper(Ce);function Ce() {_classCallCheck(this, Ce);return _super6.apply(this, arguments);}_createClass(Ce, [{ key: "signIn", value: function () {var _signIn3 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee16(e, t) {var n, s, o, r, i;return _regenerator.default.wrap(function _callee16$(_context16) {while (1) {switch (_context16.prev = _context16.next) {case 0:if (!("string" != typeof e)) {_context16.next = 2;break;}throw new x({ code: "PARAM_ERROR", message: "email must be a string" });case 2:n = this._cache.keys.refreshTokenKey;_context16.next = 5;return this._request.send("auth.signIn", { loginType: "EMAIL", email: e, password: t, refresh_token: this._cache.getStore(n) || "" });case 5:s = _context16.sent;o = s.refresh_token;r = s.access_token;i = s.access_token_expire;if (!o) {_context16.next = 22;break;}this.setRefreshToken(o);if (!(r && i)) {_context16.next = 15;break;}this.setAccessToken(r, i);_context16.next = 17;break;case 15:_context16.next = 17;return this._request.refreshAccessToken();case 17:_context16.next = 19;return this.refreshUserInfo();case 19:ue(he);ue(fe, { env: this.config.env, loginType: me.EMAIL, persistence: this.config.persistence });return _context16.abrupt("return", new Ie(this.config.env));case 22:throw s.code ? new x({ code: s.code, message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message) }) : new x({ message: "邮箱登录失败" });case 23:case "end":return _context16.stop();}}}, _callee16, this);}));function signIn(_x11, _x12) {return _signIn3.apply(this, arguments);}return signIn;}() }, { key: "activate", value: function () {var _activate = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {return _regenerator.default.wrap(function _callee17$(_context17) {while (1) {switch (_context17.prev = _context17.next) {case 0:return _context17.abrupt("return", this._request.send("auth.activateEndUserMail", { token: e }));case 1:case "end":return _context17.stop();}}}, _callee17, this);}));function activate(_x13) {return _activate.apply(this, arguments);}return activate;}() }, { key: "resetPasswordWithToken", value: function () {var _resetPasswordWithToken = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee18(e, t) {return _regenerator.default.wrap(function _callee18$(_context18) {while (1) {switch (_context18.prev = _context18.next) {case 0:return _context18.abrupt("return", this._request.send("auth.resetPasswordWithToken", { token: e, newPassword: t }));case 1:case "end":return _context18.stop();}}}, _callee18, this);}));function resetPasswordWithToken(_x14, _x15) {return _resetPasswordWithToken.apply(this, arguments);}return resetPasswordWithToken;}() }]);return Ce;}(Ae);var Ee = /*#__PURE__*/function (_Ae4) {_inherits(Ee, _Ae4);var _super7 = _createSuper(Ee);function Ee() {_classCallCheck(this, Ee);return _super7.apply(this, arguments);}_createClass(Ee, [{ key: "signIn", value: function () {var _signIn4 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {var n, s, o, r, i;return _regenerator.default.wrap(function _callee19$(_context19) {while (1) {switch (_context19.prev = _context19.next) {case 0:if (!("string" != typeof e)) {_context19.next = 2;break;}throw new x({ code: "PARAM_ERROR", message: "username must be a string" });case 2:"string" != typeof t && (t = "", console.warn("password is empty"));n = this._cache.keys.refreshTokenKey;_context19.next = 6;return this._request.send("auth.signIn", { loginType: me.USERNAME, username: e, password: t, refresh_token: this._cache.getStore(n) || "" });case 6:s = _context19.sent;o = s.refresh_token;r = s.access_token_expire;i = s.access_token;if (!o) {_context19.next = 23;break;}this.setRefreshToken(o);if (!(i && r)) {_context19.next = 16;break;}this.setAccessToken(i, r);_context19.next = 18;break;case 16:_context19.next = 18;return this._request.refreshAccessToken();case 18:_context19.next = 20;return this.refreshUserInfo();case 20:ue(he);ue(fe, { env: this.config.env, loginType: me.USERNAME, persistence: this.config.persistence });return _context19.abrupt("return", new Ie(this.config.env));case 23:throw s.code ? new x({ code: s.code, message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message) }) : new x({ message: "用户名密码登录失败" });case 24:case "end":return _context19.stop();}}}, _callee19, this);}));function signIn(_x16, _x17) {return _signIn4.apply(this, arguments);}return signIn;}() }]);return Ee;}(Ae);var Ue = /*#__PURE__*/function () {function Ue(e) {_classCallCheck(this, Ue);this.config = e, this._cache = oe(e.env), this._request = Te(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), ce(fe, this._onLoginTypeChanged);}_createClass(Ue, [{ key: "anonymousAuthProvider", value: function anonymousAuthProvider() {return new Oe(this.config);} }, { key: "customAuthProvider", value: function customAuthProvider() {return new be(this.config);} }, { key: "emailAuthProvider", value: function emailAuthProvider() {return new Ce(this.config);} }, { key: "usernameAuthProvider", value: function usernameAuthProvider() {return new Ee(this.config);} }, { key: "signInAnonymously", value: function () {var _signInAnonymously = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee20() {return _regenerator.default.wrap(function _callee20$(_context20) {while (1) {switch (_context20.prev = _context20.next) {case 0:return _context20.abrupt("return", new Oe(this.config).signIn());case 1:case "end":return _context20.stop();}}}, _callee20, this);}));function signInAnonymously() {return _signInAnonymously.apply(this, arguments);}return signInAnonymously;}() }, { key: "signInWithEmailAndPassword", value: function () {var _signInWithEmailAndPassword = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {return _regenerator.default.wrap(function _callee21$(_context21) {while (1) {switch (_context21.prev = _context21.next) {case 0:return _context21.abrupt("return", new Ce(this.config).signIn(e, t));case 1:case "end":return _context21.stop();}}}, _callee21, this);}));function signInWithEmailAndPassword(_x18, _x19) {return _signInWithEmailAndPassword.apply(this, arguments);}return signInWithEmailAndPassword;}() }, { key: "signInWithUsernameAndPassword", value: function signInWithUsernameAndPassword(e, t) {return new Ee(this.config).signIn(e, t);} }, { key: "linkAndRetrieveDataWithTicket", value: function () {var _linkAndRetrieveDataWithTicket2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee22(e) {return _regenerator.default.wrap(function _callee22$(_context22) {while (1) {switch (_context22.prev = _context22.next) {case 0:this._anonymousAuthProvider || (this._anonymousAuthProvider = new Oe(this.config)), ce(pe, this._onAnonymousConverted);_context22.next = 3;return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return _context22.abrupt("return", _context22.sent);case 4:case "end":return _context22.stop();}}}, _callee22, this);}));function linkAndRetrieveDataWithTicket(_x20) {return _linkAndRetrieveDataWithTicket2.apply(this, arguments);}return linkAndRetrieveDataWithTicket;}() }, { key: "signOut", value: function () {var _signOut = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee23() {var _this$_cache$keys10, e, t, n, s, o;return _regenerator.default.wrap(function _callee23$(_context23) {while (1) {switch (_context23.prev = _context23.next) {case 0:if (!(this.loginType === me.ANONYMOUS)) {_context23.next = 2;break;}throw new x({ message: "匿名用户不支持登出操作" });case 2:_this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);if (s) {_context23.next = 5;break;}return _context23.abrupt("return");case 5:_context23.next = 7;return this._request.send("auth.logout", { refresh_token: s });case 7:o = _context23.sent;return _context23.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), ue(he), ue(fe, { env: this.config.env, loginType: me.NULL, persistence: this.config.persistence }), o));case 9:case "end":return _context23.stop();}}}, _callee23, this);}));function signOut() {return _signOut.apply(this, arguments);}return signOut;}() }, { key: "signUpWithEmailAndPassword", value: function () {var _signUpWithEmailAndPassword = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {return _regenerator.default.wrap(function _callee24$(_context24) {while (1) {switch (_context24.prev = _context24.next) {case 0:return _context24.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", { email: e, password: t }));case 1:case "end":return _context24.stop();}}}, _callee24, this);}));function signUpWithEmailAndPassword(_x21, _x22) {return _signUpWithEmailAndPassword.apply(this, arguments);}return signUpWithEmailAndPassword;}() }, { key: "sendPasswordResetEmail", value: function () {var _sendPasswordResetEmail = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {return _regenerator.default.wrap(function _callee25$(_context25) {while (1) {switch (_context25.prev = _context25.next) {case 0:return _context25.abrupt("return", this._request.send("auth.sendPasswordResetEmail", { email: e }));case 1:case "end":return _context25.stop();}}}, _callee25, this);}));function sendPasswordResetEmail(_x23) {return _sendPasswordResetEmail.apply(this, arguments);}return sendPasswordResetEmail;}() }, { key: "onLoginStateChanged", value: function onLoginStateChanged(e) {var _this10 = this;ce(he, function () {var t = _this10.hasLoginState();e.call(_this10, t);});var t = this.hasLoginState();e.call(this, t);} }, { key: "onLoginStateExpired", value: function onLoginStateExpired(e) {ce(de, e.bind(this));} }, { key: "onAccessTokenRefreshed", value: function onAccessTokenRefreshed(e) {ce(ge, e.bind(this));} }, { key: "onAnonymousConverted", value: function onAnonymousConverted(e) {ce(pe, e.bind(this));} }, { key: "onLoginTypeChanged", value: function onLoginTypeChanged(e) {var _this11 = this;ce(fe, function () {var t = _this11.hasLoginState();e.call(_this11, t);});} }, { key: "getAccessToken", value: function () {var _getAccessToken2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee26() {return _regenerator.default.wrap(function _callee26$(_context26) {while (1) {switch (_context26.prev = _context26.next) {case 0:_context26.next = 2;return this._request.getAccessToken();case 2:_context26.t0 = _context26.sent.accessToken;_context26.t1 = this.config.env;return _context26.abrupt("return", { accessToken: _context26.t0, env: _context26.t1 });case 5:case "end":return _context26.stop();}}}, _callee26, this);}));function getAccessToken() {return _getAccessToken2.apply(this, arguments);}return getAccessToken;}() }, { key: "hasLoginState", value: function hasLoginState() {var e = this._cache.keys.refreshTokenKey;return this._cache.getStore(e) ? new Ie(this.config.env) : null;} }, { key: "isUsernameRegistered", value: function () {var _isUsernameRegistered = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee27(e) {var _yield$this$_request$5, t;return _regenerator.default.wrap(function _callee27$(_context27) {while (1) {switch (_context27.prev = _context27.next) {case 0:if (!("string" != typeof e)) {_context27.next = 2;break;}throw new x({ code: "PARAM_ERROR", message: "username must be a string" });case 2:_context27.next = 4;return this._request.send("auth.isUsernameRegistered", { username: e });case 4:_yield$this$_request$5 = _context27.sent;t = _yield$this$_request$5.data;return _context27.abrupt("return", t && t.isRegistered);case 7:case "end":return _context27.stop();}}}, _callee27, this);}));function isUsernameRegistered(_x24) {return _isUsernameRegistered.apply(this, arguments);}return isUsernameRegistered;}() }, { key: "getLoginState", value: function getLoginState() {return Promise.resolve(this.hasLoginState());} }, { key: "signInWithTicket", value: function () {var _signInWithTicket = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {return _regenerator.default.wrap(function _callee28$(_context28) {while (1) {switch (_context28.prev = _context28.next) {case 0:return _context28.abrupt("return", new be(this.config).signIn(e));case 1:case "end":return _context28.stop();}}}, _callee28, this);}));function signInWithTicket(_x25) {return _signInWithTicket.apply(this, arguments);}return signInWithTicket;}() }, { key: "shouldRefreshAccessToken", value: function shouldRefreshAccessToken(e) {this._request._shouldRefreshAccessTokenHook = e.bind(this);} }, { key: "getUserInfo", value: function getUserInfo() {return this._request.send("auth.getUserInfo", {}).then(function (e) {return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, { requestId: e.seqId });});} }, { key: "getAuthHeader", value: function getAuthHeader() {var _this$_cache$keys11 = this._cache.keys,e = _this$_cache$keys11.refreshTokenKey,t = _this$_cache$keys11.accessTokenKey,n = this._cache.getStore(e);return { "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n };} }, { key: "_onAnonymousConverted", value: function _onAnonymousConverted(e) {var t = e.data.env;t === this.config.env && this._cache.updatePersistence(this.config.persistence);} }, { key: "_onLoginTypeChanged", value: function _onLoginTypeChanged(e) {var _e$data = e.data,t = _e$data.loginType,n = _e$data.persistence,s = _e$data.env;s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));} }, { key: "currentUser", get: function get() {var e = this.hasLoginState();return e && e.user || null;} }, { key: "loginType", get: function get() {return this._cache.getStore(this._cache.keys.loginTypeKey);} }]);return Ue;}();var Re = function Re(e, t) {t = t || z();var n = Te(this.config.env),s = e.cloudPath,o = e.filePath,r = e.onUploadProgress,_e$fileType = e.fileType,i = _e$fileType === void 0 ? "image" : _e$fileType;return n.send("storage.getUploadMetadata", { path: s }).then(function (e) {var _e$data2 = e.data,a = _e$data2.url,c = _e$data2.authorization,u = _e$data2.token,l = _e$data2.fileId,h = _e$data2.cosFileId,d = e.requestId,f = { key: s, signature: c, "x-cos-meta-fileid": h, success_action_status: "201", "x-cos-security-token": u };n.upload({ url: a, data: f, file: o, name: s, fileType: i, onUploadProgress: r }).then(function (e) {201 === e.statusCode ? t(null, { fileID: l, requestId: d }) : t(new x({ code: "STORAGE_REQUEST_FAIL", message: "STORAGE_REQUEST_FAIL: ".concat(e.data) }));}).catch(function (e) {t(e);});}).catch(function (e) {t(e);}), t.promise;},xe = function xe(e, t) {t = t || z();var n = Te(this.config.env),s = e.cloudPath;return n.send("storage.getUploadMetadata", { path: s }).then(function (e) {t(null, e);}).catch(function (e) {t(e);}), t.promise;},De = function De(_ref5, t) {var e = _ref5.fileList;if (t = t || z(), !e || !Array.isArray(e)) return { code: "INVALID_PARAM", message: "fileList必须是非空的数组" };var _iterator3 = _createForOfIteratorHelper(e),_step3;try {for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {var _t8 = _step3.value;if (!_t8 || "string" != typeof _t8) return { code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" };}} catch (err) {_iterator3.e(err);} finally {_iterator3.f();}var n = { fileid_list: e };return Te(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {e.code ? t(null, e) : t(null, { fileList: e.data.delete_list, requestId: e.requestId });}).catch(function (e) {t(e);}), t.promise;},qe = function qe(_ref6, t) {var e = _ref6.fileList;t = t || z(), e && Array.isArray(e) || t(null, { code: "INVALID_PARAM", message: "fileList必须是非空的数组" });var n = [];var _iterator4 = _createForOfIteratorHelper(e),_step4;try {for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {var _s6 = _step4.value;"object" == typeof _s6 ? (_s6.hasOwnProperty("fileID") && _s6.hasOwnProperty("maxAge") || t(null, { code: "INVALID_PARAM", message: "fileList的元素必须是包含fileID和maxAge的对象" }), n.push({ fileid: _s6.fileID, max_age: _s6.maxAge })) : "string" == typeof _s6 ? n.push({ fileid: _s6 }) : t(null, { code: "INVALID_PARAM", message: "fileList的元素必须是字符串" });}} catch (err) {_iterator4.e(err);} finally {_iterator4.f();}var s = { file_list: n };return Te(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {e.code ? t(null, e) : t(null, { fileList: e.data.download_list, requestId: e.requestId });}).catch(function (e) {t(e);}), t.promise;},Le = /*#__PURE__*/function () {var _ref8 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee29(_ref7, t) {var e, n, s, o;return _regenerator.default.wrap(function _callee29$(_context29) {while (1) {switch (_context29.prev = _context29.next) {case 0:e = _ref7.fileID;_context29.next = 3;return qe.call(this, { fileList: [{ fileID: e, maxAge: 600 }] });case 3:n = _context29.sent.fileList[0];if (!("SUCCESS" !== n.code)) {_context29.next = 6;break;}return _context29.abrupt("return", t ? t(n) : new Promise(function (e) {e(n);}));case 6:s = Te(this.config.env);o = n.download_url;if (!(o = encodeURI(o), !t)) {_context29.next = 10;break;}return _context29.abrupt("return", s.download({ url: o }));case 10:_context29.t0 = t;_context29.next = 13;return s.download({ url: o });case 13:_context29.t1 = _context29.sent;(0, _context29.t0)(_context29.t1);case 15:case "end":return _context29.stop();}}}, _callee29, this);}));return function Le(_x26, _x27) {return _ref8.apply(this, arguments);};}(),Fe = function Fe(_ref9, r) {var e = _ref9.name,t = _ref9.data,n = _ref9.query,s = _ref9.parse,o = _ref9.search;var i = r || z();var a;try {a = t ? JSON.stringify(t) : "";} catch (e) {return Promise.reject(e);}if (!e) return Promise.reject(new x({ code: "PARAM_ERROR", message: "函数名不能为空" }));var c = { inQuery: n, parse: s, search: o, function_name: e, request_data: a };return Te(this.config.env).send("functions.invokeFunction", c).then(function (e) {if (e.code) i(null, e);else {var _t9 = e.data.response_data;if (s) i(null, { result: _t9, requestId: e.requestId });else try {_t9 = JSON.parse(e.data.response_data), i(null, { result: _t9, requestId: e.requestId });} catch (e) {i(new x({ message: "response data must be json" }));}}return i.promise;}).catch(function (e) {i(e);}), i.promise;},Ne = { timeout: 15e3, persistence: "session" },Me = {};var je = /*#__PURE__*/function () {function je(e) {_classCallCheck(this, je);this.config = e || this.config, this.authObj = void 0;}_createClass(je, [{ key: "init", value: function init(e) {switch (G.adapter || (this.requestClient = new G.adapter.reqClass({ timeout: e.timeout || 5e3, timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD") })), this.config = _objectSpread(_objectSpread({}, Ne), e), !0) {case this.config.timeout > 6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;break;case this.config.timeout < 100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;}return new je(this.config);} }, { key: "auth", value: function auth() {var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref10.persistence;if (this.authObj) return this.authObj;var t = e || G.adapter.primaryStorage || Ne.persistence;var n;return t !== this.config.persistence && (this.config.persistence = t), function (e) {var t = e.env;ne[t] = new te(e), se[t] = new te(_objectSpread(_objectSpread({}, e), {}, { persistence: "local" }));}(this.config), n = this.config, ve[n.env] = new Se(n), this.authObj = new Ue(this.config), this.authObj;} }, { key: "on", value: function on(e, t) {return ce.apply(this, [e, t]);} }, { key: "off", value: function off(e, t) {return le.apply(this, [e, t]);} }, { key: "callFunction", value: function callFunction(e, t) {return Fe.apply(this, [e, t]);} }, { key: "deleteFile", value: function deleteFile(e, t) {return De.apply(this, [e, t]);} }, { key: "getTempFileURL", value: function getTempFileURL(e, t) {return qe.apply(this, [e, t]);} }, { key: "downloadFile", value: function downloadFile(e, t) {return Le.apply(this, [e, t]);} }, { key: "uploadFile", value: function uploadFile(e, t) {return Re.apply(this, [e, t]);} }, { key: "getUploadMetadata", value: function getUploadMetadata(e, t) {return xe.apply(this, [e, t]);} }, { key: "registerExtension", value: function registerExtension(e) {Me[e.name] = e;} }, { key: "invokeExtension", value: function () {var _invokeExtension = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee30(e, t) {var n;return _regenerator.default.wrap(function _callee30$(_context30) {while (1) {switch (_context30.prev = _context30.next) {case 0:n = Me[e];if (n) {_context30.next = 3;break;}throw new x({ message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C") });case 3:_context30.next = 5;return n.invoke(t, this);case 5:return _context30.abrupt("return", _context30.sent);case 6:case "end":return _context30.stop();}}}, _callee30, this);}));function invokeExtension(_x28, _x29) {return _invokeExtension.apply(this, arguments);}return invokeExtension;}() }, { key: "useAdapters", value: function useAdapters(e) {var _ref11 = X(e) || {},t = _ref11.adapter,n = _ref11.runtime;t && (G.adapter = t), n && (G.runtime = n);} }]);return je;}();var $e = new je();function Be(e, t, n) {void 0 === n && (n = {});var s = /\?/.test(t),o = "";for (var r in n) {"" === o ? !s && (t += "?") : o += "&", o += r + "=" + encodeURIComponent(n[r]);}return /^http(s)?:\/\//.test(t += o) ? t : "" + e + t;}var Ke = /*#__PURE__*/function () {function Ke() {_classCallCheck(this, Ke);}_createClass(Ke, [{ key: "post", value: function post(e) {var t = e.url,n = e.data,s = e.headers;return new Promise(function (e, o) {N.request({ url: Be("https:", t), data: n, method: "POST", header: s, success: function success(t) {e(t);}, fail: function fail(e) {o(e);} });});} }, { key: "upload", value: function upload(e) {return new Promise(function (t, n) {var s = e.url,o = e.file,r = e.data,i = e.headers,a = e.fileType,c = N.uploadFile({ url: Be("https:", s), name: "file", formData: Object.assign({}, r), filePath: o, fileType: a, header: i, success: function success(e) {var n = { statusCode: e.statusCode, data: e.data || {} };200 === e.statusCode && r.success_action_status && (n.statusCode = parseInt(r.success_action_status, 10)), t(n);}, fail: function fail(e) {h && "mp-alipay" === d && console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"), n(new Error(e.errMsg || "uploadFile:fail"));} });"function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {e.onUploadProgress({ loaded: t.totalBytesSent, total: t.totalBytesExpectedToSend });});});} }]);return Ke;}();var He = { setItem: function setItem(e, t) {N.setStorageSync(e, t);}, getItem: function getItem(e) {return N.getStorageSync(e);}, removeItem: function removeItem(e) {N.removeStorageSync(e);}, clear: function clear() {N.clearStorageSync();} };var We = { genAdapter: function genAdapter() {return { root: {}, reqClass: Ke, localStorage: He, primaryStorage: "local" };}, isMatch: function isMatch() {return !0;}, runtime: "uni_app" };$e.useAdapters(We);var ze = $e,Je = ze.init;ze.init = function (e) {e.env = e.spaceId;var t = Je.call(this, e);t.config.provider = "tencent", t.config.spaceId = e.spaceId;var n = t.auth;return t.auth = function (e) {var t = n.call(this, e);return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {t[e] = R(t[e]).bind(t);}), t;}, t.customAuth = t.auth, t;};var Ve = ze;function Ye() {return { token: N.getStorageSync("uni_id_token") || N.getStorageSync("uniIdToken"), tokenExpired: N.getStorageSync("uni_id_token_expired") };}function Xe() {var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref12.token,t = _ref12.tokenExpired;e && N.setStorageSync("uni_id_token", e), t && N.setStorageSync("uni_id_token_expired", t);}function Ge() {if (!h || "h5" !== d) return;uni.getStorageSync("__LAST_DCLOUD_APPID") !== m && (uni.setStorageSync("__LAST_DCLOUD_APPID", m), console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"), N.removeStorageSync("uni_id_token"), N.removeStorageSync("uniIdToken"), N.removeStorageSync("uni_id_token_expired"));}var Qe = /*#__PURE__*/function (_$) {_inherits(Qe, _$);var _super8 = _createSuper(Qe);function Qe() {_classCallCheck(this, Qe);return _super8.apply(this, arguments);}_createClass(Qe, [{ key: "getAccessToken", value: function getAccessToken() {var _this12 = this;return new Promise(function (e, t) {var n = "Anonymous_Access_token";_this12.setAccessToken(n), e(n);});} }, { key: "setupRequest", value: function setupRequest(e, t) {var n = Object.assign({}, e, { spaceId: this.config.spaceId, timestamp: Date.now() }),s = { "Content-Type": "application/json" };"auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = F.sign(n, this.config.clientSecret);var o = L();s["x-client-info"] = JSON.stringify(o);var _Ye = Ye(),r = _Ye.token;return s["x-client-token"] = r, { url: this.config.requestUrl, method: "POST", data: n, dataType: "json", header: JSON.parse(JSON.stringify(s)) };} }, { key: "uploadFileToOSS", value: function uploadFileToOSS(_ref13) {var _this13 = this;var e = _ref13.url,t = _ref13.formData,n = _ref13.name,s = _ref13.filePath,o = _ref13.fileType,r = _ref13.onUploadProgress;return new Promise(function (i, a) {var c = _this13.adapter.uploadFile({ url: e, formData: t, name: n, filePath: s, fileType: o, success: function success(e) {e && e.statusCode < 400 ? i(e) : a(new x({ code: "UPLOAD_FAILED", message: "文件上传失败" }));}, fail: function fail(e) {a(new x({ code: e.code || "UPLOAD_FAILED", message: e.message || e.errMsg || "文件上传失败" }));} });"function" == typeof r && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {r({ loaded: e.totalBytesSent, total: e.totalBytesExpectedToSend });});});} }, { key: "uploadFile", value: function uploadFile(_ref14) {var _this14 = this;var e = _ref14.filePath,t = _ref14.cloudPath,_ref14$fileType = _ref14.fileType,n = _ref14$fileType === void 0 ? "image" : _ref14$fileType,s = _ref14.onUploadProgress;if (!t) throw new x({ code: "CLOUDPATH_REQUIRED", message: "cloudPath不可为空" });var o;return this.getOSSUploadOptionsFromPath({ cloudPath: t }).then(function (t) {var _t$result = t.result,r = _t$result.url,i = _t$result.formData,a = _t$result.name;o = t.result.fileUrl;var c = { url: r, formData: i, name: a, filePath: e, fileType: n };return _this14.uploadFileToOSS(Object.assign({}, c, { onUploadProgress: s }));}).then(function () {return _this14.reportOSSUpload({ cloudPath: t });}).then(function (t) {return new Promise(function (n, s) {t.success ? n({ success: !0, filePath: e, fileID: o }) : s(new x({ code: "UPLOAD_FAILED", message: "文件上传失败" }));});});} }, { key: "deleteFile", value: function deleteFile(_ref15) {var e = _ref15.fileList;var t = { method: "serverless.file.resource.delete", params: JSON.stringify({ fileList: e }) };return this.request(this.setupRequest(t));} }, { key: "getTempFileURL", value: function getTempFileURL() {var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref16.fileList;var t = { method: "serverless.file.resource.getTempFileURL", params: JSON.stringify({ fileList: e }) };return this.request(this.setupRequest(t));} }]);return Qe;}($);var Ze = { init: function init(e) {var t = new Qe(e),n = { signInAnonymously: function signInAnonymously() {return t.authorize();}, getLoginState: function getLoginState() {return Promise.resolve(!1);} };return t.auth = function () {return n;}, t.customAuth = t.auth, t;} };function et(_ref17) {var e = _ref17.data;var t;t = L();var n = JSON.parse(JSON.stringify(e || {}));if (Object.assign(n, { clientInfo: t }), !n.uniIdToken) {var _Ye2 = Ye(),_e18 = _Ye2.token;_e18 && (n.uniIdToken = _e18);}return n;}function tt(_ref18) {var _this15 = this;var e = _ref18.name,t = _ref18.data;var n = this.localAddress,s = this.localPort,o = { aliyun: "aliyun", tencent: "tcb" }[this.config.provider],r = this.config.spaceId,i = "http://".concat(n, ":").concat(s, "/system/check-function"),a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);return new Promise(function (t, n) {N.request({ method: "POST", url: i, data: { name: e, platform: d, provider: o, spaceId: r }, timeout: 3e3, success: function success(e) {t(e);}, fail: function fail() {t({ data: { code: "NETWORK_ERROR", message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。" } });} });}).then(function () {var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},e = _ref19.data;var _ref20 = e || {},t = _ref20.code,n = _ref20.message;return { code: 0 === t ? 0 : t || "SYS_ERR", message: n || "SYS_ERR" };}).then(function (_ref21) {var n = _ref21.code,s = _ref21.message;if (0 !== n) {switch (n) {case "MODULE_ENCRYPTED":console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));break;case "FUNCTION_ENCRYPTED":console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));break;case "ACTION_ENCRYPTED":console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case "NETWORK_ERROR":{var _e19 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(_e19), new Error(_e19);}case "SWITCH_TO_CLOUD":break;default:{var _e20 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");throw console.error(_e20), new Error(_e20);}}return _this15._originCallFunction({ name: e, data: t });}return new Promise(function (e, n) {var s = et.call(_this15, { data: t });N.request({ method: "POST", url: a, data: { provider: o, platform: d, param: s }, success: function success() {var _ref22 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},t = _ref22.statusCode,s = _ref22.data;return !t || t >= 400 ? n(new x({ code: s.code || "SYS_ERR", message: s.message || "request:fail" })) : e({ result: s });}, fail: function fail(e) {n(new x({ code: e.code || e.errCode || "SYS_ERR", message: e.message || e.errMsg || "request:fail" }));} });});});}var nt = [{ rule: /fc_function_not_found|FUNCTION_NOT_FOUND/, content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间", mode: "append" }];var st = /[\\^$.*+?()[\]{}|]/g,ot = RegExp(st.source);function rt(e, t, n) {return e.replace(new RegExp((s = t) && ot.test(s) ? s.replace(st, "\\$&") : s, "g"), n);var s;}function it(_ref23) {var e = _ref23.functionName,t = _ref23.result,n = _ref23.logPvd;if (this.config.useDebugFunction && t && t.requestId) {var _s7 = JSON.stringify({ spaceId: this.config.spaceId, functionName: e, requestId: t.requestId });console.log("[".concat(n, "-request]").concat(_s7, "[/").concat(n, "-request]"));}}function at(e) {var t = e.callFunction,n = function n(_n5) {var _this16 = this;var s = _n5.name;_n5.data = et.call(e, { data: _n5.data });var o = { aliyun: "aliyun", tencent: "tcb", tcb: "tcb" }[this.config.provider];return t.call(this, _n5).then(function (e) {return e.errCode = 0, it.call(_this16, { functionName: s, result: e, logPvd: o }), Promise.resolve(e);}, function (e) {return it.call(_this16, { functionName: s, result: e, logPvd: o }), e && e.message && (e.message = function () {var _ref24 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref24$message = _ref24.message,e = _ref24$message === void 0 ? "" : _ref24$message,_ref24$extraInfo = _ref24.extraInfo,t = _ref24$extraInfo === void 0 ? {} : _ref24$extraInfo,_ref24$formatter = _ref24.formatter,n = _ref24$formatter === void 0 ? [] : _ref24$formatter;for (var _s8 = 0; _s8 < n.length; _s8++) {var _n$_s = n[_s8],_o3 = _n$_s.rule,_r2 = _n$_s.content,i = _n$_s.mode,_a = e.match(_o3);if (!_a) continue;var _c = _r2;for (var _e21 = 1; _e21 < _a.length; _e21++) {_c = rt(_c, "{$".concat(_e21, "}"), _a[_e21]);}for (var _e22 in t) {_c = rt(_c, "{".concat(_e22, "}"), t[_e22]);}return "replace" === i ? _c : e + _c;}return e;}({ message: "[".concat(_n5.name, "]: ").concat(e.message), formatter: nt, extraInfo: { functionName: s } })), Promise.reject(e);});};e.callFunction = function (t) {var s;return h && e.debugInfo && !e.debugInfo.forceRemote && p ? (e._originCallFunction || (e._originCallFunction = n), s = tt.call(this, t)) : s = n.call(this, t), Object.defineProperty(s, "result", { get: function get() {return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};} }), s;};}var ct = Symbol("CLIENT_DB_INTERNAL");function ut(e, t) {return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = ct, e.__ob__ = void 0, new Proxy(e, { get: function get(e, n, s) {if ("_uniClient" === n) return null;if (n in e || "string" != typeof n) {var _t10 = e[n];return "function" == typeof _t10 ? _t10.bind(e) : _t10;}return t.get(e, n, s);} });}function lt(e) {return { on: function on(t, n) {e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);}, off: function off(t, n) {e[t] = e[t] || [];var s = e[t].indexOf(n);-1 !== s && e[t].splice(s, 1);} };}var ht = ["db.Geo", "db.command", "command.aggregate"];function dt(e, t) {return ht.indexOf("".concat(e, ".").concat(t)) > -1;}function ft(e) {switch (c(e)) {case "array":return e.map(function (e) {return ft(e);});case "object":return e._internalType === ct || Object.keys(e).forEach(function (t) {e[t] = ft(e[t]);}), e;case "regexp":return { $regexp: { source: e.source, flags: e.flags } };case "date":return { $date: e.toISOString() };default:return e;}}var pt = /*#__PURE__*/function () {function pt(e, t, n) {_classCallCheck(this, pt);this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;}_createClass(pt, [{ key: "toJSON", value: function toJSON() {var e = this;var t = [e.content];for (; e.prevStage;) {e = e.prevStage, t.push(e.content);}return { $db: t.reverse().map(function (e) {return { $method: e.$method, $param: ft(e.$param) };}) };} }, { key: "getAction", value: function getAction() {var e = this.toJSON().$db.find(function (e) {return "action" === e.$method;});return e && e.$param && e.$param[0];} }, { key: "getCommand", value: function getCommand() {return { $db: this.toJSON().$db.filter(function (e) {return "action" !== e.$method;}) };} }, { key: "get", value: function get() {return this._send("get", Array.from(arguments));} }, { key: "add", value: function add() {return this._send("add", Array.from(arguments));} }, { key: "remove", value: function remove() {return this._send("remove", Array.from(arguments));} }, { key: "update", value: function update() {return this._send("update", Array.from(arguments));} }, { key: "end", value: function end() {return this._send("end", Array.from(arguments));} }, { key: "set", value: function set() {throw new Error("clientDB禁止使用set方法");} }, { key: "_send", value: function _send(e, t) {var n = this.getAction(),s = this.getCommand();if (s.$db.push({ $method: e, $param: ft(t) }), h) {var _e23 = s.$db.find(function (e) {return "collection" === e.$method;}),_t11 = _e23 && _e23.$param;_t11 && 1 === _t11.length && "string" == typeof _e23.$param[0] && _e23.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");}return this._database._callCloudFunction({ action: n, command: s });} }, { key: "useAggregate", get: function get() {var e = this,t = !1;for (; e.prevStage;) {e = e.prevStage;var _n6 = e.content.$method;if ("aggregate" === _n6 || "pipeline" === _n6) {t = !0;break;}}return t;} }, { key: "count", get: function get() {if (!this.useAggregate) return function () {return this._send("count", Array.from(arguments));};var e = this;return function () {return gt({ $method: "count", $param: ft(Array.from(arguments)) }, e, this._database);};} }]);return pt;}();function gt(e, t, n) {return ut(new pt(e, t, n), { get: function get(e, t) {var s = "db";return e && e.content && (s = e.content.$method), dt(s, t) ? gt({ $method: t }, e, n) : function () {return gt({ $method: t, $param: ft(Array.from(arguments)) }, e, n);};} });}function mt(_ref25) {var e = _ref25.path,t = _ref25.method;return /*#__PURE__*/function () {function _class2() {_classCallCheck(this, _class2);this.param = Array.from(arguments);}_createClass(_class2, [{ key: "toJSON", value: function toJSON() {return { $newDb: [].concat(_toConsumableArray(e.map(function (e) {return { $method: e };})), [{ $method: t, $param: this.param }]) };} }]);return _class2;}();}var yt = /*#__PURE__*/function (_ref26) {_inherits(yt, _ref26);var _super9 = _createSuper(yt);function yt() {_classCallCheck(this, yt);return _super9.apply(this, arguments);}_createClass(yt, [{ key: "_callCloudFunction", value: function _callCloudFunction(_ref27) {var _this17 = this;var e = _ref27.action,t = _ref27.command,n = _ref27.multiCommand,s = _ref27.queryList;function o(e, t) {if (n && s) for (var _n7 = 0; _n7 < s.length; _n7++) {var _o4 = s[_n7];_o4.udb && "function" == typeof _o4.udb.setResult && (t ? _o4.udb.setResult(t) : _o4.udb.setResult(e.result.dataList[_n7]));}}var r = this;function i(e) {return r._callback("error", [e]), T(A("database", "fail"), e).then(function () {return T(A("database", "complete"), e);}).then(function () {return o(null, e), U(I, { type: O, content: e }), Promise.reject(e);});}var c = T(A("database", "invoke")),u = this._uniClient;return c.then(function () {return u.callFunction({ name: "DCloud-clientDB", type: a, data: { action: e, command: t, multiCommand: n } });}).then(function (e) {var _e$result = e.result,t = _e$result.code,n = _e$result.message,s = _e$result.token,r = _e$result.tokenExpired,_e$result$systemInfo = _e$result.systemInfo,a = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;if (a) for (var _e24 = 0; _e24 < a.length; _e24++) {var _a$_e = a[_e24],_t12 = _a$_e.level,_n8 = _a$_e.message,_s9 = _a$_e.detail,_o5 = console["app-plus" === d && "warn" === _t12 ? "error" : _t12] || console.log;var _r3 = "[System Info]" + _n8;_s9 && (_r3 = "".concat(_r3, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s9)), _o5(_r3);}if (t) {return i(new x({ code: t, message: n, requestId: e.requestId }));}e.result.errCode = e.result.code, e.result.errMsg = e.result.message, s && r && (Xe({ token: s, tokenExpired: r }), _this17._callbackAuth("refreshToken", [{ token: s, tokenExpired: r }]), _this17._callback("refreshToken", [{ token: s, tokenExpired: r }]));var c = [{ prop: "affectedDocs", tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代" }, { prop: "code", tips: "code不再推荐使用,请使用errCode替代" }, { prop: "message", tips: "message不再推荐使用,请使用errMsg替代" }];var _loop = function _loop(_t13) {var _c$_t = c[_t13],n = _c$_t.prop,s = _c$_t.tips;if (n in e.result) {var _t14 = e.result[n];Object.defineProperty(e.result, n, { get: function get() {return console.warn(s), _t14;} });}};for (var _t13 = 0; _t13 < c.length; _t13++) {_loop(_t13);}return function (e) {return T(A("database", "success"), e).then(function () {return T(A("database", "complete"), e);}).then(function () {return o(e, null), U(I, { type: O, content: e }), Promise.resolve(e);});}(e);}, function (e) {/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");return i(new x({ code: e.code || "SYSTEM_ERROR", message: e.message, requestId: e.requestId }));});} }]);return yt;}( /*#__PURE__*/function () {function _class3() {var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref28$uniClient = _ref28.uniClient,e = _ref28$uniClient === void 0 ? {} : _ref28$uniClient;_classCallCheck(this, _class3);this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e.isDefault && (this._dbCallBacks = _("_globalUniCloudDatabaseCallback")), this.auth = lt(this._authCallBacks), Object.assign(this, lt(this._dbCallBacks)), this.env = ut({}, { get: function get(e, t) {return { $env: t };} }), this.Geo = ut({}, { get: function get(e, t) {return mt({ path: ["Geo"], method: t });} }), this.serverDate = mt({ path: [], method: "serverDate" }), this.RegExp = mt({ path: [], method: "RegExp" });}_createClass(_class3, [{ key: "getCloudEnv", value: function getCloudEnv(e) {if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");return { $env: e.replace("$cloudEnv_", "") };} }, { key: "_callback", value: function _callback(e, t) {var n = this._dbCallBacks;n[e] && n[e].forEach(function (e) {e.apply(void 0, _toConsumableArray(t));});} }, { key: "_callbackAuth", value: function _callbackAuth(e, t) {var n = this._authCallBacks;n[e] && n[e].forEach(function (e) {e.apply(void 0, _toConsumableArray(t));});} }, { key: "multiSend", value: function multiSend() {var e = Array.from(arguments),t = e.map(function (e) {var t = e.getAction(),n = e.getCommand();if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");return { action: t, command: n };});return this._callCloudFunction({ multiCommand: t, queryList: e });} }]);return _class3;}());function _t(e) {e.database = function (t) {if (t && Object.keys(t).length > 0) return e.init(t).database();if (this._database) return this._database;var n = function (e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};return ut(new e(t), { get: function get(e, t) {return dt("db", t) ? gt({ $method: t }, null, e) : function () {return gt({ $method: t, $param: ft(Array.from(arguments)) }, null, e);};} });}(yt, { uniClient: e });return this._database = n, n;};}function wt(e) {e.onResponse = function (e) {!function (e, t) {var n = E(e);n.includes(t) || n.push(t);}(I, e);}, e.offResponse = function (e) {!function (e, t) {var n = E(e),s = n.indexOf(t);-1 !== s && n.splice(s, 1);}(I, e);};}var kt;var St = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",vt = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Tt() {var e = Ye().token || "",t = e.split(".");if (!e || 3 !== t.length) return { uid: null, role: [], permission: [], tokenExpired: 0 };var n;try {n = JSON.parse((s = t[1], decodeURIComponent(kt(s).split("").map(function (e) {return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);}).join(""))));} catch (e) {throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);}var s;return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;}kt = "function" != typeof atob ? function (e) {if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !vt.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e += "==".slice(2 - (3 & e.length));for (var n, s, o = "", r = 0; r < e.length;) {t = St.indexOf(e.charAt(r++)) << 18 | St.indexOf(e.charAt(r++)) << 12 | (n = St.indexOf(e.charAt(r++))) << 6 | (s = St.indexOf(e.charAt(r++))), o += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);}return o;} : atob;var At = t(n(function (e, t) {Object.defineProperty(t, "__esModule", { value: !0 });var n = "chooseAndUploadFile:ok",s = "chooseAndUploadFile:fail";function o(e, t) {return e.tempFiles.forEach(function (e, n) {e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));}), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {return e.path;})), e;}function r(e, t, _ref29) {var s = _ref29.onChooseFile,o = _ref29.onUploadProgress;return t.then(function (e) {if (s) {var _t15 = s(e);if (void 0 !== _t15) return Promise.resolve(_t15).then(function (t) {return void 0 === t ? e : t;});}return e;}).then(function (t) {return !1 === t ? { errMsg: n, tempFilePaths: [], tempFiles: [] } : function (e, t) {var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;var o = arguments.length > 3 ? arguments[3] : undefined;(t = Object.assign({}, t)).errMsg = n;var r = t.tempFiles,i = r.length;var a = 0;return new Promise(function (n) {for (; a < s;) {c();}function c() {var s = a++;if (s >= i) return void (!r.find(function (e) {return !e.url && !e.errMsg;}) && n(t));var u = r[s];e.uploadFile({ filePath: u.path, cloudPath: u.cloudPath, fileType: u.fileType, onUploadProgress: function onUploadProgress(e) {e.index = s, e.tempFile = u, e.tempFilePath = u.path, o && o(e);} }).then(function (e) {u.url = e.fileID, s < i && c();}).catch(function (e) {u.errMsg = e.errMsg || e.message, s < i && c();});}});}(e, t, 5, o);});}t.initChooseAndUploadFile = function (e) {return function () {var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { type: "all" };return "image" === t.type ? r(e, function (e) {var t = e.count,n = e.sizeType,_e$sourceType = e.sourceType,r = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,i = e.extension;return new Promise(function (e, a) {uni.chooseImage({ count: t, sizeType: n, sourceType: r, extension: i, success: function success(t) {e(o(t, "image"));}, fail: function fail(e) {a({ errMsg: e.errMsg.replace("chooseImage:fail", s) });} });});}(t), t) : "video" === t.type ? r(e, function (e) {var t = e.camera,n = e.compressed,r = e.maxDuration,_e$sourceType2 = e.sourceType,i = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,a = e.extension;return new Promise(function (e, c) {uni.chooseVideo({ camera: t, compressed: n, maxDuration: r, sourceType: i, extension: a, success: function success(t) {var n = t.tempFilePath,s = t.duration,r = t.size,i = t.height,a = t.width;e(o({ errMsg: "chooseVideo:ok", tempFilePaths: [n], tempFiles: [{ name: t.tempFile && t.tempFile.name || "", path: n, size: r, type: t.tempFile && t.tempFile.type || "", width: a, height: i, duration: s, fileType: "video", cloudPath: "" }] }, "video"));}, fail: function fail(e) {c({ errMsg: e.errMsg.replace("chooseVideo:fail", s) });} });});}(t), t) : r(e, function (e) {var t = e.count,n = e.extension;return new Promise(function (e, r) {var i = uni.chooseFile;if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (i = wx.chooseMessageFile), "function" != typeof i) return r({ errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。" });i({ type: "all", count: t, extension: n, success: function success(t) {e(o(t));}, fail: function fail(e) {r({ errMsg: e.errMsg.replace("chooseFile:fail", s) });} });});}(t), t);};};}));var Pt = "manual";function It(e) {return { props: { localdata: { type: Array, default: function _default() {return [];} }, options: { type: [Object, Array], default: function _default() {return {};} }, spaceInfo: { type: Object, default: function _default() {return {};} }, collection: { type: [String, Array], default: "" }, action: { type: String, default: "" }, field: { type: String, default: "" }, orderby: { type: String, default: "" }, where: { type: [String, Object], default: "" }, pageData: { type: String, default: "add" }, pageCurrent: { type: Number, default: 1 }, pageSize: { type: Number, default: 20 }, getcount: { type: [Boolean, String], default: !1 }, gettree: { type: [Boolean, String], default: !1 }, gettreepath: { type: [Boolean, String], default: !1 }, startwith: { type: String, default: "" }, limitlevel: { type: Number, default: 10 }, groupby: { type: String, default: "" }, groupField: { type: String, default: "" }, distinct: { type: [Boolean, String], default: !1 }, foreignKey: { type: String, default: "" }, loadtime: { type: String, default: "auto" }, manual: { type: Boolean, default: !1 } }, data: function data() {return { mixinDatacomLoading: !1, mixinDatacomHasMore: !1, mixinDatacomResData: [], mixinDatacomErrorMessage: "", mixinDatacomPage: {} };}, created: function created() {var _this18 = this;this.mixinDatacomPage = { current: this.pageCurrent, size: this.pageSize, count: 0 }, this.$watch(function () {var e = [];return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {e.push(_this18[t]);}), e;}, function (e, t) {if (_this18.loadtime === Pt) return;var n = !1;var s = [];for (var _o6 = 2; _o6 < e.length; _o6++) {e[_o6] !== t[_o6] && (s.push(e[_o6]), n = !0);}e[0] !== t[0] && (_this18.mixinDatacomPage.current = _this18.pageCurrent), _this18.mixinDatacomPage.size = _this18.pageSize, _this18.onMixinDatacomPropsChange(n, s);});}, methods: { onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {}, mixinDatacomEasyGet: function mixinDatacomEasyGet() {var _this19 = this;var _ref30 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},_ref30$getone = _ref30.getone,e = _ref30$getone === void 0 ? !1 : _ref30$getone,t = _ref30.success,n = _ref30.fail;this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {_this19.mixinDatacomLoading = !1;var _n$result = n.result,s = _n$result.data,o = _n$result.count;_this19.getcount && (_this19.mixinDatacomPage.count = o), _this19.mixinDatacomHasMore = s.length < _this19.pageSize;var r = e ? s.length ? s[0] : void 0 : s;_this19.mixinDatacomResData = r, t && t(r);}).catch(function (e) {_this19.mixinDatacomLoading = !1, _this19.mixinDatacomErrorMessage = e, n && n(e);}));}, mixinDatacomGet: function mixinDatacomGet() {var _n9;var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var n = e.database(this.spaceInfo);var s = t.action || this.action;s && (n = n.action(s));var o = t.collection || this.collection;n = Array.isArray(o) ? (_n9 = n).collection.apply(_n9, _toConsumableArray(o)) : n.collection(o);var r = t.where || this.where;r && Object.keys(r).length && (n = n.where(r));var i = t.field || this.field;i && (n = n.field(i));var a = t.foreignKey || this.foreignKey;a && (n = n.foreignKey(a));var c = t.groupby || this.groupby;c && (n = n.groupBy(c));var u = t.groupField || this.groupField;u && (n = n.groupField(u));!0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());var l = t.orderby || this.orderby;l && (n = n.orderBy(l));var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,f = void 0 !== t.getcount ? t.getcount : this.getcount,p = void 0 !== t.gettree ? t.gettree : this.gettree,g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,m = { getCount: f },y = { limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel, startWith: void 0 !== t.startwith ? t.startwith : this.startwith };return p && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;} } };}function Ot(e) {return function (t) {var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};n = function (e) {var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};return e.customUI = t.customUI || e.customUI, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), e;}({ customUI: !1, loadingOptions: { title: "加载中...", mask: !0 }, errorOptions: { type: "modal", retry: !1 } }, n);var _n10 = n,s = _n10.customUI,o = _n10.loadingOptions,r = _n10.errorOptions,a = !s;return new Proxy({}, { get: function get(n, s) {return /*#__PURE__*/function () {var _n11 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee32() {var u,_len,c,_key,_ref31,l,h,d,_yield,_e26,_e25,_args32 = arguments;return _regenerator.default.wrap(function _callee32$(_context32) {while (1) {switch (_context32.prev = _context32.next) {case 0:a && uni.showLoading({ title: o.title, mask: o.mask });for (_len = _args32.length, c = new Array(_len), _key = 0; _key < _len; _key++) {c[_key] = _args32[_key];}_context32.prev = 2;_context32.next = 5;return e.callFunction({ name: t, type: i, data: { method: s, params: c } });case 5:u = _context32.sent;_context32.next = 11;break;case 8:_context32.prev = 8;_context32.t0 = _context32["catch"](2);u = { result: _context32.t0 };case 11:_ref31 = u.result || {}, l = _ref31.errCode, h = _ref31.errMsg, d = _ref31.newToken;if (!(a && uni.hideLoading(), d && d.token && d.tokenExpired && Xe(d), l)) {_context32.next = 28;break;}if (!a) {_context32.next = 26;break;}if (!("toast" === r.type)) {_context32.next = 18;break;}uni.showToast({ title: h, icon: "none" });_context32.next = 26;break;case 18:if (!("modal" !== r.type)) {_context32.next = 20;break;}throw new Error("Invalid errorOptions.type: ".concat(r.type));case 20:_context32.next = 22;return _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee31() {var _ref33,e,t,n,s,o,_args31 = arguments;return _regenerator.default.wrap(function _callee31$(_context31) {while (1) {switch (_context31.prev = _context31.next) {case 0:_ref33 = _args31.length > 0 && _args31[0] !== undefined ? _args31[0] : {}, e = _ref33.title, t = _ref33.content, n = _ref33.showCancel, s = _ref33.cancelText, o = _ref33.confirmText;return _context31.abrupt("return", new Promise(function (r, i) {uni.showModal({ title: e, content: t, showCancel: n, cancelText: s, confirmText: o, success: function success(e) {r(e);}, fail: function fail() {r({ confirm: !1, cancel: !0 });} });}));case 2:case "end":return _context31.stop();}}}, _callee31);}))({ title: "提示", content: h, showCancel: r.retry, cancelText: "取消", confirmText: r.retry ? "重试" : "确定" });case 22:_yield = _context32.sent;_e26 = _yield.confirm;if (!(r.retry && _e26)) {_context32.next = 26;break;}return _context32.abrupt("return", n.apply(void 0, c));case 26:_e25 = new x({ code: l, message: h, requestId: u.requestId });throw _e25.detail = u.result, U(I, { type: C, content: _e25 }), _e25;case 28:return _context32.abrupt("return", (U(I, { type: C, content: u.result }), u.result));case 29:case "end":return _context32.stop();}}}, _callee32, null, [[2, 8]]);}));function n() {return _n11.apply(this, arguments);}return n;}();} });};}function bt(_x30, _x31) {return _bt.apply(this, arguments);}function _bt() {_bt = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee34(e, t) {var n, _e29, s;return _regenerator.default.wrap(function _callee34$(_context34) {while (1) {switch (_context34.prev = _context34.next) {case 0:n = "http://".concat(e, ":").concat(t, "/system/ping");_context34.prev = 1;_context34.next = 4;return s = { url: n, timeout: 500 }, new Promise(function (e, t) {N.request(_objectSpread(_objectSpread({}, s), {}, { success: function success(t) {e(t);}, fail: function fail(e) {t(e);} }));});case 4:_e29 = _context34.sent;return _context34.abrupt("return", !(!_e29.data || 0 !== _e29.data.code));case 8:_context34.prev = 8;_context34.t0 = _context34["catch"](1);return _context34.abrupt("return", !1);case 11:case "end":return _context34.stop();}}}, _callee34, null, [[1, 8]]);}));return _bt.apply(this, arguments);}function Ct(e) {if (e.initUniCloudStatus && "rejected" !== e.initUniCloudStatus) return;var t = Promise.resolve();var n;n = 1, t = new Promise(function (e, t) {setTimeout(function () {e();}, n);}), e.isReady = !1, e.isDefault = !1;var s = e.auth();e.initUniCloudStatus = "pending", e.initUniCloud = t.then(function () {return s.getLoginState();}).then(function (e) {return e ? Promise.resolve() : s.signInAnonymously();}).then(function () {if (!h) return Promise.resolve();if (h && e.debugInfo) {var _e$debugInfo = e.debugInfo,_t16 = _e$debugInfo.address,_n12 = _e$debugInfo.servePort;return function () {var _ref34 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {var n, _s10, _o7;return _regenerator.default.wrap(function _callee33$(_context33) {while (1) {switch (_context33.prev = _context33.next) {case 0:_s10 = 0;case 1:if (!(_s10 < e.length)) {_context33.next = 11;break;}_o7 = e[_s10];_context33.next = 5;return bt(_o7, t);case 5:if (!_context33.sent) {_context33.next = 8;break;}n = _o7;return _context33.abrupt("break", 11);case 8:_s10++;_context33.next = 1;break;case 11:return _context33.abrupt("return", { address: n, port: t });case 12:case "end":return _context33.stop();}}}, _callee33);}));return function (_x32, _x33) {return _ref34.apply(this, arguments);};}()(_t16, _n12);}}).then(function () {var _ref35 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},t = _ref35.address,n = _ref35.port;if (!h) return Promise.resolve();if (t) e.localAddress = t, e.localPort = n;else if (e.debugInfo) {var _t17 = console["app-plus" === d ? "error" : "warn"];var _n13 = "";"remote" === e.debugInfo.initialLaunchType ? (e.debugInfo.forceRemote = !0, _n13 = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs") : _n13 = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs", "h5" === d && (_n13 += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), _t17(_n13);}}).then(function () {Ge(), e.isReady = !0, e.initUniCloudStatus = "fulfilled";}).catch(function (t) {console.error(t), e.initUniCloudStatus = "rejected";});}var Et = new ( /*#__PURE__*/function () {function _class4() {_classCallCheck(this, _class4);}_createClass(_class4, [{ key: "init", value: function init(e) {var t = {};var n = !1 !== e.debugFunction && h && ("h5" === d && navigator.userAgent.indexOf("HBuilderX") > 0 || "app-plus" === d);switch (e.provider) {case "tcb":case "tencent":t = Ve.init(Object.assign(e, { useDebugFunction: n }));break;case "aliyun":t = B.init(Object.assign(e, { useDebugFunction: n }));break;case "private":t = Ze.init(Object.assign(e, { useDebugFunction: n }));break;default:throw new Error("未提供正确的provider参数");}var s = f;h && s && !s.code && (t.debugInfo = s), Ct(t), t.reInit = function () {Ct(this);}, at(t), function (e) {var t = e.uploadFile;e.uploadFile = function (e) {return t.call(this, e);};}(t), _t(t), function (e) {e.getCurrentUserInfo = Tt, e.chooseAndUploadFile = At.initChooseAndUploadFile(e), Object.assign(e, { get mixinDatacom() {return It(e);} }), e.importObject = Ot(e);}(t);return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {if (!t[e]) return;var n = t[e];t[e] = function () {return t.reInit(), n.apply(t, Array.from(arguments));}, t[e] = R(t[e], e).bind(t);}), t.init = this.init, t;} }]);return _class4;}())();(function () {{var e = p;var t = {};if (1 === e.length) t = e[0], Et = Et.init(t), Et.isDefault = !0;else {var _t18 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];var _n14;_n14 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : g ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t18.forEach(function (e) {Et[e] = function () {return console.error(_n14), Promise.reject(new x({ code: "SYS_ERR", message: _n14 }));};});}Object.assign(Et, { get mixinDatacom() {return It(Et);} }), wt(Et), Et.addInterceptor = S, Et.removeInterceptor = v, h && "h5" === d && (window.uniCloud = Et);}})();var Ut = Et;exports.default = Ut;
  10664. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  10665. /***/ }),
  10666. /***/ 88:
  10667. /*!******************************************************************!*\
  10668. !*** X:/sampling最新/sampling/sampling/pages.json?{"type":"stat"} ***!
  10669. \******************************************************************/
  10670. /*! no static exports found */
  10671. /***/ (function(module, exports, __webpack_require__) {
  10672. "use strict";
  10673. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = { "appid": "__UNI__8459F27" };exports.default = _default;
  10674. /***/ }),
  10675. /***/ 96:
  10676. /*!************************************************************************************************!*\
  10677. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/util.js ***!
  10678. \************************************************************************************************/
  10679. /*! no static exports found */
  10680. /***/ (function(module, exports, __webpack_require__) {
  10681. "use strict";
  10682. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _calendar = _interopRequireDefault(__webpack_require__(/*! ./calendar.js */ 97));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var
  10683. Calendar = /*#__PURE__*/function () {
  10684. function Calendar()
  10685. {var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},date = _ref.date,selected = _ref.selected,startDate = _ref.startDate,endDate = _ref.endDate,range = _ref.range;_classCallCheck(this, Calendar);
  10686. // 当前日期
  10687. this.date = this.getDate(new Date()); // 当前初入日期
  10688. // 打点信息
  10689. this.selected = selected || [];
  10690. // 范围开始
  10691. this.startDate = startDate;
  10692. // 范围结束
  10693. this.endDate = endDate;
  10694. this.range = range;
  10695. // 多选状态
  10696. this.cleanMultipleStatus();
  10697. // 每周日期
  10698. this.weeks = {};
  10699. // this._getWeek(this.date.fullDate)
  10700. }
  10701. /**
  10702. * 设置日期
  10703. * @param {Object} date
  10704. */_createClass(Calendar, [{ key: "setDate", value: function setDate(
  10705. date) {
  10706. this.selectDate = this.getDate(date);
  10707. this._getWeek(this.selectDate.fullDate);
  10708. }
  10709. /**
  10710. * 清理多选状态
  10711. */ }, { key: "cleanMultipleStatus", value: function cleanMultipleStatus()
  10712. {
  10713. this.multipleStatus = {
  10714. before: '',
  10715. after: '',
  10716. data: [] };
  10717. }
  10718. /**
  10719. * 重置开始日期
  10720. */ }, { key: "resetSatrtDate", value: function resetSatrtDate(
  10721. startDate) {
  10722. // 范围开始
  10723. this.startDate = startDate;
  10724. }
  10725. /**
  10726. * 重置结束日期
  10727. */ }, { key: "resetEndDate", value: function resetEndDate(
  10728. endDate) {
  10729. // 范围结束
  10730. this.endDate = endDate;
  10731. }
  10732. /**
  10733. * 获取任意时间
  10734. */ }, { key: "getDate", value: function getDate(
  10735. date) {var AddDayCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var str = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'day';
  10736. if (!date) {
  10737. date = new Date();
  10738. }
  10739. if (typeof date !== 'object') {
  10740. date = date.replace(/-/g, '/');
  10741. }
  10742. var dd = new Date(date);
  10743. switch (str) {
  10744. case 'day':
  10745. dd.setDate(dd.getDate() + AddDayCount); // 获取AddDayCount天后的日期
  10746. break;
  10747. case 'month':
  10748. if (dd.getDate() === 31) {
  10749. dd.setDate(dd.getDate() + AddDayCount);
  10750. } else {
  10751. dd.setMonth(dd.getMonth() + AddDayCount); // 获取AddDayCount天后的日期
  10752. }
  10753. break;
  10754. case 'year':
  10755. dd.setFullYear(dd.getFullYear() + AddDayCount); // 获取AddDayCount天后的日期
  10756. break;}
  10757. var y = dd.getFullYear();
  10758. var m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1; // 获取当前月份的日期,不足10补0
  10759. var d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate(); // 获取当前几号,不足10补0
  10760. return {
  10761. fullDate: y + '-' + m + '-' + d,
  10762. year: y,
  10763. month: m,
  10764. date: d,
  10765. day: dd.getDay() };
  10766. }
  10767. /**
  10768. * 获取上月剩余天数
  10769. */ }, { key: "_getLastMonthDays", value: function _getLastMonthDays(
  10770. firstDay, full) {
  10771. var dateArr = [];
  10772. for (var i = firstDay; i > 0; i--) {
  10773. var beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate();
  10774. dateArr.push({
  10775. date: beforeDate,
  10776. month: full.month - 1,
  10777. lunar: this.getlunar(full.year, full.month - 1, beforeDate),
  10778. disable: true });
  10779. }
  10780. return dateArr;
  10781. }
  10782. /**
  10783. * 获取本月天数
  10784. */ }, { key: "_currentMonthDys", value: function _currentMonthDys(
  10785. dateData, full) {var _this = this;
  10786. var dateArr = [];
  10787. var fullDate = this.date.fullDate;var _loop = function _loop(
  10788. i) {
  10789. var isinfo = false;
  10790. var nowDate = full.year + '-' + (full.month < 10 ?
  10791. full.month : full.month) + '-' + (i < 10 ?
  10792. '0' + i : i);
  10793. // 是否今天
  10794. var isDay = fullDate === nowDate;
  10795. // 获取打点信息
  10796. var info = _this.selected && _this.selected.find(function (item) {
  10797. if (_this.dateEqual(nowDate, item.date)) {
  10798. return item;
  10799. }
  10800. });
  10801. // 日期禁用
  10802. var disableBefore = true;
  10803. var disableAfter = true;
  10804. if (_this.startDate) {
  10805. // let dateCompBefore = this.dateCompare(this.startDate, fullDate)
  10806. // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
  10807. disableBefore = _this.dateCompare(_this.startDate, nowDate);
  10808. }
  10809. if (_this.endDate) {
  10810. // let dateCompAfter = this.dateCompare(fullDate, this.endDate)
  10811. // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
  10812. disableAfter = _this.dateCompare(nowDate, _this.endDate);
  10813. }
  10814. var multiples = _this.multipleStatus.data;
  10815. var checked = false;
  10816. var multiplesStatus = -1;
  10817. if (_this.range) {
  10818. if (multiples) {
  10819. multiplesStatus = multiples.findIndex(function (item) {
  10820. return _this.dateEqual(item, nowDate);
  10821. });
  10822. }
  10823. if (multiplesStatus !== -1) {
  10824. checked = true;
  10825. }
  10826. }
  10827. var data = {
  10828. fullDate: nowDate,
  10829. year: full.year,
  10830. date: i,
  10831. multiple: _this.range ? checked : false,
  10832. beforeMultiple: _this.dateEqual(_this.multipleStatus.before, nowDate),
  10833. afterMultiple: _this.dateEqual(_this.multipleStatus.after, nowDate),
  10834. month: full.month,
  10835. lunar: _this.getlunar(full.year, full.month, i),
  10836. disable: !(disableBefore && disableAfter),
  10837. isDay: isDay };
  10838. if (info) {
  10839. data.extraInfo = info;
  10840. }
  10841. dateArr.push(data);};for (var i = 1; i <= dateData; i++) {_loop(i);
  10842. }
  10843. return dateArr;
  10844. }
  10845. /**
  10846. * 获取下月天数
  10847. */ }, { key: "_getNextMonthDays", value: function _getNextMonthDays(
  10848. surplus, full) {
  10849. var dateArr = [];
  10850. for (var i = 1; i < surplus + 1; i++) {
  10851. dateArr.push({
  10852. date: i,
  10853. month: Number(full.month) + 1,
  10854. lunar: this.getlunar(full.year, Number(full.month) + 1, i),
  10855. disable: true });
  10856. }
  10857. return dateArr;
  10858. }
  10859. /**
  10860. * 获取当前日期详情
  10861. * @param {Object} date
  10862. */ }, { key: "getInfo", value: function getInfo(
  10863. date) {var _this2 = this;
  10864. if (!date) {
  10865. date = new Date();
  10866. }
  10867. var dateInfo = this.canlender.find(function (item) {return item.fullDate === _this2.getDate(date).fullDate;});
  10868. return dateInfo;
  10869. }
  10870. /**
  10871. * 比较时间大小
  10872. */ }, { key: "dateCompare", value: function dateCompare(
  10873. startDate, endDate) {
  10874. // 计算截止时间
  10875. startDate = new Date(startDate.replace('-', '/').replace('-', '/'));
  10876. // 计算详细项的截止时间
  10877. endDate = new Date(endDate.replace('-', '/').replace('-', '/'));
  10878. if (startDate <= endDate) {
  10879. return true;
  10880. } else {
  10881. return false;
  10882. }
  10883. }
  10884. /**
  10885. * 比较时间是否相等
  10886. */ }, { key: "dateEqual", value: function dateEqual(
  10887. before, after) {
  10888. // 计算截止时间
  10889. before = new Date(before.replace('-', '/').replace('-', '/'));
  10890. // 计算详细项的截止时间
  10891. after = new Date(after.replace('-', '/').replace('-', '/'));
  10892. if (before.getTime() - after.getTime() === 0) {
  10893. return true;
  10894. } else {
  10895. return false;
  10896. }
  10897. }
  10898. /**
  10899. * 获取日期范围内所有日期
  10900. * @param {Object} begin
  10901. * @param {Object} end
  10902. */ }, { key: "geDateAll", value: function geDateAll(
  10903. begin, end) {
  10904. var arr = [];
  10905. var ab = begin.split('-');
  10906. var ae = end.split('-');
  10907. var db = new Date();
  10908. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  10909. var de = new Date();
  10910. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  10911. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  10912. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  10913. for (var k = unixDb; k <= unixDe;) {
  10914. k = k + 24 * 60 * 60 * 1000;
  10915. arr.push(this.getDate(new Date(parseInt(k))).fullDate);
  10916. }
  10917. return arr;
  10918. }
  10919. /**
  10920. * 计算阴历日期显示
  10921. */ }, { key: "getlunar", value: function getlunar(
  10922. year, month, date) {
  10923. return _calendar.default.solar2lunar(year, month, date);
  10924. }
  10925. /**
  10926. * 设置打点
  10927. */ }, { key: "setSelectInfo", value: function setSelectInfo(
  10928. data, value) {
  10929. this.selected = value;
  10930. this._getWeek(data);
  10931. }
  10932. /**
  10933. * 获取多选状态
  10934. */ }, { key: "setMultiple", value: function setMultiple(
  10935. fullDate) {var _this$multipleStatus =
  10936. this.multipleStatus,before = _this$multipleStatus.before,after = _this$multipleStatus.after;
  10937. if (!this.range) return;
  10938. if (before && after) {
  10939. this.multipleStatus.before = '';
  10940. this.multipleStatus.after = '';
  10941. this.multipleStatus.data = [];
  10942. } else {
  10943. if (!before) {
  10944. this.multipleStatus.before = fullDate;
  10945. } else {
  10946. this.multipleStatus.after = fullDate;
  10947. if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  10948. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  10949. } else {
  10950. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  10951. }
  10952. }
  10953. }
  10954. this._getWeek(fullDate);
  10955. }
  10956. /**
  10957. * 获取每周数据
  10958. * @param {Object} dateData
  10959. */ }, { key: "_getWeek", value: function _getWeek(
  10960. dateData) {var _this$getDate =
  10961. this.getDate(dateData),fullDate = _this$getDate.fullDate,year = _this$getDate.year,month = _this$getDate.month,date = _this$getDate.date,day = _this$getDate.day;
  10962. var firstDay = new Date(year, month - 1, 1).getDay();
  10963. var currentDay = new Date(year, month, 0).getDate();
  10964. var dates = {
  10965. lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 上个月末尾几天
  10966. currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 本月天数
  10967. nextMonthDays: [], // 下个月开始几天
  10968. weeks: [] };
  10969. var canlender = [];
  10970. var surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length);
  10971. dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData));
  10972. canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays);
  10973. var weeks = {};
  10974. // 拼接数组 上个月开始几天 + 本月天数+ 下个月开始几天
  10975. for (var i = 0; i < canlender.length; i++) {
  10976. if (i % 7 === 0) {
  10977. weeks[parseInt(i / 7)] = new Array(7);
  10978. }
  10979. weeks[parseInt(i / 7)][i % 7] = canlender[i];
  10980. }
  10981. this.canlender = canlender;
  10982. this.weeks = weeks;
  10983. }
  10984. //静态方法
  10985. // static init(date) {
  10986. // if (!this.instance) {
  10987. // this.instance = new Calendar(date);
  10988. // }
  10989. // return this.instance;
  10990. // }
  10991. }]);return Calendar;}();var _default =
  10992. Calendar;exports.default = _default;
  10993. /***/ }),
  10994. /***/ 97:
  10995. /*!****************************************************************************************************!*\
  10996. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/calendar.js ***!
  10997. \****************************************************************************************************/
  10998. /*! no static exports found */
  10999. /***/ (function(module, exports, __webpack_require__) {
  11000. "use strict";
  11001. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  11002. * @1900-2100区间内的公历、农历互转
  11003. * @charset UTF-8
  11004. * @github https://github.com/jjonline/calendar.js
  11005. * @Author Jea杨(JJonline@JJonline.Cn)
  11006. * @Time 2014-7-21
  11007. * @Time 2016-8-13 Fixed 2033hex、Attribution Annals
  11008. * @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
  11009. * @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
  11010. * @Version 1.0.3
  11011. * @公历转农历:calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
  11012. * @农历转公历:calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
  11013. */
  11014. /* eslint-disable */
  11015. var calendar = {
  11016. /**
  11017. * 农历1900-2100的润大小信息表
  11018. * @Array Of Property
  11019. * @return Hex
  11020. */
  11021. lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909
  11022. 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919
  11023. 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929
  11024. 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939
  11025. 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949
  11026. 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959
  11027. 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969
  11028. 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979
  11029. 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989
  11030. 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999
  11031. 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009
  11032. 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019
  11033. 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029
  11034. 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039
  11035. 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049
  11036. /** Add By JJonline@JJonline.Cn**/
  11037. 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059
  11038. 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069
  11039. 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079
  11040. 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089
  11041. 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099
  11042. 0x0d520], // 2100
  11043. /**
  11044. * 公历每个月份的天数普通表
  11045. * @Array Of Property
  11046. * @return Number
  11047. */
  11048. solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
  11049. /**
  11050. * 天干地支之天干速查表
  11051. * @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
  11052. * @return Cn string
  11053. */
  11054. Gan: ["\u7532", "\u4E59", "\u4E19", "\u4E01", "\u620A", "\u5DF1", "\u5E9A", "\u8F9B", "\u58EC", "\u7678"],
  11055. /**
  11056. * 天干地支之地支速查表
  11057. * @Array Of Property
  11058. * @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
  11059. * @return Cn string
  11060. */
  11061. Zhi: ["\u5B50", "\u4E11", "\u5BC5", "\u536F", "\u8FB0", "\u5DF3", "\u5348", "\u672A", "\u7533", "\u9149", "\u620C", "\u4EA5"],
  11062. /**
  11063. * 天干地支之地支速查表<=>生肖
  11064. * @Array Of Property
  11065. * @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
  11066. * @return Cn string
  11067. */
  11068. Animals: ["\u9F20", "\u725B", "\u864E", "\u5154", "\u9F99", "\u86C7", "\u9A6C", "\u7F8A", "\u7334", "\u9E21", "\u72D7", "\u732A"],
  11069. /**
  11070. * 24节气速查表
  11071. * @Array Of Property
  11072. * @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
  11073. * @return Cn string
  11074. */
  11075. solarTerm: ["\u5C0F\u5BD2", "\u5927\u5BD2", "\u7ACB\u6625", "\u96E8\u6C34", "\u60CA\u86F0", "\u6625\u5206", "\u6E05\u660E", "\u8C37\u96E8", "\u7ACB\u590F", "\u5C0F\u6EE1", "\u8292\u79CD", "\u590F\u81F3", "\u5C0F\u6691", "\u5927\u6691", "\u7ACB\u79CB", "\u5904\u6691", "\u767D\u9732", "\u79CB\u5206", "\u5BD2\u9732", "\u971C\u964D", "\u7ACB\u51AC", "\u5C0F\u96EA", "\u5927\u96EA", "\u51AC\u81F3"],
  11076. /**
  11077. * 1900-2100各年的24节气日期速查表
  11078. * @Array Of Property
  11079. * @return 0x string For splice
  11080. */
  11081. sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f',
  11082. '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
  11083. '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa',
  11084. '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f',
  11085. 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f',
  11086. '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa',
  11087. '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2',
  11088. '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f',
  11089. '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e',
  11090. '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11091. '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722',
  11092. '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f',
  11093. '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
  11094. '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11095. '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722',
  11096. '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f',
  11097. '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
  11098. '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
  11099. '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722',
  11100. '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
  11101. '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11102. '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
  11103. '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722',
  11104. '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
  11105. '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11106. '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
  11107. '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722',
  11108. '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
  11109. '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
  11110. '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
  11111. '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
  11112. '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11113. '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
  11114. '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
  11115. '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
  11116. '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
  11117. '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
  11118. '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
  11119. '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721',
  11120. '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2',
  11121. '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
  11122. '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
  11123. '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd',
  11124. '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
  11125. '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
  11126. '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
  11127. '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd',
  11128. '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
  11129. '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
  11130. '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721',
  11131. '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5',
  11132. '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722',
  11133. '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
  11134. '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
  11135. '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35',
  11136. '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
  11137. '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721',
  11138. '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd',
  11139. '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35',
  11140. '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
  11141. '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721',
  11142. '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5',
  11143. '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35',
  11144. '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
  11145. '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
  11146. '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35',
  11147. '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
  11148. /**
  11149. * 数字转中文速查表
  11150. * @Array Of Property
  11151. * @trans ['日','一','二','三','四','五','六','七','八','九','十']
  11152. * @return Cn string
  11153. */
  11154. nStr1: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341"],
  11155. /**
  11156. * 日期转农历称呼速查表
  11157. * @Array Of Property
  11158. * @trans ['初','十','廿','卅']
  11159. * @return Cn string
  11160. */
  11161. nStr2: ["\u521D", "\u5341", "\u5EFF", "\u5345"],
  11162. /**
  11163. * 月份转农历称呼速查表
  11164. * @Array Of Property
  11165. * @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
  11166. * @return Cn string
  11167. */
  11168. nStr3: ["\u6B63", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D", "\u5341", "\u51AC", "\u814A"],
  11169. /**
  11170. * 返回农历y年一整年的总天数
  11171. * @param lunar Year
  11172. * @return Number
  11173. * @eg:var count = calendar.lYearDays(1987) ;//count=387
  11174. */
  11175. lYearDays: function lYearDays(y) {
  11176. var i;var sum = 348;
  11177. for (i = 0x8000; i > 0x8; i >>= 1) {sum += this.lunarInfo[y - 1900] & i ? 1 : 0;}
  11178. return sum + this.leapDays(y);
  11179. },
  11180. /**
  11181. * 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
  11182. * @param lunar Year
  11183. * @return Number (0-12)
  11184. * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
  11185. */
  11186. leapMonth: function leapMonth(y) {// 闰字编码 \u95f0
  11187. return this.lunarInfo[y - 1900] & 0xf;
  11188. },
  11189. /**
  11190. * 返回农历y年闰月的天数 若该年没有闰月则返回0
  11191. * @param lunar Year
  11192. * @return Number (0、29、30)
  11193. * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
  11194. */
  11195. leapDays: function leapDays(y) {
  11196. if (this.leapMonth(y)) {
  11197. return this.lunarInfo[y - 1900] & 0x10000 ? 30 : 29;
  11198. }
  11199. return 0;
  11200. },
  11201. /**
  11202. * 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
  11203. * @param lunar Year
  11204. * @return Number (-1、29、30)
  11205. * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
  11206. */
  11207. monthDays: function monthDays(y, m) {
  11208. if (m > 12 || m < 1) {return -1;} // 月份参数从1至12,参数错误返回-1
  11209. return this.lunarInfo[y - 1900] & 0x10000 >> m ? 30 : 29;
  11210. },
  11211. /**
  11212. * 返回公历(!)y年m月的天数
  11213. * @param solar Year
  11214. * @return Number (-1、28、29、30、31)
  11215. * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
  11216. */
  11217. solarDays: function solarDays(y, m) {
  11218. if (m > 12 || m < 1) {return -1;} // 若参数错误 返回-1
  11219. var ms = m - 1;
  11220. if (ms == 1) {// 2月份的闰平规律测算后确认返回28或29
  11221. return y % 4 == 0 && y % 100 != 0 || y % 400 == 0 ? 29 : 28;
  11222. } else {
  11223. return this.solarMonth[ms];
  11224. }
  11225. },
  11226. /**
  11227. * 农历年份转换为干支纪年
  11228. * @param lYear 农历年的年份数
  11229. * @return Cn string
  11230. */
  11231. toGanZhiYear: function toGanZhiYear(lYear) {
  11232. var ganKey = (lYear - 3) % 10;
  11233. var zhiKey = (lYear - 3) % 12;
  11234. if (ganKey == 0) ganKey = 10; // 如果余数为0则为最后一个天干
  11235. if (zhiKey == 0) zhiKey = 12; // 如果余数为0则为最后一个地支
  11236. return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1];
  11237. },
  11238. /**
  11239. * 公历月、日判断所属星座
  11240. * @param cMonth [description]
  11241. * @param cDay [description]
  11242. * @return Cn string
  11243. */
  11244. toAstro: function toAstro(cMonth, cDay) {
  11245. var s = "\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF";
  11246. var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22];
  11247. return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + "\u5EA7"; // 座
  11248. },
  11249. /**
  11250. * 传入offset偏移量返回干支
  11251. * @param offset 相对甲子的偏移量
  11252. * @return Cn string
  11253. */
  11254. toGanZhi: function toGanZhi(offset) {
  11255. return this.Gan[offset % 10] + this.Zhi[offset % 12];
  11256. },
  11257. /**
  11258. * 传入公历(!)y年获得该年第n个节气的公历日期
  11259. * @param y公历年(1900-2100);n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
  11260. * @return day Number
  11261. * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
  11262. */
  11263. getTerm: function getTerm(y, n) {
  11264. if (y < 1900 || y > 2100) {return -1;}
  11265. if (n < 1 || n > 24) {return -1;}
  11266. var _table = this.sTermInfo[y - 1900];
  11267. var _info = [
  11268. parseInt('0x' + _table.substr(0, 5)).toString(),
  11269. parseInt('0x' + _table.substr(5, 5)).toString(),
  11270. parseInt('0x' + _table.substr(10, 5)).toString(),
  11271. parseInt('0x' + _table.substr(15, 5)).toString(),
  11272. parseInt('0x' + _table.substr(20, 5)).toString(),
  11273. parseInt('0x' + _table.substr(25, 5)).toString()];
  11274. var _calday = [
  11275. _info[0].substr(0, 1),
  11276. _info[0].substr(1, 2),
  11277. _info[0].substr(3, 1),
  11278. _info[0].substr(4, 2),
  11279. _info[1].substr(0, 1),
  11280. _info[1].substr(1, 2),
  11281. _info[1].substr(3, 1),
  11282. _info[1].substr(4, 2),
  11283. _info[2].substr(0, 1),
  11284. _info[2].substr(1, 2),
  11285. _info[2].substr(3, 1),
  11286. _info[2].substr(4, 2),
  11287. _info[3].substr(0, 1),
  11288. _info[3].substr(1, 2),
  11289. _info[3].substr(3, 1),
  11290. _info[3].substr(4, 2),
  11291. _info[4].substr(0, 1),
  11292. _info[4].substr(1, 2),
  11293. _info[4].substr(3, 1),
  11294. _info[4].substr(4, 2),
  11295. _info[5].substr(0, 1),
  11296. _info[5].substr(1, 2),
  11297. _info[5].substr(3, 1),
  11298. _info[5].substr(4, 2)];
  11299. return parseInt(_calday[n - 1]);
  11300. },
  11301. /**
  11302. * 传入农历数字月份返回汉语通俗表示法
  11303. * @param lunar month
  11304. * @return Cn string
  11305. * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
  11306. */
  11307. toChinaMonth: function toChinaMonth(m) {// 月 => \u6708
  11308. if (m > 12 || m < 1) {return -1;} // 若参数错误 返回-1
  11309. var s = this.nStr3[m - 1];
  11310. s += "\u6708"; // 加上月字
  11311. return s;
  11312. },
  11313. /**
  11314. * 传入农历日期数字返回汉字表示法
  11315. * @param lunar day
  11316. * @return Cn string
  11317. * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
  11318. */
  11319. toChinaDay: function toChinaDay(d) {// 日 => \u65e5
  11320. var s;
  11321. switch (d) {
  11322. case 10:
  11323. s = "\u521D\u5341";break;
  11324. case 20:
  11325. s = "\u4E8C\u5341";break;
  11326. break;
  11327. case 30:
  11328. s = "\u4E09\u5341";break;
  11329. break;
  11330. default:
  11331. s = this.nStr2[Math.floor(d / 10)];
  11332. s += this.nStr1[d % 10];}
  11333. return s;
  11334. },
  11335. /**
  11336. * 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
  11337. * @param y year
  11338. * @return Cn string
  11339. * @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
  11340. */
  11341. getAnimal: function getAnimal(y) {
  11342. return this.Animals[(y - 4) % 12];
  11343. },
  11344. /**
  11345. * 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
  11346. * @param y solar year
  11347. * @param m solar month
  11348. * @param d solar day
  11349. * @return JSON object
  11350. * @eg:console.log(calendar.solar2lunar(1987,11,01));
  11351. */
  11352. solar2lunar: function solar2lunar(y, m, d) {// 参数区间1900.1.31~2100.12.31
  11353. // 年份限定、上限
  11354. if (y < 1900 || y > 2100) {
  11355. return -1; // undefined转换为数字变为NaN
  11356. }
  11357. // 公历传参最下限
  11358. if (y == 1900 && m == 1 && d < 31) {
  11359. return -1;
  11360. }
  11361. // 未传参 获得当天
  11362. if (!y) {
  11363. var objDate = new Date();
  11364. } else {
  11365. var objDate = new Date(y, parseInt(m) - 1, d);
  11366. }
  11367. var i;var leap = 0;var temp = 0;
  11368. // 修正ymd参数
  11369. var y = objDate.getFullYear();
  11370. var m = objDate.getMonth() + 1;
  11371. var d = objDate.getDate();
  11372. var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000;
  11373. for (i = 1900; i < 2101 && offset > 0; i++) {
  11374. temp = this.lYearDays(i);
  11375. offset -= temp;
  11376. }
  11377. if (offset < 0) {
  11378. offset += temp;i--;
  11379. }
  11380. // 是否今天
  11381. var isTodayObj = new Date();
  11382. var isToday = false;
  11383. if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
  11384. isToday = true;
  11385. }
  11386. // 星期几
  11387. var nWeek = objDate.getDay();
  11388. var cWeek = this.nStr1[nWeek];
  11389. // 数字表示周几顺应天朝周一开始的惯例
  11390. if (nWeek == 0) {
  11391. nWeek = 7;
  11392. }
  11393. // 农历年
  11394. var year = i;
  11395. var leap = this.leapMonth(i); // 闰哪个月
  11396. var isLeap = false;
  11397. // 效验闰月
  11398. for (i = 1; i < 13 && offset > 0; i++) {
  11399. // 闰月
  11400. if (leap > 0 && i == leap + 1 && isLeap == false) {
  11401. --i;
  11402. isLeap = true;temp = this.leapDays(year); // 计算农历闰月天数
  11403. } else {
  11404. temp = this.monthDays(year, i); // 计算农历普通月天数
  11405. }
  11406. // 解除闰月
  11407. if (isLeap == true && i == leap + 1) {isLeap = false;}
  11408. offset -= temp;
  11409. }
  11410. // 闰月导致数组下标重叠取反
  11411. if (offset == 0 && leap > 0 && i == leap + 1) {
  11412. if (isLeap) {
  11413. isLeap = false;
  11414. } else {
  11415. isLeap = true;--i;
  11416. }
  11417. }
  11418. if (offset < 0) {
  11419. offset += temp;--i;
  11420. }
  11421. // 农历月
  11422. var month = i;
  11423. // 农历日
  11424. var day = offset + 1;
  11425. // 天干地支处理
  11426. var sm = m - 1;
  11427. var gzY = this.toGanZhiYear(year);
  11428. // 当月的两个节气
  11429. // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
  11430. var firstNode = this.getTerm(y, m * 2 - 1); // 返回当月「节」为几日开始
  11431. var secondNode = this.getTerm(y, m * 2); // 返回当月「节」为几日开始
  11432. // 依据12节气修正干支月
  11433. var gzM = this.toGanZhi((y - 1900) * 12 + m + 11);
  11434. if (d >= firstNode) {
  11435. gzM = this.toGanZhi((y - 1900) * 12 + m + 12);
  11436. }
  11437. // 传入的日期的节气与否
  11438. var isTerm = false;
  11439. var Term = null;
  11440. if (firstNode == d) {
  11441. isTerm = true;
  11442. Term = this.solarTerm[m * 2 - 2];
  11443. }
  11444. if (secondNode == d) {
  11445. isTerm = true;
  11446. Term = this.solarTerm[m * 2 - 1];
  11447. }
  11448. // 日柱 当月一日与 1900/1/1 相差天数
  11449. var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10;
  11450. var gzD = this.toGanZhi(dayCyclical + d - 1);
  11451. // 该日期所属的星座
  11452. var astro = this.toAstro(m, d);
  11453. return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? "\u95F0" : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': "\u661F\u671F" + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro };
  11454. },
  11455. /**
  11456. * 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
  11457. * @param y lunar year
  11458. * @param m lunar month
  11459. * @param d lunar day
  11460. * @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
  11461. * @return JSON object
  11462. * @eg:console.log(calendar.lunar2solar(1987,9,10));
  11463. */
  11464. lunar2solar: function lunar2solar(y, m, d, isLeapMonth) {// 参数区间1900.1.31~2100.12.1
  11465. var isLeapMonth = !!isLeapMonth;
  11466. var leapOffset = 0;
  11467. var leapMonth = this.leapMonth(y);
  11468. var leapDay = this.leapDays(y);
  11469. if (isLeapMonth && leapMonth != m) {return -1;} // 传参要求计算该闰月公历 但该年得出的闰月与传参的月份并不同
  11470. if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) {return -1;} // 超出了最大极限值
  11471. var day = this.monthDays(y, m);
  11472. var _day = day;
  11473. // bugFix 2016-9-25
  11474. // if month is leap, _day use leapDays method
  11475. if (isLeapMonth) {
  11476. _day = this.leapDays(y, m);
  11477. }
  11478. if (y < 1900 || y > 2100 || d > _day) {return -1;} // 参数合法性效验
  11479. // 计算农历的时间差
  11480. var offset = 0;
  11481. for (var i = 1900; i < y; i++) {
  11482. offset += this.lYearDays(i);
  11483. }
  11484. var leap = 0;var isAdd = false;
  11485. for (var i = 1; i < m; i++) {
  11486. leap = this.leapMonth(y);
  11487. if (!isAdd) {// 处理闰月
  11488. if (leap <= i && leap > 0) {
  11489. offset += this.leapDays(y);isAdd = true;
  11490. }
  11491. }
  11492. offset += this.monthDays(y, i);
  11493. }
  11494. // 转换闰月农历 需补充该年闰月的前一个月的时差
  11495. if (isLeapMonth) {offset += day;}
  11496. // 1900年农历正月一日的公历时间为1900年1月30日0时0分0秒(该时间也是本农历的最开始起始点)
  11497. var stmap = Date.UTC(1900, 1, 30, 0, 0, 0);
  11498. var calObj = new Date((offset + d - 31) * 86400000 + stmap);
  11499. var cY = calObj.getUTCFullYear();
  11500. var cM = calObj.getUTCMonth() + 1;
  11501. var cD = calObj.getUTCDate();
  11502. return this.solar2lunar(cY, cM, cD);
  11503. } };var _default =
  11504. calendar;exports.default = _default;
  11505. /***/ }),
  11506. /***/ 98:
  11507. /*!******************************************************************************************************!*\
  11508. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js ***!
  11509. \******************************************************************************************************/
  11510. /*! no static exports found */
  11511. /***/ (function(module, exports, __webpack_require__) {
  11512. "use strict";
  11513. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 99));
  11514. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 100));
  11515. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 101));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  11516. {
  11517. en: _en.default,
  11518. 'zh-Hans': _zhHans.default,
  11519. 'zh-Hant': _zhHant.default };exports.default = _default;
  11520. /***/ }),
  11521. /***/ 99:
  11522. /*!*****************************************************************************************************!*\
  11523. !*** X:/sampling最新/sampling/sampling/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json ***!
  11524. \*****************************************************************************************************/
  11525. /*! exports provided: uni-calender.ok, uni-calender.cancel, uni-calender.today, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, default */
  11526. /***/ (function(module) {
  11527. module.exports = JSON.parse("{\"uni-calender.ok\":\"ok\",\"uni-calender.cancel\":\"cancel\",\"uni-calender.today\":\"today\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\"}");
  11528. /***/ })
  11529. }]);
  11530. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map