| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374 |
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "./";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = 0);
- /******/ })
- /************************************************************************/
- /******/ ([
- /* 0 */
- /*!**************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/main.js ***!
- \**************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__(/*! uni-pages?{"type":"view"} */ 1);
- // @ts-nocheck
- function initView() {
- function injectStyles(context) {
- var style0 = __webpack_require__(/*! ./App.vue?vue&type=style&index=0&lang=scss& */ 67);
- if (style0.__inject__) style0.__inject__(context);
- }
- typeof injectStyles === 'function' && injectStyles();
- UniViewJSBridge.publishHandler('webviewReady');
- }
- if (typeof plus !== 'undefined') {
- initView();
- } else {
- document.addEventListener('plusready', initView);
- }
- /***/ }),
- /* 1 */
- /*!*********************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages.json?{"type":"view"} ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
- Promise.prototype.finally = function (callback) {
- var promise = this.constructor;
- return this.then(function (value) {
- return promise.resolve(callback()).then(function () {
- return value;
- });
- }, function (reason) {
- return promise.resolve(callback()).then(function () {
- throw reason;
- });
- });
- };
- }
- if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
- var global = uni.requireGlobal();
- ArrayBuffer = global.ArrayBuffer;
- Int8Array = global.Int8Array;
- Uint8Array = global.Uint8Array;
- Uint8ClampedArray = global.Uint8ClampedArray;
- Int16Array = global.Int16Array;
- Uint16Array = global.Uint16Array;
- Int32Array = global.Int32Array;
- Uint32Array = global.Uint32Array;
- Float32Array = global.Float32Array;
- Float64Array = global.Float64Array;
- BigInt64Array = global.BigInt64Array;
- BigUint64Array = global.BigUint64Array;
- }
- window.__uniConfig = {
- "window": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "小飞龙定向助手",
- "navigationBarBackgroundColor": "#1888ff",
- "backgroundColor": "#F8F8F8",
- "background": "#efeff4"
- },
- "darkmode": false
- };
- if (uni.restoreGlobal) {
- uni.restoreGlobal(weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
- }
- __definePage('pages/AO/mapShow', function () {
- return Vue.extend(__webpack_require__(/*! pages/AO/mapShow.vue?mpType=page */ 2).default);
- });
- __definePage('pages/nfc/nfc', function () {
- return Vue.extend(__webpack_require__(/*! pages/nfc/nfc.vue?mpType=page */ 34).default);
- });
- __definePage('pages/verify/verify', function () {
- return Vue.extend(__webpack_require__(/*! pages/verify/verify.vue?mpType=page */ 59).default);
- });
- /***/ }),
- /* 2 */
- /*!***************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?mpType=page ***!
- \***************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mapShow.vue?vue&type=template&id=7c4266a1&scoped=true&filter-modules=eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19&mpType=page */ 3);
- /* harmony import */ var _mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mapShow.vue?vue&type=renderjs&module=leaflet&lang=js&mpType=page */ 5);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page */ 30);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- _mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__["default"].__module = 'leaflet'
- var script = {}
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- script,
- _mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"],
- _mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "7c4266a1",
- null,
- false,
- _mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"],
- _mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__["default"]
- )
- component.options.__file = "pages/AO/mapShow.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 3 */
- /*!*************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=template&id=7c4266a1&scoped=true&filter-modules=eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19&mpType=page ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./mapShow.vue?vue&type=template&id=7c4266a1&scoped=true&filter-modules=eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19&mpType=page */ 4);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_template_id_7c4266a1_scoped_true_filter_modules_eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 4 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=template&id=7c4266a1&scoped=true&filter-modules=eyJsZWFmbGV0Ijp7InR5cGUiOiJyZW5kZXJqcyIsImNvbnRlbnQiOiIiLCJzdGFydCI6MzkyLCJhdHRycyI6eyJtb2R1bGUiOiJsZWFmbGV0IiwibGFuZyI6ImpzIn0sImVuZCI6NDMwOX19&mpType=page ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- try {
- components = {
- uniPopup:
- __webpack_require__(/*! @/uni_modules/uni-popup/components/uni-popup/uni-popup.vue */ 76)
- .default,
- }
- } catch (e) {
- if (
- e.message.indexOf("Cannot find module") !== -1 &&
- e.message.indexOf(".vue") !== -1
- ) {
- console.error(e.message)
- console.error("1. 排查组件名称拼写是否正确")
- console.error(
- "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
- )
- console.error(
- "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
- )
- } else {
- throw e
- }
- }
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "uni-view",
- { attrs: { _i: 0 } },
- [
- _c("uni-view", {
- staticClass: _vm._$g(1, "sc"),
- attrs: { id: "map", _i: 1 },
- }),
- _c(
- "uni-view",
- { attrs: { _i: 2 } },
- [
- _c(
- "uni-popup",
- {
- ref: "popup",
- attrs: { _i: 3 },
- on: {
- change: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [
- _c(
- "uni-view",
- {
- staticClass: _vm._$g(4, "sc"),
- class: _vm._$g(4, "c"),
- attrs: { _i: 4 },
- },
- [
- _c(
- "v-uni-text",
- { staticClass: _vm._$g(5, "sc"), attrs: { _i: 5 } },
- [_vm._v("popup 内容")]
- ),
- ],
- 1
- ),
- ],
- 1
- ),
- ],
- 1
- ),
- ],
- 1
- )
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 5 */
- /*!********************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=renderjs&module=leaflet&lang=js&mpType=page ***!
- \********************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./mapShow.vue?vue&type=renderjs&module=leaflet&lang=js&mpType=page */ 6);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_renderjs_module_leaflet_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 6 */
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=renderjs&module=leaflet&lang=js&mpType=page ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(__f__) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 8);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 9));
- var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 12));
- __webpack_require__(/*! leaflet/dist/leaflet.css */ 13);
- var _base_pb = __webpack_require__(/*! @/grpc/base_pb.js */ 22);
- var _leafletHelper = _interopRequireDefault(__webpack_require__(/*! @/utils/map/leafletHelper */ 26));
- // import mapHelper from '@/utils/mapHelper'
- var _default = {
- components: {},
- data: function data() {
- return {
- map: null,
- checkPoints: [{
- cp_id: 1,
- // 检查点ID
- serial_num: 1,
- // 序号
- c_type: 1,
- // 检查点类型 1:起始点 2:途经点 3:结束点 4:其他
- category: 1,
- // 检查点种类 1:实体点 2:虚拟点 3:VR点
- latitude: 36.67205,
- longitude: 117.126945
- }, {
- cp_id: 2,
- serial_num: 2,
- c_type: 1,
- category: 1,
- latitude: 36.670871,
- longitude: 117.12725
- }, {
- cp_id: 3,
- serial_num: 3,
- c_type: 1,
- category: 1,
- latitude: 36.671723,
- longitude: 117.128565
- }, {
- cp_id: 4,
- serial_num: 4,
- c_type: 1,
- category: 1,
- latitude: 36.672704,
- longitude: 117.128415
- }, {
- cp_id: 5,
- serial_num: 5,
- c_type: 1,
- category: 1,
- latitude: 36.672003,
- longitude: 117.129305
- }, {
- cp_id: 6,
- serial_num: 6,
- c_type: 1,
- category: 1,
- latitude: 36.672416,
- longitude: 117.127116
- }, {
- cp_id: 7,
- serial_num: 7,
- c_type: 1,
- category: 1,
- latitude: 36.671689,
- longitude: 117.127798
- }, {
- cp_id: 8,
- serial_num: 8,
- c_type: 1,
- category: 1,
- latitude: 36.67094,
- longitude: 117.128522
- }],
- players: [{
- id: 1,
- nickName: '小鱼儿',
- phone: '13105310001'
- }, {
- id: 2,
- nickName: '花无缺',
- phone: '13105310002'
- }, {
- id: 3,
- nickName: '李大嘴',
- phone: '13105310003'
- }],
- players_position: [{
- id: 1,
- lat: 36.671357,
- lng: 117.127925
- }, {
- id: 2,
- lat: 36.671657,
- lng: 117.125925
- }, {
- id: 3,
- lat: 36.672257,
- lng: 117.128925
- }
- // {
- // id: 4,
- // lat: 36.672267,
- // lng: 117.128935
- // }
- ],
- shopId: 0,
- mapUrl: null,
- mapInfo: {},
- shopList: [],
- controlInfoList: []
- };
- },
- computed: {},
- mounted: function mounted() {
- this.handleDrawMap();
- },
- onLoad: function onLoad() {
- // this.getShopList()
- // this.getShopMap(8)
- },
- beforeDestroy: function beforeDestroy() {
- // console.log("beforeDestroy")
- _leafletHelper.default.free();
- },
- methods: {
- getShopMap: function getShopMap(shopId) {
- var _this = this;
- return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
- var request;
- return _regenerator.default.wrap(function _callee2$(_context2) {
- while (1) {
- switch (_context2.prev = _context2.next) {
- case 0:
- try {
- // 创建请求参数并赋值
- request = new _base_pb.IdRequest();
- request.setId(shopId);
- // 调用客户端相应的grpc方法,发送grpc请求,并接受后台发送回来的返回值
- _this.$client.assMapInfoDetail(request, {}, /*#__PURE__*/function () {
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(err, response) {
- var res;
- return _regenerator.default.wrap(function _callee$(_context) {
- while (1) {
- switch (_context.prev = _context.next) {
- case 0:
- if (err) {
- __f__("log", "[assMapInfoDetail] err: code = ".concat(err.code) + ", message = \"".concat(err.message, "\""), " at pages/AO/mapShow.vue:145");
- } else {
- res = response.toObject();
- __f__("log", '[assMapInfoDetail]', res, " at pages/AO/mapShow.vue:149");
- _this.mapInfo = res;
- // await mapHelper.handleMapInfo(this, this.mapInfo)
- _this.handleDrawMap();
- }
- case 1:
- case "end":
- return _context.stop();
- }
- }
- }, _callee);
- }));
- return function (_x, _x2) {
- return _ref.apply(this, arguments);
- };
- }());
- } catch (e) {
- __f__("log", '[getShopMap] err', e, " at pages/AO/mapShow.vue:157");
- }
- case 1:
- case "end":
- return _context2.stop();
- }
- }
- }, _callee2);
- }))();
- },
- handleDrawMap: function handleDrawMap() {
- _leafletHelper.default.init('map', [36.67175772119628, 117.12792580603369], 17);
- _leafletHelper.default.global.setCheckPoints(this.checkPoints);
- _leafletHelper.default.global.setPlayers(this.players);
- _leafletHelper.default.global.setPlayersPosition(this.players_position);
- _leafletHelper.default.addMapLayer(8);
- _leafletHelper.default.checkPoint.drawAllCheckPoints();
- _leafletHelper.default.checkPoint.drawPath();
- // leafletHelper.checkPoint.test()
- // leafletHelper.player.drawAllPlayers()
- // leafletHelper.player.drawOneTrail(1, 10000, true)
- // leafletHelper.player.drawOneTrail(2, 0, false)
- // leafletHelper.player.drawAllTrails(5000)
- }
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)["default"]))
- /***/ }),
- /* 7 */
- /*!*********************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js ***!
- \*********************************************************************/
- /*! exports provided: log, default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return formatLog; });
- function typof (v) {
- var s = Object.prototype.toString.call(v)
- return s.substring(8, s.length - 1)
- }
- function isDebugMode () {
- /* eslint-disable no-undef */
- return typeof __channelId__ === 'string' && __channelId__
- }
- function jsonStringifyReplacer (k, p) {
- switch (typof(p)) {
- case 'Function':
- return 'function() { [native code] }'
- default :
- return p
- }
- }
- function log (type) {
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key]
- }
- console[type].apply(console, args)
- }
- function formatLog () {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key]
- }
- var type = args.shift()
- if (isDebugMode()) {
- args.push(args.pop().replace('at ', 'uni-app:///'))
- return console[type].apply(console, args)
- }
- var msgs = args.map(function (v) {
- var type = Object.prototype.toString.call(v).toLowerCase()
- if (type === '[object object]' || type === '[object array]') {
- try {
- v = '---BEGIN:JSON---' + JSON.stringify(v, jsonStringifyReplacer) + '---END:JSON---'
- } catch (e) {
- v = type
- }
- } else {
- if (v === null) {
- v = '---NULL---'
- } else if (v === undefined) {
- v = '---UNDEFINED---'
- } else {
- var vType = typof(v).toUpperCase()
- if (vType === 'NUMBER' || vType === 'BOOLEAN') {
- v = '---BEGIN:' + vType + '---' + v + '---END:' + vType + '---'
- } else {
- v = String(v)
- }
- }
- }
- return v
- })
- var msg = ''
- if (msgs.length > 1) {
- var lastMsg = msgs.pop()
- msg = msgs.join('---COMMA---')
- if (lastMsg.indexOf(' at ') === 0) {
- msg += lastMsg
- } else {
- msg += '---COMMA---' + lastMsg
- }
- } else {
- msg = msgs[0]
- }
- console[type](msg)
- }
- /***/ }),
- /* 8 */
- /*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
- }
- module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /* 9 */
- /*!**********************************************************!*\
- !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 10);
- // TODO(Babel 8): Remove this file.
- var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ 11)();
- module.exports = runtime;
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
- try {
- regeneratorRuntime = runtime;
- } catch (accidentalStrictMode) {
- if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) === "object") {
- globalThis.regeneratorRuntime = runtime;
- } else {
- Function("r", "regeneratorRuntime = r")(runtime);
- }
- }
- /***/ }),
- /* 10 */
- /*!*******************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
- \*******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function _typeof(obj) {
- "@babel/helpers - typeof";
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
- }
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /* 11 */
- /*!*******************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
- \*******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- var _typeof = __webpack_require__(/*! ./typeof.js */ 10)["default"];
- function _regeneratorRuntime() {
- "use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
- return exports;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- var exports = {},
- Op = Object.prototype,
- hasOwn = Op.hasOwnProperty,
- defineProperty = Object.defineProperty || function (obj, key, desc) {
- obj[key] = desc.value;
- },
- $Symbol = "function" == typeof Symbol ? Symbol : {},
- iteratorSymbol = $Symbol.iterator || "@@iterator",
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
- function define(obj, key, value) {
- return Object.defineProperty(obj, key, {
- value: value,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }), obj[key];
- }
- try {
- define({}, "");
- } catch (err) {
- define = function define(obj, key, value) {
- return obj[key] = value;
- };
- }
- function wrap(innerFn, outerFn, self, tryLocsList) {
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
- generator = Object.create(protoGenerator.prototype),
- context = new Context(tryLocsList || []);
- return defineProperty(generator, "_invoke", {
- value: makeInvokeMethod(innerFn, self, context)
- }), generator;
- }
- function tryCatch(fn, obj, arg) {
- try {
- return {
- type: "normal",
- arg: fn.call(obj, arg)
- };
- } catch (err) {
- return {
- type: "throw",
- arg: err
- };
- }
- }
- exports.wrap = wrap;
- var ContinueSentinel = {};
- function Generator() {}
- function GeneratorFunction() {}
- function GeneratorFunctionPrototype() {}
- var IteratorPrototype = {};
- define(IteratorPrototype, iteratorSymbol, function () {
- return this;
- });
- var getProto = Object.getPrototypeOf,
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
- function defineIteratorMethods(prototype) {
- ["next", "throw", "return"].forEach(function (method) {
- define(prototype, method, function (arg) {
- return this._invoke(method, arg);
- });
- });
- }
- function AsyncIterator(generator, PromiseImpl) {
- function invoke(method, arg, resolve, reject) {
- var record = tryCatch(generator[method], generator, arg);
- if ("throw" !== record.type) {
- var result = record.arg,
- value = result.value;
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
- invoke("next", value, resolve, reject);
- }, function (err) {
- invoke("throw", err, resolve, reject);
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
- result.value = unwrapped, resolve(result);
- }, function (error) {
- return invoke("throw", error, resolve, reject);
- });
- }
- reject(record.arg);
- }
- var previousPromise;
- defineProperty(this, "_invoke", {
- value: function value(method, arg) {
- function callInvokeWithMethodAndArg() {
- return new PromiseImpl(function (resolve, reject) {
- invoke(method, arg, resolve, reject);
- });
- }
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
- }
- });
- }
- function makeInvokeMethod(innerFn, self, context) {
- var state = "suspendedStart";
- return function (method, arg) {
- if ("executing" === state) throw new Error("Generator is already running");
- if ("completed" === state) {
- if ("throw" === method) throw arg;
- return doneResult();
- }
- for (context.method = method, context.arg = arg;;) {
- var delegate = context.delegate;
- if (delegate) {
- var delegateResult = maybeInvokeDelegate(delegate, context);
- if (delegateResult) {
- if (delegateResult === ContinueSentinel) continue;
- return delegateResult;
- }
- }
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
- if ("suspendedStart" === state) throw state = "completed", context.arg;
- context.dispatchException(context.arg);
- } else "return" === context.method && context.abrupt("return", context.arg);
- state = "executing";
- var record = tryCatch(innerFn, self, context);
- if ("normal" === record.type) {
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
- return {
- value: record.arg,
- done: context.done
- };
- }
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
- }
- };
- }
- function maybeInvokeDelegate(delegate, context) {
- var methodName = context.method,
- method = delegate.iterator[methodName];
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
- var record = tryCatch(method, delegate.iterator, context.arg);
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
- var info = record.arg;
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
- }
- function pushTryEntry(locs) {
- var entry = {
- tryLoc: locs[0]
- };
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
- }
- function resetTryEntry(entry) {
- var record = entry.completion || {};
- record.type = "normal", delete record.arg, entry.completion = record;
- }
- function Context(tryLocsList) {
- this.tryEntries = [{
- tryLoc: "root"
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
- }
- function values(iterable) {
- if (iterable) {
- var iteratorMethod = iterable[iteratorSymbol];
- if (iteratorMethod) return iteratorMethod.call(iterable);
- if ("function" == typeof iterable.next) return iterable;
- if (!isNaN(iterable.length)) {
- var i = -1,
- next = function next() {
- for (; ++i < iterable.length;) {
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
- }
- return next.value = undefined, next.done = !0, next;
- };
- return next.next = next;
- }
- }
- return {
- next: doneResult
- };
- }
- function doneResult() {
- return {
- value: undefined,
- done: !0
- };
- }
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
- value: GeneratorFunctionPrototype,
- configurable: !0
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
- value: GeneratorFunction,
- configurable: !0
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
- var ctor = "function" == typeof genFun && genFun.constructor;
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
- }, exports.mark = function (genFun) {
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
- }, exports.awrap = function (arg) {
- return {
- __await: arg
- };
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
- return this;
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
- void 0 === PromiseImpl && (PromiseImpl = Promise);
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
- return result.done ? result.value : iter.next();
- });
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
- return this;
- }), define(Gp, "toString", function () {
- return "[object Generator]";
- }), exports.keys = function (val) {
- var object = Object(val),
- keys = [];
- for (var key in object) {
- keys.push(key);
- }
- return keys.reverse(), function next() {
- for (; keys.length;) {
- var key = keys.pop();
- if (key in object) return next.value = key, next.done = !1, next;
- }
- return next.done = !0, next;
- };
- }, exports.values = values, Context.prototype = {
- constructor: Context,
- reset: function reset(skipTempReset) {
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
- }
- },
- stop: function stop() {
- this.done = !0;
- var rootRecord = this.tryEntries[0].completion;
- if ("throw" === rootRecord.type) throw rootRecord.arg;
- return this.rval;
- },
- dispatchException: function dispatchException(exception) {
- if (this.done) throw exception;
- var context = this;
- function handle(loc, caught) {
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
- }
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
- var entry = this.tryEntries[i],
- record = entry.completion;
- if ("root" === entry.tryLoc) return handle("end");
- if (entry.tryLoc <= this.prev) {
- var hasCatch = hasOwn.call(entry, "catchLoc"),
- hasFinally = hasOwn.call(entry, "finallyLoc");
- if (hasCatch && hasFinally) {
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
- } else if (hasCatch) {
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
- } else {
- if (!hasFinally) throw new Error("try statement without catch or finally");
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
- }
- }
- }
- },
- abrupt: function abrupt(type, arg) {
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
- var entry = this.tryEntries[i];
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
- var finallyEntry = entry;
- break;
- }
- }
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
- var record = finallyEntry ? finallyEntry.completion : {};
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
- },
- complete: function complete(record, afterLoc) {
- if ("throw" === record.type) throw record.arg;
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
- },
- finish: function finish(finallyLoc) {
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
- var entry = this.tryEntries[i];
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
- }
- },
- "catch": function _catch(tryLoc) {
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
- var entry = this.tryEntries[i];
- if (entry.tryLoc === tryLoc) {
- var record = entry.completion;
- if ("throw" === record.type) {
- var thrown = record.arg;
- resetTryEntry(entry);
- }
- return thrown;
- }
- }
- throw new Error("illegal catch attempt");
- },
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
- return this.delegate = {
- iterator: values(iterable),
- resultName: resultName,
- nextLoc: nextLoc
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
- }
- }, exports;
- }
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /* 12 */
- /*!*****************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
- if (info.done) {
- resolve(value);
- } else {
- Promise.resolve(value).then(_next, _throw);
- }
- }
- function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
- _next(undefined);
- });
- };
- }
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
- /***/ }),
- /* 13 */
- /*!********************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/leaflet.css ***!
- \********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-3-2!../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-3-3!./leaflet.css */ 14);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("136a00a7", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 14 */
- /*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-3-2!./node_modules/postcss-loader/src??ref--6-oneOf-3-3!D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/leaflet.css ***!
- \*********************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/lib/app-plus/getUrl.js */ 16);
- var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./images/layers.png */ 17);
- var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__(/*! ./images/layers-2x.png */ 18);
- var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__(/*! ./images/marker-icon.png */ 19);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
- var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
- var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
- // Module
- exports.push([module.i, "/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > uni-canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\r\n\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n\r\n.leaflet-container.leaflet-touch-drag {\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\ttouch-action: none;\r\n}\r\n\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n\r\n.leaflet-tile {\r\n\t-webkit-filter: inherit;\r\n\t filter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\tbox-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n\r\n.leaflet-overlay-pane { z-index: 400; }\r\n\r\n.leaflet-shadow-pane { z-index: 500; }\r\n\r\n.leaflet-marker-pane { z-index: 600; }\r\n\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane uni-canvas { z-index: 100; }\r\n\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\ttransition: opacity 0.2s linear;\r\n\t}\r\n\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\n\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\ttransition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\ttransition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\ttransition: transform 0.25s cubic-bezier(0,0,0.25,1), -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\ttransition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n\r\n.leaflet-grab {\r\n\tcursor: grab;\r\n\t}\r\n\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n/* general typography */\r\n\r\n.leaflet-container {\r\n\tfont-family: \"Helvetica Neue\", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ");\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n\r\n.leaflet-control-layers uni-label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ");\r\n\t}\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\tbox-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n/* Tooltip */\r\n\r\n/* Base styles for the element that has a tooltip */\r\n\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: \"\";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 15 */
- /*!*****************************************************!*\
- !*** ./node_modules/css-loader/dist/runtime/api.js ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- // css base code, injected by the css-loader
- // eslint-disable-next-line func-names
- module.exports = function (useSourceMap) {
- var list = []; // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if (item[2]) {
- return "@media ".concat(item[2], " {").concat(content, "}");
- }
- return content;
- }).join('');
- }; // import a list of modules into the list
- // eslint-disable-next-line func-names
- list.i = function (modules, mediaQuery, dedupe) {
- if (typeof modules === 'string') {
- // eslint-disable-next-line no-param-reassign
- modules = [[null, modules, '']];
- }
- var alreadyImportedModules = {};
- if (dedupe) {
- for (var i = 0; i < this.length; i++) {
- // eslint-disable-next-line prefer-destructuring
- var id = this[i][0];
- if (id != null) {
- alreadyImportedModules[id] = true;
- }
- }
- }
- for (var _i = 0; _i < modules.length; _i++) {
- var item = [].concat(modules[_i]);
- if (dedupe && alreadyImportedModules[item[0]]) {
- // eslint-disable-next-line no-continue
- continue;
- }
- if (mediaQuery) {
- if (!item[2]) {
- item[2] = mediaQuery;
- } else {
- item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
- }
- }
- list.push(item);
- }
- };
- return list;
- };
- function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return "/*# sourceURL=".concat(cssMapping.sourceRoot || '').concat(source, " */");
- });
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
- return [content].join('\n');
- } // Adapted from convert-source-map (MIT)
- function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
- return "/*# ".concat(data, " */");
- }
- /***/ }),
- /* 16 */
- /*!**************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/app-plus/getUrl.js ***!
- \**************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- module.exports = function (url, options) {
- if (!options) {
- // eslint-disable-next-line no-param-reassign
- options = {}
- } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
- url = url && url.__esModule ? url.default : url
- if (typeof url !== 'string') {
- return url
- } // If url is already wrapped in quotes, remove them
- if (/^['"].*['"]$/.test(url)) {
- // eslint-disable-next-line no-param-reassign
- url = url.slice(1, -1)
- }
- if (options.hash) {
- // eslint-disable-next-line no-param-reassign
- url += options.hash
- } // Should url be wrapped?
- // See https://drafts.csswg.org/css-values-3/#urls
- if (/["'() \t\n]/.test(url) || options.needQuotes) {
- return '"'.concat(url.replace(/"/g, '\\"').replace(/\n/g, '\\n'), '"')
- }
- if (url.indexOf('/') === 0) {
- return url.substr(1)
- }
- return url
- }
- /***/ }),
- /* 17 */
- /*!**************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/images/layers.png ***!
- \**************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/node-modules/leaflet/dist/images/layers.png";
- /***/ }),
- /* 18 */
- /*!*****************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/images/layers-2x.png ***!
- \*****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/node-modules/leaflet/dist/images/layers-2x.png";
- /***/ }),
- /* 19 */
- /*!*******************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/images/marker-icon.png ***!
- \*******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/node-modules/leaflet/dist/images/marker-icon.png";
- /***/ }),
- /* 20 */
- /*!********************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js ***!
- \********************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
- /* harmony import */ var _listToStyles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./listToStyles */ 21);
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
- */
- var hasDocument = typeof document !== 'undefined'
- if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- throw new Error(
- 'vue-style-loader cannot be used in a non-browser environment. ' +
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
- ) }
- }
- /*
- type StyleObject = {
- id: number;
- parts: Array<StyleObjectPart>
- }
- type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
- }
- */
- var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
- */}
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
- var singletonElement = null
- var singletonCounter = 0
- var isProduction = false
- var noop = function () {}
- var options = null
- var ssrIdKey = 'data-vue-ssr-id'
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
- // tags it will allow on a page
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
- function addStylesClient (parentId, list, _isProduction, _options) {
- isProduction = _isProduction
- options = _options || {}
- var styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__["default"])(parentId, list)
- addStylesToDom(styles)
- return function update (newList) {
- var mayRemove = []
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- domStyle.refs--
- mayRemove.push(domStyle)
- }
- if (newList) {
- styles = Object(_listToStyles__WEBPACK_IMPORTED_MODULE_0__["default"])(parentId, newList)
- addStylesToDom(styles)
- } else {
- styles = []
- }
- for (var i = 0; i < mayRemove.length; i++) {
- var domStyle = mayRemove[i]
- if (domStyle.refs === 0) {
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j]()
- }
- delete stylesInDom[domStyle.id]
- }
- }
- }
- }
- function addStylesToDom (styles /* Array<StyleObject> */) {
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- if (domStyle) {
- domStyle.refs++
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j](item.parts[j])
- }
- for (; j < item.parts.length; j++) {
- domStyle.parts.push(addStyle(item.parts[j]))
- }
- if (domStyle.parts.length > item.parts.length) {
- domStyle.parts.length = item.parts.length
- }
- } else {
- var parts = []
- for (var j = 0; j < item.parts.length; j++) {
- parts.push(addStyle(item.parts[j]))
- }
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
- }
- }
- }
- function createStyleElement () {
- var styleElement = document.createElement('style')
- styleElement.type = 'text/css'
- head.appendChild(styleElement)
- return styleElement
- }
- function addStyle (obj /* StyleObjectPart */) {
- var update, remove
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
- if (styleElement) {
- if (isProduction) {
- // has SSR styles and in production mode.
- // simply do nothing.
- return noop
- } else {
- // has SSR styles but in dev mode.
- // for some reason Chrome can't handle source map in server-rendered
- // style tags - source maps in <style> only works if the style tag is
- // created and inserted dynamically. So we remove the server rendered
- // styles and inject new ones.
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- if (isOldIE) {
- // use singleton mode for IE9.
- var styleIndex = singletonCounter++
- styleElement = singletonElement || (singletonElement = createStyleElement())
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
- } else {
- // use multi-style-tag mode in all other cases
- styleElement = createStyleElement()
- update = applyToTag.bind(null, styleElement)
- remove = function () {
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- update(obj)
- return function updateStyle (newObj /* StyleObjectPart */) {
- if (newObj) {
- if (newObj.css === obj.css &&
- newObj.media === obj.media &&
- newObj.sourceMap === obj.sourceMap) {
- return
- }
- update(obj = newObj)
- } else {
- remove()
- }
- }
- }
- var replaceText = (function () {
- var textStore = []
- return function (index, replacement) {
- textStore[index] = replacement
- return textStore.filter(Boolean).join('\n')
- }
- })()
- function applyToSingletonTag (styleElement, index, remove, obj) {
- var css = remove ? '' : processCss(obj.css) // fixed by xxxxxx
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = replaceText(index, css)
- } else {
- var cssNode = document.createTextNode(css)
- var childNodes = styleElement.childNodes
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
- if (childNodes.length) {
- styleElement.insertBefore(cssNode, childNodes[index])
- } else {
- styleElement.appendChild(cssNode)
- }
- }
- }
- function applyToTag (styleElement, obj) {
- var css = processCss(obj.css) // fixed by xxxxxx
- var media = obj.media
- var sourceMap = obj.sourceMap
- if (media) {
- styleElement.setAttribute('media', media)
- }
- if (options.ssrId) {
- styleElement.setAttribute(ssrIdKey, obj.id)
- }
- if (sourceMap) {
- // https://developer.chrome.com/devtools/docs/javascript-debugging
- // this makes source maps inside style tags work properly in Chrome
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
- // http://stackoverflow.com/a/26603875
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
- }
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = css
- } else {
- while (styleElement.firstChild) {
- styleElement.removeChild(styleElement.firstChild)
- }
- styleElement.appendChild(document.createTextNode(css))
- }
- }
- //fixed by xxxxxx
- var UPX_RE = /\b([+-]?\d+(\.\d+)?)[r|u]px\b/g
- var VAR_STATUS_BAR_HEIGHT = /var\(--status-bar-height\)/gi
- var VAR_WINDOW_TOP = /var\(--window-top\)/gi
- var VAR_WINDOW_BOTTOM = /var\(--window-bottom\)/gi
- var VAR_WINDOW_LEFT = /var\(--window-left\)/gi
- var VAR_WINDOW_RIGHT = /var\(--window-right\)/gi
- var statusBarHeight = false
- function processCss(css) {
- if (!uni.canIUse('css.var')) { //不支持 css 变量
- if (statusBarHeight === false) {
- statusBarHeight = plus.navigator.getStatusbarHeight()
- }
- var offset = {
- statusBarHeight: statusBarHeight,
- top: window.__WINDOW_TOP || 0,
- bottom: window.__WINDOW_BOTTOM || 0
- }
- css = css.replace(VAR_STATUS_BAR_HEIGHT, offset.statusBarHeight + 'px')
- .replace(VAR_WINDOW_TOP, offset.top + 'px')
- .replace(VAR_WINDOW_BOTTOM, offset.bottom + 'px')
- .replace(VAR_WINDOW_LEFT, '0px')
- .replace(VAR_WINDOW_RIGHT, '0px')
- }
- return css.replace(/\{[\s\S]+?\}|@media.+?\{/g, function (css) {
- return css.replace(UPX_RE, function (a, b) {
- return uni.upx2px(b) + 'px'
- })
- })
- }
- /***/ }),
- /* 21 */
- /*!*****************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/listToStyles.js ***!
- \*****************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return listToStyles; });
- /**
- * Translates the list format produced by css-loader into something
- * easier to manipulate.
- */
- function listToStyles (parentId, list) {
- var styles = []
- var newStyles = {}
- for (var i = 0; i < list.length; i++) {
- var item = list[i]
- var id = item[0]
- var css = item[1]
- var media = item[2]
- var sourceMap = item[3]
- var part = {
- id: parentId + ':' + i,
- css: css,
- media: media,
- sourceMap: sourceMap
- }
- if (!newStyles[id]) {
- styles.push(newStyles[id] = { id: id, parts: [part] })
- } else {
- newStyles[id].parts.push(part)
- }
- }
- return styles
- }
- /***/ }),
- /* 22 */
- /*!**********************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/grpc/base_pb.js ***!
- \**********************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // source: base.proto
- /**
- * @fileoverview
- * @enhanceable
- * @suppress {missingRequire} reports error on implicit type usages.
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
- // GENERATED CODE -- DO NOT EDIT!
- /* eslint-disable */
- // @ts-nocheck
- var jspb = __webpack_require__(/*! google-protobuf */ 23);
- var goog = jspb;
- var global = function () {
- return this || window || global || self || Function('return this')();
- }.call(null);
- var google_protobuf_timestamp_pb = __webpack_require__(/*! google-protobuf/google/protobuf/timestamp_pb.js */ 25);
- goog.object.extend(proto, google_protobuf_timestamp_pb);
- goog.exportSymbol('proto.base.v1.CType', null, global);
- goog.exportSymbol('proto.base.v1.ControlInfoList', null, global);
- goog.exportSymbol('proto.base.v1.ControlPoint', null, global);
- goog.exportSymbol('proto.base.v1.ControlPointInfo', null, global);
- goog.exportSymbol('proto.base.v1.ControlPointSimple', null, global);
- goog.exportSymbol('proto.base.v1.CriterionType', null, global);
- goog.exportSymbol('proto.base.v1.DefaultReply', null, global);
- goog.exportSymbol('proto.base.v1.DefaultRequest', null, global);
- goog.exportSymbol('proto.base.v1.ErrorCode', null, global);
- goog.exportSymbol('proto.base.v1.GameGpsInfo', null, global);
- goog.exportSymbol('proto.base.v1.IdRequest', null, global);
- goog.exportSymbol('proto.base.v1.Image', null, global);
- goog.exportSymbol('proto.base.v1.LoginSource', null, global);
- goog.exportSymbol('proto.base.v1.MapRoute', null, global);
- goog.exportSymbol('proto.base.v1.NetImage', null, global);
- goog.exportSymbol('proto.base.v1.Position', null, global);
- goog.exportSymbol('proto.base.v1.ProjectContentType', null, global);
- goog.exportSymbol('proto.base.v1.Region', null, global);
- goog.exportSymbol('proto.base.v1.ShopList', null, global);
- goog.exportSymbol('proto.base.v1.ShopType', null, global);
- goog.exportSymbol('proto.base.v1.SignInReply', null, global);
- goog.exportSymbol('proto.base.v1.SmsType', null, global);
- goog.exportSymbol('proto.base.v1.StatusEditRequest', null, global);
- goog.exportSymbol('proto.base.v1.StatusType', null, global);
- goog.exportSymbol('proto.base.v1.User', null, global);
- goog.exportSymbol('proto.base.v1.User.Sex', null, global);
- goog.exportSymbol('proto.base.v1.UserType', null, global);
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.NetImage = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.NetImage, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.NetImage.displayName = 'proto.base.v1.NetImage';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.User = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.User, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.User.displayName = 'proto.base.v1.User';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.GameGpsInfo = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.GameGpsInfo, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.GameGpsInfo.displayName = 'proto.base.v1.GameGpsInfo';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.SignInReply = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.SignInReply, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.SignInReply.displayName = 'proto.base.v1.SignInReply';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.MapRoute = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.MapRoute, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.MapRoute.displayName = 'proto.base.v1.MapRoute';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.Region = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.Region, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.Region.displayName = 'proto.base.v1.Region';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.ShopList = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.ShopList, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.ShopList.displayName = 'proto.base.v1.ShopList';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.ControlInfoList = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.ControlInfoList, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.ControlInfoList.displayName = 'proto.base.v1.ControlInfoList';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.DefaultReply = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.DefaultReply, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.DefaultReply.displayName = 'proto.base.v1.DefaultReply';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.IdRequest = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.IdRequest, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.IdRequest.displayName = 'proto.base.v1.IdRequest';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.DefaultRequest = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.DefaultRequest, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.DefaultRequest.displayName = 'proto.base.v1.DefaultRequest';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.Position = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.Position, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.Position.displayName = 'proto.base.v1.Position';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.ControlPointInfo = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.ControlPointInfo, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.ControlPointInfo.displayName = 'proto.base.v1.ControlPointInfo';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.Image = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.Image, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.Image.displayName = 'proto.base.v1.Image';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.StatusEditRequest = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.base.v1.StatusEditRequest, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.StatusEditRequest.displayName = 'proto.base.v1.StatusEditRequest';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.ControlPoint = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPoint.repeatedFields_, null);
- };
- goog.inherits(proto.base.v1.ControlPoint, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.ControlPoint.displayName = 'proto.base.v1.ControlPoint';
- }
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.base.v1.ControlPointSimple = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPointSimple.repeatedFields_, null);
- };
- goog.inherits(proto.base.v1.ControlPointSimple, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.base.v1.ControlPointSimple.displayName = 'proto.base.v1.ControlPointSimple';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.NetImage.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.NetImage.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.NetImage} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.NetImage.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- url: jspb.Message.getFieldWithDefault(msg, 1, ""),
- md5: msg.getMd5_asB64()
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.NetImage}
- */
- proto.base.v1.NetImage.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.NetImage();
- return proto.base.v1.NetImage.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.NetImage} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.NetImage}
- */
- proto.base.v1.NetImage.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */reader.readString();
- msg.setUrl(value);
- break;
- case 2:
- var value = /** @type {!Uint8Array} */reader.readBytes();
- msg.setMd5(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.NetImage.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.NetImage.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.NetImage} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.NetImage.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getUrl();
- if (f.length > 0) {
- writer.writeString(1, f);
- }
- f = message.getMd5_asU8();
- if (f.length > 0) {
- writer.writeBytes(2, f);
- }
- };
- /**
- * optional string url = 1;
- * @return {string}
- */
- proto.base.v1.NetImage.prototype.getUrl = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.NetImage} returns this
- */
- proto.base.v1.NetImage.prototype.setUrl = function (value) {
- return jspb.Message.setProto3StringField(this, 1, value);
- };
- /**
- * optional bytes md5 = 2;
- * @return {string}
- */
- proto.base.v1.NetImage.prototype.getMd5 = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * optional bytes md5 = 2;
- * This is a type-conversion wrapper around `getMd5()`
- * @return {string}
- */
- proto.base.v1.NetImage.prototype.getMd5_asB64 = function () {
- return (/** @type {string} */jspb.Message.bytesAsB64(this.getMd5())
- );
- };
- /**
- * optional bytes md5 = 2;
- * Note that Uint8Array is not supported on all browsers.
- * @see http://caniuse.com/Uint8Array
- * This is a type-conversion wrapper around `getMd5()`
- * @return {!Uint8Array}
- */
- proto.base.v1.NetImage.prototype.getMd5_asU8 = function () {
- return (/** @type {!Uint8Array} */jspb.Message.bytesAsU8(this.getMd5())
- );
- };
- /**
- * @param {!(string|Uint8Array)} value
- * @return {!proto.base.v1.NetImage} returns this
- */
- proto.base.v1.NetImage.prototype.setMd5 = function (value) {
- return jspb.Message.setProto3BytesField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.User.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.User.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.User} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.User.toObject = function (includeInstance, msg) {
- var f,
- obj = {};
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.User}
- */
- proto.base.v1.User.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.User();
- return proto.base.v1.User.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.User} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.User}
- */
- proto.base.v1.User.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.User.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.User.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.User} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.User.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- };
- /**
- * @enum {number}
- */
- proto.base.v1.User.Sex = {
- UNDEFINE: 0,
- MALE: 1,
- FEMALE: 2
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.GameGpsInfo.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.GameGpsInfo.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.GameGpsInfo} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.GameGpsInfo.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- uptime: (f = msg.getUptime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
- longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
- latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
- directionradian: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.GameGpsInfo}
- */
- proto.base.v1.GameGpsInfo.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.GameGpsInfo();
- return proto.base.v1.GameGpsInfo.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.GameGpsInfo} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.GameGpsInfo}
- */
- proto.base.v1.GameGpsInfo.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new google_protobuf_timestamp_pb.Timestamp();
- reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
- msg.setUptime(value);
- break;
- case 2:
- var value = /** @type {number} */reader.readDouble();
- msg.setLongitude(value);
- break;
- case 3:
- var value = /** @type {number} */reader.readDouble();
- msg.setLatitude(value);
- break;
- case 4:
- var value = /** @type {number} */reader.readDouble();
- msg.setDirectionradian(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.GameGpsInfo.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.GameGpsInfo.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.GameGpsInfo} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.GameGpsInfo.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getUptime();
- if (f != null) {
- writer.writeMessage(1, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
- }
- f = message.getLongitude();
- if (f !== 0.0) {
- writer.writeDouble(2, f);
- }
- f = message.getLatitude();
- if (f !== 0.0) {
- writer.writeDouble(3, f);
- }
- f = message.getDirectionradian();
- if (f !== 0.0) {
- writer.writeDouble(4, f);
- }
- };
- /**
- * optional google.protobuf.Timestamp upTime = 1;
- * @return {?proto.google.protobuf.Timestamp}
- */
- proto.base.v1.GameGpsInfo.prototype.getUptime = function () {
- return (/** @type{?proto.google.protobuf.Timestamp} */
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)
- );
- };
- /**
- * @param {?proto.google.protobuf.Timestamp|undefined} value
- * @return {!proto.base.v1.GameGpsInfo} returns this
- */
- proto.base.v1.GameGpsInfo.prototype.setUptime = function (value) {
- return jspb.Message.setWrapperField(this, 1, value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.base.v1.GameGpsInfo} returns this
- */
- proto.base.v1.GameGpsInfo.prototype.clearUptime = function () {
- return this.setUptime(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.base.v1.GameGpsInfo.prototype.hasUptime = function () {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * optional double longitude = 2;
- * @return {number}
- */
- proto.base.v1.GameGpsInfo.prototype.getLongitude = function () {
- return (/** @type {number} */jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.GameGpsInfo} returns this
- */
- proto.base.v1.GameGpsInfo.prototype.setLongitude = function (value) {
- return jspb.Message.setProto3FloatField(this, 2, value);
- };
- /**
- * optional double latitude = 3;
- * @return {number}
- */
- proto.base.v1.GameGpsInfo.prototype.getLatitude = function () {
- return (/** @type {number} */jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.GameGpsInfo} returns this
- */
- proto.base.v1.GameGpsInfo.prototype.setLatitude = function (value) {
- return jspb.Message.setProto3FloatField(this, 3, value);
- };
- /**
- * optional double directionRadian = 4;
- * @return {number}
- */
- proto.base.v1.GameGpsInfo.prototype.getDirectionradian = function () {
- return (/** @type {number} */jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.GameGpsInfo} returns this
- */
- proto.base.v1.GameGpsInfo.prototype.setDirectionradian = function (value) {
- return jspb.Message.setProto3FloatField(this, 4, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.SignInReply.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.SignInReply.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.SignInReply} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.SignInReply.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- token: jspb.Message.getFieldWithDefault(msg, 1, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.SignInReply}
- */
- proto.base.v1.SignInReply.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.SignInReply();
- return proto.base.v1.SignInReply.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.SignInReply} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.SignInReply}
- */
- proto.base.v1.SignInReply.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */reader.readString();
- msg.setToken(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.SignInReply.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.SignInReply.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.SignInReply} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.SignInReply.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getToken();
- if (f.length > 0) {
- writer.writeString(1, f);
- }
- };
- /**
- * optional string token = 1;
- * @return {string}
- */
- proto.base.v1.SignInReply.prototype.getToken = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.SignInReply} returns this
- */
- proto.base.v1.SignInReply.prototype.setToken = function (value) {
- return jspb.Message.setProto3StringField(this, 1, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.MapRoute.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.MapRoute.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.MapRoute} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.MapRoute.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
- image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.MapRoute}
- */
- proto.base.v1.MapRoute.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.MapRoute();
- return proto.base.v1.MapRoute.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.MapRoute} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.MapRoute}
- */
- proto.base.v1.MapRoute.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setId(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.setName(value);
- break;
- case 3:
- var value = new proto.base.v1.NetImage();
- reader.readMessage(value, proto.base.v1.NetImage.deserializeBinaryFromReader);
- msg.setImage(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.MapRoute.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.MapRoute.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.MapRoute} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.MapRoute.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getId();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- f = message.getName();
- if (f.length > 0) {
- writer.writeString(2, f);
- }
- f = message.getImage();
- if (f != null) {
- writer.writeMessage(3, f, proto.base.v1.NetImage.serializeBinaryToWriter);
- }
- };
- /**
- * optional int64 id = 1;
- * @return {number}
- */
- proto.base.v1.MapRoute.prototype.getId = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.MapRoute} returns this
- */
- proto.base.v1.MapRoute.prototype.setId = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional string name = 2;
- * @return {string}
- */
- proto.base.v1.MapRoute.prototype.getName = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.MapRoute} returns this
- */
- proto.base.v1.MapRoute.prototype.setName = function (value) {
- return jspb.Message.setProto3StringField(this, 2, value);
- };
- /**
- * optional NetImage image = 3;
- * @return {?proto.base.v1.NetImage}
- */
- proto.base.v1.MapRoute.prototype.getImage = function () {
- return (/** @type{?proto.base.v1.NetImage} */
- jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 3)
- );
- };
- /**
- * @param {?proto.base.v1.NetImage|undefined} value
- * @return {!proto.base.v1.MapRoute} returns this
- */
- proto.base.v1.MapRoute.prototype.setImage = function (value) {
- return jspb.Message.setWrapperField(this, 3, value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.base.v1.MapRoute} returns this
- */
- proto.base.v1.MapRoute.prototype.clearImage = function () {
- return this.setImage(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.base.v1.MapRoute.prototype.hasImage = function () {
- return jspb.Message.getField(this, 3) != null;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.Region.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.Region.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.Region} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Region.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.Region}
- */
- proto.base.v1.Region.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.Region();
- return proto.base.v1.Region.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.Region} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.Region}
- */
- proto.base.v1.Region.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */reader.readString();
- msg.setCode(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.setName(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.Region.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.Region.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.Region} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Region.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getCode();
- if (f.length > 0) {
- writer.writeString(1, f);
- }
- f = message.getName();
- if (f.length > 0) {
- writer.writeString(2, f);
- }
- };
- /**
- * optional string code = 1;
- * @return {string}
- */
- proto.base.v1.Region.prototype.getCode = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.Region} returns this
- */
- proto.base.v1.Region.prototype.setCode = function (value) {
- return jspb.Message.setProto3StringField(this, 1, value);
- };
- /**
- * optional string name = 2;
- * @return {string}
- */
- proto.base.v1.Region.prototype.getName = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.Region} returns this
- */
- proto.base.v1.Region.prototype.setName = function (value) {
- return jspb.Message.setProto3StringField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.ShopList.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.ShopList.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.ShopList} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ShopList.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.ShopList}
- */
- proto.base.v1.ShopList.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.ShopList();
- return proto.base.v1.ShopList.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.ShopList} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.ShopList}
- */
- proto.base.v1.ShopList.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt32();
- msg.setShopid(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.setName(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.ShopList.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.ShopList.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.ShopList} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ShopList.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getShopid();
- if (f !== 0) {
- writer.writeInt32(1, f);
- }
- f = message.getName();
- if (f.length > 0) {
- writer.writeString(2, f);
- }
- };
- /**
- * optional int32 shopId = 1;
- * @return {number}
- */
- proto.base.v1.ShopList.prototype.getShopid = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ShopList} returns this
- */
- proto.base.v1.ShopList.prototype.setShopid = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional string name = 2;
- * @return {string}
- */
- proto.base.v1.ShopList.prototype.getName = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.ShopList} returns this
- */
- proto.base.v1.ShopList.prototype.setName = function (value) {
- return jspb.Message.setProto3StringField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.ControlInfoList.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.ControlInfoList.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.ControlInfoList} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlInfoList.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
- cicode: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.ControlInfoList}
- */
- proto.base.v1.ControlInfoList.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.ControlInfoList();
- return proto.base.v1.ControlInfoList.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.ControlInfoList} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.ControlInfoList}
- */
- proto.base.v1.ControlInfoList.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt32();
- msg.setCiid(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.setCicode(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.ControlInfoList.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.ControlInfoList.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.ControlInfoList} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlInfoList.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getCiid();
- if (f !== 0) {
- writer.writeInt32(1, f);
- }
- f = message.getCicode();
- if (f.length > 0) {
- writer.writeString(2, f);
- }
- };
- /**
- * optional int32 ciId = 1;
- * @return {number}
- */
- proto.base.v1.ControlInfoList.prototype.getCiid = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ControlInfoList} returns this
- */
- proto.base.v1.ControlInfoList.prototype.setCiid = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional string ciCode = 2;
- * @return {string}
- */
- proto.base.v1.ControlInfoList.prototype.getCicode = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.ControlInfoList} returns this
- */
- proto.base.v1.ControlInfoList.prototype.setCicode = function (value) {
- return jspb.Message.setProto3StringField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.DefaultReply.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.DefaultReply.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.DefaultReply} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.DefaultReply.toObject = function (includeInstance, msg) {
- var f,
- obj = {};
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.DefaultReply}
- */
- proto.base.v1.DefaultReply.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.DefaultReply();
- return proto.base.v1.DefaultReply.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.DefaultReply} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.DefaultReply}
- */
- proto.base.v1.DefaultReply.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.DefaultReply.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.DefaultReply.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.DefaultReply} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.DefaultReply.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.IdRequest.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.IdRequest.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.IdRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.IdRequest.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.IdRequest}
- */
- proto.base.v1.IdRequest.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.IdRequest();
- return proto.base.v1.IdRequest.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.IdRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.IdRequest}
- */
- proto.base.v1.IdRequest.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setId(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.IdRequest.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.IdRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.IdRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.IdRequest.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getId();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- };
- /**
- * optional int64 id = 1;
- * @return {number}
- */
- proto.base.v1.IdRequest.prototype.getId = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.IdRequest} returns this
- */
- proto.base.v1.IdRequest.prototype.setId = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.DefaultRequest.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.DefaultRequest.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.DefaultRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.DefaultRequest.toObject = function (includeInstance, msg) {
- var f,
- obj = {};
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.DefaultRequest}
- */
- proto.base.v1.DefaultRequest.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.DefaultRequest();
- return proto.base.v1.DefaultRequest.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.DefaultRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.DefaultRequest}
- */
- proto.base.v1.DefaultRequest.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.DefaultRequest.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.DefaultRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.DefaultRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.DefaultRequest.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.Position.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.Position.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.Position} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Position.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
- latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.Position}
- */
- proto.base.v1.Position.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.Position();
- return proto.base.v1.Position.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.Position} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.Position}
- */
- proto.base.v1.Position.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readDouble();
- msg.setLongitude(value);
- break;
- case 2:
- var value = /** @type {number} */reader.readDouble();
- msg.setLatitude(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.Position.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.Position.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.Position} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Position.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getLongitude();
- if (f !== 0.0) {
- writer.writeDouble(1, f);
- }
- f = message.getLatitude();
- if (f !== 0.0) {
- writer.writeDouble(2, f);
- }
- };
- /**
- * optional double longitude = 1;
- * @return {number}
- */
- proto.base.v1.Position.prototype.getLongitude = function () {
- return (/** @type {number} */jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.Position} returns this
- */
- proto.base.v1.Position.prototype.setLongitude = function (value) {
- return jspb.Message.setProto3FloatField(this, 1, value);
- };
- /**
- * optional double latitude = 2;
- * @return {number}
- */
- proto.base.v1.Position.prototype.getLatitude = function () {
- return (/** @type {number} */jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.Position} returns this
- */
- proto.base.v1.Position.prototype.setLatitude = function (value) {
- return jspb.Message.setProto3FloatField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.ControlPointInfo.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.ControlPointInfo.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.ControlPointInfo} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPointInfo.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f),
- content: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.ControlPointInfo}
- */
- proto.base.v1.ControlPointInfo.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.ControlPointInfo();
- return proto.base.v1.ControlPointInfo.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.ControlPointInfo} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.ControlPointInfo}
- */
- proto.base.v1.ControlPointInfo.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = new proto.base.v1.NetImage();
- reader.readMessage(value, proto.base.v1.NetImage.deserializeBinaryFromReader);
- msg.setImage(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.setContent(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.ControlPointInfo.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.ControlPointInfo.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.ControlPointInfo} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPointInfo.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getImage();
- if (f != null) {
- writer.writeMessage(1, f, proto.base.v1.NetImage.serializeBinaryToWriter);
- }
- f = message.getContent();
- if (f.length > 0) {
- writer.writeString(2, f);
- }
- };
- /**
- * optional NetImage image = 1;
- * @return {?proto.base.v1.NetImage}
- */
- proto.base.v1.ControlPointInfo.prototype.getImage = function () {
- return (/** @type{?proto.base.v1.NetImage} */
- jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 1)
- );
- };
- /**
- * @param {?proto.base.v1.NetImage|undefined} value
- * @return {!proto.base.v1.ControlPointInfo} returns this
- */
- proto.base.v1.ControlPointInfo.prototype.setImage = function (value) {
- return jspb.Message.setWrapperField(this, 1, value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.base.v1.ControlPointInfo} returns this
- */
- proto.base.v1.ControlPointInfo.prototype.clearImage = function () {
- return this.setImage(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.base.v1.ControlPointInfo.prototype.hasImage = function () {
- return jspb.Message.getField(this, 1) != null;
- };
- /**
- * optional string content = 2;
- * @return {string}
- */
- proto.base.v1.ControlPointInfo.prototype.getContent = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.ControlPointInfo} returns this
- */
- proto.base.v1.ControlPointInfo.prototype.setContent = function (value) {
- return jspb.Message.setProto3StringField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.Image.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.Image.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.Image} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Image.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- ext: jspb.Message.getFieldWithDefault(msg, 1, ""),
- data: msg.getData_asB64()
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.Image}
- */
- proto.base.v1.Image.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.Image();
- return proto.base.v1.Image.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.Image} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.Image}
- */
- proto.base.v1.Image.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */reader.readString();
- msg.setExt(value);
- break;
- case 2:
- var value = /** @type {!Uint8Array} */reader.readBytes();
- msg.setData(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.Image.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.Image.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.Image} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.Image.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getExt();
- if (f.length > 0) {
- writer.writeString(1, f);
- }
- f = message.getData_asU8();
- if (f.length > 0) {
- writer.writeBytes(2, f);
- }
- };
- /**
- * optional string ext = 1;
- * @return {string}
- */
- proto.base.v1.Image.prototype.getExt = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 1, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.Image} returns this
- */
- proto.base.v1.Image.prototype.setExt = function (value) {
- return jspb.Message.setProto3StringField(this, 1, value);
- };
- /**
- * optional bytes data = 2;
- * @return {string}
- */
- proto.base.v1.Image.prototype.getData = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 2, "")
- );
- };
- /**
- * optional bytes data = 2;
- * This is a type-conversion wrapper around `getData()`
- * @return {string}
- */
- proto.base.v1.Image.prototype.getData_asB64 = function () {
- return (/** @type {string} */jspb.Message.bytesAsB64(this.getData())
- );
- };
- /**
- * optional bytes data = 2;
- * Note that Uint8Array is not supported on all browsers.
- * @see http://caniuse.com/Uint8Array
- * This is a type-conversion wrapper around `getData()`
- * @return {!Uint8Array}
- */
- proto.base.v1.Image.prototype.getData_asU8 = function () {
- return (/** @type {!Uint8Array} */jspb.Message.bytesAsU8(this.getData())
- );
- };
- /**
- * @param {!(string|Uint8Array)} value
- * @return {!proto.base.v1.Image} returns this
- */
- proto.base.v1.Image.prototype.setData = function (value) {
- return jspb.Message.setProto3BytesField(this, 2, value);
- };
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.StatusEditRequest.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.StatusEditRequest.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.StatusEditRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.StatusEditRequest.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
- status: jspb.Message.getFieldWithDefault(msg, 2, 0)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.StatusEditRequest}
- */
- proto.base.v1.StatusEditRequest.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.StatusEditRequest();
- return proto.base.v1.StatusEditRequest.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.StatusEditRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.StatusEditRequest}
- */
- proto.base.v1.StatusEditRequest.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setId(value);
- break;
- case 2:
- var value = /** @type {!proto.base.v1.StatusType} */reader.readEnum();
- msg.setStatus(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.StatusEditRequest.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.StatusEditRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.StatusEditRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.StatusEditRequest.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getId();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- f = message.getStatus();
- if (f !== 0.0) {
- writer.writeEnum(2, f);
- }
- };
- /**
- * optional int64 id = 1;
- * @return {number}
- */
- proto.base.v1.StatusEditRequest.prototype.getId = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.StatusEditRequest} returns this
- */
- proto.base.v1.StatusEditRequest.prototype.setId = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional StatusType status = 2;
- * @return {!proto.base.v1.StatusType}
- */
- proto.base.v1.StatusEditRequest.prototype.getStatus = function () {
- return (/** @type {!proto.base.v1.StatusType} */jspb.Message.getFieldWithDefault(this, 2, 0)
- );
- };
- /**
- * @param {!proto.base.v1.StatusType} value
- * @return {!proto.base.v1.StatusEditRequest} returns this
- */
- proto.base.v1.StatusEditRequest.prototype.setStatus = function (value) {
- return jspb.Message.setProto3EnumField(this, 2, value);
- };
- /**
- * List of repeated fields within this message type.
- * @private {!Array<number>}
- * @const
- */
- proto.base.v1.ControlPoint.repeatedFields_ = [3];
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.ControlPoint.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.ControlPoint.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.ControlPoint} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPoint.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
- info: (f = msg.getInfo()) && proto.base.v1.ControlPointInfo.toObject(includeInstance, f),
- nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
- onMapX: jspb.Message.getFieldWithDefault(msg, 4, 0),
- onMapY: jspb.Message.getFieldWithDefault(msg, 5, 0),
- sn: jspb.Message.getFieldWithDefault(msg, 6, ""),
- ciposition: (f = msg.getCiposition()) && proto.base.v1.Position.toObject(includeInstance, f)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.ControlPoint}
- */
- proto.base.v1.ControlPoint.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.ControlPoint();
- return proto.base.v1.ControlPoint.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.ControlPoint} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.ControlPoint}
- */
- proto.base.v1.ControlPoint.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setId(value);
- break;
- case 2:
- var value = new proto.base.v1.ControlPointInfo();
- reader.readMessage(value, proto.base.v1.ControlPointInfo.deserializeBinaryFromReader);
- msg.setInfo(value);
- break;
- case 3:
- var value = /** @type {string} */reader.readString();
- msg.addNfcIdList(value);
- break;
- case 4:
- var value = /** @type {number} */reader.readInt64();
- msg.setOnMapX(value);
- break;
- case 5:
- var value = /** @type {number} */reader.readInt64();
- msg.setOnMapY(value);
- break;
- case 6:
- var value = /** @type {string} */reader.readString();
- msg.setSn(value);
- break;
- case 7:
- var value = new proto.base.v1.Position();
- reader.readMessage(value, proto.base.v1.Position.deserializeBinaryFromReader);
- msg.setCiposition(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.ControlPoint.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.ControlPoint.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.ControlPoint} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPoint.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getId();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- f = message.getInfo();
- if (f != null) {
- writer.writeMessage(2, f, proto.base.v1.ControlPointInfo.serializeBinaryToWriter);
- }
- f = message.getNfcIdListList();
- if (f.length > 0) {
- writer.writeRepeatedString(3, f);
- }
- f = message.getOnMapX();
- if (f !== 0) {
- writer.writeInt64(4, f);
- }
- f = message.getOnMapY();
- if (f !== 0) {
- writer.writeInt64(5, f);
- }
- f = message.getSn();
- if (f.length > 0) {
- writer.writeString(6, f);
- }
- f = message.getCiposition();
- if (f != null) {
- writer.writeMessage(7, f, proto.base.v1.Position.serializeBinaryToWriter);
- }
- };
- /**
- * optional int64 id = 1;
- * @return {number}
- */
- proto.base.v1.ControlPoint.prototype.getId = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setId = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional ControlPointInfo info = 2;
- * @return {?proto.base.v1.ControlPointInfo}
- */
- proto.base.v1.ControlPoint.prototype.getInfo = function () {
- return (/** @type{?proto.base.v1.ControlPointInfo} */
- jspb.Message.getWrapperField(this, proto.base.v1.ControlPointInfo, 2)
- );
- };
- /**
- * @param {?proto.base.v1.ControlPointInfo|undefined} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setInfo = function (value) {
- return jspb.Message.setWrapperField(this, 2, value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.clearInfo = function () {
- return this.setInfo(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.base.v1.ControlPoint.prototype.hasInfo = function () {
- return jspb.Message.getField(this, 2) != null;
- };
- /**
- * repeated string nfc_id_list = 3;
- * @return {!Array<string>}
- */
- proto.base.v1.ControlPoint.prototype.getNfcIdListList = function () {
- return (/** @type {!Array<string>} */jspb.Message.getRepeatedField(this, 3)
- );
- };
- /**
- * @param {!Array<string>} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setNfcIdListList = function (value) {
- return jspb.Message.setField(this, 3, value || []);
- };
- /**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.addNfcIdList = function (value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
- };
- /**
- * Clears the list making it empty but non-null.
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.clearNfcIdListList = function () {
- return this.setNfcIdListList([]);
- };
- /**
- * optional int64 on_map_x = 4;
- * @return {number}
- */
- proto.base.v1.ControlPoint.prototype.getOnMapX = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 4, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setOnMapX = function (value) {
- return jspb.Message.setProto3IntField(this, 4, value);
- };
- /**
- * optional int64 on_map_y = 5;
- * @return {number}
- */
- proto.base.v1.ControlPoint.prototype.getOnMapY = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 5, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setOnMapY = function (value) {
- return jspb.Message.setProto3IntField(this, 5, value);
- };
- /**
- * optional string sn = 6;
- * @return {string}
- */
- proto.base.v1.ControlPoint.prototype.getSn = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 6, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setSn = function (value) {
- return jspb.Message.setProto3StringField(this, 6, value);
- };
- /**
- * optional Position ciPosition = 7;
- * @return {?proto.base.v1.Position}
- */
- proto.base.v1.ControlPoint.prototype.getCiposition = function () {
- return (/** @type{?proto.base.v1.Position} */
- jspb.Message.getWrapperField(this, proto.base.v1.Position, 7)
- );
- };
- /**
- * @param {?proto.base.v1.Position|undefined} value
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.setCiposition = function (value) {
- return jspb.Message.setWrapperField(this, 7, value);
- };
- /**
- * Clears the message field making it undefined.
- * @return {!proto.base.v1.ControlPoint} returns this
- */
- proto.base.v1.ControlPoint.prototype.clearCiposition = function () {
- return this.setCiposition(undefined);
- };
- /**
- * Returns whether this field is set.
- * @return {boolean}
- */
- proto.base.v1.ControlPoint.prototype.hasCiposition = function () {
- return jspb.Message.getField(this, 7) != null;
- };
- /**
- * List of repeated fields within this message type.
- * @private {!Array<number>}
- * @const
- */
- proto.base.v1.ControlPointSimple.repeatedFields_ = [2];
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.base.v1.ControlPointSimple.prototype.toObject = function (opt_includeInstance) {
- return proto.base.v1.ControlPointSimple.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.base.v1.ControlPointSimple} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPointSimple.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
- nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
- sn: jspb.Message.getFieldWithDefault(msg, 3, "")
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.base.v1.ControlPointSimple}
- */
- proto.base.v1.ControlPointSimple.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.base.v1.ControlPointSimple();
- return proto.base.v1.ControlPointSimple.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.base.v1.ControlPointSimple} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.base.v1.ControlPointSimple}
- */
- proto.base.v1.ControlPointSimple.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setId(value);
- break;
- case 2:
- var value = /** @type {string} */reader.readString();
- msg.addNfcIdList(value);
- break;
- case 3:
- var value = /** @type {string} */reader.readString();
- msg.setSn(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.base.v1.ControlPointSimple.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.base.v1.ControlPointSimple.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.base.v1.ControlPointSimple} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.base.v1.ControlPointSimple.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getId();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- f = message.getNfcIdListList();
- if (f.length > 0) {
- writer.writeRepeatedString(2, f);
- }
- f = message.getSn();
- if (f.length > 0) {
- writer.writeString(3, f);
- }
- };
- /**
- * optional int64 id = 1;
- * @return {number}
- */
- proto.base.v1.ControlPointSimple.prototype.getId = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.base.v1.ControlPointSimple} returns this
- */
- proto.base.v1.ControlPointSimple.prototype.setId = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * repeated string nfc_id_list = 2;
- * @return {!Array<string>}
- */
- proto.base.v1.ControlPointSimple.prototype.getNfcIdListList = function () {
- return (/** @type {!Array<string>} */jspb.Message.getRepeatedField(this, 2)
- );
- };
- /**
- * @param {!Array<string>} value
- * @return {!proto.base.v1.ControlPointSimple} returns this
- */
- proto.base.v1.ControlPointSimple.prototype.setNfcIdListList = function (value) {
- return jspb.Message.setField(this, 2, value || []);
- };
- /**
- * @param {string} value
- * @param {number=} opt_index
- * @return {!proto.base.v1.ControlPointSimple} returns this
- */
- proto.base.v1.ControlPointSimple.prototype.addNfcIdList = function (value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
- };
- /**
- * Clears the list making it empty but non-null.
- * @return {!proto.base.v1.ControlPointSimple} returns this
- */
- proto.base.v1.ControlPointSimple.prototype.clearNfcIdListList = function () {
- return this.setNfcIdListList([]);
- };
- /**
- * optional string sn = 3;
- * @return {string}
- */
- proto.base.v1.ControlPointSimple.prototype.getSn = function () {
- return (/** @type {string} */jspb.Message.getFieldWithDefault(this, 3, "")
- );
- };
- /**
- * @param {string} value
- * @return {!proto.base.v1.ControlPointSimple} returns this
- */
- proto.base.v1.ControlPointSimple.prototype.setSn = function (value) {
- return jspb.Message.setProto3StringField(this, 3, value);
- };
- /**
- * @enum {number}
- */
- proto.base.v1.ErrorCode = {
- OK: 0,
- TOKENEXPIRE: 1000,
- USERBAN: 1001,
- VFCODEEXPIRE: 1002,
- SMSSENDFAIL: 1003,
- USERSTATUSERR: 1008,
- STATUSERR: 1009,
- PHONENOTEXIST: 2001,
- UNKNOWNERR: 2002,
- PARAMERR: 5000,
- HEADSOURCEERR: 5001,
- DATABASE: 9000,
- NORECORD: 9001
- };
- /**
- * @enum {number}
- */
- proto.base.v1.ShopType = {
- UNKNOWSHOP: 0,
- PARKSHOP: 1,
- IPSHOP: 2,
- ADMINSHOP: 3
- };
- /**
- * @enum {number}
- */
- proto.base.v1.UserType = {
- UNDEFINE: 0,
- APPUSER: 1,
- PARKADMIN: 2,
- IPADMIN: 3,
- SYSADMIN: 4
- };
- /**
- * @enum {number}
- */
- proto.base.v1.LoginSource = {
- UNDEF: 0,
- USERAPP: 1,
- WEBADMIN: 2,
- SHOPAPP: 3
- };
- /**
- * @enum {number}
- */
- proto.base.v1.SmsType = {
- UNKNOW: 0,
- LOGIN: 1,
- SIGNUP: 2
- };
- /**
- * @enum {number}
- */
- proto.base.v1.ProjectContentType = {
- TEXT: 0,
- HTML: 1
- };
- /**
- * @enum {number}
- */
- proto.base.v1.CriterionType = {
- CRUNKNOW: 0,
- CRORDER: 1,
- CRNUM: 2
- };
- /**
- * @enum {number}
- */
- proto.base.v1.CType = {
- UNKNOWTYPE: 0,
- BEGINTYPE: 1,
- MIDDLETYPE: 2,
- ENDTYPE: 3
- };
- /**
- * @enum {number}
- */
- proto.base.v1.StatusType = {
- UNKNOWSTATUS: 0,
- NORMALSTATUS: 1,
- DISABLEDSTATUS: 8,
- DELETESTATUS: 9
- };
- goog.object.extend(exports, proto.base.v1);
- /***/ }),
- /* 23 */
- /*!******************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/google-protobuf/google-protobuf.js ***!
- \******************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(global) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 10);
- /*
- Copyright The Closure Library Authors.
- SPDX-License-Identifier: Apache-2.0
- */
- var $jscomp = $jscomp || {};
- $jscomp.scope = {};
- $jscomp.findInternal = function (a, b, c) {
- a instanceof String && (a = String(a));
- for (var d = a.length, e = 0; e < d; e++) {
- var f = a[e];
- if (b.call(c, f, e, a)) return {
- i: e,
- v: f
- };
- }
- return {
- i: -1,
- v: void 0
- };
- };
- $jscomp.ASSUME_ES5 = !1;
- $jscomp.ASSUME_NO_NATIVE_MAP = !1;
- $jscomp.ASSUME_NO_NATIVE_SET = !1;
- $jscomp.SIMPLE_FROUND_POLYFILL = !1;
- $jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function (a, b, c) {
- a != Array.prototype && a != Object.prototype && (a[b] = c.value);
- };
- $jscomp.getGlobal = function (a) {
- return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a;
- };
- $jscomp.global = $jscomp.getGlobal(this);
- $jscomp.polyfill = function (a, b, c, d) {
- if (b) {
- c = $jscomp.global;
- a = a.split(".");
- for (d = 0; d < a.length - 1; d++) {
- var e = a[d];
- e in c || (c[e] = {});
- c = c[e];
- }
- a = a[a.length - 1];
- d = c[a];
- b = b(d);
- b != d && null != b && $jscomp.defineProperty(c, a, {
- configurable: !0,
- writable: !0,
- value: b
- });
- }
- };
- $jscomp.polyfill("Array.prototype.findIndex", function (a) {
- return a ? a : function (a, c) {
- return $jscomp.findInternal(this, a, c).i;
- };
- }, "es6", "es3");
- $jscomp.checkStringArgs = function (a, b, c) {
- if (null == a) throw new TypeError("The 'this' value for String.prototype." + c + " must not be null or undefined");
- if (b instanceof RegExp) throw new TypeError("First argument to String.prototype." + c + " must not be a regular expression");
- return a + "";
- };
- $jscomp.polyfill("String.prototype.endsWith", function (a) {
- return a ? a : function (a, c) {
- var b = $jscomp.checkStringArgs(this, a, "endsWith");
- a += "";
- void 0 === c && (c = b.length);
- c = Math.max(0, Math.min(c | 0, b.length));
- for (var e = a.length; 0 < e && 0 < c;) {
- if (b[--c] != a[--e]) return !1;
- }
- return 0 >= e;
- };
- }, "es6", "es3");
- $jscomp.polyfill("Array.prototype.find", function (a) {
- return a ? a : function (a, c) {
- return $jscomp.findInternal(this, a, c).v;
- };
- }, "es6", "es3");
- $jscomp.polyfill("String.prototype.startsWith", function (a) {
- return a ? a : function (a, c) {
- var b = $jscomp.checkStringArgs(this, a, "startsWith");
- a += "";
- var e = b.length,
- f = a.length;
- c = Math.max(0, Math.min(c | 0, b.length));
- for (var g = 0; g < f && c < e;) {
- if (b[c++] != a[g++]) return !1;
- }
- return g >= f;
- };
- }, "es6", "es3");
- $jscomp.polyfill("String.prototype.repeat", function (a) {
- return a ? a : function (a) {
- var b = $jscomp.checkStringArgs(this, null, "repeat");
- if (0 > a || 1342177279 < a) throw new RangeError("Invalid count value");
- a |= 0;
- for (var d = ""; a;) {
- if (a & 1 && (d += b), a >>>= 1) b += b;
- }
- return d;
- };
- }, "es6", "es3");
- var COMPILED = !0,
- goog = goog || {};
- goog.global = this || self;
- goog.exportPath_ = function (a, b, c) {
- a = a.split(".");
- c = c || goog.global;
- a[0] in c || "undefined" == typeof c.execScript || c.execScript("var " + a[0]);
- for (var d; a.length && (d = a.shift());) {
- a.length || void 0 === b ? c = c[d] && c[d] !== Object.prototype[d] ? c[d] : c[d] = {} : c[d] = b;
- }
- };
- goog.define = function (a, b) {
- if (!COMPILED) {
- var c = goog.global.CLOSURE_UNCOMPILED_DEFINES,
- d = goog.global.CLOSURE_DEFINES;
- c && void 0 === c.nodeType && Object.prototype.hasOwnProperty.call(c, a) ? b = c[a] : d && void 0 === d.nodeType && Object.prototype.hasOwnProperty.call(d, a) && (b = d[a]);
- }
- return b;
- };
- goog.FEATURESET_YEAR = 2012;
- goog.DEBUG = !0;
- goog.LOCALE = "en";
- goog.TRUSTED_SITE = !0;
- goog.STRICT_MODE_COMPATIBLE = !1;
- goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG;
- goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1;
- goog.provide = function (a) {
- if (goog.isInModuleLoader_()) throw Error("goog.provide cannot be used within a module.");
- if (!COMPILED && goog.isProvided_(a)) throw Error('Namespace "' + a + '" already declared.');
- goog.constructNamespace_(a);
- };
- goog.constructNamespace_ = function (a, b) {
- if (!COMPILED) {
- delete goog.implicitNamespaces_[a];
- for (var c = a; (c = c.substring(0, c.lastIndexOf("."))) && !goog.getObjectByName(c);) {
- goog.implicitNamespaces_[c] = !0;
- }
- }
- goog.exportPath_(a, b);
- };
- goog.getScriptNonce = function (a) {
- if (a && a != goog.global) return goog.getScriptNonce_(a.document);
- null === goog.cspNonce_ && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document));
- return goog.cspNonce_;
- };
- goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
- goog.cspNonce_ = null;
- goog.getScriptNonce_ = function (a) {
- return (a = a.querySelector && a.querySelector("script[nonce]")) && (a = a.nonce || a.getAttribute("nonce")) && goog.NONCE_PATTERN_.test(a) ? a : "";
- };
- goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
- goog.module = function (a) {
- if ("string" !== typeof a || !a || -1 == a.search(goog.VALID_MODULE_RE_)) throw Error("Invalid module identifier");
- if (!goog.isInGoogModuleLoader_()) throw Error("Module " + a + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
- if (goog.moduleLoaderState_.moduleName) throw Error("goog.module may only be called once per module.");
- goog.moduleLoaderState_.moduleName = a;
- if (!COMPILED) {
- if (goog.isProvided_(a)) throw Error('Namespace "' + a + '" already declared.');
- delete goog.implicitNamespaces_[a];
- }
- };
- goog.module.get = function (a) {
- return goog.module.getInternal_(a);
- };
- goog.module.getInternal_ = function (a) {
- if (!COMPILED) {
- if (a in goog.loadedModules_) return goog.loadedModules_[a].exports;
- if (!goog.implicitNamespaces_[a]) return a = goog.getObjectByName(a), null != a ? a : null;
- }
- return null;
- };
- goog.ModuleType = {
- ES6: "es6",
- GOOG: "goog"
- };
- goog.moduleLoaderState_ = null;
- goog.isInModuleLoader_ = function () {
- return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();
- };
- goog.isInGoogModuleLoader_ = function () {
- return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;
- };
- goog.isInEs6ModuleLoader_ = function () {
- if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) return !0;
- var a = goog.global.$jscomp;
- return a ? "function" != typeof a.getCurrentModulePath ? !1 : !!a.getCurrentModulePath() : !1;
- };
- goog.module.declareLegacyNamespace = function () {
- if (!COMPILED && !goog.isInGoogModuleLoader_()) throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");
- if (!COMPILED && !goog.moduleLoaderState_.moduleName) throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");
- goog.moduleLoaderState_.declareLegacyNamespace = !0;
- };
- goog.declareModuleId = function (a) {
- if (!COMPILED) {
- if (!goog.isInEs6ModuleLoader_()) throw Error("goog.declareModuleId may only be called from within an ES6 module");
- if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) throw Error("goog.declareModuleId may only be called once per module.");
- if (a in goog.loadedModules_) throw Error('Module with namespace "' + a + '" already exists.');
- }
- if (goog.moduleLoaderState_) goog.moduleLoaderState_.moduleName = a;else {
- var b = goog.global.$jscomp;
- if (!b || "function" != typeof b.getCurrentModulePath) throw Error('Module with namespace "' + a + '" has been loaded incorrectly.');
- b = b.require(b.getCurrentModulePath());
- goog.loadedModules_[a] = {
- exports: b,
- type: goog.ModuleType.ES6,
- moduleId: a
- };
- }
- };
- goog.setTestOnly = function (a) {
- if (goog.DISALLOW_TEST_ONLY_CODE) throw a = a || "", Error("Importing test-only code into non-debug environment" + (a ? ": " + a : "."));
- };
- goog.forwardDeclare = function (a) {};
- COMPILED || (goog.isProvided_ = function (a) {
- return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && null != goog.getObjectByName(a);
- }, goog.implicitNamespaces_ = {
- "goog.module": !0
- });
- goog.getObjectByName = function (a, b) {
- a = a.split(".");
- b = b || goog.global;
- for (var c = 0; c < a.length; c++) {
- if (b = b[a[c]], null == b) return null;
- }
- return b;
- };
- goog.globalize = function (a, b) {
- b = b || goog.global;
- for (var c in a) {
- b[c] = a[c];
- }
- };
- goog.addDependency = function (a, b, c, d) {
- !COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(a, b, c, d);
- };
- goog.ENABLE_DEBUG_LOADER = !0;
- goog.logToConsole_ = function (a) {
- goog.global.console && goog.global.console.error(a);
- };
- goog.require = function (a) {
- if (!COMPILED) {
- goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(a);
- if (goog.isProvided_(a)) {
- if (goog.isInModuleLoader_()) return goog.module.getInternal_(a);
- } else if (goog.ENABLE_DEBUG_LOADER) {
- var b = goog.moduleLoaderState_;
- goog.moduleLoaderState_ = null;
- try {
- goog.debugLoader_.load_(a);
- } finally {
- goog.moduleLoaderState_ = b;
- }
- }
- return null;
- }
- };
- goog.requireType = function (a) {
- return {};
- };
- goog.basePath = "";
- goog.nullFunction = function () {};
- goog.abstractMethod = function () {
- throw Error("unimplemented abstract method");
- };
- goog.addSingletonGetter = function (a) {
- a.instance_ = void 0;
- a.getInstance = function () {
- if (a.instance_) return a.instance_;
- goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = a);
- return a.instance_ = new a();
- };
- };
- goog.instantiatedSingletons_ = [];
- goog.LOAD_MODULE_USING_EVAL = !0;
- goog.SEAL_MODULE_EXPORTS = goog.DEBUG;
- goog.loadedModules_ = {};
- goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;
- goog.TRANSPILE = "detect";
- goog.ASSUME_ES_MODULES_TRANSPILED = !1;
- goog.TRANSPILE_TO_LANGUAGE = "";
- goog.TRANSPILER = "transpile.js";
- goog.hasBadLetScoping = null;
- goog.useSafari10Workaround = function () {
- if (null == goog.hasBadLetScoping) {
- try {
- var a = !eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";');
- } catch (b) {
- a = !1;
- }
- goog.hasBadLetScoping = a;
- }
- return goog.hasBadLetScoping;
- };
- goog.workaroundSafari10EvalBug = function (a) {
- return "(function(){" + a + "\n;})();\n";
- };
- goog.loadModule = function (a) {
- var b = goog.moduleLoaderState_;
- try {
- goog.moduleLoaderState_ = {
- moduleName: "",
- declareLegacyNamespace: !1,
- type: goog.ModuleType.GOOG
- };
- if (goog.isFunction(a)) var c = a.call(void 0, {});else if ("string" === typeof a) goog.useSafari10Workaround() && (a = goog.workaroundSafari10EvalBug(a)), c = goog.loadModuleFromSource_.call(void 0, a);else throw Error("Invalid module definition");
- var d = goog.moduleLoaderState_.moduleName;
- if ("string" === typeof d && d) goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(d, c) : goog.SEAL_MODULE_EXPORTS && Object.seal && "object" == _typeof(c) && null != c && Object.seal(c), goog.loadedModules_[d] = {
- exports: c,
- type: goog.ModuleType.GOOG,
- moduleId: goog.moduleLoaderState_.moduleName
- };else throw Error('Invalid module name "' + d + '"');
- } finally {
- goog.moduleLoaderState_ = b;
- }
- };
- goog.loadModuleFromSource_ = function (a) {
- eval(a);
- return {};
- };
- goog.normalizePath_ = function (a) {
- a = a.split("/");
- for (var b = 0; b < a.length;) {
- "." == a[b] ? a.splice(b, 1) : b && ".." == a[b] && a[b - 1] && ".." != a[b - 1] ? a.splice(--b, 2) : b++;
- }
- return a.join("/");
- };
- goog.loadFileSync_ = function (a) {
- if (goog.global.CLOSURE_LOAD_FILE_SYNC) return goog.global.CLOSURE_LOAD_FILE_SYNC(a);
- try {
- var b = new goog.global.XMLHttpRequest();
- b.open("get", a, !1);
- b.send();
- return 0 == b.status || 200 == b.status ? b.responseText : null;
- } catch (c) {
- return null;
- }
- };
- goog.transpile_ = function (a, b, c) {
- var d = goog.global.$jscomp;
- d || (goog.global.$jscomp = d = {});
- var e = d.transpile;
- if (!e) {
- var f = goog.basePath + goog.TRANSPILER,
- g = goog.loadFileSync_(f);
- if (g) {
- (function () {
- (0, eval)(g + "\n//# sourceURL=" + f);
- }).call(goog.global);
- if (goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport));
- goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile;
- d = goog.global.$jscomp;
- e = d.transpile;
- }
- }
- e || (e = d.transpile = function (a, b) {
- goog.logToConsole_(b + " requires transpilation but no transpiler was found.");
- return a;
- });
- return e(a, b, c);
- };
- goog.typeOf = function (a) {
- var b = _typeof(a);
- if ("object" == b) {
- if (a) {
- if (a instanceof Array) return "array";
- if (a instanceof Object) return b;
- var c = Object.prototype.toString.call(a);
- if ("[object Window]" == c) return "object";
- if ("[object Array]" == c || "number" == typeof a.length && "undefined" != typeof a.splice && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("splice")) return "array";
- if ("[object Function]" == c || "undefined" != typeof a.call && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("call")) return "function";
- } else return "null";
- } else if ("function" == b && "undefined" == typeof a.call) return "object";
- return b;
- };
- goog.isArray = function (a) {
- return "array" == goog.typeOf(a);
- };
- goog.isArrayLike = function (a) {
- var b = goog.typeOf(a);
- return "array" == b || "object" == b && "number" == typeof a.length;
- };
- goog.isDateLike = function (a) {
- return goog.isObject(a) && "function" == typeof a.getFullYear;
- };
- goog.isFunction = function (a) {
- return "function" == goog.typeOf(a);
- };
- goog.isObject = function (a) {
- var b = _typeof(a);
- return "object" == b && null != a || "function" == b;
- };
- goog.getUid = function (a) {
- return Object.prototype.hasOwnProperty.call(a, goog.UID_PROPERTY_) && a[goog.UID_PROPERTY_] || (a[goog.UID_PROPERTY_] = ++goog.uidCounter_);
- };
- goog.hasUid = function (a) {
- return !!a[goog.UID_PROPERTY_];
- };
- goog.removeUid = function (a) {
- null !== a && "removeAttribute" in a && a.removeAttribute(goog.UID_PROPERTY_);
- try {
- delete a[goog.UID_PROPERTY_];
- } catch (b) {}
- };
- goog.UID_PROPERTY_ = "closure_uid_" + (1E9 * Math.random() >>> 0);
- goog.uidCounter_ = 0;
- goog.getHashCode = goog.getUid;
- goog.removeHashCode = goog.removeUid;
- goog.cloneObject = function (a) {
- var b = goog.typeOf(a);
- if ("object" == b || "array" == b) {
- if ("function" === typeof a.clone) return a.clone();
- b = "array" == b ? [] : {};
- for (var c in a) {
- b[c] = goog.cloneObject(a[c]);
- }
- return b;
- }
- return a;
- };
- goog.bindNative_ = function (a, b, c) {
- return a.call.apply(a.bind, arguments);
- };
- goog.bindJs_ = function (a, b, c) {
- if (!a) throw Error();
- if (2 < arguments.length) {
- var d = Array.prototype.slice.call(arguments, 2);
- return function () {
- var c = Array.prototype.slice.call(arguments);
- Array.prototype.unshift.apply(c, d);
- return a.apply(b, c);
- };
- }
- return function () {
- return a.apply(b, arguments);
- };
- };
- goog.bind = function (a, b, c) {
- Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_;
- return goog.bind.apply(null, arguments);
- };
- goog.partial = function (a, b) {
- var c = Array.prototype.slice.call(arguments, 1);
- return function () {
- var b = c.slice();
- b.push.apply(b, arguments);
- return a.apply(this, b);
- };
- };
- goog.mixin = function (a, b) {
- for (var c in b) {
- a[c] = b[c];
- }
- };
- goog.now = goog.TRUSTED_SITE && Date.now || function () {
- return +new Date();
- };
- goog.globalEval = function (a) {
- if (goog.global.execScript) goog.global.execScript(a, "JavaScript");else if (goog.global.eval) {
- if (null == goog.evalWorksForGlobals_) {
- try {
- goog.global.eval("var _evalTest_ = 1;");
- } catch (d) {}
- if ("undefined" != typeof goog.global._evalTest_) {
- try {
- delete goog.global._evalTest_;
- } catch (d) {}
- goog.evalWorksForGlobals_ = !0;
- } else goog.evalWorksForGlobals_ = !1;
- }
- if (goog.evalWorksForGlobals_) goog.global.eval(a);else {
- var b = goog.global.document,
- c = b.createElement("script");
- c.type = "text/javascript";
- c.defer = !1;
- c.appendChild(b.createTextNode(a));
- b.head.appendChild(c);
- b.head.removeChild(c);
- }
- } else throw Error("goog.globalEval not available");
- };
- goog.evalWorksForGlobals_ = null;
- goog.getCssName = function (a, b) {
- if ("." == String(a).charAt(0)) throw Error('className passed in goog.getCssName must not start with ".". You passed: ' + a);
- var c = function c(a) {
- return goog.cssNameMapping_[a] || a;
- },
- d = function d(a) {
- a = a.split("-");
- for (var b = [], d = 0; d < a.length; d++) {
- b.push(c(a[d]));
- }
- return b.join("-");
- };
- d = goog.cssNameMapping_ ? "BY_WHOLE" == goog.cssNameMappingStyle_ ? c : d : function (a) {
- return a;
- };
- a = b ? a + "-" + d(b) : d(a);
- return goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(a) : a;
- };
- goog.setCssNameMapping = function (a, b) {
- goog.cssNameMapping_ = a;
- goog.cssNameMappingStyle_ = b;
- };
- !COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING);
- goog.getMsg = function (a, b, c) {
- c && c.html && (a = a.replace(/</g, "<"));
- b && (a = a.replace(/\{\$([^}]+)}/g, function (a, c) {
- return null != b && c in b ? b[c] : a;
- }));
- return a;
- };
- goog.getMsgWithFallback = function (a, b) {
- return a;
- };
- goog.exportSymbol = function (a, b, c) {
- goog.exportPath_(a, b, c);
- };
- goog.exportProperty = function (a, b, c) {
- a[b] = c;
- };
- goog.inherits = function (a, b) {
- function c() {}
- c.prototype = b.prototype;
- a.superClass_ = b.prototype;
- a.prototype = new c();
- a.prototype.constructor = a;
- a.base = function (a, c, f) {
- for (var d = Array(arguments.length - 2), e = 2; e < arguments.length; e++) {
- d[e - 2] = arguments[e];
- }
- return b.prototype[c].apply(a, d);
- };
- };
- goog.scope = function (a) {
- if (goog.isInModuleLoader_()) throw Error("goog.scope is not supported within a module.");
- a.call(goog.global);
- };
- COMPILED || (goog.global.COMPILED = COMPILED);
- goog.defineClass = function (a, b) {
- var c = b.constructor,
- d = b.statics;
- c && c != Object.prototype.constructor || (c = function c() {
- throw Error("cannot instantiate an interface (no constructor defined).");
- });
- c = goog.defineClass.createSealingConstructor_(c, a);
- a && goog.inherits(c, a);
- delete b.constructor;
- delete b.statics;
- goog.defineClass.applyProperties_(c.prototype, b);
- null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d));
- return c;
- };
- goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG;
- goog.defineClass.createSealingConstructor_ = function (a, b) {
- if (!goog.defineClass.SEAL_CLASS_INSTANCES) return a;
- var c = !goog.defineClass.isUnsealable_(b),
- d = function d() {
- var b = a.apply(this, arguments) || this;
- b[goog.UID_PROPERTY_] = b[goog.UID_PROPERTY_];
- this.constructor === d && c && Object.seal instanceof Function && Object.seal(b);
- return b;
- };
- return d;
- };
- goog.defineClass.isUnsealable_ = function (a) {
- return a && a.prototype && a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_];
- };
- goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
- goog.defineClass.applyProperties_ = function (a, b) {
- for (var c in b) {
- Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);
- }
- for (var d = 0; d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; d++) {
- c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);
- }
- };
- goog.tagUnsealableClass = function (a) {
- !COMPILED && goog.defineClass.SEAL_CLASS_INSTANCES && (a.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_] = !0);
- };
- goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_ = "goog_defineClass_legacy_unsealable";
- !COMPILED && goog.DEPENDENCIES_ENABLED && (goog.inHtmlDocument_ = function () {
- var a = goog.global.document;
- return null != a && "write" in a;
- }, goog.isDocumentLoading_ = function () {
- var a = goog.global.document;
- return a.attachEvent ? "complete" != a.readyState : "loading" == a.readyState;
- }, goog.findBasePath_ = function () {
- if (void 0 != goog.global.CLOSURE_BASE_PATH && "string" === typeof goog.global.CLOSURE_BASE_PATH) goog.basePath = goog.global.CLOSURE_BASE_PATH;else if (goog.inHtmlDocument_()) {
- var a = goog.global.document,
- b = a.currentScript;
- a = b ? [b] : a.getElementsByTagName("SCRIPT");
- for (b = a.length - 1; 0 <= b; --b) {
- var c = a[b].src,
- d = c.lastIndexOf("?");
- d = -1 == d ? c.length : d;
- if ("base.js" == c.substr(d - 7, 7)) {
- goog.basePath = c.substr(0, d - 7);
- break;
- }
- }
- }
- }, goog.findBasePath_(), goog.Transpiler = function () {
- this.requiresTranspilation_ = null;
- this.transpilationTarget_ = goog.TRANSPILE_TO_LANGUAGE;
- }, goog.Transpiler.prototype.createRequiresTranspilation_ = function () {
- function a(a, b) {
- e ? d[a] = !0 : b() ? (c = a, d[a] = !1) : e = d[a] = !0;
- }
- function b(a) {
- try {
- return !!eval(a);
- } catch (h) {
- return !1;
- }
- }
- var c = "es3",
- d = {
- es3: !1
- },
- e = !1,
- f = goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : "";
- a("es5", function () {
- return b("[1,].length==1");
- });
- a("es6", function () {
- return f.match(/Edge\/(\d+)(\.\d)*/i) ? !1 : b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()');
- });
- a("es7", function () {
- return b("2 ** 2 == 4");
- });
- a("es8", function () {
- return b("async () => 1, true");
- });
- a("es9", function () {
- return b("({...rest} = {}), true");
- });
- a("es_next", function () {
- return !1;
- });
- return {
- target: c,
- map: d
- };
- }, goog.Transpiler.prototype.needsTranspile = function (a, b) {
- if ("always" == goog.TRANSPILE) return !0;
- if ("never" == goog.TRANSPILE) return !1;
- if (!this.requiresTranspilation_) {
- var c = this.createRequiresTranspilation_();
- this.requiresTranspilation_ = c.map;
- this.transpilationTarget_ = this.transpilationTarget_ || c.target;
- }
- if (a in this.requiresTranspilation_) return this.requiresTranspilation_[a] ? !0 : !goog.inHtmlDocument_() || "es6" != b || "noModule" in goog.global.document.createElement("script") ? !1 : !0;
- throw Error("Unknown language mode: " + a);
- }, goog.Transpiler.prototype.transpile = function (a, b) {
- return goog.transpile_(a, b, this.transpilationTarget_);
- }, goog.transpiler_ = new goog.Transpiler(), goog.protectScriptTag_ = function (a) {
- return a.replace(/<\/(SCRIPT)/ig, "\\x3c/$1");
- }, goog.DebugLoader_ = function () {
- this.dependencies_ = {};
- this.idToPath_ = {};
- this.written_ = {};
- this.loadingDeps_ = [];
- this.depsToLoad_ = [];
- this.paused_ = !1;
- this.factory_ = new goog.DependencyFactory(goog.transpiler_);
- this.deferredCallbacks_ = {};
- this.deferredQueue_ = [];
- }, goog.DebugLoader_.prototype.bootstrap = function (a, b) {
- function c() {
- d && (goog.global.setTimeout(d, 0), d = null);
- }
- var d = b;
- if (a.length) {
- b = [];
- for (var e = 0; e < a.length; e++) {
- var f = this.getPathFromDeps_(a[e]);
- if (!f) throw Error("Unregonized namespace: " + a[e]);
- b.push(this.dependencies_[f]);
- }
- f = goog.require;
- var g = 0;
- for (e = 0; e < a.length; e++) {
- f(a[e]), b[e].onLoad(function () {
- ++g == a.length && c();
- });
- }
- } else c();
- }, goog.DebugLoader_.prototype.loadClosureDeps = function () {
- this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + "deps.js"), "deps.js", [], [], {}, !1));
- this.loadDeps_();
- }, goog.DebugLoader_.prototype.requested = function (a, b) {
- (a = this.getPathFromDeps_(a)) && (b || this.areDepsLoaded_(this.dependencies_[a].requires)) && (b = this.deferredCallbacks_[a]) && (delete this.deferredCallbacks_[a], b());
- }, goog.DebugLoader_.prototype.setDependencyFactory = function (a) {
- this.factory_ = a;
- }, goog.DebugLoader_.prototype.load_ = function (a) {
- if (this.getPathFromDeps_(a)) {
- var b = this,
- c = [],
- d = function d(a) {
- var e = b.getPathFromDeps_(a);
- if (!e) throw Error("Bad dependency path or symbol: " + a);
- if (!b.written_[e]) {
- b.written_[e] = !0;
- a = b.dependencies_[e];
- for (e = 0; e < a.requires.length; e++) {
- goog.isProvided_(a.requires[e]) || d(a.requires[e]);
- }
- c.push(a);
- }
- };
- d(a);
- a = !!this.depsToLoad_.length;
- this.depsToLoad_ = this.depsToLoad_.concat(c);
- this.paused_ || a || this.loadDeps_();
- } else throw a = "goog.require could not find: " + a, goog.logToConsole_(a), Error(a);
- }, goog.DebugLoader_.prototype.loadDeps_ = function () {
- for (var a = this, b = this.paused_; this.depsToLoad_.length && !b;) {
- (function () {
- var c = !1,
- d = a.depsToLoad_.shift(),
- e = !1;
- a.loading_(d);
- var f = {
- pause: function pause() {
- if (c) throw Error("Cannot call pause after the call to load.");
- b = !0;
- },
- resume: function resume() {
- c ? a.resume_() : b = !1;
- },
- loaded: function loaded() {
- if (e) throw Error("Double call to loaded.");
- e = !0;
- a.loaded_(d);
- },
- pending: function pending() {
- for (var b = [], c = 0; c < a.loadingDeps_.length; c++) {
- b.push(a.loadingDeps_[c]);
- }
- return b;
- },
- setModuleState: function setModuleState(a) {
- goog.moduleLoaderState_ = {
- type: a,
- moduleName: "",
- declareLegacyNamespace: !1
- };
- },
- registerEs6ModuleExports: function registerEs6ModuleExports(a, b, c) {
- c && (goog.loadedModules_[c] = {
- exports: b,
- type: goog.ModuleType.ES6,
- moduleId: c || ""
- });
- },
- registerGoogModuleExports: function registerGoogModuleExports(a, b) {
- goog.loadedModules_[a] = {
- exports: b,
- type: goog.ModuleType.GOOG,
- moduleId: a
- };
- },
- clearModuleState: function clearModuleState() {
- goog.moduleLoaderState_ = null;
- },
- defer: function defer(b) {
- if (c) throw Error("Cannot register with defer after the call to load.");
- a.defer_(d, b);
- },
- areDepsLoaded: function areDepsLoaded() {
- return a.areDepsLoaded_(d.requires);
- }
- };
- try {
- d.load(f);
- } finally {
- c = !0;
- }
- })();
- }
- b && this.pause_();
- }, goog.DebugLoader_.prototype.pause_ = function () {
- this.paused_ = !0;
- }, goog.DebugLoader_.prototype.resume_ = function () {
- this.paused_ && (this.paused_ = !1, this.loadDeps_());
- }, goog.DebugLoader_.prototype.loading_ = function (a) {
- this.loadingDeps_.push(a);
- }, goog.DebugLoader_.prototype.loaded_ = function (a) {
- for (var b = 0; b < this.loadingDeps_.length; b++) {
- if (this.loadingDeps_[b] == a) {
- this.loadingDeps_.splice(b, 1);
- break;
- }
- }
- for (b = 0; b < this.deferredQueue_.length; b++) {
- if (this.deferredQueue_[b] == a.path) {
- this.deferredQueue_.splice(b, 1);
- break;
- }
- }
- if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) for (; this.deferredQueue_.length;) {
- this.requested(this.deferredQueue_.shift(), !0);
- }
- a.loaded();
- }, goog.DebugLoader_.prototype.areDepsLoaded_ = function (a) {
- for (var b = 0; b < a.length; b++) {
- var c = this.getPathFromDeps_(a[b]);
- if (!c || !(c in this.deferredCallbacks_ || goog.isProvided_(a[b]))) return !1;
- }
- return !0;
- }, goog.DebugLoader_.prototype.getPathFromDeps_ = function (a) {
- return a in this.idToPath_ ? this.idToPath_[a] : a in this.dependencies_ ? a : null;
- }, goog.DebugLoader_.prototype.defer_ = function (a, b) {
- this.deferredCallbacks_[a.path] = b;
- this.deferredQueue_.push(a.path);
- }, goog.LoadController = function () {}, goog.LoadController.prototype.pause = function () {}, goog.LoadController.prototype.resume = function () {}, goog.LoadController.prototype.loaded = function () {}, goog.LoadController.prototype.pending = function () {}, goog.LoadController.prototype.registerEs6ModuleExports = function (a, b, c) {}, goog.LoadController.prototype.setModuleState = function (a) {}, goog.LoadController.prototype.clearModuleState = function () {}, goog.LoadController.prototype.defer = function (a) {}, goog.LoadController.prototype.areDepsLoaded = function () {}, goog.Dependency = function (a, b, c, d, e) {
- this.path = a;
- this.relativePath = b;
- this.provides = c;
- this.requires = d;
- this.loadFlags = e;
- this.loaded_ = !1;
- this.loadCallbacks_ = [];
- }, goog.Dependency.prototype.getPathName = function () {
- var a = this.path,
- b = a.indexOf("://");
- 0 <= b && (a = a.substring(b + 3), b = a.indexOf("/"), 0 <= b && (a = a.substring(b + 1)));
- return a;
- }, goog.Dependency.prototype.onLoad = function (a) {
- this.loaded_ ? a() : this.loadCallbacks_.push(a);
- }, goog.Dependency.prototype.loaded = function () {
- this.loaded_ = !0;
- var a = this.loadCallbacks_;
- this.loadCallbacks_ = [];
- for (var b = 0; b < a.length; b++) {
- a[b]();
- }
- }, goog.Dependency.defer_ = !1, goog.Dependency.callbackMap_ = {}, goog.Dependency.registerCallback_ = function (a) {
- var b = Math.random().toString(32);
- goog.Dependency.callbackMap_[b] = a;
- return b;
- }, goog.Dependency.unregisterCallback_ = function (a) {
- delete goog.Dependency.callbackMap_[a];
- }, goog.Dependency.callback_ = function (a, b) {
- if (a in goog.Dependency.callbackMap_) {
- for (var c = goog.Dependency.callbackMap_[a], d = [], e = 1; e < arguments.length; e++) {
- d.push(arguments[e]);
- }
- c.apply(void 0, d);
- } else throw Error("Callback key " + a + " does not exist (was base.js loaded more than once?).");
- }, goog.Dependency.prototype.load = function (a) {
- if (goog.global.CLOSURE_IMPORT_SCRIPT) goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();else if (goog.inHtmlDocument_()) {
- var b = goog.global.document;
- if ("complete" == b.readyState && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {
- if (/\bdeps.js$/.test(this.path)) {
- a.loaded();
- return;
- }
- throw Error('Cannot write "' + this.path + '" after document load');
- }
- if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {
- var c = goog.Dependency.registerCallback_(function (b) {
- goog.DebugLoader_.IS_OLD_IE_ && "complete" != b.readyState || (goog.Dependency.unregisterCallback_(c), a.loaded());
- }),
- d = !goog.DebugLoader_.IS_OLD_IE_ && goog.getScriptNonce() ? ' nonce="' + goog.getScriptNonce() + '"' : "";
- d = '<script src="' + this.path + '" ' + (goog.DebugLoader_.IS_OLD_IE_ ? "onreadystatechange" : "onload") + "=\"goog.Dependency.callback_('" + c + '\', this)" type="text/javascript" ' + (goog.Dependency.defer_ ? "defer" : "") + d + ">\x3c/script>";
- b.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(d) : d);
- } else {
- var e = b.createElement("script");
- e.defer = goog.Dependency.defer_;
- e.async = !1;
- e.type = "text/javascript";
- (d = goog.getScriptNonce()) && e.setAttribute("nonce", d);
- goog.DebugLoader_.IS_OLD_IE_ ? (a.pause(), e.onreadystatechange = function () {
- if ("loaded" == e.readyState || "complete" == e.readyState) a.loaded(), a.resume();
- }) : e.onload = function () {
- e.onload = null;
- a.loaded();
- };
- e.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path;
- b.head.appendChild(e);
- }
- } else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."), "deps.js" == this.relativePath ? (goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."), a.loaded()) : a.pause();
- }, goog.Es6ModuleDependency = function (a, b, c, d, e) {
- goog.Dependency.call(this, a, b, c, d, e);
- }, goog.inherits(goog.Es6ModuleDependency, goog.Dependency), goog.Es6ModuleDependency.prototype.load = function (a) {
- function b(a, b) {
- a = b ? '<script type="module" crossorigin>' + b + "\x3c/script>" : '<script type="module" crossorigin src="' + a + '">\x3c/script>';
- d.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(a) : a);
- }
- function c(a, b) {
- var c = d.createElement("script");
- c.defer = !0;
- c.async = !1;
- c.type = "module";
- c.setAttribute("crossorigin", !0);
- var e = goog.getScriptNonce();
- e && c.setAttribute("nonce", e);
- b ? c.textContent = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(b) : b : c.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(a) : a;
- d.head.appendChild(c);
- }
- if (goog.global.CLOSURE_IMPORT_SCRIPT) goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();else if (goog.inHtmlDocument_()) {
- var d = goog.global.document,
- e = this;
- if (goog.isDocumentLoading_()) {
- var f = b;
- goog.Dependency.defer_ = !0;
- } else f = c;
- var g = goog.Dependency.registerCallback_(function () {
- goog.Dependency.unregisterCallback_(g);
- a.setModuleState(goog.ModuleType.ES6);
- });
- f(void 0, 'goog.Dependency.callback_("' + g + '")');
- f(this.path, void 0);
- var h = goog.Dependency.registerCallback_(function (b) {
- goog.Dependency.unregisterCallback_(h);
- a.registerEs6ModuleExports(e.path, b, goog.moduleLoaderState_.moduleName);
- });
- f(void 0, 'import * as m from "' + this.path + '"; goog.Dependency.callback_("' + h + '", m)');
- var k = goog.Dependency.registerCallback_(function () {
- goog.Dependency.unregisterCallback_(k);
- a.clearModuleState();
- a.loaded();
- });
- f(void 0, 'goog.Dependency.callback_("' + k + '")');
- } else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."), a.pause();
- }, goog.TransformedDependency = function (a, b, c, d, e) {
- goog.Dependency.call(this, a, b, c, d, e);
- this.contents_ = null;
- this.lazyFetch_ = !goog.inHtmlDocument_() || !("noModule" in goog.global.document.createElement("script"));
- }, goog.inherits(goog.TransformedDependency, goog.Dependency), goog.TransformedDependency.prototype.load = function (a) {
- function b() {
- e.contents_ = goog.loadFileSync_(e.path);
- e.contents_ && (e.contents_ = e.transform(e.contents_), e.contents_ && (e.contents_ += "\n//# sourceURL=" + e.path));
- }
- function c() {
- e.lazyFetch_ && b();
- if (e.contents_) {
- f && a.setModuleState(goog.ModuleType.ES6);
- try {
- var c = e.contents_;
- e.contents_ = null;
- goog.globalEval(c);
- if (f) var d = goog.moduleLoaderState_.moduleName;
- } finally {
- f && a.clearModuleState();
- }
- f && goog.global.$jscomp.require.ensure([e.getPathName()], function () {
- a.registerEs6ModuleExports(e.path, goog.global.$jscomp.require(e.getPathName()), d);
- });
- a.loaded();
- }
- }
- function d() {
- var a = goog.global.document,
- b = goog.Dependency.registerCallback_(function () {
- goog.Dependency.unregisterCallback_(b);
- c();
- }),
- d = '<script type="text/javascript">' + goog.protectScriptTag_('goog.Dependency.callback_("' + b + '");') + "\x3c/script>";
- a.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(d) : d);
- }
- var e = this;
- if (goog.global.CLOSURE_IMPORT_SCRIPT) b(), this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT("", this.contents_) ? (this.contents_ = null, a.loaded()) : a.pause();else {
- var f = this.loadFlags.module == goog.ModuleType.ES6;
- this.lazyFetch_ || b();
- var g = 1 < a.pending().length,
- h = g && goog.DebugLoader_.IS_OLD_IE_;
- g = goog.Dependency.defer_ && (g || goog.isDocumentLoading_());
- if (h || g) a.defer(function () {
- c();
- });else {
- var k = goog.global.document;
- h = goog.inHtmlDocument_() && "ActiveXObject" in goog.global;
- if (f && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !h) {
- goog.Dependency.defer_ = !0;
- a.pause();
- var l = k.onreadystatechange;
- k.onreadystatechange = function () {
- "interactive" == k.readyState && (k.onreadystatechange = l, c(), a.resume());
- goog.isFunction(l) && l.apply(void 0, arguments);
- };
- } else !goog.DebugLoader_.IS_OLD_IE_ && goog.inHtmlDocument_() && goog.isDocumentLoading_() ? d() : c();
- }
- }
- }, goog.TransformedDependency.prototype.transform = function (a) {}, goog.TranspiledDependency = function (a, b, c, d, e, f) {
- goog.TransformedDependency.call(this, a, b, c, d, e);
- this.transpiler = f;
- }, goog.inherits(goog.TranspiledDependency, goog.TransformedDependency), goog.TranspiledDependency.prototype.transform = function (a) {
- return this.transpiler.transpile(a, this.getPathName());
- }, goog.PreTranspiledEs6ModuleDependency = function (a, b, c, d, e) {
- goog.TransformedDependency.call(this, a, b, c, d, e);
- }, goog.inherits(goog.PreTranspiledEs6ModuleDependency, goog.TransformedDependency), goog.PreTranspiledEs6ModuleDependency.prototype.transform = function (a) {
- return a;
- }, goog.GoogModuleDependency = function (a, b, c, d, e, f, g) {
- goog.TransformedDependency.call(this, a, b, c, d, e);
- this.needsTranspile_ = f;
- this.transpiler_ = g;
- }, goog.inherits(goog.GoogModuleDependency, goog.TransformedDependency), goog.GoogModuleDependency.prototype.transform = function (a) {
- this.needsTranspile_ && (a = this.transpiler_.transpile(a, this.getPathName()));
- return goog.LOAD_MODULE_USING_EVAL && void 0 !== goog.global.JSON ? "goog.loadModule(" + goog.global.JSON.stringify(a + "\n//# sourceURL=" + this.path + "\n") + ");" : 'goog.loadModule(function(exports) {"use strict";' + a + "\n;return exports});\n//# sourceURL=" + this.path + "\n";
- }, goog.DebugLoader_.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.DebugLoader_.prototype.addDependency = function (a, b, c, d) {
- b = b || [];
- a = a.replace(/\\/g, "/");
- var e = goog.normalizePath_(goog.basePath + a);
- d && "boolean" !== typeof d || (d = d ? {
- module: goog.ModuleType.GOOG
- } : {});
- c = this.factory_.createDependency(e, a, b, c, d, goog.transpiler_.needsTranspile(d.lang || "es3", d.module));
- this.dependencies_[e] = c;
- for (c = 0; c < b.length; c++) {
- this.idToPath_[b[c]] = e;
- }
- this.idToPath_[a] = e;
- }, goog.DependencyFactory = function (a) {
- this.transpiler = a;
- }, goog.DependencyFactory.prototype.createDependency = function (a, b, c, d, e, f) {
- return e.module == goog.ModuleType.GOOG ? new goog.GoogModuleDependency(a, b, c, d, e, f, this.transpiler) : f ? new goog.TranspiledDependency(a, b, c, d, e, this.transpiler) : e.module == goog.ModuleType.ES6 ? "never" == goog.TRANSPILE && goog.ASSUME_ES_MODULES_TRANSPILED ? new goog.PreTranspiledEs6ModuleDependency(a, b, c, d, e) : new goog.Es6ModuleDependency(a, b, c, d, e) : new goog.Dependency(a, b, c, d, e);
- }, goog.debugLoader_ = new goog.DebugLoader_(), goog.loadClosureDeps = function () {
- goog.debugLoader_.loadClosureDeps();
- }, goog.setDependencyFactory = function (a) {
- goog.debugLoader_.setDependencyFactory(a);
- }, goog.global.CLOSURE_NO_DEPS || goog.debugLoader_.loadClosureDeps(), goog.bootstrap = function (a, b) {
- goog.debugLoader_.bootstrap(a, b);
- });
- goog.TRUSTED_TYPES_POLICY_NAME = "";
- goog.identity_ = function (a) {
- return a;
- };
- goog.createTrustedTypesPolicy = function (a) {
- var b = null,
- c = goog.global.trustedTypes || goog.global.TrustedTypes;
- if (!c || !c.createPolicy) return b;
- try {
- b = c.createPolicy(a, {
- createHTML: goog.identity_,
- createScript: goog.identity_,
- createScriptURL: goog.identity_,
- createURL: goog.identity_
- });
- } catch (d) {
- goog.logToConsole_(d.message);
- }
- return b;
- };
- goog.TRUSTED_TYPES_POLICY_ = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + "#base") : null;
- goog.object = {};
- goog.object.is = function (a, b) {
- return a === b ? 0 !== a || 1 / a === 1 / b : a !== a && b !== b;
- };
- goog.object.forEach = function (a, b, c) {
- for (var d in a) {
- b.call(c, a[d], d, a);
- }
- };
- goog.object.filter = function (a, b, c) {
- var d = {},
- e;
- for (e in a) {
- b.call(c, a[e], e, a) && (d[e] = a[e]);
- }
- return d;
- };
- goog.object.map = function (a, b, c) {
- var d = {},
- e;
- for (e in a) {
- d[e] = b.call(c, a[e], e, a);
- }
- return d;
- };
- goog.object.some = function (a, b, c) {
- for (var d in a) {
- if (b.call(c, a[d], d, a)) return !0;
- }
- return !1;
- };
- goog.object.every = function (a, b, c) {
- for (var d in a) {
- if (!b.call(c, a[d], d, a)) return !1;
- }
- return !0;
- };
- goog.object.getCount = function (a) {
- var b = 0,
- c;
- for (c in a) {
- b++;
- }
- return b;
- };
- goog.object.getAnyKey = function (a) {
- for (var b in a) {
- return b;
- }
- };
- goog.object.getAnyValue = function (a) {
- for (var b in a) {
- return a[b];
- }
- };
- goog.object.contains = function (a, b) {
- return goog.object.containsValue(a, b);
- };
- goog.object.getValues = function (a) {
- var b = [],
- c = 0,
- d;
- for (d in a) {
- b[c++] = a[d];
- }
- return b;
- };
- goog.object.getKeys = function (a) {
- var b = [],
- c = 0,
- d;
- for (d in a) {
- b[c++] = d;
- }
- return b;
- };
- goog.object.getValueByKeys = function (a, b) {
- var c = goog.isArrayLike(b),
- d = c ? b : arguments;
- for (c = c ? 0 : 1; c < d.length; c++) {
- if (null == a) return;
- a = a[d[c]];
- }
- return a;
- };
- goog.object.containsKey = function (a, b) {
- return null !== a && b in a;
- };
- goog.object.containsValue = function (a, b) {
- for (var c in a) {
- if (a[c] == b) return !0;
- }
- return !1;
- };
- goog.object.findKey = function (a, b, c) {
- for (var d in a) {
- if (b.call(c, a[d], d, a)) return d;
- }
- };
- goog.object.findValue = function (a, b, c) {
- return (b = goog.object.findKey(a, b, c)) && a[b];
- };
- goog.object.isEmpty = function (a) {
- for (var b in a) {
- return !1;
- }
- return !0;
- };
- goog.object.clear = function (a) {
- for (var b in a) {
- delete a[b];
- }
- };
- goog.object.remove = function (a, b) {
- var c;
- (c = b in a) && delete a[b];
- return c;
- };
- goog.object.add = function (a, b, c) {
- if (null !== a && b in a) throw Error('The object already contains the key "' + b + '"');
- goog.object.set(a, b, c);
- };
- goog.object.get = function (a, b, c) {
- return null !== a && b in a ? a[b] : c;
- };
- goog.object.set = function (a, b, c) {
- a[b] = c;
- };
- goog.object.setIfUndefined = function (a, b, c) {
- return b in a ? a[b] : a[b] = c;
- };
- goog.object.setWithReturnValueIfNotSet = function (a, b, c) {
- if (b in a) return a[b];
- c = c();
- return a[b] = c;
- };
- goog.object.equals = function (a, b) {
- for (var c in a) {
- if (!(c in b) || a[c] !== b[c]) return !1;
- }
- for (var d in b) {
- if (!(d in a)) return !1;
- }
- return !0;
- };
- goog.object.clone = function (a) {
- var b = {},
- c;
- for (c in a) {
- b[c] = a[c];
- }
- return b;
- };
- goog.object.unsafeClone = function (a) {
- var b = goog.typeOf(a);
- if ("object" == b || "array" == b) {
- if (goog.isFunction(a.clone)) return a.clone();
- b = "array" == b ? [] : {};
- for (var c in a) {
- b[c] = goog.object.unsafeClone(a[c]);
- }
- return b;
- }
- return a;
- };
- goog.object.transpose = function (a) {
- var b = {},
- c;
- for (c in a) {
- b[a[c]] = c;
- }
- return b;
- };
- goog.object.PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
- goog.object.extend = function (a, b) {
- for (var c, d, e = 1; e < arguments.length; e++) {
- d = arguments[e];
- for (c in d) {
- a[c] = d[c];
- }
- for (var f = 0; f < goog.object.PROTOTYPE_FIELDS_.length; f++) {
- c = goog.object.PROTOTYPE_FIELDS_[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
- }
- }
- };
- goog.object.create = function (a) {
- var b = arguments.length;
- if (1 == b && Array.isArray(arguments[0])) return goog.object.create.apply(null, arguments[0]);
- if (b % 2) throw Error("Uneven number of arguments");
- for (var c = {}, d = 0; d < b; d += 2) {
- c[arguments[d]] = arguments[d + 1];
- }
- return c;
- };
- goog.object.createSet = function (a) {
- var b = arguments.length;
- if (1 == b && Array.isArray(arguments[0])) return goog.object.createSet.apply(null, arguments[0]);
- for (var c = {}, d = 0; d < b; d++) {
- c[arguments[d]] = !0;
- }
- return c;
- };
- goog.object.createImmutableView = function (a) {
- var b = a;
- Object.isFrozen && !Object.isFrozen(a) && (b = Object.create(a), Object.freeze(b));
- return b;
- };
- goog.object.isImmutableView = function (a) {
- return !!Object.isFrozen && Object.isFrozen(a);
- };
- goog.object.getAllPropertyNames = function (a, b, c) {
- if (!a) return [];
- if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) return goog.object.getKeys(a);
- for (var d = {}; a && (a !== Object.prototype || b) && (a !== Function.prototype || c);) {
- for (var e = Object.getOwnPropertyNames(a), f = 0; f < e.length; f++) {
- d[e[f]] = !0;
- }
- a = Object.getPrototypeOf(a);
- }
- return goog.object.getKeys(d);
- };
- goog.object.getSuperClass = function (a) {
- return (a = Object.getPrototypeOf(a.prototype)) && a.constructor;
- };
- var jspb = {
- asserts: {}
- };
- jspb.asserts.doAssertFailure = function (a, b, c, d) {
- var e = "Assertion failed";
- if (c) {
- e += ": " + c;
- var f = d;
- } else a && (e += ": " + a, f = b);
- throw Error("" + e, f || []);
- };
- jspb.asserts.assert = function (a, b, c) {
- for (var d = [], e = 2; e < arguments.length; ++e) {
- d[e - 2] = arguments[e];
- }
- a || jspb.asserts.doAssertFailure("", null, b, d);
- return a;
- };
- jspb.asserts.assertString = function (a, b, c) {
- for (var d = [], e = 2; e < arguments.length; ++e) {
- d[e - 2] = arguments[e];
- }
- "string" !== typeof a && jspb.asserts.doAssertFailure("Expected string but got %s: %s.", [goog.typeOf(a), a], b, d);
- return a;
- };
- jspb.asserts.assertArray = function (a, b, c) {
- for (var d = [], e = 2; e < arguments.length; ++e) {
- d[e - 2] = arguments[e];
- }
- Array.isArray(a) || jspb.asserts.doAssertFailure("Expected array but got %s: %s.", [goog.typeOf(a), a], b, d);
- return a;
- };
- jspb.asserts.fail = function (a, b) {
- for (var c = [], d = 1; d < arguments.length; ++d) {
- c[d - 1] = arguments[d];
- }
- throw Error("Failure" + (a ? ": " + a : ""), c);
- };
- jspb.asserts.assertInstanceof = function (a, b, c, d) {
- for (var e = [], f = 3; f < arguments.length; ++f) {
- e[f - 3] = arguments[f];
- }
- a instanceof b || jspb.asserts.doAssertFailure("Expected instanceof %s but got %s.", [jspb.asserts.getType(b), jspb.asserts.getType(a)], c, e);
- return a;
- };
- jspb.asserts.getType = function (a) {
- return a instanceof Function ? a.displayName || a.name || "unknown type name" : a instanceof Object ? a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a) : null === a ? "null" : _typeof(a);
- };
- jspb.BinaryConstants = {};
- jspb.ConstBinaryMessage = function () {};
- jspb.BinaryMessage = function () {};
- jspb.BinaryConstants.FieldType = {
- INVALID: -1,
- DOUBLE: 1,
- FLOAT: 2,
- INT64: 3,
- UINT64: 4,
- INT32: 5,
- FIXED64: 6,
- FIXED32: 7,
- BOOL: 8,
- STRING: 9,
- GROUP: 10,
- MESSAGE: 11,
- BYTES: 12,
- UINT32: 13,
- ENUM: 14,
- SFIXED32: 15,
- SFIXED64: 16,
- SINT32: 17,
- SINT64: 18,
- FHASH64: 30,
- VHASH64: 31
- };
- jspb.BinaryConstants.WireType = {
- INVALID: -1,
- VARINT: 0,
- FIXED64: 1,
- DELIMITED: 2,
- START_GROUP: 3,
- END_GROUP: 4,
- FIXED32: 5
- };
- jspb.BinaryConstants.FieldTypeToWireType = function (a) {
- var b = jspb.BinaryConstants.FieldType,
- c = jspb.BinaryConstants.WireType;
- switch (a) {
- case b.INT32:
- case b.INT64:
- case b.UINT32:
- case b.UINT64:
- case b.SINT32:
- case b.SINT64:
- case b.BOOL:
- case b.ENUM:
- case b.VHASH64:
- return c.VARINT;
- case b.DOUBLE:
- case b.FIXED64:
- case b.SFIXED64:
- case b.FHASH64:
- return c.FIXED64;
- case b.STRING:
- case b.MESSAGE:
- case b.BYTES:
- return c.DELIMITED;
- case b.FLOAT:
- case b.FIXED32:
- case b.SFIXED32:
- return c.FIXED32;
- default:
- return c.INVALID;
- }
- };
- jspb.BinaryConstants.INVALID_FIELD_NUMBER = -1;
- jspb.BinaryConstants.FLOAT32_EPS = 1.401298464324817E-45;
- jspb.BinaryConstants.FLOAT32_MIN = 1.1754943508222875E-38;
- jspb.BinaryConstants.FLOAT32_MAX = 3.4028234663852886E38;
- jspb.BinaryConstants.FLOAT64_EPS = 4.9E-324;
- jspb.BinaryConstants.FLOAT64_MIN = 2.2250738585072014E-308;
- jspb.BinaryConstants.FLOAT64_MAX = 1.7976931348623157E308;
- jspb.BinaryConstants.TWO_TO_20 = 1048576;
- jspb.BinaryConstants.TWO_TO_23 = 8388608;
- jspb.BinaryConstants.TWO_TO_31 = 2147483648;
- jspb.BinaryConstants.TWO_TO_32 = 4294967296;
- jspb.BinaryConstants.TWO_TO_52 = 4503599627370496;
- jspb.BinaryConstants.TWO_TO_63 = 0x7fffffffffffffff;
- jspb.BinaryConstants.TWO_TO_64 = 1.8446744073709552E19;
- jspb.BinaryConstants.ZERO_HASH = "\x00\x00\x00\x00\x00\x00\x00\x00";
- goog.debug = {};
- goog.debug.Error = function (a) {
- if (Error.captureStackTrace) Error.captureStackTrace(this, goog.debug.Error);else {
- var b = Error().stack;
- b && (this.stack = b);
- }
- a && (this.message = String(a));
- this.reportErrorToServer = !0;
- };
- goog.inherits(goog.debug.Error, Error);
- goog.debug.Error.prototype.name = "CustomError";
- goog.dom = {};
- goog.dom.NodeType = {
- ELEMENT: 1,
- ATTRIBUTE: 2,
- TEXT: 3,
- CDATA_SECTION: 4,
- ENTITY_REFERENCE: 5,
- ENTITY: 6,
- PROCESSING_INSTRUCTION: 7,
- COMMENT: 8,
- DOCUMENT: 9,
- DOCUMENT_TYPE: 10,
- DOCUMENT_FRAGMENT: 11,
- NOTATION: 12
- };
- goog.asserts = {};
- goog.asserts.ENABLE_ASSERTS = goog.DEBUG;
- goog.asserts.AssertionError = function (a, b) {
- goog.debug.Error.call(this, goog.asserts.subs_(a, b));
- this.messagePattern = a;
- };
- goog.inherits(goog.asserts.AssertionError, goog.debug.Error);
- goog.asserts.AssertionError.prototype.name = "AssertionError";
- goog.asserts.DEFAULT_ERROR_HANDLER = function (a) {
- throw a;
- };
- goog.asserts.errorHandler_ = goog.asserts.DEFAULT_ERROR_HANDLER;
- goog.asserts.subs_ = function (a, b) {
- a = a.split("%s");
- for (var c = "", d = a.length - 1, e = 0; e < d; e++) {
- c += a[e] + (e < b.length ? b[e] : "%s");
- }
- return c + a[d];
- };
- goog.asserts.doAssertFailure_ = function (a, b, c, d) {
- var e = "Assertion failed";
- if (c) {
- e += ": " + c;
- var f = d;
- } else a && (e += ": " + a, f = b);
- a = new goog.asserts.AssertionError("" + e, f || []);
- goog.asserts.errorHandler_(a);
- };
- goog.asserts.setErrorHandler = function (a) {
- goog.asserts.ENABLE_ASSERTS && (goog.asserts.errorHandler_ = a);
- };
- goog.asserts.assert = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && !a && goog.asserts.doAssertFailure_("", null, b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertExists = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && null == a && goog.asserts.doAssertFailure_("Expected to exist: %s.", [a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.fail = function (a, b) {
- goog.asserts.ENABLE_ASSERTS && goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure" + (a ? ": " + a : ""), Array.prototype.slice.call(arguments, 1)));
- };
- goog.asserts.assertNumber = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && "number" !== typeof a && goog.asserts.doAssertFailure_("Expected number but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertString = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && "string" !== typeof a && goog.asserts.doAssertFailure_("Expected string but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertFunction = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && !goog.isFunction(a) && goog.asserts.doAssertFailure_("Expected function but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertObject = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && !goog.isObject(a) && goog.asserts.doAssertFailure_("Expected object but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertArray = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && !Array.isArray(a) && goog.asserts.doAssertFailure_("Expected array but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertBoolean = function (a, b, c) {
- goog.asserts.ENABLE_ASSERTS && "boolean" !== typeof a && goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertElement = function (a, b, c) {
- !goog.asserts.ENABLE_ASSERTS || goog.isObject(a) && a.nodeType == goog.dom.NodeType.ELEMENT || goog.asserts.doAssertFailure_("Expected Element but got %s: %s.", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertInstanceof = function (a, b, c, d) {
- !goog.asserts.ENABLE_ASSERTS || a instanceof b || goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.", [goog.asserts.getType_(b), goog.asserts.getType_(a)], c, Array.prototype.slice.call(arguments, 3));
- return a;
- };
- goog.asserts.assertFinite = function (a, b, c) {
- !goog.asserts.ENABLE_ASSERTS || "number" == typeof a && isFinite(a) || goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.", [a], b, Array.prototype.slice.call(arguments, 2));
- return a;
- };
- goog.asserts.assertObjectPrototypeIsIntact = function () {
- for (var a in Object.prototype) {
- goog.asserts.fail(a + " should not be enumerable in Object.prototype.");
- }
- };
- goog.asserts.getType_ = function (a) {
- return a instanceof Function ? a.displayName || a.name || "unknown type name" : a instanceof Object ? a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a) : null === a ? "null" : _typeof(a);
- };
- goog.array = {};
- goog.NATIVE_ARRAY_PROTOTYPES = goog.TRUSTED_SITE;
- goog.array.ASSUME_NATIVE_FUNCTIONS = 2012 < goog.FEATURESET_YEAR;
- goog.array.peek = function (a) {
- return a[a.length - 1];
- };
- goog.array.last = goog.array.peek;
- goog.array.indexOf = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.indexOf) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.indexOf.call(a, b, c);
- } : function (a, b, c) {
- c = null == c ? 0 : 0 > c ? Math.max(0, a.length + c) : c;
- if ("string" === typeof a) return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, c);
- for (; c < a.length; c++) {
- if (c in a && a[c] === b) return c;
- }
- return -1;
- };
- goog.array.lastIndexOf = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.lastIndexOf) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.lastIndexOf.call(a, b, null == c ? a.length - 1 : c);
- } : function (a, b, c) {
- c = null == c ? a.length - 1 : c;
- 0 > c && (c = Math.max(0, a.length + c));
- if ("string" === typeof a) return "string" !== typeof b || 1 != b.length ? -1 : a.lastIndexOf(b, c);
- for (; 0 <= c; c--) {
- if (c in a && a[c] === b) return c;
- }
- return -1;
- };
- goog.array.forEach = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.forEach) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- Array.prototype.forEach.call(a, b, c);
- } : function (a, b, c) {
- for (var d = a.length, e = "string" === typeof a ? a.split("") : a, f = 0; f < d; f++) {
- f in e && b.call(c, e[f], f, a);
- }
- };
- goog.array.forEachRight = function (a, b, c) {
- var d = a.length,
- e = "string" === typeof a ? a.split("") : a;
- for (--d; 0 <= d; --d) {
- d in e && b.call(c, e[d], d, a);
- }
- };
- goog.array.filter = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.filter) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.filter.call(a, b, c);
- } : function (a, b, c) {
- for (var d = a.length, e = [], f = 0, g = "string" === typeof a ? a.split("") : a, h = 0; h < d; h++) {
- if (h in g) {
- var k = g[h];
- b.call(c, k, h, a) && (e[f++] = k);
- }
- }
- return e;
- };
- goog.array.map = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.map) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.map.call(a, b, c);
- } : function (a, b, c) {
- for (var d = a.length, e = Array(d), f = "string" === typeof a ? a.split("") : a, g = 0; g < d; g++) {
- g in f && (e[g] = b.call(c, f[g], g, a));
- }
- return e;
- };
- goog.array.reduce = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduce) ? function (a, b, c, d) {
- goog.asserts.assert(null != a.length);
- d && (b = goog.bind(b, d));
- return Array.prototype.reduce.call(a, b, c);
- } : function (a, b, c, d) {
- var e = c;
- goog.array.forEach(a, function (c, g) {
- e = b.call(d, e, c, g, a);
- });
- return e;
- };
- goog.array.reduceRight = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.reduceRight) ? function (a, b, c, d) {
- goog.asserts.assert(null != a.length);
- goog.asserts.assert(null != b);
- d && (b = goog.bind(b, d));
- return Array.prototype.reduceRight.call(a, b, c);
- } : function (a, b, c, d) {
- var e = c;
- goog.array.forEachRight(a, function (c, g) {
- e = b.call(d, e, c, g, a);
- });
- return e;
- };
- goog.array.some = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.some) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.some.call(a, b, c);
- } : function (a, b, c) {
- for (var d = a.length, e = "string" === typeof a ? a.split("") : a, f = 0; f < d; f++) {
- if (f in e && b.call(c, e[f], f, a)) return !0;
- }
- return !1;
- };
- goog.array.every = goog.NATIVE_ARRAY_PROTOTYPES && (goog.array.ASSUME_NATIVE_FUNCTIONS || Array.prototype.every) ? function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.every.call(a, b, c);
- } : function (a, b, c) {
- for (var d = a.length, e = "string" === typeof a ? a.split("") : a, f = 0; f < d; f++) {
- if (f in e && !b.call(c, e[f], f, a)) return !1;
- }
- return !0;
- };
- goog.array.count = function (a, b, c) {
- var d = 0;
- goog.array.forEach(a, function (a, f, g) {
- b.call(c, a, f, g) && ++d;
- }, c);
- return d;
- };
- goog.array.find = function (a, b, c) {
- b = goog.array.findIndex(a, b, c);
- return 0 > b ? null : "string" === typeof a ? a.charAt(b) : a[b];
- };
- goog.array.findIndex = function (a, b, c) {
- for (var d = a.length, e = "string" === typeof a ? a.split("") : a, f = 0; f < d; f++) {
- if (f in e && b.call(c, e[f], f, a)) return f;
- }
- return -1;
- };
- goog.array.findRight = function (a, b, c) {
- b = goog.array.findIndexRight(a, b, c);
- return 0 > b ? null : "string" === typeof a ? a.charAt(b) : a[b];
- };
- goog.array.findIndexRight = function (a, b, c) {
- var d = a.length,
- e = "string" === typeof a ? a.split("") : a;
- for (--d; 0 <= d; d--) {
- if (d in e && b.call(c, e[d], d, a)) return d;
- }
- return -1;
- };
- goog.array.contains = function (a, b) {
- return 0 <= goog.array.indexOf(a, b);
- };
- goog.array.isEmpty = function (a) {
- return 0 == a.length;
- };
- goog.array.clear = function (a) {
- if (!Array.isArray(a)) for (var b = a.length - 1; 0 <= b; b--) {
- delete a[b];
- }
- a.length = 0;
- };
- goog.array.insert = function (a, b) {
- goog.array.contains(a, b) || a.push(b);
- };
- goog.array.insertAt = function (a, b, c) {
- goog.array.splice(a, c, 0, b);
- };
- goog.array.insertArrayAt = function (a, b, c) {
- goog.partial(goog.array.splice, a, c, 0).apply(null, b);
- };
- goog.array.insertBefore = function (a, b, c) {
- var d;
- 2 == arguments.length || 0 > (d = goog.array.indexOf(a, c)) ? a.push(b) : goog.array.insertAt(a, b, d);
- };
- goog.array.remove = function (a, b) {
- b = goog.array.indexOf(a, b);
- var c;
- (c = 0 <= b) && goog.array.removeAt(a, b);
- return c;
- };
- goog.array.removeLast = function (a, b) {
- b = goog.array.lastIndexOf(a, b);
- return 0 <= b ? (goog.array.removeAt(a, b), !0) : !1;
- };
- goog.array.removeAt = function (a, b) {
- goog.asserts.assert(null != a.length);
- return 1 == Array.prototype.splice.call(a, b, 1).length;
- };
- goog.array.removeIf = function (a, b, c) {
- b = goog.array.findIndex(a, b, c);
- return 0 <= b ? (goog.array.removeAt(a, b), !0) : !1;
- };
- goog.array.removeAllIf = function (a, b, c) {
- var d = 0;
- goog.array.forEachRight(a, function (e, f) {
- b.call(c, e, f, a) && goog.array.removeAt(a, f) && d++;
- });
- return d;
- };
- goog.array.concat = function (a) {
- return Array.prototype.concat.apply([], arguments);
- };
- goog.array.join = function (a) {
- return Array.prototype.concat.apply([], arguments);
- };
- goog.array.toArray = function (a) {
- var b = a.length;
- if (0 < b) {
- for (var c = Array(b), d = 0; d < b; d++) {
- c[d] = a[d];
- }
- return c;
- }
- return [];
- };
- goog.array.clone = goog.array.toArray;
- goog.array.extend = function (a, b) {
- for (var c = 1; c < arguments.length; c++) {
- var d = arguments[c];
- if (goog.isArrayLike(d)) {
- var e = a.length || 0,
- f = d.length || 0;
- a.length = e + f;
- for (var g = 0; g < f; g++) {
- a[e + g] = d[g];
- }
- } else a.push(d);
- }
- };
- goog.array.splice = function (a, b, c, d) {
- goog.asserts.assert(null != a.length);
- return Array.prototype.splice.apply(a, goog.array.slice(arguments, 1));
- };
- goog.array.slice = function (a, b, c) {
- goog.asserts.assert(null != a.length);
- return 2 >= arguments.length ? Array.prototype.slice.call(a, b) : Array.prototype.slice.call(a, b, c);
- };
- goog.array.removeDuplicates = function (a, b, c) {
- b = b || a;
- var d = function d(a) {
- return goog.isObject(a) ? "o" + goog.getUid(a) : _typeof(a).charAt(0) + a;
- };
- c = c || d;
- d = {};
- for (var e = 0, f = 0; f < a.length;) {
- var g = a[f++],
- h = c(g);
- Object.prototype.hasOwnProperty.call(d, h) || (d[h] = !0, b[e++] = g);
- }
- b.length = e;
- };
- goog.array.binarySearch = function (a, b, c) {
- return goog.array.binarySearch_(a, c || goog.array.defaultCompare, !1, b);
- };
- goog.array.binarySelect = function (a, b, c) {
- return goog.array.binarySearch_(a, b, !0, void 0, c);
- };
- goog.array.binarySearch_ = function (a, b, c, d, e) {
- for (var f = 0, g = a.length, h; f < g;) {
- var k = f + (g - f >>> 1);
- var l = c ? b.call(e, a[k], k, a) : b(d, a[k]);
- 0 < l ? f = k + 1 : (g = k, h = !l);
- }
- return h ? f : -f - 1;
- };
- goog.array.sort = function (a, b) {
- a.sort(b || goog.array.defaultCompare);
- };
- goog.array.stableSort = function (a, b) {
- for (var c = Array(a.length), d = 0; d < a.length; d++) {
- c[d] = {
- index: d,
- value: a[d]
- };
- }
- var e = b || goog.array.defaultCompare;
- goog.array.sort(c, function (a, b) {
- return e(a.value, b.value) || a.index - b.index;
- });
- for (d = 0; d < a.length; d++) {
- a[d] = c[d].value;
- }
- };
- goog.array.sortByKey = function (a, b, c) {
- var d = c || goog.array.defaultCompare;
- goog.array.sort(a, function (a, c) {
- return d(b(a), b(c));
- });
- };
- goog.array.sortObjectsByKey = function (a, b, c) {
- goog.array.sortByKey(a, function (a) {
- return a[b];
- }, c);
- };
- goog.array.isSorted = function (a, b, c) {
- b = b || goog.array.defaultCompare;
- for (var d = 1; d < a.length; d++) {
- var e = b(a[d - 1], a[d]);
- if (0 < e || 0 == e && c) return !1;
- }
- return !0;
- };
- goog.array.equals = function (a, b, c) {
- if (!goog.isArrayLike(a) || !goog.isArrayLike(b) || a.length != b.length) return !1;
- var d = a.length;
- c = c || goog.array.defaultCompareEquality;
- for (var e = 0; e < d; e++) {
- if (!c(a[e], b[e])) return !1;
- }
- return !0;
- };
- goog.array.compare3 = function (a, b, c) {
- c = c || goog.array.defaultCompare;
- for (var d = Math.min(a.length, b.length), e = 0; e < d; e++) {
- var f = c(a[e], b[e]);
- if (0 != f) return f;
- }
- return goog.array.defaultCompare(a.length, b.length);
- };
- goog.array.defaultCompare = function (a, b) {
- return a > b ? 1 : a < b ? -1 : 0;
- };
- goog.array.inverseDefaultCompare = function (a, b) {
- return -goog.array.defaultCompare(a, b);
- };
- goog.array.defaultCompareEquality = function (a, b) {
- return a === b;
- };
- goog.array.binaryInsert = function (a, b, c) {
- c = goog.array.binarySearch(a, b, c);
- return 0 > c ? (goog.array.insertAt(a, b, -(c + 1)), !0) : !1;
- };
- goog.array.binaryRemove = function (a, b, c) {
- b = goog.array.binarySearch(a, b, c);
- return 0 <= b ? goog.array.removeAt(a, b) : !1;
- };
- goog.array.bucket = function (a, b, c) {
- for (var d = {}, e = 0; e < a.length; e++) {
- var f = a[e],
- g = b.call(c, f, e, a);
- void 0 !== g && (d[g] || (d[g] = [])).push(f);
- }
- return d;
- };
- goog.array.toObject = function (a, b, c) {
- var d = {};
- goog.array.forEach(a, function (e, f) {
- d[b.call(c, e, f, a)] = e;
- });
- return d;
- };
- goog.array.range = function (a, b, c) {
- var d = [],
- e = 0,
- f = a;
- c = c || 1;
- void 0 !== b && (e = a, f = b);
- if (0 > c * (f - e)) return [];
- if (0 < c) for (a = e; a < f; a += c) {
- d.push(a);
- } else for (a = e; a > f; a += c) {
- d.push(a);
- }
- return d;
- };
- goog.array.repeat = function (a, b) {
- for (var c = [], d = 0; d < b; d++) {
- c[d] = a;
- }
- return c;
- };
- goog.array.flatten = function (a) {
- for (var b = [], c = 0; c < arguments.length; c++) {
- var d = arguments[c];
- if (Array.isArray(d)) for (var e = 0; e < d.length; e += 8192) {
- var f = goog.array.slice(d, e, e + 8192);
- f = goog.array.flatten.apply(null, f);
- for (var g = 0; g < f.length; g++) {
- b.push(f[g]);
- }
- } else b.push(d);
- }
- return b;
- };
- goog.array.rotate = function (a, b) {
- goog.asserts.assert(null != a.length);
- a.length && (b %= a.length, 0 < b ? Array.prototype.unshift.apply(a, a.splice(-b, b)) : 0 > b && Array.prototype.push.apply(a, a.splice(0, -b)));
- return a;
- };
- goog.array.moveItem = function (a, b, c) {
- goog.asserts.assert(0 <= b && b < a.length);
- goog.asserts.assert(0 <= c && c < a.length);
- b = Array.prototype.splice.call(a, b, 1);
- Array.prototype.splice.call(a, c, 0, b[0]);
- };
- goog.array.zip = function (a) {
- if (!arguments.length) return [];
- for (var b = [], c = arguments[0].length, d = 1; d < arguments.length; d++) {
- arguments[d].length < c && (c = arguments[d].length);
- }
- for (d = 0; d < c; d++) {
- for (var e = [], f = 0; f < arguments.length; f++) {
- e.push(arguments[f][d]);
- }
- b.push(e);
- }
- return b;
- };
- goog.array.shuffle = function (a, b) {
- b = b || Math.random;
- for (var c = a.length - 1; 0 < c; c--) {
- var d = Math.floor(b() * (c + 1)),
- e = a[c];
- a[c] = a[d];
- a[d] = e;
- }
- };
- goog.array.copyByIndex = function (a, b) {
- var c = [];
- goog.array.forEach(b, function (b) {
- c.push(a[b]);
- });
- return c;
- };
- goog.array.concatMap = function (a, b, c) {
- return goog.array.concat.apply([], goog.array.map(a, b, c));
- };
- goog.crypt = {};
- goog.crypt.stringToByteArray = function (a) {
- for (var b = [], c = 0, d = 0; d < a.length; d++) {
- var e = a.charCodeAt(d);
- 255 < e && (b[c++] = e & 255, e >>= 8);
- b[c++] = e;
- }
- return b;
- };
- goog.crypt.byteArrayToString = function (a) {
- if (8192 >= a.length) return String.fromCharCode.apply(null, a);
- for (var b = "", c = 0; c < a.length; c += 8192) {
- var d = goog.array.slice(a, c, c + 8192);
- b += String.fromCharCode.apply(null, d);
- }
- return b;
- };
- goog.crypt.byteArrayToHex = function (a, b) {
- return goog.array.map(a, function (a) {
- a = a.toString(16);
- return 1 < a.length ? a : "0" + a;
- }).join(b || "");
- };
- goog.crypt.hexToByteArray = function (a) {
- goog.asserts.assert(0 == a.length % 2, "Key string length must be multiple of 2");
- for (var b = [], c = 0; c < a.length; c += 2) {
- b.push(parseInt(a.substring(c, c + 2), 16));
- }
- return b;
- };
- goog.crypt.stringToUtf8ByteArray = function (a) {
- for (var b = [], c = 0, d = 0; d < a.length; d++) {
- var e = a.charCodeAt(d);
- 128 > e ? b[c++] = e : (2048 > e ? b[c++] = e >> 6 | 192 : (55296 == (e & 64512) && d + 1 < a.length && 56320 == (a.charCodeAt(d + 1) & 64512) ? (e = 65536 + ((e & 1023) << 10) + (a.charCodeAt(++d) & 1023), b[c++] = e >> 18 | 240, b[c++] = e >> 12 & 63 | 128) : b[c++] = e >> 12 | 224, b[c++] = e >> 6 & 63 | 128), b[c++] = e & 63 | 128);
- }
- return b;
- };
- goog.crypt.utf8ByteArrayToString = function (a) {
- for (var b = [], c = 0, d = 0; c < a.length;) {
- var e = a[c++];
- if (128 > e) b[d++] = String.fromCharCode(e);else if (191 < e && 224 > e) {
- var f = a[c++];
- b[d++] = String.fromCharCode((e & 31) << 6 | f & 63);
- } else if (239 < e && 365 > e) {
- f = a[c++];
- var g = a[c++],
- h = a[c++];
- e = ((e & 7) << 18 | (f & 63) << 12 | (g & 63) << 6 | h & 63) - 65536;
- b[d++] = String.fromCharCode(55296 + (e >> 10));
- b[d++] = String.fromCharCode(56320 + (e & 1023));
- } else f = a[c++], g = a[c++], b[d++] = String.fromCharCode((e & 15) << 12 | (f & 63) << 6 | g & 63);
- }
- return b.join("");
- };
- goog.crypt.xorByteArray = function (a, b) {
- goog.asserts.assert(a.length == b.length, "XOR array lengths must match");
- for (var c = [], d = 0; d < a.length; d++) {
- c.push(a[d] ^ b[d]);
- }
- return c;
- };
- goog.dom.asserts = {};
- goog.dom.asserts.assertIsLocation = function (a) {
- if (goog.asserts.ENABLE_ASSERTS) {
- var b = goog.dom.asserts.getWindow_(a);
- b && (!a || !(a instanceof b.Location) && a instanceof b.Element) && goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s", goog.dom.asserts.debugStringForType_(a));
- }
- return a;
- };
- goog.dom.asserts.assertIsElementType_ = function (a, b) {
- if (goog.asserts.ENABLE_ASSERTS) {
- var c = goog.dom.asserts.getWindow_(a);
- c && "undefined" != typeof c[b] && (a && (a instanceof c[b] || !(a instanceof c.Location || a instanceof c.Element)) || goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s", b, goog.dom.asserts.debugStringForType_(a)));
- }
- return a;
- };
- goog.dom.asserts.assertIsHTMLAnchorElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLAnchorElement");
- };
- goog.dom.asserts.assertIsHTMLButtonElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLButtonElement");
- };
- goog.dom.asserts.assertIsHTMLLinkElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLLinkElement");
- };
- goog.dom.asserts.assertIsHTMLImageElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLImageElement");
- };
- goog.dom.asserts.assertIsHTMLAudioElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLAudioElement");
- };
- goog.dom.asserts.assertIsHTMLVideoElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLVideoElement");
- };
- goog.dom.asserts.assertIsHTMLInputElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLInputElement");
- };
- goog.dom.asserts.assertIsHTMLTextAreaElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLTextAreaElement");
- };
- goog.dom.asserts.assertIsHTMLCanvasElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLCanvasElement");
- };
- goog.dom.asserts.assertIsHTMLEmbedElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLEmbedElement");
- };
- goog.dom.asserts.assertIsHTMLFormElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLFormElement");
- };
- goog.dom.asserts.assertIsHTMLFrameElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLFrameElement");
- };
- goog.dom.asserts.assertIsHTMLIFrameElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLIFrameElement");
- };
- goog.dom.asserts.assertIsHTMLObjectElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLObjectElement");
- };
- goog.dom.asserts.assertIsHTMLScriptElement = function (a) {
- return goog.dom.asserts.assertIsElementType_(a, "HTMLScriptElement");
- };
- goog.dom.asserts.debugStringForType_ = function (a) {
- if (goog.isObject(a)) try {
- return a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a);
- } catch (b) {
- return "<object could not be stringified>";
- } else return void 0 === a ? "undefined" : null === a ? "null" : _typeof(a);
- };
- goog.dom.asserts.getWindow_ = function (a) {
- try {
- var b = a && a.ownerDocument,
- c = b && (b.defaultView || b.parentWindow);
- c = c || goog.global;
- if (c.Element && c.Location) return c;
- } catch (d) {}
- return null;
- };
- goog.functions = {};
- goog.functions.constant = function (a) {
- return function () {
- return a;
- };
- };
- goog.functions.FALSE = function () {
- return !1;
- };
- goog.functions.TRUE = function () {
- return !0;
- };
- goog.functions.NULL = function () {
- return null;
- };
- goog.functions.identity = function (a, b) {
- return a;
- };
- goog.functions.error = function (a) {
- return function () {
- throw Error(a);
- };
- };
- goog.functions.fail = function (a) {
- return function () {
- throw a;
- };
- };
- goog.functions.lock = function (a, b) {
- b = b || 0;
- return function () {
- return a.apply(this, Array.prototype.slice.call(arguments, 0, b));
- };
- };
- goog.functions.nth = function (a) {
- return function () {
- return arguments[a];
- };
- };
- goog.functions.partialRight = function (a, b) {
- var c = Array.prototype.slice.call(arguments, 1);
- return function () {
- var b = Array.prototype.slice.call(arguments);
- b.push.apply(b, c);
- return a.apply(this, b);
- };
- };
- goog.functions.withReturnValue = function (a, b) {
- return goog.functions.sequence(a, goog.functions.constant(b));
- };
- goog.functions.equalTo = function (a, b) {
- return function (c) {
- return b ? a == c : a === c;
- };
- };
- goog.functions.compose = function (a, b) {
- var c = arguments,
- d = c.length;
- return function () {
- var a;
- d && (a = c[d - 1].apply(this, arguments));
- for (var b = d - 2; 0 <= b; b--) {
- a = c[b].call(this, a);
- }
- return a;
- };
- };
- goog.functions.sequence = function (a) {
- var b = arguments,
- c = b.length;
- return function () {
- for (var a, e = 0; e < c; e++) {
- a = b[e].apply(this, arguments);
- }
- return a;
- };
- };
- goog.functions.and = function (a) {
- var b = arguments,
- c = b.length;
- return function () {
- for (var a = 0; a < c; a++) {
- if (!b[a].apply(this, arguments)) return !1;
- }
- return !0;
- };
- };
- goog.functions.or = function (a) {
- var b = arguments,
- c = b.length;
- return function () {
- for (var a = 0; a < c; a++) {
- if (b[a].apply(this, arguments)) return !0;
- }
- return !1;
- };
- };
- goog.functions.not = function (a) {
- return function () {
- return !a.apply(this, arguments);
- };
- };
- goog.functions.create = function (a, b) {
- var c = function c() {};
- c.prototype = a.prototype;
- c = new c();
- a.apply(c, Array.prototype.slice.call(arguments, 1));
- return c;
- };
- goog.functions.CACHE_RETURN_VALUE = !0;
- goog.functions.cacheReturnValue = function (a) {
- var b = !1,
- c;
- return function () {
- if (!goog.functions.CACHE_RETURN_VALUE) return a();
- b || (c = a(), b = !0);
- return c;
- };
- };
- goog.functions.once = function (a) {
- var b = a;
- return function () {
- if (b) {
- var a = b;
- b = null;
- a();
- }
- };
- };
- goog.functions.debounce = function (a, b, c) {
- var d = 0;
- return function (e) {
- goog.global.clearTimeout(d);
- var f = arguments;
- d = goog.global.setTimeout(function () {
- a.apply(c, f);
- }, b);
- };
- };
- goog.functions.throttle = function (a, b, c) {
- var d = 0,
- e = !1,
- f = [],
- g = function g() {
- d = 0;
- e && (e = !1, h());
- },
- h = function h() {
- d = goog.global.setTimeout(g, b);
- a.apply(c, f);
- };
- return function (a) {
- f = arguments;
- d ? e = !0 : h();
- };
- };
- goog.functions.rateLimit = function (a, b, c) {
- var d = 0,
- e = function e() {
- d = 0;
- };
- return function (f) {
- d || (d = goog.global.setTimeout(e, b), a.apply(c, arguments));
- };
- };
- goog.dom.HtmlElement = function () {};
- goog.dom.TagName = function (a) {
- this.tagName_ = a;
- };
- goog.dom.TagName.prototype.toString = function () {
- return this.tagName_;
- };
- goog.dom.TagName.A = new goog.dom.TagName("A");
- goog.dom.TagName.ABBR = new goog.dom.TagName("ABBR");
- goog.dom.TagName.ACRONYM = new goog.dom.TagName("ACRONYM");
- goog.dom.TagName.ADDRESS = new goog.dom.TagName("ADDRESS");
- goog.dom.TagName.APPLET = new goog.dom.TagName("APPLET");
- goog.dom.TagName.AREA = new goog.dom.TagName("AREA");
- goog.dom.TagName.ARTICLE = new goog.dom.TagName("ARTICLE");
- goog.dom.TagName.ASIDE = new goog.dom.TagName("ASIDE");
- goog.dom.TagName.AUDIO = new goog.dom.TagName("AUDIO");
- goog.dom.TagName.B = new goog.dom.TagName("B");
- goog.dom.TagName.BASE = new goog.dom.TagName("BASE");
- goog.dom.TagName.BASEFONT = new goog.dom.TagName("BASEFONT");
- goog.dom.TagName.BDI = new goog.dom.TagName("BDI");
- goog.dom.TagName.BDO = new goog.dom.TagName("BDO");
- goog.dom.TagName.BIG = new goog.dom.TagName("BIG");
- goog.dom.TagName.BLOCKQUOTE = new goog.dom.TagName("BLOCKQUOTE");
- goog.dom.TagName.BODY = new goog.dom.TagName("BODY");
- goog.dom.TagName.BR = new goog.dom.TagName("BR");
- goog.dom.TagName.BUTTON = new goog.dom.TagName("BUTTON");
- goog.dom.TagName.CANVAS = new goog.dom.TagName("CANVAS");
- goog.dom.TagName.CAPTION = new goog.dom.TagName("CAPTION");
- goog.dom.TagName.CENTER = new goog.dom.TagName("CENTER");
- goog.dom.TagName.CITE = new goog.dom.TagName("CITE");
- goog.dom.TagName.CODE = new goog.dom.TagName("CODE");
- goog.dom.TagName.COL = new goog.dom.TagName("COL");
- goog.dom.TagName.COLGROUP = new goog.dom.TagName("COLGROUP");
- goog.dom.TagName.COMMAND = new goog.dom.TagName("COMMAND");
- goog.dom.TagName.DATA = new goog.dom.TagName("DATA");
- goog.dom.TagName.DATALIST = new goog.dom.TagName("DATALIST");
- goog.dom.TagName.DD = new goog.dom.TagName("DD");
- goog.dom.TagName.DEL = new goog.dom.TagName("DEL");
- goog.dom.TagName.DETAILS = new goog.dom.TagName("DETAILS");
- goog.dom.TagName.DFN = new goog.dom.TagName("DFN");
- goog.dom.TagName.DIALOG = new goog.dom.TagName("DIALOG");
- goog.dom.TagName.DIR = new goog.dom.TagName("DIR");
- goog.dom.TagName.DIV = new goog.dom.TagName("DIV");
- goog.dom.TagName.DL = new goog.dom.TagName("DL");
- goog.dom.TagName.DT = new goog.dom.TagName("DT");
- goog.dom.TagName.EM = new goog.dom.TagName("EM");
- goog.dom.TagName.EMBED = new goog.dom.TagName("EMBED");
- goog.dom.TagName.FIELDSET = new goog.dom.TagName("FIELDSET");
- goog.dom.TagName.FIGCAPTION = new goog.dom.TagName("FIGCAPTION");
- goog.dom.TagName.FIGURE = new goog.dom.TagName("FIGURE");
- goog.dom.TagName.FONT = new goog.dom.TagName("FONT");
- goog.dom.TagName.FOOTER = new goog.dom.TagName("FOOTER");
- goog.dom.TagName.FORM = new goog.dom.TagName("FORM");
- goog.dom.TagName.FRAME = new goog.dom.TagName("FRAME");
- goog.dom.TagName.FRAMESET = new goog.dom.TagName("FRAMESET");
- goog.dom.TagName.H1 = new goog.dom.TagName("H1");
- goog.dom.TagName.H2 = new goog.dom.TagName("H2");
- goog.dom.TagName.H3 = new goog.dom.TagName("H3");
- goog.dom.TagName.H4 = new goog.dom.TagName("H4");
- goog.dom.TagName.H5 = new goog.dom.TagName("H5");
- goog.dom.TagName.H6 = new goog.dom.TagName("H6");
- goog.dom.TagName.HEAD = new goog.dom.TagName("HEAD");
- goog.dom.TagName.HEADER = new goog.dom.TagName("HEADER");
- goog.dom.TagName.HGROUP = new goog.dom.TagName("HGROUP");
- goog.dom.TagName.HR = new goog.dom.TagName("HR");
- goog.dom.TagName.HTML = new goog.dom.TagName("HTML");
- goog.dom.TagName.I = new goog.dom.TagName("I");
- goog.dom.TagName.IFRAME = new goog.dom.TagName("IFRAME");
- goog.dom.TagName.IMG = new goog.dom.TagName("IMG");
- goog.dom.TagName.INPUT = new goog.dom.TagName("INPUT");
- goog.dom.TagName.INS = new goog.dom.TagName("INS");
- goog.dom.TagName.ISINDEX = new goog.dom.TagName("ISINDEX");
- goog.dom.TagName.KBD = new goog.dom.TagName("KBD");
- goog.dom.TagName.KEYGEN = new goog.dom.TagName("KEYGEN");
- goog.dom.TagName.LABEL = new goog.dom.TagName("LABEL");
- goog.dom.TagName.LEGEND = new goog.dom.TagName("LEGEND");
- goog.dom.TagName.LI = new goog.dom.TagName("LI");
- goog.dom.TagName.LINK = new goog.dom.TagName("LINK");
- goog.dom.TagName.MAIN = new goog.dom.TagName("MAIN");
- goog.dom.TagName.MAP = new goog.dom.TagName("MAP");
- goog.dom.TagName.MARK = new goog.dom.TagName("MARK");
- goog.dom.TagName.MATH = new goog.dom.TagName("MATH");
- goog.dom.TagName.MENU = new goog.dom.TagName("MENU");
- goog.dom.TagName.MENUITEM = new goog.dom.TagName("MENUITEM");
- goog.dom.TagName.META = new goog.dom.TagName("META");
- goog.dom.TagName.METER = new goog.dom.TagName("METER");
- goog.dom.TagName.NAV = new goog.dom.TagName("NAV");
- goog.dom.TagName.NOFRAMES = new goog.dom.TagName("NOFRAMES");
- goog.dom.TagName.NOSCRIPT = new goog.dom.TagName("NOSCRIPT");
- goog.dom.TagName.OBJECT = new goog.dom.TagName("OBJECT");
- goog.dom.TagName.OL = new goog.dom.TagName("OL");
- goog.dom.TagName.OPTGROUP = new goog.dom.TagName("OPTGROUP");
- goog.dom.TagName.OPTION = new goog.dom.TagName("OPTION");
- goog.dom.TagName.OUTPUT = new goog.dom.TagName("OUTPUT");
- goog.dom.TagName.P = new goog.dom.TagName("P");
- goog.dom.TagName.PARAM = new goog.dom.TagName("PARAM");
- goog.dom.TagName.PICTURE = new goog.dom.TagName("PICTURE");
- goog.dom.TagName.PRE = new goog.dom.TagName("PRE");
- goog.dom.TagName.PROGRESS = new goog.dom.TagName("PROGRESS");
- goog.dom.TagName.Q = new goog.dom.TagName("Q");
- goog.dom.TagName.RP = new goog.dom.TagName("RP");
- goog.dom.TagName.RT = new goog.dom.TagName("RT");
- goog.dom.TagName.RTC = new goog.dom.TagName("RTC");
- goog.dom.TagName.RUBY = new goog.dom.TagName("RUBY");
- goog.dom.TagName.S = new goog.dom.TagName("S");
- goog.dom.TagName.SAMP = new goog.dom.TagName("SAMP");
- goog.dom.TagName.SCRIPT = new goog.dom.TagName("SCRIPT");
- goog.dom.TagName.SECTION = new goog.dom.TagName("SECTION");
- goog.dom.TagName.SELECT = new goog.dom.TagName("SELECT");
- goog.dom.TagName.SMALL = new goog.dom.TagName("SMALL");
- goog.dom.TagName.SOURCE = new goog.dom.TagName("SOURCE");
- goog.dom.TagName.SPAN = new goog.dom.TagName("SPAN");
- goog.dom.TagName.STRIKE = new goog.dom.TagName("STRIKE");
- goog.dom.TagName.STRONG = new goog.dom.TagName("STRONG");
- goog.dom.TagName.STYLE = new goog.dom.TagName("STYLE");
- goog.dom.TagName.SUB = new goog.dom.TagName("SUB");
- goog.dom.TagName.SUMMARY = new goog.dom.TagName("SUMMARY");
- goog.dom.TagName.SUP = new goog.dom.TagName("SUP");
- goog.dom.TagName.SVG = new goog.dom.TagName("SVG");
- goog.dom.TagName.TABLE = new goog.dom.TagName("TABLE");
- goog.dom.TagName.TBODY = new goog.dom.TagName("TBODY");
- goog.dom.TagName.TD = new goog.dom.TagName("TD");
- goog.dom.TagName.TEMPLATE = new goog.dom.TagName("TEMPLATE");
- goog.dom.TagName.TEXTAREA = new goog.dom.TagName("TEXTAREA");
- goog.dom.TagName.TFOOT = new goog.dom.TagName("TFOOT");
- goog.dom.TagName.TH = new goog.dom.TagName("TH");
- goog.dom.TagName.THEAD = new goog.dom.TagName("THEAD");
- goog.dom.TagName.TIME = new goog.dom.TagName("TIME");
- goog.dom.TagName.TITLE = new goog.dom.TagName("TITLE");
- goog.dom.TagName.TR = new goog.dom.TagName("TR");
- goog.dom.TagName.TRACK = new goog.dom.TagName("TRACK");
- goog.dom.TagName.TT = new goog.dom.TagName("TT");
- goog.dom.TagName.U = new goog.dom.TagName("U");
- goog.dom.TagName.UL = new goog.dom.TagName("UL");
- goog.dom.TagName.VAR = new goog.dom.TagName("VAR");
- goog.dom.TagName.VIDEO = new goog.dom.TagName("VIDEO");
- goog.dom.TagName.WBR = new goog.dom.TagName("WBR");
- goog.dom.tags = {};
- goog.dom.tags.VOID_TAGS_ = {
- area: !0,
- base: !0,
- br: !0,
- col: !0,
- command: !0,
- embed: !0,
- hr: !0,
- img: !0,
- input: !0,
- keygen: !0,
- link: !0,
- meta: !0,
- param: !0,
- source: !0,
- track: !0,
- wbr: !0
- };
- goog.dom.tags.isVoidTag = function (a) {
- return !0 === goog.dom.tags.VOID_TAGS_[a];
- };
- goog.html = {};
- goog.html.trustedtypes = {};
- goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + "#html") : null;
- goog.string = {};
- goog.string.TypedString = function () {};
- goog.string.Const = function (a, b) {
- this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = a === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && b || "";
- this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = goog.string.Const.TYPE_MARKER_;
- };
- goog.string.Const.prototype.implementsGoogStringTypedString = !0;
- goog.string.Const.prototype.getTypedStringValue = function () {
- return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
- };
- goog.DEBUG && (goog.string.Const.prototype.toString = function () {
- return "Const{" + this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ + "}";
- });
- goog.string.Const.unwrap = function (a) {
- if (a instanceof goog.string.Const && a.constructor === goog.string.Const && a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) return a.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
- goog.asserts.fail("expected object of type Const, got '" + a + "'");
- return "type_error:Const";
- };
- goog.string.Const.from = function (a) {
- return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_, a);
- };
- goog.string.Const.TYPE_MARKER_ = {};
- goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
- goog.string.Const.EMPTY = goog.string.Const.from("");
- goog.html.SafeScript = function () {
- this.privateDoNotAccessOrElseSafeScriptWrappedValue_ = "";
- this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- };
- goog.html.SafeScript.prototype.implementsGoogStringTypedString = !0;
- goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.SafeScript.fromConstant = function (a) {
- a = goog.string.Const.unwrap(a);
- return 0 === a.length ? goog.html.SafeScript.EMPTY : goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeScript.fromConstantAndArgs = function (a, b) {
- for (var c = [], d = 1; d < arguments.length; d++) {
- c.push(goog.html.SafeScript.stringify_(arguments[d]));
- }
- return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("(" + goog.string.Const.unwrap(a) + ")(" + c.join(", ") + ");");
- };
- goog.html.SafeScript.fromJson = function (a) {
- return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(a));
- };
- goog.html.SafeScript.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString();
- };
- goog.DEBUG && (goog.html.SafeScript.prototype.toString = function () {
- return "SafeScript{" + this.privateDoNotAccessOrElseSafeScriptWrappedValue_ + "}";
- });
- goog.html.SafeScript.unwrap = function (a) {
- return goog.html.SafeScript.unwrapTrustedScript(a).toString();
- };
- goog.html.SafeScript.unwrapTrustedScript = function (a) {
- if (a instanceof goog.html.SafeScript && a.constructor === goog.html.SafeScript && a.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseSafeScriptWrappedValue_;
- goog.asserts.fail("expected object of type SafeScript, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:SafeScript";
- };
- goog.html.SafeScript.stringify_ = function (a) {
- return JSON.stringify(a).replace(/</g, "\\x3c");
- };
- goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse = function (a) {
- return new goog.html.SafeScript().initSecurityPrivateDoNotAccessOrElse_(a);
- };
- goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_ = function (a) {
- this.privateDoNotAccessOrElseSafeScriptWrappedValue_ = goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY ? goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(a) : a;
- return this;
- };
- goog.html.SafeScript.EMPTY = goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("");
- goog.fs = {};
- goog.fs.url = {};
- goog.fs.url.createObjectUrl = function (a) {
- return goog.fs.url.getUrlObject_().createObjectURL(a);
- };
- goog.fs.url.revokeObjectUrl = function (a) {
- goog.fs.url.getUrlObject_().revokeObjectURL(a);
- };
- goog.fs.url.UrlObject_ = function () {};
- goog.fs.url.UrlObject_.prototype.createObjectURL = function (a) {};
- goog.fs.url.UrlObject_.prototype.revokeObjectURL = function (a) {};
- goog.fs.url.getUrlObject_ = function () {
- var a = goog.fs.url.findUrlObject_();
- if (null != a) return a;
- throw Error("This browser doesn't seem to support blob URLs");
- };
- goog.fs.url.findUrlObject_ = function () {
- return void 0 !== goog.global.URL && void 0 !== goog.global.URL.createObjectURL ? goog.global.URL : void 0 !== goog.global.webkitURL && void 0 !== goog.global.webkitURL.createObjectURL ? goog.global.webkitURL : void 0 !== goog.global.createObjectURL ? goog.global : null;
- };
- goog.fs.url.browserSupportsObjectUrls = function () {
- return null != goog.fs.url.findUrlObject_();
- };
- goog.fs.blob = {};
- goog.fs.blob.getBlob = function (a) {
- var b = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;
- if (void 0 !== b) {
- b = new b();
- for (var c = 0; c < arguments.length; c++) {
- b.append(arguments[c]);
- }
- return b.getBlob();
- }
- return goog.fs.blob.getBlobWithProperties(goog.array.toArray(arguments));
- };
- goog.fs.blob.getBlobWithProperties = function (a, b, c) {
- var d = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;
- if (void 0 !== d) {
- d = new d();
- for (var e = 0; e < a.length; e++) {
- d.append(a[e], c);
- }
- return d.getBlob(b);
- }
- if (void 0 !== goog.global.Blob) return d = {}, b && (d.type = b), c && (d.endings = c), new Blob(a, d);
- throw Error("This browser doesn't seem to support creating Blobs");
- };
- goog.i18n = {};
- goog.i18n.bidi = {};
- goog.i18n.bidi.FORCE_RTL = !1;
- goog.i18n.bidi.IS_RTL = goog.i18n.bidi.FORCE_RTL || ("ar" == goog.LOCALE.substring(0, 2).toLowerCase() || "fa" == goog.LOCALE.substring(0, 2).toLowerCase() || "he" == goog.LOCALE.substring(0, 2).toLowerCase() || "iw" == goog.LOCALE.substring(0, 2).toLowerCase() || "ps" == goog.LOCALE.substring(0, 2).toLowerCase() || "sd" == goog.LOCALE.substring(0, 2).toLowerCase() || "ug" == goog.LOCALE.substring(0, 2).toLowerCase() || "ur" == goog.LOCALE.substring(0, 2).toLowerCase() || "yi" == goog.LOCALE.substring(0, 2).toLowerCase()) && (2 == goog.LOCALE.length || "-" == goog.LOCALE.substring(2, 3) || "_" == goog.LOCALE.substring(2, 3)) || 3 <= goog.LOCALE.length && "ckb" == goog.LOCALE.substring(0, 3).toLowerCase() && (3 == goog.LOCALE.length || "-" == goog.LOCALE.substring(3, 4) || "_" == goog.LOCALE.substring(3, 4)) || 7 <= goog.LOCALE.length && ("-" == goog.LOCALE.substring(2, 3) || "_" == goog.LOCALE.substring(2, 3)) && ("adlm" == goog.LOCALE.substring(3, 7).toLowerCase() || "arab" == goog.LOCALE.substring(3, 7).toLowerCase() || "hebr" == goog.LOCALE.substring(3, 7).toLowerCase() || "nkoo" == goog.LOCALE.substring(3, 7).toLowerCase() || "rohg" == goog.LOCALE.substring(3, 7).toLowerCase() || "thaa" == goog.LOCALE.substring(3, 7).toLowerCase()) || 8 <= goog.LOCALE.length && ("-" == goog.LOCALE.substring(3, 4) || "_" == goog.LOCALE.substring(3, 4)) && ("adlm" == goog.LOCALE.substring(4, 8).toLowerCase() || "arab" == goog.LOCALE.substring(4, 8).toLowerCase() || "hebr" == goog.LOCALE.substring(4, 8).toLowerCase() || "nkoo" == goog.LOCALE.substring(4, 8).toLowerCase() || "rohg" == goog.LOCALE.substring(4, 8).toLowerCase() || "thaa" == goog.LOCALE.substring(4, 8).toLowerCase());
- goog.i18n.bidi.Format = {
- LRE: "\u202A",
- RLE: "\u202B",
- PDF: "\u202C",
- LRM: "\u200E",
- RLM: "\u200F"
- };
- goog.i18n.bidi.Dir = {
- LTR: 1,
- RTL: -1,
- NEUTRAL: 0
- };
- goog.i18n.bidi.RIGHT = "right";
- goog.i18n.bidi.LEFT = "left";
- goog.i18n.bidi.I18N_RIGHT = goog.i18n.bidi.IS_RTL ? goog.i18n.bidi.LEFT : goog.i18n.bidi.RIGHT;
- goog.i18n.bidi.I18N_LEFT = goog.i18n.bidi.IS_RTL ? goog.i18n.bidi.RIGHT : goog.i18n.bidi.LEFT;
- goog.i18n.bidi.toDir = function (a, b) {
- return "number" == typeof a ? 0 < a ? goog.i18n.bidi.Dir.LTR : 0 > a ? goog.i18n.bidi.Dir.RTL : b ? null : goog.i18n.bidi.Dir.NEUTRAL : null == a ? null : a ? goog.i18n.bidi.Dir.RTL : goog.i18n.bidi.Dir.LTR;
- };
- goog.i18n.bidi.ltrChars_ = "A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0900-\u1FFF\u200E\u2C00-\uD801\uD804-\uD839\uD83C-\uDBFF\uF900-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF";
- goog.i18n.bidi.rtlChars_ = "\u0591-\u06EF\u06FA-\u08FF\u200F\uD802-\uD803\uD83A-\uD83B\uFB1D-\uFDFF\uFE70-\uFEFC";
- goog.i18n.bidi.htmlSkipReg_ = /<[^>]*>|&[^;]+;/g;
- goog.i18n.bidi.stripHtmlIfNeeded_ = function (a, b) {
- return b ? a.replace(goog.i18n.bidi.htmlSkipReg_, "") : a;
- };
- goog.i18n.bidi.rtlCharReg_ = new RegExp("[" + goog.i18n.bidi.rtlChars_ + "]");
- goog.i18n.bidi.ltrCharReg_ = new RegExp("[" + goog.i18n.bidi.ltrChars_ + "]");
- goog.i18n.bidi.hasAnyRtl = function (a, b) {
- return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.hasRtlChar = goog.i18n.bidi.hasAnyRtl;
- goog.i18n.bidi.hasAnyLtr = function (a, b) {
- return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.ltrRe_ = new RegExp("^[" + goog.i18n.bidi.ltrChars_ + "]");
- goog.i18n.bidi.rtlRe_ = new RegExp("^[" + goog.i18n.bidi.rtlChars_ + "]");
- goog.i18n.bidi.isRtlChar = function (a) {
- return goog.i18n.bidi.rtlRe_.test(a);
- };
- goog.i18n.bidi.isLtrChar = function (a) {
- return goog.i18n.bidi.ltrRe_.test(a);
- };
- goog.i18n.bidi.isNeutralChar = function (a) {
- return !goog.i18n.bidi.isLtrChar(a) && !goog.i18n.bidi.isRtlChar(a);
- };
- goog.i18n.bidi.ltrDirCheckRe_ = new RegExp("^[^" + goog.i18n.bidi.rtlChars_ + "]*[" + goog.i18n.bidi.ltrChars_ + "]");
- goog.i18n.bidi.rtlDirCheckRe_ = new RegExp("^[^" + goog.i18n.bidi.ltrChars_ + "]*[" + goog.i18n.bidi.rtlChars_ + "]");
- goog.i18n.bidi.startsWithRtl = function (a, b) {
- return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.isRtlText = goog.i18n.bidi.startsWithRtl;
- goog.i18n.bidi.startsWithLtr = function (a, b) {
- return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.isLtrText = goog.i18n.bidi.startsWithLtr;
- goog.i18n.bidi.isRequiredLtrRe_ = /^http:\/\/.*/;
- goog.i18n.bidi.isNeutralText = function (a, b) {
- a = goog.i18n.bidi.stripHtmlIfNeeded_(a, b);
- return goog.i18n.bidi.isRequiredLtrRe_.test(a) || !goog.i18n.bidi.hasAnyLtr(a) && !goog.i18n.bidi.hasAnyRtl(a);
- };
- goog.i18n.bidi.ltrExitDirCheckRe_ = new RegExp("[" + goog.i18n.bidi.ltrChars_ + "][^" + goog.i18n.bidi.rtlChars_ + "]*$");
- goog.i18n.bidi.rtlExitDirCheckRe_ = new RegExp("[" + goog.i18n.bidi.rtlChars_ + "][^" + goog.i18n.bidi.ltrChars_ + "]*$");
- goog.i18n.bidi.endsWithLtr = function (a, b) {
- return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.isLtrExitText = goog.i18n.bidi.endsWithLtr;
- goog.i18n.bidi.endsWithRtl = function (a, b) {
- return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a, b));
- };
- goog.i18n.bidi.isRtlExitText = goog.i18n.bidi.endsWithRtl;
- goog.i18n.bidi.rtlLocalesRe_ = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;
- goog.i18n.bidi.isRtlLanguage = function (a) {
- return goog.i18n.bidi.rtlLocalesRe_.test(a);
- };
- goog.i18n.bidi.bracketGuardTextRe_ = /(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;
- goog.i18n.bidi.guardBracketInText = function (a, b) {
- b = (void 0 === b ? goog.i18n.bidi.hasAnyRtl(a) : b) ? goog.i18n.bidi.Format.RLM : goog.i18n.bidi.Format.LRM;
- return a.replace(goog.i18n.bidi.bracketGuardTextRe_, b + "$&" + b);
- };
- goog.i18n.bidi.enforceRtlInHtml = function (a) {
- return "<" == a.charAt(0) ? a.replace(/<\w+/, "$& dir=rtl") : "\n<span dir=rtl>" + a + "</span>";
- };
- goog.i18n.bidi.enforceRtlInText = function (a) {
- return goog.i18n.bidi.Format.RLE + a + goog.i18n.bidi.Format.PDF;
- };
- goog.i18n.bidi.enforceLtrInHtml = function (a) {
- return "<" == a.charAt(0) ? a.replace(/<\w+/, "$& dir=ltr") : "\n<span dir=ltr>" + a + "</span>";
- };
- goog.i18n.bidi.enforceLtrInText = function (a) {
- return goog.i18n.bidi.Format.LRE + a + goog.i18n.bidi.Format.PDF;
- };
- goog.i18n.bidi.dimensionsRe_ = /:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;
- goog.i18n.bidi.leftRe_ = /left/gi;
- goog.i18n.bidi.rightRe_ = /right/gi;
- goog.i18n.bidi.tempRe_ = /%%%%/g;
- goog.i18n.bidi.mirrorCSS = function (a) {
- return a.replace(goog.i18n.bidi.dimensionsRe_, ":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_, "%%%%").replace(goog.i18n.bidi.rightRe_, goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_, goog.i18n.bidi.RIGHT);
- };
- goog.i18n.bidi.doubleQuoteSubstituteRe_ = /([\u0591-\u05f2])"/g;
- goog.i18n.bidi.singleQuoteSubstituteRe_ = /([\u0591-\u05f2])'/g;
- goog.i18n.bidi.normalizeHebrewQuote = function (a) {
- return a.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_, "$1\u05F4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_, "$1\u05F3");
- };
- goog.i18n.bidi.wordSeparatorRe_ = /\s+/;
- goog.i18n.bidi.hasNumeralsRe_ = /[\d\u06f0-\u06f9]/;
- goog.i18n.bidi.rtlDetectionThreshold_ = .4;
- goog.i18n.bidi.estimateDirection = function (a, b) {
- var c = 0,
- d = 0,
- e = !1;
- a = goog.i18n.bidi.stripHtmlIfNeeded_(a, b).split(goog.i18n.bidi.wordSeparatorRe_);
- for (b = 0; b < a.length; b++) {
- var f = a[b];
- goog.i18n.bidi.startsWithRtl(f) ? (c++, d++) : goog.i18n.bidi.isRequiredLtrRe_.test(f) ? e = !0 : goog.i18n.bidi.hasAnyLtr(f) ? d++ : goog.i18n.bidi.hasNumeralsRe_.test(f) && (e = !0);
- }
- return 0 == d ? e ? goog.i18n.bidi.Dir.LTR : goog.i18n.bidi.Dir.NEUTRAL : c / d > goog.i18n.bidi.rtlDetectionThreshold_ ? goog.i18n.bidi.Dir.RTL : goog.i18n.bidi.Dir.LTR;
- };
- goog.i18n.bidi.detectRtlDirectionality = function (a, b) {
- return goog.i18n.bidi.estimateDirection(a, b) == goog.i18n.bidi.Dir.RTL;
- };
- goog.i18n.bidi.setElementDirAndAlign = function (a, b) {
- a && (b = goog.i18n.bidi.toDir(b)) && (a.style.textAlign = b == goog.i18n.bidi.Dir.RTL ? goog.i18n.bidi.RIGHT : goog.i18n.bidi.LEFT, a.dir = b == goog.i18n.bidi.Dir.RTL ? "rtl" : "ltr");
- };
- goog.i18n.bidi.setElementDirByTextDirectionality = function (a, b) {
- switch (goog.i18n.bidi.estimateDirection(b)) {
- case goog.i18n.bidi.Dir.LTR:
- a.dir = "ltr";
- break;
- case goog.i18n.bidi.Dir.RTL:
- a.dir = "rtl";
- break;
- default:
- a.removeAttribute("dir");
- }
- };
- goog.i18n.bidi.DirectionalString = function () {};
- goog.html.TrustedResourceUrl = function (a, b) {
- this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ = a === goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_ && b || "";
- this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- };
- goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString = !0;
- goog.html.TrustedResourceUrl.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString();
- };
- goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString = !0;
- goog.html.TrustedResourceUrl.prototype.getDirection = function () {
- return goog.i18n.bidi.Dir.LTR;
- };
- goog.html.TrustedResourceUrl.prototype.cloneWithParams = function (a, b) {
- var c = goog.html.TrustedResourceUrl.unwrap(this);
- c = goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(c);
- var d = c[3] || "";
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(c[1] + goog.html.TrustedResourceUrl.stringifyParams_("?", c[2] || "", a) + goog.html.TrustedResourceUrl.stringifyParams_("#", d, b));
- };
- goog.DEBUG && (goog.html.TrustedResourceUrl.prototype.toString = function () {
- return "TrustedResourceUrl{" + this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_ + "}";
- });
- goog.html.TrustedResourceUrl.unwrap = function (a) {
- return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(a).toString();
- };
- goog.html.TrustedResourceUrl.unwrapTrustedScriptURL = function (a) {
- if (a instanceof goog.html.TrustedResourceUrl && a.constructor === goog.html.TrustedResourceUrl && a.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;
- goog.asserts.fail("expected object of type TrustedResourceUrl, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:TrustedResourceUrl";
- };
- goog.html.TrustedResourceUrl.format = function (a, b) {
- var c = goog.string.Const.unwrap(a);
- if (!goog.html.TrustedResourceUrl.BASE_URL_.test(c)) throw Error("Invalid TrustedResourceUrl format: " + c);
- a = c.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_, function (a, e) {
- if (!Object.prototype.hasOwnProperty.call(b, e)) throw Error('Found marker, "' + e + '", in format string, "' + c + '", but no valid label mapping found in args: ' + JSON.stringify(b));
- a = b[e];
- return a instanceof goog.string.Const ? goog.string.Const.unwrap(a) : encodeURIComponent(String(a));
- });
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
- goog.html.TrustedResourceUrl.BASE_URL_ = /^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i;
- goog.html.TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
- goog.html.TrustedResourceUrl.formatWithParams = function (a, b, c, d) {
- return goog.html.TrustedResourceUrl.format(a, b).cloneWithParams(c, d);
- };
- goog.html.TrustedResourceUrl.fromConstant = function (a) {
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(a));
- };
- goog.html.TrustedResourceUrl.fromConstants = function (a) {
- for (var b = "", c = 0; c < a.length; c++) {
- b += goog.string.Const.unwrap(a[c]);
- }
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.TrustedResourceUrl.fromSafeScript = function (a) {
- a = goog.fs.blob.getBlobWithProperties([goog.html.SafeScript.unwrap(a)], "text/javascript");
- a = goog.fs.url.createObjectUrl(a);
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse = function (a) {
- a = goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY ? goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(a) : a;
- return new goog.html.TrustedResourceUrl(goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_, a);
- };
- goog.html.TrustedResourceUrl.stringifyParams_ = function (a, b, c) {
- if (null == c) return b;
- if ("string" === typeof c) return c ? a + encodeURIComponent(c) : "";
- for (var d in c) {
- var e = c[d];
- e = Array.isArray(e) ? e : [e];
- for (var f = 0; f < e.length; f++) {
- var g = e[f];
- null != g && (b || (b = a), b += (b.length > a.length ? "&" : "") + encodeURIComponent(d) + "=" + encodeURIComponent(String(g)));
- }
- }
- return b;
- };
- goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_ = {};
- goog.string.internal = {};
- goog.string.internal.startsWith = function (a, b) {
- return 0 == a.lastIndexOf(b, 0);
- };
- goog.string.internal.endsWith = function (a, b) {
- var c = a.length - b.length;
- return 0 <= c && a.indexOf(b, c) == c;
- };
- goog.string.internal.caseInsensitiveStartsWith = function (a, b) {
- return 0 == goog.string.internal.caseInsensitiveCompare(b, a.substr(0, b.length));
- };
- goog.string.internal.caseInsensitiveEndsWith = function (a, b) {
- return 0 == goog.string.internal.caseInsensitiveCompare(b, a.substr(a.length - b.length, b.length));
- };
- goog.string.internal.caseInsensitiveEquals = function (a, b) {
- return a.toLowerCase() == b.toLowerCase();
- };
- goog.string.internal.isEmptyOrWhitespace = function (a) {
- return /^[\s\xa0]*$/.test(a);
- };
- goog.string.internal.trim = goog.TRUSTED_SITE && String.prototype.trim ? function (a) {
- return a.trim();
- } : function (a) {
- return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1];
- };
- goog.string.internal.caseInsensitiveCompare = function (a, b) {
- a = String(a).toLowerCase();
- b = String(b).toLowerCase();
- return a < b ? -1 : a == b ? 0 : 1;
- };
- goog.string.internal.newLineToBr = function (a, b) {
- return a.replace(/(\r\n|\r|\n)/g, b ? "<br />" : "<br>");
- };
- goog.string.internal.htmlEscape = function (a, b) {
- if (b) a = a.replace(goog.string.internal.AMP_RE_, "&").replace(goog.string.internal.LT_RE_, "<").replace(goog.string.internal.GT_RE_, ">").replace(goog.string.internal.QUOT_RE_, """).replace(goog.string.internal.SINGLE_QUOTE_RE_, "'").replace(goog.string.internal.NULL_RE_, "�");else {
- if (!goog.string.internal.ALL_RE_.test(a)) return a;
- -1 != a.indexOf("&") && (a = a.replace(goog.string.internal.AMP_RE_, "&"));
- -1 != a.indexOf("<") && (a = a.replace(goog.string.internal.LT_RE_, "<"));
- -1 != a.indexOf(">") && (a = a.replace(goog.string.internal.GT_RE_, ">"));
- -1 != a.indexOf('"') && (a = a.replace(goog.string.internal.QUOT_RE_, """));
- -1 != a.indexOf("'") && (a = a.replace(goog.string.internal.SINGLE_QUOTE_RE_, "'"));
- -1 != a.indexOf("\x00") && (a = a.replace(goog.string.internal.NULL_RE_, "�"));
- }
- return a;
- };
- goog.string.internal.AMP_RE_ = /&/g;
- goog.string.internal.LT_RE_ = /</g;
- goog.string.internal.GT_RE_ = />/g;
- goog.string.internal.QUOT_RE_ = /"/g;
- goog.string.internal.SINGLE_QUOTE_RE_ = /'/g;
- goog.string.internal.NULL_RE_ = /\x00/g;
- goog.string.internal.ALL_RE_ = /[\x00&<>"']/;
- goog.string.internal.whitespaceEscape = function (a, b) {
- return goog.string.internal.newLineToBr(a.replace(/ /g, "  "), b);
- };
- goog.string.internal.contains = function (a, b) {
- return -1 != a.indexOf(b);
- };
- goog.string.internal.caseInsensitiveContains = function (a, b) {
- return goog.string.internal.contains(a.toLowerCase(), b.toLowerCase());
- };
- goog.string.internal.compareVersions = function (a, b) {
- var c = 0;
- a = goog.string.internal.trim(String(a)).split(".");
- b = goog.string.internal.trim(String(b)).split(".");
- for (var d = Math.max(a.length, b.length), e = 0; 0 == c && e < d; e++) {
- var f = a[e] || "",
- g = b[e] || "";
- do {
- f = /(\d*)(\D*)(.*)/.exec(f) || ["", "", "", ""];
- g = /(\d*)(\D*)(.*)/.exec(g) || ["", "", "", ""];
- if (0 == f[0].length && 0 == g[0].length) break;
- c = 0 == f[1].length ? 0 : parseInt(f[1], 10);
- var h = 0 == g[1].length ? 0 : parseInt(g[1], 10);
- c = goog.string.internal.compareElements_(c, h) || goog.string.internal.compareElements_(0 == f[2].length, 0 == g[2].length) || goog.string.internal.compareElements_(f[2], g[2]);
- f = f[3];
- g = g[3];
- } while (0 == c);
- }
- return c;
- };
- goog.string.internal.compareElements_ = function (a, b) {
- return a < b ? -1 : a > b ? 1 : 0;
- };
- goog.html.SafeUrl = function (a, b) {
- this.privateDoNotAccessOrElseSafeUrlWrappedValue_ = a === goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ && b || "";
- this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- };
- goog.html.SafeUrl.INNOCUOUS_STRING = "about:invalid#zClosurez";
- goog.html.SafeUrl.prototype.implementsGoogStringTypedString = !0;
- goog.html.SafeUrl.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString();
- };
- goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString = !0;
- goog.html.SafeUrl.prototype.getDirection = function () {
- return goog.i18n.bidi.Dir.LTR;
- };
- goog.DEBUG && (goog.html.SafeUrl.prototype.toString = function () {
- return "SafeUrl{" + this.privateDoNotAccessOrElseSafeUrlWrappedValue_ + "}";
- });
- goog.html.SafeUrl.unwrap = function (a) {
- if (a instanceof goog.html.SafeUrl && a.constructor === goog.html.SafeUrl && a.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseSafeUrlWrappedValue_;
- goog.asserts.fail("expected object of type SafeUrl, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:SafeUrl";
- };
- goog.html.SafeUrl.fromConstant = function (a) {
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(a));
- };
- goog.html.SAFE_MIME_TYPE_PATTERN_ = /^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i;
- goog.html.SafeUrl.isSafeMimeType = function (a) {
- return goog.html.SAFE_MIME_TYPE_PATTERN_.test(a);
- };
- goog.html.SafeUrl.fromBlob = function (a) {
- a = goog.html.SafeUrl.isSafeMimeType(a.type) ? goog.fs.url.createObjectUrl(a) : goog.html.SafeUrl.INNOCUOUS_STRING;
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.fromMediaSource = function (a) {
- goog.asserts.assert("MediaSource" in goog.global, "No support for MediaSource");
- a = a instanceof MediaSource ? goog.fs.url.createObjectUrl(a) : goog.html.SafeUrl.INNOCUOUS_STRING;
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.DATA_URL_PATTERN_ = /^data:(.*);base64,[a-z0-9+\/]+=*$/i;
- goog.html.SafeUrl.fromDataUrl = function (a) {
- a = a.replace(/(%0A|%0D)/g, "");
- var b = a.match(goog.html.DATA_URL_PATTERN_);
- b = b && goog.html.SafeUrl.isSafeMimeType(b[1]);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b ? a : goog.html.SafeUrl.INNOCUOUS_STRING);
- };
- goog.html.SafeUrl.fromTelUrl = function (a) {
- goog.string.internal.caseInsensitiveStartsWith(a, "tel:") || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SIP_URL_PATTERN_ = /^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i;
- goog.html.SafeUrl.fromSipUrl = function (a) {
- goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(a)) || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.fromFacebookMessengerUrl = function (a) {
- goog.string.internal.caseInsensitiveStartsWith(a, "fb-messenger://share") || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.fromWhatsAppUrl = function (a) {
- goog.string.internal.caseInsensitiveStartsWith(a, "whatsapp://send") || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.fromSmsUrl = function (a) {
- goog.string.internal.caseInsensitiveStartsWith(a, "sms:") && goog.html.SafeUrl.isSmsUrlBodyValid_(a) || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.isSmsUrlBodyValid_ = function (a) {
- var b = a.indexOf("#");
- 0 < b && (a = a.substring(0, b));
- b = a.match(/[?&]body=/gi);
- if (!b) return !0;
- if (1 < b.length) return !1;
- a = a.match(/[?&]body=([^&]*)/)[1];
- if (!a) return !0;
- try {
- decodeURIComponent(a);
- } catch (c) {
- return !1;
- }
- return /^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a);
- };
- goog.html.SafeUrl.fromSshUrl = function (a) {
- goog.string.internal.caseInsensitiveStartsWith(a, "ssh://") || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.sanitizeChromeExtensionUrl = function (a, b) {
- return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//, a, b);
- };
- goog.html.SafeUrl.sanitizeFirefoxExtensionUrl = function (a, b) {
- return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//, a, b);
- };
- goog.html.SafeUrl.sanitizeEdgeExtensionUrl = function (a, b) {
- return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//, a, b);
- };
- goog.html.SafeUrl.sanitizeExtensionUrl_ = function (a, b, c) {
- (a = a.exec(b)) ? (a = a[1], -1 == (c instanceof goog.string.Const ? [goog.string.Const.unwrap(c)] : c.map(function (a) {
- return goog.string.Const.unwrap(a);
- })).indexOf(a) && (b = goog.html.SafeUrl.INNOCUOUS_STRING)) : b = goog.html.SafeUrl.INNOCUOUS_STRING;
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.SafeUrl.fromTrustedResourceUrl = function (a) {
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(a));
- };
- goog.html.SAFE_URL_PATTERN_ = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;
- goog.html.SafeUrl.SAFE_URL_PATTERN = goog.html.SAFE_URL_PATTERN_;
- goog.html.SafeUrl.sanitize = function (a) {
- if (a instanceof goog.html.SafeUrl) return a;
- a = "object" == _typeof(a) && a.implementsGoogStringTypedString ? a.getTypedStringValue() : String(a);
- goog.html.SAFE_URL_PATTERN_.test(a) || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.sanitizeAssertUnchanged = function (a, b) {
- if (a instanceof goog.html.SafeUrl) return a;
- a = "object" == _typeof(a) && a.implementsGoogStringTypedString ? a.getTypedStringValue() : String(a);
- if (b && /^data:/i.test(a) && (b = goog.html.SafeUrl.fromDataUrl(a), b.getTypedStringValue() == a)) return b;
- goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(a), "%s does not match the safe URL pattern", a) || (a = goog.html.SafeUrl.INNOCUOUS_STRING);
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse = function (a) {
- return new goog.html.SafeUrl(goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_, a);
- };
- goog.html.SafeUrl.ABOUT_BLANK = goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank");
- goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_ = {};
- goog.html.SafeStyle = function () {
- this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = "";
- this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- };
- goog.html.SafeStyle.prototype.implementsGoogStringTypedString = !0;
- goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.SafeStyle.fromConstant = function (a) {
- a = goog.string.Const.unwrap(a);
- if (0 === a.length) return goog.html.SafeStyle.EMPTY;
- goog.asserts.assert(goog.string.internal.endsWith(a, ";"), "Last character of style string is not ';': " + a);
- goog.asserts.assert(goog.string.internal.contains(a, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + a);
- return goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeStyle.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseSafeStyleWrappedValue_;
- };
- goog.DEBUG && (goog.html.SafeStyle.prototype.toString = function () {
- return "SafeStyle{" + this.privateDoNotAccessOrElseSafeStyleWrappedValue_ + "}";
- });
- goog.html.SafeStyle.unwrap = function (a) {
- if (a instanceof goog.html.SafeStyle && a.constructor === goog.html.SafeStyle && a.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;
- goog.asserts.fail("expected object of type SafeStyle, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:SafeStyle";
- };
- goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse = function (a) {
- return new goog.html.SafeStyle().initSecurityPrivateDoNotAccessOrElse_(a);
- };
- goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_ = function (a) {
- this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = a;
- return this;
- };
- goog.html.SafeStyle.EMPTY = goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse("");
- goog.html.SafeStyle.INNOCUOUS_STRING = "zClosurez";
- goog.html.SafeStyle.create = function (a) {
- var b = "",
- c;
- for (c in a) {
- if (!/^[-_a-zA-Z0-9]+$/.test(c)) throw Error("Name allows only [-_a-zA-Z0-9], got: " + c);
- var d = a[c];
- null != d && (d = Array.isArray(d) ? goog.array.map(d, goog.html.SafeStyle.sanitizePropertyValue_).join(" ") : goog.html.SafeStyle.sanitizePropertyValue_(d), b += c + ":" + d + ";");
- }
- return b ? goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b) : goog.html.SafeStyle.EMPTY;
- };
- goog.html.SafeStyle.sanitizePropertyValue_ = function (a) {
- if (a instanceof goog.html.SafeUrl) return 'url("' + goog.html.SafeUrl.unwrap(a).replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
- a = a instanceof goog.string.Const ? goog.string.Const.unwrap(a) : goog.html.SafeStyle.sanitizePropertyValueString_(String(a));
- if (/[{;}]/.test(a)) throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.", [a]);
- return a;
- };
- goog.html.SafeStyle.sanitizePropertyValueString_ = function (a) {
- var b = a.replace(goog.html.SafeStyle.FUNCTIONS_RE_, "$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_, "$1").replace(goog.html.SafeStyle.URL_RE_, "url");
- if (goog.html.SafeStyle.VALUE_RE_.test(b)) {
- if (goog.html.SafeStyle.COMMENT_RE_.test(a)) return goog.asserts.fail("String value disallows comments, got: " + a), goog.html.SafeStyle.INNOCUOUS_STRING;
- if (!goog.html.SafeStyle.hasBalancedQuotes_(a)) return goog.asserts.fail("String value requires balanced quotes, got: " + a), goog.html.SafeStyle.INNOCUOUS_STRING;
- if (!goog.html.SafeStyle.hasBalancedSquareBrackets_(a)) return goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: " + a), goog.html.SafeStyle.INNOCUOUS_STRING;
- } else return goog.asserts.fail("String value allows only " + goog.html.SafeStyle.VALUE_ALLOWED_CHARS_ + " and simple functions, got: " + a), goog.html.SafeStyle.INNOCUOUS_STRING;
- return goog.html.SafeStyle.sanitizeUrl_(a);
- };
- goog.html.SafeStyle.hasBalancedQuotes_ = function (a) {
- for (var b = !0, c = !0, d = 0; d < a.length; d++) {
- var e = a.charAt(d);
- "'" == e && c ? b = !b : '"' == e && b && (c = !c);
- }
- return b && c;
- };
- goog.html.SafeStyle.hasBalancedSquareBrackets_ = function (a) {
- for (var b = !0, c = /^[-_a-zA-Z0-9]$/, d = 0; d < a.length; d++) {
- var e = a.charAt(d);
- if ("]" == e) {
- if (b) return !1;
- b = !0;
- } else if ("[" == e) {
- if (!b) return !1;
- b = !1;
- } else if (!b && !c.test(e)) return !1;
- }
- return b;
- };
- goog.html.SafeStyle.VALUE_ALLOWED_CHARS_ = "[-,.\"'%_!# a-zA-Z0-9\\[\\]]";
- goog.html.SafeStyle.VALUE_RE_ = new RegExp("^" + goog.html.SafeStyle.VALUE_ALLOWED_CHARS_ + "+$");
- goog.html.SafeStyle.URL_RE_ = /\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g;
- goog.html.SafeStyle.ALLOWED_FUNCTIONS_ = "calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" ");
- goog.html.SafeStyle.FUNCTIONS_RE_ = new RegExp("\\b(" + goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|") + ")\\([-+*/0-9a-z.%\\[\\], ]+\\)", "g");
- goog.html.SafeStyle.COMMENT_RE_ = /\/\*/;
- goog.html.SafeStyle.sanitizeUrl_ = function (a) {
- return a.replace(goog.html.SafeStyle.URL_RE_, function (a, c, d, e) {
- var b = "";
- d = d.replace(/^(['"])(.*)\1$/, function (a, c, d) {
- b = c;
- return d;
- });
- a = goog.html.SafeUrl.sanitize(d).getTypedStringValue();
- return c + b + a + b + e;
- });
- };
- goog.html.SafeStyle.concat = function (a) {
- var b = "",
- c = function c(a) {
- Array.isArray(a) ? goog.array.forEach(a, c) : b += goog.html.SafeStyle.unwrap(a);
- };
- goog.array.forEach(arguments, c);
- return b ? goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b) : goog.html.SafeStyle.EMPTY;
- };
- goog.html.SafeStyleSheet = function () {
- this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = "";
- this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- };
- goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString = !0;
- goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.SafeStyleSheet.createRule = function (a, b) {
- if (goog.string.internal.contains(a, "<")) throw Error("Selector does not allow '<', got: " + a);
- var c = a.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
- if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(c)) throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: " + a);
- if (!goog.html.SafeStyleSheet.hasBalancedBrackets_(c)) throw Error("() and [] in selector must be balanced, got: " + a);
- b instanceof goog.html.SafeStyle || (b = goog.html.SafeStyle.create(b));
- a = a + "{" + goog.html.SafeStyle.unwrap(b).replace(/</g, "\\3C ") + "}";
- return goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeStyleSheet.hasBalancedBrackets_ = function (a) {
- for (var b = {
- "(": ")",
- "[": "]"
- }, c = [], d = 0; d < a.length; d++) {
- var e = a[d];
- if (b[e]) c.push(b[e]);else if (goog.object.contains(b, e) && c.pop() != e) return !1;
- }
- return 0 == c.length;
- };
- goog.html.SafeStyleSheet.concat = function (a) {
- var b = "",
- c = function c(a) {
- Array.isArray(a) ? goog.array.forEach(a, c) : b += goog.html.SafeStyleSheet.unwrap(a);
- };
- goog.array.forEach(arguments, c);
- return goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.SafeStyleSheet.fromConstant = function (a) {
- a = goog.string.Const.unwrap(a);
- if (0 === a.length) return goog.html.SafeStyleSheet.EMPTY;
- goog.asserts.assert(!goog.string.internal.contains(a, "<"), "Forbidden '<' character in style sheet string: " + a);
- return goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(a);
- };
- goog.html.SafeStyleSheet.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
- };
- goog.DEBUG && (goog.html.SafeStyleSheet.prototype.toString = function () {
- return "SafeStyleSheet{" + this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ + "}";
- });
- goog.html.SafeStyleSheet.unwrap = function (a) {
- if (a instanceof goog.html.SafeStyleSheet && a.constructor === goog.html.SafeStyleSheet && a.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_;
- goog.asserts.fail("expected object of type SafeStyleSheet, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:SafeStyleSheet";
- };
- goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse = function (a) {
- return new goog.html.SafeStyleSheet().initSecurityPrivateDoNotAccessOrElse_(a);
- };
- goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_ = function (a) {
- this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = a;
- return this;
- };
- goog.html.SafeStyleSheet.EMPTY = goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse("");
- goog.labs = {};
- goog.labs.userAgent = {};
- goog.labs.userAgent.util = {};
- goog.labs.userAgent.util.getNativeUserAgentString_ = function () {
- var a = goog.labs.userAgent.util.getNavigator_();
- return a && (a = a.userAgent) ? a : "";
- };
- goog.labs.userAgent.util.getNavigator_ = function () {
- return goog.global.navigator;
- };
- goog.labs.userAgent.util.userAgent_ = goog.labs.userAgent.util.getNativeUserAgentString_();
- goog.labs.userAgent.util.setUserAgent = function (a) {
- goog.labs.userAgent.util.userAgent_ = a || goog.labs.userAgent.util.getNativeUserAgentString_();
- };
- goog.labs.userAgent.util.getUserAgent = function () {
- return goog.labs.userAgent.util.userAgent_;
- };
- goog.labs.userAgent.util.matchUserAgent = function (a) {
- var b = goog.labs.userAgent.util.getUserAgent();
- return goog.string.internal.contains(b, a);
- };
- goog.labs.userAgent.util.matchUserAgentIgnoreCase = function (a) {
- var b = goog.labs.userAgent.util.getUserAgent();
- return goog.string.internal.caseInsensitiveContains(b, a);
- };
- goog.labs.userAgent.util.extractVersionTuples = function (a) {
- for (var b = /(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g, c = [], d; d = b.exec(a);) {
- c.push([d[1], d[2], d[3] || void 0]);
- }
- return c;
- };
- goog.labs.userAgent.browser = {};
- goog.labs.userAgent.browser.matchOpera_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Opera");
- };
- goog.labs.userAgent.browser.matchIE_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Trident") || goog.labs.userAgent.util.matchUserAgent("MSIE");
- };
- goog.labs.userAgent.browser.matchEdgeHtml_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Edge");
- };
- goog.labs.userAgent.browser.matchEdgeChromium_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Edg/");
- };
- goog.labs.userAgent.browser.matchOperaChromium_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("OPR");
- };
- goog.labs.userAgent.browser.matchFirefox_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Firefox") || goog.labs.userAgent.util.matchUserAgent("FxiOS");
- };
- goog.labs.userAgent.browser.matchSafari_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Safari") && !(goog.labs.userAgent.browser.matchChrome_() || goog.labs.userAgent.browser.matchCoast_() || goog.labs.userAgent.browser.matchOpera_() || goog.labs.userAgent.browser.matchEdgeHtml_() || goog.labs.userAgent.browser.matchEdgeChromium_() || goog.labs.userAgent.browser.matchOperaChromium_() || goog.labs.userAgent.browser.matchFirefox_() || goog.labs.userAgent.browser.isSilk() || goog.labs.userAgent.util.matchUserAgent("Android"));
- };
- goog.labs.userAgent.browser.matchCoast_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Coast");
- };
- goog.labs.userAgent.browser.matchIosWebview_ = function () {
- return (goog.labs.userAgent.util.matchUserAgent("iPad") || goog.labs.userAgent.util.matchUserAgent("iPhone")) && !goog.labs.userAgent.browser.matchSafari_() && !goog.labs.userAgent.browser.matchChrome_() && !goog.labs.userAgent.browser.matchCoast_() && !goog.labs.userAgent.browser.matchFirefox_() && goog.labs.userAgent.util.matchUserAgent("AppleWebKit");
- };
- goog.labs.userAgent.browser.matchChrome_ = function () {
- return (goog.labs.userAgent.util.matchUserAgent("Chrome") || goog.labs.userAgent.util.matchUserAgent("CriOS")) && !goog.labs.userAgent.browser.matchEdgeHtml_();
- };
- goog.labs.userAgent.browser.matchAndroidBrowser_ = function () {
- return goog.labs.userAgent.util.matchUserAgent("Android") && !(goog.labs.userAgent.browser.isChrome() || goog.labs.userAgent.browser.isFirefox() || goog.labs.userAgent.browser.isOpera() || goog.labs.userAgent.browser.isSilk());
- };
- goog.labs.userAgent.browser.isOpera = goog.labs.userAgent.browser.matchOpera_;
- goog.labs.userAgent.browser.isIE = goog.labs.userAgent.browser.matchIE_;
- goog.labs.userAgent.browser.isEdge = goog.labs.userAgent.browser.matchEdgeHtml_;
- goog.labs.userAgent.browser.isEdgeChromium = goog.labs.userAgent.browser.matchEdgeChromium_;
- goog.labs.userAgent.browser.isOperaChromium = goog.labs.userAgent.browser.matchOperaChromium_;
- goog.labs.userAgent.browser.isFirefox = goog.labs.userAgent.browser.matchFirefox_;
- goog.labs.userAgent.browser.isSafari = goog.labs.userAgent.browser.matchSafari_;
- goog.labs.userAgent.browser.isCoast = goog.labs.userAgent.browser.matchCoast_;
- goog.labs.userAgent.browser.isIosWebview = goog.labs.userAgent.browser.matchIosWebview_;
- goog.labs.userAgent.browser.isChrome = goog.labs.userAgent.browser.matchChrome_;
- goog.labs.userAgent.browser.isAndroidBrowser = goog.labs.userAgent.browser.matchAndroidBrowser_;
- goog.labs.userAgent.browser.isSilk = function () {
- return goog.labs.userAgent.util.matchUserAgent("Silk");
- };
- goog.labs.userAgent.browser.getVersion = function () {
- function a(a) {
- a = goog.array.find(a, d);
- return c[a] || "";
- }
- var b = goog.labs.userAgent.util.getUserAgent();
- if (goog.labs.userAgent.browser.isIE()) return goog.labs.userAgent.browser.getIEVersion_(b);
- b = goog.labs.userAgent.util.extractVersionTuples(b);
- var c = {};
- goog.array.forEach(b, function (a) {
- c[a[0]] = a[1];
- });
- var d = goog.partial(goog.object.containsKey, c);
- return goog.labs.userAgent.browser.isOpera() ? a(["Version", "Opera"]) : goog.labs.userAgent.browser.isEdge() ? a(["Edge"]) : goog.labs.userAgent.browser.isEdgeChromium() ? a(["Edg"]) : goog.labs.userAgent.browser.isChrome() ? a(["Chrome", "CriOS", "HeadlessChrome"]) : (b = b[2]) && b[1] || "";
- };
- goog.labs.userAgent.browser.isVersionOrHigher = function (a) {
- return 0 <= goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(), a);
- };
- goog.labs.userAgent.browser.getIEVersion_ = function (a) {
- var b = /rv: *([\d\.]*)/.exec(a);
- if (b && b[1]) return b[1];
- b = "";
- var c = /MSIE +([\d\.]+)/.exec(a);
- if (c && c[1]) if (a = /Trident\/(\d.\d)/.exec(a), "7.0" == c[1]) {
- if (a && a[1]) switch (a[1]) {
- case "4.0":
- b = "8.0";
- break;
- case "5.0":
- b = "9.0";
- break;
- case "6.0":
- b = "10.0";
- break;
- case "7.0":
- b = "11.0";
- } else b = "7.0";
- } else b = c[1];
- return b;
- };
- goog.html.SafeHtml = function () {
- this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = "";
- this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;
- this.dir_ = null;
- };
- goog.html.SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
- goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
- goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString = !0;
- goog.html.SafeHtml.prototype.getDirection = function () {
- return this.dir_;
- };
- goog.html.SafeHtml.prototype.implementsGoogStringTypedString = !0;
- goog.html.SafeHtml.prototype.getTypedStringValue = function () {
- return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString();
- };
- goog.DEBUG && (goog.html.SafeHtml.prototype.toString = function () {
- return "SafeHtml{" + this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ + "}";
- });
- goog.html.SafeHtml.unwrap = function (a) {
- return goog.html.SafeHtml.unwrapTrustedHTML(a).toString();
- };
- goog.html.SafeHtml.unwrapTrustedHTML = function (a) {
- if (a instanceof goog.html.SafeHtml && a.constructor === goog.html.SafeHtml && a.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ === goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_) return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;
- goog.asserts.fail("expected object of type SafeHtml, got '" + a + "' of type " + goog.typeOf(a));
- return "type_error:SafeHtml";
- };
- goog.html.SafeHtml.htmlEscape = function (a) {
- if (a instanceof goog.html.SafeHtml) return a;
- var b = "object" == _typeof(a),
- c = null;
- b && a.implementsGoogI18nBidiDirectionalString && (c = a.getDirection());
- a = b && a.implementsGoogStringTypedString ? a.getTypedStringValue() : String(a);
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(a), c);
- };
- goog.html.SafeHtml.htmlEscapePreservingNewlines = function (a) {
- if (a instanceof goog.html.SafeHtml) return a;
- a = goog.html.SafeHtml.htmlEscape(a);
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(a)), a.getDirection());
- };
- goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function (a) {
- if (a instanceof goog.html.SafeHtml) return a;
- a = goog.html.SafeHtml.htmlEscape(a);
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(a)), a.getDirection());
- };
- goog.html.SafeHtml.from = goog.html.SafeHtml.htmlEscape;
- goog.html.SafeHtml.comment = function (a) {
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--" + goog.string.internal.htmlEscape(a) + "--\x3e", null);
- };
- goog.html.SafeHtml.VALID_NAMES_IN_TAG_ = /^[a-zA-Z0-9-]+$/;
- goog.html.SafeHtml.URL_ATTRIBUTES_ = {
- action: !0,
- cite: !0,
- data: !0,
- formaction: !0,
- href: !0,
- manifest: !0,
- poster: !0,
- src: !0
- };
- goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_ = {
- APPLET: !0,
- BASE: !0,
- EMBED: !0,
- IFRAME: !0,
- LINK: !0,
- MATH: !0,
- META: !0,
- OBJECT: !0,
- SCRIPT: !0,
- STYLE: !0,
- SVG: !0,
- TEMPLATE: !0
- };
- goog.html.SafeHtml.create = function (a, b, c) {
- goog.html.SafeHtml.verifyTagName(String(a));
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(a), b, c);
- };
- goog.html.SafeHtml.verifyTagName = function (a) {
- if (!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(a)) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + a + ">." : "");
- if (a.toUpperCase() in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + a + "> is not allowed for SafeHtml." : "");
- };
- goog.html.SafeHtml.createIframe = function (a, b, c, d) {
- a && goog.html.TrustedResourceUrl.unwrap(a);
- var e = {};
- e.src = a || null;
- e.srcdoc = b && goog.html.SafeHtml.unwrap(b);
- a = goog.html.SafeHtml.combineAttributes(e, {
- sandbox: ""
- }, c);
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", a, d);
- };
- goog.html.SafeHtml.createSandboxIframe = function (a, b, c, d) {
- if (!goog.html.SafeHtml.canUseSandboxIframe()) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
- var e = {};
- e.src = a ? goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(a)) : null;
- e.srcdoc = b || null;
- e.sandbox = "";
- a = goog.html.SafeHtml.combineAttributes(e, {}, c);
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", a, d);
- };
- goog.html.SafeHtml.canUseSandboxIframe = function () {
- return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
- };
- goog.html.SafeHtml.createScriptSrc = function (a, b) {
- goog.html.TrustedResourceUrl.unwrap(a);
- a = goog.html.SafeHtml.combineAttributes({
- src: a
- }, {}, b);
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", a);
- };
- goog.html.SafeHtml.createScript = function (a, b) {
- for (var c in b) {
- var d = c.toLowerCase();
- if ("language" == d || "src" == d || "text" == d || "type" == d) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot set "' + d + '" attribute' : "");
- }
- c = "";
- a = goog.array.concat(a);
- for (d = 0; d < a.length; d++) {
- c += goog.html.SafeScript.unwrap(a[d]);
- }
- a = goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c, goog.i18n.bidi.Dir.NEUTRAL);
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", b, a);
- };
- goog.html.SafeHtml.createStyle = function (a, b) {
- b = goog.html.SafeHtml.combineAttributes({
- type: "text/css"
- }, {}, b);
- var c = "";
- a = goog.array.concat(a);
- for (var d = 0; d < a.length; d++) {
- c += goog.html.SafeStyleSheet.unwrap(a[d]);
- }
- a = goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(c, goog.i18n.bidi.Dir.NEUTRAL);
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", b, a);
- };
- goog.html.SafeHtml.createMetaRefresh = function (a, b) {
- a = goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(a));
- (goog.labs.userAgent.browser.isIE() || goog.labs.userAgent.browser.isEdge()) && goog.string.internal.contains(a, ";") && (a = "'" + a.replace(/'/g, "%27") + "'");
- return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {
- "http-equiv": "refresh",
- content: (b || 0) + "; url=" + a
- });
- };
- goog.html.SafeHtml.getAttrNameAndValue_ = function (a, b, c) {
- if (c instanceof goog.string.Const) c = goog.string.Const.unwrap(c);else if ("style" == b.toLowerCase()) {
- if (goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE) c = goog.html.SafeHtml.getStyleValue_(c);else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
- } else {
- if (/^on/i.test(b)) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + b + '" requires goog.string.Const value, "' + c + '" given.' : "");
- if (b.toLowerCase() in goog.html.SafeHtml.URL_ATTRIBUTES_) if (c instanceof goog.html.TrustedResourceUrl) c = goog.html.TrustedResourceUrl.unwrap(c);else if (c instanceof goog.html.SafeUrl) c = goog.html.SafeUrl.unwrap(c);else if ("string" === typeof c) c = goog.html.SafeUrl.sanitize(c).getTypedStringValue();else throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + b + '" on tag "' + a + '" requires goog.html.SafeUrl, goog.string.Const, or string, value "' + c + '" given.' : "");
- }
- c.implementsGoogStringTypedString && (c = c.getTypedStringValue());
- goog.asserts.assert("string" === typeof c || "number" === typeof c, "String or number value expected, got " + _typeof(c) + " with value: " + c);
- return b + '="' + goog.string.internal.htmlEscape(String(c)) + '"';
- };
- goog.html.SafeHtml.getStyleValue_ = function (a) {
- if (!goog.isObject(a)) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + _typeof(a) + " given: " + a : "");
- a instanceof goog.html.SafeStyle || (a = goog.html.SafeStyle.create(a));
- return goog.html.SafeStyle.unwrap(a);
- };
- goog.html.SafeHtml.createWithDir = function (a, b, c, d) {
- b = goog.html.SafeHtml.create(b, c, d);
- b.dir_ = a;
- return b;
- };
- goog.html.SafeHtml.join = function (a, b) {
- a = goog.html.SafeHtml.htmlEscape(a);
- var c = a.getDirection(),
- d = [],
- e = function e(a) {
- Array.isArray(a) ? goog.array.forEach(a, e) : (a = goog.html.SafeHtml.htmlEscape(a), d.push(goog.html.SafeHtml.unwrap(a)), a = a.getDirection(), c == goog.i18n.bidi.Dir.NEUTRAL ? c = a : a != goog.i18n.bidi.Dir.NEUTRAL && c != a && (c = null));
- };
- goog.array.forEach(b, e);
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(d.join(goog.html.SafeHtml.unwrap(a)), c);
- };
- goog.html.SafeHtml.concat = function (a) {
- return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
- };
- goog.html.SafeHtml.concatWithDir = function (a, b) {
- var c = goog.html.SafeHtml.concat(goog.array.slice(arguments, 1));
- c.dir_ = a;
- return c;
- };
- goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_ = {};
- goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse = function (a, b) {
- return new goog.html.SafeHtml().initSecurityPrivateDoNotAccessOrElse_(a, b);
- };
- goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_ = function (a, b) {
- this.privateDoNotAccessOrElseSafeHtmlWrappedValue_ = goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY ? goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(a) : a;
- this.dir_ = b;
- return this;
- };
- goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function (a, b, c) {
- var d = null;
- var e = "<" + a + goog.html.SafeHtml.stringifyAttributes(a, b);
- null == c ? c = [] : Array.isArray(c) || (c = [c]);
- goog.dom.tags.isVoidTag(a.toLowerCase()) ? (goog.asserts.assert(!c.length, "Void tag <" + a + "> does not allow content."), e += ">") : (d = goog.html.SafeHtml.concat(c), e += ">" + goog.html.SafeHtml.unwrap(d) + "</" + a + ">", d = d.getDirection());
- (a = b && b.dir) && (d = /^(ltr|rtl|auto)$/i.test(a) ? goog.i18n.bidi.Dir.NEUTRAL : null);
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(e, d);
- };
- goog.html.SafeHtml.stringifyAttributes = function (a, b) {
- var c = "";
- if (b) for (var d in b) {
- if (!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(d)) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + d + '".' : "");
- var e = b[d];
- null != e && (c += " " + goog.html.SafeHtml.getAttrNameAndValue_(a, d, e));
- }
- return c;
- };
- goog.html.SafeHtml.combineAttributes = function (a, b, c) {
- var d = {},
- e;
- for (e in a) {
- goog.asserts.assert(e.toLowerCase() == e, "Must be lower case"), d[e] = a[e];
- }
- for (e in b) {
- goog.asserts.assert(e.toLowerCase() == e, "Must be lower case"), d[e] = b[e];
- }
- if (c) for (e in c) {
- var f = e.toLowerCase();
- if (f in a) throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + f + '" attribute, got "' + e + '" with value "' + c[e] + '"' : "");
- f in b && delete d[f];
- d[e] = c[e];
- }
- return d;
- };
- goog.html.SafeHtml.DOCTYPE_HTML = goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>", goog.i18n.bidi.Dir.NEUTRAL);
- goog.html.SafeHtml.EMPTY = goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("", goog.i18n.bidi.Dir.NEUTRAL);
- goog.html.SafeHtml.BR = goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>", goog.i18n.bidi.Dir.NEUTRAL);
- goog.html.uncheckedconversions = {};
- goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract = function (a, b, c) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(b, c || null);
- };
- goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract = function (a, b) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract = function (a, b) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract = function (a, b) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract = function (a, b) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract = function (a, b) {
- goog.asserts.assertString(goog.string.Const.unwrap(a), "must provide justification");
- goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(a)), "must provide non-empty justification");
- return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(b);
- };
- goog.dom.safe = {};
- goog.dom.safe.InsertAdjacentHtmlPosition = {
- AFTERBEGIN: "afterbegin",
- AFTEREND: "afterend",
- BEFOREBEGIN: "beforebegin",
- BEFOREEND: "beforeend"
- };
- goog.dom.safe.insertAdjacentHtml = function (a, b, c) {
- a.insertAdjacentHTML(b, goog.html.SafeHtml.unwrapTrustedHTML(c));
- };
- goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {
- MATH: !0,
- SCRIPT: !0,
- STYLE: !0,
- SVG: !0,
- TEMPLATE: !0
- };
- goog.dom.safe.isInnerHtmlCleanupRecursive_ = goog.functions.cacheReturnValue(function () {
- if (goog.DEBUG && "undefined" === typeof document) return !1;
- var a = document.createElement("div"),
- b = document.createElement("div");
- b.appendChild(document.createElement("div"));
- a.appendChild(b);
- if (goog.DEBUG && !a.firstChild) return !1;
- b = a.firstChild.firstChild;
- a.innerHTML = goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY);
- return !b.parentElement;
- });
- goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse = function (a, b) {
- if (goog.dom.safe.isInnerHtmlCleanupRecursive_()) for (; a.lastChild;) {
- a.removeChild(a.lastChild);
- }
- a.innerHTML = goog.html.SafeHtml.unwrapTrustedHTML(b);
- };
- goog.dom.safe.setInnerHtml = function (a, b) {
- if (goog.asserts.ENABLE_ASSERTS) {
- var c = a.tagName.toUpperCase();
- if (goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[c]) throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of " + a.tagName + ".");
- }
- goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(a, b);
- };
- goog.dom.safe.setOuterHtml = function (a, b) {
- a.outerHTML = goog.html.SafeHtml.unwrapTrustedHTML(b);
- };
- goog.dom.safe.setFormElementAction = function (a, b) {
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- goog.dom.asserts.assertIsHTMLFormElement(a).action = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setButtonFormAction = function (a, b) {
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- goog.dom.asserts.assertIsHTMLButtonElement(a).formAction = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setInputFormAction = function (a, b) {
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- goog.dom.asserts.assertIsHTMLInputElement(a).formAction = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setStyle = function (a, b) {
- a.style.cssText = goog.html.SafeStyle.unwrap(b);
- };
- goog.dom.safe.documentWrite = function (a, b) {
- a.write(goog.html.SafeHtml.unwrapTrustedHTML(b));
- };
- goog.dom.safe.setAnchorHref = function (a, b) {
- goog.dom.asserts.assertIsHTMLAnchorElement(a);
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- a.href = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setImageSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLImageElement(a);
- if (!(b instanceof goog.html.SafeUrl)) {
- var c = /^data:image\//i.test(b);
- b = goog.html.SafeUrl.sanitizeAssertUnchanged(b, c);
- }
- a.src = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setAudioSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLAudioElement(a);
- if (!(b instanceof goog.html.SafeUrl)) {
- var c = /^data:audio\//i.test(b);
- b = goog.html.SafeUrl.sanitizeAssertUnchanged(b, c);
- }
- a.src = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setVideoSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLVideoElement(a);
- if (!(b instanceof goog.html.SafeUrl)) {
- var c = /^data:video\//i.test(b);
- b = goog.html.SafeUrl.sanitizeAssertUnchanged(b, c);
- }
- a.src = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.setEmbedSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLEmbedElement(a);
- a.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b);
- };
- goog.dom.safe.setFrameSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLFrameElement(a);
- a.src = goog.html.TrustedResourceUrl.unwrap(b);
- };
- goog.dom.safe.setIframeSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLIFrameElement(a);
- a.src = goog.html.TrustedResourceUrl.unwrap(b);
- };
- goog.dom.safe.setIframeSrcdoc = function (a, b) {
- goog.dom.asserts.assertIsHTMLIFrameElement(a);
- a.srcdoc = goog.html.SafeHtml.unwrapTrustedHTML(b);
- };
- goog.dom.safe.setLinkHrefAndRel = function (a, b, c) {
- goog.dom.asserts.assertIsHTMLLinkElement(a);
- a.rel = c;
- goog.string.internal.caseInsensitiveContains(c, "stylesheet") ? (goog.asserts.assert(b instanceof goog.html.TrustedResourceUrl, 'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'), a.href = goog.html.TrustedResourceUrl.unwrap(b)) : a.href = b instanceof goog.html.TrustedResourceUrl ? goog.html.TrustedResourceUrl.unwrap(b) : b instanceof goog.html.SafeUrl ? goog.html.SafeUrl.unwrap(b) : goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitizeAssertUnchanged(b));
- };
- goog.dom.safe.setObjectData = function (a, b) {
- goog.dom.asserts.assertIsHTMLObjectElement(a);
- a.data = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b);
- };
- goog.dom.safe.setScriptSrc = function (a, b) {
- goog.dom.asserts.assertIsHTMLScriptElement(a);
- a.src = goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(b);
- (b = goog.getScriptNonce()) && a.setAttribute("nonce", b);
- };
- goog.dom.safe.setScriptContent = function (a, b) {
- goog.dom.asserts.assertIsHTMLScriptElement(a);
- a.text = goog.html.SafeScript.unwrapTrustedScript(b);
- (b = goog.getScriptNonce()) && a.setAttribute("nonce", b);
- };
- goog.dom.safe.setLocationHref = function (a, b) {
- goog.dom.asserts.assertIsLocation(a);
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- a.href = goog.html.SafeUrl.unwrap(b);
- };
- goog.dom.safe.assignLocation = function (a, b) {
- goog.dom.asserts.assertIsLocation(a);
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- a.assign(goog.html.SafeUrl.unwrap(b));
- };
- goog.dom.safe.replaceLocation = function (a, b) {
- b = b instanceof goog.html.SafeUrl ? b : goog.html.SafeUrl.sanitizeAssertUnchanged(b);
- a.replace(goog.html.SafeUrl.unwrap(b));
- };
- goog.dom.safe.openInWindow = function (a, b, c, d, e) {
- a = a instanceof goog.html.SafeUrl ? a : goog.html.SafeUrl.sanitizeAssertUnchanged(a);
- b = b || goog.global;
- c = c instanceof goog.string.Const ? goog.string.Const.unwrap(c) : c || "";
- return b.open(goog.html.SafeUrl.unwrap(a), c, d, e);
- };
- goog.dom.safe.parseFromStringHtml = function (a, b) {
- return goog.dom.safe.parseFromString(a, b, "text/html");
- };
- goog.dom.safe.parseFromString = function (a, b, c) {
- return a.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(b), c);
- };
- goog.dom.safe.createImageFromBlob = function (a) {
- if (!/^image\/.*/g.test(a.type)) throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");
- var b = goog.global.URL.createObjectURL(a);
- a = new goog.global.Image();
- a.onload = function () {
- goog.global.URL.revokeObjectURL(b);
- };
- goog.dom.safe.setImageSrc(a, goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."), b));
- return a;
- };
- goog.string.DETECT_DOUBLE_ESCAPING = !1;
- goog.string.FORCE_NON_DOM_HTML_UNESCAPING = !1;
- goog.string.Unicode = {
- NBSP: "\xA0"
- };
- goog.string.startsWith = goog.string.internal.startsWith;
- goog.string.endsWith = goog.string.internal.endsWith;
- goog.string.caseInsensitiveStartsWith = goog.string.internal.caseInsensitiveStartsWith;
- goog.string.caseInsensitiveEndsWith = goog.string.internal.caseInsensitiveEndsWith;
- goog.string.caseInsensitiveEquals = goog.string.internal.caseInsensitiveEquals;
- goog.string.subs = function (a, b) {
- for (var c = a.split("%s"), d = "", e = Array.prototype.slice.call(arguments, 1); e.length && 1 < c.length;) {
- d += c.shift() + e.shift();
- }
- return d + c.join("%s");
- };
- goog.string.collapseWhitespace = function (a) {
- return a.replace(/[\s\xa0]+/g, " ").replace(/^\s+|\s+$/g, "");
- };
- goog.string.isEmptyOrWhitespace = goog.string.internal.isEmptyOrWhitespace;
- goog.string.isEmptyString = function (a) {
- return 0 == a.length;
- };
- goog.string.isEmpty = goog.string.isEmptyOrWhitespace;
- goog.string.isEmptyOrWhitespaceSafe = function (a) {
- return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a));
- };
- goog.string.isEmptySafe = goog.string.isEmptyOrWhitespaceSafe;
- goog.string.isBreakingWhitespace = function (a) {
- return !/[^\t\n\r ]/.test(a);
- };
- goog.string.isAlpha = function (a) {
- return !/[^a-zA-Z]/.test(a);
- };
- goog.string.isNumeric = function (a) {
- return !/[^0-9]/.test(a);
- };
- goog.string.isAlphaNumeric = function (a) {
- return !/[^a-zA-Z0-9]/.test(a);
- };
- goog.string.isSpace = function (a) {
- return " " == a;
- };
- goog.string.isUnicodeChar = function (a) {
- return 1 == a.length && " " <= a && "~" >= a || "\x80" <= a && "\uFFFD" >= a;
- };
- goog.string.stripNewlines = function (a) {
- return a.replace(/(\r\n|\r|\n)+/g, " ");
- };
- goog.string.canonicalizeNewlines = function (a) {
- return a.replace(/(\r\n|\r|\n)/g, "\n");
- };
- goog.string.normalizeWhitespace = function (a) {
- return a.replace(/\xa0|\s/g, " ");
- };
- goog.string.normalizeSpaces = function (a) {
- return a.replace(/\xa0|[ \t]+/g, " ");
- };
- goog.string.collapseBreakingSpaces = function (a) {
- return a.replace(/[\t\r\n ]+/g, " ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g, "");
- };
- goog.string.trim = goog.string.internal.trim;
- goog.string.trimLeft = function (a) {
- return a.replace(/^[\s\xa0]+/, "");
- };
- goog.string.trimRight = function (a) {
- return a.replace(/[\s\xa0]+$/, "");
- };
- goog.string.caseInsensitiveCompare = goog.string.internal.caseInsensitiveCompare;
- goog.string.numberAwareCompare_ = function (a, b, c) {
- if (a == b) return 0;
- if (!a) return -1;
- if (!b) return 1;
- for (var d = a.toLowerCase().match(c), e = b.toLowerCase().match(c), f = Math.min(d.length, e.length), g = 0; g < f; g++) {
- c = d[g];
- var h = e[g];
- if (c != h) return a = parseInt(c, 10), !isNaN(a) && (b = parseInt(h, 10), !isNaN(b) && a - b) ? a - b : c < h ? -1 : 1;
- }
- return d.length != e.length ? d.length - e.length : a < b ? -1 : 1;
- };
- goog.string.intAwareCompare = function (a, b) {
- return goog.string.numberAwareCompare_(a, b, /\d+|\D+/g);
- };
- goog.string.floatAwareCompare = function (a, b) {
- return goog.string.numberAwareCompare_(a, b, /\d+|\.\d+|\D+/g);
- };
- goog.string.numerateCompare = goog.string.floatAwareCompare;
- goog.string.urlEncode = function (a) {
- return encodeURIComponent(String(a));
- };
- goog.string.urlDecode = function (a) {
- return decodeURIComponent(a.replace(/\+/g, " "));
- };
- goog.string.newLineToBr = goog.string.internal.newLineToBr;
- goog.string.htmlEscape = function (a, b) {
- a = goog.string.internal.htmlEscape(a, b);
- goog.string.DETECT_DOUBLE_ESCAPING && (a = a.replace(goog.string.E_RE_, "e"));
- return a;
- };
- goog.string.E_RE_ = /e/g;
- goog.string.unescapeEntities = function (a) {
- return goog.string.contains(a, "&") ? !goog.string.FORCE_NON_DOM_HTML_UNESCAPING && "document" in goog.global ? goog.string.unescapeEntitiesUsingDom_(a) : goog.string.unescapePureXmlEntities_(a) : a;
- };
- goog.string.unescapeEntitiesWithDocument = function (a, b) {
- return goog.string.contains(a, "&") ? goog.string.unescapeEntitiesUsingDom_(a, b) : a;
- };
- goog.string.unescapeEntitiesUsingDom_ = function (a, b) {
- var c = {
- "&": "&",
- "<": "<",
- ">": ">",
- """: '"'
- };
- var d = b ? b.createElement("div") : goog.global.document.createElement("div");
- return a.replace(goog.string.HTML_ENTITY_PATTERN_, function (a, b) {
- var e = c[a];
- if (e) return e;
- "#" == b.charAt(0) && (b = Number("0" + b.substr(1)), isNaN(b) || (e = String.fromCharCode(b)));
- e || (goog.dom.safe.setInnerHtml(d, goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."), a + " ")), e = d.firstChild.nodeValue.slice(0, -1));
- return c[a] = e;
- });
- };
- goog.string.unescapePureXmlEntities_ = function (a) {
- return a.replace(/&([^;]+);/g, function (a, c) {
- switch (c) {
- case "amp":
- return "&";
- case "lt":
- return "<";
- case "gt":
- return ">";
- case "quot":
- return '"';
- default:
- return "#" != c.charAt(0) || (c = Number("0" + c.substr(1)), isNaN(c)) ? a : String.fromCharCode(c);
- }
- });
- };
- goog.string.HTML_ENTITY_PATTERN_ = /&([^;\s<&]+);?/g;
- goog.string.whitespaceEscape = function (a, b) {
- return goog.string.newLineToBr(a.replace(/ /g, "  "), b);
- };
- goog.string.preserveSpaces = function (a) {
- return a.replace(/(^|[\n ]) /g, "$1" + goog.string.Unicode.NBSP);
- };
- goog.string.stripQuotes = function (a, b) {
- for (var c = b.length, d = 0; d < c; d++) {
- var e = 1 == c ? b : b.charAt(d);
- if (a.charAt(0) == e && a.charAt(a.length - 1) == e) return a.substring(1, a.length - 1);
- }
- return a;
- };
- goog.string.truncate = function (a, b, c) {
- c && (a = goog.string.unescapeEntities(a));
- a.length > b && (a = a.substring(0, b - 3) + "...");
- c && (a = goog.string.htmlEscape(a));
- return a;
- };
- goog.string.truncateMiddle = function (a, b, c, d) {
- c && (a = goog.string.unescapeEntities(a));
- if (d && a.length > b) {
- d > b && (d = b);
- var e = a.length - d;
- a = a.substring(0, b - d) + "..." + a.substring(e);
- } else a.length > b && (d = Math.floor(b / 2), e = a.length - d, a = a.substring(0, d + b % 2) + "..." + a.substring(e));
- c && (a = goog.string.htmlEscape(a));
- return a;
- };
- goog.string.specialEscapeChars_ = {
- "\x00": "\\0",
- "\b": "\\b",
- "\f": "\\f",
- "\n": "\\n",
- "\r": "\\r",
- "\t": "\\t",
- "\x0B": "\\x0B",
- '"': '\\"',
- "\\": "\\\\",
- "<": "\\u003C"
- };
- goog.string.jsEscapeCache_ = {
- "'": "\\'"
- };
- goog.string.quote = function (a) {
- a = String(a);
- for (var b = ['"'], c = 0; c < a.length; c++) {
- var d = a.charAt(c),
- e = d.charCodeAt(0);
- b[c + 1] = goog.string.specialEscapeChars_[d] || (31 < e && 127 > e ? d : goog.string.escapeChar(d));
- }
- b.push('"');
- return b.join("");
- };
- goog.string.escapeString = function (a) {
- for (var b = [], c = 0; c < a.length; c++) {
- b[c] = goog.string.escapeChar(a.charAt(c));
- }
- return b.join("");
- };
- goog.string.escapeChar = function (a) {
- if (a in goog.string.jsEscapeCache_) return goog.string.jsEscapeCache_[a];
- if (a in goog.string.specialEscapeChars_) return goog.string.jsEscapeCache_[a] = goog.string.specialEscapeChars_[a];
- var b = a.charCodeAt(0);
- if (31 < b && 127 > b) var c = a;else {
- if (256 > b) {
- if (c = "\\x", 16 > b || 256 < b) c += "0";
- } else c = "\\u", 4096 > b && (c += "0");
- c += b.toString(16).toUpperCase();
- }
- return goog.string.jsEscapeCache_[a] = c;
- };
- goog.string.contains = goog.string.internal.contains;
- goog.string.caseInsensitiveContains = goog.string.internal.caseInsensitiveContains;
- goog.string.countOf = function (a, b) {
- return a && b ? a.split(b).length - 1 : 0;
- };
- goog.string.removeAt = function (a, b, c) {
- var d = a;
- 0 <= b && b < a.length && 0 < c && (d = a.substr(0, b) + a.substr(b + c, a.length - b - c));
- return d;
- };
- goog.string.remove = function (a, b) {
- return a.replace(b, "");
- };
- goog.string.removeAll = function (a, b) {
- b = new RegExp(goog.string.regExpEscape(b), "g");
- return a.replace(b, "");
- };
- goog.string.replaceAll = function (a, b, c) {
- b = new RegExp(goog.string.regExpEscape(b), "g");
- return a.replace(b, c.replace(/\$/g, "$$$$"));
- };
- goog.string.regExpEscape = function (a) {
- return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1").replace(/\x08/g, "\\x08");
- };
- goog.string.repeat = String.prototype.repeat ? function (a, b) {
- return a.repeat(b);
- } : function (a, b) {
- return Array(b + 1).join(a);
- };
- goog.string.padNumber = function (a, b, c) {
- a = void 0 !== c ? a.toFixed(c) : String(a);
- c = a.indexOf(".");
- -1 == c && (c = a.length);
- return goog.string.repeat("0", Math.max(0, b - c)) + a;
- };
- goog.string.makeSafe = function (a) {
- return null == a ? "" : String(a);
- };
- goog.string.buildString = function (a) {
- return Array.prototype.join.call(arguments, "");
- };
- goog.string.getRandomString = function () {
- return Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ goog.now()).toString(36);
- };
- goog.string.compareVersions = goog.string.internal.compareVersions;
- goog.string.hashCode = function (a) {
- for (var b = 0, c = 0; c < a.length; ++c) {
- b = 31 * b + a.charCodeAt(c) >>> 0;
- }
- return b;
- };
- goog.string.uniqueStringCounter_ = 2147483648 * Math.random() | 0;
- goog.string.createUniqueString = function () {
- return "goog_" + goog.string.uniqueStringCounter_++;
- };
- goog.string.toNumber = function (a) {
- var b = Number(a);
- return 0 == b && goog.string.isEmptyOrWhitespace(a) ? NaN : b;
- };
- goog.string.isLowerCamelCase = function (a) {
- return /^[a-z]+([A-Z][a-z]*)*$/.test(a);
- };
- goog.string.isUpperCamelCase = function (a) {
- return /^([A-Z][a-z]*)+$/.test(a);
- };
- goog.string.toCamelCase = function (a) {
- return String(a).replace(/\-([a-z])/g, function (a, c) {
- return c.toUpperCase();
- });
- };
- goog.string.toSelectorCase = function (a) {
- return String(a).replace(/([A-Z])/g, "-$1").toLowerCase();
- };
- goog.string.toTitleCase = function (a, b) {
- b = "string" === typeof b ? goog.string.regExpEscape(b) : "\\s";
- return a.replace(new RegExp("(^" + (b ? "|[" + b + "]+" : "") + ")([a-z])", "g"), function (a, b, e) {
- return b + e.toUpperCase();
- });
- };
- goog.string.capitalize = function (a) {
- return String(a.charAt(0)).toUpperCase() + String(a.substr(1)).toLowerCase();
- };
- goog.string.parseInt = function (a) {
- isFinite(a) && (a = String(a));
- return "string" === typeof a ? /^\s*-?0x/i.test(a) ? parseInt(a, 16) : parseInt(a, 10) : NaN;
- };
- goog.string.splitLimit = function (a, b, c) {
- a = a.split(b);
- for (var d = []; 0 < c && a.length;) {
- d.push(a.shift()), c--;
- }
- a.length && d.push(a.join(b));
- return d;
- };
- goog.string.lastComponent = function (a, b) {
- if (b) "string" == typeof b && (b = [b]);else return a;
- for (var c = -1, d = 0; d < b.length; d++) {
- if ("" != b[d]) {
- var e = a.lastIndexOf(b[d]);
- e > c && (c = e);
- }
- }
- return -1 == c ? a : a.slice(c + 1);
- };
- goog.string.editDistance = function (a, b) {
- var c = [],
- d = [];
- if (a == b) return 0;
- if (!a.length || !b.length) return Math.max(a.length, b.length);
- for (var e = 0; e < b.length + 1; e++) {
- c[e] = e;
- }
- for (e = 0; e < a.length; e++) {
- d[0] = e + 1;
- for (var f = 0; f < b.length; f++) {
- d[f + 1] = Math.min(d[f] + 1, c[f + 1] + 1, c[f] + Number(a[e] != b[f]));
- }
- for (f = 0; f < c.length; f++) {
- c[f] = d[f];
- }
- }
- return d[b.length];
- };
- goog.labs.userAgent.engine = {};
- goog.labs.userAgent.engine.isPresto = function () {
- return goog.labs.userAgent.util.matchUserAgent("Presto");
- };
- goog.labs.userAgent.engine.isTrident = function () {
- return goog.labs.userAgent.util.matchUserAgent("Trident") || goog.labs.userAgent.util.matchUserAgent("MSIE");
- };
- goog.labs.userAgent.engine.isEdge = function () {
- return goog.labs.userAgent.util.matchUserAgent("Edge");
- };
- goog.labs.userAgent.engine.isWebKit = function () {
- return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit") && !goog.labs.userAgent.engine.isEdge();
- };
- goog.labs.userAgent.engine.isGecko = function () {
- return goog.labs.userAgent.util.matchUserAgent("Gecko") && !goog.labs.userAgent.engine.isWebKit() && !goog.labs.userAgent.engine.isTrident() && !goog.labs.userAgent.engine.isEdge();
- };
- goog.labs.userAgent.engine.getVersion = function () {
- var a = goog.labs.userAgent.util.getUserAgent();
- if (a) {
- a = goog.labs.userAgent.util.extractVersionTuples(a);
- var b = goog.labs.userAgent.engine.getEngineTuple_(a);
- if (b) return "Gecko" == b[0] ? goog.labs.userAgent.engine.getVersionForKey_(a, "Firefox") : b[1];
- a = a[0];
- var c;
- if (a && (c = a[2]) && (c = /Trident\/([^\s;]+)/.exec(c))) return c[1];
- }
- return "";
- };
- goog.labs.userAgent.engine.getEngineTuple_ = function (a) {
- if (!goog.labs.userAgent.engine.isEdge()) return a[1];
- for (var b = 0; b < a.length; b++) {
- var c = a[b];
- if ("Edge" == c[0]) return c;
- }
- };
- goog.labs.userAgent.engine.isVersionOrHigher = function (a) {
- return 0 <= goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(), a);
- };
- goog.labs.userAgent.engine.getVersionForKey_ = function (a, b) {
- return (a = goog.array.find(a, function (a) {
- return b == a[0];
- })) && a[1] || "";
- };
- goog.labs.userAgent.platform = {};
- goog.labs.userAgent.platform.isAndroid = function () {
- return goog.labs.userAgent.util.matchUserAgent("Android");
- };
- goog.labs.userAgent.platform.isIpod = function () {
- return goog.labs.userAgent.util.matchUserAgent("iPod");
- };
- goog.labs.userAgent.platform.isIphone = function () {
- return goog.labs.userAgent.util.matchUserAgent("iPhone") && !goog.labs.userAgent.util.matchUserAgent("iPod") && !goog.labs.userAgent.util.matchUserAgent("iPad");
- };
- goog.labs.userAgent.platform.isIpad = function () {
- return goog.labs.userAgent.util.matchUserAgent("iPad");
- };
- goog.labs.userAgent.platform.isIos = function () {
- return goog.labs.userAgent.platform.isIphone() || goog.labs.userAgent.platform.isIpad() || goog.labs.userAgent.platform.isIpod();
- };
- goog.labs.userAgent.platform.isMacintosh = function () {
- return goog.labs.userAgent.util.matchUserAgent("Macintosh");
- };
- goog.labs.userAgent.platform.isLinux = function () {
- return goog.labs.userAgent.util.matchUserAgent("Linux");
- };
- goog.labs.userAgent.platform.isWindows = function () {
- return goog.labs.userAgent.util.matchUserAgent("Windows");
- };
- goog.labs.userAgent.platform.isChromeOS = function () {
- return goog.labs.userAgent.util.matchUserAgent("CrOS");
- };
- goog.labs.userAgent.platform.isChromecast = function () {
- return goog.labs.userAgent.util.matchUserAgent("CrKey");
- };
- goog.labs.userAgent.platform.isKaiOS = function () {
- return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS");
- };
- goog.labs.userAgent.platform.getVersion = function () {
- var a = goog.labs.userAgent.util.getUserAgent(),
- b = "";
- goog.labs.userAgent.platform.isWindows() ? (b = /Windows (?:NT|Phone) ([0-9.]+)/, b = (a = b.exec(a)) ? a[1] : "0.0") : goog.labs.userAgent.platform.isIos() ? (b = /(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/, b = (a = b.exec(a)) && a[1].replace(/_/g, ".")) : goog.labs.userAgent.platform.isMacintosh() ? (b = /Mac OS X ([0-9_.]+)/, b = (a = b.exec(a)) ? a[1].replace(/_/g, ".") : "10") : goog.labs.userAgent.platform.isKaiOS() ? (b = /(?:KaiOS)\/(\S+)/i, b = (a = b.exec(a)) && a[1]) : goog.labs.userAgent.platform.isAndroid() ? (b = /Android\s+([^\);]+)(\)|;)/, b = (a = b.exec(a)) && a[1]) : goog.labs.userAgent.platform.isChromeOS() && (b = /(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/, b = (a = b.exec(a)) && a[1]);
- return b || "";
- };
- goog.labs.userAgent.platform.isVersionOrHigher = function (a) {
- return 0 <= goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(), a);
- };
- goog.reflect = {};
- goog.reflect.object = function (a, b) {
- return b;
- };
- goog.reflect.objectProperty = function (a, b) {
- return a;
- };
- goog.reflect.sinkValue = function (a) {
- goog.reflect.sinkValue[" "](a);
- return a;
- };
- goog.reflect.sinkValue[" "] = goog.nullFunction;
- goog.reflect.canAccessProperty = function (a, b) {
- try {
- return goog.reflect.sinkValue(a[b]), !0;
- } catch (c) {}
- return !1;
- };
- goog.reflect.cache = function (a, b, c, d) {
- d = d ? d(b) : b;
- return Object.prototype.hasOwnProperty.call(a, d) ? a[d] : a[d] = c(b);
- };
- goog.userAgent = {};
- goog.userAgent.ASSUME_IE = !1;
- goog.userAgent.ASSUME_EDGE = !1;
- goog.userAgent.ASSUME_GECKO = !1;
- goog.userAgent.ASSUME_WEBKIT = !1;
- goog.userAgent.ASSUME_MOBILE_WEBKIT = !1;
- goog.userAgent.ASSUME_OPERA = !1;
- goog.userAgent.ASSUME_ANY_VERSION = !1;
- goog.userAgent.BROWSER_KNOWN_ = goog.userAgent.ASSUME_IE || goog.userAgent.ASSUME_EDGE || goog.userAgent.ASSUME_GECKO || goog.userAgent.ASSUME_MOBILE_WEBKIT || goog.userAgent.ASSUME_WEBKIT || goog.userAgent.ASSUME_OPERA;
- goog.userAgent.getUserAgentString = function () {
- return goog.labs.userAgent.util.getUserAgent();
- };
- goog.userAgent.getNavigatorTyped = function () {
- return goog.global.navigator || null;
- };
- goog.userAgent.getNavigator = function () {
- return goog.userAgent.getNavigatorTyped();
- };
- goog.userAgent.OPERA = goog.userAgent.BROWSER_KNOWN_ ? goog.userAgent.ASSUME_OPERA : goog.labs.userAgent.browser.isOpera();
- goog.userAgent.IE = goog.userAgent.BROWSER_KNOWN_ ? goog.userAgent.ASSUME_IE : goog.labs.userAgent.browser.isIE();
- goog.userAgent.EDGE = goog.userAgent.BROWSER_KNOWN_ ? goog.userAgent.ASSUME_EDGE : goog.labs.userAgent.engine.isEdge();
- goog.userAgent.EDGE_OR_IE = goog.userAgent.EDGE || goog.userAgent.IE;
- goog.userAgent.GECKO = goog.userAgent.BROWSER_KNOWN_ ? goog.userAgent.ASSUME_GECKO : goog.labs.userAgent.engine.isGecko();
- goog.userAgent.WEBKIT = goog.userAgent.BROWSER_KNOWN_ ? goog.userAgent.ASSUME_WEBKIT || goog.userAgent.ASSUME_MOBILE_WEBKIT : goog.labs.userAgent.engine.isWebKit();
- goog.userAgent.isMobile_ = function () {
- return goog.userAgent.WEBKIT && goog.labs.userAgent.util.matchUserAgent("Mobile");
- };
- goog.userAgent.MOBILE = goog.userAgent.ASSUME_MOBILE_WEBKIT || goog.userAgent.isMobile_();
- goog.userAgent.SAFARI = goog.userAgent.WEBKIT;
- goog.userAgent.determinePlatform_ = function () {
- var a = goog.userAgent.getNavigatorTyped();
- return a && a.platform || "";
- };
- goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_();
- goog.userAgent.ASSUME_MAC = !1;
- goog.userAgent.ASSUME_WINDOWS = !1;
- goog.userAgent.ASSUME_LINUX = !1;
- goog.userAgent.ASSUME_X11 = !1;
- goog.userAgent.ASSUME_ANDROID = !1;
- goog.userAgent.ASSUME_IPHONE = !1;
- goog.userAgent.ASSUME_IPAD = !1;
- goog.userAgent.ASSUME_IPOD = !1;
- goog.userAgent.ASSUME_KAIOS = !1;
- goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.ASSUME_X11 || goog.userAgent.ASSUME_ANDROID || goog.userAgent.ASSUME_IPHONE || goog.userAgent.ASSUME_IPAD || goog.userAgent.ASSUME_IPOD;
- goog.userAgent.MAC = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_MAC : goog.labs.userAgent.platform.isMacintosh();
- goog.userAgent.WINDOWS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_WINDOWS : goog.labs.userAgent.platform.isWindows();
- goog.userAgent.isLegacyLinux_ = function () {
- return goog.labs.userAgent.platform.isLinux() || goog.labs.userAgent.platform.isChromeOS();
- };
- goog.userAgent.LINUX = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_LINUX : goog.userAgent.isLegacyLinux_();
- goog.userAgent.isX11_ = function () {
- var a = goog.userAgent.getNavigatorTyped();
- return !!a && goog.string.contains(a.appVersion || "", "X11");
- };
- goog.userAgent.X11 = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_X11 : goog.userAgent.isX11_();
- goog.userAgent.ANDROID = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_ANDROID : goog.labs.userAgent.platform.isAndroid();
- goog.userAgent.IPHONE = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPHONE : goog.labs.userAgent.platform.isIphone();
- goog.userAgent.IPAD = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPAD : goog.labs.userAgent.platform.isIpad();
- goog.userAgent.IPOD = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPOD : goog.labs.userAgent.platform.isIpod();
- goog.userAgent.IOS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPHONE || goog.userAgent.ASSUME_IPAD || goog.userAgent.ASSUME_IPOD : goog.labs.userAgent.platform.isIos();
- goog.userAgent.KAIOS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_KAIOS : goog.labs.userAgent.platform.isKaiOS();
- goog.userAgent.determineVersion_ = function () {
- var a = "",
- b = goog.userAgent.getVersionRegexResult_();
- b && (a = b ? b[1] : "");
- return goog.userAgent.IE && (b = goog.userAgent.getDocumentMode_(), null != b && b > parseFloat(a)) ? String(b) : a;
- };
- goog.userAgent.getVersionRegexResult_ = function () {
- var a = goog.userAgent.getUserAgentString();
- if (goog.userAgent.GECKO) return /rv:([^\);]+)(\)|;)/.exec(a);
- if (goog.userAgent.EDGE) return /Edge\/([\d\.]+)/.exec(a);
- if (goog.userAgent.IE) return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);
- if (goog.userAgent.WEBKIT) return /WebKit\/(\S+)/.exec(a);
- if (goog.userAgent.OPERA) return /(?:Version)[ \/]?(\S+)/.exec(a);
- };
- goog.userAgent.getDocumentMode_ = function () {
- var a = goog.global.document;
- return a ? a.documentMode : void 0;
- };
- goog.userAgent.VERSION = goog.userAgent.determineVersion_();
- goog.userAgent.compare = function (a, b) {
- return goog.string.compareVersions(a, b);
- };
- goog.userAgent.isVersionOrHigherCache_ = {};
- goog.userAgent.isVersionOrHigher = function (a) {
- return goog.userAgent.ASSUME_ANY_VERSION || goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_, a, function () {
- return 0 <= goog.string.compareVersions(goog.userAgent.VERSION, a);
- });
- };
- goog.userAgent.isVersion = goog.userAgent.isVersionOrHigher;
- goog.userAgent.isDocumentModeOrHigher = function (a) {
- return Number(goog.userAgent.DOCUMENT_MODE) >= a;
- };
- goog.userAgent.isDocumentMode = goog.userAgent.isDocumentModeOrHigher;
- goog.userAgent.DOCUMENT_MODE = function () {
- if (goog.global.document && goog.userAgent.IE) {
- var a = goog.userAgent.getDocumentMode_();
- return a ? a : parseInt(goog.userAgent.VERSION, 10) || void 0;
- }
- }();
- goog.userAgent.product = {};
- goog.userAgent.product.ASSUME_FIREFOX = !1;
- goog.userAgent.product.ASSUME_IPHONE = !1;
- goog.userAgent.product.ASSUME_IPAD = !1;
- goog.userAgent.product.ASSUME_ANDROID = !1;
- goog.userAgent.product.ASSUME_CHROME = !1;
- goog.userAgent.product.ASSUME_SAFARI = !1;
- goog.userAgent.product.PRODUCT_KNOWN_ = goog.userAgent.ASSUME_IE || goog.userAgent.ASSUME_EDGE || goog.userAgent.ASSUME_OPERA || goog.userAgent.product.ASSUME_FIREFOX || goog.userAgent.product.ASSUME_IPHONE || goog.userAgent.product.ASSUME_IPAD || goog.userAgent.product.ASSUME_ANDROID || goog.userAgent.product.ASSUME_CHROME || goog.userAgent.product.ASSUME_SAFARI;
- goog.userAgent.product.OPERA = goog.userAgent.OPERA;
- goog.userAgent.product.IE = goog.userAgent.IE;
- goog.userAgent.product.EDGE = goog.userAgent.EDGE;
- goog.userAgent.product.FIREFOX = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_FIREFOX : goog.labs.userAgent.browser.isFirefox();
- goog.userAgent.product.isIphoneOrIpod_ = function () {
- return goog.labs.userAgent.platform.isIphone() || goog.labs.userAgent.platform.isIpod();
- };
- goog.userAgent.product.IPHONE = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_IPHONE : goog.userAgent.product.isIphoneOrIpod_();
- goog.userAgent.product.IPAD = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_IPAD : goog.labs.userAgent.platform.isIpad();
- goog.userAgent.product.ANDROID = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_ANDROID : goog.labs.userAgent.browser.isAndroidBrowser();
- goog.userAgent.product.CHROME = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_CHROME : goog.labs.userAgent.browser.isChrome();
- goog.userAgent.product.isSafariDesktop_ = function () {
- return goog.labs.userAgent.browser.isSafari() && !goog.labs.userAgent.platform.isIos();
- };
- goog.userAgent.product.SAFARI = goog.userAgent.product.PRODUCT_KNOWN_ ? goog.userAgent.product.ASSUME_SAFARI : goog.userAgent.product.isSafariDesktop_();
- goog.crypt.base64 = {};
- goog.crypt.base64.DEFAULT_ALPHABET_COMMON_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- goog.crypt.base64.ENCODED_VALS = goog.crypt.base64.DEFAULT_ALPHABET_COMMON_ + "+/=";
- goog.crypt.base64.ENCODED_VALS_WEBSAFE = goog.crypt.base64.DEFAULT_ALPHABET_COMMON_ + "-_.";
- goog.crypt.base64.Alphabet = {
- DEFAULT: 0,
- NO_PADDING: 1,
- WEBSAFE: 2,
- WEBSAFE_DOT_PADDING: 3,
- WEBSAFE_NO_PADDING: 4
- };
- goog.crypt.base64.paddingChars_ = "=.";
- goog.crypt.base64.isPadding_ = function (a) {
- return goog.string.contains(goog.crypt.base64.paddingChars_, a);
- };
- goog.crypt.base64.byteToCharMaps_ = {};
- goog.crypt.base64.charToByteMap_ = null;
- goog.crypt.base64.ASSUME_NATIVE_SUPPORT_ = goog.userAgent.GECKO || goog.userAgent.WEBKIT && !goog.userAgent.product.SAFARI || goog.userAgent.OPERA;
- goog.crypt.base64.HAS_NATIVE_ENCODE_ = goog.crypt.base64.ASSUME_NATIVE_SUPPORT_ || "function" == typeof goog.global.btoa;
- goog.crypt.base64.HAS_NATIVE_DECODE_ = goog.crypt.base64.ASSUME_NATIVE_SUPPORT_ || !goog.userAgent.product.SAFARI && !goog.userAgent.IE && "function" == typeof goog.global.atob;
- goog.crypt.base64.encodeByteArray = function (a, b) {
- goog.asserts.assert(goog.isArrayLike(a), "encodeByteArray takes an array as a parameter");
- void 0 === b && (b = goog.crypt.base64.Alphabet.DEFAULT);
- goog.crypt.base64.init_();
- b = goog.crypt.base64.byteToCharMaps_[b];
- for (var c = [], d = 0; d < a.length; d += 3) {
- var e = a[d],
- f = d + 1 < a.length,
- g = f ? a[d + 1] : 0,
- h = d + 2 < a.length,
- k = h ? a[d + 2] : 0,
- l = e >> 2;
- e = (e & 3) << 4 | g >> 4;
- g = (g & 15) << 2 | k >> 6;
- k &= 63;
- h || (k = 64, f || (g = 64));
- c.push(b[l], b[e], b[g] || "", b[k] || "");
- }
- return c.join("");
- };
- goog.crypt.base64.encodeString = function (a, b) {
- return goog.crypt.base64.HAS_NATIVE_ENCODE_ && !b ? goog.global.btoa(a) : goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(a), b);
- };
- goog.crypt.base64.decodeString = function (a, b) {
- if (goog.crypt.base64.HAS_NATIVE_DECODE_ && !b) return goog.global.atob(a);
- var c = "";
- goog.crypt.base64.decodeStringInternal_(a, function (a) {
- c += String.fromCharCode(a);
- });
- return c;
- };
- goog.crypt.base64.decodeStringToByteArray = function (a, b) {
- var c = [];
- goog.crypt.base64.decodeStringInternal_(a, function (a) {
- c.push(a);
- });
- return c;
- };
- goog.crypt.base64.decodeStringToUint8Array = function (a) {
- goog.asserts.assert(!goog.userAgent.IE || goog.userAgent.isVersionOrHigher("10"), "Browser does not support typed arrays");
- var b = a.length,
- c = 3 * b / 4;
- c % 3 ? c = Math.floor(c) : goog.crypt.base64.isPadding_(a[b - 1]) && (c = goog.crypt.base64.isPadding_(a[b - 2]) ? c - 2 : c - 1);
- var d = new Uint8Array(c),
- e = 0;
- goog.crypt.base64.decodeStringInternal_(a, function (a) {
- d[e++] = a;
- });
- return d.subarray(0, e);
- };
- goog.crypt.base64.decodeStringInternal_ = function (a, b) {
- function c(b) {
- for (; d < a.length;) {
- var c = a.charAt(d++),
- e = goog.crypt.base64.charToByteMap_[c];
- if (null != e) return e;
- if (!goog.string.isEmptyOrWhitespace(c)) throw Error("Unknown base64 encoding at char: " + c);
- }
- return b;
- }
- goog.crypt.base64.init_();
- for (var d = 0;;) {
- var e = c(-1),
- f = c(0),
- g = c(64),
- h = c(64);
- if (64 === h && -1 === e) break;
- b(e << 2 | f >> 4);
- 64 != g && (b(f << 4 & 240 | g >> 2), 64 != h && b(g << 6 & 192 | h));
- }
- };
- goog.crypt.base64.init_ = function () {
- if (!goog.crypt.base64.charToByteMap_) {
- goog.crypt.base64.charToByteMap_ = {};
- for (var a = goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""), b = ["+/=", "+/", "-_=", "-_.", "-_"], c = 0; 5 > c; c++) {
- var d = a.concat(b[c].split(""));
- goog.crypt.base64.byteToCharMaps_[c] = d;
- for (var e = 0; e < d.length; e++) {
- var f = d[e],
- g = goog.crypt.base64.charToByteMap_[f];
- void 0 === g ? goog.crypt.base64.charToByteMap_[f] = e : goog.asserts.assert(g === e);
- }
- }
- }
- };
- jspb.utils = {};
- jspb.utils.split64Low = 0;
- jspb.utils.split64High = 0;
- jspb.utils.splitUint64 = function (a) {
- var b = a >>> 0;
- a = Math.floor((a - b) / jspb.BinaryConstants.TWO_TO_32) >>> 0;
- jspb.utils.split64Low = b;
- jspb.utils.split64High = a;
- };
- jspb.utils.splitInt64 = function (a) {
- var b = 0 > a;
- a = Math.abs(a);
- var c = a >>> 0;
- a = Math.floor((a - c) / jspb.BinaryConstants.TWO_TO_32);
- a >>>= 0;
- b && (a = ~a >>> 0, c = (~c >>> 0) + 1, 4294967295 < c && (c = 0, a++, 4294967295 < a && (a = 0)));
- jspb.utils.split64Low = c;
- jspb.utils.split64High = a;
- };
- jspb.utils.splitZigzag64 = function (a) {
- var b = 0 > a;
- a = 2 * Math.abs(a);
- jspb.utils.splitUint64(a);
- a = jspb.utils.split64Low;
- var c = jspb.utils.split64High;
- b && (0 == a ? 0 == c ? c = a = 4294967295 : (c--, a = 4294967295) : a--);
- jspb.utils.split64Low = a;
- jspb.utils.split64High = c;
- };
- jspb.utils.splitFloat32 = function (a) {
- var b = 0 > a ? 1 : 0;
- a = b ? -a : a;
- if (0 === a) 0 < 1 / a ? (jspb.utils.split64High = 0, jspb.utils.split64Low = 0) : (jspb.utils.split64High = 0, jspb.utils.split64Low = 2147483648);else if (isNaN(a)) jspb.utils.split64High = 0, jspb.utils.split64Low = 2147483647;else if (a > jspb.BinaryConstants.FLOAT32_MAX) jspb.utils.split64High = 0, jspb.utils.split64Low = (b << 31 | 2139095040) >>> 0;else if (a < jspb.BinaryConstants.FLOAT32_MIN) a = Math.round(a / Math.pow(2, -149)), jspb.utils.split64High = 0, jspb.utils.split64Low = (b << 31 | a) >>> 0;else {
- var c = Math.floor(Math.log(a) / Math.LN2);
- a *= Math.pow(2, -c);
- a = Math.round(a * jspb.BinaryConstants.TWO_TO_23);
- 16777216 <= a && ++c;
- jspb.utils.split64High = 0;
- jspb.utils.split64Low = (b << 31 | c + 127 << 23 | a & 8388607) >>> 0;
- }
- };
- jspb.utils.splitFloat64 = function (a) {
- var b = 0 > a ? 1 : 0;
- a = b ? -a : a;
- if (0 === a) jspb.utils.split64High = 0 < 1 / a ? 0 : 2147483648, jspb.utils.split64Low = 0;else if (isNaN(a)) jspb.utils.split64High = 2147483647, jspb.utils.split64Low = 4294967295;else if (a > jspb.BinaryConstants.FLOAT64_MAX) jspb.utils.split64High = (b << 31 | 2146435072) >>> 0, jspb.utils.split64Low = 0;else if (a < jspb.BinaryConstants.FLOAT64_MIN) {
- var c = a / Math.pow(2, -1074);
- a = c / jspb.BinaryConstants.TWO_TO_32;
- jspb.utils.split64High = (b << 31 | a) >>> 0;
- jspb.utils.split64Low = c >>> 0;
- } else {
- c = a;
- var d = 0;
- if (2 <= c) for (; 2 <= c && 1023 > d;) {
- d++, c /= 2;
- } else for (; 1 > c && -1022 < d;) {
- c *= 2, d--;
- }
- c = a * Math.pow(2, -d);
- a = c * jspb.BinaryConstants.TWO_TO_20 & 1048575;
- c = c * jspb.BinaryConstants.TWO_TO_52 >>> 0;
- jspb.utils.split64High = (b << 31 | d + 1023 << 20 | a) >>> 0;
- jspb.utils.split64Low = c;
- }
- };
- jspb.utils.splitHash64 = function (a) {
- var b = a.charCodeAt(0),
- c = a.charCodeAt(1),
- d = a.charCodeAt(2),
- e = a.charCodeAt(3),
- f = a.charCodeAt(4),
- g = a.charCodeAt(5),
- h = a.charCodeAt(6);
- a = a.charCodeAt(7);
- jspb.utils.split64Low = b + (c << 8) + (d << 16) + (e << 24) >>> 0;
- jspb.utils.split64High = f + (g << 8) + (h << 16) + (a << 24) >>> 0;
- };
- jspb.utils.joinUint64 = function (a, b) {
- return b * jspb.BinaryConstants.TWO_TO_32 + (a >>> 0);
- };
- jspb.utils.joinInt64 = function (a, b) {
- var c = b & 2147483648;
- c && (a = ~a + 1 >>> 0, b = ~b >>> 0, 0 == a && (b = b + 1 >>> 0));
- a = jspb.utils.joinUint64(a, b);
- return c ? -a : a;
- };
- jspb.utils.toZigzag64 = function (a, b, c) {
- var d = b >> 31;
- return c(a << 1 ^ d, (b << 1 | a >>> 31) ^ d);
- };
- jspb.utils.joinZigzag64 = function (a, b) {
- return jspb.utils.fromZigzag64(a, b, jspb.utils.joinInt64);
- };
- jspb.utils.fromZigzag64 = function (a, b, c) {
- var d = -(a & 1);
- return c((a >>> 1 | b << 31) ^ d, b >>> 1 ^ d);
- };
- jspb.utils.joinFloat32 = function (a, b) {
- b = 2 * (a >> 31) + 1;
- var c = a >>> 23 & 255;
- a &= 8388607;
- return 255 == c ? a ? NaN : Infinity * b : 0 == c ? b * Math.pow(2, -149) * a : b * Math.pow(2, c - 150) * (a + Math.pow(2, 23));
- };
- jspb.utils.joinFloat64 = function (a, b) {
- var c = 2 * (b >> 31) + 1,
- d = b >>> 20 & 2047;
- a = jspb.BinaryConstants.TWO_TO_32 * (b & 1048575) + a;
- return 2047 == d ? a ? NaN : Infinity * c : 0 == d ? c * Math.pow(2, -1074) * a : c * Math.pow(2, d - 1075) * (a + jspb.BinaryConstants.TWO_TO_52);
- };
- jspb.utils.joinHash64 = function (a, b) {
- return String.fromCharCode(a >>> 0 & 255, a >>> 8 & 255, a >>> 16 & 255, a >>> 24 & 255, b >>> 0 & 255, b >>> 8 & 255, b >>> 16 & 255, b >>> 24 & 255);
- };
- jspb.utils.DIGITS = "0123456789abcdef".split("");
- jspb.utils.ZERO_CHAR_CODE_ = 48;
- jspb.utils.A_CHAR_CODE_ = 97;
- jspb.utils.joinUnsignedDecimalString = function (a, b) {
- function c(a, b) {
- a = a ? String(a) : "";
- return b ? "0000000".slice(a.length) + a : a;
- }
- if (2097151 >= b) return "" + jspb.utils.joinUint64(a, b);
- var d = (a >>> 24 | b << 8) >>> 0 & 16777215;
- b = b >> 16 & 65535;
- a = (a & 16777215) + 6777216 * d + 6710656 * b;
- d += 8147497 * b;
- b *= 2;
- 1E7 <= a && (d += Math.floor(a / 1E7), a %= 1E7);
- 1E7 <= d && (b += Math.floor(d / 1E7), d %= 1E7);
- return c(b, 0) + c(d, b) + c(a, 1);
- };
- jspb.utils.joinSignedDecimalString = function (a, b) {
- var c = b & 2147483648;
- c && (a = ~a + 1 >>> 0, b = ~b + (0 == a ? 1 : 0) >>> 0);
- a = jspb.utils.joinUnsignedDecimalString(a, b);
- return c ? "-" + a : a;
- };
- jspb.utils.hash64ToDecimalString = function (a, b) {
- jspb.utils.splitHash64(a);
- a = jspb.utils.split64Low;
- var c = jspb.utils.split64High;
- return b ? jspb.utils.joinSignedDecimalString(a, c) : jspb.utils.joinUnsignedDecimalString(a, c);
- };
- jspb.utils.hash64ArrayToDecimalStrings = function (a, b) {
- for (var c = Array(a.length), d = 0; d < a.length; d++) {
- c[d] = jspb.utils.hash64ToDecimalString(a[d], b);
- }
- return c;
- };
- jspb.utils.decimalStringToHash64 = function (a) {
- function b(a, b) {
- for (var c = 0; 8 > c && (1 !== a || 0 < b); c++) {
- b = a * e[c] + b, e[c] = b & 255, b >>>= 8;
- }
- }
- function c() {
- for (var a = 0; 8 > a; a++) {
- e[a] = ~e[a] & 255;
- }
- }
- jspb.asserts.assert(0 < a.length);
- var d = !1;
- "-" === a[0] && (d = !0, a = a.slice(1));
- for (var e = [0, 0, 0, 0, 0, 0, 0, 0], f = 0; f < a.length; f++) {
- b(10, a.charCodeAt(f) - jspb.utils.ZERO_CHAR_CODE_);
- }
- d && (c(), b(1, 1));
- return goog.crypt.byteArrayToString(e);
- };
- jspb.utils.splitDecimalString = function (a) {
- jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a));
- };
- jspb.utils.toHexDigit_ = function (a) {
- return String.fromCharCode(10 > a ? jspb.utils.ZERO_CHAR_CODE_ + a : jspb.utils.A_CHAR_CODE_ - 10 + a);
- };
- jspb.utils.fromHexCharCode_ = function (a) {
- return a >= jspb.utils.A_CHAR_CODE_ ? a - jspb.utils.A_CHAR_CODE_ + 10 : a - jspb.utils.ZERO_CHAR_CODE_;
- };
- jspb.utils.hash64ToHexString = function (a) {
- var b = Array(18);
- b[0] = "0";
- b[1] = "x";
- for (var c = 0; 8 > c; c++) {
- var d = a.charCodeAt(7 - c);
- b[2 * c + 2] = jspb.utils.toHexDigit_(d >> 4);
- b[2 * c + 3] = jspb.utils.toHexDigit_(d & 15);
- }
- return b.join("");
- };
- jspb.utils.hexStringToHash64 = function (a) {
- a = a.toLowerCase();
- jspb.asserts.assert(18 == a.length);
- jspb.asserts.assert("0" == a[0]);
- jspb.asserts.assert("x" == a[1]);
- for (var b = "", c = 0; 8 > c; c++) {
- var d = jspb.utils.fromHexCharCode_(a.charCodeAt(2 * c + 2)),
- e = jspb.utils.fromHexCharCode_(a.charCodeAt(2 * c + 3));
- b = String.fromCharCode(16 * d + e) + b;
- }
- return b;
- };
- jspb.utils.hash64ToNumber = function (a, b) {
- jspb.utils.splitHash64(a);
- a = jspb.utils.split64Low;
- var c = jspb.utils.split64High;
- return b ? jspb.utils.joinInt64(a, c) : jspb.utils.joinUint64(a, c);
- };
- jspb.utils.numberToHash64 = function (a) {
- jspb.utils.splitInt64(a);
- return jspb.utils.joinHash64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.utils.countVarints = function (a, b, c) {
- for (var d = 0, e = b; e < c; e++) {
- d += a[e] >> 7;
- }
- return c - b - d;
- };
- jspb.utils.countVarintFields = function (a, b, c, d) {
- var e = 0;
- d = 8 * d + jspb.BinaryConstants.WireType.VARINT;
- if (128 > d) for (; b < c && a[b++] == d;) {
- for (e++;;) {
- var f = a[b++];
- if (0 == (f & 128)) break;
- }
- } else for (; b < c;) {
- for (f = d; 128 < f;) {
- if (a[b] != (f & 127 | 128)) return e;
- b++;
- f >>= 7;
- }
- if (a[b++] != f) break;
- for (e++; f = a[b++], 0 != (f & 128);) {
- ;
- }
- }
- return e;
- };
- jspb.utils.countFixedFields_ = function (a, b, c, d, e) {
- var f = 0;
- if (128 > d) for (; b < c && a[b++] == d;) {
- f++, b += e;
- } else for (; b < c;) {
- for (var g = d; 128 < g;) {
- if (a[b++] != (g & 127 | 128)) return f;
- g >>= 7;
- }
- if (a[b++] != g) break;
- f++;
- b += e;
- }
- return f;
- };
- jspb.utils.countFixed32Fields = function (a, b, c, d) {
- return jspb.utils.countFixedFields_(a, b, c, 8 * d + jspb.BinaryConstants.WireType.FIXED32, 4);
- };
- jspb.utils.countFixed64Fields = function (a, b, c, d) {
- return jspb.utils.countFixedFields_(a, b, c, 8 * d + jspb.BinaryConstants.WireType.FIXED64, 8);
- };
- jspb.utils.countDelimitedFields = function (a, b, c, d) {
- var e = 0;
- for (d = 8 * d + jspb.BinaryConstants.WireType.DELIMITED; b < c;) {
- for (var f = d; 128 < f;) {
- if (a[b++] != (f & 127 | 128)) return e;
- f >>= 7;
- }
- if (a[b++] != f) break;
- e++;
- for (var g = 0, h = 1; f = a[b++], g += (f & 127) * h, h *= 128, 0 != (f & 128);) {
- ;
- }
- b += g;
- }
- return e;
- };
- jspb.utils.debugBytesToTextFormat = function (a) {
- var b = '"';
- if (a) {
- a = jspb.utils.byteSourceToUint8Array(a);
- for (var c = 0; c < a.length; c++) {
- b += "\\x", 16 > a[c] && (b += "0"), b += a[c].toString(16);
- }
- }
- return b + '"';
- };
- jspb.utils.debugScalarToTextFormat = function (a) {
- return "string" === typeof a ? goog.string.quote(a) : a.toString();
- };
- jspb.utils.stringToByteArray = function (a) {
- for (var b = new Uint8Array(a.length), c = 0; c < a.length; c++) {
- var d = a.charCodeAt(c);
- if (255 < d) throw Error("Conversion error: string contains codepoint outside of byte range");
- b[c] = d;
- }
- return b;
- };
- jspb.utils.byteSourceToUint8Array = function (a) {
- if (a.constructor === Uint8Array) return a;
- if (a.constructor === ArrayBuffer || a.constructor === Array) return new Uint8Array(a);
- if (a.constructor === String) return goog.crypt.base64.decodeStringToUint8Array(a);
- if (a instanceof Uint8Array) return new Uint8Array(a.buffer, a.byteOffset, a.byteLength);
- jspb.asserts.fail("Type not convertible to Uint8Array.");
- return new Uint8Array(0);
- };
- jspb.BinaryDecoder = function (a, b, c) {
- this.bytes_ = null;
- this.cursor_ = this.end_ = this.start_ = 0;
- this.error_ = !1;
- a && this.setBlock(a, b, c);
- };
- jspb.BinaryDecoder.instanceCache_ = [];
- jspb.BinaryDecoder.alloc = function (a, b, c) {
- if (jspb.BinaryDecoder.instanceCache_.length) {
- var d = jspb.BinaryDecoder.instanceCache_.pop();
- a && d.setBlock(a, b, c);
- return d;
- }
- return new jspb.BinaryDecoder(a, b, c);
- };
- jspb.BinaryDecoder.prototype.free = function () {
- this.clear();
- 100 > jspb.BinaryDecoder.instanceCache_.length && jspb.BinaryDecoder.instanceCache_.push(this);
- };
- jspb.BinaryDecoder.prototype.clone = function () {
- return jspb.BinaryDecoder.alloc(this.bytes_, this.start_, this.end_ - this.start_);
- };
- jspb.BinaryDecoder.prototype.clear = function () {
- this.bytes_ = null;
- this.cursor_ = this.end_ = this.start_ = 0;
- this.error_ = !1;
- };
- jspb.BinaryDecoder.prototype.getBuffer = function () {
- return this.bytes_;
- };
- jspb.BinaryDecoder.prototype.setBlock = function (a, b, c) {
- this.bytes_ = jspb.utils.byteSourceToUint8Array(a);
- this.start_ = void 0 !== b ? b : 0;
- this.end_ = void 0 !== c ? this.start_ + c : this.bytes_.length;
- this.cursor_ = this.start_;
- };
- jspb.BinaryDecoder.prototype.getEnd = function () {
- return this.end_;
- };
- jspb.BinaryDecoder.prototype.setEnd = function (a) {
- this.end_ = a;
- };
- jspb.BinaryDecoder.prototype.reset = function () {
- this.cursor_ = this.start_;
- };
- jspb.BinaryDecoder.prototype.getCursor = function () {
- return this.cursor_;
- };
- jspb.BinaryDecoder.prototype.setCursor = function (a) {
- this.cursor_ = a;
- };
- jspb.BinaryDecoder.prototype.advance = function (a) {
- this.cursor_ += a;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- };
- jspb.BinaryDecoder.prototype.atEnd = function () {
- return this.cursor_ == this.end_;
- };
- jspb.BinaryDecoder.prototype.pastEnd = function () {
- return this.cursor_ > this.end_;
- };
- jspb.BinaryDecoder.prototype.getError = function () {
- return this.error_ || 0 > this.cursor_ || this.cursor_ > this.end_;
- };
- jspb.BinaryDecoder.prototype.readSplitVarint64 = function (a) {
- for (var b = 128, c = 0, d = 0, e = 0; 4 > e && 128 <= b; e++) {
- b = this.bytes_[this.cursor_++], c |= (b & 127) << 7 * e;
- }
- 128 <= b && (b = this.bytes_[this.cursor_++], c |= (b & 127) << 28, d |= (b & 127) >> 4);
- if (128 <= b) for (e = 0; 5 > e && 128 <= b; e++) {
- b = this.bytes_[this.cursor_++], d |= (b & 127) << 7 * e + 3;
- }
- if (128 > b) return a(c >>> 0, d >>> 0);
- jspb.asserts.fail("Failed to read varint, encoding is invalid.");
- this.error_ = !0;
- };
- jspb.BinaryDecoder.prototype.readSplitZigzagVarint64 = function (a) {
- return this.readSplitVarint64(function (b, c) {
- return jspb.utils.fromZigzag64(b, c, a);
- });
- };
- jspb.BinaryDecoder.prototype.readSplitFixed64 = function (a) {
- var b = this.bytes_,
- c = this.cursor_;
- this.cursor_ += 8;
- for (var d = 0, e = 0, f = c + 7; f >= c; f--) {
- d = d << 8 | b[f], e = e << 8 | b[f + 4];
- }
- return a(d, e);
- };
- jspb.BinaryDecoder.prototype.skipVarint = function () {
- for (; this.bytes_[this.cursor_] & 128;) {
- this.cursor_++;
- }
- this.cursor_++;
- };
- jspb.BinaryDecoder.prototype.unskipVarint = function (a) {
- for (; 128 < a;) {
- this.cursor_--, a >>>= 7;
- }
- this.cursor_--;
- };
- jspb.BinaryDecoder.prototype.readUnsignedVarint32 = function () {
- var a = this.bytes_;
- var b = a[this.cursor_ + 0];
- var c = b & 127;
- if (128 > b) return this.cursor_ += 1, jspb.asserts.assert(this.cursor_ <= this.end_), c;
- b = a[this.cursor_ + 1];
- c |= (b & 127) << 7;
- if (128 > b) return this.cursor_ += 2, jspb.asserts.assert(this.cursor_ <= this.end_), c;
- b = a[this.cursor_ + 2];
- c |= (b & 127) << 14;
- if (128 > b) return this.cursor_ += 3, jspb.asserts.assert(this.cursor_ <= this.end_), c;
- b = a[this.cursor_ + 3];
- c |= (b & 127) << 21;
- if (128 > b) return this.cursor_ += 4, jspb.asserts.assert(this.cursor_ <= this.end_), c;
- b = a[this.cursor_ + 4];
- c |= (b & 15) << 28;
- if (128 > b) return this.cursor_ += 5, jspb.asserts.assert(this.cursor_ <= this.end_), c >>> 0;
- this.cursor_ += 5;
- 128 <= a[this.cursor_++] && 128 <= a[this.cursor_++] && 128 <= a[this.cursor_++] && 128 <= a[this.cursor_++] && 128 <= a[this.cursor_++] && jspb.asserts.assert(!1);
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return c;
- };
- jspb.BinaryDecoder.prototype.readSignedVarint32 = function () {
- return ~~this.readUnsignedVarint32();
- };
- jspb.BinaryDecoder.prototype.readUnsignedVarint32String = function () {
- return this.readUnsignedVarint32().toString();
- };
- jspb.BinaryDecoder.prototype.readSignedVarint32String = function () {
- return this.readSignedVarint32().toString();
- };
- jspb.BinaryDecoder.prototype.readZigzagVarint32 = function () {
- var a = this.readUnsignedVarint32();
- return a >>> 1 ^ -(a & 1);
- };
- jspb.BinaryDecoder.prototype.readUnsignedVarint64 = function () {
- return this.readSplitVarint64(jspb.utils.joinUint64);
- };
- jspb.BinaryDecoder.prototype.readUnsignedVarint64String = function () {
- return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString);
- };
- jspb.BinaryDecoder.prototype.readSignedVarint64 = function () {
- return this.readSplitVarint64(jspb.utils.joinInt64);
- };
- jspb.BinaryDecoder.prototype.readSignedVarint64String = function () {
- return this.readSplitVarint64(jspb.utils.joinSignedDecimalString);
- };
- jspb.BinaryDecoder.prototype.readZigzagVarint64 = function () {
- return this.readSplitVarint64(jspb.utils.joinZigzag64);
- };
- jspb.BinaryDecoder.prototype.readZigzagVarintHash64 = function () {
- return this.readSplitZigzagVarint64(jspb.utils.joinHash64);
- };
- jspb.BinaryDecoder.prototype.readZigzagVarint64String = function () {
- return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString);
- };
- jspb.BinaryDecoder.prototype.readUint8 = function () {
- var a = this.bytes_[this.cursor_ + 0];
- this.cursor_ += 1;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return a;
- };
- jspb.BinaryDecoder.prototype.readUint16 = function () {
- var a = this.bytes_[this.cursor_ + 0],
- b = this.bytes_[this.cursor_ + 1];
- this.cursor_ += 2;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return a << 0 | b << 8;
- };
- jspb.BinaryDecoder.prototype.readUint32 = function () {
- var a = this.bytes_[this.cursor_ + 0],
- b = this.bytes_[this.cursor_ + 1],
- c = this.bytes_[this.cursor_ + 2],
- d = this.bytes_[this.cursor_ + 3];
- this.cursor_ += 4;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return (a << 0 | b << 8 | c << 16 | d << 24) >>> 0;
- };
- jspb.BinaryDecoder.prototype.readUint64 = function () {
- var a = this.readUint32(),
- b = this.readUint32();
- return jspb.utils.joinUint64(a, b);
- };
- jspb.BinaryDecoder.prototype.readUint64String = function () {
- var a = this.readUint32(),
- b = this.readUint32();
- return jspb.utils.joinUnsignedDecimalString(a, b);
- };
- jspb.BinaryDecoder.prototype.readInt8 = function () {
- var a = this.bytes_[this.cursor_ + 0];
- this.cursor_ += 1;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return a << 24 >> 24;
- };
- jspb.BinaryDecoder.prototype.readInt16 = function () {
- var a = this.bytes_[this.cursor_ + 0],
- b = this.bytes_[this.cursor_ + 1];
- this.cursor_ += 2;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return (a << 0 | b << 8) << 16 >> 16;
- };
- jspb.BinaryDecoder.prototype.readInt32 = function () {
- var a = this.bytes_[this.cursor_ + 0],
- b = this.bytes_[this.cursor_ + 1],
- c = this.bytes_[this.cursor_ + 2],
- d = this.bytes_[this.cursor_ + 3];
- this.cursor_ += 4;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return a << 0 | b << 8 | c << 16 | d << 24;
- };
- jspb.BinaryDecoder.prototype.readInt64 = function () {
- var a = this.readUint32(),
- b = this.readUint32();
- return jspb.utils.joinInt64(a, b);
- };
- jspb.BinaryDecoder.prototype.readInt64String = function () {
- var a = this.readUint32(),
- b = this.readUint32();
- return jspb.utils.joinSignedDecimalString(a, b);
- };
- jspb.BinaryDecoder.prototype.readFloat = function () {
- var a = this.readUint32();
- return jspb.utils.joinFloat32(a, 0);
- };
- jspb.BinaryDecoder.prototype.readDouble = function () {
- var a = this.readUint32(),
- b = this.readUint32();
- return jspb.utils.joinFloat64(a, b);
- };
- jspb.BinaryDecoder.prototype.readBool = function () {
- return !!this.bytes_[this.cursor_++];
- };
- jspb.BinaryDecoder.prototype.readEnum = function () {
- return this.readSignedVarint32();
- };
- jspb.BinaryDecoder.prototype.readString = function (a) {
- var b = this.bytes_,
- c = this.cursor_;
- a = c + a;
- for (var d = [], e = ""; c < a;) {
- var f = b[c++];
- if (128 > f) d.push(f);else if (192 > f) continue;else if (224 > f) {
- var g = b[c++];
- d.push((f & 31) << 6 | g & 63);
- } else if (240 > f) {
- g = b[c++];
- var h = b[c++];
- d.push((f & 15) << 12 | (g & 63) << 6 | h & 63);
- } else if (248 > f) {
- g = b[c++];
- h = b[c++];
- var k = b[c++];
- f = (f & 7) << 18 | (g & 63) << 12 | (h & 63) << 6 | k & 63;
- f -= 65536;
- d.push((f >> 10 & 1023) + 55296, (f & 1023) + 56320);
- }
- 8192 <= d.length && (e += String.fromCharCode.apply(null, d), d.length = 0);
- }
- e += goog.crypt.byteArrayToString(d);
- this.cursor_ = c;
- return e;
- };
- jspb.BinaryDecoder.prototype.readStringWithLength = function () {
- var a = this.readUnsignedVarint32();
- return this.readString(a);
- };
- jspb.BinaryDecoder.prototype.readBytes = function (a) {
- if (0 > a || this.cursor_ + a > this.bytes_.length) return this.error_ = !0, jspb.asserts.fail("Invalid byte length!"), new Uint8Array(0);
- var b = this.bytes_.subarray(this.cursor_, this.cursor_ + a);
- this.cursor_ += a;
- jspb.asserts.assert(this.cursor_ <= this.end_);
- return b;
- };
- jspb.BinaryDecoder.prototype.readVarintHash64 = function () {
- return this.readSplitVarint64(jspb.utils.joinHash64);
- };
- jspb.BinaryDecoder.prototype.readFixedHash64 = function () {
- var a = this.bytes_,
- b = this.cursor_,
- c = a[b + 0],
- d = a[b + 1],
- e = a[b + 2],
- f = a[b + 3],
- g = a[b + 4],
- h = a[b + 5],
- k = a[b + 6];
- a = a[b + 7];
- this.cursor_ += 8;
- return String.fromCharCode(c, d, e, f, g, h, k, a);
- };
- jspb.BinaryReader = function (a, b, c) {
- this.decoder_ = jspb.BinaryDecoder.alloc(a, b, c);
- this.fieldCursor_ = this.decoder_.getCursor();
- this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
- this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
- this.error_ = !1;
- this.readCallbacks_ = null;
- };
- jspb.BinaryReader.instanceCache_ = [];
- jspb.BinaryReader.alloc = function (a, b, c) {
- if (jspb.BinaryReader.instanceCache_.length) {
- var d = jspb.BinaryReader.instanceCache_.pop();
- a && d.decoder_.setBlock(a, b, c);
- return d;
- }
- return new jspb.BinaryReader(a, b, c);
- };
- jspb.BinaryReader.prototype.alloc = jspb.BinaryReader.alloc;
- jspb.BinaryReader.prototype.free = function () {
- this.decoder_.clear();
- this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
- this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
- this.error_ = !1;
- this.readCallbacks_ = null;
- 100 > jspb.BinaryReader.instanceCache_.length && jspb.BinaryReader.instanceCache_.push(this);
- };
- jspb.BinaryReader.prototype.getFieldCursor = function () {
- return this.fieldCursor_;
- };
- jspb.BinaryReader.prototype.getCursor = function () {
- return this.decoder_.getCursor();
- };
- jspb.BinaryReader.prototype.getBuffer = function () {
- return this.decoder_.getBuffer();
- };
- jspb.BinaryReader.prototype.getFieldNumber = function () {
- return this.nextField_;
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "getFieldNumber", jspb.BinaryReader.prototype.getFieldNumber);
- jspb.BinaryReader.prototype.getWireType = function () {
- return this.nextWireType_;
- };
- jspb.BinaryReader.prototype.isDelimited = function () {
- return this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED;
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "isDelimited", jspb.BinaryReader.prototype.isDelimited);
- jspb.BinaryReader.prototype.isEndGroup = function () {
- return this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP;
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "isEndGroup", jspb.BinaryReader.prototype.isEndGroup);
- jspb.BinaryReader.prototype.getError = function () {
- return this.error_ || this.decoder_.getError();
- };
- jspb.BinaryReader.prototype.setBlock = function (a, b, c) {
- this.decoder_.setBlock(a, b, c);
- this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
- this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
- };
- jspb.BinaryReader.prototype.reset = function () {
- this.decoder_.reset();
- this.nextField_ = jspb.BinaryConstants.INVALID_FIELD_NUMBER;
- this.nextWireType_ = jspb.BinaryConstants.WireType.INVALID;
- };
- jspb.BinaryReader.prototype.advance = function (a) {
- this.decoder_.advance(a);
- };
- jspb.BinaryReader.prototype.nextField = function () {
- if (this.decoder_.atEnd()) return !1;
- if (this.getError()) return jspb.asserts.fail("Decoder hit an error"), !1;
- this.fieldCursor_ = this.decoder_.getCursor();
- var a = this.decoder_.readUnsignedVarint32(),
- b = a >>> 3;
- a &= 7;
- if (a != jspb.BinaryConstants.WireType.VARINT && a != jspb.BinaryConstants.WireType.FIXED32 && a != jspb.BinaryConstants.WireType.FIXED64 && a != jspb.BinaryConstants.WireType.DELIMITED && a != jspb.BinaryConstants.WireType.START_GROUP && a != jspb.BinaryConstants.WireType.END_GROUP) return jspb.asserts.fail("Invalid wire type: %s (at position %s)", a, this.fieldCursor_), this.error_ = !0, !1;
- this.nextField_ = b;
- this.nextWireType_ = a;
- return !0;
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "nextField", jspb.BinaryReader.prototype.nextField);
- jspb.BinaryReader.prototype.unskipHeader = function () {
- this.decoder_.unskipVarint(this.nextField_ << 3 | this.nextWireType_);
- };
- jspb.BinaryReader.prototype.skipMatchingFields = function () {
- var a = this.nextField_;
- for (this.unskipHeader(); this.nextField() && this.getFieldNumber() == a;) {
- this.skipField();
- }
- this.decoder_.atEnd() || this.unskipHeader();
- };
- jspb.BinaryReader.prototype.skipVarintField = function () {
- this.nextWireType_ != jspb.BinaryConstants.WireType.VARINT ? (jspb.asserts.fail("Invalid wire type for skipVarintField"), this.skipField()) : this.decoder_.skipVarint();
- };
- jspb.BinaryReader.prototype.skipDelimitedField = function () {
- if (this.nextWireType_ != jspb.BinaryConstants.WireType.DELIMITED) jspb.asserts.fail("Invalid wire type for skipDelimitedField"), this.skipField();else {
- var a = this.decoder_.readUnsignedVarint32();
- this.decoder_.advance(a);
- }
- };
- jspb.BinaryReader.prototype.skipFixed32Field = function () {
- this.nextWireType_ != jspb.BinaryConstants.WireType.FIXED32 ? (jspb.asserts.fail("Invalid wire type for skipFixed32Field"), this.skipField()) : this.decoder_.advance(4);
- };
- jspb.BinaryReader.prototype.skipFixed64Field = function () {
- this.nextWireType_ != jspb.BinaryConstants.WireType.FIXED64 ? (jspb.asserts.fail("Invalid wire type for skipFixed64Field"), this.skipField()) : this.decoder_.advance(8);
- };
- jspb.BinaryReader.prototype.skipGroup = function () {
- var a = this.nextField_;
- do {
- if (!this.nextField()) {
- jspb.asserts.fail("Unmatched start-group tag: stream EOF");
- this.error_ = !0;
- break;
- }
- if (this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP) {
- this.nextField_ != a && (jspb.asserts.fail("Unmatched end-group tag"), this.error_ = !0);
- break;
- }
- this.skipField();
- } while (1);
- };
- jspb.BinaryReader.prototype.skipField = function () {
- switch (this.nextWireType_) {
- case jspb.BinaryConstants.WireType.VARINT:
- this.skipVarintField();
- break;
- case jspb.BinaryConstants.WireType.FIXED64:
- this.skipFixed64Field();
- break;
- case jspb.BinaryConstants.WireType.DELIMITED:
- this.skipDelimitedField();
- break;
- case jspb.BinaryConstants.WireType.FIXED32:
- this.skipFixed32Field();
- break;
- case jspb.BinaryConstants.WireType.START_GROUP:
- this.skipGroup();
- break;
- default:
- jspb.asserts.fail("Invalid wire encoding for field.");
- }
- };
- jspb.BinaryReader.prototype.registerReadCallback = function (a, b) {
- null === this.readCallbacks_ && (this.readCallbacks_ = {});
- jspb.asserts.assert(!this.readCallbacks_[a]);
- this.readCallbacks_[a] = b;
- };
- jspb.BinaryReader.prototype.runReadCallback = function (a) {
- jspb.asserts.assert(null !== this.readCallbacks_);
- a = this.readCallbacks_[a];
- jspb.asserts.assert(a);
- return a(this);
- };
- jspb.BinaryReader.prototype.readAny = function (a) {
- this.nextWireType_ = jspb.BinaryConstants.FieldTypeToWireType(a);
- var b = jspb.BinaryConstants.FieldType;
- switch (a) {
- case b.DOUBLE:
- return this.readDouble();
- case b.FLOAT:
- return this.readFloat();
- case b.INT64:
- return this.readInt64();
- case b.UINT64:
- return this.readUint64();
- case b.INT32:
- return this.readInt32();
- case b.FIXED64:
- return this.readFixed64();
- case b.FIXED32:
- return this.readFixed32();
- case b.BOOL:
- return this.readBool();
- case b.STRING:
- return this.readString();
- case b.GROUP:
- jspb.asserts.fail("Group field type not supported in readAny()");
- case b.MESSAGE:
- jspb.asserts.fail("Message field type not supported in readAny()");
- case b.BYTES:
- return this.readBytes();
- case b.UINT32:
- return this.readUint32();
- case b.ENUM:
- return this.readEnum();
- case b.SFIXED32:
- return this.readSfixed32();
- case b.SFIXED64:
- return this.readSfixed64();
- case b.SINT32:
- return this.readSint32();
- case b.SINT64:
- return this.readSint64();
- case b.FHASH64:
- return this.readFixedHash64();
- case b.VHASH64:
- return this.readVarintHash64();
- default:
- jspb.asserts.fail("Invalid field type in readAny()");
- }
- return 0;
- };
- jspb.BinaryReader.prototype.readMessage = function (a, b) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
- var c = this.decoder_.getEnd(),
- d = this.decoder_.readUnsignedVarint32();
- d = this.decoder_.getCursor() + d;
- this.decoder_.setEnd(d);
- b(a, this);
- this.decoder_.setCursor(d);
- this.decoder_.setEnd(c);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readMessage", jspb.BinaryReader.prototype.readMessage);
- jspb.BinaryReader.prototype.readGroup = function (a, b, c) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.START_GROUP);
- jspb.asserts.assert(this.nextField_ == a);
- c(b, this);
- this.error_ || this.nextWireType_ == jspb.BinaryConstants.WireType.END_GROUP || (jspb.asserts.fail("Group submessage did not end with an END_GROUP tag"), this.error_ = !0);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readGroup", jspb.BinaryReader.prototype.readGroup);
- jspb.BinaryReader.prototype.getFieldDecoder = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
- var a = this.decoder_.readUnsignedVarint32(),
- b = this.decoder_.getCursor(),
- c = b + a;
- a = jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(), b, a);
- this.decoder_.setCursor(c);
- return a;
- };
- jspb.BinaryReader.prototype.readInt32 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSignedVarint32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readInt32", jspb.BinaryReader.prototype.readInt32);
- jspb.BinaryReader.prototype.readInt32String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSignedVarint32String();
- };
- jspb.BinaryReader.prototype.readInt64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSignedVarint64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readInt64", jspb.BinaryReader.prototype.readInt64);
- jspb.BinaryReader.prototype.readInt64String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSignedVarint64String();
- };
- jspb.BinaryReader.prototype.readUint32 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readUnsignedVarint32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readUint32", jspb.BinaryReader.prototype.readUint32);
- jspb.BinaryReader.prototype.readUint32String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readUnsignedVarint32String();
- };
- jspb.BinaryReader.prototype.readUint64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readUnsignedVarint64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readUint64", jspb.BinaryReader.prototype.readUint64);
- jspb.BinaryReader.prototype.readUint64String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readUnsignedVarint64String();
- };
- jspb.BinaryReader.prototype.readSint32 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readZigzagVarint32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readSint32", jspb.BinaryReader.prototype.readSint32);
- jspb.BinaryReader.prototype.readSint64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readZigzagVarint64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readSint64", jspb.BinaryReader.prototype.readSint64);
- jspb.BinaryReader.prototype.readSint64String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readZigzagVarint64String();
- };
- jspb.BinaryReader.prototype.readFixed32 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
- return this.decoder_.readUint32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readFixed32", jspb.BinaryReader.prototype.readFixed32);
- jspb.BinaryReader.prototype.readFixed64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readUint64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readFixed64", jspb.BinaryReader.prototype.readFixed64);
- jspb.BinaryReader.prototype.readFixed64String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readUint64String();
- };
- jspb.BinaryReader.prototype.readSfixed32 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
- return this.decoder_.readInt32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readSfixed32", jspb.BinaryReader.prototype.readSfixed32);
- jspb.BinaryReader.prototype.readSfixed32String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
- return this.decoder_.readInt32().toString();
- };
- jspb.BinaryReader.prototype.readSfixed64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readInt64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readSfixed64", jspb.BinaryReader.prototype.readSfixed64);
- jspb.BinaryReader.prototype.readSfixed64String = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readInt64String();
- };
- jspb.BinaryReader.prototype.readFloat = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED32);
- return this.decoder_.readFloat();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readFloat", jspb.BinaryReader.prototype.readFloat);
- jspb.BinaryReader.prototype.readDouble = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readDouble();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readDouble", jspb.BinaryReader.prototype.readDouble);
- jspb.BinaryReader.prototype.readBool = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return !!this.decoder_.readUnsignedVarint32();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readBool", jspb.BinaryReader.prototype.readBool);
- jspb.BinaryReader.prototype.readEnum = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSignedVarint64();
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readEnum", jspb.BinaryReader.prototype.readEnum);
- jspb.BinaryReader.prototype.readString = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
- var a = this.decoder_.readUnsignedVarint32();
- return this.decoder_.readString(a);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readString", jspb.BinaryReader.prototype.readString);
- jspb.BinaryReader.prototype.readBytes = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
- var a = this.decoder_.readUnsignedVarint32();
- return this.decoder_.readBytes(a);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readBytes", jspb.BinaryReader.prototype.readBytes);
- jspb.BinaryReader.prototype.readVarintHash64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readVarintHash64();
- };
- jspb.BinaryReader.prototype.readSintHash64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readZigzagVarintHash64();
- };
- jspb.BinaryReader.prototype.readSplitVarint64 = function (a) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSplitVarint64(a);
- };
- jspb.BinaryReader.prototype.readSplitZigzagVarint64 = function (a) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.VARINT);
- return this.decoder_.readSplitVarint64(function (b, c) {
- return jspb.utils.fromZigzag64(b, c, a);
- });
- };
- jspb.BinaryReader.prototype.readFixedHash64 = function () {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readFixedHash64();
- };
- jspb.BinaryReader.prototype.readSplitFixed64 = function (a) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.FIXED64);
- return this.decoder_.readSplitFixed64(a);
- };
- jspb.BinaryReader.prototype.readPackedField_ = function (a) {
- jspb.asserts.assert(this.nextWireType_ == jspb.BinaryConstants.WireType.DELIMITED);
- var b = this.decoder_.readUnsignedVarint32();
- b = this.decoder_.getCursor() + b;
- for (var c = []; this.decoder_.getCursor() < b;) {
- c.push(a.call(this.decoder_));
- }
- return c;
- };
- jspb.BinaryReader.prototype.readPackedInt32 = function () {
- return this.readPackedField_(this.decoder_.readSignedVarint32);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedInt32", jspb.BinaryReader.prototype.readPackedInt32);
- jspb.BinaryReader.prototype.readPackedInt32String = function () {
- return this.readPackedField_(this.decoder_.readSignedVarint32String);
- };
- jspb.BinaryReader.prototype.readPackedInt64 = function () {
- return this.readPackedField_(this.decoder_.readSignedVarint64);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedInt64", jspb.BinaryReader.prototype.readPackedInt64);
- jspb.BinaryReader.prototype.readPackedInt64String = function () {
- return this.readPackedField_(this.decoder_.readSignedVarint64String);
- };
- jspb.BinaryReader.prototype.readPackedUint32 = function () {
- return this.readPackedField_(this.decoder_.readUnsignedVarint32);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedUint32", jspb.BinaryReader.prototype.readPackedUint32);
- jspb.BinaryReader.prototype.readPackedUint32String = function () {
- return this.readPackedField_(this.decoder_.readUnsignedVarint32String);
- };
- jspb.BinaryReader.prototype.readPackedUint64 = function () {
- return this.readPackedField_(this.decoder_.readUnsignedVarint64);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedUint64", jspb.BinaryReader.prototype.readPackedUint64);
- jspb.BinaryReader.prototype.readPackedUint64String = function () {
- return this.readPackedField_(this.decoder_.readUnsignedVarint64String);
- };
- jspb.BinaryReader.prototype.readPackedSint32 = function () {
- return this.readPackedField_(this.decoder_.readZigzagVarint32);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedSint32", jspb.BinaryReader.prototype.readPackedSint32);
- jspb.BinaryReader.prototype.readPackedSint64 = function () {
- return this.readPackedField_(this.decoder_.readZigzagVarint64);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedSint64", jspb.BinaryReader.prototype.readPackedSint64);
- jspb.BinaryReader.prototype.readPackedSint64String = function () {
- return this.readPackedField_(this.decoder_.readZigzagVarint64String);
- };
- jspb.BinaryReader.prototype.readPackedFixed32 = function () {
- return this.readPackedField_(this.decoder_.readUint32);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedFixed32", jspb.BinaryReader.prototype.readPackedFixed32);
- jspb.BinaryReader.prototype.readPackedFixed64 = function () {
- return this.readPackedField_(this.decoder_.readUint64);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedFixed64", jspb.BinaryReader.prototype.readPackedFixed64);
- jspb.BinaryReader.prototype.readPackedFixed64String = function () {
- return this.readPackedField_(this.decoder_.readUint64String);
- };
- jspb.BinaryReader.prototype.readPackedSfixed32 = function () {
- return this.readPackedField_(this.decoder_.readInt32);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedSfixed32", jspb.BinaryReader.prototype.readPackedSfixed32);
- jspb.BinaryReader.prototype.readPackedSfixed64 = function () {
- return this.readPackedField_(this.decoder_.readInt64);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedSfixed64", jspb.BinaryReader.prototype.readPackedSfixed64);
- jspb.BinaryReader.prototype.readPackedSfixed64String = function () {
- return this.readPackedField_(this.decoder_.readInt64String);
- };
- jspb.BinaryReader.prototype.readPackedFloat = function () {
- return this.readPackedField_(this.decoder_.readFloat);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedFloat", jspb.BinaryReader.prototype.readPackedFloat);
- jspb.BinaryReader.prototype.readPackedDouble = function () {
- return this.readPackedField_(this.decoder_.readDouble);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedDouble", jspb.BinaryReader.prototype.readPackedDouble);
- jspb.BinaryReader.prototype.readPackedBool = function () {
- return this.readPackedField_(this.decoder_.readBool);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedBool", jspb.BinaryReader.prototype.readPackedBool);
- jspb.BinaryReader.prototype.readPackedEnum = function () {
- return this.readPackedField_(this.decoder_.readEnum);
- };
- goog.exportProperty(jspb.BinaryReader.prototype, "readPackedEnum", jspb.BinaryReader.prototype.readPackedEnum);
- jspb.BinaryReader.prototype.readPackedVarintHash64 = function () {
- return this.readPackedField_(this.decoder_.readVarintHash64);
- };
- jspb.BinaryReader.prototype.readPackedFixedHash64 = function () {
- return this.readPackedField_(this.decoder_.readFixedHash64);
- };
- jspb.BinaryEncoder = function () {
- this.buffer_ = [];
- };
- jspb.BinaryEncoder.prototype.length = function () {
- return this.buffer_.length;
- };
- jspb.BinaryEncoder.prototype.end = function () {
- var a = this.buffer_;
- this.buffer_ = [];
- return a;
- };
- jspb.BinaryEncoder.prototype.writeSplitVarint64 = function (a, b) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(b == Math.floor(b));
- jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_32);
- for (jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_32); 0 < b || 127 < a;) {
- this.buffer_.push(a & 127 | 128), a = (a >>> 7 | b << 25) >>> 0, b >>>= 7;
- }
- this.buffer_.push(a);
- };
- jspb.BinaryEncoder.prototype.writeSplitFixed64 = function (a, b) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(b == Math.floor(b));
- jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_32);
- jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_32);
- this.writeUint32(a);
- this.writeUint32(b);
- };
- jspb.BinaryEncoder.prototype.writeUnsignedVarint32 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- for (jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_32); 127 < a;) {
- this.buffer_.push(a & 127 | 128), a >>>= 7;
- }
- this.buffer_.push(a);
- };
- jspb.BinaryEncoder.prototype.writeSignedVarint32 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_31 && a < jspb.BinaryConstants.TWO_TO_31);
- if (0 <= a) this.writeUnsignedVarint32(a);else {
- for (var b = 0; 9 > b; b++) {
- this.buffer_.push(a & 127 | 128), a >>= 7;
- }
- this.buffer_.push(1);
- }
- };
- jspb.BinaryEncoder.prototype.writeUnsignedVarint64 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_64);
- jspb.utils.splitInt64(a);
- this.writeSplitVarint64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeSignedVarint64 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_63 && a < jspb.BinaryConstants.TWO_TO_63);
- jspb.utils.splitInt64(a);
- this.writeSplitVarint64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeZigzagVarint32 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_31 && a < jspb.BinaryConstants.TWO_TO_31);
- this.writeUnsignedVarint32((a << 1 ^ a >> 31) >>> 0);
- };
- jspb.BinaryEncoder.prototype.writeZigzagVarint64 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_63 && a < jspb.BinaryConstants.TWO_TO_63);
- jspb.utils.splitZigzag64(a);
- this.writeSplitVarint64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeZigzagVarint64String = function (a) {
- this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(a));
- };
- jspb.BinaryEncoder.prototype.writeZigzagVarintHash64 = function (a) {
- var b = this;
- jspb.utils.splitHash64(a);
- jspb.utils.toZigzag64(jspb.utils.split64Low, jspb.utils.split64High, function (a, d) {
- b.writeSplitVarint64(a >>> 0, d >>> 0);
- });
- };
- jspb.BinaryEncoder.prototype.writeUint8 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(0 <= a && 256 > a);
- this.buffer_.push(a >>> 0 & 255);
- };
- jspb.BinaryEncoder.prototype.writeUint16 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(0 <= a && 65536 > a);
- this.buffer_.push(a >>> 0 & 255);
- this.buffer_.push(a >>> 8 & 255);
- };
- jspb.BinaryEncoder.prototype.writeUint32 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_32);
- this.buffer_.push(a >>> 0 & 255);
- this.buffer_.push(a >>> 8 & 255);
- this.buffer_.push(a >>> 16 & 255);
- this.buffer_.push(a >>> 24 & 255);
- };
- jspb.BinaryEncoder.prototype.writeUint64 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(0 <= a && a < jspb.BinaryConstants.TWO_TO_64);
- jspb.utils.splitUint64(a);
- this.writeUint32(jspb.utils.split64Low);
- this.writeUint32(jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeInt8 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(-128 <= a && 128 > a);
- this.buffer_.push(a >>> 0 & 255);
- };
- jspb.BinaryEncoder.prototype.writeInt16 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(-32768 <= a && 32768 > a);
- this.buffer_.push(a >>> 0 & 255);
- this.buffer_.push(a >>> 8 & 255);
- };
- jspb.BinaryEncoder.prototype.writeInt32 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_31 && a < jspb.BinaryConstants.TWO_TO_31);
- this.buffer_.push(a >>> 0 & 255);
- this.buffer_.push(a >>> 8 & 255);
- this.buffer_.push(a >>> 16 & 255);
- this.buffer_.push(a >>> 24 & 255);
- };
- jspb.BinaryEncoder.prototype.writeInt64 = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_63 && a < jspb.BinaryConstants.TWO_TO_63);
- jspb.utils.splitInt64(a);
- this.writeSplitFixed64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeInt64String = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(+a >= -jspb.BinaryConstants.TWO_TO_63 && +a < jspb.BinaryConstants.TWO_TO_63);
- jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(a));
- this.writeSplitFixed64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeFloat = function (a) {
- jspb.asserts.assert(Infinity === a || -Infinity === a || isNaN(a) || a >= -jspb.BinaryConstants.FLOAT32_MAX && a <= jspb.BinaryConstants.FLOAT32_MAX);
- jspb.utils.splitFloat32(a);
- this.writeUint32(jspb.utils.split64Low);
- };
- jspb.BinaryEncoder.prototype.writeDouble = function (a) {
- jspb.asserts.assert(Infinity === a || -Infinity === a || isNaN(a) || a >= -jspb.BinaryConstants.FLOAT64_MAX && a <= jspb.BinaryConstants.FLOAT64_MAX);
- jspb.utils.splitFloat64(a);
- this.writeUint32(jspb.utils.split64Low);
- this.writeUint32(jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeBool = function (a) {
- jspb.asserts.assert("boolean" === typeof a || "number" === typeof a);
- this.buffer_.push(a ? 1 : 0);
- };
- jspb.BinaryEncoder.prototype.writeEnum = function (a) {
- jspb.asserts.assert(a == Math.floor(a));
- jspb.asserts.assert(a >= -jspb.BinaryConstants.TWO_TO_31 && a < jspb.BinaryConstants.TWO_TO_31);
- this.writeSignedVarint32(a);
- };
- jspb.BinaryEncoder.prototype.writeBytes = function (a) {
- this.buffer_.push.apply(this.buffer_, a);
- };
- jspb.BinaryEncoder.prototype.writeVarintHash64 = function (a) {
- jspb.utils.splitHash64(a);
- this.writeSplitVarint64(jspb.utils.split64Low, jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeFixedHash64 = function (a) {
- jspb.utils.splitHash64(a);
- this.writeUint32(jspb.utils.split64Low);
- this.writeUint32(jspb.utils.split64High);
- };
- jspb.BinaryEncoder.prototype.writeString = function (a) {
- var b = this.buffer_.length;
- jspb.asserts.assertString(a);
- for (var c = 0; c < a.length; c++) {
- var d = a.charCodeAt(c);
- if (128 > d) this.buffer_.push(d);else if (2048 > d) this.buffer_.push(d >> 6 | 192), this.buffer_.push(d & 63 | 128);else if (65536 > d) if (55296 <= d && 56319 >= d && c + 1 < a.length) {
- var e = a.charCodeAt(c + 1);
- 56320 <= e && 57343 >= e && (d = 1024 * (d - 55296) + e - 56320 + 65536, this.buffer_.push(d >> 18 | 240), this.buffer_.push(d >> 12 & 63 | 128), this.buffer_.push(d >> 6 & 63 | 128), this.buffer_.push(d & 63 | 128), c++);
- } else this.buffer_.push(d >> 12 | 224), this.buffer_.push(d >> 6 & 63 | 128), this.buffer_.push(d & 63 | 128);
- }
- return this.buffer_.length - b;
- };
- jspb.arith = {};
- jspb.arith.UInt64 = function (a, b) {
- this.lo = a;
- this.hi = b;
- };
- jspb.arith.UInt64.prototype.cmp = function (a) {
- return this.hi < a.hi || this.hi == a.hi && this.lo < a.lo ? -1 : this.hi == a.hi && this.lo == a.lo ? 0 : 1;
- };
- jspb.arith.UInt64.prototype.rightShift = function () {
- return new jspb.arith.UInt64((this.lo >>> 1 | (this.hi & 1) << 31) >>> 0, this.hi >>> 1 >>> 0);
- };
- jspb.arith.UInt64.prototype.leftShift = function () {
- return new jspb.arith.UInt64(this.lo << 1 >>> 0, (this.hi << 1 | this.lo >>> 31) >>> 0);
- };
- jspb.arith.UInt64.prototype.msb = function () {
- return !!(this.hi & 2147483648);
- };
- jspb.arith.UInt64.prototype.lsb = function () {
- return !!(this.lo & 1);
- };
- jspb.arith.UInt64.prototype.zero = function () {
- return 0 == this.lo && 0 == this.hi;
- };
- jspb.arith.UInt64.prototype.add = function (a) {
- return new jspb.arith.UInt64((this.lo + a.lo & 4294967295) >>> 0 >>> 0, ((this.hi + a.hi & 4294967295) >>> 0) + (4294967296 <= this.lo + a.lo ? 1 : 0) >>> 0);
- };
- jspb.arith.UInt64.prototype.sub = function (a) {
- return new jspb.arith.UInt64((this.lo - a.lo & 4294967295) >>> 0 >>> 0, ((this.hi - a.hi & 4294967295) >>> 0) - (0 > this.lo - a.lo ? 1 : 0) >>> 0);
- };
- jspb.arith.UInt64.mul32x32 = function (a, b) {
- var c = a & 65535;
- a >>>= 16;
- var d = b & 65535,
- e = b >>> 16;
- b = c * d + 65536 * (c * e & 65535) + 65536 * (a * d & 65535);
- for (c = a * e + (c * e >>> 16) + (a * d >>> 16); 4294967296 <= b;) {
- b -= 4294967296, c += 1;
- }
- return new jspb.arith.UInt64(b >>> 0, c >>> 0);
- };
- jspb.arith.UInt64.prototype.mul = function (a) {
- var b = jspb.arith.UInt64.mul32x32(this.lo, a);
- a = jspb.arith.UInt64.mul32x32(this.hi, a);
- a.hi = a.lo;
- a.lo = 0;
- return b.add(a);
- };
- jspb.arith.UInt64.prototype.div = function (a) {
- if (0 == a) return [];
- var b = new jspb.arith.UInt64(0, 0),
- c = new jspb.arith.UInt64(this.lo, this.hi);
- a = new jspb.arith.UInt64(a, 0);
- for (var d = new jspb.arith.UInt64(1, 0); !a.msb();) {
- a = a.leftShift(), d = d.leftShift();
- }
- for (; !d.zero();) {
- 0 >= a.cmp(c) && (b = b.add(d), c = c.sub(a)), a = a.rightShift(), d = d.rightShift();
- }
- return [b, c];
- };
- jspb.arith.UInt64.prototype.toString = function () {
- for (var a = "", b = this; !b.zero();) {
- b = b.div(10);
- var c = b[0];
- a = b[1].lo + a;
- b = c;
- }
- "" == a && (a = "0");
- return a;
- };
- jspb.arith.UInt64.fromString = function (a) {
- for (var b = new jspb.arith.UInt64(0, 0), c = new jspb.arith.UInt64(0, 0), d = 0; d < a.length; d++) {
- if ("0" > a[d] || "9" < a[d]) return null;
- var e = parseInt(a[d], 10);
- c.lo = e;
- b = b.mul(10).add(c);
- }
- return b;
- };
- jspb.arith.UInt64.prototype.clone = function () {
- return new jspb.arith.UInt64(this.lo, this.hi);
- };
- jspb.arith.Int64 = function (a, b) {
- this.lo = a;
- this.hi = b;
- };
- jspb.arith.Int64.prototype.add = function (a) {
- return new jspb.arith.Int64((this.lo + a.lo & 4294967295) >>> 0 >>> 0, ((this.hi + a.hi & 4294967295) >>> 0) + (4294967296 <= this.lo + a.lo ? 1 : 0) >>> 0);
- };
- jspb.arith.Int64.prototype.sub = function (a) {
- return new jspb.arith.Int64((this.lo - a.lo & 4294967295) >>> 0 >>> 0, ((this.hi - a.hi & 4294967295) >>> 0) - (0 > this.lo - a.lo ? 1 : 0) >>> 0);
- };
- jspb.arith.Int64.prototype.clone = function () {
- return new jspb.arith.Int64(this.lo, this.hi);
- };
- jspb.arith.Int64.prototype.toString = function () {
- var a = 0 != (this.hi & 2147483648),
- b = new jspb.arith.UInt64(this.lo, this.hi);
- a && (b = new jspb.arith.UInt64(0, 0).sub(b));
- return (a ? "-" : "") + b.toString();
- };
- jspb.arith.Int64.fromString = function (a) {
- var b = 0 < a.length && "-" == a[0];
- b && (a = a.substring(1));
- a = jspb.arith.UInt64.fromString(a);
- if (null === a) return null;
- b && (a = new jspb.arith.UInt64(0, 0).sub(a));
- return new jspb.arith.Int64(a.lo, a.hi);
- };
- jspb.BinaryWriter = function () {
- this.blocks_ = [];
- this.totalLength_ = 0;
- this.encoder_ = new jspb.BinaryEncoder();
- this.bookmarks_ = [];
- };
- jspb.BinaryWriter.prototype.appendUint8Array_ = function (a) {
- var b = this.encoder_.end();
- this.blocks_.push(b);
- this.blocks_.push(a);
- this.totalLength_ += b.length + a.length;
- };
- jspb.BinaryWriter.prototype.beginDelimited_ = function (a) {
- this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED);
- a = this.encoder_.end();
- this.blocks_.push(a);
- this.totalLength_ += a.length;
- a.push(this.totalLength_);
- return a;
- };
- jspb.BinaryWriter.prototype.endDelimited_ = function (a) {
- var b = a.pop();
- b = this.totalLength_ + this.encoder_.length() - b;
- for (jspb.asserts.assert(0 <= b); 127 < b;) {
- a.push(b & 127 | 128), b >>>= 7, this.totalLength_++;
- }
- a.push(b);
- this.totalLength_++;
- };
- jspb.BinaryWriter.prototype.writeSerializedMessage = function (a, b, c) {
- this.appendUint8Array_(a.subarray(b, c));
- };
- jspb.BinaryWriter.prototype.maybeWriteSerializedMessage = function (a, b, c) {
- null != a && null != b && null != c && this.writeSerializedMessage(a, b, c);
- };
- jspb.BinaryWriter.prototype.reset = function () {
- this.blocks_ = [];
- this.encoder_.end();
- this.totalLength_ = 0;
- this.bookmarks_ = [];
- };
- jspb.BinaryWriter.prototype.getResultBuffer = function () {
- jspb.asserts.assert(0 == this.bookmarks_.length);
- for (var a = new Uint8Array(this.totalLength_ + this.encoder_.length()), b = this.blocks_, c = b.length, d = 0, e = 0; e < c; e++) {
- var f = b[e];
- a.set(f, d);
- d += f.length;
- }
- b = this.encoder_.end();
- a.set(b, d);
- d += b.length;
- jspb.asserts.assert(d == a.length);
- this.blocks_ = [a];
- return a;
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "getResultBuffer", jspb.BinaryWriter.prototype.getResultBuffer);
- jspb.BinaryWriter.prototype.getResultBase64String = function (a) {
- return goog.crypt.base64.encodeByteArray(this.getResultBuffer(), a);
- };
- jspb.BinaryWriter.prototype.beginSubMessage = function (a) {
- this.bookmarks_.push(this.beginDelimited_(a));
- };
- jspb.BinaryWriter.prototype.endSubMessage = function () {
- jspb.asserts.assert(0 <= this.bookmarks_.length);
- this.endDelimited_(this.bookmarks_.pop());
- };
- jspb.BinaryWriter.prototype.writeFieldHeader_ = function (a, b) {
- jspb.asserts.assert(1 <= a && a == Math.floor(a));
- this.encoder_.writeUnsignedVarint32(8 * a + b);
- };
- jspb.BinaryWriter.prototype.writeAny = function (a, b, c) {
- var d = jspb.BinaryConstants.FieldType;
- switch (a) {
- case d.DOUBLE:
- this.writeDouble(b, c);
- break;
- case d.FLOAT:
- this.writeFloat(b, c);
- break;
- case d.INT64:
- this.writeInt64(b, c);
- break;
- case d.UINT64:
- this.writeUint64(b, c);
- break;
- case d.INT32:
- this.writeInt32(b, c);
- break;
- case d.FIXED64:
- this.writeFixed64(b, c);
- break;
- case d.FIXED32:
- this.writeFixed32(b, c);
- break;
- case d.BOOL:
- this.writeBool(b, c);
- break;
- case d.STRING:
- this.writeString(b, c);
- break;
- case d.GROUP:
- jspb.asserts.fail("Group field type not supported in writeAny()");
- break;
- case d.MESSAGE:
- jspb.asserts.fail("Message field type not supported in writeAny()");
- break;
- case d.BYTES:
- this.writeBytes(b, c);
- break;
- case d.UINT32:
- this.writeUint32(b, c);
- break;
- case d.ENUM:
- this.writeEnum(b, c);
- break;
- case d.SFIXED32:
- this.writeSfixed32(b, c);
- break;
- case d.SFIXED64:
- this.writeSfixed64(b, c);
- break;
- case d.SINT32:
- this.writeSint32(b, c);
- break;
- case d.SINT64:
- this.writeSint64(b, c);
- break;
- case d.FHASH64:
- this.writeFixedHash64(b, c);
- break;
- case d.VHASH64:
- this.writeVarintHash64(b, c);
- break;
- default:
- jspb.asserts.fail("Invalid field type in writeAny()");
- }
- };
- jspb.BinaryWriter.prototype.writeUnsignedVarint32_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeUnsignedVarint32(b));
- };
- jspb.BinaryWriter.prototype.writeSignedVarint32_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSignedVarint32(b));
- };
- jspb.BinaryWriter.prototype.writeUnsignedVarint64_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeUnsignedVarint64(b));
- };
- jspb.BinaryWriter.prototype.writeSignedVarint64_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSignedVarint64(b));
- };
- jspb.BinaryWriter.prototype.writeZigzagVarint32_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeZigzagVarint32(b));
- };
- jspb.BinaryWriter.prototype.writeZigzagVarint64_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeZigzagVarint64(b));
- };
- jspb.BinaryWriter.prototype.writeZigzagVarint64String_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeZigzagVarint64String(b));
- };
- jspb.BinaryWriter.prototype.writeZigzagVarintHash64_ = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeZigzagVarintHash64(b));
- };
- jspb.BinaryWriter.prototype.writeInt32 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_31 && b < jspb.BinaryConstants.TWO_TO_31), this.writeSignedVarint32_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeInt32", jspb.BinaryWriter.prototype.writeInt32);
- jspb.BinaryWriter.prototype.writeInt32String = function (a, b) {
- null != b && (b = parseInt(b, 10), jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_31 && b < jspb.BinaryConstants.TWO_TO_31), this.writeSignedVarint32_(a, b));
- };
- jspb.BinaryWriter.prototype.writeInt64 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_63 && b < jspb.BinaryConstants.TWO_TO_63), this.writeSignedVarint64_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeInt64", jspb.BinaryWriter.prototype.writeInt64);
- jspb.BinaryWriter.prototype.writeInt64String = function (a, b) {
- null != b && (b = jspb.arith.Int64.fromString(b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSplitVarint64(b.lo, b.hi));
- };
- jspb.BinaryWriter.prototype.writeUint32 = function (a, b) {
- null != b && (jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_32), this.writeUnsignedVarint32_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeUint32", jspb.BinaryWriter.prototype.writeUint32);
- jspb.BinaryWriter.prototype.writeUint32String = function (a, b) {
- null != b && (b = parseInt(b, 10), jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_32), this.writeUnsignedVarint32_(a, b));
- };
- jspb.BinaryWriter.prototype.writeUint64 = function (a, b) {
- null != b && (jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_64), this.writeUnsignedVarint64_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeUint64", jspb.BinaryWriter.prototype.writeUint64);
- jspb.BinaryWriter.prototype.writeUint64String = function (a, b) {
- null != b && (b = jspb.arith.UInt64.fromString(b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSplitVarint64(b.lo, b.hi));
- };
- jspb.BinaryWriter.prototype.writeSint32 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_31 && b < jspb.BinaryConstants.TWO_TO_31), this.writeZigzagVarint32_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeSint32", jspb.BinaryWriter.prototype.writeSint32);
- jspb.BinaryWriter.prototype.writeSint64 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_63 && b < jspb.BinaryConstants.TWO_TO_63), this.writeZigzagVarint64_(a, b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeSint64", jspb.BinaryWriter.prototype.writeSint64);
- jspb.BinaryWriter.prototype.writeSintHash64 = function (a, b) {
- null != b && this.writeZigzagVarintHash64_(a, b);
- };
- jspb.BinaryWriter.prototype.writeSint64String = function (a, b) {
- null != b && this.writeZigzagVarint64String_(a, b);
- };
- jspb.BinaryWriter.prototype.writeFixed32 = function (a, b) {
- null != b && (jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_32), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED32), this.encoder_.writeUint32(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeFixed32", jspb.BinaryWriter.prototype.writeFixed32);
- jspb.BinaryWriter.prototype.writeFixed64 = function (a, b) {
- null != b && (jspb.asserts.assert(0 <= b && b < jspb.BinaryConstants.TWO_TO_64), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeUint64(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeFixed64", jspb.BinaryWriter.prototype.writeFixed64);
- jspb.BinaryWriter.prototype.writeFixed64String = function (a, b) {
- null != b && (b = jspb.arith.UInt64.fromString(b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeSplitFixed64(b.lo, b.hi));
- };
- jspb.BinaryWriter.prototype.writeSfixed32 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_31 && b < jspb.BinaryConstants.TWO_TO_31), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED32), this.encoder_.writeInt32(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeSfixed32", jspb.BinaryWriter.prototype.writeSfixed32);
- jspb.BinaryWriter.prototype.writeSfixed64 = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_63 && b < jspb.BinaryConstants.TWO_TO_63), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeInt64(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeSfixed64", jspb.BinaryWriter.prototype.writeSfixed64);
- jspb.BinaryWriter.prototype.writeSfixed64String = function (a, b) {
- null != b && (b = jspb.arith.Int64.fromString(b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeSplitFixed64(b.lo, b.hi));
- };
- jspb.BinaryWriter.prototype.writeFloat = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED32), this.encoder_.writeFloat(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeFloat", jspb.BinaryWriter.prototype.writeFloat);
- jspb.BinaryWriter.prototype.writeDouble = function (a, b) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeDouble(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeDouble", jspb.BinaryWriter.prototype.writeDouble);
- jspb.BinaryWriter.prototype.writeBool = function (a, b) {
- null != b && (jspb.asserts.assert("boolean" === typeof b || "number" === typeof b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeBool(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeBool", jspb.BinaryWriter.prototype.writeBool);
- jspb.BinaryWriter.prototype.writeEnum = function (a, b) {
- null != b && (jspb.asserts.assert(b >= -jspb.BinaryConstants.TWO_TO_31 && b < jspb.BinaryConstants.TWO_TO_31), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSignedVarint32(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeEnum", jspb.BinaryWriter.prototype.writeEnum);
- jspb.BinaryWriter.prototype.writeString = function (a, b) {
- null != b && (a = this.beginDelimited_(a), this.encoder_.writeString(b), this.endDelimited_(a));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeString", jspb.BinaryWriter.prototype.writeString);
- jspb.BinaryWriter.prototype.writeBytes = function (a, b) {
- null != b && (b = jspb.utils.byteSourceToUint8Array(b), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(b.length), this.appendUint8Array_(b));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeBytes", jspb.BinaryWriter.prototype.writeBytes);
- jspb.BinaryWriter.prototype.writeMessage = function (a, b, c) {
- null != b && (a = this.beginDelimited_(a), c(b, this), this.endDelimited_(a));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeMessage", jspb.BinaryWriter.prototype.writeMessage);
- jspb.BinaryWriter.prototype.writeMessageSet = function (a, b, c) {
- null != b && (this.writeFieldHeader_(1, jspb.BinaryConstants.WireType.START_GROUP), this.writeFieldHeader_(2, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeSignedVarint32(a), a = this.beginDelimited_(3), c(b, this), this.endDelimited_(a), this.writeFieldHeader_(1, jspb.BinaryConstants.WireType.END_GROUP));
- };
- jspb.BinaryWriter.prototype.writeGroup = function (a, b, c) {
- null != b && (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.START_GROUP), c(b, this), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.END_GROUP));
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeGroup", jspb.BinaryWriter.prototype.writeGroup);
- jspb.BinaryWriter.prototype.writeFixedHash64 = function (a, b) {
- null != b && (jspb.asserts.assert(8 == b.length), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64), this.encoder_.writeFixedHash64(b));
- };
- jspb.BinaryWriter.prototype.writeVarintHash64 = function (a, b) {
- null != b && (jspb.asserts.assert(8 == b.length), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT), this.encoder_.writeVarintHash64(b));
- };
- jspb.BinaryWriter.prototype.writeSplitFixed64 = function (a, b, c) {
- this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.FIXED64);
- this.encoder_.writeSplitFixed64(b, c);
- };
- jspb.BinaryWriter.prototype.writeSplitVarint64 = function (a, b, c) {
- this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT);
- this.encoder_.writeSplitVarint64(b, c);
- };
- jspb.BinaryWriter.prototype.writeSplitZigzagVarint64 = function (a, b, c) {
- this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.VARINT);
- var d = this.encoder_;
- jspb.utils.toZigzag64(b, c, function (a, b) {
- d.writeSplitVarint64(a >>> 0, b >>> 0);
- });
- };
- jspb.BinaryWriter.prototype.writeRepeatedInt32 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeSignedVarint32_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedInt32", jspb.BinaryWriter.prototype.writeRepeatedInt32);
- jspb.BinaryWriter.prototype.writeRepeatedInt32String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeInt32String(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedInt64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeSignedVarint64_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedInt64", jspb.BinaryWriter.prototype.writeRepeatedInt64);
- jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64 = function (a, b, c, d) {
- if (null != b) for (var e = 0; e < b.length; e++) {
- this.writeSplitFixed64(a, c(b[e]), d(b[e]));
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64 = function (a, b, c, d) {
- if (null != b) for (var e = 0; e < b.length; e++) {
- this.writeSplitVarint64(a, c(b[e]), d(b[e]));
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64 = function (a, b, c, d) {
- if (null != b) for (var e = 0; e < b.length; e++) {
- this.writeSplitZigzagVarint64(a, c(b[e]), d(b[e]));
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedInt64String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeInt64String(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedUint32 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeUnsignedVarint32_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedUint32", jspb.BinaryWriter.prototype.writeRepeatedUint32);
- jspb.BinaryWriter.prototype.writeRepeatedUint32String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeUint32String(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedUint64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeUnsignedVarint64_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedUint64", jspb.BinaryWriter.prototype.writeRepeatedUint64);
- jspb.BinaryWriter.prototype.writeRepeatedUint64String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeUint64String(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedSint32 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeZigzagVarint32_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedSint32", jspb.BinaryWriter.prototype.writeRepeatedSint32);
- jspb.BinaryWriter.prototype.writeRepeatedSint64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeZigzagVarint64_(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedSint64", jspb.BinaryWriter.prototype.writeRepeatedSint64);
- jspb.BinaryWriter.prototype.writeRepeatedSint64String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeZigzagVarint64String_(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedSintHash64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeZigzagVarintHash64_(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedFixed32 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeFixed32(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedFixed32", jspb.BinaryWriter.prototype.writeRepeatedFixed32);
- jspb.BinaryWriter.prototype.writeRepeatedFixed64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeFixed64(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedFixed64", jspb.BinaryWriter.prototype.writeRepeatedFixed64);
- jspb.BinaryWriter.prototype.writeRepeatedFixed64String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeFixed64String(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedFixed64String", jspb.BinaryWriter.prototype.writeRepeatedFixed64String);
- jspb.BinaryWriter.prototype.writeRepeatedSfixed32 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeSfixed32(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedSfixed32", jspb.BinaryWriter.prototype.writeRepeatedSfixed32);
- jspb.BinaryWriter.prototype.writeRepeatedSfixed64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeSfixed64(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedSfixed64", jspb.BinaryWriter.prototype.writeRepeatedSfixed64);
- jspb.BinaryWriter.prototype.writeRepeatedSfixed64String = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeSfixed64String(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedFloat = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeFloat(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedFloat", jspb.BinaryWriter.prototype.writeRepeatedFloat);
- jspb.BinaryWriter.prototype.writeRepeatedDouble = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeDouble(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedDouble", jspb.BinaryWriter.prototype.writeRepeatedDouble);
- jspb.BinaryWriter.prototype.writeRepeatedBool = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeBool(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedBool", jspb.BinaryWriter.prototype.writeRepeatedBool);
- jspb.BinaryWriter.prototype.writeRepeatedEnum = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeEnum(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedEnum", jspb.BinaryWriter.prototype.writeRepeatedEnum);
- jspb.BinaryWriter.prototype.writeRepeatedString = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeString(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedString", jspb.BinaryWriter.prototype.writeRepeatedString);
- jspb.BinaryWriter.prototype.writeRepeatedBytes = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeBytes(a, b[c]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedBytes", jspb.BinaryWriter.prototype.writeRepeatedBytes);
- jspb.BinaryWriter.prototype.writeRepeatedMessage = function (a, b, c) {
- if (null != b) for (var d = 0; d < b.length; d++) {
- var e = this.beginDelimited_(a);
- c(b[d], this);
- this.endDelimited_(e);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedMessage", jspb.BinaryWriter.prototype.writeRepeatedMessage);
- jspb.BinaryWriter.prototype.writeRepeatedGroup = function (a, b, c) {
- if (null != b) for (var d = 0; d < b.length; d++) {
- this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.START_GROUP), c(b[d], this), this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.END_GROUP);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writeRepeatedGroup", jspb.BinaryWriter.prototype.writeRepeatedGroup);
- jspb.BinaryWriter.prototype.writeRepeatedFixedHash64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeFixedHash64(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writeRepeatedVarintHash64 = function (a, b) {
- if (null != b) for (var c = 0; c < b.length; c++) {
- this.writeVarintHash64(a, b[c]);
- }
- };
- jspb.BinaryWriter.prototype.writePackedInt32 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeSignedVarint32(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedInt32", jspb.BinaryWriter.prototype.writePackedInt32);
- jspb.BinaryWriter.prototype.writePackedInt32String = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeSignedVarint32(parseInt(b[c], 10));
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedInt64 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeSignedVarint64(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedInt64", jspb.BinaryWriter.prototype.writePackedInt64);
- jspb.BinaryWriter.prototype.writePackedSplitFixed64 = function (a, b, c, d) {
- if (null != b) {
- a = this.beginDelimited_(a);
- for (var e = 0; e < b.length; e++) {
- this.encoder_.writeSplitFixed64(c(b[e]), d(b[e]));
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedSplitVarint64 = function (a, b, c, d) {
- if (null != b) {
- a = this.beginDelimited_(a);
- for (var e = 0; e < b.length; e++) {
- this.encoder_.writeSplitVarint64(c(b[e]), d(b[e]));
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64 = function (a, b, c, d) {
- if (null != b) {
- a = this.beginDelimited_(a);
- for (var e = this.encoder_, f = 0; f < b.length; f++) {
- jspb.utils.toZigzag64(c(b[f]), d(b[f]), function (a, b) {
- e.writeSplitVarint64(a >>> 0, b >>> 0);
- });
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedInt64String = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- var d = jspb.arith.Int64.fromString(b[c]);
- this.encoder_.writeSplitVarint64(d.lo, d.hi);
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedUint32 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeUnsignedVarint32(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedUint32", jspb.BinaryWriter.prototype.writePackedUint32);
- jspb.BinaryWriter.prototype.writePackedUint32String = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeUnsignedVarint32(parseInt(b[c], 10));
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedUint64 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeUnsignedVarint64(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedUint64", jspb.BinaryWriter.prototype.writePackedUint64);
- jspb.BinaryWriter.prototype.writePackedUint64String = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- var d = jspb.arith.UInt64.fromString(b[c]);
- this.encoder_.writeSplitVarint64(d.lo, d.hi);
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedSint32 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeZigzagVarint32(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedSint32", jspb.BinaryWriter.prototype.writePackedSint32);
- jspb.BinaryWriter.prototype.writePackedSint64 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeZigzagVarint64(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedSint64", jspb.BinaryWriter.prototype.writePackedSint64);
- jspb.BinaryWriter.prototype.writePackedSint64String = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(b[c]));
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedSintHash64 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeZigzagVarintHash64(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- jspb.BinaryWriter.prototype.writePackedFixed32 = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(4 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeUint32(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedFixed32", jspb.BinaryWriter.prototype.writePackedFixed32);
- jspb.BinaryWriter.prototype.writePackedFixed64 = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeUint64(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedFixed64", jspb.BinaryWriter.prototype.writePackedFixed64);
- jspb.BinaryWriter.prototype.writePackedFixed64String = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- var c = jspb.arith.UInt64.fromString(b[a]);
- this.encoder_.writeSplitFixed64(c.lo, c.hi);
- }
- };
- jspb.BinaryWriter.prototype.writePackedSfixed32 = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(4 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeInt32(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedSfixed32", jspb.BinaryWriter.prototype.writePackedSfixed32);
- jspb.BinaryWriter.prototype.writePackedSfixed64 = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeInt64(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedSfixed64", jspb.BinaryWriter.prototype.writePackedSfixed64);
- jspb.BinaryWriter.prototype.writePackedSfixed64String = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeInt64String(b[a]);
- }
- };
- jspb.BinaryWriter.prototype.writePackedFloat = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(4 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeFloat(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedFloat", jspb.BinaryWriter.prototype.writePackedFloat);
- jspb.BinaryWriter.prototype.writePackedDouble = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeDouble(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedDouble", jspb.BinaryWriter.prototype.writePackedDouble);
- jspb.BinaryWriter.prototype.writePackedBool = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeBool(b[a]);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedBool", jspb.BinaryWriter.prototype.writePackedBool);
- jspb.BinaryWriter.prototype.writePackedEnum = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeEnum(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- goog.exportProperty(jspb.BinaryWriter.prototype, "writePackedEnum", jspb.BinaryWriter.prototype.writePackedEnum);
- jspb.BinaryWriter.prototype.writePackedFixedHash64 = function (a, b) {
- if (null != b && b.length) for (this.writeFieldHeader_(a, jspb.BinaryConstants.WireType.DELIMITED), this.encoder_.writeUnsignedVarint32(8 * b.length), a = 0; a < b.length; a++) {
- this.encoder_.writeFixedHash64(b[a]);
- }
- };
- jspb.BinaryWriter.prototype.writePackedVarintHash64 = function (a, b) {
- if (null != b && b.length) {
- a = this.beginDelimited_(a);
- for (var c = 0; c < b.length; c++) {
- this.encoder_.writeVarintHash64(b[c]);
- }
- this.endDelimited_(a);
- }
- };
- jspb.Map = function (a, b) {
- this.arr_ = a;
- this.valueCtor_ = b;
- this.map_ = {};
- this.arrClean = !0;
- 0 < this.arr_.length && this.loadFromArray_();
- };
- goog.exportSymbol("jspb.Map", jspb.Map);
- jspb.Map.prototype.loadFromArray_ = function () {
- for (var a = 0; a < this.arr_.length; a++) {
- var b = this.arr_[a],
- c = b[0];
- this.map_[c.toString()] = new jspb.Map.Entry_(c, b[1]);
- }
- this.arrClean = !0;
- };
- jspb.Map.prototype.toArray = function () {
- if (this.arrClean) {
- if (this.valueCtor_) {
- var a = this.map_,
- b;
- for (b in a) {
- if (Object.prototype.hasOwnProperty.call(a, b)) {
- var c = a[b].valueWrapper;
- c && c.toArray();
- }
- }
- }
- } else {
- this.arr_.length = 0;
- a = this.stringKeys_();
- a.sort();
- for (b = 0; b < a.length; b++) {
- var d = this.map_[a[b]];
- (c = d.valueWrapper) && c.toArray();
- this.arr_.push([d.key, d.value]);
- }
- this.arrClean = !0;
- }
- return this.arr_;
- };
- goog.exportProperty(jspb.Map.prototype, "toArray", jspb.Map.prototype.toArray);
- jspb.Map.prototype.toObject = function (a, b) {
- for (var c = this.toArray(), d = [], e = 0; e < c.length; e++) {
- var f = this.map_[c[e][0].toString()];
- this.wrapEntry_(f);
- var g = f.valueWrapper;
- g ? (jspb.asserts.assert(b), d.push([f.key, b(a, g)])) : d.push([f.key, f.value]);
- }
- return d;
- };
- goog.exportProperty(jspb.Map.prototype, "toObject", jspb.Map.prototype.toObject);
- jspb.Map.fromObject = function (a, b, c) {
- b = new jspb.Map([], b);
- for (var d = 0; d < a.length; d++) {
- var e = a[d][0],
- f = c(a[d][1]);
- b.set(e, f);
- }
- return b;
- };
- goog.exportProperty(jspb.Map, "fromObject", jspb.Map.fromObject);
- jspb.Map.ArrayIteratorIterable_ = function (a) {
- this.idx_ = 0;
- this.arr_ = a;
- };
- jspb.Map.ArrayIteratorIterable_.prototype.next = function () {
- return this.idx_ < this.arr_.length ? {
- done: !1,
- value: this.arr_[this.idx_++]
- } : {
- done: !0,
- value: void 0
- };
- };
- "undefined" != typeof Symbol && (jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator] = function () {
- return this;
- });
- jspb.Map.prototype.getLength = function () {
- return this.stringKeys_().length;
- };
- goog.exportProperty(jspb.Map.prototype, "getLength", jspb.Map.prototype.getLength);
- jspb.Map.prototype.clear = function () {
- this.map_ = {};
- this.arrClean = !1;
- };
- goog.exportProperty(jspb.Map.prototype, "clear", jspb.Map.prototype.clear);
- jspb.Map.prototype.del = function (a) {
- a = a.toString();
- var b = this.map_.hasOwnProperty(a);
- delete this.map_[a];
- this.arrClean = !1;
- return b;
- };
- goog.exportProperty(jspb.Map.prototype, "del", jspb.Map.prototype.del);
- jspb.Map.prototype.getEntryList = function () {
- var a = [],
- b = this.stringKeys_();
- b.sort();
- for (var c = 0; c < b.length; c++) {
- var d = this.map_[b[c]];
- a.push([d.key, d.value]);
- }
- return a;
- };
- goog.exportProperty(jspb.Map.prototype, "getEntryList", jspb.Map.prototype.getEntryList);
- jspb.Map.prototype.entries = function () {
- var a = [],
- b = this.stringKeys_();
- b.sort();
- for (var c = 0; c < b.length; c++) {
- var d = this.map_[b[c]];
- a.push([d.key, this.wrapEntry_(d)]);
- }
- return new jspb.Map.ArrayIteratorIterable_(a);
- };
- goog.exportProperty(jspb.Map.prototype, "entries", jspb.Map.prototype.entries);
- jspb.Map.prototype.keys = function () {
- var a = [],
- b = this.stringKeys_();
- b.sort();
- for (var c = 0; c < b.length; c++) {
- a.push(this.map_[b[c]].key);
- }
- return new jspb.Map.ArrayIteratorIterable_(a);
- };
- goog.exportProperty(jspb.Map.prototype, "keys", jspb.Map.prototype.keys);
- jspb.Map.prototype.values = function () {
- var a = [],
- b = this.stringKeys_();
- b.sort();
- for (var c = 0; c < b.length; c++) {
- a.push(this.wrapEntry_(this.map_[b[c]]));
- }
- return new jspb.Map.ArrayIteratorIterable_(a);
- };
- goog.exportProperty(jspb.Map.prototype, "values", jspb.Map.prototype.values);
- jspb.Map.prototype.forEach = function (a, b) {
- var c = this.stringKeys_();
- c.sort();
- for (var d = 0; d < c.length; d++) {
- var e = this.map_[c[d]];
- a.call(b, this.wrapEntry_(e), e.key, this);
- }
- };
- goog.exportProperty(jspb.Map.prototype, "forEach", jspb.Map.prototype.forEach);
- jspb.Map.prototype.set = function (a, b) {
- var c = new jspb.Map.Entry_(a);
- this.valueCtor_ ? (c.valueWrapper = b, c.value = b.toArray()) : c.value = b;
- this.map_[a.toString()] = c;
- this.arrClean = !1;
- return this;
- };
- goog.exportProperty(jspb.Map.prototype, "set", jspb.Map.prototype.set);
- jspb.Map.prototype.wrapEntry_ = function (a) {
- return this.valueCtor_ ? (a.valueWrapper || (a.valueWrapper = new this.valueCtor_(a.value)), a.valueWrapper) : a.value;
- };
- jspb.Map.prototype.get = function (a) {
- if (a = this.map_[a.toString()]) return this.wrapEntry_(a);
- };
- goog.exportProperty(jspb.Map.prototype, "get", jspb.Map.prototype.get);
- jspb.Map.prototype.has = function (a) {
- return a.toString() in this.map_;
- };
- goog.exportProperty(jspb.Map.prototype, "has", jspb.Map.prototype.has);
- jspb.Map.prototype.serializeBinary = function (a, b, c, d, e) {
- var f = this.stringKeys_();
- f.sort();
- for (var g = 0; g < f.length; g++) {
- var h = this.map_[f[g]];
- b.beginSubMessage(a);
- c.call(b, 1, h.key);
- this.valueCtor_ ? d.call(b, 2, this.wrapEntry_(h), e) : d.call(b, 2, h.value);
- b.endSubMessage();
- }
- };
- goog.exportProperty(jspb.Map.prototype, "serializeBinary", jspb.Map.prototype.serializeBinary);
- jspb.Map.deserializeBinary = function (a, b, c, d, e, f, g) {
- for (; b.nextField() && !b.isEndGroup();) {
- var h = b.getFieldNumber();
- 1 == h ? f = c.call(b) : 2 == h && (a.valueCtor_ ? (jspb.asserts.assert(e), g || (g = new a.valueCtor_()), d.call(b, g, e)) : g = d.call(b));
- }
- jspb.asserts.assert(void 0 != f);
- jspb.asserts.assert(void 0 != g);
- a.set(f, g);
- };
- goog.exportProperty(jspb.Map, "deserializeBinary", jspb.Map.deserializeBinary);
- jspb.Map.prototype.stringKeys_ = function () {
- var a = this.map_,
- b = [],
- c;
- for (c in a) {
- Object.prototype.hasOwnProperty.call(a, c) && b.push(c);
- }
- return b;
- };
- jspb.Map.Entry_ = function (a, b) {
- this.key = a;
- this.value = b;
- this.valueWrapper = void 0;
- };
- jspb.ExtensionFieldInfo = function (a, b, c, d, e) {
- this.fieldIndex = a;
- this.fieldName = b;
- this.ctor = c;
- this.toObjectFn = d;
- this.isRepeated = e;
- };
- goog.exportSymbol("jspb.ExtensionFieldInfo", jspb.ExtensionFieldInfo);
- jspb.ExtensionFieldBinaryInfo = function (a, b, c, d, e, f) {
- this.fieldInfo = a;
- this.binaryReaderFn = b;
- this.binaryWriterFn = c;
- this.binaryMessageSerializeFn = d;
- this.binaryMessageDeserializeFn = e;
- this.isPacked = f;
- };
- goog.exportSymbol("jspb.ExtensionFieldBinaryInfo", jspb.ExtensionFieldBinaryInfo);
- jspb.ExtensionFieldInfo.prototype.isMessageType = function () {
- return !!this.ctor;
- };
- goog.exportProperty(jspb.ExtensionFieldInfo.prototype, "isMessageType", jspb.ExtensionFieldInfo.prototype.isMessageType);
- jspb.Message = function () {};
- goog.exportSymbol("jspb.Message", jspb.Message);
- jspb.Message.GENERATE_TO_OBJECT = !0;
- goog.exportProperty(jspb.Message, "GENERATE_TO_OBJECT", jspb.Message.GENERATE_TO_OBJECT);
- jspb.Message.GENERATE_FROM_OBJECT = !goog.DISALLOW_TEST_ONLY_CODE;
- goog.exportProperty(jspb.Message, "GENERATE_FROM_OBJECT", jspb.Message.GENERATE_FROM_OBJECT);
- jspb.Message.GENERATE_TO_STRING = !0;
- jspb.Message.ASSUME_LOCAL_ARRAYS = !1;
- jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS = !0;
- jspb.Message.SUPPORTS_UINT8ARRAY_ = "function" == typeof Uint8Array;
- jspb.Message.prototype.getJsPbMessageId = function () {
- return this.messageId_;
- };
- goog.exportProperty(jspb.Message.prototype, "getJsPbMessageId", jspb.Message.prototype.getJsPbMessageId);
- jspb.Message.getIndex_ = function (a, b) {
- return b + a.arrayIndexOffset_;
- };
- jspb.Message.hiddenES6Property_ = function () {};
- jspb.Message.getFieldNumber_ = function (a, b) {
- return b - a.arrayIndexOffset_;
- };
- jspb.Message.initialize = function (a, b, c, d, e, f) {
- a.wrappers_ = null;
- b || (b = c ? [c] : []);
- a.messageId_ = c ? String(c) : void 0;
- a.arrayIndexOffset_ = 0 === c ? -1 : 0;
- a.array = b;
- jspb.Message.initPivotAndExtensionObject_(a, d);
- a.convertedPrimitiveFields_ = {};
- jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS || (a.repeatedFields = e);
- if (e) for (b = 0; b < e.length; b++) {
- c = e[b], c < a.pivot_ ? (c = jspb.Message.getIndex_(a, c), a.array[c] = a.array[c] || jspb.Message.EMPTY_LIST_SENTINEL_) : (jspb.Message.maybeInitEmptyExtensionObject_(a), a.extensionObject_[c] = a.extensionObject_[c] || jspb.Message.EMPTY_LIST_SENTINEL_);
- }
- if (f && f.length) for (b = 0; b < f.length; b++) {
- jspb.Message.computeOneofCase(a, f[b]);
- }
- };
- goog.exportProperty(jspb.Message, "initialize", jspb.Message.initialize);
- jspb.Message.EMPTY_LIST_SENTINEL_ = goog.DEBUG && Object.freeze ? Object.freeze([]) : [];
- jspb.Message.isArray_ = function (a) {
- return jspb.Message.ASSUME_LOCAL_ARRAYS ? a instanceof Array : Array.isArray(a);
- };
- jspb.Message.isExtensionObject_ = function (a) {
- return null !== a && "object" == _typeof(a) && !jspb.Message.isArray_(a) && !(jspb.Message.SUPPORTS_UINT8ARRAY_ && a instanceof Uint8Array);
- };
- jspb.Message.initPivotAndExtensionObject_ = function (a, b) {
- var c = a.array.length,
- d = -1;
- if (c && (d = c - 1, c = a.array[d], jspb.Message.isExtensionObject_(c))) {
- a.pivot_ = jspb.Message.getFieldNumber_(a, d);
- a.extensionObject_ = c;
- return;
- }
- -1 < b ? (a.pivot_ = Math.max(b, jspb.Message.getFieldNumber_(a, d + 1)), a.extensionObject_ = null) : a.pivot_ = Number.MAX_VALUE;
- };
- jspb.Message.maybeInitEmptyExtensionObject_ = function (a) {
- var b = jspb.Message.getIndex_(a, a.pivot_);
- a.array[b] || (a.extensionObject_ = a.array[b] = {});
- };
- jspb.Message.toObjectList = function (a, b, c) {
- for (var d = [], e = 0; e < a.length; e++) {
- d[e] = b.call(a[e], c, a[e]);
- }
- return d;
- };
- goog.exportProperty(jspb.Message, "toObjectList", jspb.Message.toObjectList);
- jspb.Message.toObjectExtension = function (a, b, c, d, e) {
- for (var f in c) {
- var g = c[f],
- h = d.call(a, g);
- if (null != h) {
- for (var k in g.fieldName) {
- if (g.fieldName.hasOwnProperty(k)) break;
- }
- b[k] = g.toObjectFn ? g.isRepeated ? jspb.Message.toObjectList(h, g.toObjectFn, e) : g.toObjectFn(e, h) : h;
- }
- }
- };
- goog.exportProperty(jspb.Message, "toObjectExtension", jspb.Message.toObjectExtension);
- jspb.Message.serializeBinaryExtensions = function (a, b, c, d) {
- for (var e in c) {
- var f = c[e],
- g = f.fieldInfo;
- if (!f.binaryWriterFn) throw Error("Message extension present that was generated without binary serialization support");
- var h = d.call(a, g);
- if (null != h) if (g.isMessageType()) {
- if (f.binaryMessageSerializeFn) f.binaryWriterFn.call(b, g.fieldIndex, h, f.binaryMessageSerializeFn);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");
- } else f.binaryWriterFn.call(b, g.fieldIndex, h);
- }
- };
- goog.exportProperty(jspb.Message, "serializeBinaryExtensions", jspb.Message.serializeBinaryExtensions);
- jspb.Message.readBinaryExtension = function (a, b, c, d, e) {
- var f = c[b.getFieldNumber()];
- if (f) {
- c = f.fieldInfo;
- if (!f.binaryReaderFn) throw Error("Deserializing extension whose generated code does not support binary format");
- if (c.isMessageType()) {
- var g = new c.ctor();
- f.binaryReaderFn.call(b, g, f.binaryMessageDeserializeFn);
- } else g = f.binaryReaderFn.call(b);
- c.isRepeated && !f.isPacked ? (b = d.call(a, c)) ? b.push(g) : e.call(a, c, [g]) : e.call(a, c, g);
- } else b.skipField();
- };
- goog.exportProperty(jspb.Message, "readBinaryExtension", jspb.Message.readBinaryExtension);
- jspb.Message.getField = function (a, b) {
- if (b < a.pivot_) {
- b = jspb.Message.getIndex_(a, b);
- var c = a.array[b];
- return c === jspb.Message.EMPTY_LIST_SENTINEL_ ? a.array[b] = [] : c;
- }
- if (a.extensionObject_) return c = a.extensionObject_[b], c === jspb.Message.EMPTY_LIST_SENTINEL_ ? a.extensionObject_[b] = [] : c;
- };
- goog.exportProperty(jspb.Message, "getField", jspb.Message.getField);
- jspb.Message.getRepeatedField = function (a, b) {
- return jspb.Message.getField(a, b);
- };
- goog.exportProperty(jspb.Message, "getRepeatedField", jspb.Message.getRepeatedField);
- jspb.Message.getOptionalFloatingPointField = function (a, b) {
- a = jspb.Message.getField(a, b);
- return null == a ? a : +a;
- };
- goog.exportProperty(jspb.Message, "getOptionalFloatingPointField", jspb.Message.getOptionalFloatingPointField);
- jspb.Message.getBooleanField = function (a, b) {
- a = jspb.Message.getField(a, b);
- return null == a ? a : !!a;
- };
- goog.exportProperty(jspb.Message, "getBooleanField", jspb.Message.getBooleanField);
- jspb.Message.getRepeatedFloatingPointField = function (a, b) {
- var c = jspb.Message.getRepeatedField(a, b);
- a.convertedPrimitiveFields_ || (a.convertedPrimitiveFields_ = {});
- if (!a.convertedPrimitiveFields_[b]) {
- for (var d = 0; d < c.length; d++) {
- c[d] = +c[d];
- }
- a.convertedPrimitiveFields_[b] = !0;
- }
- return c;
- };
- goog.exportProperty(jspb.Message, "getRepeatedFloatingPointField", jspb.Message.getRepeatedFloatingPointField);
- jspb.Message.getRepeatedBooleanField = function (a, b) {
- var c = jspb.Message.getRepeatedField(a, b);
- a.convertedPrimitiveFields_ || (a.convertedPrimitiveFields_ = {});
- if (!a.convertedPrimitiveFields_[b]) {
- for (var d = 0; d < c.length; d++) {
- c[d] = !!c[d];
- }
- a.convertedPrimitiveFields_[b] = !0;
- }
- return c;
- };
- goog.exportProperty(jspb.Message, "getRepeatedBooleanField", jspb.Message.getRepeatedBooleanField);
- jspb.Message.bytesAsB64 = function (a) {
- if (null == a || "string" === typeof a) return a;
- if (jspb.Message.SUPPORTS_UINT8ARRAY_ && a instanceof Uint8Array) return goog.crypt.base64.encodeByteArray(a);
- jspb.asserts.fail("Cannot coerce to b64 string: " + goog.typeOf(a));
- return null;
- };
- goog.exportProperty(jspb.Message, "bytesAsB64", jspb.Message.bytesAsB64);
- jspb.Message.bytesAsU8 = function (a) {
- if (null == a || a instanceof Uint8Array) return a;
- if ("string" === typeof a) return goog.crypt.base64.decodeStringToUint8Array(a);
- jspb.asserts.fail("Cannot coerce to Uint8Array: " + goog.typeOf(a));
- return null;
- };
- goog.exportProperty(jspb.Message, "bytesAsU8", jspb.Message.bytesAsU8);
- jspb.Message.bytesListAsB64 = function (a) {
- jspb.Message.assertConsistentTypes_(a);
- return a.length && "string" !== typeof a[0] ? goog.array.map(a, jspb.Message.bytesAsB64) : a;
- };
- goog.exportProperty(jspb.Message, "bytesListAsB64", jspb.Message.bytesListAsB64);
- jspb.Message.bytesListAsU8 = function (a) {
- jspb.Message.assertConsistentTypes_(a);
- return !a.length || a[0] instanceof Uint8Array ? a : goog.array.map(a, jspb.Message.bytesAsU8);
- };
- goog.exportProperty(jspb.Message, "bytesListAsU8", jspb.Message.bytesListAsU8);
- jspb.Message.assertConsistentTypes_ = function (a) {
- if (goog.DEBUG && a && 1 < a.length) {
- var b = goog.typeOf(a[0]);
- goog.array.forEach(a, function (a) {
- goog.typeOf(a) != b && jspb.asserts.fail("Inconsistent type in JSPB repeated field array. Got " + goog.typeOf(a) + " expected " + b);
- });
- }
- };
- jspb.Message.getFieldWithDefault = function (a, b, c) {
- a = jspb.Message.getField(a, b);
- return null == a ? c : a;
- };
- goog.exportProperty(jspb.Message, "getFieldWithDefault", jspb.Message.getFieldWithDefault);
- jspb.Message.getBooleanFieldWithDefault = function (a, b, c) {
- a = jspb.Message.getBooleanField(a, b);
- return null == a ? c : a;
- };
- goog.exportProperty(jspb.Message, "getBooleanFieldWithDefault", jspb.Message.getBooleanFieldWithDefault);
- jspb.Message.getFloatingPointFieldWithDefault = function (a, b, c) {
- a = jspb.Message.getOptionalFloatingPointField(a, b);
- return null == a ? c : a;
- };
- goog.exportProperty(jspb.Message, "getFloatingPointFieldWithDefault", jspb.Message.getFloatingPointFieldWithDefault);
- jspb.Message.getFieldProto3 = jspb.Message.getFieldWithDefault;
- goog.exportProperty(jspb.Message, "getFieldProto3", jspb.Message.getFieldProto3);
- jspb.Message.getMapField = function (a, b, c, d) {
- a.wrappers_ || (a.wrappers_ = {});
- if (b in a.wrappers_) return a.wrappers_[b];
- var e = jspb.Message.getField(a, b);
- if (!e) {
- if (c) return;
- e = [];
- jspb.Message.setField(a, b, e);
- }
- return a.wrappers_[b] = new jspb.Map(e, d);
- };
- goog.exportProperty(jspb.Message, "getMapField", jspb.Message.getMapField);
- jspb.Message.setField = function (a, b, c) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- b < a.pivot_ ? a.array[jspb.Message.getIndex_(a, b)] = c : (jspb.Message.maybeInitEmptyExtensionObject_(a), a.extensionObject_[b] = c);
- return a;
- };
- goog.exportProperty(jspb.Message, "setField", jspb.Message.setField);
- jspb.Message.setProto3IntField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, 0);
- };
- goog.exportProperty(jspb.Message, "setProto3IntField", jspb.Message.setProto3IntField);
- jspb.Message.setProto3FloatField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, 0);
- };
- goog.exportProperty(jspb.Message, "setProto3FloatField", jspb.Message.setProto3FloatField);
- jspb.Message.setProto3BooleanField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, !1);
- };
- goog.exportProperty(jspb.Message, "setProto3BooleanField", jspb.Message.setProto3BooleanField);
- jspb.Message.setProto3StringField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, "");
- };
- goog.exportProperty(jspb.Message, "setProto3StringField", jspb.Message.setProto3StringField);
- jspb.Message.setProto3BytesField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, "");
- };
- goog.exportProperty(jspb.Message, "setProto3BytesField", jspb.Message.setProto3BytesField);
- jspb.Message.setProto3EnumField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, 0);
- };
- goog.exportProperty(jspb.Message, "setProto3EnumField", jspb.Message.setProto3EnumField);
- jspb.Message.setProto3StringIntField = function (a, b, c) {
- return jspb.Message.setFieldIgnoringDefault_(a, b, c, "0");
- };
- goog.exportProperty(jspb.Message, "setProto3StringIntField", jspb.Message.setProto3StringIntField);
- jspb.Message.setFieldIgnoringDefault_ = function (a, b, c, d) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- c !== d ? jspb.Message.setField(a, b, c) : b < a.pivot_ ? a.array[jspb.Message.getIndex_(a, b)] = null : (jspb.Message.maybeInitEmptyExtensionObject_(a), delete a.extensionObject_[b]);
- return a;
- };
- jspb.Message.addToRepeatedField = function (a, b, c, d) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- b = jspb.Message.getRepeatedField(a, b);
- void 0 != d ? b.splice(d, 0, c) : b.push(c);
- return a;
- };
- goog.exportProperty(jspb.Message, "addToRepeatedField", jspb.Message.addToRepeatedField);
- jspb.Message.setOneofField = function (a, b, c, d) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- (c = jspb.Message.computeOneofCase(a, c)) && c !== b && void 0 !== d && (a.wrappers_ && c in a.wrappers_ && (a.wrappers_[c] = void 0), jspb.Message.setField(a, c, void 0));
- return jspb.Message.setField(a, b, d);
- };
- goog.exportProperty(jspb.Message, "setOneofField", jspb.Message.setOneofField);
- jspb.Message.computeOneofCase = function (a, b) {
- for (var c, d, e = 0; e < b.length; e++) {
- var f = b[e],
- g = jspb.Message.getField(a, f);
- null != g && (c = f, d = g, jspb.Message.setField(a, f, void 0));
- }
- return c ? (jspb.Message.setField(a, c, d), c) : 0;
- };
- goog.exportProperty(jspb.Message, "computeOneofCase", jspb.Message.computeOneofCase);
- jspb.Message.getWrapperField = function (a, b, c, d) {
- a.wrappers_ || (a.wrappers_ = {});
- if (!a.wrappers_[c]) {
- var e = jspb.Message.getField(a, c);
- if (d || e) a.wrappers_[c] = new b(e);
- }
- return a.wrappers_[c];
- };
- goog.exportProperty(jspb.Message, "getWrapperField", jspb.Message.getWrapperField);
- jspb.Message.getRepeatedWrapperField = function (a, b, c) {
- jspb.Message.wrapRepeatedField_(a, b, c);
- b = a.wrappers_[c];
- b == jspb.Message.EMPTY_LIST_SENTINEL_ && (b = a.wrappers_[c] = []);
- return b;
- };
- goog.exportProperty(jspb.Message, "getRepeatedWrapperField", jspb.Message.getRepeatedWrapperField);
- jspb.Message.wrapRepeatedField_ = function (a, b, c) {
- a.wrappers_ || (a.wrappers_ = {});
- if (!a.wrappers_[c]) {
- for (var d = jspb.Message.getRepeatedField(a, c), e = [], f = 0; f < d.length; f++) {
- e[f] = new b(d[f]);
- }
- a.wrappers_[c] = e;
- }
- };
- jspb.Message.setWrapperField = function (a, b, c) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- a.wrappers_ || (a.wrappers_ = {});
- var d = c ? c.toArray() : c;
- a.wrappers_[b] = c;
- return jspb.Message.setField(a, b, d);
- };
- goog.exportProperty(jspb.Message, "setWrapperField", jspb.Message.setWrapperField);
- jspb.Message.setOneofWrapperField = function (a, b, c, d) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- a.wrappers_ || (a.wrappers_ = {});
- var e = d ? d.toArray() : d;
- a.wrappers_[b] = d;
- return jspb.Message.setOneofField(a, b, c, e);
- };
- goog.exportProperty(jspb.Message, "setOneofWrapperField", jspb.Message.setOneofWrapperField);
- jspb.Message.setRepeatedWrapperField = function (a, b, c) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- a.wrappers_ || (a.wrappers_ = {});
- c = c || [];
- for (var d = [], e = 0; e < c.length; e++) {
- d[e] = c[e].toArray();
- }
- a.wrappers_[b] = c;
- return jspb.Message.setField(a, b, d);
- };
- goog.exportProperty(jspb.Message, "setRepeatedWrapperField", jspb.Message.setRepeatedWrapperField);
- jspb.Message.addToRepeatedWrapperField = function (a, b, c, d, e) {
- jspb.Message.wrapRepeatedField_(a, d, b);
- var f = a.wrappers_[b];
- f || (f = a.wrappers_[b] = []);
- c = c ? c : new d();
- a = jspb.Message.getRepeatedField(a, b);
- void 0 != e ? (f.splice(e, 0, c), a.splice(e, 0, c.toArray())) : (f.push(c), a.push(c.toArray()));
- return c;
- };
- goog.exportProperty(jspb.Message, "addToRepeatedWrapperField", jspb.Message.addToRepeatedWrapperField);
- jspb.Message.toMap = function (a, b, c, d) {
- for (var e = {}, f = 0; f < a.length; f++) {
- e[b.call(a[f])] = c ? c.call(a[f], d, a[f]) : a[f];
- }
- return e;
- };
- goog.exportProperty(jspb.Message, "toMap", jspb.Message.toMap);
- jspb.Message.prototype.syncMapFields_ = function () {
- if (this.wrappers_) for (var a in this.wrappers_) {
- var b = this.wrappers_[a];
- if (Array.isArray(b)) for (var c = 0; c < b.length; c++) {
- b[c] && b[c].toArray();
- } else b && b.toArray();
- }
- };
- jspb.Message.prototype.toArray = function () {
- this.syncMapFields_();
- return this.array;
- };
- goog.exportProperty(jspb.Message.prototype, "toArray", jspb.Message.prototype.toArray);
- jspb.Message.GENERATE_TO_STRING && (jspb.Message.prototype.toString = function () {
- this.syncMapFields_();
- return this.array.toString();
- });
- jspb.Message.prototype.getExtension = function (a) {
- if (this.extensionObject_) {
- this.wrappers_ || (this.wrappers_ = {});
- var b = a.fieldIndex;
- if (a.isRepeated) {
- if (a.isMessageType()) return this.wrappers_[b] || (this.wrappers_[b] = goog.array.map(this.extensionObject_[b] || [], function (b) {
- return new a.ctor(b);
- })), this.wrappers_[b];
- } else if (a.isMessageType()) return !this.wrappers_[b] && this.extensionObject_[b] && (this.wrappers_[b] = new a.ctor(this.extensionObject_[b])), this.wrappers_[b];
- return this.extensionObject_[b];
- }
- };
- goog.exportProperty(jspb.Message.prototype, "getExtension", jspb.Message.prototype.getExtension);
- jspb.Message.prototype.setExtension = function (a, b) {
- this.wrappers_ || (this.wrappers_ = {});
- jspb.Message.maybeInitEmptyExtensionObject_(this);
- var c = a.fieldIndex;
- a.isRepeated ? (b = b || [], a.isMessageType() ? (this.wrappers_[c] = b, this.extensionObject_[c] = goog.array.map(b, function (a) {
- return a.toArray();
- })) : this.extensionObject_[c] = b) : a.isMessageType() ? (this.wrappers_[c] = b, this.extensionObject_[c] = b ? b.toArray() : b) : this.extensionObject_[c] = b;
- return this;
- };
- goog.exportProperty(jspb.Message.prototype, "setExtension", jspb.Message.prototype.setExtension);
- jspb.Message.difference = function (a, b) {
- if (!(a instanceof b.constructor)) throw Error("Messages have different types.");
- var c = a.toArray();
- b = b.toArray();
- var d = [],
- e = 0,
- f = c.length > b.length ? c.length : b.length;
- a.getJsPbMessageId() && (d[0] = a.getJsPbMessageId(), e = 1);
- for (; e < f; e++) {
- jspb.Message.compareFields(c[e], b[e]) || (d[e] = b[e]);
- }
- return new a.constructor(d);
- };
- goog.exportProperty(jspb.Message, "difference", jspb.Message.difference);
- jspb.Message.equals = function (a, b) {
- return a == b || !(!a || !b) && a instanceof b.constructor && jspb.Message.compareFields(a.toArray(), b.toArray());
- };
- goog.exportProperty(jspb.Message, "equals", jspb.Message.equals);
- jspb.Message.compareExtensions = function (a, b) {
- a = a || {};
- b = b || {};
- var c = {},
- d;
- for (d in a) {
- c[d] = 0;
- }
- for (d in b) {
- c[d] = 0;
- }
- for (d in c) {
- if (!jspb.Message.compareFields(a[d], b[d])) return !1;
- }
- return !0;
- };
- goog.exportProperty(jspb.Message, "compareExtensions", jspb.Message.compareExtensions);
- jspb.Message.compareFields = function (a, b) {
- if (a == b) return !0;
- if (!goog.isObject(a) || !goog.isObject(b)) return "number" === typeof a && isNaN(a) || "number" === typeof b && isNaN(b) ? String(a) == String(b) : !1;
- if (a.constructor != b.constructor) return !1;
- if (jspb.Message.SUPPORTS_UINT8ARRAY_ && a.constructor === Uint8Array) {
- if (a.length != b.length) return !1;
- for (var c = 0; c < a.length; c++) {
- if (a[c] != b[c]) return !1;
- }
- return !0;
- }
- if (a.constructor === Array) {
- var d = void 0,
- e = void 0,
- f = Math.max(a.length, b.length);
- for (c = 0; c < f; c++) {
- var g = a[c],
- h = b[c];
- g && g.constructor == Object && (jspb.asserts.assert(void 0 === d), jspb.asserts.assert(c === a.length - 1), d = g, g = void 0);
- h && h.constructor == Object && (jspb.asserts.assert(void 0 === e), jspb.asserts.assert(c === b.length - 1), e = h, h = void 0);
- if (!jspb.Message.compareFields(g, h)) return !1;
- }
- return d || e ? (d = d || {}, e = e || {}, jspb.Message.compareExtensions(d, e)) : !0;
- }
- if (a.constructor === Object) return jspb.Message.compareExtensions(a, b);
- throw Error("Invalid type in JSPB array");
- };
- goog.exportProperty(jspb.Message, "compareFields", jspb.Message.compareFields);
- jspb.Message.prototype.cloneMessage = function () {
- return jspb.Message.cloneMessage(this);
- };
- goog.exportProperty(jspb.Message.prototype, "cloneMessage", jspb.Message.prototype.cloneMessage);
- jspb.Message.prototype.clone = function () {
- return jspb.Message.cloneMessage(this);
- };
- goog.exportProperty(jspb.Message.prototype, "clone", jspb.Message.prototype.clone);
- jspb.Message.clone = function (a) {
- return jspb.Message.cloneMessage(a);
- };
- goog.exportProperty(jspb.Message, "clone", jspb.Message.clone);
- jspb.Message.cloneMessage = function (a) {
- return new a.constructor(jspb.Message.clone_(a.toArray()));
- };
- jspb.Message.copyInto = function (a, b) {
- jspb.asserts.assertInstanceof(a, jspb.Message);
- jspb.asserts.assertInstanceof(b, jspb.Message);
- jspb.asserts.assert(a.constructor == b.constructor, "Copy source and target message should have the same type.");
- a = jspb.Message.clone(a);
- for (var c = b.toArray(), d = a.toArray(), e = c.length = 0; e < d.length; e++) {
- c[e] = d[e];
- }
- b.wrappers_ = a.wrappers_;
- b.extensionObject_ = a.extensionObject_;
- };
- goog.exportProperty(jspb.Message, "copyInto", jspb.Message.copyInto);
- jspb.Message.clone_ = function (a) {
- if (Array.isArray(a)) {
- for (var b = Array(a.length), c = 0; c < a.length; c++) {
- var d = a[c];
- null != d && (b[c] = "object" == _typeof(d) ? jspb.Message.clone_(jspb.asserts.assert(d)) : d);
- }
- return b;
- }
- if (jspb.Message.SUPPORTS_UINT8ARRAY_ && a instanceof Uint8Array) return new Uint8Array(a);
- b = {};
- for (c in a) {
- d = a[c], null != d && (b[c] = "object" == _typeof(d) ? jspb.Message.clone_(jspb.asserts.assert(d)) : d);
- }
- return b;
- };
- jspb.Message.registerMessageType = function (a, b) {
- b.messageId = a;
- };
- goog.exportProperty(jspb.Message, "registerMessageType", jspb.Message.registerMessageType);
- jspb.Message.messageSetExtensions = {};
- jspb.Message.messageSetExtensionsBinary = {};
- jspb.Export = {};
- "object" === ( false ? undefined : _typeof(exports)) && (exports.Map = jspb.Map, exports.Message = jspb.Message, exports.BinaryReader = jspb.BinaryReader, exports.BinaryWriter = jspb.BinaryWriter, exports.ExtensionFieldInfo = jspb.ExtensionFieldInfo, exports.ExtensionFieldBinaryInfo = jspb.ExtensionFieldBinaryInfo, exports.exportSymbol = goog.exportSymbol, exports.inherits = goog.inherits, exports.object = {
- extend: goog.object.extend
- }, exports.typeOf = goog.typeOf);
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 24)))
- /***/ }),
- /* 24 */
- /*!***********************************!*\
- !*** (webpack)/buildin/global.js ***!
- \***********************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ }),
- /* 25 */
- /*!*******************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/google-protobuf/google/protobuf/timestamp_pb.js ***!
- \*******************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // source: google/protobuf/timestamp.proto
- /**
- * @fileoverview
- * @enhanceable
- * @suppress {missingRequire} reports error on implicit type usages.
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
- // GENERATED CODE -- DO NOT EDIT!
- /* eslint-disable */
- // @ts-nocheck
- var jspb = __webpack_require__(/*! google-protobuf */ 23);
- var goog = jspb;
- var global = typeof globalThis !== 'undefined' && globalThis || typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || typeof self !== 'undefined' && self || function () {
- return this;
- }.call(null) || Function('return this')();
- goog.exportSymbol('proto.google.protobuf.Timestamp', null, global);
- /**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
- proto.google.protobuf.Timestamp = function (opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
- };
- goog.inherits(proto.google.protobuf.Timestamp, jspb.Message);
- if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.google.protobuf.Timestamp.displayName = 'proto.google.protobuf.Timestamp';
- }
- if (jspb.Message.GENERATE_TO_OBJECT) {
- /**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
- proto.google.protobuf.Timestamp.prototype.toObject = function (opt_includeInstance) {
- return proto.google.protobuf.Timestamp.toObject(opt_includeInstance, this);
- };
- /**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.google.protobuf.Timestamp} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.google.protobuf.Timestamp.toObject = function (includeInstance, msg) {
- var f,
- obj = {
- seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
- nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
- };
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
- };
- }
- /**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.google.protobuf.Timestamp}
- */
- proto.google.protobuf.Timestamp.deserializeBinary = function (bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.google.protobuf.Timestamp();
- return proto.google.protobuf.Timestamp.deserializeBinaryFromReader(msg, reader);
- };
- /**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.google.protobuf.Timestamp} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.google.protobuf.Timestamp}
- */
- proto.google.protobuf.Timestamp.deserializeBinaryFromReader = function (msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */reader.readInt64();
- msg.setSeconds(value);
- break;
- case 2:
- var value = /** @type {number} */reader.readInt32();
- msg.setNanos(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
- };
- /**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
- proto.google.protobuf.Timestamp.prototype.serializeBinary = function () {
- var writer = new jspb.BinaryWriter();
- proto.google.protobuf.Timestamp.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
- };
- /**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.google.protobuf.Timestamp} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
- proto.google.protobuf.Timestamp.serializeBinaryToWriter = function (message, writer) {
- var f = undefined;
- f = message.getSeconds();
- if (f !== 0) {
- writer.writeInt64(1, f);
- }
- f = message.getNanos();
- if (f !== 0) {
- writer.writeInt32(2, f);
- }
- };
- /**
- * optional int64 seconds = 1;
- * @return {number}
- */
- proto.google.protobuf.Timestamp.prototype.getSeconds = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 1, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.google.protobuf.Timestamp} returns this
- */
- proto.google.protobuf.Timestamp.prototype.setSeconds = function (value) {
- return jspb.Message.setProto3IntField(this, 1, value);
- };
- /**
- * optional int32 nanos = 2;
- * @return {number}
- */
- proto.google.protobuf.Timestamp.prototype.getNanos = function () {
- return (/** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0)
- );
- };
- /**
- * @param {number} value
- * @return {!proto.google.protobuf.Timestamp} returns this
- */
- proto.google.protobuf.Timestamp.prototype.setNanos = function (value) {
- return jspb.Message.setProto3IntField(this, 2, value);
- };
- goog.object.extend(exports, proto.google.protobuf);
- /* This code will be inserted into generated code for
- * google/protobuf/timestamp.proto. */
- /**
- * Returns a JavaScript 'Date' object corresponding to this Timestamp.
- * @return {!Date}
- */
- proto.google.protobuf.Timestamp.prototype.toDate = function () {
- var seconds = this.getSeconds();
- var nanos = this.getNanos();
- return new Date(seconds * 1000 + nanos / 1000000);
- };
- /**
- * Sets the value of this Timestamp object to be the given Date.
- * @param {!Date} value The value to set.
- */
- proto.google.protobuf.Timestamp.prototype.fromDate = function (value) {
- this.setSeconds(Math.floor(value.getTime() / 1000));
- this.setNanos(value.getMilliseconds() * 1000000);
- };
- /**
- * Factory method that returns a Timestamp object with value equal to
- * the given Date.
- * @param {!Date} value The value to set.
- * @return {!proto.google.protobuf.Timestamp}
- */
- proto.google.protobuf.Timestamp.fromDate = function (value) {
- var timestamp = new proto.google.protobuf.Timestamp();
- timestamp.fromDate(value);
- return timestamp;
- };
- /***/ }),
- /* 26 */
- /*!*********************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/leafletHelper.js ***!
- \*********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(__f__) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 8);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _leaflet = _interopRequireDefault(__webpack_require__(/*! leaflet */ 27));
- var _patch = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/patch */ 72));
- var _config = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/config */ 71));
- var _global = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/global */ 74));
- var _player = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/player */ 73));
- var _checkPoint = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/checkPoint */ 75));
- // leaflet 地图组件
- // author: wzx
- // version: 1.0
- // import 'leaflet.motion/dist/leaflet.motion.min.js'
- var _default = {
- global: _global.default,
- config: _config.default,
- player: _player.default,
- checkPoint: _checkPoint.default,
- // 地图初始化
- // mapid <string> 地图容器的id
- // centPoint <array> 地图的初始地理中心坐标
- // zoomNum <int> 初始地图缩放级别
- init: function init(mapid, centPoint) {
- var zoomNum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 17;
- _patch.default.run();
- _global.default.map = _leaflet.default.map(mapid, {
- center: centPoint,
- zoom: zoomNum,
- zoomControl: true,
- attributionControl: false
- });
- // global.map = L.map(mapid, {
- // attributionControl: false
- // }).setView(centPoint, zoomNum);
- _leaflet.default.control.attribution({
- prefix: '© 小飞龙定向' // 地图右下角属性文本的前缀内容
- // prefix: false // 地图右下角属性文本的前缀内容
- }).addTo(_global.default.map);
- _leaflet.default.control.scale({
- maxWidth: 200,
- // 控件的最大宽度,单位是像素
- metric: true,
- // 是否显示公制比例线(米/公里)
- imperial: false,
- // 是否显示英制比例线(英里/英尺)
- position: 'topright' // 控件的位置(地图的一个角)。可能的值是 ‘topleft’、 ‘topright’、 ‘bottomleft’ 或 ‘bottomright’
- }).addTo(_global.default.map);
- // 添加地图点击弹窗
- _global.default.map.on('click', function (e) {
- __f__("log", "坐标", e.latlng.toString(), " at utils/map/leafletHelper.js:51");
- // L.popup().setLatLng(e.latlng)
- // .setContent("坐标:" + e.latlng.toString())
- // .openOn(global.map);
- });
- _global.default.map.on('zoomstart', function (e) {
- // console.log("[zoomstart] 即将开始地图缩放", e)
- _player.default.onZoomStart(e);
- _checkPoint.default.onZoomStart(e);
- });
- _global.default.map.on('zoom', function (e) {
- // console.log("[zoom] 地图缩放", e)
- _player.default.onZoom(e);
- _checkPoint.default.onZoom(e);
- });
- _global.default.map.on('zoomend', function (e) {
- // console.log("[zoomend] 地图缩放结束", e)
- _player.default.onZoomEnd(e);
- _checkPoint.default.onZoomEnd(e);
- });
- // global.map.on('zoomanim', (e) => {
- // console.log("地图缩放中...", e)
- // // player.onZoomEnd(e)
- // // checkPoint.onZoomEnd(e)
- // });
- _player.default.init();
- _checkPoint.default.init();
- },
- addMapLayer: function addMapLayer(mapid) {
- var minZoom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
- var maxZoom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 20;
- var url = 'static/map/' + mapid + '/{z}/{x}/{y}.png';
- _global.default.map_layer = _leaflet.default.tileLayer(url, {
- minZoom: minZoom,
- maxZoom: maxZoom,
- tms: false,
- // 是否反转Y轴坐标
- attribution: '版权所有'
- }).addTo(_global.default.map);
- },
- test: function test() {},
- free: function free() {
- _player.default.free();
- _checkPoint.default.free();
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)["default"]))
- /***/ }),
- /* 27 */
- /*!***********************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/leaflet-src.js ***!
- \***********************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- /* WEBPACK VAR INJECTION */(function(__f__) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 10);
- /* @preserve
- * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
- * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
- */
- (function (global, factory) {
- ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : (undefined);
- })(this, function (exports) {
- 'use strict';
- var version = "1.9.3";
- /*
- * @namespace Util
- *
- * Various utility functions, used by Leaflet internally.
- */
- // @function extend(dest: Object, src?: Object): Object
- // Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.
- function extend(dest) {
- var i, j, len, src;
- for (j = 1, len = arguments.length; j < len; j++) {
- src = arguments[j];
- for (i in src) {
- dest[i] = src[i];
- }
- }
- return dest;
- }
- // @function create(proto: Object, properties?: Object): Object
- // Compatibility polyfill for [Object.create](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/create)
- var create$2 = Object.create || function () {
- function F() {}
- return function (proto) {
- F.prototype = proto;
- return new F();
- };
- }();
- // @function bind(fn: Function, …): Function
- // Returns a new function bound to the arguments passed, like [Function.prototype.bind](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
- // Has a `L.bind()` shortcut.
- function bind(fn, obj) {
- var slice = Array.prototype.slice;
- if (fn.bind) {
- return fn.bind.apply(fn, slice.call(arguments, 1));
- }
- var args = slice.call(arguments, 2);
- return function () {
- return fn.apply(obj, args.length ? args.concat(slice.call(arguments)) : arguments);
- };
- }
- // @property lastId: Number
- // Last unique ID used by [`stamp()`](#util-stamp)
- var lastId = 0;
- // @function stamp(obj: Object): Number
- // Returns the unique ID of an object, assigning it one if it doesn't have it.
- function stamp(obj) {
- if (!('_leaflet_id' in obj)) {
- obj['_leaflet_id'] = ++lastId;
- }
- return obj._leaflet_id;
- }
- // @function throttle(fn: Function, time: Number, context: Object): Function
- // Returns a function which executes function `fn` with the given scope `context`
- // (so that the `this` keyword refers to `context` inside `fn`'s code). The function
- // `fn` will be called no more than one time per given amount of `time`. The arguments
- // received by the bound function will be any arguments passed when binding the
- // function, followed by any arguments passed when invoking the bound function.
- // Has an `L.throttle` shortcut.
- function throttle(fn, time, context) {
- var lock, args, wrapperFn, later;
- later = function later() {
- // reset lock and call if queued
- lock = false;
- if (args) {
- wrapperFn.apply(context, args);
- args = false;
- }
- };
- wrapperFn = function wrapperFn() {
- if (lock) {
- // called too soon, queue to call later
- args = arguments;
- } else {
- // call and lock until later
- fn.apply(context, arguments);
- setTimeout(later, time);
- lock = true;
- }
- };
- return wrapperFn;
- }
- // @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number
- // Returns the number `num` modulo `range` in such a way so it lies within
- // `range[0]` and `range[1]`. The returned value will be always smaller than
- // `range[1]` unless `includeMax` is set to `true`.
- function wrapNum(x, range, includeMax) {
- var max = range[1],
- min = range[0],
- d = max - min;
- return x === max && includeMax ? x : ((x - min) % d + d) % d + min;
- }
- // @function falseFn(): Function
- // Returns a function which always returns `false`.
- function falseFn() {
- return false;
- }
- // @function formatNum(num: Number, precision?: Number|false): Number
- // Returns the number `num` rounded with specified `precision`.
- // The default `precision` value is 6 decimal places.
- // `false` can be passed to skip any processing (can be useful to avoid round-off errors).
- function formatNum(num, precision) {
- if (precision === false) {
- return num;
- }
- var pow = Math.pow(10, precision === undefined ? 6 : precision);
- return Math.round(num * pow) / pow;
- }
- // @function trim(str: String): String
- // Compatibility polyfill for [String.prototype.trim](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)
- function trim(str) {
- return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
- }
- // @function splitWords(str: String): String[]
- // Trims and splits the string on whitespace and returns the array of parts.
- function splitWords(str) {
- return trim(str).split(/\s+/);
- }
- // @function setOptions(obj: Object, options: Object): Object
- // Merges the given properties to the `options` of the `obj` object, returning the resulting options. See `Class options`. Has an `L.setOptions` shortcut.
- function setOptions(obj, options) {
- if (!Object.prototype.hasOwnProperty.call(obj, 'options')) {
- obj.options = obj.options ? create$2(obj.options) : {};
- }
- for (var i in options) {
- obj.options[i] = options[i];
- }
- return obj.options;
- }
- // @function getParamString(obj: Object, existingUrl?: String, uppercase?: Boolean): String
- // Converts an object into a parameter URL string, e.g. `{a: "foo", b: "bar"}`
- // translates to `'?a=foo&b=bar'`. If `existingUrl` is set, the parameters will
- // be appended at the end. If `uppercase` is `true`, the parameter names will
- // be uppercased (e.g. `'?A=foo&B=bar'`)
- function getParamString(obj, existingUrl, uppercase) {
- var params = [];
- for (var i in obj) {
- params.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));
- }
- return (!existingUrl || existingUrl.indexOf('?') === -1 ? '?' : '&') + params.join('&');
- }
- var templateRe = /\{ *([\w_ -]+) *\}/g;
- // @function template(str: String, data: Object): String
- // Simple templating facility, accepts a template string of the form `'Hello {a}, {b}'`
- // and a data object like `{a: 'foo', b: 'bar'}`, returns evaluated string
- // `('Hello foo, bar')`. You can also specify functions instead of strings for
- // data values — they will be evaluated passing `data` as an argument.
- function template(str, data) {
- return str.replace(templateRe, function (str, key) {
- var value = data[key];
- if (value === undefined) {
- throw new Error('No value provided for variable ' + str);
- } else if (typeof value === 'function') {
- value = value(data);
- }
- return value;
- });
- }
- // @function isArray(obj): Boolean
- // Compatibility polyfill for [Array.isArray](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)
- var isArray = Array.isArray || function (obj) {
- return Object.prototype.toString.call(obj) === '[object Array]';
- };
- // @function indexOf(array: Array, el: Object): Number
- // Compatibility polyfill for [Array.prototype.indexOf](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf)
- function indexOf(array, el) {
- for (var i = 0; i < array.length; i++) {
- if (array[i] === el) {
- return i;
- }
- }
- return -1;
- }
- // @property emptyImageUrl: String
- // Data URI string containing a base64-encoded empty GIF image.
- // Used as a hack to free memory from unused images on WebKit-powered
- // mobile devices (by setting image `src` to this string).
- var emptyImageUrl = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=';
- // inspired by https://paulirish.com/2011/requestanimationframe-for-smart-animating/
- function getPrefixed(name) {
- return window['webkit' + name] || window['moz' + name] || window['ms' + name];
- }
- var lastTime = 0;
- // fallback for IE 7-8
- function timeoutDefer(fn) {
- var time = +new Date(),
- timeToCall = Math.max(0, 16 - (time - lastTime));
- lastTime = time + timeToCall;
- return window.setTimeout(fn, timeToCall);
- }
- var requestFn = window.requestAnimationFrame || getPrefixed('RequestAnimationFrame') || timeoutDefer;
- var cancelFn = window.cancelAnimationFrame || getPrefixed('CancelAnimationFrame') || getPrefixed('CancelRequestAnimationFrame') || function (id) {
- window.clearTimeout(id);
- };
- // @function requestAnimFrame(fn: Function, context?: Object, immediate?: Boolean): Number
- // Schedules `fn` to be executed when the browser repaints. `fn` is bound to
- // `context` if given. When `immediate` is set, `fn` is called immediately if
- // the browser doesn't have native support for
- // [`window.requestAnimationFrame`](https://developer.mozilla.org/docs/Web/API/window/requestAnimationFrame),
- // otherwise it's delayed. Returns a request ID that can be used to cancel the request.
- function requestAnimFrame(fn, context, immediate) {
- if (immediate && requestFn === timeoutDefer) {
- fn.call(context);
- } else {
- return requestFn.call(window, bind(fn, context));
- }
- }
- // @function cancelAnimFrame(id: Number): undefined
- // Cancels a previous `requestAnimFrame`. See also [window.cancelAnimationFrame](https://developer.mozilla.org/docs/Web/API/window/cancelAnimationFrame).
- function cancelAnimFrame(id) {
- if (id) {
- cancelFn.call(window, id);
- }
- }
- var Util = {
- __proto__: null,
- extend: extend,
- create: create$2,
- bind: bind,
- get lastId() {
- return lastId;
- },
- stamp: stamp,
- throttle: throttle,
- wrapNum: wrapNum,
- falseFn: falseFn,
- formatNum: formatNum,
- trim: trim,
- splitWords: splitWords,
- setOptions: setOptions,
- getParamString: getParamString,
- template: template,
- isArray: isArray,
- indexOf: indexOf,
- emptyImageUrl: emptyImageUrl,
- requestFn: requestFn,
- cancelFn: cancelFn,
- requestAnimFrame: requestAnimFrame,
- cancelAnimFrame: cancelAnimFrame
- };
- // @class Class
- // @aka L.Class
- // @section
- // @uninheritable
- // Thanks to John Resig and Dean Edwards for inspiration!
- function Class() {}
- Class.extend = function (props) {
- // @function extend(props: Object): Function
- // [Extends the current class](#class-inheritance) given the properties to be included.
- // Returns a Javascript function that is a class constructor (to be called with `new`).
- var NewClass = function NewClass() {
- setOptions(this);
- // call the constructor
- if (this.initialize) {
- this.initialize.apply(this, arguments);
- }
- // call all constructor hooks
- this.callInitHooks();
- };
- var parentProto = NewClass.__super__ = this.prototype;
- var proto = create$2(parentProto);
- proto.constructor = NewClass;
- NewClass.prototype = proto;
- // inherit parent's statics
- for (var i in this) {
- if (Object.prototype.hasOwnProperty.call(this, i) && i !== 'prototype' && i !== '__super__') {
- NewClass[i] = this[i];
- }
- }
- // mix static properties into the class
- if (props.statics) {
- extend(NewClass, props.statics);
- }
- // mix includes into the prototype
- if (props.includes) {
- checkDeprecatedMixinEvents(props.includes);
- extend.apply(null, [proto].concat(props.includes));
- }
- // mix given properties into the prototype
- extend(proto, props);
- delete proto.statics;
- delete proto.includes;
- // merge options
- if (proto.options) {
- proto.options = parentProto.options ? create$2(parentProto.options) : {};
- extend(proto.options, props.options);
- }
- proto._initHooks = [];
- // add method for calling all hooks
- proto.callInitHooks = function () {
- if (this._initHooksCalled) {
- return;
- }
- if (parentProto.callInitHooks) {
- parentProto.callInitHooks.call(this);
- }
- this._initHooksCalled = true;
- for (var i = 0, len = proto._initHooks.length; i < len; i++) {
- proto._initHooks[i].call(this);
- }
- };
- return NewClass;
- };
- // @function include(properties: Object): this
- // [Includes a mixin](#class-includes) into the current class.
- Class.include = function (props) {
- var parentOptions = this.prototype.options;
- extend(this.prototype, props);
- if (props.options) {
- this.prototype.options = parentOptions;
- this.mergeOptions(props.options);
- }
- return this;
- };
- // @function mergeOptions(options: Object): this
- // [Merges `options`](#class-options) into the defaults of the class.
- Class.mergeOptions = function (options) {
- extend(this.prototype.options, options);
- return this;
- };
- // @function addInitHook(fn: Function): this
- // Adds a [constructor hook](#class-constructor-hooks) to the class.
- Class.addInitHook = function (fn) {
- // (Function) || (String, args...)
- var args = Array.prototype.slice.call(arguments, 1);
- var init = typeof fn === 'function' ? fn : function () {
- this[fn].apply(this, args);
- };
- this.prototype._initHooks = this.prototype._initHooks || [];
- this.prototype._initHooks.push(init);
- return this;
- };
- function checkDeprecatedMixinEvents(includes) {
- /* global L: true */
- if (typeof L === 'undefined' || !L || !L.Mixin) {
- return;
- }
- includes = isArray(includes) ? includes : [includes];
- for (var i = 0; i < includes.length; i++) {
- if (includes[i] === L.Mixin.Events) {
- __f__("warn", 'Deprecated include of L.Mixin.Events: ' + 'this property will be removed in future releases, ' + 'please inherit from L.Evented instead.', new Error().stack, " at node_modules/leaflet/dist/leaflet-src.js:408");
- }
- }
- }
- /*
- * @class Evented
- * @aka L.Evented
- * @inherits Class
- *
- * A set of methods shared between event-powered classes (like `Map` and `Marker`). Generally, events allow you to execute some function when something happens with an object (e.g. the user clicks on the map, causing the map to fire `'click'` event).
- *
- * @example
- *
- * ```js
- * map.on('click', function(e) {
- * alert(e.latlng);
- * } );
- * ```
- *
- * Leaflet deals with event listeners by reference, so if you want to add a listener and then remove it, define it as a function:
- *
- * ```js
- * function onClick(e) { ... }
- *
- * map.on('click', onClick);
- * map.off('click', onClick);
- * ```
- */
- var Events = {
- /* @method on(type: String, fn: Function, context?: Object): this
- * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
- *
- * @alternative
- * @method on(eventMap: Object): this
- * Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
- */
- on: function on(types, fn, context) {
- // types can be a map of types/handlers
- if (_typeof(types) === 'object') {
- for (var type in types) {
- // we don't process space-separated events here for performance;
- // it's a hot path since Layer uses the on(obj) syntax
- this._on(type, types[type], fn);
- }
- } else {
- // types can be a string of space-separated words
- types = splitWords(types);
- for (var i = 0, len = types.length; i < len; i++) {
- this._on(types[i], fn, context);
- }
- }
- return this;
- },
- /* @method off(type: String, fn?: Function, context?: Object): this
- * Removes a previously added listener function. If no function is specified, it will remove all the listeners of that particular event from the object. Note that if you passed a custom context to `on`, you must pass the same context to `off` in order to remove the listener.
- *
- * @alternative
- * @method off(eventMap: Object): this
- * Removes a set of type/listener pairs.
- *
- * @alternative
- * @method off: this
- * Removes all listeners to all events on the object. This includes implicitly attached events.
- */
- off: function off(types, fn, context) {
- if (!arguments.length) {
- // clear all listeners if called without arguments
- delete this._events;
- } else if (_typeof(types) === 'object') {
- for (var type in types) {
- this._off(type, types[type], fn);
- }
- } else {
- types = splitWords(types);
- var removeAll = arguments.length === 1;
- for (var i = 0, len = types.length; i < len; i++) {
- if (removeAll) {
- this._off(types[i]);
- } else {
- this._off(types[i], fn, context);
- }
- }
- }
- return this;
- },
- // attach listener (without syntactic sugar now)
- _on: function _on(type, fn, context, _once) {
- if (typeof fn !== 'function') {
- __f__("warn", 'wrong listener type: ' + _typeof(fn), " at node_modules/leaflet/dist/leaflet-src.js:511");
- return;
- }
- // check if fn already there
- if (this._listens(type, fn, context) !== false) {
- return;
- }
- if (context === this) {
- // Less memory footprint.
- context = undefined;
- }
- var newListener = {
- fn: fn,
- ctx: context
- };
- if (_once) {
- newListener.once = true;
- }
- this._events = this._events || {};
- this._events[type] = this._events[type] || [];
- this._events[type].push(newListener);
- },
- _off: function _off(type, fn, context) {
- var listeners, i, len;
- if (!this._events) {
- return;
- }
- listeners = this._events[type];
- if (!listeners) {
- return;
- }
- if (arguments.length === 1) {
- // remove all
- if (this._firingCount) {
- // Set all removed listeners to noop
- // so they are not called if remove happens in fire
- for (i = 0, len = listeners.length; i < len; i++) {
- listeners[i].fn = falseFn;
- }
- }
- // clear all listeners for a type if function isn't specified
- delete this._events[type];
- return;
- }
- if (typeof fn !== 'function') {
- __f__("warn", 'wrong listener type: ' + _typeof(fn), " at node_modules/leaflet/dist/leaflet-src.js:563");
- return;
- }
- // find fn and remove it
- var index = this._listens(type, fn, context);
- if (index !== false) {
- var listener = listeners[index];
- if (this._firingCount) {
- // set the removed listener to noop so that's not called if remove happens in fire
- listener.fn = falseFn;
- /* copy array in case events are being fired */
- this._events[type] = listeners = listeners.slice();
- }
- listeners.splice(index, 1);
- }
- },
- // @method fire(type: String, data?: Object, propagate?: Boolean): this
- // Fires an event of the specified type. You can optionally provide a data
- // object — the first argument of the listener function will contain its
- // properties. The event can optionally be propagated to event parents.
- fire: function fire(type, data, propagate) {
- if (!this.listens(type, propagate)) {
- return this;
- }
- var event = extend({}, data, {
- type: type,
- target: this,
- sourceTarget: data && data.sourceTarget || this
- });
- if (this._events) {
- var listeners = this._events[type];
- if (listeners) {
- this._firingCount = this._firingCount + 1 || 1;
- for (var i = 0, len = listeners.length; i < len; i++) {
- var l = listeners[i];
- // off overwrites l.fn, so we need to copy fn to a var
- var fn = l.fn;
- if (l.once) {
- this.off(type, fn, l.ctx);
- }
- fn.call(l.ctx || this, event);
- }
- this._firingCount--;
- }
- }
- if (propagate) {
- // propagate the event to parents (set with addEventParent)
- this._propagateEvent(event);
- }
- return this;
- },
- // @method listens(type: String, propagate?: Boolean): Boolean
- // @method listens(type: String, fn: Function, context?: Object, propagate?: Boolean): Boolean
- // Returns `true` if a particular event type has any listeners attached to it.
- // The verification can optionally be propagated, it will return `true` if parents have the listener attached to it.
- listens: function listens(type, fn, context, propagate) {
- if (typeof type !== 'string') {
- __f__("warn", '"string" type argument expected', " at node_modules/leaflet/dist/leaflet-src.js:627");
- }
- // we don't overwrite the input `fn` value, because we need to use it for propagation
- var _fn = fn;
- if (typeof fn !== 'function') {
- propagate = !!fn;
- _fn = undefined;
- context = undefined;
- }
- var listeners = this._events && this._events[type];
- if (listeners && listeners.length) {
- if (this._listens(type, _fn, context) !== false) {
- return true;
- }
- }
- if (propagate) {
- // also check parents for listeners if event propagates
- for (var id in this._eventParents) {
- if (this._eventParents[id].listens(type, fn, context, propagate)) {
- return true;
- }
- }
- }
- return false;
- },
- // returns the index (number) or false
- _listens: function _listens(type, fn, context) {
- if (!this._events) {
- return false;
- }
- var listeners = this._events[type] || [];
- if (!fn) {
- return !!listeners.length;
- }
- if (context === this) {
- // Less memory footprint.
- context = undefined;
- }
- for (var i = 0, len = listeners.length; i < len; i++) {
- if (listeners[i].fn === fn && listeners[i].ctx === context) {
- return i;
- }
- }
- return false;
- },
- // @method once(…): this
- // Behaves as [`on(…)`](#evented-on), except the listener will only get fired once and then removed.
- once: function once(types, fn, context) {
- // types can be a map of types/handlers
- if (_typeof(types) === 'object') {
- for (var type in types) {
- // we don't process space-separated events here for performance;
- // it's a hot path since Layer uses the on(obj) syntax
- this._on(type, types[type], fn, true);
- }
- } else {
- // types can be a string of space-separated words
- types = splitWords(types);
- for (var i = 0, len = types.length; i < len; i++) {
- this._on(types[i], fn, context, true);
- }
- }
- return this;
- },
- // @method addEventParent(obj: Evented): this
- // Adds an event parent - an `Evented` that will receive propagated events
- addEventParent: function addEventParent(obj) {
- this._eventParents = this._eventParents || {};
- this._eventParents[stamp(obj)] = obj;
- return this;
- },
- // @method removeEventParent(obj: Evented): this
- // Removes an event parent, so it will stop receiving propagated events
- removeEventParent: function removeEventParent(obj) {
- if (this._eventParents) {
- delete this._eventParents[stamp(obj)];
- }
- return this;
- },
- _propagateEvent: function _propagateEvent(e) {
- for (var id in this._eventParents) {
- this._eventParents[id].fire(e.type, extend({
- layer: e.target,
- propagatedFrom: e.target
- }, e), true);
- }
- }
- };
- // aliases; we should ditch those eventually
- // @method addEventListener(…): this
- // Alias to [`on(…)`](#evented-on)
- Events.addEventListener = Events.on;
- // @method removeEventListener(…): this
- // Alias to [`off(…)`](#evented-off)
- // @method clearAllEventListeners(…): this
- // Alias to [`off()`](#evented-off)
- Events.removeEventListener = Events.clearAllEventListeners = Events.off;
- // @method addOneTimeEventListener(…): this
- // Alias to [`once(…)`](#evented-once)
- Events.addOneTimeEventListener = Events.once;
- // @method fireEvent(…): this
- // Alias to [`fire(…)`](#evented-fire)
- Events.fireEvent = Events.fire;
- // @method hasEventListeners(…): Boolean
- // Alias to [`listens(…)`](#evented-listens)
- Events.hasEventListeners = Events.listens;
- var Evented = Class.extend(Events);
- /*
- * @class Point
- * @aka L.Point
- *
- * Represents a point with `x` and `y` coordinates in pixels.
- *
- * @example
- *
- * ```js
- * var point = L.point(200, 300);
- * ```
- *
- * All Leaflet methods and options that accept `Point` objects also accept them in a simple Array form (unless noted otherwise), so these lines are equivalent:
- *
- * ```js
- * map.panBy([200, 300]);
- * map.panBy(L.point(200, 300));
- * ```
- *
- * Note that `Point` does not inherit from Leaflet's `Class` object,
- * which means new classes can't inherit from it, and new methods
- * can't be added to it with the `include` function.
- */
- function Point(x, y, round) {
- // @property x: Number; The `x` coordinate of the point
- this.x = round ? Math.round(x) : x;
- // @property y: Number; The `y` coordinate of the point
- this.y = round ? Math.round(y) : y;
- }
- var trunc = Math.trunc || function (v) {
- return v > 0 ? Math.floor(v) : Math.ceil(v);
- };
- Point.prototype = {
- // @method clone(): Point
- // Returns a copy of the current point.
- clone: function clone() {
- return new Point(this.x, this.y);
- },
- // @method add(otherPoint: Point): Point
- // Returns the result of addition of the current and the given points.
- add: function add(point) {
- // non-destructive, returns a new point
- return this.clone()._add(toPoint(point));
- },
- _add: function _add(point) {
- // destructive, used directly for performance in situations where it's safe to modify existing point
- this.x += point.x;
- this.y += point.y;
- return this;
- },
- // @method subtract(otherPoint: Point): Point
- // Returns the result of subtraction of the given point from the current.
- subtract: function subtract(point) {
- return this.clone()._subtract(toPoint(point));
- },
- _subtract: function _subtract(point) {
- this.x -= point.x;
- this.y -= point.y;
- return this;
- },
- // @method divideBy(num: Number): Point
- // Returns the result of division of the current point by the given number.
- divideBy: function divideBy(num) {
- return this.clone()._divideBy(num);
- },
- _divideBy: function _divideBy(num) {
- this.x /= num;
- this.y /= num;
- return this;
- },
- // @method multiplyBy(num: Number): Point
- // Returns the result of multiplication of the current point by the given number.
- multiplyBy: function multiplyBy(num) {
- return this.clone()._multiplyBy(num);
- },
- _multiplyBy: function _multiplyBy(num) {
- this.x *= num;
- this.y *= num;
- return this;
- },
- // @method scaleBy(scale: Point): Point
- // Multiply each coordinate of the current point by each coordinate of
- // `scale`. In linear algebra terms, multiply the point by the
- // [scaling matrix](https://en.wikipedia.org/wiki/Scaling_%28geometry%29#Matrix_representation)
- // defined by `scale`.
- scaleBy: function scaleBy(point) {
- return new Point(this.x * point.x, this.y * point.y);
- },
- // @method unscaleBy(scale: Point): Point
- // Inverse of `scaleBy`. Divide each coordinate of the current point by
- // each coordinate of `scale`.
- unscaleBy: function unscaleBy(point) {
- return new Point(this.x / point.x, this.y / point.y);
- },
- // @method round(): Point
- // Returns a copy of the current point with rounded coordinates.
- round: function round() {
- return this.clone()._round();
- },
- _round: function _round() {
- this.x = Math.round(this.x);
- this.y = Math.round(this.y);
- return this;
- },
- // @method floor(): Point
- // Returns a copy of the current point with floored coordinates (rounded down).
- floor: function floor() {
- return this.clone()._floor();
- },
- _floor: function _floor() {
- this.x = Math.floor(this.x);
- this.y = Math.floor(this.y);
- return this;
- },
- // @method ceil(): Point
- // Returns a copy of the current point with ceiled coordinates (rounded up).
- ceil: function ceil() {
- return this.clone()._ceil();
- },
- _ceil: function _ceil() {
- this.x = Math.ceil(this.x);
- this.y = Math.ceil(this.y);
- return this;
- },
- // @method trunc(): Point
- // Returns a copy of the current point with truncated coordinates (rounded towards zero).
- trunc: function trunc() {
- return this.clone()._trunc();
- },
- _trunc: function _trunc() {
- this.x = trunc(this.x);
- this.y = trunc(this.y);
- return this;
- },
- // @method distanceTo(otherPoint: Point): Number
- // Returns the cartesian distance between the current and the given points.
- distanceTo: function distanceTo(point) {
- point = toPoint(point);
- var x = point.x - this.x,
- y = point.y - this.y;
- return Math.sqrt(x * x + y * y);
- },
- // @method equals(otherPoint: Point): Boolean
- // Returns `true` if the given point has the same coordinates.
- equals: function equals(point) {
- point = toPoint(point);
- return point.x === this.x && point.y === this.y;
- },
- // @method contains(otherPoint: Point): Boolean
- // Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
- contains: function contains(point) {
- point = toPoint(point);
- return Math.abs(point.x) <= Math.abs(this.x) && Math.abs(point.y) <= Math.abs(this.y);
- },
- // @method toString(): String
- // Returns a string representation of the point for debugging purposes.
- toString: function toString() {
- return 'Point(' + formatNum(this.x) + ', ' + formatNum(this.y) + ')';
- }
- };
- // @factory L.point(x: Number, y: Number, round?: Boolean)
- // Creates a Point object with the given `x` and `y` coordinates. If optional `round` is set to true, rounds the `x` and `y` values.
- // @alternative
- // @factory L.point(coords: Number[])
- // Expects an array of the form `[x, y]` instead.
- // @alternative
- // @factory L.point(coords: Object)
- // Expects a plain object of the form `{x: Number, y: Number}` instead.
- function toPoint(x, y, round) {
- if (x instanceof Point) {
- return x;
- }
- if (isArray(x)) {
- return new Point(x[0], x[1]);
- }
- if (x === undefined || x === null) {
- return x;
- }
- if (_typeof(x) === 'object' && 'x' in x && 'y' in x) {
- return new Point(x.x, x.y);
- }
- return new Point(x, y, round);
- }
- /*
- * @class Bounds
- * @aka L.Bounds
- *
- * Represents a rectangular area in pixel coordinates.
- *
- * @example
- *
- * ```js
- * var p1 = L.point(10, 10),
- * p2 = L.point(40, 60),
- * bounds = L.bounds(p1, p2);
- * ```
- *
- * All Leaflet methods that accept `Bounds` objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
- *
- * ```js
- * otherBounds.intersects([[10, 10], [40, 60]]);
- * ```
- *
- * Note that `Bounds` does not inherit from Leaflet's `Class` object,
- * which means new classes can't inherit from it, and new methods
- * can't be added to it with the `include` function.
- */
- function Bounds(a, b) {
- if (!a) {
- return;
- }
- var points = b ? [a, b] : a;
- for (var i = 0, len = points.length; i < len; i++) {
- this.extend(points[i]);
- }
- }
- Bounds.prototype = {
- // @method extend(point: Point): this
- // Extends the bounds to contain the given point.
- // @alternative
- // @method extend(otherBounds: Bounds): this
- // Extend the bounds to contain the given bounds
- extend: function extend(obj) {
- var min2, max2;
- if (!obj) {
- return this;
- }
- if (obj instanceof Point || typeof obj[0] === 'number' || 'x' in obj) {
- min2 = max2 = toPoint(obj);
- } else {
- obj = toBounds(obj);
- min2 = obj.min;
- max2 = obj.max;
- if (!min2 || !max2) {
- return this;
- }
- }
- // @property min: Point
- // The top left corner of the rectangle.
- // @property max: Point
- // The bottom right corner of the rectangle.
- if (!this.min && !this.max) {
- this.min = min2.clone();
- this.max = max2.clone();
- } else {
- this.min.x = Math.min(min2.x, this.min.x);
- this.max.x = Math.max(max2.x, this.max.x);
- this.min.y = Math.min(min2.y, this.min.y);
- this.max.y = Math.max(max2.y, this.max.y);
- }
- return this;
- },
- // @method getCenter(round?: Boolean): Point
- // Returns the center point of the bounds.
- getCenter: function getCenter(round) {
- return toPoint((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, round);
- },
- // @method getBottomLeft(): Point
- // Returns the bottom-left point of the bounds.
- getBottomLeft: function getBottomLeft() {
- return toPoint(this.min.x, this.max.y);
- },
- // @method getTopRight(): Point
- // Returns the top-right point of the bounds.
- getTopRight: function getTopRight() {
- // -> Point
- return toPoint(this.max.x, this.min.y);
- },
- // @method getTopLeft(): Point
- // Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).
- getTopLeft: function getTopLeft() {
- return this.min; // left, top
- },
- // @method getBottomRight(): Point
- // Returns the bottom-right point of the bounds (i.e. [`this.max`](#bounds-max)).
- getBottomRight: function getBottomRight() {
- return this.max; // right, bottom
- },
- // @method getSize(): Point
- // Returns the size of the given bounds
- getSize: function getSize() {
- return this.max.subtract(this.min);
- },
- // @method contains(otherBounds: Bounds): Boolean
- // Returns `true` if the rectangle contains the given one.
- // @alternative
- // @method contains(point: Point): Boolean
- // Returns `true` if the rectangle contains the given point.
- contains: function contains(obj) {
- var min, max;
- if (typeof obj[0] === 'number' || obj instanceof Point) {
- obj = toPoint(obj);
- } else {
- obj = toBounds(obj);
- }
- if (obj instanceof Bounds) {
- min = obj.min;
- max = obj.max;
- } else {
- min = max = obj;
- }
- return min.x >= this.min.x && max.x <= this.max.x && min.y >= this.min.y && max.y <= this.max.y;
- },
- // @method intersects(otherBounds: Bounds): Boolean
- // Returns `true` if the rectangle intersects the given bounds. Two bounds
- // intersect if they have at least one point in common.
- intersects: function intersects(bounds) {
- // (Bounds) -> Boolean
- bounds = toBounds(bounds);
- var min = this.min,
- max = this.max,
- min2 = bounds.min,
- max2 = bounds.max,
- xIntersects = max2.x >= min.x && min2.x <= max.x,
- yIntersects = max2.y >= min.y && min2.y <= max.y;
- return xIntersects && yIntersects;
- },
- // @method overlaps(otherBounds: Bounds): Boolean
- // Returns `true` if the rectangle overlaps the given bounds. Two bounds
- // overlap if their intersection is an area.
- overlaps: function overlaps(bounds) {
- // (Bounds) -> Boolean
- bounds = toBounds(bounds);
- var min = this.min,
- max = this.max,
- min2 = bounds.min,
- max2 = bounds.max,
- xOverlaps = max2.x > min.x && min2.x < max.x,
- yOverlaps = max2.y > min.y && min2.y < max.y;
- return xOverlaps && yOverlaps;
- },
- // @method isValid(): Boolean
- // Returns `true` if the bounds are properly initialized.
- isValid: function isValid() {
- return !!(this.min && this.max);
- },
- // @method pad(bufferRatio: Number): Bounds
- // Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
- // For example, a ratio of 0.5 extends the bounds by 50% in each direction.
- // Negative values will retract the bounds.
- pad: function pad(bufferRatio) {
- var min = this.min,
- max = this.max,
- heightBuffer = Math.abs(min.x - max.x) * bufferRatio,
- widthBuffer = Math.abs(min.y - max.y) * bufferRatio;
- return toBounds(toPoint(min.x - heightBuffer, min.y - widthBuffer), toPoint(max.x + heightBuffer, max.y + widthBuffer));
- },
- // @method equals(otherBounds: Bounds): Boolean
- // Returns `true` if the rectangle is equivalent to the given bounds.
- equals: function equals(bounds) {
- if (!bounds) {
- return false;
- }
- bounds = toBounds(bounds);
- return this.min.equals(bounds.getTopLeft()) && this.max.equals(bounds.getBottomRight());
- }
- };
- // @factory L.bounds(corner1: Point, corner2: Point)
- // Creates a Bounds object from two corners coordinate pairs.
- // @alternative
- // @factory L.bounds(points: Point[])
- // Creates a Bounds object from the given array of points.
- function toBounds(a, b) {
- if (!a || a instanceof Bounds) {
- return a;
- }
- return new Bounds(a, b);
- }
- /*
- * @class LatLngBounds
- * @aka L.LatLngBounds
- *
- * Represents a rectangular geographical area on a map.
- *
- * @example
- *
- * ```js
- * var corner1 = L.latLng(40.712, -74.227),
- * corner2 = L.latLng(40.774, -74.125),
- * bounds = L.latLngBounds(corner1, corner2);
- * ```
- *
- * All Leaflet methods that accept LatLngBounds objects also accept them in a simple Array form (unless noted otherwise), so the bounds example above can be passed like this:
- *
- * ```js
- * map.fitBounds([
- * [40.712, -74.227],
- * [40.774, -74.125]
- * ]);
- * ```
- *
- * Caution: if the area crosses the antimeridian (often confused with the International Date Line), you must specify corners _outside_ the [-180, 180] degrees longitude range.
- *
- * Note that `LatLngBounds` does not inherit from Leaflet's `Class` object,
- * which means new classes can't inherit from it, and new methods
- * can't be added to it with the `include` function.
- */
- function LatLngBounds(corner1, corner2) {
- // (LatLng, LatLng) or (LatLng[])
- if (!corner1) {
- return;
- }
- var latlngs = corner2 ? [corner1, corner2] : corner1;
- for (var i = 0, len = latlngs.length; i < len; i++) {
- this.extend(latlngs[i]);
- }
- }
- LatLngBounds.prototype = {
- // @method extend(latlng: LatLng): this
- // Extend the bounds to contain the given point
- // @alternative
- // @method extend(otherBounds: LatLngBounds): this
- // Extend the bounds to contain the given bounds
- extend: function extend(obj) {
- var sw = this._southWest,
- ne = this._northEast,
- sw2,
- ne2;
- if (obj instanceof LatLng) {
- sw2 = obj;
- ne2 = obj;
- } else if (obj instanceof LatLngBounds) {
- sw2 = obj._southWest;
- ne2 = obj._northEast;
- if (!sw2 || !ne2) {
- return this;
- }
- } else {
- return obj ? this.extend(toLatLng(obj) || toLatLngBounds(obj)) : this;
- }
- if (!sw && !ne) {
- this._southWest = new LatLng(sw2.lat, sw2.lng);
- this._northEast = new LatLng(ne2.lat, ne2.lng);
- } else {
- sw.lat = Math.min(sw2.lat, sw.lat);
- sw.lng = Math.min(sw2.lng, sw.lng);
- ne.lat = Math.max(ne2.lat, ne.lat);
- ne.lng = Math.max(ne2.lng, ne.lng);
- }
- return this;
- },
- // @method pad(bufferRatio: Number): LatLngBounds
- // Returns bounds created by extending or retracting the current bounds by a given ratio in each direction.
- // For example, a ratio of 0.5 extends the bounds by 50% in each direction.
- // Negative values will retract the bounds.
- pad: function pad(bufferRatio) {
- var sw = this._southWest,
- ne = this._northEast,
- heightBuffer = Math.abs(sw.lat - ne.lat) * bufferRatio,
- widthBuffer = Math.abs(sw.lng - ne.lng) * bufferRatio;
- return new LatLngBounds(new LatLng(sw.lat - heightBuffer, sw.lng - widthBuffer), new LatLng(ne.lat + heightBuffer, ne.lng + widthBuffer));
- },
- // @method getCenter(): LatLng
- // Returns the center point of the bounds.
- getCenter: function getCenter() {
- return new LatLng((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2);
- },
- // @method getSouthWest(): LatLng
- // Returns the south-west point of the bounds.
- getSouthWest: function getSouthWest() {
- return this._southWest;
- },
- // @method getNorthEast(): LatLng
- // Returns the north-east point of the bounds.
- getNorthEast: function getNorthEast() {
- return this._northEast;
- },
- // @method getNorthWest(): LatLng
- // Returns the north-west point of the bounds.
- getNorthWest: function getNorthWest() {
- return new LatLng(this.getNorth(), this.getWest());
- },
- // @method getSouthEast(): LatLng
- // Returns the south-east point of the bounds.
- getSouthEast: function getSouthEast() {
- return new LatLng(this.getSouth(), this.getEast());
- },
- // @method getWest(): Number
- // Returns the west longitude of the bounds
- getWest: function getWest() {
- return this._southWest.lng;
- },
- // @method getSouth(): Number
- // Returns the south latitude of the bounds
- getSouth: function getSouth() {
- return this._southWest.lat;
- },
- // @method getEast(): Number
- // Returns the east longitude of the bounds
- getEast: function getEast() {
- return this._northEast.lng;
- },
- // @method getNorth(): Number
- // Returns the north latitude of the bounds
- getNorth: function getNorth() {
- return this._northEast.lat;
- },
- // @method contains(otherBounds: LatLngBounds): Boolean
- // Returns `true` if the rectangle contains the given one.
- // @alternative
- // @method contains (latlng: LatLng): Boolean
- // Returns `true` if the rectangle contains the given point.
- contains: function contains(obj) {
- // (LatLngBounds) or (LatLng) -> Boolean
- if (typeof obj[0] === 'number' || obj instanceof LatLng || 'lat' in obj) {
- obj = toLatLng(obj);
- } else {
- obj = toLatLngBounds(obj);
- }
- var sw = this._southWest,
- ne = this._northEast,
- sw2,
- ne2;
- if (obj instanceof LatLngBounds) {
- sw2 = obj.getSouthWest();
- ne2 = obj.getNorthEast();
- } else {
- sw2 = ne2 = obj;
- }
- return sw2.lat >= sw.lat && ne2.lat <= ne.lat && sw2.lng >= sw.lng && ne2.lng <= ne.lng;
- },
- // @method intersects(otherBounds: LatLngBounds): Boolean
- // Returns `true` if the rectangle intersects the given bounds. Two bounds intersect if they have at least one point in common.
- intersects: function intersects(bounds) {
- bounds = toLatLngBounds(bounds);
- var sw = this._southWest,
- ne = this._northEast,
- sw2 = bounds.getSouthWest(),
- ne2 = bounds.getNorthEast(),
- latIntersects = ne2.lat >= sw.lat && sw2.lat <= ne.lat,
- lngIntersects = ne2.lng >= sw.lng && sw2.lng <= ne.lng;
- return latIntersects && lngIntersects;
- },
- // @method overlaps(otherBounds: LatLngBounds): Boolean
- // Returns `true` if the rectangle overlaps the given bounds. Two bounds overlap if their intersection is an area.
- overlaps: function overlaps(bounds) {
- bounds = toLatLngBounds(bounds);
- var sw = this._southWest,
- ne = this._northEast,
- sw2 = bounds.getSouthWest(),
- ne2 = bounds.getNorthEast(),
- latOverlaps = ne2.lat > sw.lat && sw2.lat < ne.lat,
- lngOverlaps = ne2.lng > sw.lng && sw2.lng < ne.lng;
- return latOverlaps && lngOverlaps;
- },
- // @method toBBoxString(): String
- // Returns a string with bounding box coordinates in a 'southwest_lng,southwest_lat,northeast_lng,northeast_lat' format. Useful for sending requests to web services that return geo data.
- toBBoxString: function toBBoxString() {
- return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(',');
- },
- // @method equals(otherBounds: LatLngBounds, maxMargin?: Number): Boolean
- // Returns `true` if the rectangle is equivalent (within a small margin of error) to the given bounds. The margin of error can be overridden by setting `maxMargin` to a small number.
- equals: function equals(bounds, maxMargin) {
- if (!bounds) {
- return false;
- }
- bounds = toLatLngBounds(bounds);
- return this._southWest.equals(bounds.getSouthWest(), maxMargin) && this._northEast.equals(bounds.getNorthEast(), maxMargin);
- },
- // @method isValid(): Boolean
- // Returns `true` if the bounds are properly initialized.
- isValid: function isValid() {
- return !!(this._southWest && this._northEast);
- }
- };
- // TODO International date line?
- // @factory L.latLngBounds(corner1: LatLng, corner2: LatLng)
- // Creates a `LatLngBounds` object by defining two diagonally opposite corners of the rectangle.
- // @alternative
- // @factory L.latLngBounds(latlngs: LatLng[])
- // Creates a `LatLngBounds` object defined by the geographical points it contains. Very useful for zooming the map to fit a particular set of locations with [`fitBounds`](#map-fitbounds).
- function toLatLngBounds(a, b) {
- if (a instanceof LatLngBounds) {
- return a;
- }
- return new LatLngBounds(a, b);
- }
- /* @class LatLng
- * @aka L.LatLng
- *
- * Represents a geographical point with a certain latitude and longitude.
- *
- * @example
- *
- * ```
- * var latlng = L.latLng(50.5, 30.5);
- * ```
- *
- * All Leaflet methods that accept LatLng objects also accept them in a simple Array form and simple object form (unless noted otherwise), so these lines are equivalent:
- *
- * ```
- * map.panTo([50, 30]);
- * map.panTo({lon: 30, lat: 50});
- * map.panTo({lat: 50, lng: 30});
- * map.panTo(L.latLng(50, 30));
- * ```
- *
- * Note that `LatLng` does not inherit from Leaflet's `Class` object,
- * which means new classes can't inherit from it, and new methods
- * can't be added to it with the `include` function.
- */
- function LatLng(lat, lng, alt) {
- if (isNaN(lat) || isNaN(lng)) {
- throw new Error('Invalid LatLng object: (' + lat + ', ' + lng + ')');
- }
- // @property lat: Number
- // Latitude in degrees
- this.lat = +lat;
- // @property lng: Number
- // Longitude in degrees
- this.lng = +lng;
- // @property alt: Number
- // Altitude in meters (optional)
- if (alt !== undefined) {
- this.alt = +alt;
- }
- }
- LatLng.prototype = {
- // @method equals(otherLatLng: LatLng, maxMargin?: Number): Boolean
- // Returns `true` if the given `LatLng` point is at the same position (within a small margin of error). The margin of error can be overridden by setting `maxMargin` to a small number.
- equals: function equals(obj, maxMargin) {
- if (!obj) {
- return false;
- }
- obj = toLatLng(obj);
- var margin = Math.max(Math.abs(this.lat - obj.lat), Math.abs(this.lng - obj.lng));
- return margin <= (maxMargin === undefined ? 1.0E-9 : maxMargin);
- },
- // @method toString(): String
- // Returns a string representation of the point (for debugging purposes).
- toString: function toString(precision) {
- return 'LatLng(' + formatNum(this.lat, precision) + ', ' + formatNum(this.lng, precision) + ')';
- },
- // @method distanceTo(otherLatLng: LatLng): Number
- // Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
- distanceTo: function distanceTo(other) {
- return Earth.distance(this, toLatLng(other));
- },
- // @method wrap(): LatLng
- // Returns a new `LatLng` object with the longitude wrapped so it's always between -180 and +180 degrees.
- wrap: function wrap() {
- return Earth.wrapLatLng(this);
- },
- // @method toBounds(sizeInMeters: Number): LatLngBounds
- // Returns a new `LatLngBounds` object in which each boundary is `sizeInMeters/2` meters apart from the `LatLng`.
- toBounds: function toBounds(sizeInMeters) {
- var latAccuracy = 180 * sizeInMeters / 40075017,
- lngAccuracy = latAccuracy / Math.cos(Math.PI / 180 * this.lat);
- return toLatLngBounds([this.lat - latAccuracy, this.lng - lngAccuracy], [this.lat + latAccuracy, this.lng + lngAccuracy]);
- },
- clone: function clone() {
- return new LatLng(this.lat, this.lng, this.alt);
- }
- };
- // @factory L.latLng(latitude: Number, longitude: Number, altitude?: Number): LatLng
- // Creates an object representing a geographical point with the given latitude and longitude (and optionally altitude).
- // @alternative
- // @factory L.latLng(coords: Array): LatLng
- // Expects an array of the form `[Number, Number]` or `[Number, Number, Number]` instead.
- // @alternative
- // @factory L.latLng(coords: Object): LatLng
- // Expects an plain object of the form `{lat: Number, lng: Number}` or `{lat: Number, lng: Number, alt: Number}` instead.
- function toLatLng(a, b, c) {
- if (a instanceof LatLng) {
- return a;
- }
- if (isArray(a) && _typeof(a[0]) !== 'object') {
- if (a.length === 3) {
- return new LatLng(a[0], a[1], a[2]);
- }
- if (a.length === 2) {
- return new LatLng(a[0], a[1]);
- }
- return null;
- }
- if (a === undefined || a === null) {
- return a;
- }
- if (_typeof(a) === 'object' && 'lat' in a) {
- return new LatLng(a.lat, 'lng' in a ? a.lng : a.lon, a.alt);
- }
- if (b === undefined) {
- return null;
- }
- return new LatLng(a, b, c);
- }
- /*
- * @namespace CRS
- * @crs L.CRS.Base
- * Object that defines coordinate reference systems for projecting
- * geographical points into pixel (screen) coordinates and back (and to
- * coordinates in other units for [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services). See
- * [spatial reference system](https://en.wikipedia.org/wiki/Spatial_reference_system).
- *
- * Leaflet defines the most usual CRSs by default. If you want to use a
- * CRS not defined by default, take a look at the
- * [Proj4Leaflet](https://github.com/kartena/Proj4Leaflet) plugin.
- *
- * Note that the CRS instances do not inherit from Leaflet's `Class` object,
- * and can't be instantiated. Also, new classes can't inherit from them,
- * and methods can't be added to them with the `include` function.
- */
- var CRS = {
- // @method latLngToPoint(latlng: LatLng, zoom: Number): Point
- // Projects geographical coordinates into pixel coordinates for a given zoom.
- latLngToPoint: function latLngToPoint(latlng, zoom) {
- var projectedPoint = this.projection.project(latlng),
- scale = this.scale(zoom);
- return this.transformation._transform(projectedPoint, scale);
- },
- // @method pointToLatLng(point: Point, zoom: Number): LatLng
- // The inverse of `latLngToPoint`. Projects pixel coordinates on a given
- // zoom into geographical coordinates.
- pointToLatLng: function pointToLatLng(point, zoom) {
- var scale = this.scale(zoom),
- untransformedPoint = this.transformation.untransform(point, scale);
- return this.projection.unproject(untransformedPoint);
- },
- // @method project(latlng: LatLng): Point
- // Projects geographical coordinates into coordinates in units accepted for
- // this CRS (e.g. meters for EPSG:3857, for passing it to WMS services).
- project: function project(latlng) {
- return this.projection.project(latlng);
- },
- // @method unproject(point: Point): LatLng
- // Given a projected coordinate returns the corresponding LatLng.
- // The inverse of `project`.
- unproject: function unproject(point) {
- return this.projection.unproject(point);
- },
- // @method scale(zoom: Number): Number
- // Returns the scale used when transforming projected coordinates into
- // pixel coordinates for a particular zoom. For example, it returns
- // `256 * 2^zoom` for Mercator-based CRS.
- scale: function scale(zoom) {
- return 256 * Math.pow(2, zoom);
- },
- // @method zoom(scale: Number): Number
- // Inverse of `scale()`, returns the zoom level corresponding to a scale
- // factor of `scale`.
- zoom: function zoom(scale) {
- return Math.log(scale / 256) / Math.LN2;
- },
- // @method getProjectedBounds(zoom: Number): Bounds
- // Returns the projection's bounds scaled and transformed for the provided `zoom`.
- getProjectedBounds: function getProjectedBounds(zoom) {
- if (this.infinite) {
- return null;
- }
- var b = this.projection.bounds,
- s = this.scale(zoom),
- min = this.transformation.transform(b.min, s),
- max = this.transformation.transform(b.max, s);
- return new Bounds(min, max);
- },
- // @method distance(latlng1: LatLng, latlng2: LatLng): Number
- // Returns the distance between two geographical coordinates.
- // @property code: String
- // Standard code name of the CRS passed into WMS services (e.g. `'EPSG:3857'`)
- //
- // @property wrapLng: Number[]
- // An array of two numbers defining whether the longitude (horizontal) coordinate
- // axis wraps around a given range and how. Defaults to `[-180, 180]` in most
- // geographical CRSs. If `undefined`, the longitude axis does not wrap around.
- //
- // @property wrapLat: Number[]
- // Like `wrapLng`, but for the latitude (vertical) axis.
- // wrapLng: [min, max],
- // wrapLat: [min, max],
- // @property infinite: Boolean
- // If true, the coordinate space will be unbounded (infinite in both axes)
- infinite: false,
- // @method wrapLatLng(latlng: LatLng): LatLng
- // Returns a `LatLng` where lat and lng has been wrapped according to the
- // CRS's `wrapLat` and `wrapLng` properties, if they are outside the CRS's bounds.
- wrapLatLng: function wrapLatLng(latlng) {
- var lng = this.wrapLng ? wrapNum(latlng.lng, this.wrapLng, true) : latlng.lng,
- lat = this.wrapLat ? wrapNum(latlng.lat, this.wrapLat, true) : latlng.lat,
- alt = latlng.alt;
- return new LatLng(lat, lng, alt);
- },
- // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
- // Returns a `LatLngBounds` with the same size as the given one, ensuring
- // that its center is within the CRS's bounds.
- // Only accepts actual `L.LatLngBounds` instances, not arrays.
- wrapLatLngBounds: function wrapLatLngBounds(bounds) {
- var center = bounds.getCenter(),
- newCenter = this.wrapLatLng(center),
- latShift = center.lat - newCenter.lat,
- lngShift = center.lng - newCenter.lng;
- if (latShift === 0 && lngShift === 0) {
- return bounds;
- }
- var sw = bounds.getSouthWest(),
- ne = bounds.getNorthEast(),
- newSw = new LatLng(sw.lat - latShift, sw.lng - lngShift),
- newNe = new LatLng(ne.lat - latShift, ne.lng - lngShift);
- return new LatLngBounds(newSw, newNe);
- }
- };
- /*
- * @namespace CRS
- * @crs L.CRS.Earth
- *
- * Serves as the base for CRS that are global such that they cover the earth.
- * Can only be used as the base for other CRS and cannot be used directly,
- * since it does not have a `code`, `projection` or `transformation`. `distance()` returns
- * meters.
- */
- var Earth = extend({}, CRS, {
- wrapLng: [-180, 180],
- // Mean Earth Radius, as recommended for use by
- // the International Union of Geodesy and Geophysics,
- // see https://rosettacode.org/wiki/Haversine_formula
- R: 6371000,
- // distance between two geographical points using spherical law of cosines approximation
- distance: function distance(latlng1, latlng2) {
- var rad = Math.PI / 180,
- lat1 = latlng1.lat * rad,
- lat2 = latlng2.lat * rad,
- sinDLat = Math.sin((latlng2.lat - latlng1.lat) * rad / 2),
- sinDLon = Math.sin((latlng2.lng - latlng1.lng) * rad / 2),
- a = sinDLat * sinDLat + Math.cos(lat1) * Math.cos(lat2) * sinDLon * sinDLon,
- c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
- return this.R * c;
- }
- });
- /*
- * @namespace Projection
- * @projection L.Projection.SphericalMercator
- *
- * Spherical Mercator projection — the most common projection for online maps,
- * used by almost all free and commercial tile providers. Assumes that Earth is
- * a sphere. Used by the `EPSG:3857` CRS.
- */
- var earthRadius = 6378137;
- var SphericalMercator = {
- R: earthRadius,
- MAX_LATITUDE: 85.0511287798,
- project: function project(latlng) {
- var d = Math.PI / 180,
- max = this.MAX_LATITUDE,
- lat = Math.max(Math.min(max, latlng.lat), -max),
- sin = Math.sin(lat * d);
- return new Point(this.R * latlng.lng * d, this.R * Math.log((1 + sin) / (1 - sin)) / 2);
- },
- unproject: function unproject(point) {
- var d = 180 / Math.PI;
- return new LatLng((2 * Math.atan(Math.exp(point.y / this.R)) - Math.PI / 2) * d, point.x * d / this.R);
- },
- bounds: function () {
- var d = earthRadius * Math.PI;
- return new Bounds([-d, -d], [d, d]);
- }()
- };
- /*
- * @class Transformation
- * @aka L.Transformation
- *
- * Represents an affine transformation: a set of coefficients `a`, `b`, `c`, `d`
- * for transforming a point of a form `(x, y)` into `(a*x + b, c*y + d)` and doing
- * the reverse. Used by Leaflet in its projections code.
- *
- * @example
- *
- * ```js
- * var transformation = L.transformation(2, 5, -1, 10),
- * p = L.point(1, 2),
- * p2 = transformation.transform(p), // L.point(7, 8)
- * p3 = transformation.untransform(p2); // L.point(1, 2)
- * ```
- */
- // factory new L.Transformation(a: Number, b: Number, c: Number, d: Number)
- // Creates a `Transformation` object with the given coefficients.
- function Transformation(a, b, c, d) {
- if (isArray(a)) {
- // use array properties
- this._a = a[0];
- this._b = a[1];
- this._c = a[2];
- this._d = a[3];
- return;
- }
- this._a = a;
- this._b = b;
- this._c = c;
- this._d = d;
- }
- Transformation.prototype = {
- // @method transform(point: Point, scale?: Number): Point
- // Returns a transformed point, optionally multiplied by the given scale.
- // Only accepts actual `L.Point` instances, not arrays.
- transform: function transform(point, scale) {
- // (Point, Number) -> Point
- return this._transform(point.clone(), scale);
- },
- // destructive transform (faster)
- _transform: function _transform(point, scale) {
- scale = scale || 1;
- point.x = scale * (this._a * point.x + this._b);
- point.y = scale * (this._c * point.y + this._d);
- return point;
- },
- // @method untransform(point: Point, scale?: Number): Point
- // Returns the reverse transformation of the given point, optionally divided
- // by the given scale. Only accepts actual `L.Point` instances, not arrays.
- untransform: function untransform(point, scale) {
- scale = scale || 1;
- return new Point((point.x / scale - this._b) / this._a, (point.y / scale - this._d) / this._c);
- }
- };
- // factory L.transformation(a: Number, b: Number, c: Number, d: Number)
- // @factory L.transformation(a: Number, b: Number, c: Number, d: Number)
- // Instantiates a Transformation object with the given coefficients.
- // @alternative
- // @factory L.transformation(coefficients: Array): Transformation
- // Expects an coefficients array of the form
- // `[a: Number, b: Number, c: Number, d: Number]`.
- function toTransformation(a, b, c, d) {
- return new Transformation(a, b, c, d);
- }
- /*
- * @namespace CRS
- * @crs L.CRS.EPSG3857
- *
- * The most common CRS for online maps, used by almost all free and commercial
- * tile providers. Uses Spherical Mercator projection. Set in by default in
- * Map's `crs` option.
- */
- var EPSG3857 = extend({}, Earth, {
- code: 'EPSG:3857',
- projection: SphericalMercator,
- transformation: function () {
- var scale = 0.5 / (Math.PI * SphericalMercator.R);
- return toTransformation(scale, 0.5, -scale, 0.5);
- }()
- });
- var EPSG900913 = extend({}, EPSG3857, {
- code: 'EPSG:900913'
- });
- // @namespace SVG; @section
- // There are several static functions which can be called without instantiating L.SVG:
- // @function create(name: String): SVGElement
- // Returns a instance of [SVGElement](https://developer.mozilla.org/docs/Web/API/SVGElement),
- // corresponding to the class name passed. For example, using 'line' will return
- // an instance of [SVGLineElement](https://developer.mozilla.org/docs/Web/API/SVGLineElement).
- function svgCreate(name) {
- return document.createElementNS('http://www.w3.org/2000/svg', name);
- }
- // @function pointsToPath(rings: Point[], closed: Boolean): String
- // Generates a SVG path string for multiple rings, with each ring turning
- // into "M..L..L.." instructions
- function pointsToPath(rings, closed) {
- var str = '',
- i,
- j,
- len,
- len2,
- points,
- p;
- for (i = 0, len = rings.length; i < len; i++) {
- points = rings[i];
- for (j = 0, len2 = points.length; j < len2; j++) {
- p = points[j];
- str += (j ? 'L' : 'M') + p.x + ' ' + p.y;
- }
- // closes the ring for polygons; "x" is VML syntax
- str += closed ? Browser.svg ? 'z' : 'x' : '';
- }
- // SVG complains about empty path strings
- return str || 'M0 0';
- }
- /*
- * @namespace Browser
- * @aka L.Browser
- *
- * A namespace with static properties for browser/feature detection used by Leaflet internally.
- *
- * @example
- *
- * ```js
- * if (L.Browser.ielt9) {
- * alert('Upgrade your browser, dude!');
- * }
- * ```
- */
- var style = document.documentElement.style;
- // @property ie: Boolean; `true` for all Internet Explorer versions (not Edge).
- var ie = ('ActiveXObject' in window);
- // @property ielt9: Boolean; `true` for Internet Explorer versions less than 9.
- var ielt9 = ie && !document.addEventListener;
- // @property edge: Boolean; `true` for the Edge web browser.
- var edge = 'msLaunchUri' in navigator && !('documentMode' in document);
- // @property webkit: Boolean;
- // `true` for webkit-based browsers like Chrome and Safari (including mobile versions).
- var webkit = userAgentContains('webkit');
- // @property android: Boolean
- // **Deprecated.** `true` for any browser running on an Android platform.
- var android = userAgentContains('android');
- // @property android23: Boolean; **Deprecated.** `true` for browsers running on Android 2 or Android 3.
- var android23 = userAgentContains('android 2') || userAgentContains('android 3');
- /* See https://stackoverflow.com/a/17961266 for details on detecting stock Android */
- var webkitVer = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10); // also matches AppleWebKit
- // @property androidStock: Boolean; **Deprecated.** `true` for the Android stock browser (i.e. not Chrome)
- var androidStock = android && userAgentContains('Google') && webkitVer < 537 && !('AudioNode' in window);
- // @property opera: Boolean; `true` for the Opera browser
- var opera = !!window.opera;
- // @property chrome: Boolean; `true` for the Chrome browser.
- var chrome = !edge && userAgentContains('chrome');
- // @property gecko: Boolean; `true` for gecko-based browsers like Firefox.
- var gecko = userAgentContains('gecko') && !webkit && !opera && !ie;
- // @property safari: Boolean; `true` for the Safari browser.
- var safari = !chrome && userAgentContains('safari');
- var phantom = userAgentContains('phantom');
- // @property opera12: Boolean
- // `true` for the Opera browser supporting CSS transforms (version 12 or later).
- var opera12 = ('OTransition' in style);
- // @property win: Boolean; `true` when the browser is running in a Windows platform
- var win = navigator.platform.indexOf('Win') === 0;
- // @property ie3d: Boolean; `true` for all Internet Explorer versions supporting CSS transforms.
- var ie3d = ie && 'transition' in style;
- // @property webkit3d: Boolean; `true` for webkit-based browsers supporting CSS transforms.
- var webkit3d = 'WebKitCSSMatrix' in window && 'm11' in new window.WebKitCSSMatrix() && !android23;
- // @property gecko3d: Boolean; `true` for gecko-based browsers supporting CSS transforms.
- var gecko3d = ('MozPerspective' in style);
- // @property any3d: Boolean
- // `true` for all browsers supporting CSS transforms.
- var any3d = !window.L_DISABLE_3D && (ie3d || webkit3d || gecko3d) && !opera12 && !phantom;
- // @property mobile: Boolean; `true` for all browsers running in a mobile device.
- var mobile = typeof orientation !== 'undefined' || userAgentContains('mobile');
- // @property mobileWebkit: Boolean; `true` for all webkit-based browsers in a mobile device.
- var mobileWebkit = mobile && webkit;
- // @property mobileWebkit3d: Boolean
- // `true` for all webkit-based browsers in a mobile device supporting CSS transforms.
- var mobileWebkit3d = mobile && webkit3d;
- // @property msPointer: Boolean
- // `true` for browsers implementing the Microsoft touch events model (notably IE10).
- var msPointer = !window.PointerEvent && window.MSPointerEvent;
- // @property pointer: Boolean
- // `true` for all browsers supporting [pointer events](https://msdn.microsoft.com/en-us/library/dn433244%28v=vs.85%29.aspx).
- var pointer = !!(window.PointerEvent || msPointer);
- // @property touchNative: Boolean
- // `true` for all browsers supporting [touch events](https://developer.mozilla.org/docs/Web/API/Touch_events).
- // **This does not necessarily mean** that the browser is running in a computer with
- // a touchscreen, it only means that the browser is capable of understanding
- // touch events.
- var touchNative = 'ontouchstart' in window || !!window.TouchEvent;
- // @property touch: Boolean
- // `true` for all browsers supporting either [touch](#browser-touch) or [pointer](#browser-pointer) events.
- // Note: pointer events will be preferred (if available), and processed for all `touch*` listeners.
- var touch = !window.L_NO_TOUCH && (touchNative || pointer);
- // @property mobileOpera: Boolean; `true` for the Opera browser in a mobile device.
- var mobileOpera = mobile && opera;
- // @property mobileGecko: Boolean
- // `true` for gecko-based browsers running in a mobile device.
- var mobileGecko = mobile && gecko;
- // @property retina: Boolean
- // `true` for browsers on a high-resolution "retina" screen or on any screen when browser's display zoom is more than 100%.
- var retina = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1;
- // @property passiveEvents: Boolean
- // `true` for browsers that support passive events.
- var passiveEvents = function () {
- var supportsPassiveOption = false;
- try {
- var opts = Object.defineProperty({}, 'passive', {
- get: function get() {
- // eslint-disable-line getter-return
- supportsPassiveOption = true;
- }
- });
- window.addEventListener('testPassiveEventSupport', falseFn, opts);
- window.removeEventListener('testPassiveEventSupport', falseFn, opts);
- } catch (e) {
- // Errors can safely be ignored since this is only a browser support test.
- }
- return supportsPassiveOption;
- }();
- // @property canvas: Boolean
- // `true` when the browser supports [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
- var canvas$1 = function () {
- return !!document.createElement('canvas').getContext;
- }();
- // @property svg: Boolean
- // `true` when the browser supports [SVG](https://developer.mozilla.org/docs/Web/SVG).
- var svg$1 = !!(document.createElementNS && svgCreate('svg').createSVGRect);
- var inlineSvg = !!svg$1 && function () {
- var div = document.createElement('div');
- div.innerHTML = '<svg/>';
- return (div.firstChild && div.firstChild.namespaceURI) === 'http://www.w3.org/2000/svg';
- }();
- // @property vml: Boolean
- // `true` if the browser supports [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language).
- var vml = !svg$1 && function () {
- try {
- var div = document.createElement('div');
- div.innerHTML = '<v:shape adj="1"/>';
- var shape = div.firstChild;
- shape.style.behavior = 'url(#default#VML)';
- return shape && _typeof(shape.adj) === 'object';
- } catch (e) {
- return false;
- }
- }();
- // @property mac: Boolean; `true` when the browser is running in a Mac platform
- var mac = navigator.platform.indexOf('Mac') === 0;
- // @property mac: Boolean; `true` when the browser is running in a Linux platform
- var linux = navigator.platform.indexOf('Linux') === 0;
- function userAgentContains(str) {
- return navigator.userAgent.toLowerCase().indexOf(str) >= 0;
- }
- var Browser = {
- ie: ie,
- ielt9: ielt9,
- edge: edge,
- webkit: webkit,
- android: android,
- android23: android23,
- androidStock: androidStock,
- opera: opera,
- chrome: chrome,
- gecko: gecko,
- safari: safari,
- phantom: phantom,
- opera12: opera12,
- win: win,
- ie3d: ie3d,
- webkit3d: webkit3d,
- gecko3d: gecko3d,
- any3d: any3d,
- mobile: mobile,
- mobileWebkit: mobileWebkit,
- mobileWebkit3d: mobileWebkit3d,
- msPointer: msPointer,
- pointer: pointer,
- touch: touch,
- touchNative: touchNative,
- mobileOpera: mobileOpera,
- mobileGecko: mobileGecko,
- retina: retina,
- passiveEvents: passiveEvents,
- canvas: canvas$1,
- svg: svg$1,
- vml: vml,
- inlineSvg: inlineSvg,
- mac: mac,
- linux: linux
- };
- /*
- * Extends L.DomEvent to provide touch support for Internet Explorer and Windows-based devices.
- */
- var POINTER_DOWN = Browser.msPointer ? 'MSPointerDown' : 'pointerdown';
- var POINTER_MOVE = Browser.msPointer ? 'MSPointerMove' : 'pointermove';
- var POINTER_UP = Browser.msPointer ? 'MSPointerUp' : 'pointerup';
- var POINTER_CANCEL = Browser.msPointer ? 'MSPointerCancel' : 'pointercancel';
- var pEvent = {
- touchstart: POINTER_DOWN,
- touchmove: POINTER_MOVE,
- touchend: POINTER_UP,
- touchcancel: POINTER_CANCEL
- };
- var handle = {
- touchstart: _onPointerStart,
- touchmove: _handlePointer,
- touchend: _handlePointer,
- touchcancel: _handlePointer
- };
- var _pointers = {};
- var _pointerDocListener = false;
- // Provides a touch events wrapper for (ms)pointer events.
- // ref https://www.w3.org/TR/pointerevents/ https://www.w3.org/Bugs/Public/show_bug.cgi?id=22890
- function addPointerListener(obj, type, handler) {
- if (type === 'touchstart') {
- _addPointerDocListener();
- }
- if (!handle[type]) {
- __f__("warn", 'wrong event specified:', type, " at node_modules/leaflet/dist/leaflet-src.js:2169");
- return falseFn;
- }
- handler = handle[type].bind(this, handler);
- obj.addEventListener(pEvent[type], handler, false);
- return handler;
- }
- function removePointerListener(obj, type, handler) {
- if (!pEvent[type]) {
- __f__("warn", 'wrong event specified:', type, " at node_modules/leaflet/dist/leaflet-src.js:2179");
- return;
- }
- obj.removeEventListener(pEvent[type], handler, false);
- }
- function _globalPointerDown(e) {
- _pointers[e.pointerId] = e;
- }
- function _globalPointerMove(e) {
- if (_pointers[e.pointerId]) {
- _pointers[e.pointerId] = e;
- }
- }
- function _globalPointerUp(e) {
- delete _pointers[e.pointerId];
- }
- function _addPointerDocListener() {
- // need to keep track of what pointers and how many are active to provide e.touches emulation
- if (!_pointerDocListener) {
- // we listen document as any drags that end by moving the touch off the screen get fired there
- document.addEventListener(POINTER_DOWN, _globalPointerDown, true);
- document.addEventListener(POINTER_MOVE, _globalPointerMove, true);
- document.addEventListener(POINTER_UP, _globalPointerUp, true);
- document.addEventListener(POINTER_CANCEL, _globalPointerUp, true);
- _pointerDocListener = true;
- }
- }
- function _handlePointer(handler, e) {
- if (e.pointerType === (e.MSPOINTER_TYPE_MOUSE || 'mouse')) {
- return;
- }
- e.touches = [];
- for (var i in _pointers) {
- e.touches.push(_pointers[i]);
- }
- e.changedTouches = [e];
- handler(e);
- }
- function _onPointerStart(handler, e) {
- // IE10 specific: MsTouch needs preventDefault. See #2000
- if (e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH) {
- preventDefault(e);
- }
- _handlePointer(handler, e);
- }
- /*
- * Extends the event handling code with double tap support for mobile browsers.
- *
- * Note: currently most browsers fire native dblclick, with only a few exceptions
- * (see https://github.com/Leaflet/Leaflet/issues/7012#issuecomment-595087386)
- */
- function makeDblclick(event) {
- // in modern browsers `type` cannot be just overridden:
- // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only
- var newEvent = {},
- prop,
- i;
- for (i in event) {
- prop = event[i];
- newEvent[i] = prop && prop.bind ? prop.bind(event) : prop;
- }
- event = newEvent;
- newEvent.type = 'dblclick';
- newEvent.detail = 2;
- newEvent.isTrusted = false;
- newEvent._simulated = true; // for debug purposes
- return newEvent;
- }
- var delay = 200;
- function addDoubleTapListener(obj, handler) {
- // Most browsers handle double tap natively
- obj.addEventListener('dblclick', handler);
- // On some platforms the browser doesn't fire native dblclicks for touch events.
- // It seems that in all such cases `detail` property of `click` event is always `1`.
- // So here we rely on that fact to avoid excessive 'dblclick' simulation when not needed.
- var last = 0,
- detail;
- function simDblclick(e) {
- if (e.detail !== 1) {
- detail = e.detail; // keep in sync to avoid false dblclick in some cases
- return;
- }
- if (e.pointerType === 'mouse' || e.sourceCapabilities && !e.sourceCapabilities.firesTouchEvents) {
- return;
- }
- // When clicking on an <input>, the browser generates a click on its
- // <label> (and vice versa) triggering two clicks in quick succession.
- // This ignores clicks on elements which are a label with a 'for'
- // attribute (or children of such a label), but not children of
- // a <input>.
- var path = getPropagationPath(e);
- if (path.some(function (el) {
- return el instanceof HTMLLabelElement && el.attributes.for;
- }) && !path.some(function (el) {
- return el instanceof HTMLInputElement || el instanceof HTMLSelectElement;
- })) {
- return;
- }
- var now = Date.now();
- if (now - last <= delay) {
- detail++;
- if (detail === 2) {
- handler(makeDblclick(e));
- }
- } else {
- detail = 1;
- }
- last = now;
- }
- obj.addEventListener('click', simDblclick);
- return {
- dblclick: handler,
- simDblclick: simDblclick
- };
- }
- function removeDoubleTapListener(obj, handlers) {
- obj.removeEventListener('dblclick', handlers.dblclick);
- obj.removeEventListener('click', handlers.simDblclick);
- }
- /*
- * @namespace DomUtil
- *
- * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)
- * tree, used by Leaflet internally.
- *
- * Most functions expecting or returning a `HTMLElement` also work for
- * SVG elements. The only difference is that classes refer to CSS classes
- * in HTML and SVG classes in SVG.
- */
- // @property TRANSFORM: String
- // Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit).
- var TRANSFORM = testProp(['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']);
- // webkitTransition comes first because some browser versions that drop vendor prefix don't do
- // the same for the transitionend event, in particular the Android 4.1 stock browser
- // @property TRANSITION: String
- // Vendor-prefixed transition style name.
- var TRANSITION = testProp(['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']);
- // @property TRANSITION_END: String
- // Vendor-prefixed transitionend event name.
- var TRANSITION_END = TRANSITION === 'webkitTransition' || TRANSITION === 'OTransition' ? TRANSITION + 'End' : 'transitionend';
- // @function get(id: String|HTMLElement): HTMLElement
- // Returns an element given its DOM id, or returns the element itself
- // if it was passed directly.
- function get(id) {
- return typeof id === 'string' ? document.getElementById(id) : id;
- }
- // @function getStyle(el: HTMLElement, styleAttrib: String): String
- // Returns the value for a certain style attribute on an element,
- // including computed values or values set through CSS.
- function getStyle(el, style) {
- var value = el.style[style] || el.currentStyle && el.currentStyle[style];
- if ((!value || value === 'auto') && document.defaultView) {
- var css = document.defaultView.getComputedStyle(el, null);
- value = css ? css[style] : null;
- }
- return value === 'auto' ? null : value;
- }
- // @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement
- // Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element.
- function create$1(tagName, className, container) {
- var el = document.createElement(tagName);
- el.className = className || '';
- if (container) {
- container.appendChild(el);
- }
- return el;
- }
- // @function remove(el: HTMLElement)
- // Removes `el` from its parent element
- function _remove(el) {
- var parent = el.parentNode;
- if (parent) {
- parent.removeChild(el);
- }
- }
- // @function empty(el: HTMLElement)
- // Removes all of `el`'s children elements from `el`
- function empty(el) {
- while (el.firstChild) {
- el.removeChild(el.firstChild);
- }
- }
- // @function toFront(el: HTMLElement)
- // Makes `el` the last child of its parent, so it renders in front of the other children.
- function toFront(el) {
- var parent = el.parentNode;
- if (parent && parent.lastChild !== el) {
- parent.appendChild(el);
- }
- }
- // @function toBack(el: HTMLElement)
- // Makes `el` the first child of its parent, so it renders behind the other children.
- function toBack(el) {
- var parent = el.parentNode;
- if (parent && parent.firstChild !== el) {
- parent.insertBefore(el, parent.firstChild);
- }
- }
- // @function hasClass(el: HTMLElement, name: String): Boolean
- // Returns `true` if the element's class attribute contains `name`.
- function hasClass(el, name) {
- if (el.classList !== undefined) {
- return el.classList.contains(name);
- }
- var className = getClass(el);
- return className.length > 0 && new RegExp('(^|\\s)' + name + '(\\s|$)').test(className);
- }
- // @function addClass(el: HTMLElement, name: String)
- // Adds `name` to the element's class attribute.
- function addClass(el, name) {
- if (el.classList !== undefined) {
- var classes = splitWords(name);
- for (var i = 0, len = classes.length; i < len; i++) {
- el.classList.add(classes[i]);
- }
- } else if (!hasClass(el, name)) {
- var className = getClass(el);
- setClass(el, (className ? className + ' ' : '') + name);
- }
- }
- // @function removeClass(el: HTMLElement, name: String)
- // Removes `name` from the element's class attribute.
- function removeClass(el, name) {
- if (el.classList !== undefined) {
- el.classList.remove(name);
- } else {
- setClass(el, trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' ')));
- }
- }
- // @function setClass(el: HTMLElement, name: String)
- // Sets the element's class.
- function setClass(el, name) {
- if (el.className.baseVal === undefined) {
- el.className = name;
- } else {
- // in case of SVG element
- el.className.baseVal = name;
- }
- }
- // @function getClass(el: HTMLElement): String
- // Returns the element's class.
- function getClass(el) {
- // Check if the element is an SVGElementInstance and use the correspondingElement instead
- // (Required for linked SVG elements in IE11.)
- if (el.correspondingElement) {
- el = el.correspondingElement;
- }
- return el.className.baseVal === undefined ? el.className : el.className.baseVal;
- }
- // @function setOpacity(el: HTMLElement, opacity: Number)
- // Set the opacity of an element (including old IE support).
- // `opacity` must be a number from `0` to `1`.
- function _setOpacity(el, value) {
- if ('opacity' in el.style) {
- el.style.opacity = value;
- } else if ('filter' in el.style) {
- _setOpacityIE(el, value);
- }
- }
- function _setOpacityIE(el, value) {
- var filter = false,
- filterName = 'DXImageTransform.Microsoft.Alpha';
- // filters collection throws an error if we try to retrieve a filter that doesn't exist
- try {
- filter = el.filters.item(filterName);
- } catch (e) {
- // don't set opacity to 1 if we haven't already set an opacity,
- // it isn't needed and breaks transparent pngs.
- if (value === 1) {
- return;
- }
- }
- value = Math.round(value * 100);
- if (filter) {
- filter.Enabled = value !== 100;
- filter.Opacity = value;
- } else {
- el.style.filter += ' progid:' + filterName + '(opacity=' + value + ')';
- }
- }
- // @function testProp(props: String[]): String|false
- // Goes through the array of style names and returns the first name
- // that is a valid style name for an element. If no such name is found,
- // it returns false. Useful for vendor-prefixed styles like `transform`.
- function testProp(props) {
- var style = document.documentElement.style;
- for (var i = 0; i < props.length; i++) {
- if (props[i] in style) {
- return props[i];
- }
- }
- return false;
- }
- // @function setTransform(el: HTMLElement, offset: Point, scale?: Number)
- // Resets the 3D CSS transform of `el` so it is translated by `offset` pixels
- // and optionally scaled by `scale`. Does not have an effect if the
- // browser doesn't support 3D CSS transforms.
- function setTransform(el, offset, scale) {
- var pos = offset || new Point(0, 0);
- el.style[TRANSFORM] = (Browser.ie3d ? 'translate(' + pos.x + 'px,' + pos.y + 'px)' : 'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)') + (scale ? ' scale(' + scale + ')' : '');
- }
- // @function setPosition(el: HTMLElement, position: Point)
- // Sets the position of `el` to coordinates specified by `position`,
- // using CSS translate or top/left positioning depending on the browser
- // (used by Leaflet internally to position its layers).
- function setPosition(el, point) {
- /*eslint-disable */
- el._leaflet_pos = point;
- /* eslint-enable */
- if (Browser.any3d) {
- setTransform(el, point);
- } else {
- el.style.left = point.x + 'px';
- el.style.top = point.y + 'px';
- }
- }
- // @function getPosition(el: HTMLElement): Point
- // Returns the coordinates of an element previously positioned with setPosition.
- function getPosition(el) {
- // this method is only used for elements previously positioned using setPosition,
- // so it's safe to cache the position for performance
- return el._leaflet_pos || new Point(0, 0);
- }
- // @function disableTextSelection()
- // Prevents the user from generating `selectstart` DOM events, usually generated
- // when the user drags the mouse through a page with text. Used internally
- // by Leaflet to override the behaviour of any click-and-drag interaction on
- // the map. Affects drag interactions on the whole document.
- // @function enableTextSelection()
- // Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection).
- var disableTextSelection;
- var enableTextSelection;
- var _userSelect;
- if ('onselectstart' in document) {
- disableTextSelection = function disableTextSelection() {
- on(window, 'selectstart', preventDefault);
- };
- enableTextSelection = function enableTextSelection() {
- off(window, 'selectstart', preventDefault);
- };
- } else {
- var userSelectProperty = testProp(['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']);
- disableTextSelection = function disableTextSelection() {
- if (userSelectProperty) {
- var style = document.documentElement.style;
- _userSelect = style[userSelectProperty];
- style[userSelectProperty] = 'none';
- }
- };
- enableTextSelection = function enableTextSelection() {
- if (userSelectProperty) {
- document.documentElement.style[userSelectProperty] = _userSelect;
- _userSelect = undefined;
- }
- };
- }
- // @function disableImageDrag()
- // As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but
- // for `dragstart` DOM events, usually generated when the user drags an image.
- function disableImageDrag() {
- on(window, 'dragstart', preventDefault);
- }
- // @function enableImageDrag()
- // Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection).
- function enableImageDrag() {
- off(window, 'dragstart', preventDefault);
- }
- var _outlineElement, _outlineStyle;
- // @function preventOutline(el: HTMLElement)
- // Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline)
- // of the element `el` invisible. Used internally by Leaflet to prevent
- // focusable elements from displaying an outline when the user performs a
- // drag interaction on them.
- function preventOutline(element) {
- while (element.tabIndex === -1) {
- element = element.parentNode;
- }
- if (!element.style) {
- return;
- }
- restoreOutline();
- _outlineElement = element;
- _outlineStyle = element.style.outline;
- element.style.outline = 'none';
- on(window, 'keydown', restoreOutline);
- }
- // @function restoreOutline()
- // Cancels the effects of a previous [`L.DomUtil.preventOutline`]().
- function restoreOutline() {
- if (!_outlineElement) {
- return;
- }
- _outlineElement.style.outline = _outlineStyle;
- _outlineElement = undefined;
- _outlineStyle = undefined;
- off(window, 'keydown', restoreOutline);
- }
- // @function getSizedParentNode(el: HTMLElement): HTMLElement
- // Finds the closest parent node which size (width and height) is not null.
- function getSizedParentNode(element) {
- do {
- element = element.parentNode;
- } while ((!element.offsetWidth || !element.offsetHeight) && element !== document.body);
- return element;
- }
- // @function getScale(el: HTMLElement): Object
- // Computes the CSS scale currently applied on the element.
- // Returns an object with `x` and `y` members as horizontal and vertical scales respectively,
- // and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect).
- function getScale(element) {
- var rect = element.getBoundingClientRect(); // Read-only in old browsers.
- return {
- x: rect.width / element.offsetWidth || 1,
- y: rect.height / element.offsetHeight || 1,
- boundingClientRect: rect
- };
- }
- var DomUtil = {
- __proto__: null,
- TRANSFORM: TRANSFORM,
- TRANSITION: TRANSITION,
- TRANSITION_END: TRANSITION_END,
- get: get,
- getStyle: getStyle,
- create: create$1,
- remove: _remove,
- empty: empty,
- toFront: toFront,
- toBack: toBack,
- hasClass: hasClass,
- addClass: addClass,
- removeClass: removeClass,
- setClass: setClass,
- getClass: getClass,
- setOpacity: _setOpacity,
- testProp: testProp,
- setTransform: setTransform,
- setPosition: setPosition,
- getPosition: getPosition,
- get disableTextSelection() {
- return disableTextSelection;
- },
- get enableTextSelection() {
- return enableTextSelection;
- },
- disableImageDrag: disableImageDrag,
- enableImageDrag: enableImageDrag,
- preventOutline: preventOutline,
- restoreOutline: restoreOutline,
- getSizedParentNode: getSizedParentNode,
- getScale: getScale
- };
- /*
- * @namespace DomEvent
- * Utility functions to work with the [DOM events](https://developer.mozilla.org/docs/Web/API/Event), used by Leaflet internally.
- */
- // Inspired by John Resig, Dean Edwards and YUI addEvent implementations.
- // @function on(el: HTMLElement, types: String, fn: Function, context?: Object): this
- // Adds a listener function (`fn`) to a particular DOM event type of the
- // element `el`. You can optionally specify the context of the listener
- // (object the `this` keyword will point to). You can also pass several
- // space-separated types (e.g. `'click dblclick'`).
- // @alternative
- // @function on(el: HTMLElement, eventMap: Object, context?: Object): this
- // Adds a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
- function on(obj, types, fn, context) {
- if (types && _typeof(types) === 'object') {
- for (var type in types) {
- addOne(obj, type, types[type], fn);
- }
- } else {
- types = splitWords(types);
- for (var i = 0, len = types.length; i < len; i++) {
- addOne(obj, types[i], fn, context);
- }
- }
- return this;
- }
- var eventsKey = '_leaflet_events';
- // @function off(el: HTMLElement, types: String, fn: Function, context?: Object): this
- // Removes a previously added listener function.
- // Note that if you passed a custom context to on, you must pass the same
- // context to `off` in order to remove the listener.
- // @alternative
- // @function off(el: HTMLElement, eventMap: Object, context?: Object): this
- // Removes a set of type/listener pairs, e.g. `{click: onClick, mousemove: onMouseMove}`
- // @alternative
- // @function off(el: HTMLElement, types: String): this
- // Removes all previously added listeners of given types.
- // @alternative
- // @function off(el: HTMLElement): this
- // Removes all previously added listeners from given HTMLElement
- function off(obj, types, fn, context) {
- if (arguments.length === 1) {
- batchRemove(obj);
- delete obj[eventsKey];
- } else if (types && _typeof(types) === 'object') {
- for (var type in types) {
- removeOne(obj, type, types[type], fn);
- }
- } else {
- types = splitWords(types);
- if (arguments.length === 2) {
- batchRemove(obj, function (type) {
- return indexOf(types, type) !== -1;
- });
- } else {
- for (var i = 0, len = types.length; i < len; i++) {
- removeOne(obj, types[i], fn, context);
- }
- }
- }
- return this;
- }
- function batchRemove(obj, filterFn) {
- for (var id in obj[eventsKey]) {
- var type = id.split(/\d/)[0];
- if (!filterFn || filterFn(type)) {
- removeOne(obj, type, null, null, id);
- }
- }
- }
- var mouseSubst = {
- mouseenter: 'mouseover',
- mouseleave: 'mouseout',
- wheel: !('onwheel' in window) && 'mousewheel'
- };
- function addOne(obj, type, fn, context) {
- var id = type + stamp(fn) + (context ? '_' + stamp(context) : '');
- if (obj[eventsKey] && obj[eventsKey][id]) {
- return this;
- }
- var handler = function handler(e) {
- return fn.call(context || obj, e || window.event);
- };
- var originalHandler = handler;
- if (!Browser.touchNative && Browser.pointer && type.indexOf('touch') === 0) {
- // Needs DomEvent.Pointer.js
- handler = addPointerListener(obj, type, handler);
- } else if (Browser.touch && type === 'dblclick') {
- handler = addDoubleTapListener(obj, handler);
- } else if ('addEventListener' in obj) {
- if (type === 'touchstart' || type === 'touchmove' || type === 'wheel' || type === 'mousewheel') {
- obj.addEventListener(mouseSubst[type] || type, handler, Browser.passiveEvents ? {
- passive: false
- } : false);
- } else if (type === 'mouseenter' || type === 'mouseleave') {
- handler = function handler(e) {
- e = e || window.event;
- if (isExternalTarget(obj, e)) {
- originalHandler(e);
- }
- };
- obj.addEventListener(mouseSubst[type], handler, false);
- } else {
- obj.addEventListener(type, originalHandler, false);
- }
- } else {
- obj.attachEvent('on' + type, handler);
- }
- obj[eventsKey] = obj[eventsKey] || {};
- obj[eventsKey][id] = handler;
- }
- function removeOne(obj, type, fn, context, id) {
- id = id || type + stamp(fn) + (context ? '_' + stamp(context) : '');
- var handler = obj[eventsKey] && obj[eventsKey][id];
- if (!handler) {
- return this;
- }
- if (!Browser.touchNative && Browser.pointer && type.indexOf('touch') === 0) {
- removePointerListener(obj, type, handler);
- } else if (Browser.touch && type === 'dblclick') {
- removeDoubleTapListener(obj, handler);
- } else if ('removeEventListener' in obj) {
- obj.removeEventListener(mouseSubst[type] || type, handler, false);
- } else {
- obj.detachEvent('on' + type, handler);
- }
- obj[eventsKey][id] = null;
- }
- // @function stopPropagation(ev: DOMEvent): this
- // Stop the given event from propagation to parent elements. Used inside the listener functions:
- // ```js
- // L.DomEvent.on(div, 'click', function (ev) {
- // L.DomEvent.stopPropagation(ev);
- // });
- // ```
- function stopPropagation(e) {
- if (e.stopPropagation) {
- e.stopPropagation();
- } else if (e.originalEvent) {
- // In case of Leaflet event.
- e.originalEvent._stopped = true;
- } else {
- e.cancelBubble = true;
- }
- return this;
- }
- // @function disableScrollPropagation(el: HTMLElement): this
- // Adds `stopPropagation` to the element's `'wheel'` events (plus browser variants).
- function disableScrollPropagation(el) {
- addOne(el, 'wheel', stopPropagation);
- return this;
- }
- // @function disableClickPropagation(el: HTMLElement): this
- // Adds `stopPropagation` to the element's `'click'`, `'dblclick'`, `'contextmenu'`,
- // `'mousedown'` and `'touchstart'` events (plus browser variants).
- function disableClickPropagation(el) {
- on(el, 'mousedown touchstart dblclick contextmenu', stopPropagation);
- el['_leaflet_disable_click'] = true;
- return this;
- }
- // @function preventDefault(ev: DOMEvent): this
- // Prevents the default action of the DOM Event `ev` from happening (such as
- // following a link in the href of the a element, or doing a POST request
- // with page reload when a `<form>` is submitted).
- // Use it inside listener functions.
- function preventDefault(e) {
- if (e.preventDefault) {
- e.preventDefault();
- } else {
- e.returnValue = false;
- }
- return this;
- }
- // @function stop(ev: DOMEvent): this
- // Does `stopPropagation` and `preventDefault` at the same time.
- function stop(e) {
- preventDefault(e);
- stopPropagation(e);
- return this;
- }
- // @function getPropagationPath(ev: DOMEvent): Array
- // Compatibility polyfill for [`Event.composedPath()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath).
- // Returns an array containing the `HTMLElement`s that the given DOM event
- // should propagate to (if not stopped).
- function getPropagationPath(ev) {
- if (ev.composedPath) {
- return ev.composedPath();
- }
- var path = [];
- var el = ev.target;
- while (el) {
- path.push(el);
- el = el.parentNode;
- }
- return path;
- }
- // @function getMousePosition(ev: DOMEvent, container?: HTMLElement): Point
- // Gets normalized mouse position from a DOM event relative to the
- // `container` (border excluded) or to the whole page if not specified.
- function getMousePosition(e, container) {
- if (!container) {
- return new Point(e.clientX, e.clientY);
- }
- var scale = getScale(container),
- offset = scale.boundingClientRect; // left and top values are in page scale (like the event clientX/Y)
- return new Point(
- // offset.left/top values are in page scale (like clientX/Y),
- // whereas clientLeft/Top (border width) values are the original values (before CSS scale applies).
- (e.clientX - offset.left) / scale.x - container.clientLeft, (e.clientY - offset.top) / scale.y - container.clientTop);
- }
- // except , Safari and
- // We need double the scroll pixels (see #7403 and #4538) for all Browsers
- // except OSX (Mac) -> 3x, Chrome running on Linux 1x
- var wheelPxFactor = Browser.linux && Browser.chrome ? window.devicePixelRatio : Browser.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
- // @function getWheelDelta(ev: DOMEvent): Number
- // Gets normalized wheel delta from a wheel DOM event, in vertical
- // pixels scrolled (negative if scrolling down).
- // Events from pointing devices without precise scrolling are mapped to
- // a best guess of 60 pixels.
- function getWheelDelta(e) {
- return Browser.edge ? e.wheelDeltaY / 2 :
- // Don't trust window-geometry-based delta
- e.deltaY && e.deltaMode === 0 ? -e.deltaY / wheelPxFactor :
- // Pixels
- e.deltaY && e.deltaMode === 1 ? -e.deltaY * 20 :
- // Lines
- e.deltaY && e.deltaMode === 2 ? -e.deltaY * 60 :
- // Pages
- e.deltaX || e.deltaZ ? 0 :
- // Skip horizontal/depth wheel events
- e.wheelDelta ? (e.wheelDeltaY || e.wheelDelta) / 2 :
- // Legacy IE pixels
- e.detail && Math.abs(e.detail) < 32765 ? -e.detail * 20 :
- // Legacy Moz lines
- e.detail ? e.detail / -32765 * 60 :
- // Legacy Moz pages
- 0;
- }
- // check if element really left/entered the event target (for mouseenter/mouseleave)
- function isExternalTarget(el, e) {
- var related = e.relatedTarget;
- if (!related) {
- return true;
- }
- try {
- while (related && related !== el) {
- related = related.parentNode;
- }
- } catch (err) {
- return false;
- }
- return related !== el;
- }
- var DomEvent = {
- __proto__: null,
- on: on,
- off: off,
- stopPropagation: stopPropagation,
- disableScrollPropagation: disableScrollPropagation,
- disableClickPropagation: disableClickPropagation,
- preventDefault: preventDefault,
- stop: stop,
- getPropagationPath: getPropagationPath,
- getMousePosition: getMousePosition,
- getWheelDelta: getWheelDelta,
- isExternalTarget: isExternalTarget,
- addListener: on,
- removeListener: off
- };
- /*
- * @class PosAnimation
- * @aka L.PosAnimation
- * @inherits Evented
- * Used internally for panning animations, utilizing CSS3 Transitions for modern browsers and a timer fallback for IE6-9.
- *
- * @example
- * ```js
- * var myPositionMarker = L.marker([48.864716, 2.294694]).addTo(map);
- *
- * myPositionMarker.on("click", function() {
- * var pos = map.latLngToLayerPoint(myPositionMarker.getLatLng());
- * pos.y -= 25;
- * var fx = new L.PosAnimation();
- *
- * fx.once('end',function() {
- * pos.y += 25;
- * fx.run(myPositionMarker._icon, pos, 0.8);
- * });
- *
- * fx.run(myPositionMarker._icon, pos, 0.3);
- * });
- *
- * ```
- *
- * @constructor L.PosAnimation()
- * Creates a `PosAnimation` object.
- *
- */
- var PosAnimation = Evented.extend({
- // @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
- // Run an animation of a given element to a new position, optionally setting
- // duration in seconds (`0.25` by default) and easing linearity factor (3rd
- // argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
- // `0.5` by default).
- run: function run(el, newPos, duration, easeLinearity) {
- this.stop();
- this._el = el;
- this._inProgress = true;
- this._duration = duration || 0.25;
- this._easeOutPower = 1 / Math.max(easeLinearity || 0.5, 0.2);
- this._startPos = getPosition(el);
- this._offset = newPos.subtract(this._startPos);
- this._startTime = +new Date();
- // @event start: Event
- // Fired when the animation starts
- this.fire('start');
- this._animate();
- },
- // @method stop()
- // Stops the animation (if currently running).
- stop: function stop() {
- if (!this._inProgress) {
- return;
- }
- this._step(true);
- this._complete();
- },
- _animate: function _animate() {
- // animation loop
- this._animId = requestAnimFrame(this._animate, this);
- this._step();
- },
- _step: function _step(round) {
- var elapsed = +new Date() - this._startTime,
- duration = this._duration * 1000;
- if (elapsed < duration) {
- this._runFrame(this._easeOut(elapsed / duration), round);
- } else {
- this._runFrame(1);
- this._complete();
- }
- },
- _runFrame: function _runFrame(progress, round) {
- var pos = this._startPos.add(this._offset.multiplyBy(progress));
- if (round) {
- pos._round();
- }
- setPosition(this._el, pos);
- // @event step: Event
- // Fired continuously during the animation.
- this.fire('step');
- },
- _complete: function _complete() {
- cancelAnimFrame(this._animId);
- this._inProgress = false;
- // @event end: Event
- // Fired when the animation ends.
- this.fire('end');
- },
- _easeOut: function _easeOut(t) {
- return 1 - Math.pow(1 - t, this._easeOutPower);
- }
- });
- /*
- * @class Map
- * @aka L.Map
- * @inherits Evented
- *
- * The central class of the API — it is used to create a map on a page and manipulate it.
- *
- * @example
- *
- * ```js
- * // initialize the map on the "map" div with a given center and zoom
- * var map = L.map('map', {
- * center: [51.505, -0.09],
- * zoom: 13
- * });
- * ```
- *
- */
- var Map = Evented.extend({
- options: {
- // @section Map State Options
- // @option crs: CRS = L.CRS.EPSG3857
- // The [Coordinate Reference System](#crs) to use. Don't change this if you're not
- // sure what it means.
- crs: EPSG3857,
- // @option center: LatLng = undefined
- // Initial geographic center of the map
- center: undefined,
- // @option zoom: Number = undefined
- // Initial map zoom level
- zoom: undefined,
- // @option minZoom: Number = *
- // Minimum zoom level of the map.
- // If not specified and at least one `GridLayer` or `TileLayer` is in the map,
- // the lowest of their `minZoom` options will be used instead.
- minZoom: undefined,
- // @option maxZoom: Number = *
- // Maximum zoom level of the map.
- // If not specified and at least one `GridLayer` or `TileLayer` is in the map,
- // the highest of their `maxZoom` options will be used instead.
- maxZoom: undefined,
- // @option layers: Layer[] = []
- // Array of layers that will be added to the map initially
- layers: [],
- // @option maxBounds: LatLngBounds = null
- // When this option is set, the map restricts the view to the given
- // geographical bounds, bouncing the user back if the user tries to pan
- // outside the view. To set the restriction dynamically, use
- // [`setMaxBounds`](#map-setmaxbounds) method.
- maxBounds: undefined,
- // @option renderer: Renderer = *
- // The default method for drawing vector layers on the map. `L.SVG`
- // or `L.Canvas` by default depending on browser support.
- renderer: undefined,
- // @section Animation Options
- // @option zoomAnimation: Boolean = true
- // Whether the map zoom animation is enabled. By default it's enabled
- // in all browsers that support CSS3 Transitions except Android.
- zoomAnimation: true,
- // @option zoomAnimationThreshold: Number = 4
- // Won't animate zoom if the zoom difference exceeds this value.
- zoomAnimationThreshold: 4,
- // @option fadeAnimation: Boolean = true
- // Whether the tile fade animation is enabled. By default it's enabled
- // in all browsers that support CSS3 Transitions except Android.
- fadeAnimation: true,
- // @option markerZoomAnimation: Boolean = true
- // Whether markers animate their zoom with the zoom animation, if disabled
- // they will disappear for the length of the animation. By default it's
- // enabled in all browsers that support CSS3 Transitions except Android.
- markerZoomAnimation: true,
- // @option transform3DLimit: Number = 2^23
- // Defines the maximum size of a CSS translation transform. The default
- // value should not be changed unless a web browser positions layers in
- // the wrong place after doing a large `panBy`.
- transform3DLimit: 8388608,
- // Precision limit of a 32-bit float
- // @section Interaction Options
- // @option zoomSnap: Number = 1
- // Forces the map's zoom level to always be a multiple of this, particularly
- // right after a [`fitBounds()`](#map-fitbounds) or a pinch-zoom.
- // By default, the zoom level snaps to the nearest integer; lower values
- // (e.g. `0.5` or `0.1`) allow for greater granularity. A value of `0`
- // means the zoom level will not be snapped after `fitBounds` or a pinch-zoom.
- zoomSnap: 1,
- // @option zoomDelta: Number = 1
- // Controls how much the map's zoom level will change after a
- // [`zoomIn()`](#map-zoomin), [`zoomOut()`](#map-zoomout), pressing `+`
- // or `-` on the keyboard, or using the [zoom controls](#control-zoom).
- // Values smaller than `1` (e.g. `0.5`) allow for greater granularity.
- zoomDelta: 1,
- // @option trackResize: Boolean = true
- // Whether the map automatically handles browser window resize to update itself.
- trackResize: true
- },
- initialize: function initialize(id, options) {
- // (HTMLElement or String, Object)
- options = setOptions(this, options);
- // Make sure to assign internal flags at the beginning,
- // to avoid inconsistent state in some edge cases.
- this._handlers = [];
- this._layers = {};
- this._zoomBoundLayers = {};
- this._sizeChanged = true;
- this._initContainer(id);
- this._initLayout();
- // hack for https://github.com/Leaflet/Leaflet/issues/1980
- this._onResize = bind(this._onResize, this);
- this._initEvents();
- if (options.maxBounds) {
- this.setMaxBounds(options.maxBounds);
- }
- if (options.zoom !== undefined) {
- this._zoom = this._limitZoom(options.zoom);
- }
- if (options.center && options.zoom !== undefined) {
- this.setView(toLatLng(options.center), options.zoom, {
- reset: true
- });
- }
- this.callInitHooks();
- // don't animate on browsers without hardware-accelerated transitions or old Android/Opera
- this._zoomAnimated = TRANSITION && Browser.any3d && !Browser.mobileOpera && this.options.zoomAnimation;
- // zoom transitions run with the same duration for all layers, so if one of transitionend events
- // happens after starting zoom animation (propagating to the map pane), we know that it ended globally
- if (this._zoomAnimated) {
- this._createAnimProxy();
- on(this._proxy, TRANSITION_END, this._catchTransitionEnd, this);
- }
- this._addLayers(this.options.layers);
- },
- // @section Methods for modifying map state
- // @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
- // Sets the view of the map (geographical center and zoom) with the given
- // animation options.
- setView: function setView(center, zoom, options) {
- zoom = zoom === undefined ? this._zoom : this._limitZoom(zoom);
- center = this._limitCenter(toLatLng(center), zoom, this.options.maxBounds);
- options = options || {};
- this._stop();
- if (this._loaded && !options.reset && options !== true) {
- if (options.animate !== undefined) {
- options.zoom = extend({
- animate: options.animate
- }, options.zoom);
- options.pan = extend({
- animate: options.animate,
- duration: options.duration
- }, options.pan);
- }
- // try animating pan or zoom
- var moved = this._zoom !== zoom ? this._tryAnimatedZoom && this._tryAnimatedZoom(center, zoom, options.zoom) : this._tryAnimatedPan(center, options.pan);
- if (moved) {
- // prevent resize handler call, the view will refresh after animation anyway
- clearTimeout(this._sizeTimer);
- return this;
- }
- }
- // animation didn't start, just reset the map view
- this._resetView(center, zoom, options.pan && options.pan.noMoveStart);
- return this;
- },
- // @method setZoom(zoom: Number, options?: Zoom/pan options): this
- // Sets the zoom of the map.
- setZoom: function setZoom(zoom, options) {
- if (!this._loaded) {
- this._zoom = zoom;
- return this;
- }
- return this.setView(this.getCenter(), zoom, {
- zoom: options
- });
- },
- // @method zoomIn(delta?: Number, options?: Zoom options): this
- // Increases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
- zoomIn: function zoomIn(delta, options) {
- delta = delta || (Browser.any3d ? this.options.zoomDelta : 1);
- return this.setZoom(this._zoom + delta, options);
- },
- // @method zoomOut(delta?: Number, options?: Zoom options): this
- // Decreases the zoom of the map by `delta` ([`zoomDelta`](#map-zoomdelta) by default).
- zoomOut: function zoomOut(delta, options) {
- delta = delta || (Browser.any3d ? this.options.zoomDelta : 1);
- return this.setZoom(this._zoom - delta, options);
- },
- // @method setZoomAround(latlng: LatLng, zoom: Number, options: Zoom options): this
- // Zooms the map while keeping a specified geographical point on the map
- // stationary (e.g. used internally for scroll zoom and double-click zoom).
- // @alternative
- // @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
- // Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
- setZoomAround: function setZoomAround(latlng, zoom, options) {
- var scale = this.getZoomScale(zoom),
- viewHalf = this.getSize().divideBy(2),
- containerPoint = latlng instanceof Point ? latlng : this.latLngToContainerPoint(latlng),
- centerOffset = containerPoint.subtract(viewHalf).multiplyBy(1 - 1 / scale),
- newCenter = this.containerPointToLatLng(viewHalf.add(centerOffset));
- return this.setView(newCenter, zoom, {
- zoom: options
- });
- },
- _getBoundsCenterZoom: function _getBoundsCenterZoom(bounds, options) {
- options = options || {};
- bounds = bounds.getBounds ? bounds.getBounds() : toLatLngBounds(bounds);
- var paddingTL = toPoint(options.paddingTopLeft || options.padding || [0, 0]),
- paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]),
- zoom = this.getBoundsZoom(bounds, false, paddingTL.add(paddingBR));
- zoom = typeof options.maxZoom === 'number' ? Math.min(options.maxZoom, zoom) : zoom;
- if (zoom === Infinity) {
- return {
- center: bounds.getCenter(),
- zoom: zoom
- };
- }
- var paddingOffset = paddingBR.subtract(paddingTL).divideBy(2),
- swPoint = this.project(bounds.getSouthWest(), zoom),
- nePoint = this.project(bounds.getNorthEast(), zoom),
- center = this.unproject(swPoint.add(nePoint).divideBy(2).add(paddingOffset), zoom);
- return {
- center: center,
- zoom: zoom
- };
- },
- // @method fitBounds(bounds: LatLngBounds, options?: fitBounds options): this
- // Sets a map view that contains the given geographical bounds with the
- // maximum zoom level possible.
- fitBounds: function fitBounds(bounds, options) {
- bounds = toLatLngBounds(bounds);
- if (!bounds.isValid()) {
- throw new Error('Bounds are not valid.');
- }
- var target = this._getBoundsCenterZoom(bounds, options);
- return this.setView(target.center, target.zoom, options);
- },
- // @method fitWorld(options?: fitBounds options): this
- // Sets a map view that mostly contains the whole world with the maximum
- // zoom level possible.
- fitWorld: function fitWorld(options) {
- return this.fitBounds([[-90, -180], [90, 180]], options);
- },
- // @method panTo(latlng: LatLng, options?: Pan options): this
- // Pans the map to a given center.
- panTo: function panTo(center, options) {
- // (LatLng)
- return this.setView(center, this._zoom, {
- pan: options
- });
- },
- // @method panBy(offset: Point, options?: Pan options): this
- // Pans the map by a given number of pixels (animated).
- panBy: function panBy(offset, options) {
- offset = toPoint(offset).round();
- options = options || {};
- if (!offset.x && !offset.y) {
- return this.fire('moveend');
- }
- // If we pan too far, Chrome gets issues with tiles
- // and makes them disappear or appear in the wrong place (slightly offset) #2602
- if (options.animate !== true && !this.getSize().contains(offset)) {
- this._resetView(this.unproject(this.project(this.getCenter()).add(offset)), this.getZoom());
- return this;
- }
- if (!this._panAnim) {
- this._panAnim = new PosAnimation();
- this._panAnim.on({
- 'step': this._onPanTransitionStep,
- 'end': this._onPanTransitionEnd
- }, this);
- }
- // don't fire movestart if animating inertia
- if (!options.noMoveStart) {
- this.fire('movestart');
- }
- // animate pan unless animate: false specified
- if (options.animate !== false) {
- addClass(this._mapPane, 'leaflet-pan-anim');
- var newPos = this._getMapPanePos().subtract(offset).round();
- this._panAnim.run(this._mapPane, newPos, options.duration || 0.25, options.easeLinearity);
- } else {
- this._rawPanBy(offset);
- this.fire('move').fire('moveend');
- }
- return this;
- },
- // @method flyTo(latlng: LatLng, zoom?: Number, options?: Zoom/pan options): this
- // Sets the view of the map (geographical center and zoom) performing a smooth
- // pan-zoom animation.
- flyTo: function flyTo(targetCenter, targetZoom, options) {
- options = options || {};
- if (options.animate === false || !Browser.any3d) {
- return this.setView(targetCenter, targetZoom, options);
- }
- this._stop();
- var from = this.project(this.getCenter()),
- to = this.project(targetCenter),
- size = this.getSize(),
- startZoom = this._zoom;
- targetCenter = toLatLng(targetCenter);
- targetZoom = targetZoom === undefined ? startZoom : targetZoom;
- var w0 = Math.max(size.x, size.y),
- w1 = w0 * this.getZoomScale(startZoom, targetZoom),
- u1 = to.distanceTo(from) || 1,
- rho = 1.42,
- rho2 = rho * rho;
- function r(i) {
- var s1 = i ? -1 : 1,
- s2 = i ? w1 : w0,
- t1 = w1 * w1 - w0 * w0 + s1 * rho2 * rho2 * u1 * u1,
- b1 = 2 * s2 * rho2 * u1,
- b = t1 / b1,
- sq = Math.sqrt(b * b + 1) - b;
- // workaround for floating point precision bug when sq = 0, log = -Infinite,
- // thus triggering an infinite loop in flyTo
- var log = sq < 0.000000001 ? -18 : Math.log(sq);
- return log;
- }
- function sinh(n) {
- return (Math.exp(n) - Math.exp(-n)) / 2;
- }
- function cosh(n) {
- return (Math.exp(n) + Math.exp(-n)) / 2;
- }
- function tanh(n) {
- return sinh(n) / cosh(n);
- }
- var r0 = r(0);
- function w(s) {
- return w0 * (cosh(r0) / cosh(r0 + rho * s));
- }
- function u(s) {
- return w0 * (cosh(r0) * tanh(r0 + rho * s) - sinh(r0)) / rho2;
- }
- function easeOut(t) {
- return 1 - Math.pow(1 - t, 1.5);
- }
- var start = Date.now(),
- S = (r(1) - r0) / rho,
- duration = options.duration ? 1000 * options.duration : 1000 * S * 0.8;
- function frame() {
- var t = (Date.now() - start) / duration,
- s = easeOut(t) * S;
- if (t <= 1) {
- this._flyToFrame = requestAnimFrame(frame, this);
- this._move(this.unproject(from.add(to.subtract(from).multiplyBy(u(s) / u1)), startZoom), this.getScaleZoom(w0 / w(s), startZoom), {
- flyTo: true
- });
- } else {
- this._move(targetCenter, targetZoom)._moveEnd(true);
- }
- }
- this._moveStart(true, options.noMoveStart);
- frame.call(this);
- return this;
- },
- // @method flyToBounds(bounds: LatLngBounds, options?: fitBounds options): this
- // Sets the view of the map with a smooth animation like [`flyTo`](#map-flyto),
- // but takes a bounds parameter like [`fitBounds`](#map-fitbounds).
- flyToBounds: function flyToBounds(bounds, options) {
- var target = this._getBoundsCenterZoom(bounds, options);
- return this.flyTo(target.center, target.zoom, options);
- },
- // @method setMaxBounds(bounds: LatLngBounds): this
- // Restricts the map view to the given bounds (see the [maxBounds](#map-maxbounds) option).
- setMaxBounds: function setMaxBounds(bounds) {
- bounds = toLatLngBounds(bounds);
- if (this.listens('moveend', this._panInsideMaxBounds)) {
- this.off('moveend', this._panInsideMaxBounds);
- }
- if (!bounds.isValid()) {
- this.options.maxBounds = null;
- return this;
- }
- this.options.maxBounds = bounds;
- if (this._loaded) {
- this._panInsideMaxBounds();
- }
- return this.on('moveend', this._panInsideMaxBounds);
- },
- // @method setMinZoom(zoom: Number): this
- // Sets the lower limit for the available zoom levels (see the [minZoom](#map-minzoom) option).
- setMinZoom: function setMinZoom(zoom) {
- var oldZoom = this.options.minZoom;
- this.options.minZoom = zoom;
- if (this._loaded && oldZoom !== zoom) {
- this.fire('zoomlevelschange');
- if (this.getZoom() < this.options.minZoom) {
- return this.setZoom(zoom);
- }
- }
- return this;
- },
- // @method setMaxZoom(zoom: Number): this
- // Sets the upper limit for the available zoom levels (see the [maxZoom](#map-maxzoom) option).
- setMaxZoom: function setMaxZoom(zoom) {
- var oldZoom = this.options.maxZoom;
- this.options.maxZoom = zoom;
- if (this._loaded && oldZoom !== zoom) {
- this.fire('zoomlevelschange');
- if (this.getZoom() > this.options.maxZoom) {
- return this.setZoom(zoom);
- }
- }
- return this;
- },
- // @method panInsideBounds(bounds: LatLngBounds, options?: Pan options): this
- // Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the options specific, if any.
- panInsideBounds: function panInsideBounds(bounds, options) {
- this._enforcingBounds = true;
- var center = this.getCenter(),
- newCenter = this._limitCenter(center, this._zoom, toLatLngBounds(bounds));
- if (!center.equals(newCenter)) {
- this.panTo(newCenter, options);
- }
- this._enforcingBounds = false;
- return this;
- },
- // @method panInside(latlng: LatLng, options?: padding options): this
- // Pans the map the minimum amount to make the `latlng` visible. Use
- // padding options to fit the display to more restricted bounds.
- // If `latlng` is already within the (optionally padded) display bounds,
- // the map will not be panned.
- panInside: function panInside(latlng, options) {
- options = options || {};
- var paddingTL = toPoint(options.paddingTopLeft || options.padding || [0, 0]),
- paddingBR = toPoint(options.paddingBottomRight || options.padding || [0, 0]),
- pixelCenter = this.project(this.getCenter()),
- pixelPoint = this.project(latlng),
- pixelBounds = this.getPixelBounds(),
- paddedBounds = toBounds([pixelBounds.min.add(paddingTL), pixelBounds.max.subtract(paddingBR)]),
- paddedSize = paddedBounds.getSize();
- if (!paddedBounds.contains(pixelPoint)) {
- this._enforcingBounds = true;
- var centerOffset = pixelPoint.subtract(paddedBounds.getCenter());
- var offset = paddedBounds.extend(pixelPoint).getSize().subtract(paddedSize);
- pixelCenter.x += centerOffset.x < 0 ? -offset.x : offset.x;
- pixelCenter.y += centerOffset.y < 0 ? -offset.y : offset.y;
- this.panTo(this.unproject(pixelCenter), options);
- this._enforcingBounds = false;
- }
- return this;
- },
- // @method invalidateSize(options: Zoom/pan options): this
- // Checks if the map container size changed and updates the map if so —
- // call it after you've changed the map size dynamically, also animating
- // pan by default. If `options.pan` is `false`, panning will not occur.
- // If `options.debounceMoveend` is `true`, it will delay `moveend` event so
- // that it doesn't happen often even if the method is called many
- // times in a row.
- // @alternative
- // @method invalidateSize(animate: Boolean): this
- // Checks if the map container size changed and updates the map if so —
- // call it after you've changed the map size dynamically, also animating
- // pan by default.
- invalidateSize: function invalidateSize(options) {
- if (!this._loaded) {
- return this;
- }
- options = extend({
- animate: false,
- pan: true
- }, options === true ? {
- animate: true
- } : options);
- var oldSize = this.getSize();
- this._sizeChanged = true;
- this._lastCenter = null;
- var newSize = this.getSize(),
- oldCenter = oldSize.divideBy(2).round(),
- newCenter = newSize.divideBy(2).round(),
- offset = oldCenter.subtract(newCenter);
- if (!offset.x && !offset.y) {
- return this;
- }
- if (options.animate && options.pan) {
- this.panBy(offset);
- } else {
- if (options.pan) {
- this._rawPanBy(offset);
- }
- this.fire('move');
- if (options.debounceMoveend) {
- clearTimeout(this._sizeTimer);
- this._sizeTimer = setTimeout(bind(this.fire, this, 'moveend'), 200);
- } else {
- this.fire('moveend');
- }
- }
- // @section Map state change events
- // @event resize: ResizeEvent
- // Fired when the map is resized.
- return this.fire('resize', {
- oldSize: oldSize,
- newSize: newSize
- });
- },
- // @section Methods for modifying map state
- // @method stop(): this
- // Stops the currently running `panTo` or `flyTo` animation, if any.
- stop: function stop() {
- this.setZoom(this._limitZoom(this._zoom));
- if (!this.options.zoomSnap) {
- this.fire('viewreset');
- }
- return this._stop();
- },
- // @section Geolocation methods
- // @method locate(options?: Locate options): this
- // Tries to locate the user using the Geolocation API, firing a [`locationfound`](#map-locationfound)
- // event with location data on success or a [`locationerror`](#map-locationerror) event on failure,
- // and optionally sets the map view to the user's location with respect to
- // detection accuracy (or to the world view if geolocation failed).
- // Note that, if your page doesn't use HTTPS, this method will fail in
- // modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
- // See `Locate options` for more details.
- locate: function locate(options) {
- options = this._locateOptions = extend({
- timeout: 10000,
- watch: false
- // setView: false
- // maxZoom: <Number>
- // maximumAge: 0
- // enableHighAccuracy: false
- }, options);
- if (!('geolocation' in navigator)) {
- this._handleGeolocationError({
- code: 0,
- message: 'Geolocation not supported.'
- });
- return this;
- }
- var onResponse = bind(this._handleGeolocationResponse, this),
- onError = bind(this._handleGeolocationError, this);
- if (options.watch) {
- this._locationWatchId = navigator.geolocation.watchPosition(onResponse, onError, options);
- } else {
- navigator.geolocation.getCurrentPosition(onResponse, onError, options);
- }
- return this;
- },
- // @method stopLocate(): this
- // Stops watching location previously initiated by `map.locate({watch: true})`
- // and aborts resetting the map view if map.locate was called with
- // `{setView: true}`.
- stopLocate: function stopLocate() {
- if (navigator.geolocation && navigator.geolocation.clearWatch) {
- navigator.geolocation.clearWatch(this._locationWatchId);
- }
- if (this._locateOptions) {
- this._locateOptions.setView = false;
- }
- return this;
- },
- _handleGeolocationError: function _handleGeolocationError(error) {
- if (!this._container._leaflet_id) {
- return;
- }
- var c = error.code,
- message = error.message || (c === 1 ? 'permission denied' : c === 2 ? 'position unavailable' : 'timeout');
- if (this._locateOptions.setView && !this._loaded) {
- this.fitWorld();
- }
- // @section Location events
- // @event locationerror: ErrorEvent
- // Fired when geolocation (using the [`locate`](#map-locate) method) failed.
- this.fire('locationerror', {
- code: c,
- message: 'Geolocation error: ' + message + '.'
- });
- },
- _handleGeolocationResponse: function _handleGeolocationResponse(pos) {
- if (!this._container._leaflet_id) {
- return;
- }
- var lat = pos.coords.latitude,
- lng = pos.coords.longitude,
- latlng = new LatLng(lat, lng),
- bounds = latlng.toBounds(pos.coords.accuracy * 2),
- options = this._locateOptions;
- if (options.setView) {
- var zoom = this.getBoundsZoom(bounds);
- this.setView(latlng, options.maxZoom ? Math.min(zoom, options.maxZoom) : zoom);
- }
- var data = {
- latlng: latlng,
- bounds: bounds,
- timestamp: pos.timestamp
- };
- for (var i in pos.coords) {
- if (typeof pos.coords[i] === 'number') {
- data[i] = pos.coords[i];
- }
- }
- // @event locationfound: LocationEvent
- // Fired when geolocation (using the [`locate`](#map-locate) method)
- // went successfully.
- this.fire('locationfound', data);
- },
- // TODO Appropriate docs section?
- // @section Other Methods
- // @method addHandler(name: String, HandlerClass: Function): this
- // Adds a new `Handler` to the map, given its name and constructor function.
- addHandler: function addHandler(name, HandlerClass) {
- if (!HandlerClass) {
- return this;
- }
- var handler = this[name] = new HandlerClass(this);
- this._handlers.push(handler);
- if (this.options[name]) {
- handler.enable();
- }
- return this;
- },
- // @method remove(): this
- // Destroys the map and clears all related event listeners.
- remove: function remove() {
- this._initEvents(true);
- if (this.options.maxBounds) {
- this.off('moveend', this._panInsideMaxBounds);
- }
- if (this._containerId !== this._container._leaflet_id) {
- throw new Error('Map container is being reused by another instance');
- }
- try {
- // throws error in IE6-8
- delete this._container._leaflet_id;
- delete this._containerId;
- } catch (e) {
- /*eslint-disable */
- this._container._leaflet_id = undefined;
- /* eslint-enable */
- this._containerId = undefined;
- }
- if (this._locationWatchId !== undefined) {
- this.stopLocate();
- }
- this._stop();
- _remove(this._mapPane);
- if (this._clearControlPos) {
- this._clearControlPos();
- }
- if (this._resizeRequest) {
- cancelAnimFrame(this._resizeRequest);
- this._resizeRequest = null;
- }
- this._clearHandlers();
- if (this._loaded) {
- // @section Map state change events
- // @event unload: Event
- // Fired when the map is destroyed with [remove](#map-remove) method.
- this.fire('unload');
- }
- var i;
- for (i in this._layers) {
- this._layers[i].remove();
- }
- for (i in this._panes) {
- _remove(this._panes[i]);
- }
- this._layers = [];
- this._panes = [];
- delete this._mapPane;
- delete this._renderer;
- return this;
- },
- // @section Other Methods
- // @method createPane(name: String, container?: HTMLElement): HTMLElement
- // Creates a new [map pane](#map-pane) with the given name if it doesn't exist already,
- // then returns it. The pane is created as a child of `container`, or
- // as a child of the main map pane if not set.
- createPane: function createPane(name, container) {
- var className = 'leaflet-pane' + (name ? ' leaflet-' + name.replace('Pane', '') + '-pane' : ''),
- pane = create$1('div', className, container || this._mapPane);
- if (name) {
- this._panes[name] = pane;
- }
- return pane;
- },
- // @section Methods for Getting Map State
- // @method getCenter(): LatLng
- // Returns the geographical center of the map view
- getCenter: function getCenter() {
- this._checkIfLoaded();
- if (this._lastCenter && !this._moved()) {
- return this._lastCenter.clone();
- }
- return this.layerPointToLatLng(this._getCenterLayerPoint());
- },
- // @method getZoom(): Number
- // Returns the current zoom level of the map view
- getZoom: function getZoom() {
- return this._zoom;
- },
- // @method getBounds(): LatLngBounds
- // Returns the geographical bounds visible in the current map view
- getBounds: function getBounds() {
- var bounds = this.getPixelBounds(),
- sw = this.unproject(bounds.getBottomLeft()),
- ne = this.unproject(bounds.getTopRight());
- return new LatLngBounds(sw, ne);
- },
- // @method getMinZoom(): Number
- // Returns the minimum zoom level of the map (if set in the `minZoom` option of the map or of any layers), or `0` by default.
- getMinZoom: function getMinZoom() {
- return this.options.minZoom === undefined ? this._layersMinZoom || 0 : this.options.minZoom;
- },
- // @method getMaxZoom(): Number
- // Returns the maximum zoom level of the map (if set in the `maxZoom` option of the map or of any layers).
- getMaxZoom: function getMaxZoom() {
- return this.options.maxZoom === undefined ? this._layersMaxZoom === undefined ? Infinity : this._layersMaxZoom : this.options.maxZoom;
- },
- // @method getBoundsZoom(bounds: LatLngBounds, inside?: Boolean, padding?: Point): Number
- // Returns the maximum zoom level on which the given bounds fit to the map
- // view in its entirety. If `inside` (optional) is set to `true`, the method
- // instead returns the minimum zoom level on which the map view fits into
- // the given bounds in its entirety.
- getBoundsZoom: function getBoundsZoom(bounds, inside, padding) {
- // (LatLngBounds[, Boolean, Point]) -> Number
- bounds = toLatLngBounds(bounds);
- padding = toPoint(padding || [0, 0]);
- var zoom = this.getZoom() || 0,
- min = this.getMinZoom(),
- max = this.getMaxZoom(),
- nw = bounds.getNorthWest(),
- se = bounds.getSouthEast(),
- size = this.getSize().subtract(padding),
- boundsSize = toBounds(this.project(se, zoom), this.project(nw, zoom)).getSize(),
- snap = Browser.any3d ? this.options.zoomSnap : 1,
- scalex = size.x / boundsSize.x,
- scaley = size.y / boundsSize.y,
- scale = inside ? Math.max(scalex, scaley) : Math.min(scalex, scaley);
- zoom = this.getScaleZoom(scale, zoom);
- if (snap) {
- zoom = Math.round(zoom / (snap / 100)) * (snap / 100); // don't jump if within 1% of a snap level
- zoom = inside ? Math.ceil(zoom / snap) * snap : Math.floor(zoom / snap) * snap;
- }
- return Math.max(min, Math.min(max, zoom));
- },
- // @method getSize(): Point
- // Returns the current size of the map container (in pixels).
- getSize: function getSize() {
- if (!this._size || this._sizeChanged) {
- this._size = new Point(this._container.clientWidth || 0, this._container.clientHeight || 0);
- this._sizeChanged = false;
- }
- return this._size.clone();
- },
- // @method getPixelBounds(): Bounds
- // Returns the bounds of the current map view in projected pixel
- // coordinates (sometimes useful in layer and overlay implementations).
- getPixelBounds: function getPixelBounds(center, zoom) {
- var topLeftPoint = this._getTopLeftPoint(center, zoom);
- return new Bounds(topLeftPoint, topLeftPoint.add(this.getSize()));
- },
- // TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
- // the map pane? "left point of the map layer" can be confusing, specially
- // since there can be negative offsets.
- // @method getPixelOrigin(): Point
- // Returns the projected pixel coordinates of the top left point of
- // the map layer (useful in custom layer and overlay implementations).
- getPixelOrigin: function getPixelOrigin() {
- this._checkIfLoaded();
- return this._pixelOrigin;
- },
- // @method getPixelWorldBounds(zoom?: Number): Bounds
- // Returns the world's bounds in pixel coordinates for zoom level `zoom`.
- // If `zoom` is omitted, the map's current zoom level is used.
- getPixelWorldBounds: function getPixelWorldBounds(zoom) {
- return this.options.crs.getProjectedBounds(zoom === undefined ? this.getZoom() : zoom);
- },
- // @section Other Methods
- // @method getPane(pane: String|HTMLElement): HTMLElement
- // Returns a [map pane](#map-pane), given its name or its HTML element (its identity).
- getPane: function getPane(pane) {
- return typeof pane === 'string' ? this._panes[pane] : pane;
- },
- // @method getPanes(): Object
- // Returns a plain object containing the names of all [panes](#map-pane) as keys and
- // the panes as values.
- getPanes: function getPanes() {
- return this._panes;
- },
- // @method getContainer: HTMLElement
- // Returns the HTML element that contains the map.
- getContainer: function getContainer() {
- return this._container;
- },
- // @section Conversion Methods
- // @method getZoomScale(toZoom: Number, fromZoom: Number): Number
- // Returns the scale factor to be applied to a map transition from zoom level
- // `fromZoom` to `toZoom`. Used internally to help with zoom animations.
- getZoomScale: function getZoomScale(toZoom, fromZoom) {
- // TODO replace with universal implementation after refactoring projections
- var crs = this.options.crs;
- fromZoom = fromZoom === undefined ? this._zoom : fromZoom;
- return crs.scale(toZoom) / crs.scale(fromZoom);
- },
- // @method getScaleZoom(scale: Number, fromZoom: Number): Number
- // Returns the zoom level that the map would end up at, if it is at `fromZoom`
- // level and everything is scaled by a factor of `scale`. Inverse of
- // [`getZoomScale`](#map-getZoomScale).
- getScaleZoom: function getScaleZoom(scale, fromZoom) {
- var crs = this.options.crs;
- fromZoom = fromZoom === undefined ? this._zoom : fromZoom;
- var zoom = crs.zoom(scale * crs.scale(fromZoom));
- return isNaN(zoom) ? Infinity : zoom;
- },
- // @method project(latlng: LatLng, zoom: Number): Point
- // Projects a geographical coordinate `LatLng` according to the projection
- // of the map's CRS, then scales it according to `zoom` and the CRS's
- // `Transformation`. The result is pixel coordinate relative to
- // the CRS origin.
- project: function project(latlng, zoom) {
- zoom = zoom === undefined ? this._zoom : zoom;
- return this.options.crs.latLngToPoint(toLatLng(latlng), zoom);
- },
- // @method unproject(point: Point, zoom: Number): LatLng
- // Inverse of [`project`](#map-project).
- unproject: function unproject(point, zoom) {
- zoom = zoom === undefined ? this._zoom : zoom;
- return this.options.crs.pointToLatLng(toPoint(point), zoom);
- },
- // @method layerPointToLatLng(point: Point): LatLng
- // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
- // returns the corresponding geographical coordinate (for the current zoom level).
- layerPointToLatLng: function layerPointToLatLng(point) {
- var projectedPoint = toPoint(point).add(this.getPixelOrigin());
- return this.unproject(projectedPoint);
- },
- // @method latLngToLayerPoint(latlng: LatLng): Point
- // Given a geographical coordinate, returns the corresponding pixel coordinate
- // relative to the [origin pixel](#map-getpixelorigin).
- latLngToLayerPoint: function latLngToLayerPoint(latlng) {
- var projectedPoint = this.project(toLatLng(latlng))._round();
- return projectedPoint._subtract(this.getPixelOrigin());
- },
- // @method wrapLatLng(latlng: LatLng): LatLng
- // Returns a `LatLng` where `lat` and `lng` has been wrapped according to the
- // map's CRS's `wrapLat` and `wrapLng` properties, if they are outside the
- // CRS's bounds.
- // By default this means longitude is wrapped around the dateline so its
- // value is between -180 and +180 degrees.
- wrapLatLng: function wrapLatLng(latlng) {
- return this.options.crs.wrapLatLng(toLatLng(latlng));
- },
- // @method wrapLatLngBounds(bounds: LatLngBounds): LatLngBounds
- // Returns a `LatLngBounds` with the same size as the given one, ensuring that
- // its center is within the CRS's bounds.
- // By default this means the center longitude is wrapped around the dateline so its
- // value is between -180 and +180 degrees, and the majority of the bounds
- // overlaps the CRS's bounds.
- wrapLatLngBounds: function wrapLatLngBounds(latlng) {
- return this.options.crs.wrapLatLngBounds(toLatLngBounds(latlng));
- },
- // @method distance(latlng1: LatLng, latlng2: LatLng): Number
- // Returns the distance between two geographical coordinates according to
- // the map's CRS. By default this measures distance in meters.
- distance: function distance(latlng1, latlng2) {
- return this.options.crs.distance(toLatLng(latlng1), toLatLng(latlng2));
- },
- // @method containerPointToLayerPoint(point: Point): Point
- // Given a pixel coordinate relative to the map container, returns the corresponding
- // pixel coordinate relative to the [origin pixel](#map-getpixelorigin).
- containerPointToLayerPoint: function containerPointToLayerPoint(point) {
- // (Point)
- return toPoint(point).subtract(this._getMapPanePos());
- },
- // @method layerPointToContainerPoint(point: Point): Point
- // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
- // returns the corresponding pixel coordinate relative to the map container.
- layerPointToContainerPoint: function layerPointToContainerPoint(point) {
- // (Point)
- return toPoint(point).add(this._getMapPanePos());
- },
- // @method containerPointToLatLng(point: Point): LatLng
- // Given a pixel coordinate relative to the map container, returns
- // the corresponding geographical coordinate (for the current zoom level).
- containerPointToLatLng: function containerPointToLatLng(point) {
- var layerPoint = this.containerPointToLayerPoint(toPoint(point));
- return this.layerPointToLatLng(layerPoint);
- },
- // @method latLngToContainerPoint(latlng: LatLng): Point
- // Given a geographical coordinate, returns the corresponding pixel coordinate
- // relative to the map container.
- latLngToContainerPoint: function latLngToContainerPoint(latlng) {
- return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(latlng)));
- },
- // @method mouseEventToContainerPoint(ev: MouseEvent): Point
- // Given a MouseEvent object, returns the pixel coordinate relative to the
- // map container where the event took place.
- mouseEventToContainerPoint: function mouseEventToContainerPoint(e) {
- return getMousePosition(e, this._container);
- },
- // @method mouseEventToLayerPoint(ev: MouseEvent): Point
- // Given a MouseEvent object, returns the pixel coordinate relative to
- // the [origin pixel](#map-getpixelorigin) where the event took place.
- mouseEventToLayerPoint: function mouseEventToLayerPoint(e) {
- return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e));
- },
- // @method mouseEventToLatLng(ev: MouseEvent): LatLng
- // Given a MouseEvent object, returns geographical coordinate where the
- // event took place.
- mouseEventToLatLng: function mouseEventToLatLng(e) {
- // (MouseEvent)
- return this.layerPointToLatLng(this.mouseEventToLayerPoint(e));
- },
- // map initialization methods
- _initContainer: function _initContainer(id) {
- var container = this._container = get(id);
- if (!container) {
- throw new Error('Map container not found.');
- } else if (container._leaflet_id) {
- throw new Error('Map container is already initialized.');
- }
- on(container, 'scroll', this._onScroll, this);
- this._containerId = stamp(container);
- },
- _initLayout: function _initLayout() {
- var container = this._container;
- this._fadeAnimated = this.options.fadeAnimation && Browser.any3d;
- addClass(container, 'leaflet-container' + (Browser.touch ? ' leaflet-touch' : '') + (Browser.retina ? ' leaflet-retina' : '') + (Browser.ielt9 ? ' leaflet-oldie' : '') + (Browser.safari ? ' leaflet-safari' : '') + (this._fadeAnimated ? ' leaflet-fade-anim' : ''));
- var position = getStyle(container, 'position');
- if (position !== 'absolute' && position !== 'relative' && position !== 'fixed' && position !== 'sticky') {
- container.style.position = 'relative';
- }
- this._initPanes();
- if (this._initControlPos) {
- this._initControlPos();
- }
- },
- _initPanes: function _initPanes() {
- var panes = this._panes = {};
- this._paneRenderers = {};
- // @section
- //
- // Panes are DOM elements used to control the ordering of layers on the map. You
- // can access panes with [`map.getPane`](#map-getpane) or
- // [`map.getPanes`](#map-getpanes) methods. New panes can be created with the
- // [`map.createPane`](#map-createpane) method.
- //
- // Every map has the following default panes that differ only in zIndex.
- //
- // @pane mapPane: HTMLElement = 'auto'
- // Pane that contains all other map panes
- this._mapPane = this.createPane('mapPane', this._container);
- setPosition(this._mapPane, new Point(0, 0));
- // @pane tilePane: HTMLElement = 200
- // Pane for `GridLayer`s and `TileLayer`s
- this.createPane('tilePane');
- // @pane overlayPane: HTMLElement = 400
- // Pane for vectors (`Path`s, like `Polyline`s and `Polygon`s), `ImageOverlay`s and `VideoOverlay`s
- this.createPane('overlayPane');
- // @pane shadowPane: HTMLElement = 500
- // Pane for overlay shadows (e.g. `Marker` shadows)
- this.createPane('shadowPane');
- // @pane markerPane: HTMLElement = 600
- // Pane for `Icon`s of `Marker`s
- this.createPane('markerPane');
- // @pane tooltipPane: HTMLElement = 650
- // Pane for `Tooltip`s.
- this.createPane('tooltipPane');
- // @pane popupPane: HTMLElement = 700
- // Pane for `Popup`s.
- this.createPane('popupPane');
- if (!this.options.markerZoomAnimation) {
- addClass(panes.markerPane, 'leaflet-zoom-hide');
- addClass(panes.shadowPane, 'leaflet-zoom-hide');
- }
- },
- // private methods that modify map state
- // @section Map state change events
- _resetView: function _resetView(center, zoom, noMoveStart) {
- setPosition(this._mapPane, new Point(0, 0));
- var loading = !this._loaded;
- this._loaded = true;
- zoom = this._limitZoom(zoom);
- this.fire('viewprereset');
- var zoomChanged = this._zoom !== zoom;
- this._moveStart(zoomChanged, noMoveStart)._move(center, zoom)._moveEnd(zoomChanged);
- // @event viewreset: Event
- // Fired when the map needs to redraw its content (this usually happens
- // on map zoom or load). Very useful for creating custom overlays.
- this.fire('viewreset');
- // @event load: Event
- // Fired when the map is initialized (when its center and zoom are set
- // for the first time).
- if (loading) {
- this.fire('load');
- }
- },
- _moveStart: function _moveStart(zoomChanged, noMoveStart) {
- // @event zoomstart: Event
- // Fired when the map zoom is about to change (e.g. before zoom animation).
- // @event movestart: Event
- // Fired when the view of the map starts changing (e.g. user starts dragging the map).
- if (zoomChanged) {
- this.fire('zoomstart');
- }
- if (!noMoveStart) {
- this.fire('movestart');
- }
- return this;
- },
- _move: function _move(center, zoom, data, supressEvent) {
- if (zoom === undefined) {
- zoom = this._zoom;
- }
- var zoomChanged = this._zoom !== zoom;
- this._zoom = zoom;
- this._lastCenter = center;
- this._pixelOrigin = this._getNewPixelOrigin(center);
- if (!supressEvent) {
- // @event zoom: Event
- // Fired repeatedly during any change in zoom level,
- // including zoom and fly animations.
- if (zoomChanged || data && data.pinch) {
- // Always fire 'zoom' if pinching because #3530
- this.fire('zoom', data);
- }
- // @event move: Event
- // Fired repeatedly during any movement of the map,
- // including pan and fly animations.
- this.fire('move', data);
- } else if (data && data.pinch) {
- // Always fire 'zoom' if pinching because #3530
- this.fire('zoom', data);
- }
- return this;
- },
- _moveEnd: function _moveEnd(zoomChanged) {
- // @event zoomend: Event
- // Fired when the map zoom changed, after any animations.
- if (zoomChanged) {
- this.fire('zoomend');
- }
- // @event moveend: Event
- // Fired when the center of the map stops changing
- // (e.g. user stopped dragging the map or after non-centered zoom).
- return this.fire('moveend');
- },
- _stop: function _stop() {
- cancelAnimFrame(this._flyToFrame);
- if (this._panAnim) {
- this._panAnim.stop();
- }
- return this;
- },
- _rawPanBy: function _rawPanBy(offset) {
- setPosition(this._mapPane, this._getMapPanePos().subtract(offset));
- },
- _getZoomSpan: function _getZoomSpan() {
- return this.getMaxZoom() - this.getMinZoom();
- },
- _panInsideMaxBounds: function _panInsideMaxBounds() {
- if (!this._enforcingBounds) {
- this.panInsideBounds(this.options.maxBounds);
- }
- },
- _checkIfLoaded: function _checkIfLoaded() {
- if (!this._loaded) {
- throw new Error('Set map center and zoom first.');
- }
- },
- // DOM event handling
- // @section Interaction events
- _initEvents: function _initEvents(remove) {
- this._targets = {};
- this._targets[stamp(this._container)] = this;
- var onOff = remove ? off : on;
- // @event click: MouseEvent
- // Fired when the user clicks (or taps) the map.
- // @event dblclick: MouseEvent
- // Fired when the user double-clicks (or double-taps) the map.
- // @event mousedown: MouseEvent
- // Fired when the user pushes the mouse button on the map.
- // @event mouseup: MouseEvent
- // Fired when the user releases the mouse button on the map.
- // @event mouseover: MouseEvent
- // Fired when the mouse enters the map.
- // @event mouseout: MouseEvent
- // Fired when the mouse leaves the map.
- // @event mousemove: MouseEvent
- // Fired while the mouse moves over the map.
- // @event contextmenu: MouseEvent
- // Fired when the user pushes the right mouse button on the map, prevents
- // default browser context menu from showing if there are listeners on
- // this event. Also fired on mobile when the user holds a single touch
- // for a second (also called long press).
- // @event keypress: KeyboardEvent
- // Fired when the user presses a key from the keyboard that produces a character value while the map is focused.
- // @event keydown: KeyboardEvent
- // Fired when the user presses a key from the keyboard while the map is focused. Unlike the `keypress` event,
- // the `keydown` event is fired for keys that produce a character value and for keys
- // that do not produce a character value.
- // @event keyup: KeyboardEvent
- // Fired when the user releases a key from the keyboard while the map is focused.
- onOff(this._container, 'click dblclick mousedown mouseup ' + 'mouseover mouseout mousemove contextmenu keypress keydown keyup', this._handleDOMEvent, this);
- if (this.options.trackResize) {
- onOff(window, 'resize', this._onResize, this);
- }
- if (Browser.any3d && this.options.transform3DLimit) {
- (remove ? this.off : this.on).call(this, 'moveend', this._onMoveEnd);
- }
- },
- _onResize: function _onResize() {
- cancelAnimFrame(this._resizeRequest);
- this._resizeRequest = requestAnimFrame(function () {
- this.invalidateSize({
- debounceMoveend: true
- });
- }, this);
- },
- _onScroll: function _onScroll() {
- this._container.scrollTop = 0;
- this._container.scrollLeft = 0;
- },
- _onMoveEnd: function _onMoveEnd() {
- var pos = this._getMapPanePos();
- if (Math.max(Math.abs(pos.x), Math.abs(pos.y)) >= this.options.transform3DLimit) {
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1203873 but Webkit also have
- // a pixel offset on very high values, see: https://jsfiddle.net/dg6r5hhb/
- this._resetView(this.getCenter(), this.getZoom());
- }
- },
- _findEventTargets: function _findEventTargets(e, type) {
- var targets = [],
- target,
- isHover = type === 'mouseout' || type === 'mouseover',
- src = e.target || e.srcElement,
- dragging = false;
- while (src) {
- target = this._targets[stamp(src)];
- if (target && (type === 'click' || type === 'preclick') && this._draggableMoved(target)) {
- // Prevent firing click after you just dragged an object.
- dragging = true;
- break;
- }
- if (target && target.listens(type, true)) {
- if (isHover && !isExternalTarget(src, e)) {
- break;
- }
- targets.push(target);
- if (isHover) {
- break;
- }
- }
- if (src === this._container) {
- break;
- }
- src = src.parentNode;
- }
- if (!targets.length && !dragging && !isHover && this.listens(type, true)) {
- targets = [this];
- }
- return targets;
- },
- _isClickDisabled: function _isClickDisabled(el) {
- while (el && el !== this._container) {
- if (el['_leaflet_disable_click']) {
- return true;
- }
- el = el.parentNode;
- }
- },
- _handleDOMEvent: function _handleDOMEvent(e) {
- var el = e.target || e.srcElement;
- if (!this._loaded || el['_leaflet_disable_events'] || e.type === 'click' && this._isClickDisabled(el)) {
- return;
- }
- var type = e.type;
- if (type === 'mousedown') {
- // prevents outline when clicking on keyboard-focusable element
- preventOutline(el);
- }
- this._fireDOMEvent(e, type);
- },
- _mouseEvents: ['click', 'dblclick', 'mouseover', 'mouseout', 'contextmenu'],
- _fireDOMEvent: function _fireDOMEvent(e, type, canvasTargets) {
- if (e.type === 'click') {
- // Fire a synthetic 'preclick' event which propagates up (mainly for closing popups).
- // @event preclick: MouseEvent
- // Fired before mouse click on the map (sometimes useful when you
- // want something to happen on click before any existing click
- // handlers start running).
- var synth = extend({}, e);
- synth.type = 'preclick';
- this._fireDOMEvent(synth, synth.type, canvasTargets);
- }
- // Find the layer the event is propagating from and its parents.
- var targets = this._findEventTargets(e, type);
- if (canvasTargets) {
- var filtered = []; // pick only targets with listeners
- for (var i = 0; i < canvasTargets.length; i++) {
- if (canvasTargets[i].listens(type, true)) {
- filtered.push(canvasTargets[i]);
- }
- }
- targets = filtered.concat(targets);
- }
- if (!targets.length) {
- return;
- }
- if (type === 'contextmenu') {
- preventDefault(e);
- }
- var target = targets[0];
- var data = {
- originalEvent: e
- };
- if (e.type !== 'keypress' && e.type !== 'keydown' && e.type !== 'keyup') {
- var isMarker = target.getLatLng && (!target._radius || target._radius <= 10);
- data.containerPoint = isMarker ? this.latLngToContainerPoint(target.getLatLng()) : this.mouseEventToContainerPoint(e);
- data.layerPoint = this.containerPointToLayerPoint(data.containerPoint);
- data.latlng = isMarker ? target.getLatLng() : this.layerPointToLatLng(data.layerPoint);
- }
- for (i = 0; i < targets.length; i++) {
- targets[i].fire(type, data, true);
- if (data.originalEvent._stopped || targets[i].options.bubblingMouseEvents === false && indexOf(this._mouseEvents, type) !== -1) {
- return;
- }
- }
- },
- _draggableMoved: function _draggableMoved(obj) {
- obj = obj.dragging && obj.dragging.enabled() ? obj : this;
- return obj.dragging && obj.dragging.moved() || this.boxZoom && this.boxZoom.moved();
- },
- _clearHandlers: function _clearHandlers() {
- for (var i = 0, len = this._handlers.length; i < len; i++) {
- this._handlers[i].disable();
- }
- },
- // @section Other Methods
- // @method whenReady(fn: Function, context?: Object): this
- // Runs the given function `fn` when the map gets initialized with
- // a view (center and zoom) and at least one layer, or immediately
- // if it's already initialized, optionally passing a function context.
- whenReady: function whenReady(callback, context) {
- if (this._loaded) {
- callback.call(context || this, {
- target: this
- });
- } else {
- this.on('load', callback, context);
- }
- return this;
- },
- // private methods for getting map state
- _getMapPanePos: function _getMapPanePos() {
- return getPosition(this._mapPane) || new Point(0, 0);
- },
- _moved: function _moved() {
- var pos = this._getMapPanePos();
- return pos && !pos.equals([0, 0]);
- },
- _getTopLeftPoint: function _getTopLeftPoint(center, zoom) {
- var pixelOrigin = center && zoom !== undefined ? this._getNewPixelOrigin(center, zoom) : this.getPixelOrigin();
- return pixelOrigin.subtract(this._getMapPanePos());
- },
- _getNewPixelOrigin: function _getNewPixelOrigin(center, zoom) {
- var viewHalf = this.getSize()._divideBy(2);
- return this.project(center, zoom)._subtract(viewHalf)._add(this._getMapPanePos())._round();
- },
- _latLngToNewLayerPoint: function _latLngToNewLayerPoint(latlng, zoom, center) {
- var topLeft = this._getNewPixelOrigin(center, zoom);
- return this.project(latlng, zoom)._subtract(topLeft);
- },
- _latLngBoundsToNewLayerBounds: function _latLngBoundsToNewLayerBounds(latLngBounds, zoom, center) {
- var topLeft = this._getNewPixelOrigin(center, zoom);
- return toBounds([this.project(latLngBounds.getSouthWest(), zoom)._subtract(topLeft), this.project(latLngBounds.getNorthWest(), zoom)._subtract(topLeft), this.project(latLngBounds.getSouthEast(), zoom)._subtract(topLeft), this.project(latLngBounds.getNorthEast(), zoom)._subtract(topLeft)]);
- },
- // layer point of the current center
- _getCenterLayerPoint: function _getCenterLayerPoint() {
- return this.containerPointToLayerPoint(this.getSize()._divideBy(2));
- },
- // offset of the specified place to the current center in pixels
- _getCenterOffset: function _getCenterOffset(latlng) {
- return this.latLngToLayerPoint(latlng).subtract(this._getCenterLayerPoint());
- },
- // adjust center for view to get inside bounds
- _limitCenter: function _limitCenter(center, zoom, bounds) {
- if (!bounds) {
- return center;
- }
- var centerPoint = this.project(center, zoom),
- viewHalf = this.getSize().divideBy(2),
- viewBounds = new Bounds(centerPoint.subtract(viewHalf), centerPoint.add(viewHalf)),
- offset = this._getBoundsOffset(viewBounds, bounds, zoom);
- // If offset is less than a pixel, ignore.
- // This prevents unstable projections from getting into
- // an infinite loop of tiny offsets.
- if (Math.abs(offset.x) <= 1 && Math.abs(offset.y) <= 1) {
- return center;
- }
- return this.unproject(centerPoint.add(offset), zoom);
- },
- // adjust offset for view to get inside bounds
- _limitOffset: function _limitOffset(offset, bounds) {
- if (!bounds) {
- return offset;
- }
- var viewBounds = this.getPixelBounds(),
- newBounds = new Bounds(viewBounds.min.add(offset), viewBounds.max.add(offset));
- return offset.add(this._getBoundsOffset(newBounds, bounds));
- },
- // returns offset needed for pxBounds to get inside maxBounds at a specified zoom
- _getBoundsOffset: function _getBoundsOffset(pxBounds, maxBounds, zoom) {
- var projectedMaxBounds = toBounds(this.project(maxBounds.getNorthEast(), zoom), this.project(maxBounds.getSouthWest(), zoom)),
- minOffset = projectedMaxBounds.min.subtract(pxBounds.min),
- maxOffset = projectedMaxBounds.max.subtract(pxBounds.max),
- dx = this._rebound(minOffset.x, -maxOffset.x),
- dy = this._rebound(minOffset.y, -maxOffset.y);
- return new Point(dx, dy);
- },
- _rebound: function _rebound(left, right) {
- return left + right > 0 ? Math.round(left - right) / 2 : Math.max(0, Math.ceil(left)) - Math.max(0, Math.floor(right));
- },
- _limitZoom: function _limitZoom(zoom) {
- var min = this.getMinZoom(),
- max = this.getMaxZoom(),
- snap = Browser.any3d ? this.options.zoomSnap : 1;
- if (snap) {
- zoom = Math.round(zoom / snap) * snap;
- }
- return Math.max(min, Math.min(max, zoom));
- },
- _onPanTransitionStep: function _onPanTransitionStep() {
- this.fire('move');
- },
- _onPanTransitionEnd: function _onPanTransitionEnd() {
- removeClass(this._mapPane, 'leaflet-pan-anim');
- this.fire('moveend');
- },
- _tryAnimatedPan: function _tryAnimatedPan(center, options) {
- // difference between the new and current centers in pixels
- var offset = this._getCenterOffset(center)._trunc();
- // don't animate too far unless animate: true specified in options
- if ((options && options.animate) !== true && !this.getSize().contains(offset)) {
- return false;
- }
- this.panBy(offset, options);
- return true;
- },
- _createAnimProxy: function _createAnimProxy() {
- var proxy = this._proxy = create$1('div', 'leaflet-proxy leaflet-zoom-animated');
- this._panes.mapPane.appendChild(proxy);
- this.on('zoomanim', function (e) {
- var prop = TRANSFORM,
- transform = this._proxy.style[prop];
- setTransform(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1));
- // workaround for case when transform is the same and so transitionend event is not fired
- if (transform === this._proxy.style[prop] && this._animatingZoom) {
- this._onZoomTransitionEnd();
- }
- }, this);
- this.on('load moveend', this._animMoveEnd, this);
- this._on('unload', this._destroyAnimProxy, this);
- },
- _destroyAnimProxy: function _destroyAnimProxy() {
- _remove(this._proxy);
- this.off('load moveend', this._animMoveEnd, this);
- delete this._proxy;
- },
- _animMoveEnd: function _animMoveEnd() {
- var c = this.getCenter(),
- z = this.getZoom();
- setTransform(this._proxy, this.project(c, z), this.getZoomScale(z, 1));
- },
- _catchTransitionEnd: function _catchTransitionEnd(e) {
- if (this._animatingZoom && e.propertyName.indexOf('transform') >= 0) {
- this._onZoomTransitionEnd();
- }
- },
- _nothingToAnimate: function _nothingToAnimate() {
- return !this._container.getElementsByClassName('leaflet-zoom-animated').length;
- },
- _tryAnimatedZoom: function _tryAnimatedZoom(center, zoom, options) {
- if (this._animatingZoom) {
- return true;
- }
- options = options || {};
- // don't animate if disabled, not supported or zoom difference is too large
- if (!this._zoomAnimated || options.animate === false || this._nothingToAnimate() || Math.abs(zoom - this._zoom) > this.options.zoomAnimationThreshold) {
- return false;
- }
- // offset is the pixel coords of the zoom origin relative to the current center
- var scale = this.getZoomScale(zoom),
- offset = this._getCenterOffset(center)._divideBy(1 - 1 / scale);
- // don't animate if the zoom origin isn't within one screen from the current center, unless forced
- if (options.animate !== true && !this.getSize().contains(offset)) {
- return false;
- }
- requestAnimFrame(function () {
- this._moveStart(true, false)._animateZoom(center, zoom, true);
- }, this);
- return true;
- },
- _animateZoom: function _animateZoom(center, zoom, startAnim, noUpdate) {
- if (!this._mapPane) {
- return;
- }
- if (startAnim) {
- this._animatingZoom = true;
- // remember what center/zoom to set after animation
- this._animateToCenter = center;
- this._animateToZoom = zoom;
- addClass(this._mapPane, 'leaflet-zoom-anim');
- }
- // @section Other Events
- // @event zoomanim: ZoomAnimEvent
- // Fired at least once per zoom animation. For continuous zoom, like pinch zooming, fired once per frame during zoom.
- this.fire('zoomanim', {
- center: center,
- zoom: zoom,
- noUpdate: noUpdate
- });
- if (!this._tempFireZoomEvent) {
- this._tempFireZoomEvent = this._zoom !== this._animateToZoom;
- }
- this._move(this._animateToCenter, this._animateToZoom, undefined, true);
- // Work around webkit not firing 'transitionend', see https://github.com/Leaflet/Leaflet/issues/3689, 2693
- setTimeout(bind(this._onZoomTransitionEnd, this), 250);
- },
- _onZoomTransitionEnd: function _onZoomTransitionEnd() {
- if (!this._animatingZoom) {
- return;
- }
- if (this._mapPane) {
- removeClass(this._mapPane, 'leaflet-zoom-anim');
- }
- this._animatingZoom = false;
- this._move(this._animateToCenter, this._animateToZoom, undefined, true);
- if (this._tempFireZoomEvent) {
- this.fire('zoom');
- }
- delete this._tempFireZoomEvent;
- this.fire('move');
- this._moveEnd(true);
- }
- });
- // @section
- // @factory L.map(id: String, options?: Map options)
- // Instantiates a map object given the DOM ID of a `<div>` element
- // and optionally an object literal with `Map options`.
- //
- // @alternative
- // @factory L.map(el: HTMLElement, options?: Map options)
- // Instantiates a map object given an instance of a `<div>` HTML element
- // and optionally an object literal with `Map options`.
- function createMap(id, options) {
- return new Map(id, options);
- }
- /*
- * @class Control
- * @aka L.Control
- * @inherits Class
- *
- * L.Control is a base class for implementing map controls. Handles positioning.
- * All other controls extend from this class.
- */
- var Control = Class.extend({
- // @section
- // @aka Control Options
- options: {
- // @option position: String = 'topright'
- // The position of the control (one of the map corners). Possible values are `'topleft'`,
- // `'topright'`, `'bottomleft'` or `'bottomright'`
- position: 'topright'
- },
- initialize: function initialize(options) {
- setOptions(this, options);
- },
- /* @section
- * Classes extending L.Control will inherit the following methods:
- *
- * @method getPosition: string
- * Returns the position of the control.
- */
- getPosition: function getPosition() {
- return this.options.position;
- },
- // @method setPosition(position: string): this
- // Sets the position of the control.
- setPosition: function setPosition(position) {
- var map = this._map;
- if (map) {
- map.removeControl(this);
- }
- this.options.position = position;
- if (map) {
- map.addControl(this);
- }
- return this;
- },
- // @method getContainer: HTMLElement
- // Returns the HTMLElement that contains the control.
- getContainer: function getContainer() {
- return this._container;
- },
- // @method addTo(map: Map): this
- // Adds the control to the given map.
- addTo: function addTo(map) {
- this.remove();
- this._map = map;
- var container = this._container = this.onAdd(map),
- pos = this.getPosition(),
- corner = map._controlCorners[pos];
- addClass(container, 'leaflet-control');
- if (pos.indexOf('bottom') !== -1) {
- corner.insertBefore(container, corner.firstChild);
- } else {
- corner.appendChild(container);
- }
- this._map.on('unload', this.remove, this);
- return this;
- },
- // @method remove: this
- // Removes the control from the map it is currently active on.
- remove: function remove() {
- if (!this._map) {
- return this;
- }
- _remove(this._container);
- if (this.onRemove) {
- this.onRemove(this._map);
- }
- this._map.off('unload', this.remove, this);
- this._map = null;
- return this;
- },
- _refocusOnMap: function _refocusOnMap(e) {
- // if map exists and event is not a keyboard event
- if (this._map && e && e.screenX > 0 && e.screenY > 0) {
- this._map.getContainer().focus();
- }
- }
- });
- var control = function control(options) {
- return new Control(options);
- };
- /* @section Extension methods
- * @uninheritable
- *
- * Every control should extend from `L.Control` and (re-)implement the following methods.
- *
- * @method onAdd(map: Map): HTMLElement
- * Should return the container DOM element for the control and add listeners on relevant map events. Called on [`control.addTo(map)`](#control-addTo).
- *
- * @method onRemove(map: Map)
- * Optional method. Should contain all clean up code that removes the listeners previously added in [`onAdd`](#control-onadd). Called on [`control.remove()`](#control-remove).
- */
- /* @namespace Map
- * @section Methods for Layers and Controls
- */
- Map.include({
- // @method addControl(control: Control): this
- // Adds the given control to the map
- addControl: function addControl(control) {
- control.addTo(this);
- return this;
- },
- // @method removeControl(control: Control): this
- // Removes the given control from the map
- removeControl: function removeControl(control) {
- control.remove();
- return this;
- },
- _initControlPos: function _initControlPos() {
- var corners = this._controlCorners = {},
- l = 'leaflet-',
- container = this._controlContainer = create$1('div', l + 'control-container', this._container);
- function createCorner(vSide, hSide) {
- var className = l + vSide + ' ' + l + hSide;
- corners[vSide + hSide] = create$1('div', className, container);
- }
- createCorner('top', 'left');
- createCorner('top', 'right');
- createCorner('bottom', 'left');
- createCorner('bottom', 'right');
- },
- _clearControlPos: function _clearControlPos() {
- for (var i in this._controlCorners) {
- _remove(this._controlCorners[i]);
- }
- _remove(this._controlContainer);
- delete this._controlCorners;
- delete this._controlContainer;
- }
- });
- /*
- * @class Control.Layers
- * @aka L.Control.Layers
- * @inherits Control
- *
- * The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the [detailed example](https://leafletjs.com/examples/layers-control/)). Extends `Control`.
- *
- * @example
- *
- * ```js
- * var baseLayers = {
- * "Mapbox": mapbox,
- * "OpenStreetMap": osm
- * };
- *
- * var overlays = {
- * "Marker": marker,
- * "Roads": roadsLayer
- * };
- *
- * L.control.layers(baseLayers, overlays).addTo(map);
- * ```
- *
- * The `baseLayers` and `overlays` parameters are object literals with layer names as keys and `Layer` objects as values:
- *
- * ```js
- * {
- * "<someName1>": layer1,
- * "<someName2>": layer2
- * }
- * ```
- *
- * The layer names can contain HTML, which allows you to add additional styling to the items:
- *
- * ```js
- * {"<img src='my-layer-icon' /> <span class='my-layer-item'>My Layer</span>": myLayer}
- * ```
- */
- var Layers = Control.extend({
- // @section
- // @aka Control.Layers options
- options: {
- // @option collapsed: Boolean = true
- // If `true`, the control will be collapsed into an icon and expanded on mouse hover, touch, or keyboard activation.
- collapsed: true,
- position: 'topright',
- // @option autoZIndex: Boolean = true
- // If `true`, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.
- autoZIndex: true,
- // @option hideSingleBase: Boolean = false
- // If `true`, the base layers in the control will be hidden when there is only one.
- hideSingleBase: false,
- // @option sortLayers: Boolean = false
- // Whether to sort the layers. When `false`, layers will keep the order
- // in which they were added to the control.
- sortLayers: false,
- // @option sortFunction: Function = *
- // A [compare function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
- // that will be used for sorting the layers, when `sortLayers` is `true`.
- // The function receives both the `L.Layer` instances and their names, as in
- // `sortFunction(layerA, layerB, nameA, nameB)`.
- // By default, it sorts layers alphabetically by their name.
- sortFunction: function sortFunction(layerA, layerB, nameA, nameB) {
- return nameA < nameB ? -1 : nameB < nameA ? 1 : 0;
- }
- },
- initialize: function initialize(baseLayers, overlays, options) {
- setOptions(this, options);
- this._layerControlInputs = [];
- this._layers = [];
- this._lastZIndex = 0;
- this._handlingClick = false;
- for (var i in baseLayers) {
- this._addLayer(baseLayers[i], i);
- }
- for (i in overlays) {
- this._addLayer(overlays[i], i, true);
- }
- },
- onAdd: function onAdd(map) {
- this._initLayout();
- this._update();
- this._map = map;
- map.on('zoomend', this._checkDisabledLayers, this);
- for (var i = 0; i < this._layers.length; i++) {
- this._layers[i].layer.on('add remove', this._onLayerChange, this);
- }
- return this._container;
- },
- addTo: function addTo(map) {
- Control.prototype.addTo.call(this, map);
- // Trigger expand after Layers Control has been inserted into DOM so that is now has an actual height.
- return this._expandIfNotCollapsed();
- },
- onRemove: function onRemove() {
- this._map.off('zoomend', this._checkDisabledLayers, this);
- for (var i = 0; i < this._layers.length; i++) {
- this._layers[i].layer.off('add remove', this._onLayerChange, this);
- }
- },
- // @method addBaseLayer(layer: Layer, name: String): this
- // Adds a base layer (radio button entry) with the given name to the control.
- addBaseLayer: function addBaseLayer(layer, name) {
- this._addLayer(layer, name);
- return this._map ? this._update() : this;
- },
- // @method addOverlay(layer: Layer, name: String): this
- // Adds an overlay (checkbox entry) with the given name to the control.
- addOverlay: function addOverlay(layer, name) {
- this._addLayer(layer, name, true);
- return this._map ? this._update() : this;
- },
- // @method removeLayer(layer: Layer): this
- // Remove the given layer from the control.
- removeLayer: function removeLayer(layer) {
- layer.off('add remove', this._onLayerChange, this);
- var obj = this._getLayer(stamp(layer));
- if (obj) {
- this._layers.splice(this._layers.indexOf(obj), 1);
- }
- return this._map ? this._update() : this;
- },
- // @method expand(): this
- // Expand the control container if collapsed.
- expand: function expand() {
- addClass(this._container, 'leaflet-control-layers-expanded');
- this._section.style.height = null;
- var acceptableHeight = this._map.getSize().y - (this._container.offsetTop + 50);
- if (acceptableHeight < this._section.clientHeight) {
- addClass(this._section, 'leaflet-control-layers-scrollbar');
- this._section.style.height = acceptableHeight + 'px';
- } else {
- removeClass(this._section, 'leaflet-control-layers-scrollbar');
- }
- this._checkDisabledLayers();
- return this;
- },
- // @method collapse(): this
- // Collapse the control container if expanded.
- collapse: function collapse() {
- removeClass(this._container, 'leaflet-control-layers-expanded');
- return this;
- },
- _initLayout: function _initLayout() {
- var className = 'leaflet-control-layers',
- container = this._container = create$1('div', className),
- collapsed = this.options.collapsed;
- // makes this work on IE touch devices by stopping it from firing a mouseout event when the touch is released
- container.setAttribute('aria-haspopup', true);
- disableClickPropagation(container);
- disableScrollPropagation(container);
- var section = this._section = create$1('section', className + '-list');
- if (collapsed) {
- this._map.on('click', this.collapse, this);
- on(container, {
- mouseenter: this._expandSafely,
- mouseleave: this.collapse
- }, this);
- }
- var link = this._layersLink = create$1('a', className + '-toggle', container);
- link.href = '#';
- link.title = 'Layers';
- link.setAttribute('role', 'button');
- on(link, {
- keydown: function keydown(e) {
- if (e.keyCode === 13) {
- this._expandSafely();
- }
- },
- // Certain screen readers intercept the key event and instead send a click event
- click: function click(e) {
- preventDefault(e);
- this._expandSafely();
- }
- }, this);
- if (!collapsed) {
- this.expand();
- }
- this._baseLayersList = create$1('div', className + '-base', section);
- this._separator = create$1('div', className + '-separator', section);
- this._overlaysList = create$1('div', className + '-overlays', section);
- container.appendChild(section);
- },
- _getLayer: function _getLayer(id) {
- for (var i = 0; i < this._layers.length; i++) {
- if (this._layers[i] && stamp(this._layers[i].layer) === id) {
- return this._layers[i];
- }
- }
- },
- _addLayer: function _addLayer(layer, name, overlay) {
- if (this._map) {
- layer.on('add remove', this._onLayerChange, this);
- }
- this._layers.push({
- layer: layer,
- name: name,
- overlay: overlay
- });
- if (this.options.sortLayers) {
- this._layers.sort(bind(function (a, b) {
- return this.options.sortFunction(a.layer, b.layer, a.name, b.name);
- }, this));
- }
- if (this.options.autoZIndex && layer.setZIndex) {
- this._lastZIndex++;
- layer.setZIndex(this._lastZIndex);
- }
- this._expandIfNotCollapsed();
- },
- _update: function _update() {
- if (!this._container) {
- return this;
- }
- empty(this._baseLayersList);
- empty(this._overlaysList);
- this._layerControlInputs = [];
- var baseLayersPresent,
- overlaysPresent,
- i,
- obj,
- baseLayersCount = 0;
- for (i = 0; i < this._layers.length; i++) {
- obj = this._layers[i];
- this._addItem(obj);
- overlaysPresent = overlaysPresent || obj.overlay;
- baseLayersPresent = baseLayersPresent || !obj.overlay;
- baseLayersCount += !obj.overlay ? 1 : 0;
- }
- // Hide base layers section if there's only one layer.
- if (this.options.hideSingleBase) {
- baseLayersPresent = baseLayersPresent && baseLayersCount > 1;
- this._baseLayersList.style.display = baseLayersPresent ? '' : 'none';
- }
- this._separator.style.display = overlaysPresent && baseLayersPresent ? '' : 'none';
- return this;
- },
- _onLayerChange: function _onLayerChange(e) {
- if (!this._handlingClick) {
- this._update();
- }
- var obj = this._getLayer(stamp(e.target));
- // @namespace Map
- // @section Layer events
- // @event baselayerchange: LayersControlEvent
- // Fired when the base layer is changed through the [layers control](#control-layers).
- // @event overlayadd: LayersControlEvent
- // Fired when an overlay is selected through the [layers control](#control-layers).
- // @event overlayremove: LayersControlEvent
- // Fired when an overlay is deselected through the [layers control](#control-layers).
- // @namespace Control.Layers
- var type = obj.overlay ? e.type === 'add' ? 'overlayadd' : 'overlayremove' : e.type === 'add' ? 'baselayerchange' : null;
- if (type) {
- this._map.fire(type, obj);
- }
- },
- // IE7 bugs out if you create a radio dynamically, so you have to do it this hacky way (see https://stackoverflow.com/a/119079)
- _createRadioElement: function _createRadioElement(name, checked) {
- var radioHtml = '<input type="radio" class="leaflet-control-layers-selector" name="' + name + '"' + (checked ? ' checked="checked"' : '') + '/>';
- var radioFragment = document.createElement('div');
- radioFragment.innerHTML = radioHtml;
- return radioFragment.firstChild;
- },
- _addItem: function _addItem(obj) {
- var label = document.createElement('label'),
- checked = this._map.hasLayer(obj.layer),
- input;
- if (obj.overlay) {
- input = document.createElement('input');
- input.type = 'checkbox';
- input.className = 'leaflet-control-layers-selector';
- input.defaultChecked = checked;
- } else {
- input = this._createRadioElement('leaflet-base-layers_' + stamp(this), checked);
- }
- this._layerControlInputs.push(input);
- input.layerId = stamp(obj.layer);
- on(input, 'click', this._onInputClick, this);
- var name = document.createElement('span');
- name.innerHTML = ' ' + obj.name;
- // Helps from preventing layer control flicker when checkboxes are disabled
- // https://github.com/Leaflet/Leaflet/issues/2771
- var holder = document.createElement('span');
- label.appendChild(holder);
- holder.appendChild(input);
- holder.appendChild(name);
- var container = obj.overlay ? this._overlaysList : this._baseLayersList;
- container.appendChild(label);
- this._checkDisabledLayers();
- return label;
- },
- _onInputClick: function _onInputClick() {
- var inputs = this._layerControlInputs,
- input,
- layer;
- var addedLayers = [],
- removedLayers = [];
- this._handlingClick = true;
- for (var i = inputs.length - 1; i >= 0; i--) {
- input = inputs[i];
- layer = this._getLayer(input.layerId).layer;
- if (input.checked) {
- addedLayers.push(layer);
- } else if (!input.checked) {
- removedLayers.push(layer);
- }
- }
- // Bugfix issue 2318: Should remove all old layers before readding new ones
- for (i = 0; i < removedLayers.length; i++) {
- if (this._map.hasLayer(removedLayers[i])) {
- this._map.removeLayer(removedLayers[i]);
- }
- }
- for (i = 0; i < addedLayers.length; i++) {
- if (!this._map.hasLayer(addedLayers[i])) {
- this._map.addLayer(addedLayers[i]);
- }
- }
- this._handlingClick = false;
- this._refocusOnMap();
- },
- _checkDisabledLayers: function _checkDisabledLayers() {
- var inputs = this._layerControlInputs,
- input,
- layer,
- zoom = this._map.getZoom();
- for (var i = inputs.length - 1; i >= 0; i--) {
- input = inputs[i];
- layer = this._getLayer(input.layerId).layer;
- input.disabled = layer.options.minZoom !== undefined && zoom < layer.options.minZoom || layer.options.maxZoom !== undefined && zoom > layer.options.maxZoom;
- }
- },
- _expandIfNotCollapsed: function _expandIfNotCollapsed() {
- if (this._map && !this.options.collapsed) {
- this.expand();
- }
- return this;
- },
- _expandSafely: function _expandSafely() {
- var section = this._section;
- on(section, 'click', preventDefault);
- this.expand();
- setTimeout(function () {
- off(section, 'click', preventDefault);
- });
- }
- });
- // @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)
- // Creates a layers control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
- var layers = function layers(baseLayers, overlays, options) {
- return new Layers(baseLayers, overlays, options);
- };
- /*
- * @class Control.Zoom
- * @aka L.Control.Zoom
- * @inherits Control
- *
- * A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its [`zoomControl` option](#map-zoomcontrol) to `false`. Extends `Control`.
- */
- var Zoom = Control.extend({
- // @section
- // @aka Control.Zoom options
- options: {
- position: 'topleft',
- // @option zoomInText: String = '<span aria-hidden="true">+</span>'
- // The text set on the 'zoom in' button.
- zoomInText: '<span aria-hidden="true">+</span>',
- // @option zoomInTitle: String = 'Zoom in'
- // The title set on the 'zoom in' button.
- zoomInTitle: 'Zoom in',
- // @option zoomOutText: String = '<span aria-hidden="true">−</span>'
- // The text set on the 'zoom out' button.
- zoomOutText: '<span aria-hidden="true">−</span>',
- // @option zoomOutTitle: String = 'Zoom out'
- // The title set on the 'zoom out' button.
- zoomOutTitle: 'Zoom out'
- },
- onAdd: function onAdd(map) {
- var zoomName = 'leaflet-control-zoom',
- container = create$1('div', zoomName + ' leaflet-bar'),
- options = this.options;
- this._zoomInButton = this._createButton(options.zoomInText, options.zoomInTitle, zoomName + '-in', container, this._zoomIn);
- this._zoomOutButton = this._createButton(options.zoomOutText, options.zoomOutTitle, zoomName + '-out', container, this._zoomOut);
- this._updateDisabled();
- map.on('zoomend zoomlevelschange', this._updateDisabled, this);
- return container;
- },
- onRemove: function onRemove(map) {
- map.off('zoomend zoomlevelschange', this._updateDisabled, this);
- },
- disable: function disable() {
- this._disabled = true;
- this._updateDisabled();
- return this;
- },
- enable: function enable() {
- this._disabled = false;
- this._updateDisabled();
- return this;
- },
- _zoomIn: function _zoomIn(e) {
- if (!this._disabled && this._map._zoom < this._map.getMaxZoom()) {
- this._map.zoomIn(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));
- }
- },
- _zoomOut: function _zoomOut(e) {
- if (!this._disabled && this._map._zoom > this._map.getMinZoom()) {
- this._map.zoomOut(this._map.options.zoomDelta * (e.shiftKey ? 3 : 1));
- }
- },
- _createButton: function _createButton(html, title, className, container, fn) {
- var link = create$1('a', className, container);
- link.innerHTML = html;
- link.href = '#';
- link.title = title;
- /*
- * Will force screen readers like VoiceOver to read this as "Zoom in - button"
- */
- link.setAttribute('role', 'button');
- link.setAttribute('aria-label', title);
- disableClickPropagation(link);
- on(link, 'click', stop);
- on(link, 'click', fn, this);
- on(link, 'click', this._refocusOnMap, this);
- return link;
- },
- _updateDisabled: function _updateDisabled() {
- var map = this._map,
- className = 'leaflet-disabled';
- removeClass(this._zoomInButton, className);
- removeClass(this._zoomOutButton, className);
- this._zoomInButton.setAttribute('aria-disabled', 'false');
- this._zoomOutButton.setAttribute('aria-disabled', 'false');
- if (this._disabled || map._zoom === map.getMinZoom()) {
- addClass(this._zoomOutButton, className);
- this._zoomOutButton.setAttribute('aria-disabled', 'true');
- }
- if (this._disabled || map._zoom === map.getMaxZoom()) {
- addClass(this._zoomInButton, className);
- this._zoomInButton.setAttribute('aria-disabled', 'true');
- }
- }
- });
- // @namespace Map
- // @section Control options
- // @option zoomControl: Boolean = true
- // Whether a [zoom control](#control-zoom) is added to the map by default.
- Map.mergeOptions({
- zoomControl: true
- });
- Map.addInitHook(function () {
- if (this.options.zoomControl) {
- // @section Controls
- // @property zoomControl: Control.Zoom
- // The default zoom control (only available if the
- // [`zoomControl` option](#map-zoomcontrol) was `true` when creating the map).
- this.zoomControl = new Zoom();
- this.addControl(this.zoomControl);
- }
- });
- // @namespace Control.Zoom
- // @factory L.control.zoom(options: Control.Zoom options)
- // Creates a zoom control
- var zoom = function zoom(options) {
- return new Zoom(options);
- };
- /*
- * @class Control.Scale
- * @aka L.Control.Scale
- * @inherits Control
- *
- * A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems. Extends `Control`.
- *
- * @example
- *
- * ```js
- * L.control.scale().addTo(map);
- * ```
- */
- var Scale = Control.extend({
- // @section
- // @aka Control.Scale options
- options: {
- position: 'bottomleft',
- // @option maxWidth: Number = 100
- // Maximum width of the control in pixels. The width is set dynamically to show round values (e.g. 100, 200, 500).
- maxWidth: 100,
- // @option metric: Boolean = True
- // Whether to show the metric scale line (m/km).
- metric: true,
- // @option imperial: Boolean = True
- // Whether to show the imperial scale line (mi/ft).
- imperial: true
- // @option updateWhenIdle: Boolean = false
- // If `true`, the control is updated on [`moveend`](#map-moveend), otherwise it's always up-to-date (updated on [`move`](#map-move)).
- },
- onAdd: function onAdd(map) {
- var className = 'leaflet-control-scale',
- container = create$1('div', className),
- options = this.options;
- this._addScales(options, className + '-line', container);
- map.on(options.updateWhenIdle ? 'moveend' : 'move', this._update, this);
- map.whenReady(this._update, this);
- return container;
- },
- onRemove: function onRemove(map) {
- map.off(this.options.updateWhenIdle ? 'moveend' : 'move', this._update, this);
- },
- _addScales: function _addScales(options, className, container) {
- if (options.metric) {
- this._mScale = create$1('div', className, container);
- }
- if (options.imperial) {
- this._iScale = create$1('div', className, container);
- }
- },
- _update: function _update() {
- var map = this._map,
- y = map.getSize().y / 2;
- var maxMeters = map.distance(map.containerPointToLatLng([0, y]), map.containerPointToLatLng([this.options.maxWidth, y]));
- this._updateScales(maxMeters);
- },
- _updateScales: function _updateScales(maxMeters) {
- if (this.options.metric && maxMeters) {
- this._updateMetric(maxMeters);
- }
- if (this.options.imperial && maxMeters) {
- this._updateImperial(maxMeters);
- }
- },
- _updateMetric: function _updateMetric(maxMeters) {
- var meters = this._getRoundNum(maxMeters),
- label = meters < 1000 ? meters + ' m' : meters / 1000 + ' km';
- this._updateScale(this._mScale, label, meters / maxMeters);
- },
- _updateImperial: function _updateImperial(maxMeters) {
- var maxFeet = maxMeters * 3.2808399,
- maxMiles,
- miles,
- feet;
- if (maxFeet > 5280) {
- maxMiles = maxFeet / 5280;
- miles = this._getRoundNum(maxMiles);
- this._updateScale(this._iScale, miles + ' mi', miles / maxMiles);
- } else {
- feet = this._getRoundNum(maxFeet);
- this._updateScale(this._iScale, feet + ' ft', feet / maxFeet);
- }
- },
- _updateScale: function _updateScale(scale, text, ratio) {
- scale.style.width = Math.round(this.options.maxWidth * ratio) + 'px';
- scale.innerHTML = text;
- },
- _getRoundNum: function _getRoundNum(num) {
- var pow10 = Math.pow(10, (Math.floor(num) + '').length - 1),
- d = num / pow10;
- d = d >= 10 ? 10 : d >= 5 ? 5 : d >= 3 ? 3 : d >= 2 ? 2 : 1;
- return pow10 * d;
- }
- });
- // @factory L.control.scale(options?: Control.Scale options)
- // Creates an scale control with the given options.
- var scale = function scale(options) {
- return new Scale(options);
- };
- var ukrainianFlag = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';
- /*
- * @class Control.Attribution
- * @aka L.Control.Attribution
- * @inherits Control
- *
- * The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its [`attributionControl` option](#map-attributioncontrol) to `false`, and it fetches attribution texts from layers with the [`getAttribution` method](#layer-getattribution) automatically. Extends Control.
- */
- var Attribution = Control.extend({
- // @section
- // @aka Control.Attribution options
- options: {
- position: 'bottomright',
- // @option prefix: String|false = 'Leaflet'
- // The HTML text shown before the attributions. Pass `false` to disable.
- prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (Browser.inlineSvg ? ukrainianFlag + ' ' : '') + 'Leaflet</a>'
- },
- initialize: function initialize(options) {
- setOptions(this, options);
- this._attributions = {};
- },
- onAdd: function onAdd(map) {
- map.attributionControl = this;
- this._container = create$1('div', 'leaflet-control-attribution');
- disableClickPropagation(this._container);
- // TODO ugly, refactor
- for (var i in map._layers) {
- if (map._layers[i].getAttribution) {
- this.addAttribution(map._layers[i].getAttribution());
- }
- }
- this._update();
- map.on('layeradd', this._addAttribution, this);
- return this._container;
- },
- onRemove: function onRemove(map) {
- map.off('layeradd', this._addAttribution, this);
- },
- _addAttribution: function _addAttribution(ev) {
- if (ev.layer.getAttribution) {
- this.addAttribution(ev.layer.getAttribution());
- ev.layer.once('remove', function () {
- this.removeAttribution(ev.layer.getAttribution());
- }, this);
- }
- },
- // @method setPrefix(prefix: String|false): this
- // The HTML text shown before the attributions. Pass `false` to disable.
- setPrefix: function setPrefix(prefix) {
- this.options.prefix = prefix;
- this._update();
- return this;
- },
- // @method addAttribution(text: String): this
- // Adds an attribution text (e.g. `'© OpenStreetMap contributors'`).
- addAttribution: function addAttribution(text) {
- if (!text) {
- return this;
- }
- if (!this._attributions[text]) {
- this._attributions[text] = 0;
- }
- this._attributions[text]++;
- this._update();
- return this;
- },
- // @method removeAttribution(text: String): this
- // Removes an attribution text.
- removeAttribution: function removeAttribution(text) {
- if (!text) {
- return this;
- }
- if (this._attributions[text]) {
- this._attributions[text]--;
- this._update();
- }
- return this;
- },
- _update: function _update() {
- if (!this._map) {
- return;
- }
- var attribs = [];
- for (var i in this._attributions) {
- if (this._attributions[i]) {
- attribs.push(i);
- }
- }
- var prefixAndAttribs = [];
- if (this.options.prefix) {
- prefixAndAttribs.push(this.options.prefix);
- }
- if (attribs.length) {
- prefixAndAttribs.push(attribs.join(', '));
- }
- this._container.innerHTML = prefixAndAttribs.join(' <span aria-hidden="true">|</span> ');
- }
- });
- // @namespace Map
- // @section Control options
- // @option attributionControl: Boolean = true
- // Whether a [attribution control](#control-attribution) is added to the map by default.
- Map.mergeOptions({
- attributionControl: true
- });
- Map.addInitHook(function () {
- if (this.options.attributionControl) {
- new Attribution().addTo(this);
- }
- });
- // @namespace Control.Attribution
- // @factory L.control.attribution(options: Control.Attribution options)
- // Creates an attribution control.
- var attribution = function attribution(options) {
- return new Attribution(options);
- };
- Control.Layers = Layers;
- Control.Zoom = Zoom;
- Control.Scale = Scale;
- Control.Attribution = Attribution;
- control.layers = layers;
- control.zoom = zoom;
- control.scale = scale;
- control.attribution = attribution;
- /*
- L.Handler is a base class for handler classes that are used internally to inject
- interaction features like dragging to classes like Map and Marker.
- */
- // @class Handler
- // @aka L.Handler
- // Abstract class for map interaction handlers
- var Handler = Class.extend({
- initialize: function initialize(map) {
- this._map = map;
- },
- // @method enable(): this
- // Enables the handler
- enable: function enable() {
- if (this._enabled) {
- return this;
- }
- this._enabled = true;
- this.addHooks();
- return this;
- },
- // @method disable(): this
- // Disables the handler
- disable: function disable() {
- if (!this._enabled) {
- return this;
- }
- this._enabled = false;
- this.removeHooks();
- return this;
- },
- // @method enabled(): Boolean
- // Returns `true` if the handler is enabled
- enabled: function enabled() {
- return !!this._enabled;
- }
- // @section Extension methods
- // Classes inheriting from `Handler` must implement the two following methods:
- // @method addHooks()
- // Called when the handler is enabled, should add event hooks.
- // @method removeHooks()
- // Called when the handler is disabled, should remove the event hooks added previously.
- });
- // @section There is static function which can be called without instantiating L.Handler:
- // @function addTo(map: Map, name: String): this
- // Adds a new Handler to the given map with the given name.
- Handler.addTo = function (map, name) {
- map.addHandler(name, this);
- return this;
- };
- var Mixin = {
- Events: Events
- };
- /*
- * @class Draggable
- * @aka L.Draggable
- * @inherits Evented
- *
- * A class for making DOM elements draggable (including touch support).
- * Used internally for map and marker dragging. Only works for elements
- * that were positioned with [`L.DomUtil.setPosition`](#domutil-setposition).
- *
- * @example
- * ```js
- * var draggable = new L.Draggable(elementToDrag);
- * draggable.enable();
- * ```
- */
- var START = Browser.touch ? 'touchstart mousedown' : 'mousedown';
- var Draggable = Evented.extend({
- options: {
- // @section
- // @aka Draggable options
- // @option clickTolerance: Number = 3
- // The max number of pixels a user can shift the mouse pointer during a click
- // for it to be considered a valid click (as opposed to a mouse drag).
- clickTolerance: 3
- },
- // @constructor L.Draggable(el: HTMLElement, dragHandle?: HTMLElement, preventOutline?: Boolean, options?: Draggable options)
- // Creates a `Draggable` object for moving `el` when you start dragging the `dragHandle` element (equals `el` itself by default).
- initialize: function initialize(element, dragStartTarget, preventOutline, options) {
- setOptions(this, options);
- this._element = element;
- this._dragStartTarget = dragStartTarget || element;
- this._preventOutline = preventOutline;
- },
- // @method enable()
- // Enables the dragging ability
- enable: function enable() {
- if (this._enabled) {
- return;
- }
- on(this._dragStartTarget, START, this._onDown, this);
- this._enabled = true;
- },
- // @method disable()
- // Disables the dragging ability
- disable: function disable() {
- if (!this._enabled) {
- return;
- }
- // If we're currently dragging this draggable,
- // disabling it counts as first ending the drag.
- if (Draggable._dragging === this) {
- this.finishDrag(true);
- }
- off(this._dragStartTarget, START, this._onDown, this);
- this._enabled = false;
- this._moved = false;
- },
- _onDown: function _onDown(e) {
- // Ignore the event if disabled; this happens in IE11
- // under some circumstances, see #3666.
- if (!this._enabled) {
- return;
- }
- this._moved = false;
- if (hasClass(this._element, 'leaflet-zoom-anim')) {
- return;
- }
- if (e.touches && e.touches.length !== 1) {
- // Finish dragging to avoid conflict with touchZoom
- if (Draggable._dragging === this) {
- this.finishDrag();
- }
- return;
- }
- if (Draggable._dragging || e.shiftKey || e.which !== 1 && e.button !== 1 && !e.touches) {
- return;
- }
- Draggable._dragging = this; // Prevent dragging multiple objects at once.
- if (this._preventOutline) {
- preventOutline(this._element);
- }
- disableImageDrag();
- disableTextSelection();
- if (this._moving) {
- return;
- }
- // @event down: Event
- // Fired when a drag is about to start.
- this.fire('down');
- var first = e.touches ? e.touches[0] : e,
- sizedParent = getSizedParentNode(this._element);
- this._startPoint = new Point(first.clientX, first.clientY);
- this._startPos = getPosition(this._element);
- // Cache the scale, so that we can continuously compensate for it during drag (_onMove).
- this._parentScale = getScale(sizedParent);
- var mouseevent = e.type === 'mousedown';
- on(document, mouseevent ? 'mousemove' : 'touchmove', this._onMove, this);
- on(document, mouseevent ? 'mouseup' : 'touchend touchcancel', this._onUp, this);
- },
- _onMove: function _onMove(e) {
- // Ignore the event if disabled; this happens in IE11
- // under some circumstances, see #3666.
- if (!this._enabled) {
- return;
- }
- if (e.touches && e.touches.length > 1) {
- this._moved = true;
- return;
- }
- var first = e.touches && e.touches.length === 1 ? e.touches[0] : e,
- offset = new Point(first.clientX, first.clientY)._subtract(this._startPoint);
- if (!offset.x && !offset.y) {
- return;
- }
- if (Math.abs(offset.x) + Math.abs(offset.y) < this.options.clickTolerance) {
- return;
- }
- // We assume that the parent container's position, border and scale do not change for the duration of the drag.
- // Therefore there is no need to account for the position and border (they are eliminated by the subtraction)
- // and we can use the cached value for the scale.
- offset.x /= this._parentScale.x;
- offset.y /= this._parentScale.y;
- preventDefault(e);
- if (!this._moved) {
- // @event dragstart: Event
- // Fired when a drag starts
- this.fire('dragstart');
- this._moved = true;
- addClass(document.body, 'leaflet-dragging');
- this._lastTarget = e.target || e.srcElement;
- // IE and Edge do not give the <use> element, so fetch it
- // if necessary
- if (window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance) {
- this._lastTarget = this._lastTarget.correspondingUseElement;
- }
- addClass(this._lastTarget, 'leaflet-drag-target');
- }
- this._newPos = this._startPos.add(offset);
- this._moving = true;
- this._lastEvent = e;
- this._updatePosition();
- },
- _updatePosition: function _updatePosition() {
- var e = {
- originalEvent: this._lastEvent
- };
- // @event predrag: Event
- // Fired continuously during dragging *before* each corresponding
- // update of the element's position.
- this.fire('predrag', e);
- setPosition(this._element, this._newPos);
- // @event drag: Event
- // Fired continuously during dragging.
- this.fire('drag', e);
- },
- _onUp: function _onUp() {
- // Ignore the event if disabled; this happens in IE11
- // under some circumstances, see #3666.
- if (!this._enabled) {
- return;
- }
- this.finishDrag();
- },
- finishDrag: function finishDrag(noInertia) {
- removeClass(document.body, 'leaflet-dragging');
- if (this._lastTarget) {
- removeClass(this._lastTarget, 'leaflet-drag-target');
- this._lastTarget = null;
- }
- off(document, 'mousemove touchmove', this._onMove, this);
- off(document, 'mouseup touchend touchcancel', this._onUp, this);
- enableImageDrag();
- enableTextSelection();
- if (this._moved && this._moving) {
- // @event dragend: DragEndEvent
- // Fired when the drag ends.
- this.fire('dragend', {
- noInertia: noInertia,
- distance: this._newPos.distanceTo(this._startPos)
- });
- }
- this._moving = false;
- Draggable._dragging = false;
- }
- });
- /*
- * @namespace LineUtil
- *
- * Various utility functions for polyline points processing, used by Leaflet internally to make polylines lightning-fast.
- */
- // Simplify polyline with vertex reduction and Douglas-Peucker simplification.
- // Improves rendering performance dramatically by lessening the number of points to draw.
- // @function simplify(points: Point[], tolerance: Number): Point[]
- // Dramatically reduces the number of points in a polyline while retaining
- // its shape and returns a new array of simplified points, using the
- // [Ramer-Douglas-Peucker algorithm](https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm).
- // Used for a huge performance boost when processing/displaying Leaflet polylines for
- // each zoom level and also reducing visual noise. tolerance affects the amount of
- // simplification (lesser value means higher quality but slower and with more points).
- // Also released as a separated micro-library [Simplify.js](https://mourner.github.io/simplify-js/).
- function simplify(points, tolerance) {
- if (!tolerance || !points.length) {
- return points.slice();
- }
- var sqTolerance = tolerance * tolerance;
- // stage 1: vertex reduction
- points = _reducePoints(points, sqTolerance);
- // stage 2: Douglas-Peucker simplification
- points = _simplifyDP(points, sqTolerance);
- return points;
- }
- // @function pointToSegmentDistance(p: Point, p1: Point, p2: Point): Number
- // Returns the distance between point `p` and segment `p1` to `p2`.
- function pointToSegmentDistance(p, p1, p2) {
- return Math.sqrt(_sqClosestPointOnSegment(p, p1, p2, true));
- }
- // @function closestPointOnSegment(p: Point, p1: Point, p2: Point): Number
- // Returns the closest point from a point `p` on a segment `p1` to `p2`.
- function closestPointOnSegment(p, p1, p2) {
- return _sqClosestPointOnSegment(p, p1, p2);
- }
- // Ramer-Douglas-Peucker simplification, see https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm
- function _simplifyDP(points, sqTolerance) {
- var len = points.length,
- ArrayConstructor = (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) !== undefined + '' ? Uint8Array : Array,
- markers = new ArrayConstructor(len);
- markers[0] = markers[len - 1] = 1;
- _simplifyDPStep(points, markers, sqTolerance, 0, len - 1);
- var i,
- newPoints = [];
- for (i = 0; i < len; i++) {
- if (markers[i]) {
- newPoints.push(points[i]);
- }
- }
- return newPoints;
- }
- function _simplifyDPStep(points, markers, sqTolerance, first, last) {
- var maxSqDist = 0,
- index,
- i,
- sqDist;
- for (i = first + 1; i <= last - 1; i++) {
- sqDist = _sqClosestPointOnSegment(points[i], points[first], points[last], true);
- if (sqDist > maxSqDist) {
- index = i;
- maxSqDist = sqDist;
- }
- }
- if (maxSqDist > sqTolerance) {
- markers[index] = 1;
- _simplifyDPStep(points, markers, sqTolerance, first, index);
- _simplifyDPStep(points, markers, sqTolerance, index, last);
- }
- }
- // reduce points that are too close to each other to a single point
- function _reducePoints(points, sqTolerance) {
- var reducedPoints = [points[0]];
- for (var i = 1, prev = 0, len = points.length; i < len; i++) {
- if (_sqDist(points[i], points[prev]) > sqTolerance) {
- reducedPoints.push(points[i]);
- prev = i;
- }
- }
- if (prev < len - 1) {
- reducedPoints.push(points[len - 1]);
- }
- return reducedPoints;
- }
- var _lastCode;
- // @function clipSegment(a: Point, b: Point, bounds: Bounds, useLastCode?: Boolean, round?: Boolean): Point[]|Boolean
- // Clips the segment a to b by rectangular bounds with the
- // [Cohen-Sutherland algorithm](https://en.wikipedia.org/wiki/Cohen%E2%80%93Sutherland_algorithm)
- // (modifying the segment points directly!). Used by Leaflet to only show polyline
- // points that are on the screen or near, increasing performance.
- function clipSegment(a, b, bounds, useLastCode, round) {
- var codeA = useLastCode ? _lastCode : _getBitCode(a, bounds),
- codeB = _getBitCode(b, bounds),
- codeOut,
- p,
- newCode;
- // save 2nd code to avoid calculating it on the next segment
- _lastCode = codeB;
- while (true) {
- // if a,b is inside the clip window (trivial accept)
- if (!(codeA | codeB)) {
- return [a, b];
- }
- // if a,b is outside the clip window (trivial reject)
- if (codeA & codeB) {
- return false;
- }
- // other cases
- codeOut = codeA || codeB;
- p = _getEdgeIntersection(a, b, codeOut, bounds, round);
- newCode = _getBitCode(p, bounds);
- if (codeOut === codeA) {
- a = p;
- codeA = newCode;
- } else {
- b = p;
- codeB = newCode;
- }
- }
- }
- function _getEdgeIntersection(a, b, code, bounds, round) {
- var dx = b.x - a.x,
- dy = b.y - a.y,
- min = bounds.min,
- max = bounds.max,
- x,
- y;
- if (code & 8) {
- // top
- x = a.x + dx * (max.y - a.y) / dy;
- y = max.y;
- } else if (code & 4) {
- // bottom
- x = a.x + dx * (min.y - a.y) / dy;
- y = min.y;
- } else if (code & 2) {
- // right
- x = max.x;
- y = a.y + dy * (max.x - a.x) / dx;
- } else if (code & 1) {
- // left
- x = min.x;
- y = a.y + dy * (min.x - a.x) / dx;
- }
- return new Point(x, y, round);
- }
- function _getBitCode(p, bounds) {
- var code = 0;
- if (p.x < bounds.min.x) {
- // left
- code |= 1;
- } else if (p.x > bounds.max.x) {
- // right
- code |= 2;
- }
- if (p.y < bounds.min.y) {
- // bottom
- code |= 4;
- } else if (p.y > bounds.max.y) {
- // top
- code |= 8;
- }
- return code;
- }
- // square distance (to avoid unnecessary Math.sqrt calls)
- function _sqDist(p1, p2) {
- var dx = p2.x - p1.x,
- dy = p2.y - p1.y;
- return dx * dx + dy * dy;
- }
- // return closest point on segment or distance to that point
- function _sqClosestPointOnSegment(p, p1, p2, sqDist) {
- var x = p1.x,
- y = p1.y,
- dx = p2.x - x,
- dy = p2.y - y,
- dot = dx * dx + dy * dy,
- t;
- if (dot > 0) {
- t = ((p.x - x) * dx + (p.y - y) * dy) / dot;
- if (t > 1) {
- x = p2.x;
- y = p2.y;
- } else if (t > 0) {
- x += dx * t;
- y += dy * t;
- }
- }
- dx = p.x - x;
- dy = p.y - y;
- return sqDist ? dx * dx + dy * dy : new Point(x, y);
- }
- // @function isFlat(latlngs: LatLng[]): Boolean
- // Returns true if `latlngs` is a flat array, false is nested.
- function isFlat(latlngs) {
- return !isArray(latlngs[0]) || _typeof(latlngs[0][0]) !== 'object' && typeof latlngs[0][0] !== 'undefined';
- }
- function _flat(latlngs) {
- __f__("warn", 'Deprecated use of _flat, please use L.LineUtil.isFlat instead.', " at node_modules/leaflet/dist/leaflet-src.js:6391");
- return isFlat(latlngs);
- }
- /* @function polylineCenter(latlngs: LatLng[], crs: CRS): LatLng
- * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polyline.
- */
- function polylineCenter(latlngs, crs) {
- var i, halfDist, segDist, dist, p1, p2, ratio, center;
- if (!latlngs || latlngs.length === 0) {
- throw new Error('latlngs not passed');
- }
- if (!isFlat(latlngs)) {
- __f__("warn", 'latlngs are not flat! Only the first ring will be used', " at node_modules/leaflet/dist/leaflet-src.js:6406");
- latlngs = latlngs[0];
- }
- var points = [];
- for (var j in latlngs) {
- points.push(crs.project(toLatLng(latlngs[j])));
- }
- var len = points.length;
- for (i = 0, halfDist = 0; i < len - 1; i++) {
- halfDist += points[i].distanceTo(points[i + 1]) / 2;
- }
- // The line is so small in the current view that all points are on the same pixel.
- if (halfDist === 0) {
- center = points[0];
- } else {
- for (i = 0, dist = 0; i < len - 1; i++) {
- p1 = points[i];
- p2 = points[i + 1];
- segDist = p1.distanceTo(p2);
- dist += segDist;
- if (dist > halfDist) {
- ratio = (dist - halfDist) / segDist;
- center = [p2.x - ratio * (p2.x - p1.x), p2.y - ratio * (p2.y - p1.y)];
- break;
- }
- }
- }
- return crs.unproject(toPoint(center));
- }
- var LineUtil = {
- __proto__: null,
- simplify: simplify,
- pointToSegmentDistance: pointToSegmentDistance,
- closestPointOnSegment: closestPointOnSegment,
- clipSegment: clipSegment,
- _getEdgeIntersection: _getEdgeIntersection,
- _getBitCode: _getBitCode,
- _sqClosestPointOnSegment: _sqClosestPointOnSegment,
- isFlat: isFlat,
- _flat: _flat,
- polylineCenter: polylineCenter
- };
- /*
- * @namespace PolyUtil
- * Various utility functions for polygon geometries.
- */
- /* @function clipPolygon(points: Point[], bounds: Bounds, round?: Boolean): Point[]
- * Clips the polygon geometry defined by the given `points` by the given bounds (using the [Sutherland-Hodgman algorithm](https://en.wikipedia.org/wiki/Sutherland%E2%80%93Hodgman_algorithm)).
- * Used by Leaflet to only show polygon points that are on the screen or near, increasing
- * performance. Note that polygon points needs different algorithm for clipping
- * than polyline, so there's a separate method for it.
- */
- function clipPolygon(points, bounds, round) {
- var clippedPoints,
- edges = [1, 4, 2, 8],
- i,
- j,
- k,
- a,
- b,
- len,
- edge,
- p;
- for (i = 0, len = points.length; i < len; i++) {
- points[i]._code = _getBitCode(points[i], bounds);
- }
- // for each edge (left, bottom, right, top)
- for (k = 0; k < 4; k++) {
- edge = edges[k];
- clippedPoints = [];
- for (i = 0, len = points.length, j = len - 1; i < len; j = i++) {
- a = points[i];
- b = points[j];
- // if a is inside the clip window
- if (!(a._code & edge)) {
- // if b is outside the clip window (a->b goes out of screen)
- if (b._code & edge) {
- p = _getEdgeIntersection(b, a, edge, bounds, round);
- p._code = _getBitCode(p, bounds);
- clippedPoints.push(p);
- }
- clippedPoints.push(a);
- // else if b is inside the clip window (a->b enters the screen)
- } else if (!(b._code & edge)) {
- p = _getEdgeIntersection(b, a, edge, bounds, round);
- p._code = _getBitCode(p, bounds);
- clippedPoints.push(p);
- }
- }
- points = clippedPoints;
- }
- return points;
- }
- /* @function polygonCenter(latlngs: LatLng[] crs: CRS): LatLng
- * Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the passed LatLngs (first ring) from a polygon.
- */
- function polygonCenter(latlngs, crs) {
- var i, j, p1, p2, f, area, x, y, center;
- if (!latlngs || latlngs.length === 0) {
- throw new Error('latlngs not passed');
- }
- if (!isFlat(latlngs)) {
- __f__("warn", 'latlngs are not flat! Only the first ring will be used', " at node_modules/leaflet/dist/leaflet-src.js:6523");
- latlngs = latlngs[0];
- }
- var points = [];
- for (var k in latlngs) {
- points.push(crs.project(toLatLng(latlngs[k])));
- }
- var len = points.length;
- area = x = y = 0;
- // polygon centroid algorithm;
- for (i = 0, j = len - 1; i < len; j = i++) {
- p1 = points[i];
- p2 = points[j];
- f = p1.y * p2.x - p2.y * p1.x;
- x += (p1.x + p2.x) * f;
- y += (p1.y + p2.y) * f;
- area += f * 3;
- }
- if (area === 0) {
- // Polygon is so small that all points are on same pixel.
- center = points[0];
- } else {
- center = [x / area, y / area];
- }
- return crs.unproject(toPoint(center));
- }
- var PolyUtil = {
- __proto__: null,
- clipPolygon: clipPolygon,
- polygonCenter: polygonCenter
- };
- /*
- * @namespace Projection
- * @section
- * Leaflet comes with a set of already defined Projections out of the box:
- *
- * @projection L.Projection.LonLat
- *
- * Equirectangular, or Plate Carree projection — the most simple projection,
- * mostly used by GIS enthusiasts. Directly maps `x` as longitude, and `y` as
- * latitude. Also suitable for flat worlds, e.g. game maps. Used by the
- * `EPSG:4326` and `Simple` CRS.
- */
- var LonLat = {
- project: function project(latlng) {
- return new Point(latlng.lng, latlng.lat);
- },
- unproject: function unproject(point) {
- return new LatLng(point.y, point.x);
- },
- bounds: new Bounds([-180, -90], [180, 90])
- };
- /*
- * @namespace Projection
- * @projection L.Projection.Mercator
- *
- * Elliptical Mercator projection — more complex than Spherical Mercator. Assumes that Earth is an ellipsoid. Used by the EPSG:3395 CRS.
- */
- var Mercator = {
- R: 6378137,
- R_MINOR: 6356752.314245179,
- bounds: new Bounds([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]),
- project: function project(latlng) {
- var d = Math.PI / 180,
- r = this.R,
- y = latlng.lat * d,
- tmp = this.R_MINOR / r,
- e = Math.sqrt(1 - tmp * tmp),
- con = e * Math.sin(y);
- var ts = Math.tan(Math.PI / 4 - y / 2) / Math.pow((1 - con) / (1 + con), e / 2);
- y = -r * Math.log(Math.max(ts, 1E-10));
- return new Point(latlng.lng * d * r, y);
- },
- unproject: function unproject(point) {
- var d = 180 / Math.PI,
- r = this.R,
- tmp = this.R_MINOR / r,
- e = Math.sqrt(1 - tmp * tmp),
- ts = Math.exp(-point.y / r),
- phi = Math.PI / 2 - 2 * Math.atan(ts);
- for (var i = 0, dphi = 0.1, con; i < 15 && Math.abs(dphi) > 1e-7; i++) {
- con = e * Math.sin(phi);
- con = Math.pow((1 - con) / (1 + con), e / 2);
- dphi = Math.PI / 2 - 2 * Math.atan(ts * con) - phi;
- phi += dphi;
- }
- return new LatLng(phi * d, point.x * d / r);
- }
- };
- /*
- * @class Projection
- * An object with methods for projecting geographical coordinates of the world onto
- * a flat surface (and back). See [Map projection](https://en.wikipedia.org/wiki/Map_projection).
- * @property bounds: Bounds
- * The bounds (specified in CRS units) where the projection is valid
- * @method project(latlng: LatLng): Point
- * Projects geographical coordinates into a 2D point.
- * Only accepts actual `L.LatLng` instances, not arrays.
- * @method unproject(point: Point): LatLng
- * The inverse of `project`. Projects a 2D point into a geographical location.
- * Only accepts actual `L.Point` instances, not arrays.
- * Note that the projection instances do not inherit from Leaflet's `Class` object,
- * and can't be instantiated. Also, new classes can't inherit from them,
- * and methods can't be added to them with the `include` function.
- */
- var index = {
- __proto__: null,
- LonLat: LonLat,
- Mercator: Mercator,
- SphericalMercator: SphericalMercator
- };
- /*
- * @namespace CRS
- * @crs L.CRS.EPSG3395
- *
- * Rarely used by some commercial tile providers. Uses Elliptical Mercator projection.
- */
- var EPSG3395 = extend({}, Earth, {
- code: 'EPSG:3395',
- projection: Mercator,
- transformation: function () {
- var scale = 0.5 / (Math.PI * Mercator.R);
- return toTransformation(scale, 0.5, -scale, 0.5);
- }()
- });
- /*
- * @namespace CRS
- * @crs L.CRS.EPSG4326
- *
- * A common CRS among GIS enthusiasts. Uses simple Equirectangular projection.
- *
- * Leaflet 1.0.x complies with the [TMS coordinate scheme for EPSG:4326](https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic),
- * which is a breaking change from 0.7.x behaviour. If you are using a `TileLayer`
- * with this CRS, ensure that there are two 256x256 pixel tiles covering the
- * whole earth at zoom level zero, and that the tile coordinate origin is (-180,+90),
- * or (-180,-90) for `TileLayer`s with [the `tms` option](#tilelayer-tms) set.
- */
- var EPSG4326 = extend({}, Earth, {
- code: 'EPSG:4326',
- projection: LonLat,
- transformation: toTransformation(1 / 180, 1, -1 / 180, 0.5)
- });
- /*
- * @namespace CRS
- * @crs L.CRS.Simple
- *
- * A simple CRS that maps longitude and latitude into `x` and `y` directly.
- * May be used for maps of flat surfaces (e.g. game maps). Note that the `y`
- * axis should still be inverted (going from bottom to top). `distance()` returns
- * simple euclidean distance.
- */
- var Simple = extend({}, CRS, {
- projection: LonLat,
- transformation: toTransformation(1, 0, -1, 0),
- scale: function scale(zoom) {
- return Math.pow(2, zoom);
- },
- zoom: function zoom(scale) {
- return Math.log(scale) / Math.LN2;
- },
- distance: function distance(latlng1, latlng2) {
- var dx = latlng2.lng - latlng1.lng,
- dy = latlng2.lat - latlng1.lat;
- return Math.sqrt(dx * dx + dy * dy);
- },
- infinite: true
- });
- CRS.Earth = Earth;
- CRS.EPSG3395 = EPSG3395;
- CRS.EPSG3857 = EPSG3857;
- CRS.EPSG900913 = EPSG900913;
- CRS.EPSG4326 = EPSG4326;
- CRS.Simple = Simple;
- /*
- * @class Layer
- * @inherits Evented
- * @aka L.Layer
- * @aka ILayer
- *
- * A set of methods from the Layer base class that all Leaflet layers use.
- * Inherits all methods, options and events from `L.Evented`.
- *
- * @example
- *
- * ```js
- * var layer = L.marker(latlng).addTo(map);
- * layer.addTo(map);
- * layer.remove();
- * ```
- *
- * @event add: Event
- * Fired after the layer is added to a map
- *
- * @event remove: Event
- * Fired after the layer is removed from a map
- */
- var Layer = Evented.extend({
- // Classes extending `L.Layer` will inherit the following options:
- options: {
- // @option pane: String = 'overlayPane'
- // By default the layer will be added to the map's [overlay pane](#map-overlaypane). Overriding this option will cause the layer to be placed on another pane by default.
- pane: 'overlayPane',
- // @option attribution: String = null
- // String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.
- attribution: null,
- bubblingMouseEvents: true
- },
- /* @section
- * Classes extending `L.Layer` will inherit the following methods:
- *
- * @method addTo(map: Map|LayerGroup): this
- * Adds the layer to the given map or layer group.
- */
- addTo: function addTo(map) {
- map.addLayer(this);
- return this;
- },
- // @method remove: this
- // Removes the layer from the map it is currently active on.
- remove: function remove() {
- return this.removeFrom(this._map || this._mapToAdd);
- },
- // @method removeFrom(map: Map): this
- // Removes the layer from the given map
- //
- // @alternative
- // @method removeFrom(group: LayerGroup): this
- // Removes the layer from the given `LayerGroup`
- removeFrom: function removeFrom(obj) {
- if (obj) {
- obj.removeLayer(this);
- }
- return this;
- },
- // @method getPane(name? : String): HTMLElement
- // Returns the `HTMLElement` representing the named pane on the map. If `name` is omitted, returns the pane for this layer.
- getPane: function getPane(name) {
- return this._map.getPane(name ? this.options[name] || name : this.options.pane);
- },
- addInteractiveTarget: function addInteractiveTarget(targetEl) {
- this._map._targets[stamp(targetEl)] = this;
- return this;
- },
- removeInteractiveTarget: function removeInteractiveTarget(targetEl) {
- delete this._map._targets[stamp(targetEl)];
- return this;
- },
- // @method getAttribution: String
- // Used by the `attribution control`, returns the [attribution option](#gridlayer-attribution).
- getAttribution: function getAttribution() {
- return this.options.attribution;
- },
- _layerAdd: function _layerAdd(e) {
- var map = e.target;
- // check in case layer gets added and then removed before the map is ready
- if (!map.hasLayer(this)) {
- return;
- }
- this._map = map;
- this._zoomAnimated = map._zoomAnimated;
- if (this.getEvents) {
- var events = this.getEvents();
- map.on(events, this);
- this.once('remove', function () {
- map.off(events, this);
- }, this);
- }
- this.onAdd(map);
- this.fire('add');
- map.fire('layeradd', {
- layer: this
- });
- }
- });
- /* @section Extension methods
- * @uninheritable
- *
- * Every layer should extend from `L.Layer` and (re-)implement the following methods.
- *
- * @method onAdd(map: Map): this
- * Should contain code that creates DOM elements for the layer, adds them to `map panes` where they should belong and puts listeners on relevant map events. Called on [`map.addLayer(layer)`](#map-addlayer).
- *
- * @method onRemove(map: Map): this
- * Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in [`onAdd`](#layer-onadd). Called on [`map.removeLayer(layer)`](#map-removelayer).
- *
- * @method getEvents(): Object
- * This optional method should return an object like `{ viewreset: this._reset }` for [`addEventListener`](#evented-addeventlistener). The event handlers in this object will be automatically added and removed from the map with your layer.
- *
- * @method getAttribution(): String
- * This optional method should return a string containing HTML to be shown on the `Attribution control` whenever the layer is visible.
- *
- * @method beforeAdd(map: Map): this
- * Optional method. Called on [`map.addLayer(layer)`](#map-addlayer), before the layer is added to the map, before events are initialized, without waiting until the map is in a usable state. Use for early initialization only.
- */
- /* @namespace Map
- * @section Layer events
- *
- * @event layeradd: LayerEvent
- * Fired when a new layer is added to the map.
- *
- * @event layerremove: LayerEvent
- * Fired when some layer is removed from the map
- *
- * @section Methods for Layers and Controls
- */
- Map.include({
- // @method addLayer(layer: Layer): this
- // Adds the given layer to the map
- addLayer: function addLayer(layer) {
- if (!layer._layerAdd) {
- throw new Error('The provided object is not a Layer.');
- }
- var id = stamp(layer);
- if (this._layers[id]) {
- return this;
- }
- this._layers[id] = layer;
- layer._mapToAdd = this;
- if (layer.beforeAdd) {
- layer.beforeAdd(this);
- }
- this.whenReady(layer._layerAdd, layer);
- return this;
- },
- // @method removeLayer(layer: Layer): this
- // Removes the given layer from the map.
- removeLayer: function removeLayer(layer) {
- var id = stamp(layer);
- if (!this._layers[id]) {
- return this;
- }
- if (this._loaded) {
- layer.onRemove(this);
- }
- delete this._layers[id];
- if (this._loaded) {
- this.fire('layerremove', {
- layer: layer
- });
- layer.fire('remove');
- }
- layer._map = layer._mapToAdd = null;
- return this;
- },
- // @method hasLayer(layer: Layer): Boolean
- // Returns `true` if the given layer is currently added to the map
- hasLayer: function hasLayer(layer) {
- return stamp(layer) in this._layers;
- },
- /* @method eachLayer(fn: Function, context?: Object): this
- * Iterates over the layers of the map, optionally specifying context of the iterator function.
- * ```
- * map.eachLayer(function(layer){
- * layer.bindPopup('Hello');
- * });
- * ```
- */
- eachLayer: function eachLayer(method, context) {
- for (var i in this._layers) {
- method.call(context, this._layers[i]);
- }
- return this;
- },
- _addLayers: function _addLayers(layers) {
- layers = layers ? isArray(layers) ? layers : [layers] : [];
- for (var i = 0, len = layers.length; i < len; i++) {
- this.addLayer(layers[i]);
- }
- },
- _addZoomLimit: function _addZoomLimit(layer) {
- if (!isNaN(layer.options.maxZoom) || !isNaN(layer.options.minZoom)) {
- this._zoomBoundLayers[stamp(layer)] = layer;
- this._updateZoomLevels();
- }
- },
- _removeZoomLimit: function _removeZoomLimit(layer) {
- var id = stamp(layer);
- if (this._zoomBoundLayers[id]) {
- delete this._zoomBoundLayers[id];
- this._updateZoomLevels();
- }
- },
- _updateZoomLevels: function _updateZoomLevels() {
- var minZoom = Infinity,
- maxZoom = -Infinity,
- oldZoomSpan = this._getZoomSpan();
- for (var i in this._zoomBoundLayers) {
- var options = this._zoomBoundLayers[i].options;
- minZoom = options.minZoom === undefined ? minZoom : Math.min(minZoom, options.minZoom);
- maxZoom = options.maxZoom === undefined ? maxZoom : Math.max(maxZoom, options.maxZoom);
- }
- this._layersMaxZoom = maxZoom === -Infinity ? undefined : maxZoom;
- this._layersMinZoom = minZoom === Infinity ? undefined : minZoom;
- // @section Map state change events
- // @event zoomlevelschange: Event
- // Fired when the number of zoomlevels on the map is changed due
- // to adding or removing a layer.
- if (oldZoomSpan !== this._getZoomSpan()) {
- this.fire('zoomlevelschange');
- }
- if (this.options.maxZoom === undefined && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom) {
- this.setZoom(this._layersMaxZoom);
- }
- if (this.options.minZoom === undefined && this._layersMinZoom && this.getZoom() < this._layersMinZoom) {
- this.setZoom(this._layersMinZoom);
- }
- }
- });
- /*
- * @class LayerGroup
- * @aka L.LayerGroup
- * @inherits Interactive layer
- *
- * Used to group several layers and handle them as one. If you add it to the map,
- * any layers added or removed from the group will be added/removed on the map as
- * well. Extends `Layer`.
- *
- * @example
- *
- * ```js
- * L.layerGroup([marker1, marker2])
- * .addLayer(polyline)
- * .addTo(map);
- * ```
- */
- var LayerGroup = Layer.extend({
- initialize: function initialize(layers, options) {
- setOptions(this, options);
- this._layers = {};
- var i, len;
- if (layers) {
- for (i = 0, len = layers.length; i < len; i++) {
- this.addLayer(layers[i]);
- }
- }
- },
- // @method addLayer(layer: Layer): this
- // Adds the given layer to the group.
- addLayer: function addLayer(layer) {
- var id = this.getLayerId(layer);
- this._layers[id] = layer;
- if (this._map) {
- this._map.addLayer(layer);
- }
- return this;
- },
- // @method removeLayer(layer: Layer): this
- // Removes the given layer from the group.
- // @alternative
- // @method removeLayer(id: Number): this
- // Removes the layer with the given internal ID from the group.
- removeLayer: function removeLayer(layer) {
- var id = layer in this._layers ? layer : this.getLayerId(layer);
- if (this._map && this._layers[id]) {
- this._map.removeLayer(this._layers[id]);
- }
- delete this._layers[id];
- return this;
- },
- // @method hasLayer(layer: Layer): Boolean
- // Returns `true` if the given layer is currently added to the group.
- // @alternative
- // @method hasLayer(id: Number): Boolean
- // Returns `true` if the given internal ID is currently added to the group.
- hasLayer: function hasLayer(layer) {
- var layerId = typeof layer === 'number' ? layer : this.getLayerId(layer);
- return layerId in this._layers;
- },
- // @method clearLayers(): this
- // Removes all the layers from the group.
- clearLayers: function clearLayers() {
- return this.eachLayer(this.removeLayer, this);
- },
- // @method invoke(methodName: String, …): this
- // Calls `methodName` on every layer contained in this group, passing any
- // additional parameters. Has no effect if the layers contained do not
- // implement `methodName`.
- invoke: function invoke(methodName) {
- var args = Array.prototype.slice.call(arguments, 1),
- i,
- layer;
- for (i in this._layers) {
- layer = this._layers[i];
- if (layer[methodName]) {
- layer[methodName].apply(layer, args);
- }
- }
- return this;
- },
- onAdd: function onAdd(map) {
- this.eachLayer(map.addLayer, map);
- },
- onRemove: function onRemove(map) {
- this.eachLayer(map.removeLayer, map);
- },
- // @method eachLayer(fn: Function, context?: Object): this
- // Iterates over the layers of the group, optionally specifying context of the iterator function.
- // ```js
- // group.eachLayer(function (layer) {
- // layer.bindPopup('Hello');
- // });
- // ```
- eachLayer: function eachLayer(method, context) {
- for (var i in this._layers) {
- method.call(context, this._layers[i]);
- }
- return this;
- },
- // @method getLayer(id: Number): Layer
- // Returns the layer with the given internal ID.
- getLayer: function getLayer(id) {
- return this._layers[id];
- },
- // @method getLayers(): Layer[]
- // Returns an array of all the layers added to the group.
- getLayers: function getLayers() {
- var layers = [];
- this.eachLayer(layers.push, layers);
- return layers;
- },
- // @method setZIndex(zIndex: Number): this
- // Calls `setZIndex` on every layer contained in this group, passing the z-index.
- setZIndex: function setZIndex(zIndex) {
- return this.invoke('setZIndex', zIndex);
- },
- // @method getLayerId(layer: Layer): Number
- // Returns the internal ID for a layer
- getLayerId: function getLayerId(layer) {
- return stamp(layer);
- }
- });
- // @factory L.layerGroup(layers?: Layer[], options?: Object)
- // Create a layer group, optionally given an initial set of layers and an `options` object.
- var layerGroup = function layerGroup(layers, options) {
- return new LayerGroup(layers, options);
- };
- /*
- * @class FeatureGroup
- * @aka L.FeatureGroup
- * @inherits LayerGroup
- *
- * Extended `LayerGroup` that makes it easier to do the same thing to all its member layers:
- * * [`bindPopup`](#layer-bindpopup) binds a popup to all of the layers at once (likewise with [`bindTooltip`](#layer-bindtooltip))
- * * Events are propagated to the `FeatureGroup`, so if the group has an event
- * handler, it will handle events from any of the layers. This includes mouse events
- * and custom events.
- * * Has `layeradd` and `layerremove` events
- *
- * @example
- *
- * ```js
- * L.featureGroup([marker1, marker2, polyline])
- * .bindPopup('Hello world!')
- * .on('click', function() { alert('Clicked on a member of the group!'); })
- * .addTo(map);
- * ```
- */
- var FeatureGroup = LayerGroup.extend({
- addLayer: function addLayer(layer) {
- if (this.hasLayer(layer)) {
- return this;
- }
- layer.addEventParent(this);
- LayerGroup.prototype.addLayer.call(this, layer);
- // @event layeradd: LayerEvent
- // Fired when a layer is added to this `FeatureGroup`
- return this.fire('layeradd', {
- layer: layer
- });
- },
- removeLayer: function removeLayer(layer) {
- if (!this.hasLayer(layer)) {
- return this;
- }
- if (layer in this._layers) {
- layer = this._layers[layer];
- }
- layer.removeEventParent(this);
- LayerGroup.prototype.removeLayer.call(this, layer);
- // @event layerremove: LayerEvent
- // Fired when a layer is removed from this `FeatureGroup`
- return this.fire('layerremove', {
- layer: layer
- });
- },
- // @method setStyle(style: Path options): this
- // Sets the given path options to each layer of the group that has a `setStyle` method.
- setStyle: function setStyle(style) {
- return this.invoke('setStyle', style);
- },
- // @method bringToFront(): this
- // Brings the layer group to the top of all other layers
- bringToFront: function bringToFront() {
- return this.invoke('bringToFront');
- },
- // @method bringToBack(): this
- // Brings the layer group to the back of all other layers
- bringToBack: function bringToBack() {
- return this.invoke('bringToBack');
- },
- // @method getBounds(): LatLngBounds
- // Returns the LatLngBounds of the Feature Group (created from bounds and coordinates of its children).
- getBounds: function getBounds() {
- var bounds = new LatLngBounds();
- for (var id in this._layers) {
- var layer = this._layers[id];
- bounds.extend(layer.getBounds ? layer.getBounds() : layer.getLatLng());
- }
- return bounds;
- }
- });
- // @factory L.featureGroup(layers?: Layer[], options?: Object)
- // Create a feature group, optionally given an initial set of layers and an `options` object.
- var featureGroup = function featureGroup(layers, options) {
- return new FeatureGroup(layers, options);
- };
- /*
- * @class Icon
- * @aka L.Icon
- *
- * Represents an icon to provide when creating a marker.
- *
- * @example
- *
- * ```js
- * var myIcon = L.icon({
- * iconUrl: 'my-icon.png',
- * iconRetinaUrl: 'my-icon@2x.png',
- * iconSize: [38, 95],
- * iconAnchor: [22, 94],
- * popupAnchor: [-3, -76],
- * shadowUrl: 'my-icon-shadow.png',
- * shadowRetinaUrl: 'my-icon-shadow@2x.png',
- * shadowSize: [68, 95],
- * shadowAnchor: [22, 94]
- * });
- *
- * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
- * ```
- *
- * `L.Icon.Default` extends `L.Icon` and is the blue icon Leaflet uses for markers by default.
- *
- */
- var Icon = Class.extend({
- /* @section
- * @aka Icon options
- *
- * @option iconUrl: String = null
- * **(required)** The URL to the icon image (absolute or relative to your script path).
- *
- * @option iconRetinaUrl: String = null
- * The URL to a retina sized version of the icon image (absolute or relative to your
- * script path). Used for Retina screen devices.
- *
- * @option iconSize: Point = null
- * Size of the icon image in pixels.
- *
- * @option iconAnchor: Point = null
- * The coordinates of the "tip" of the icon (relative to its top left corner). The icon
- * will be aligned so that this point is at the marker's geographical location. Centered
- * by default if size is specified, also can be set in CSS with negative margins.
- *
- * @option popupAnchor: Point = [0, 0]
- * The coordinates of the point from which popups will "open", relative to the icon anchor.
- *
- * @option tooltipAnchor: Point = [0, 0]
- * The coordinates of the point from which tooltips will "open", relative to the icon anchor.
- *
- * @option shadowUrl: String = null
- * The URL to the icon shadow image. If not specified, no shadow image will be created.
- *
- * @option shadowRetinaUrl: String = null
- *
- * @option shadowSize: Point = null
- * Size of the shadow image in pixels.
- *
- * @option shadowAnchor: Point = null
- * The coordinates of the "tip" of the shadow (relative to its top left corner) (the same
- * as iconAnchor if not specified).
- *
- * @option className: String = ''
- * A custom class name to assign to both icon and shadow images. Empty by default.
- */
- options: {
- popupAnchor: [0, 0],
- tooltipAnchor: [0, 0],
- // @option crossOrigin: Boolean|String = false
- // Whether the crossOrigin attribute will be added to the tiles.
- // If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
- // Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
- crossOrigin: false
- },
- initialize: function initialize(options) {
- setOptions(this, options);
- },
- // @method createIcon(oldIcon?: HTMLElement): HTMLElement
- // Called internally when the icon has to be shown, returns a `<img>` HTML element
- // styled according to the options.
- createIcon: function createIcon(oldIcon) {
- return this._createIcon('icon', oldIcon);
- },
- // @method createShadow(oldIcon?: HTMLElement): HTMLElement
- // As `createIcon`, but for the shadow beneath it.
- createShadow: function createShadow(oldIcon) {
- return this._createIcon('shadow', oldIcon);
- },
- _createIcon: function _createIcon(name, oldIcon) {
- var src = this._getIconUrl(name);
- if (!src) {
- if (name === 'icon') {
- throw new Error('iconUrl not set in Icon options (see the docs).');
- }
- return null;
- }
- var img = this._createImg(src, oldIcon && oldIcon.tagName === 'IMG' ? oldIcon : null);
- this._setIconStyles(img, name);
- if (this.options.crossOrigin || this.options.crossOrigin === '') {
- img.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;
- }
- return img;
- },
- _setIconStyles: function _setIconStyles(img, name) {
- var options = this.options;
- var sizeOption = options[name + 'Size'];
- if (typeof sizeOption === 'number') {
- sizeOption = [sizeOption, sizeOption];
- }
- var size = toPoint(sizeOption),
- anchor = toPoint(name === 'shadow' && options.shadowAnchor || options.iconAnchor || size && size.divideBy(2, true));
- img.className = 'leaflet-marker-' + name + ' ' + (options.className || '');
- if (anchor) {
- img.style.marginLeft = -anchor.x + 'px';
- img.style.marginTop = -anchor.y + 'px';
- }
- if (size) {
- img.style.width = size.x + 'px';
- img.style.height = size.y + 'px';
- }
- },
- _createImg: function _createImg(src, el) {
- el = el || document.createElement('img');
- el.src = src;
- return el;
- },
- _getIconUrl: function _getIconUrl(name) {
- return Browser.retina && this.options[name + 'RetinaUrl'] || this.options[name + 'Url'];
- }
- });
- // @factory L.icon(options: Icon options)
- // Creates an icon instance with the given options.
- function icon(options) {
- return new Icon(options);
- }
- /*
- * @miniclass Icon.Default (Icon)
- * @aka L.Icon.Default
- * @section
- *
- * A trivial subclass of `Icon`, represents the icon to use in `Marker`s when
- * no icon is specified. Points to the blue marker image distributed with Leaflet
- * releases.
- *
- * In order to customize the default icon, just change the properties of `L.Icon.Default.prototype.options`
- * (which is a set of `Icon options`).
- *
- * If you want to _completely_ replace the default icon, override the
- * `L.Marker.prototype.options.icon` with your own icon instead.
- */
- var IconDefault = Icon.extend({
- options: {
- iconUrl: 'marker-icon.png',
- iconRetinaUrl: 'marker-icon-2x.png',
- shadowUrl: 'marker-shadow.png',
- iconSize: [25, 41],
- iconAnchor: [12, 41],
- popupAnchor: [1, -34],
- tooltipAnchor: [16, -28],
- shadowSize: [41, 41]
- },
- _getIconUrl: function _getIconUrl(name) {
- if (typeof IconDefault.imagePath !== 'string') {
- // Deprecated, backwards-compatibility only
- IconDefault.imagePath = this._detectIconPath();
- }
- // @option imagePath: String
- // `Icon.Default` will try to auto-detect the location of the
- // blue icon images. If you are placing these images in a non-standard
- // way, set this option to point to the right path.
- return (this.options.imagePath || IconDefault.imagePath) + Icon.prototype._getIconUrl.call(this, name);
- },
- _stripUrl: function _stripUrl(path) {
- // separate function to use in tests
- var strip = function strip(str, re, idx) {
- var match = re.exec(str);
- return match && match[idx];
- };
- path = strip(path, /^url\((['"])?(.+)\1\)$/, 2);
- return path && strip(path, /^(.*)marker-icon\.png$/, 1);
- },
- _detectIconPath: function _detectIconPath() {
- var el = create$1('div', 'leaflet-default-icon-path', document.body);
- var path = getStyle(el, 'background-image') || getStyle(el, 'backgroundImage'); // IE8
- document.body.removeChild(el);
- path = this._stripUrl(path);
- if (path) {
- return path;
- }
- var link = document.querySelector('link[href$="leaflet.css"]');
- if (!link) {
- return '';
- }
- return link.href.substring(0, link.href.length - 'leaflet.css'.length - 1);
- }
- });
- /*
- * L.Handler.MarkerDrag is used internally by L.Marker to make the markers draggable.
- */
- /* @namespace Marker
- * @section Interaction handlers
- *
- * Interaction handlers are properties of a marker instance that allow you to control interaction behavior in runtime, enabling or disabling certain features such as dragging (see `Handler` methods). Example:
- *
- * ```js
- * marker.dragging.disable();
- * ```
- *
- * @property dragging: Handler
- * Marker dragging handler (by both mouse and touch). Only valid when the marker is on the map (Otherwise set [`marker.options.draggable`](#marker-draggable)).
- */
- var MarkerDrag = Handler.extend({
- initialize: function initialize(marker) {
- this._marker = marker;
- },
- addHooks: function addHooks() {
- var icon = this._marker._icon;
- if (!this._draggable) {
- this._draggable = new Draggable(icon, icon, true);
- }
- this._draggable.on({
- dragstart: this._onDragStart,
- predrag: this._onPreDrag,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this).enable();
- addClass(icon, 'leaflet-marker-draggable');
- },
- removeHooks: function removeHooks() {
- this._draggable.off({
- dragstart: this._onDragStart,
- predrag: this._onPreDrag,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this).disable();
- if (this._marker._icon) {
- removeClass(this._marker._icon, 'leaflet-marker-draggable');
- }
- },
- moved: function moved() {
- return this._draggable && this._draggable._moved;
- },
- _adjustPan: function _adjustPan(e) {
- var marker = this._marker,
- map = marker._map,
- speed = this._marker.options.autoPanSpeed,
- padding = this._marker.options.autoPanPadding,
- iconPos = getPosition(marker._icon),
- bounds = map.getPixelBounds(),
- origin = map.getPixelOrigin();
- var panBounds = toBounds(bounds.min._subtract(origin).add(padding), bounds.max._subtract(origin).subtract(padding));
- if (!panBounds.contains(iconPos)) {
- // Compute incremental movement
- var movement = toPoint((Math.max(panBounds.max.x, iconPos.x) - panBounds.max.x) / (bounds.max.x - panBounds.max.x) - (Math.min(panBounds.min.x, iconPos.x) - panBounds.min.x) / (bounds.min.x - panBounds.min.x), (Math.max(panBounds.max.y, iconPos.y) - panBounds.max.y) / (bounds.max.y - panBounds.max.y) - (Math.min(panBounds.min.y, iconPos.y) - panBounds.min.y) / (bounds.min.y - panBounds.min.y)).multiplyBy(speed);
- map.panBy(movement, {
- animate: false
- });
- this._draggable._newPos._add(movement);
- this._draggable._startPos._add(movement);
- setPosition(marker._icon, this._draggable._newPos);
- this._onDrag(e);
- this._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));
- }
- },
- _onDragStart: function _onDragStart() {
- // @section Dragging events
- // @event dragstart: Event
- // Fired when the user starts dragging the marker.
- // @event movestart: Event
- // Fired when the marker starts moving (because of dragging).
- this._oldLatLng = this._marker.getLatLng();
- // When using ES6 imports it could not be set when `Popup` was not imported as well
- this._marker.closePopup && this._marker.closePopup();
- this._marker.fire('movestart').fire('dragstart');
- },
- _onPreDrag: function _onPreDrag(e) {
- if (this._marker.options.autoPan) {
- cancelAnimFrame(this._panRequest);
- this._panRequest = requestAnimFrame(this._adjustPan.bind(this, e));
- }
- },
- _onDrag: function _onDrag(e) {
- var marker = this._marker,
- shadow = marker._shadow,
- iconPos = getPosition(marker._icon),
- latlng = marker._map.layerPointToLatLng(iconPos);
- // update shadow position
- if (shadow) {
- setPosition(shadow, iconPos);
- }
- marker._latlng = latlng;
- e.latlng = latlng;
- e.oldLatLng = this._oldLatLng;
- // @event drag: Event
- // Fired repeatedly while the user drags the marker.
- marker.fire('move', e).fire('drag', e);
- },
- _onDragEnd: function _onDragEnd(e) {
- // @event dragend: DragEndEvent
- // Fired when the user stops dragging the marker.
- cancelAnimFrame(this._panRequest);
- // @event moveend: Event
- // Fired when the marker stops moving (because of dragging).
- delete this._oldLatLng;
- this._marker.fire('moveend').fire('dragend', e);
- }
- });
- /*
- * @class Marker
- * @inherits Interactive layer
- * @aka L.Marker
- * L.Marker is used to display clickable/draggable icons on the map. Extends `Layer`.
- *
- * @example
- *
- * ```js
- * L.marker([50.5, 30.5]).addTo(map);
- * ```
- */
- var Marker = Layer.extend({
- // @section
- // @aka Marker options
- options: {
- // @option icon: Icon = *
- // Icon instance to use for rendering the marker.
- // See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
- // If not specified, a common instance of `L.Icon.Default` is used.
- icon: new IconDefault(),
- // Option inherited from "Interactive layer" abstract class
- interactive: true,
- // @option keyboard: Boolean = true
- // Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.
- keyboard: true,
- // @option title: String = ''
- // Text for the browser tooltip that appear on marker hover (no tooltip by default).
- // [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
- title: '',
- // @option alt: String = 'Marker'
- // Text for the `alt` attribute of the icon image.
- // [Useful for accessibility](https://leafletjs.com/examples/accessibility/#markers-must-be-labelled).
- alt: 'Marker',
- // @option zIndexOffset: Number = 0
- // By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like `1000` (or high negative value, respectively).
- zIndexOffset: 0,
- // @option opacity: Number = 1.0
- // The opacity of the marker.
- opacity: 1,
- // @option riseOnHover: Boolean = false
- // If `true`, the marker will get on top of others when you hover the mouse over it.
- riseOnHover: false,
- // @option riseOffset: Number = 250
- // The z-index offset used for the `riseOnHover` feature.
- riseOffset: 250,
- // @option pane: String = 'markerPane'
- // `Map pane` where the markers icon will be added.
- pane: 'markerPane',
- // @option shadowPane: String = 'shadowPane'
- // `Map pane` where the markers shadow will be added.
- shadowPane: 'shadowPane',
- // @option bubblingMouseEvents: Boolean = false
- // When `true`, a mouse event on this marker will trigger the same event on the map
- // (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
- bubblingMouseEvents: false,
- // @option autoPanOnFocus: Boolean = true
- // When `true`, the map will pan whenever the marker is focused (via
- // e.g. pressing `tab` on the keyboard) to ensure the marker is
- // visible within the map's bounds
- autoPanOnFocus: true,
- // @section Draggable marker options
- // @option draggable: Boolean = false
- // Whether the marker is draggable with mouse/touch or not.
- draggable: false,
- // @option autoPan: Boolean = false
- // Whether to pan the map when dragging this marker near its edge or not.
- autoPan: false,
- // @option autoPanPadding: Point = Point(50, 50)
- // Distance (in pixels to the left/right and to the top/bottom) of the
- // map edge to start panning the map.
- autoPanPadding: [50, 50],
- // @option autoPanSpeed: Number = 10
- // Number of pixels the map should pan by.
- autoPanSpeed: 10
- },
- /* @section
- *
- * In addition to [shared layer methods](#Layer) like `addTo()` and `remove()` and [popup methods](#Popup) like bindPopup() you can also use the following methods:
- */
- initialize: function initialize(latlng, options) {
- setOptions(this, options);
- this._latlng = toLatLng(latlng);
- },
- onAdd: function onAdd(map) {
- this._zoomAnimated = this._zoomAnimated && map.options.markerZoomAnimation;
- if (this._zoomAnimated) {
- map.on('zoomanim', this._animateZoom, this);
- }
- this._initIcon();
- this.update();
- },
- onRemove: function onRemove(map) {
- if (this.dragging && this.dragging.enabled()) {
- this.options.draggable = true;
- this.dragging.removeHooks();
- }
- delete this.dragging;
- if (this._zoomAnimated) {
- map.off('zoomanim', this._animateZoom, this);
- }
- this._removeIcon();
- this._removeShadow();
- },
- getEvents: function getEvents() {
- return {
- zoom: this.update,
- viewreset: this.update
- };
- },
- // @method getLatLng: LatLng
- // Returns the current geographical position of the marker.
- getLatLng: function getLatLng() {
- return this._latlng;
- },
- // @method setLatLng(latlng: LatLng): this
- // Changes the marker position to the given point.
- setLatLng: function setLatLng(latlng) {
- var oldLatLng = this._latlng;
- this._latlng = toLatLng(latlng);
- this.update();
- // @event move: Event
- // Fired when the marker is moved via [`setLatLng`](#marker-setlatlng) or by [dragging](#marker-dragging). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
- return this.fire('move', {
- oldLatLng: oldLatLng,
- latlng: this._latlng
- });
- },
- // @method setZIndexOffset(offset: Number): this
- // Changes the [zIndex offset](#marker-zindexoffset) of the marker.
- setZIndexOffset: function setZIndexOffset(offset) {
- this.options.zIndexOffset = offset;
- return this.update();
- },
- // @method getIcon: Icon
- // Returns the current icon used by the marker
- getIcon: function getIcon() {
- return this.options.icon;
- },
- // @method setIcon(icon: Icon): this
- // Changes the marker icon.
- setIcon: function setIcon(icon) {
- this.options.icon = icon;
- if (this._map) {
- this._initIcon();
- this.update();
- }
- if (this._popup) {
- this.bindPopup(this._popup, this._popup.options);
- }
- return this;
- },
- getElement: function getElement() {
- return this._icon;
- },
- update: function update() {
- if (this._icon && this._map) {
- var pos = this._map.latLngToLayerPoint(this._latlng).round();
- this._setPos(pos);
- }
- return this;
- },
- _initIcon: function _initIcon() {
- var options = this.options,
- classToAdd = 'leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');
- var icon = options.icon.createIcon(this._icon),
- addIcon = false;
- // if we're not reusing the icon, remove the old one and init new one
- if (icon !== this._icon) {
- if (this._icon) {
- this._removeIcon();
- }
- addIcon = true;
- if (options.title) {
- icon.title = options.title;
- }
- if (icon.tagName === 'IMG') {
- icon.alt = options.alt || '';
- }
- }
- addClass(icon, classToAdd);
- if (options.keyboard) {
- icon.tabIndex = '0';
- icon.setAttribute('role', 'button');
- }
- this._icon = icon;
- if (options.riseOnHover) {
- this.on({
- mouseover: this._bringToFront,
- mouseout: this._resetZIndex
- });
- }
- if (this.options.autoPanOnFocus) {
- on(icon, 'focus', this._panOnFocus, this);
- }
- var newShadow = options.icon.createShadow(this._shadow),
- addShadow = false;
- if (newShadow !== this._shadow) {
- this._removeShadow();
- addShadow = true;
- }
- if (newShadow) {
- addClass(newShadow, classToAdd);
- newShadow.alt = '';
- }
- this._shadow = newShadow;
- if (options.opacity < 1) {
- this._updateOpacity();
- }
- if (addIcon) {
- this.getPane().appendChild(this._icon);
- }
- this._initInteraction();
- if (newShadow && addShadow) {
- this.getPane(options.shadowPane).appendChild(this._shadow);
- }
- },
- _removeIcon: function _removeIcon() {
- if (this.options.riseOnHover) {
- this.off({
- mouseover: this._bringToFront,
- mouseout: this._resetZIndex
- });
- }
- if (this.options.autoPanOnFocus) {
- off(this._icon, 'focus', this._panOnFocus, this);
- }
- _remove(this._icon);
- this.removeInteractiveTarget(this._icon);
- this._icon = null;
- },
- _removeShadow: function _removeShadow() {
- if (this._shadow) {
- _remove(this._shadow);
- }
- this._shadow = null;
- },
- _setPos: function _setPos(pos) {
- if (this._icon) {
- setPosition(this._icon, pos);
- }
- if (this._shadow) {
- setPosition(this._shadow, pos);
- }
- this._zIndex = pos.y + this.options.zIndexOffset;
- this._resetZIndex();
- },
- _updateZIndex: function _updateZIndex(offset) {
- if (this._icon) {
- this._icon.style.zIndex = this._zIndex + offset;
- }
- },
- _animateZoom: function _animateZoom(opt) {
- var pos = this._map._latLngToNewLayerPoint(this._latlng, opt.zoom, opt.center).round();
- this._setPos(pos);
- },
- _initInteraction: function _initInteraction() {
- if (!this.options.interactive) {
- return;
- }
- addClass(this._icon, 'leaflet-interactive');
- this.addInteractiveTarget(this._icon);
- if (MarkerDrag) {
- var draggable = this.options.draggable;
- if (this.dragging) {
- draggable = this.dragging.enabled();
- this.dragging.disable();
- }
- this.dragging = new MarkerDrag(this);
- if (draggable) {
- this.dragging.enable();
- }
- }
- },
- // @method setOpacity(opacity: Number): this
- // Changes the opacity of the marker.
- setOpacity: function setOpacity(opacity) {
- this.options.opacity = opacity;
- if (this._map) {
- this._updateOpacity();
- }
- return this;
- },
- _updateOpacity: function _updateOpacity() {
- var opacity = this.options.opacity;
- if (this._icon) {
- _setOpacity(this._icon, opacity);
- }
- if (this._shadow) {
- _setOpacity(this._shadow, opacity);
- }
- },
- _bringToFront: function _bringToFront() {
- this._updateZIndex(this.options.riseOffset);
- },
- _resetZIndex: function _resetZIndex() {
- this._updateZIndex(0);
- },
- _panOnFocus: function _panOnFocus() {
- var map = this._map;
- if (!map) {
- return;
- }
- var iconOpts = this.options.icon.options;
- var size = iconOpts.iconSize ? toPoint(iconOpts.iconSize) : toPoint(0, 0);
- var anchor = iconOpts.iconAnchor ? toPoint(iconOpts.iconAnchor) : toPoint(0, 0);
- map.panInside(this._latlng, {
- paddingTopLeft: anchor,
- paddingBottomRight: size.subtract(anchor)
- });
- },
- _getPopupAnchor: function _getPopupAnchor() {
- return this.options.icon.options.popupAnchor;
- },
- _getTooltipAnchor: function _getTooltipAnchor() {
- return this.options.icon.options.tooltipAnchor;
- }
- });
- // factory L.marker(latlng: LatLng, options? : Marker options)
- // @factory L.marker(latlng: LatLng, options? : Marker options)
- // Instantiates a Marker object given a geographical point and optionally an options object.
- function marker(latlng, options) {
- return new Marker(latlng, options);
- }
- /*
- * @class Path
- * @aka L.Path
- * @inherits Interactive layer
- *
- * An abstract class that contains options and constants shared between vector
- * overlays (Polygon, Polyline, Circle). Do not use it directly. Extends `Layer`.
- */
- var Path = Layer.extend({
- // @section
- // @aka Path options
- options: {
- // @option stroke: Boolean = true
- // Whether to draw stroke along the path. Set it to `false` to disable borders on polygons or circles.
- stroke: true,
- // @option color: String = '#3388ff'
- // Stroke color
- color: '#3388ff',
- // @option weight: Number = 3
- // Stroke width in pixels
- weight: 3,
- // @option opacity: Number = 1.0
- // Stroke opacity
- opacity: 1,
- // @option lineCap: String= 'round'
- // A string that defines [shape to be used at the end](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linecap) of the stroke.
- lineCap: 'round',
- // @option lineJoin: String = 'round'
- // A string that defines [shape to be used at the corners](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-linejoin) of the stroke.
- lineJoin: 'round',
- // @option dashArray: String = null
- // A string that defines the stroke [dash pattern](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dasharray). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
- dashArray: null,
- // @option dashOffset: String = null
- // A string that defines the [distance into the dash pattern to start the dash](https://developer.mozilla.org/docs/Web/SVG/Attribute/stroke-dashoffset). Doesn't work on `Canvas`-powered layers in [some old browsers](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash#Browser_compatibility).
- dashOffset: null,
- // @option fill: Boolean = depends
- // Whether to fill the path with color. Set it to `false` to disable filling on polygons or circles.
- fill: false,
- // @option fillColor: String = *
- // Fill color. Defaults to the value of the [`color`](#path-color) option
- fillColor: null,
- // @option fillOpacity: Number = 0.2
- // Fill opacity.
- fillOpacity: 0.2,
- // @option fillRule: String = 'evenodd'
- // A string that defines [how the inside of a shape](https://developer.mozilla.org/docs/Web/SVG/Attribute/fill-rule) is determined.
- fillRule: 'evenodd',
- // className: '',
- // Option inherited from "Interactive layer" abstract class
- interactive: true,
- // @option bubblingMouseEvents: Boolean = true
- // When `true`, a mouse event on this path will trigger the same event on the map
- // (unless [`L.DomEvent.stopPropagation`](#domevent-stoppropagation) is used).
- bubblingMouseEvents: true
- },
- beforeAdd: function beforeAdd(map) {
- // Renderer is set here because we need to call renderer.getEvents
- // before this.getEvents.
- this._renderer = map.getRenderer(this);
- },
- onAdd: function onAdd() {
- this._renderer._initPath(this);
- this._reset();
- this._renderer._addPath(this);
- },
- onRemove: function onRemove() {
- this._renderer._removePath(this);
- },
- // @method redraw(): this
- // Redraws the layer. Sometimes useful after you changed the coordinates that the path uses.
- redraw: function redraw() {
- if (this._map) {
- this._renderer._updatePath(this);
- }
- return this;
- },
- // @method setStyle(style: Path options): this
- // Changes the appearance of a Path based on the options in the `Path options` object.
- setStyle: function setStyle(style) {
- setOptions(this, style);
- if (this._renderer) {
- this._renderer._updateStyle(this);
- if (this.options.stroke && style && Object.prototype.hasOwnProperty.call(style, 'weight')) {
- this._updateBounds();
- }
- }
- return this;
- },
- // @method bringToFront(): this
- // Brings the layer to the top of all path layers.
- bringToFront: function bringToFront() {
- if (this._renderer) {
- this._renderer._bringToFront(this);
- }
- return this;
- },
- // @method bringToBack(): this
- // Brings the layer to the bottom of all path layers.
- bringToBack: function bringToBack() {
- if (this._renderer) {
- this._renderer._bringToBack(this);
- }
- return this;
- },
- getElement: function getElement() {
- return this._path;
- },
- _reset: function _reset() {
- // defined in child classes
- this._project();
- this._update();
- },
- _clickTolerance: function _clickTolerance() {
- // used when doing hit detection for Canvas layers
- return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
- }
- });
- /*
- * @class CircleMarker
- * @aka L.CircleMarker
- * @inherits Path
- *
- * A circle of a fixed size with radius specified in pixels. Extends `Path`.
- */
- var CircleMarker = Path.extend({
- // @section
- // @aka CircleMarker options
- options: {
- fill: true,
- // @option radius: Number = 10
- // Radius of the circle marker, in pixels
- radius: 10
- },
- initialize: function initialize(latlng, options) {
- setOptions(this, options);
- this._latlng = toLatLng(latlng);
- this._radius = this.options.radius;
- },
- // @method setLatLng(latLng: LatLng): this
- // Sets the position of a circle marker to a new location.
- setLatLng: function setLatLng(latlng) {
- var oldLatLng = this._latlng;
- this._latlng = toLatLng(latlng);
- this.redraw();
- // @event move: Event
- // Fired when the marker is moved via [`setLatLng`](#circlemarker-setlatlng). Old and new coordinates are included in event arguments as `oldLatLng`, `latlng`.
- return this.fire('move', {
- oldLatLng: oldLatLng,
- latlng: this._latlng
- });
- },
- // @method getLatLng(): LatLng
- // Returns the current geographical position of the circle marker
- getLatLng: function getLatLng() {
- return this._latlng;
- },
- // @method setRadius(radius: Number): this
- // Sets the radius of a circle marker. Units are in pixels.
- setRadius: function setRadius(radius) {
- this.options.radius = this._radius = radius;
- return this.redraw();
- },
- // @method getRadius(): Number
- // Returns the current radius of the circle
- getRadius: function getRadius() {
- return this._radius;
- },
- setStyle: function setStyle(options) {
- var radius = options && options.radius || this._radius;
- Path.prototype.setStyle.call(this, options);
- this.setRadius(radius);
- return this;
- },
- _project: function _project() {
- this._point = this._map.latLngToLayerPoint(this._latlng);
- this._updateBounds();
- },
- _updateBounds: function _updateBounds() {
- var r = this._radius,
- r2 = this._radiusY || r,
- w = this._clickTolerance(),
- p = [r + w, r2 + w];
- this._pxBounds = new Bounds(this._point.subtract(p), this._point.add(p));
- },
- _update: function _update() {
- if (this._map) {
- this._updatePath();
- }
- },
- _updatePath: function _updatePath() {
- this._renderer._updateCircle(this);
- },
- _empty: function _empty() {
- return this._radius && !this._renderer._bounds.intersects(this._pxBounds);
- },
- // Needed by the `Canvas` renderer for interactivity
- _containsPoint: function _containsPoint(p) {
- return p.distanceTo(this._point) <= this._radius + this._clickTolerance();
- }
- });
- // @factory L.circleMarker(latlng: LatLng, options?: CircleMarker options)
- // Instantiates a circle marker object given a geographical point, and an optional options object.
- function circleMarker(latlng, options) {
- return new CircleMarker(latlng, options);
- }
- /*
- * @class Circle
- * @aka L.Circle
- * @inherits CircleMarker
- *
- * A class for drawing circle overlays on a map. Extends `CircleMarker`.
- *
- * It's an approximation and starts to diverge from a real circle closer to poles (due to projection distortion).
- *
- * @example
- *
- * ```js
- * L.circle([50.5, 30.5], {radius: 200}).addTo(map);
- * ```
- */
- var Circle = CircleMarker.extend({
- initialize: function initialize(latlng, options, legacyOptions) {
- if (typeof options === 'number') {
- // Backwards compatibility with 0.7.x factory (latlng, radius, options?)
- options = extend({}, legacyOptions, {
- radius: options
- });
- }
- setOptions(this, options);
- this._latlng = toLatLng(latlng);
- if (isNaN(this.options.radius)) {
- throw new Error('Circle radius cannot be NaN');
- }
- // @section
- // @aka Circle options
- // @option radius: Number; Radius of the circle, in meters.
- this._mRadius = this.options.radius;
- },
- // @method setRadius(radius: Number): this
- // Sets the radius of a circle. Units are in meters.
- setRadius: function setRadius(radius) {
- this._mRadius = radius;
- return this.redraw();
- },
- // @method getRadius(): Number
- // Returns the current radius of a circle. Units are in meters.
- getRadius: function getRadius() {
- return this._mRadius;
- },
- // @method getBounds(): LatLngBounds
- // Returns the `LatLngBounds` of the path.
- getBounds: function getBounds() {
- var half = [this._radius, this._radiusY || this._radius];
- return new LatLngBounds(this._map.layerPointToLatLng(this._point.subtract(half)), this._map.layerPointToLatLng(this._point.add(half)));
- },
- setStyle: Path.prototype.setStyle,
- _project: function _project() {
- var lng = this._latlng.lng,
- lat = this._latlng.lat,
- map = this._map,
- crs = map.options.crs;
- if (crs.distance === Earth.distance) {
- var d = Math.PI / 180,
- latR = this._mRadius / Earth.R / d,
- top = map.project([lat + latR, lng]),
- bottom = map.project([lat - latR, lng]),
- p = top.add(bottom).divideBy(2),
- lat2 = map.unproject(p).lat,
- lngR = Math.acos((Math.cos(latR * d) - Math.sin(lat * d) * Math.sin(lat2 * d)) / (Math.cos(lat * d) * Math.cos(lat2 * d))) / d;
- if (isNaN(lngR) || lngR === 0) {
- lngR = latR / Math.cos(Math.PI / 180 * lat); // Fallback for edge case, #2425
- }
- this._point = p.subtract(map.getPixelOrigin());
- this._radius = isNaN(lngR) ? 0 : p.x - map.project([lat2, lng - lngR]).x;
- this._radiusY = p.y - top.y;
- } else {
- var latlng2 = crs.unproject(crs.project(this._latlng).subtract([this._mRadius, 0]));
- this._point = map.latLngToLayerPoint(this._latlng);
- this._radius = this._point.x - map.latLngToLayerPoint(latlng2).x;
- }
- this._updateBounds();
- }
- });
- // @factory L.circle(latlng: LatLng, options?: Circle options)
- // Instantiates a circle object given a geographical point, and an options object
- // which contains the circle radius.
- // @alternative
- // @factory L.circle(latlng: LatLng, radius: Number, options?: Circle options)
- // Obsolete way of instantiating a circle, for compatibility with 0.7.x code.
- // Do not use in new applications or plugins.
- function circle(latlng, options, legacyOptions) {
- return new Circle(latlng, options, legacyOptions);
- }
- /*
- * @class Polyline
- * @aka L.Polyline
- * @inherits Path
- *
- * A class for drawing polyline overlays on a map. Extends `Path`.
- *
- * @example
- *
- * ```js
- * // create a red polyline from an array of LatLng points
- * var latlngs = [
- * [45.51, -122.68],
- * [37.77, -122.43],
- * [34.04, -118.2]
- * ];
- *
- * var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
- *
- * // zoom the map to the polyline
- * map.fitBounds(polyline.getBounds());
- * ```
- *
- * You can also pass a multi-dimensional array to represent a `MultiPolyline` shape:
- *
- * ```js
- * // create a red polyline from an array of arrays of LatLng points
- * var latlngs = [
- * [[45.51, -122.68],
- * [37.77, -122.43],
- * [34.04, -118.2]],
- * [[40.78, -73.91],
- * [41.83, -87.62],
- * [32.76, -96.72]]
- * ];
- * ```
- */
- var Polyline = Path.extend({
- // @section
- // @aka Polyline options
- options: {
- // @option smoothFactor: Number = 1.0
- // How much to simplify the polyline on each zoom level. More means
- // better performance and smoother look, and less means more accurate representation.
- smoothFactor: 1.0,
- // @option noClip: Boolean = false
- // Disable polyline clipping.
- noClip: false
- },
- initialize: function initialize(latlngs, options) {
- setOptions(this, options);
- this._setLatLngs(latlngs);
- },
- // @method getLatLngs(): LatLng[]
- // Returns an array of the points in the path, or nested arrays of points in case of multi-polyline.
- getLatLngs: function getLatLngs() {
- return this._latlngs;
- },
- // @method setLatLngs(latlngs: LatLng[]): this
- // Replaces all the points in the polyline with the given array of geographical points.
- setLatLngs: function setLatLngs(latlngs) {
- this._setLatLngs(latlngs);
- return this.redraw();
- },
- // @method isEmpty(): Boolean
- // Returns `true` if the Polyline has no LatLngs.
- isEmpty: function isEmpty() {
- return !this._latlngs.length;
- },
- // @method closestLayerPoint(p: Point): Point
- // Returns the point closest to `p` on the Polyline.
- closestLayerPoint: function closestLayerPoint(p) {
- var minDistance = Infinity,
- minPoint = null,
- closest = _sqClosestPointOnSegment,
- p1,
- p2;
- for (var j = 0, jLen = this._parts.length; j < jLen; j++) {
- var points = this._parts[j];
- for (var i = 1, len = points.length; i < len; i++) {
- p1 = points[i - 1];
- p2 = points[i];
- var sqDist = closest(p, p1, p2, true);
- if (sqDist < minDistance) {
- minDistance = sqDist;
- minPoint = closest(p, p1, p2);
- }
- }
- }
- if (minPoint) {
- minPoint.distance = Math.sqrt(minDistance);
- }
- return minPoint;
- },
- // @method getCenter(): LatLng
- // Returns the center ([centroid](https://en.wikipedia.org/wiki/Centroid)) of the polyline.
- getCenter: function getCenter() {
- // throws error when not yet added to map as this center calculation requires projected coordinates
- if (!this._map) {
- throw new Error('Must add layer to map before using getCenter()');
- }
- return polylineCenter(this._defaultShape(), this._map.options.crs);
- },
- // @method getBounds(): LatLngBounds
- // Returns the `LatLngBounds` of the path.
- getBounds: function getBounds() {
- return this._bounds;
- },
- // @method addLatLng(latlng: LatLng, latlngs?: LatLng[]): this
- // Adds a given point to the polyline. By default, adds to the first ring of
- // the polyline in case of a multi-polyline, but can be overridden by passing
- // a specific ring as a LatLng array (that you can earlier access with [`getLatLngs`](#polyline-getlatlngs)).
- addLatLng: function addLatLng(latlng, latlngs) {
- latlngs = latlngs || this._defaultShape();
- latlng = toLatLng(latlng);
- latlngs.push(latlng);
- this._bounds.extend(latlng);
- return this.redraw();
- },
- _setLatLngs: function _setLatLngs(latlngs) {
- this._bounds = new LatLngBounds();
- this._latlngs = this._convertLatLngs(latlngs);
- },
- _defaultShape: function _defaultShape() {
- return isFlat(this._latlngs) ? this._latlngs : this._latlngs[0];
- },
- // recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
- _convertLatLngs: function _convertLatLngs(latlngs) {
- var result = [],
- flat = isFlat(latlngs);
- for (var i = 0, len = latlngs.length; i < len; i++) {
- if (flat) {
- result[i] = toLatLng(latlngs[i]);
- this._bounds.extend(result[i]);
- } else {
- result[i] = this._convertLatLngs(latlngs[i]);
- }
- }
- return result;
- },
- _project: function _project() {
- var pxBounds = new Bounds();
- this._rings = [];
- this._projectLatlngs(this._latlngs, this._rings, pxBounds);
- if (this._bounds.isValid() && pxBounds.isValid()) {
- this._rawPxBounds = pxBounds;
- this._updateBounds();
- }
- },
- _updateBounds: function _updateBounds() {
- var w = this._clickTolerance(),
- p = new Point(w, w);
- if (!this._rawPxBounds) {
- return;
- }
- this._pxBounds = new Bounds([this._rawPxBounds.min.subtract(p), this._rawPxBounds.max.add(p)]);
- },
- // recursively turns latlngs into a set of rings with projected coordinates
- _projectLatlngs: function _projectLatlngs(latlngs, result, projectedBounds) {
- var flat = latlngs[0] instanceof LatLng,
- len = latlngs.length,
- i,
- ring;
- if (flat) {
- ring = [];
- for (i = 0; i < len; i++) {
- ring[i] = this._map.latLngToLayerPoint(latlngs[i]);
- projectedBounds.extend(ring[i]);
- }
- result.push(ring);
- } else {
- for (i = 0; i < len; i++) {
- this._projectLatlngs(latlngs[i], result, projectedBounds);
- }
- }
- },
- // clip polyline by renderer bounds so that we have less to render for performance
- _clipPoints: function _clipPoints() {
- var bounds = this._renderer._bounds;
- this._parts = [];
- if (!this._pxBounds || !this._pxBounds.intersects(bounds)) {
- return;
- }
- if (this.options.noClip) {
- this._parts = this._rings;
- return;
- }
- var parts = this._parts,
- i,
- j,
- k,
- len,
- len2,
- segment,
- points;
- for (i = 0, k = 0, len = this._rings.length; i < len; i++) {
- points = this._rings[i];
- for (j = 0, len2 = points.length; j < len2 - 1; j++) {
- segment = clipSegment(points[j], points[j + 1], bounds, j, true);
- if (!segment) {
- continue;
- }
- parts[k] = parts[k] || [];
- parts[k].push(segment[0]);
- // if segment goes out of screen, or it's the last one, it's the end of the line part
- if (segment[1] !== points[j + 1] || j === len2 - 2) {
- parts[k].push(segment[1]);
- k++;
- }
- }
- }
- },
- // simplify each clipped part of the polyline for performance
- _simplifyPoints: function _simplifyPoints() {
- var parts = this._parts,
- tolerance = this.options.smoothFactor;
- for (var i = 0, len = parts.length; i < len; i++) {
- parts[i] = simplify(parts[i], tolerance);
- }
- },
- _update: function _update() {
- if (!this._map) {
- return;
- }
- this._clipPoints();
- this._simplifyPoints();
- this._updatePath();
- },
- _updatePath: function _updatePath() {
- this._renderer._updatePoly(this);
- },
- // Needed by the `Canvas` renderer for interactivity
- _containsPoint: function _containsPoint(p, closed) {
- var i,
- j,
- k,
- len,
- len2,
- part,
- w = this._clickTolerance();
- if (!this._pxBounds || !this._pxBounds.contains(p)) {
- return false;
- }
- // hit detection for polylines
- for (i = 0, len = this._parts.length; i < len; i++) {
- part = this._parts[i];
- for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {
- if (!closed && j === 0) {
- continue;
- }
- if (pointToSegmentDistance(p, part[k], part[j]) <= w) {
- return true;
- }
- }
- }
- return false;
- }
- });
- // @factory L.polyline(latlngs: LatLng[], options?: Polyline options)
- // Instantiates a polyline object given an array of geographical points and
- // optionally an options object. You can create a `Polyline` object with
- // multiple separate lines (`MultiPolyline`) by passing an array of arrays
- // of geographic points.
- function polyline(latlngs, options) {
- return new Polyline(latlngs, options);
- }
- // Retrocompat. Allow plugins to support Leaflet versions before and after 1.1.
- Polyline._flat = _flat;
- /*
- * @class Polygon
- * @aka L.Polygon
- * @inherits Polyline
- *
- * A class for drawing polygon overlays on a map. Extends `Polyline`.
- *
- * Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.
- *
- *
- * @example
- *
- * ```js
- * // create a red polygon from an array of LatLng points
- * var latlngs = [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]];
- *
- * var polygon = L.polygon(latlngs, {color: 'red'}).addTo(map);
- *
- * // zoom the map to the polygon
- * map.fitBounds(polygon.getBounds());
- * ```
- *
- * You can also pass an array of arrays of latlngs, with the first array representing the outer shape and the other arrays representing holes in the outer shape:
- *
- * ```js
- * var latlngs = [
- * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
- * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
- * ];
- * ```
- *
- * Additionally, you can pass a multi-dimensional array to represent a MultiPolygon shape.
- *
- * ```js
- * var latlngs = [
- * [ // first polygon
- * [[37, -109.05],[41, -109.03],[41, -102.05],[37, -102.04]], // outer ring
- * [[37.29, -108.58],[40.71, -108.58],[40.71, -102.50],[37.29, -102.50]] // hole
- * ],
- * [ // second polygon
- * [[41, -111.03],[45, -111.04],[45, -104.05],[41, -104.05]]
- * ]
- * ];
- * ```
- */
- var Polygon = Polyline.extend({
- options: {
- fill: true
- },
- isEmpty: function isEmpty() {
- return !this._latlngs.length || !this._latlngs[0].length;
- },
- // @method getCenter(): LatLng
- // Returns the center ([centroid](http://en.wikipedia.org/wiki/Centroid)) of the Polygon.
- getCenter: function getCenter() {
- // throws error when not yet added to map as this center calculation requires projected coordinates
- if (!this._map) {
- throw new Error('Must add layer to map before using getCenter()');
- }
- return polygonCenter(this._defaultShape(), this._map.options.crs);
- },
- _convertLatLngs: function _convertLatLngs(latlngs) {
- var result = Polyline.prototype._convertLatLngs.call(this, latlngs),
- len = result.length;
- // remove last point if it equals first one
- if (len >= 2 && result[0] instanceof LatLng && result[0].equals(result[len - 1])) {
- result.pop();
- }
- return result;
- },
- _setLatLngs: function _setLatLngs(latlngs) {
- Polyline.prototype._setLatLngs.call(this, latlngs);
- if (isFlat(this._latlngs)) {
- this._latlngs = [this._latlngs];
- }
- },
- _defaultShape: function _defaultShape() {
- return isFlat(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
- },
- _clipPoints: function _clipPoints() {
- // polygons need a different clipping algorithm so we redefine that
- var bounds = this._renderer._bounds,
- w = this.options.weight,
- p = new Point(w, w);
- // increase clip padding by stroke width to avoid stroke on clip edges
- bounds = new Bounds(bounds.min.subtract(p), bounds.max.add(p));
- this._parts = [];
- if (!this._pxBounds || !this._pxBounds.intersects(bounds)) {
- return;
- }
- if (this.options.noClip) {
- this._parts = this._rings;
- return;
- }
- for (var i = 0, len = this._rings.length, clipped; i < len; i++) {
- clipped = clipPolygon(this._rings[i], bounds, true);
- if (clipped.length) {
- this._parts.push(clipped);
- }
- }
- },
- _updatePath: function _updatePath() {
- this._renderer._updatePoly(this, true);
- },
- // Needed by the `Canvas` renderer for interactivity
- _containsPoint: function _containsPoint(p) {
- var inside = false,
- part,
- p1,
- p2,
- i,
- j,
- k,
- len,
- len2;
- if (!this._pxBounds || !this._pxBounds.contains(p)) {
- return false;
- }
- // ray casting algorithm for detecting if point is in polygon
- for (i = 0, len = this._parts.length; i < len; i++) {
- part = this._parts[i];
- for (j = 0, len2 = part.length, k = len2 - 1; j < len2; k = j++) {
- p1 = part[j];
- p2 = part[k];
- if (p1.y > p.y !== p2.y > p.y && p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x) {
- inside = !inside;
- }
- }
- }
- // also check if it's on polygon stroke
- return inside || Polyline.prototype._containsPoint.call(this, p, true);
- }
- });
- // @factory L.polygon(latlngs: LatLng[], options?: Polyline options)
- function polygon(latlngs, options) {
- return new Polygon(latlngs, options);
- }
- /*
- * @class GeoJSON
- * @aka L.GeoJSON
- * @inherits FeatureGroup
- *
- * Represents a GeoJSON object or an array of GeoJSON objects. Allows you to parse
- * GeoJSON data and display it on the map. Extends `FeatureGroup`.
- *
- * @example
- *
- * ```js
- * L.geoJSON(data, {
- * style: function (feature) {
- * return {color: feature.properties.color};
- * }
- * }).bindPopup(function (layer) {
- * return layer.feature.properties.description;
- * }).addTo(map);
- * ```
- */
- var GeoJSON = FeatureGroup.extend({
- /* @section
- * @aka GeoJSON options
- *
- * @option pointToLayer: Function = *
- * A `Function` defining how GeoJSON points spawn Leaflet layers. It is internally
- * called when data is added, passing the GeoJSON point feature and its `LatLng`.
- * The default is to spawn a default `Marker`:
- * ```js
- * function(geoJsonPoint, latlng) {
- * return L.marker(latlng);
- * }
- * ```
- *
- * @option style: Function = *
- * A `Function` defining the `Path options` for styling GeoJSON lines and polygons,
- * called internally when data is added.
- * The default value is to not override any defaults:
- * ```js
- * function (geoJsonFeature) {
- * return {}
- * }
- * ```
- *
- * @option onEachFeature: Function = *
- * A `Function` that will be called once for each created `Feature`, after it has
- * been created and styled. Useful for attaching events and popups to features.
- * The default is to do nothing with the newly created layers:
- * ```js
- * function (feature, layer) {}
- * ```
- *
- * @option filter: Function = *
- * A `Function` that will be used to decide whether to include a feature or not.
- * The default is to include all features:
- * ```js
- * function (geoJsonFeature) {
- * return true;
- * }
- * ```
- * Note: dynamically changing the `filter` option will have effect only on newly
- * added data. It will _not_ re-evaluate already included features.
- *
- * @option coordsToLatLng: Function = *
- * A `Function` that will be used for converting GeoJSON coordinates to `LatLng`s.
- * The default is the `coordsToLatLng` static method.
- *
- * @option markersInheritOptions: Boolean = false
- * Whether default Markers for "Point" type Features inherit from group options.
- */
- initialize: function initialize(geojson, options) {
- setOptions(this, options);
- this._layers = {};
- if (geojson) {
- this.addData(geojson);
- }
- },
- // @method addData( <GeoJSON> data ): this
- // Adds a GeoJSON object to the layer.
- addData: function addData(geojson) {
- var features = isArray(geojson) ? geojson : geojson.features,
- i,
- len,
- feature;
- if (features) {
- for (i = 0, len = features.length; i < len; i++) {
- // only add this if geometry or geometries are set and not null
- feature = features[i];
- if (feature.geometries || feature.geometry || feature.features || feature.coordinates) {
- this.addData(feature);
- }
- }
- return this;
- }
- var options = this.options;
- if (options.filter && !options.filter(geojson)) {
- return this;
- }
- var layer = geometryToLayer(geojson, options);
- if (!layer) {
- return this;
- }
- layer.feature = asFeature(geojson);
- layer.defaultOptions = layer.options;
- this.resetStyle(layer);
- if (options.onEachFeature) {
- options.onEachFeature(geojson, layer);
- }
- return this.addLayer(layer);
- },
- // @method resetStyle( <Path> layer? ): this
- // Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
- // If `layer` is omitted, the style of all features in the current layer is reset.
- resetStyle: function resetStyle(layer) {
- if (layer === undefined) {
- return this.eachLayer(this.resetStyle, this);
- }
- // reset any custom styles
- layer.options = extend({}, layer.defaultOptions);
- this._setLayerStyle(layer, this.options.style);
- return this;
- },
- // @method setStyle( <Function> style ): this
- // Changes styles of GeoJSON vector layers with the given style function.
- setStyle: function setStyle(style) {
- return this.eachLayer(function (layer) {
- this._setLayerStyle(layer, style);
- }, this);
- },
- _setLayerStyle: function _setLayerStyle(layer, style) {
- if (layer.setStyle) {
- if (typeof style === 'function') {
- style = style(layer.feature);
- }
- layer.setStyle(style);
- }
- }
- });
- // @section
- // There are several static functions which can be called without instantiating L.GeoJSON:
- // @function geometryToLayer(featureData: Object, options?: GeoJSON options): Layer
- // Creates a `Layer` from a given GeoJSON feature. Can use a custom
- // [`pointToLayer`](#geojson-pointtolayer) and/or [`coordsToLatLng`](#geojson-coordstolatlng)
- // functions if provided as options.
- function geometryToLayer(geojson, options) {
- var geometry = geojson.type === 'Feature' ? geojson.geometry : geojson,
- coords = geometry ? geometry.coordinates : null,
- layers = [],
- pointToLayer = options && options.pointToLayer,
- _coordsToLatLng = options && options.coordsToLatLng || coordsToLatLng,
- latlng,
- latlngs,
- i,
- len;
- if (!coords && !geometry) {
- return null;
- }
- switch (geometry.type) {
- case 'Point':
- latlng = _coordsToLatLng(coords);
- return _pointToLayer(pointToLayer, geojson, latlng, options);
- case 'MultiPoint':
- for (i = 0, len = coords.length; i < len; i++) {
- latlng = _coordsToLatLng(coords[i]);
- layers.push(_pointToLayer(pointToLayer, geojson, latlng, options));
- }
- return new FeatureGroup(layers);
- case 'LineString':
- case 'MultiLineString':
- latlngs = coordsToLatLngs(coords, geometry.type === 'LineString' ? 0 : 1, _coordsToLatLng);
- return new Polyline(latlngs, options);
- case 'Polygon':
- case 'MultiPolygon':
- latlngs = coordsToLatLngs(coords, geometry.type === 'Polygon' ? 1 : 2, _coordsToLatLng);
- return new Polygon(latlngs, options);
- case 'GeometryCollection':
- for (i = 0, len = geometry.geometries.length; i < len; i++) {
- var geoLayer = geometryToLayer({
- geometry: geometry.geometries[i],
- type: 'Feature',
- properties: geojson.properties
- }, options);
- if (geoLayer) {
- layers.push(geoLayer);
- }
- }
- return new FeatureGroup(layers);
- case 'FeatureCollection':
- for (i = 0, len = geometry.features.length; i < len; i++) {
- var featureLayer = geometryToLayer(geometry.features[i], options);
- if (featureLayer) {
- layers.push(featureLayer);
- }
- }
- return new FeatureGroup(layers);
- default:
- throw new Error('Invalid GeoJSON object.');
- }
- }
- function _pointToLayer(pointToLayerFn, geojson, latlng, options) {
- return pointToLayerFn ? pointToLayerFn(geojson, latlng) : new Marker(latlng, options && options.markersInheritOptions && options);
- }
- // @function coordsToLatLng(coords: Array): LatLng
- // Creates a `LatLng` object from an array of 2 numbers (longitude, latitude)
- // or 3 numbers (longitude, latitude, altitude) used in GeoJSON for points.
- function coordsToLatLng(coords) {
- return new LatLng(coords[1], coords[0], coords[2]);
- }
- // @function coordsToLatLngs(coords: Array, levelsDeep?: Number, coordsToLatLng?: Function): Array
- // Creates a multidimensional array of `LatLng`s from a GeoJSON coordinates array.
- // `levelsDeep` specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).
- // Can use a custom [`coordsToLatLng`](#geojson-coordstolatlng) function.
- function coordsToLatLngs(coords, levelsDeep, _coordsToLatLng) {
- var latlngs = [];
- for (var i = 0, len = coords.length, latlng; i < len; i++) {
- latlng = levelsDeep ? coordsToLatLngs(coords[i], levelsDeep - 1, _coordsToLatLng) : (_coordsToLatLng || coordsToLatLng)(coords[i]);
- latlngs.push(latlng);
- }
- return latlngs;
- }
- // @function latLngToCoords(latlng: LatLng, precision?: Number|false): Array
- // Reverse of [`coordsToLatLng`](#geojson-coordstolatlng)
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
- function latLngToCoords(latlng, precision) {
- latlng = toLatLng(latlng);
- return latlng.alt !== undefined ? [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision), formatNum(latlng.alt, precision)] : [formatNum(latlng.lng, precision), formatNum(latlng.lat, precision)];
- }
- // @function latLngsToCoords(latlngs: Array, levelsDeep?: Number, closed?: Boolean, precision?: Number|false): Array
- // Reverse of [`coordsToLatLngs`](#geojson-coordstolatlngs)
- // `closed` determines whether the first point should be appended to the end of the array to close the feature, only used when `levelsDeep` is 0. False by default.
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function.
- function latLngsToCoords(latlngs, levelsDeep, closed, precision) {
- var coords = [];
- for (var i = 0, len = latlngs.length; i < len; i++) {
- // Check for flat arrays required to ensure unbalanced arrays are correctly converted in recursion
- coords.push(levelsDeep ? latLngsToCoords(latlngs[i], isFlat(latlngs[i]) ? 0 : levelsDeep - 1, closed, precision) : latLngToCoords(latlngs[i], precision));
- }
- if (!levelsDeep && closed) {
- coords.push(coords[0].slice());
- }
- return coords;
- }
- function getFeature(layer, newGeometry) {
- return layer.feature ? extend({}, layer.feature, {
- geometry: newGeometry
- }) : asFeature(newGeometry);
- }
- // @function asFeature(geojson: Object): Object
- // Normalize GeoJSON geometries/features into GeoJSON features.
- function asFeature(geojson) {
- if (geojson.type === 'Feature' || geojson.type === 'FeatureCollection') {
- return geojson;
- }
- return {
- type: 'Feature',
- properties: {},
- geometry: geojson
- };
- }
- var PointToGeoJSON = {
- toGeoJSON: function toGeoJSON(precision) {
- return getFeature(this, {
- type: 'Point',
- coordinates: latLngToCoords(this.getLatLng(), precision)
- });
- }
- };
- // @namespace Marker
- // @section Other methods
- // @method toGeoJSON(precision?: Number|false): Object
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
- // Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the marker (as a GeoJSON `Point` Feature).
- Marker.include(PointToGeoJSON);
- // @namespace CircleMarker
- // @method toGeoJSON(precision?: Number|false): Object
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
- // Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the circle marker (as a GeoJSON `Point` Feature).
- Circle.include(PointToGeoJSON);
- CircleMarker.include(PointToGeoJSON);
- // @namespace Polyline
- // @method toGeoJSON(precision?: Number|false): Object
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
- // Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polyline (as a GeoJSON `LineString` or `MultiLineString` Feature).
- Polyline.include({
- toGeoJSON: function toGeoJSON(precision) {
- var multi = !isFlat(this._latlngs);
- var coords = latLngsToCoords(this._latlngs, multi ? 1 : 0, false, precision);
- return getFeature(this, {
- type: (multi ? 'Multi' : '') + 'LineString',
- coordinates: coords
- });
- }
- });
- // @namespace Polygon
- // @method toGeoJSON(precision?: Number|false): Object
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
- // Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the polygon (as a GeoJSON `Polygon` or `MultiPolygon` Feature).
- Polygon.include({
- toGeoJSON: function toGeoJSON(precision) {
- var holes = !isFlat(this._latlngs),
- multi = holes && !isFlat(this._latlngs[0]);
- var coords = latLngsToCoords(this._latlngs, multi ? 2 : holes ? 1 : 0, true, precision);
- if (!holes) {
- coords = [coords];
- }
- return getFeature(this, {
- type: (multi ? 'Multi' : '') + 'Polygon',
- coordinates: coords
- });
- }
- });
- // @namespace LayerGroup
- LayerGroup.include({
- toMultiPoint: function toMultiPoint(precision) {
- var coords = [];
- this.eachLayer(function (layer) {
- coords.push(layer.toGeoJSON(precision).geometry.coordinates);
- });
- return getFeature(this, {
- type: 'MultiPoint',
- coordinates: coords
- });
- },
- // @method toGeoJSON(precision?: Number|false): Object
- // Coordinates values are rounded with [`formatNum`](#util-formatnum) function with given `precision`.
- // Returns a [`GeoJSON`](https://en.wikipedia.org/wiki/GeoJSON) representation of the layer group (as a GeoJSON `FeatureCollection`, `GeometryCollection`, or `MultiPoint`).
- toGeoJSON: function toGeoJSON(precision) {
- var type = this.feature && this.feature.geometry && this.feature.geometry.type;
- if (type === 'MultiPoint') {
- return this.toMultiPoint(precision);
- }
- var isGeometryCollection = type === 'GeometryCollection',
- jsons = [];
- this.eachLayer(function (layer) {
- if (layer.toGeoJSON) {
- var json = layer.toGeoJSON(precision);
- if (isGeometryCollection) {
- jsons.push(json.geometry);
- } else {
- var feature = asFeature(json);
- // Squash nested feature collections
- if (feature.type === 'FeatureCollection') {
- jsons.push.apply(jsons, feature.features);
- } else {
- jsons.push(feature);
- }
- }
- }
- });
- if (isGeometryCollection) {
- return getFeature(this, {
- geometries: jsons,
- type: 'GeometryCollection'
- });
- }
- return {
- type: 'FeatureCollection',
- features: jsons
- };
- }
- });
- // @namespace GeoJSON
- // @factory L.geoJSON(geojson?: Object, options?: GeoJSON options)
- // Creates a GeoJSON layer. Optionally accepts an object in
- // [GeoJSON format](https://tools.ietf.org/html/rfc7946) to display on the map
- // (you can alternatively add it later with `addData` method) and an `options` object.
- function geoJSON(geojson, options) {
- return new GeoJSON(geojson, options);
- }
- // Backward compatibility.
- var geoJson = geoJSON;
- /*
- * @class ImageOverlay
- * @aka L.ImageOverlay
- * @inherits Interactive layer
- *
- * Used to load and display a single image over specific bounds of the map. Extends `Layer`.
- *
- * @example
- *
- * ```js
- * var imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
- * imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];
- * L.imageOverlay(imageUrl, imageBounds).addTo(map);
- * ```
- */
- var ImageOverlay = Layer.extend({
- // @section
- // @aka ImageOverlay options
- options: {
- // @option opacity: Number = 1.0
- // The opacity of the image overlay.
- opacity: 1,
- // @option alt: String = ''
- // Text for the `alt` attribute of the image (useful for accessibility).
- alt: '',
- // @option interactive: Boolean = false
- // If `true`, the image overlay will emit [mouse events](#interactive-layer) when clicked or hovered.
- interactive: false,
- // @option crossOrigin: Boolean|String = false
- // Whether the crossOrigin attribute will be added to the image.
- // If a String is provided, the image will have its crossOrigin attribute set to the String provided. This is needed if you want to access image pixel data.
- // Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
- crossOrigin: false,
- // @option errorOverlayUrl: String = ''
- // URL to the overlay image to show in place of the overlay that failed to load.
- errorOverlayUrl: '',
- // @option zIndex: Number = 1
- // The explicit [zIndex](https://developer.mozilla.org/docs/Web/CSS/CSS_Positioning/Understanding_z_index) of the overlay layer.
- zIndex: 1,
- // @option className: String = ''
- // A custom class name to assign to the image. Empty by default.
- className: ''
- },
- initialize: function initialize(url, bounds, options) {
- // (String, LatLngBounds, Object)
- this._url = url;
- this._bounds = toLatLngBounds(bounds);
- setOptions(this, options);
- },
- onAdd: function onAdd() {
- if (!this._image) {
- this._initImage();
- if (this.options.opacity < 1) {
- this._updateOpacity();
- }
- }
- if (this.options.interactive) {
- addClass(this._image, 'leaflet-interactive');
- this.addInteractiveTarget(this._image);
- }
- this.getPane().appendChild(this._image);
- this._reset();
- },
- onRemove: function onRemove() {
- _remove(this._image);
- if (this.options.interactive) {
- this.removeInteractiveTarget(this._image);
- }
- },
- // @method setOpacity(opacity: Number): this
- // Sets the opacity of the overlay.
- setOpacity: function setOpacity(opacity) {
- this.options.opacity = opacity;
- if (this._image) {
- this._updateOpacity();
- }
- return this;
- },
- setStyle: function setStyle(styleOpts) {
- if (styleOpts.opacity) {
- this.setOpacity(styleOpts.opacity);
- }
- return this;
- },
- // @method bringToFront(): this
- // Brings the layer to the top of all overlays.
- bringToFront: function bringToFront() {
- if (this._map) {
- toFront(this._image);
- }
- return this;
- },
- // @method bringToBack(): this
- // Brings the layer to the bottom of all overlays.
- bringToBack: function bringToBack() {
- if (this._map) {
- toBack(this._image);
- }
- return this;
- },
- // @method setUrl(url: String): this
- // Changes the URL of the image.
- setUrl: function setUrl(url) {
- this._url = url;
- if (this._image) {
- this._image.src = url;
- }
- return this;
- },
- // @method setBounds(bounds: LatLngBounds): this
- // Update the bounds that this ImageOverlay covers
- setBounds: function setBounds(bounds) {
- this._bounds = toLatLngBounds(bounds);
- if (this._map) {
- this._reset();
- }
- return this;
- },
- getEvents: function getEvents() {
- var events = {
- zoom: this._reset,
- viewreset: this._reset
- };
- if (this._zoomAnimated) {
- events.zoomanim = this._animateZoom;
- }
- return events;
- },
- // @method setZIndex(value: Number): this
- // Changes the [zIndex](#imageoverlay-zindex) of the image overlay.
- setZIndex: function setZIndex(value) {
- this.options.zIndex = value;
- this._updateZIndex();
- return this;
- },
- // @method getBounds(): LatLngBounds
- // Get the bounds that this ImageOverlay covers
- getBounds: function getBounds() {
- return this._bounds;
- },
- // @method getElement(): HTMLElement
- // Returns the instance of [`HTMLImageElement`](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
- // used by this overlay.
- getElement: function getElement() {
- return this._image;
- },
- _initImage: function _initImage() {
- var wasElementSupplied = this._url.tagName === 'IMG';
- var img = this._image = wasElementSupplied ? this._url : create$1('img');
- addClass(img, 'leaflet-image-layer');
- if (this._zoomAnimated) {
- addClass(img, 'leaflet-zoom-animated');
- }
- if (this.options.className) {
- addClass(img, this.options.className);
- }
- img.onselectstart = falseFn;
- img.onmousemove = falseFn;
- // @event load: Event
- // Fired when the ImageOverlay layer has loaded its image
- img.onload = bind(this.fire, this, 'load');
- img.onerror = bind(this._overlayOnError, this, 'error');
- if (this.options.crossOrigin || this.options.crossOrigin === '') {
- img.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;
- }
- if (this.options.zIndex) {
- this._updateZIndex();
- }
- if (wasElementSupplied) {
- this._url = img.src;
- return;
- }
- img.src = this._url;
- img.alt = this.options.alt;
- },
- _animateZoom: function _animateZoom(e) {
- var scale = this._map.getZoomScale(e.zoom),
- offset = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;
- setTransform(this._image, offset, scale);
- },
- _reset: function _reset() {
- var image = this._image,
- bounds = new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())),
- size = bounds.getSize();
- setPosition(image, bounds.min);
- image.style.width = size.x + 'px';
- image.style.height = size.y + 'px';
- },
- _updateOpacity: function _updateOpacity() {
- _setOpacity(this._image, this.options.opacity);
- },
- _updateZIndex: function _updateZIndex() {
- if (this._image && this.options.zIndex !== undefined && this.options.zIndex !== null) {
- this._image.style.zIndex = this.options.zIndex;
- }
- },
- _overlayOnError: function _overlayOnError() {
- // @event error: Event
- // Fired when the ImageOverlay layer fails to load its image
- this.fire('error');
- var errorUrl = this.options.errorOverlayUrl;
- if (errorUrl && this._url !== errorUrl) {
- this._url = errorUrl;
- this._image.src = errorUrl;
- }
- },
- // @method getCenter(): LatLng
- // Returns the center of the ImageOverlay.
- getCenter: function getCenter() {
- return this._bounds.getCenter();
- }
- });
- // @factory L.imageOverlay(imageUrl: String, bounds: LatLngBounds, options?: ImageOverlay options)
- // Instantiates an image overlay object given the URL of the image and the
- // geographical bounds it is tied to.
- var imageOverlay = function imageOverlay(url, bounds, options) {
- return new ImageOverlay(url, bounds, options);
- };
- /*
- * @class VideoOverlay
- * @aka L.VideoOverlay
- * @inherits ImageOverlay
- *
- * Used to load and display a video player over specific bounds of the map. Extends `ImageOverlay`.
- *
- * A video overlay uses the [`<video>`](https://developer.mozilla.org/docs/Web/HTML/Element/video)
- * HTML5 element.
- *
- * @example
- *
- * ```js
- * var videoUrl = 'https://www.mapbox.com/bites/00188/patricia_nasa.webm',
- * videoBounds = [[ 32, -130], [ 13, -100]];
- * L.videoOverlay(videoUrl, videoBounds ).addTo(map);
- * ```
- */
- var VideoOverlay = ImageOverlay.extend({
- // @section
- // @aka VideoOverlay options
- options: {
- // @option autoplay: Boolean = true
- // Whether the video starts playing automatically when loaded.
- // On some browsers autoplay will only work with `muted: true`
- autoplay: true,
- // @option loop: Boolean = true
- // Whether the video will loop back to the beginning when played.
- loop: true,
- // @option keepAspectRatio: Boolean = true
- // Whether the video will save aspect ratio after the projection.
- // Relevant for supported browsers. See [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
- keepAspectRatio: true,
- // @option muted: Boolean = false
- // Whether the video starts on mute when loaded.
- muted: false,
- // @option playsInline: Boolean = true
- // Mobile browsers will play the video right where it is instead of open it up in fullscreen mode.
- playsInline: true
- },
- _initImage: function _initImage() {
- var wasElementSupplied = this._url.tagName === 'VIDEO';
- var vid = this._image = wasElementSupplied ? this._url : create$1('video');
- addClass(vid, 'leaflet-image-layer');
- if (this._zoomAnimated) {
- addClass(vid, 'leaflet-zoom-animated');
- }
- if (this.options.className) {
- addClass(vid, this.options.className);
- }
- vid.onselectstart = falseFn;
- vid.onmousemove = falseFn;
- // @event load: Event
- // Fired when the video has finished loading the first frame
- vid.onloadeddata = bind(this.fire, this, 'load');
- if (wasElementSupplied) {
- var sourceElements = vid.getElementsByTagName('source');
- var sources = [];
- for (var j = 0; j < sourceElements.length; j++) {
- sources.push(sourceElements[j].src);
- }
- this._url = sourceElements.length > 0 ? sources : [vid.src];
- return;
- }
- if (!isArray(this._url)) {
- this._url = [this._url];
- }
- if (!this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(vid.style, 'objectFit')) {
- vid.style['objectFit'] = 'fill';
- }
- vid.autoplay = !!this.options.autoplay;
- vid.loop = !!this.options.loop;
- vid.muted = !!this.options.muted;
- vid.playsInline = !!this.options.playsInline;
- for (var i = 0; i < this._url.length; i++) {
- var source = create$1('source');
- source.src = this._url[i];
- vid.appendChild(source);
- }
- }
- // @method getElement(): HTMLVideoElement
- // Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
- // used by this overlay.
- });
- // @factory L.videoOverlay(video: String|Array|HTMLVideoElement, bounds: LatLngBounds, options?: VideoOverlay options)
- // Instantiates an image overlay object given the URL of the video (or array of URLs, or even a video element) and the
- // geographical bounds it is tied to.
- function videoOverlay(video, bounds, options) {
- return new VideoOverlay(video, bounds, options);
- }
- /*
- * @class SVGOverlay
- * @aka L.SVGOverlay
- * @inherits ImageOverlay
- *
- * Used to load, display and provide DOM access to an SVG file over specific bounds of the map. Extends `ImageOverlay`.
- *
- * An SVG overlay uses the [`<svg>`](https://developer.mozilla.org/docs/Web/SVG/Element/svg) element.
- *
- * @example
- *
- * ```js
- * var svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
- * svgElement.setAttribute('xmlns', "http://www.w3.org/2000/svg");
- * svgElement.setAttribute('viewBox', "0 0 200 200");
- * svgElement.innerHTML = '<rect width="200" height="200"/><rect x="75" y="23" width="50" height="50" style="fill:red"/><rect x="75" y="123" width="50" height="50" style="fill:#0013ff"/>';
- * var svgElementBounds = [ [ 32, -130 ], [ 13, -100 ] ];
- * L.svgOverlay(svgElement, svgElementBounds).addTo(map);
- * ```
- */
- var SVGOverlay = ImageOverlay.extend({
- _initImage: function _initImage() {
- var el = this._image = this._url;
- addClass(el, 'leaflet-image-layer');
- if (this._zoomAnimated) {
- addClass(el, 'leaflet-zoom-animated');
- }
- if (this.options.className) {
- addClass(el, this.options.className);
- }
- el.onselectstart = falseFn;
- el.onmousemove = falseFn;
- }
- // @method getElement(): SVGElement
- // Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
- // used by this overlay.
- });
- // @factory L.svgOverlay(svg: String|SVGElement, bounds: LatLngBounds, options?: SVGOverlay options)
- // Instantiates an image overlay object given an SVG element and the geographical bounds it is tied to.
- // A viewBox attribute is required on the SVG element to zoom in and out properly.
- function svgOverlay(el, bounds, options) {
- return new SVGOverlay(el, bounds, options);
- }
- /*
- * @class DivOverlay
- * @inherits Interactive layer
- * @aka L.DivOverlay
- * Base model for L.Popup and L.Tooltip. Inherit from it for custom overlays like plugins.
- */
- // @namespace DivOverlay
- var DivOverlay = Layer.extend({
- // @section
- // @aka DivOverlay options
- options: {
- // @option interactive: Boolean = false
- // If true, the popup/tooltip will listen to the mouse events.
- interactive: false,
- // @option offset: Point = Point(0, 0)
- // The offset of the overlay position.
- offset: [0, 0],
- // @option className: String = ''
- // A custom CSS class name to assign to the overlay.
- className: '',
- // @option pane: String = undefined
- // `Map pane` where the overlay will be added.
- pane: undefined,
- // @option content: String|HTMLElement|Function = ''
- // Sets the HTML content of the overlay while initializing. If a function is passed the source layer will be
- // passed to the function. The function should return a `String` or `HTMLElement` to be used in the overlay.
- content: ''
- },
- initialize: function initialize(options, source) {
- if (options && (options instanceof LatLng || isArray(options))) {
- this._latlng = toLatLng(options);
- setOptions(this, source);
- } else {
- setOptions(this, options);
- this._source = source;
- }
- if (this.options.content) {
- this._content = this.options.content;
- }
- },
- // @method openOn(map: Map): this
- // Adds the overlay to the map.
- // Alternative to `map.openPopup(popup)`/`.openTooltip(tooltip)`.
- openOn: function openOn(map) {
- map = arguments.length ? map : this._source._map; // experimental, not the part of public api
- if (!map.hasLayer(this)) {
- map.addLayer(this);
- }
- return this;
- },
- // @method close(): this
- // Closes the overlay.
- // Alternative to `map.closePopup(popup)`/`.closeTooltip(tooltip)`
- // and `layer.closePopup()`/`.closeTooltip()`.
- close: function close() {
- if (this._map) {
- this._map.removeLayer(this);
- }
- return this;
- },
- // @method toggle(layer?: Layer): this
- // Opens or closes the overlay bound to layer depending on its current state.
- // Argument may be omitted only for overlay bound to layer.
- // Alternative to `layer.togglePopup()`/`.toggleTooltip()`.
- toggle: function toggle(layer) {
- if (this._map) {
- this.close();
- } else {
- if (arguments.length) {
- this._source = layer;
- } else {
- layer = this._source;
- }
- this._prepareOpen();
- // open the overlay on the map
- this.openOn(layer._map);
- }
- return this;
- },
- onAdd: function onAdd(map) {
- this._zoomAnimated = map._zoomAnimated;
- if (!this._container) {
- this._initLayout();
- }
- if (map._fadeAnimated) {
- _setOpacity(this._container, 0);
- }
- clearTimeout(this._removeTimeout);
- this.getPane().appendChild(this._container);
- this.update();
- if (map._fadeAnimated) {
- _setOpacity(this._container, 1);
- }
- this.bringToFront();
- if (this.options.interactive) {
- addClass(this._container, 'leaflet-interactive');
- this.addInteractiveTarget(this._container);
- }
- },
- onRemove: function onRemove(map) {
- if (map._fadeAnimated) {
- _setOpacity(this._container, 0);
- this._removeTimeout = setTimeout(bind(_remove, undefined, this._container), 200);
- } else {
- _remove(this._container);
- }
- if (this.options.interactive) {
- removeClass(this._container, 'leaflet-interactive');
- this.removeInteractiveTarget(this._container);
- }
- },
- // @namespace DivOverlay
- // @method getLatLng: LatLng
- // Returns the geographical point of the overlay.
- getLatLng: function getLatLng() {
- return this._latlng;
- },
- // @method setLatLng(latlng: LatLng): this
- // Sets the geographical point where the overlay will open.
- setLatLng: function setLatLng(latlng) {
- this._latlng = toLatLng(latlng);
- if (this._map) {
- this._updatePosition();
- this._adjustPan();
- }
- return this;
- },
- // @method getContent: String|HTMLElement
- // Returns the content of the overlay.
- getContent: function getContent() {
- return this._content;
- },
- // @method setContent(htmlContent: String|HTMLElement|Function): this
- // Sets the HTML content of the overlay. If a function is passed the source layer will be passed to the function.
- // The function should return a `String` or `HTMLElement` to be used in the overlay.
- setContent: function setContent(content) {
- this._content = content;
- this.update();
- return this;
- },
- // @method getElement: String|HTMLElement
- // Returns the HTML container of the overlay.
- getElement: function getElement() {
- return this._container;
- },
- // @method update: null
- // Updates the overlay content, layout and position. Useful for updating the overlay after something inside changed, e.g. image loaded.
- update: function update() {
- if (!this._map) {
- return;
- }
- this._container.style.visibility = 'hidden';
- this._updateContent();
- this._updateLayout();
- this._updatePosition();
- this._container.style.visibility = '';
- this._adjustPan();
- },
- getEvents: function getEvents() {
- var events = {
- zoom: this._updatePosition,
- viewreset: this._updatePosition
- };
- if (this._zoomAnimated) {
- events.zoomanim = this._animateZoom;
- }
- return events;
- },
- // @method isOpen: Boolean
- // Returns `true` when the overlay is visible on the map.
- isOpen: function isOpen() {
- return !!this._map && this._map.hasLayer(this);
- },
- // @method bringToFront: this
- // Brings this overlay in front of other overlays (in the same map pane).
- bringToFront: function bringToFront() {
- if (this._map) {
- toFront(this._container);
- }
- return this;
- },
- // @method bringToBack: this
- // Brings this overlay to the back of other overlays (in the same map pane).
- bringToBack: function bringToBack() {
- if (this._map) {
- toBack(this._container);
- }
- return this;
- },
- // prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
- _prepareOpen: function _prepareOpen(latlng) {
- var source = this._source;
- if (!source._map) {
- return false;
- }
- if (source instanceof FeatureGroup) {
- source = null;
- var layers = this._source._layers;
- for (var id in layers) {
- if (layers[id]._map) {
- source = layers[id];
- break;
- }
- }
- if (!source) {
- return false;
- } // Unable to get source layer.
- // set overlay source to this layer
- this._source = source;
- }
- if (!latlng) {
- if (source.getCenter) {
- latlng = source.getCenter();
- } else if (source.getLatLng) {
- latlng = source.getLatLng();
- } else if (source.getBounds) {
- latlng = source.getBounds().getCenter();
- } else {
- throw new Error('Unable to get source layer LatLng.');
- }
- }
- this.setLatLng(latlng);
- if (this._map) {
- // update the overlay (content, layout, etc...)
- this.update();
- }
- return true;
- },
- _updateContent: function _updateContent() {
- if (!this._content) {
- return;
- }
- var node = this._contentNode;
- var content = typeof this._content === 'function' ? this._content(this._source || this) : this._content;
- if (typeof content === 'string') {
- node.innerHTML = content;
- } else {
- while (node.hasChildNodes()) {
- node.removeChild(node.firstChild);
- }
- node.appendChild(content);
- }
- // @namespace DivOverlay
- // @section DivOverlay events
- // @event contentupdate: Event
- // Fired when the content of the overlay is updated
- this.fire('contentupdate');
- },
- _updatePosition: function _updatePosition() {
- if (!this._map) {
- return;
- }
- var pos = this._map.latLngToLayerPoint(this._latlng),
- offset = toPoint(this.options.offset),
- anchor = this._getAnchor();
- if (this._zoomAnimated) {
- setPosition(this._container, pos.add(anchor));
- } else {
- offset = offset.add(pos).add(anchor);
- }
- var bottom = this._containerBottom = -offset.y,
- left = this._containerLeft = -Math.round(this._containerWidth / 2) + offset.x;
- // bottom position the overlay in case the height of the overlay changes (images loading etc)
- this._container.style.bottom = bottom + 'px';
- this._container.style.left = left + 'px';
- },
- _getAnchor: function _getAnchor() {
- return [0, 0];
- }
- });
- Map.include({
- _initOverlay: function _initOverlay(OverlayClass, content, latlng, options) {
- var overlay = content;
- if (!(overlay instanceof OverlayClass)) {
- overlay = new OverlayClass(options).setContent(content);
- }
- if (latlng) {
- overlay.setLatLng(latlng);
- }
- return overlay;
- }
- });
- Layer.include({
- _initOverlay: function _initOverlay(OverlayClass, old, content, options) {
- var overlay = content;
- if (overlay instanceof OverlayClass) {
- setOptions(overlay, options);
- overlay._source = this;
- } else {
- overlay = old && !options ? old : new OverlayClass(options, this);
- overlay.setContent(content);
- }
- return overlay;
- }
- });
- /*
- * @class Popup
- * @inherits DivOverlay
- * @aka L.Popup
- * Used to open popups in certain places of the map. Use [Map.openPopup](#map-openpopup) to
- * open popups while making sure that only one popup is open at one time
- * (recommended for usability), or use [Map.addLayer](#map-addlayer) to open as many as you want.
- *
- * @example
- *
- * If you want to just bind a popup to marker click and then open it, it's really easy:
- *
- * ```js
- * marker.bindPopup(popupContent).openPopup();
- * ```
- * Path overlays like polylines also have a `bindPopup` method.
- *
- * A popup can be also standalone:
- *
- * ```js
- * var popup = L.popup()
- * .setLatLng(latlng)
- * .setContent('<p>Hello world!<br />This is a nice popup.</p>')
- * .openOn(map);
- * ```
- * or
- * ```js
- * var popup = L.popup(latlng, {content: '<p>Hello world!<br />This is a nice popup.</p>')
- * .openOn(map);
- * ```
- */
- // @namespace Popup
- var Popup = DivOverlay.extend({
- // @section
- // @aka Popup options
- options: {
- // @option pane: String = 'popupPane'
- // `Map pane` where the popup will be added.
- pane: 'popupPane',
- // @option offset: Point = Point(0, 7)
- // The offset of the popup position.
- offset: [0, 7],
- // @option maxWidth: Number = 300
- // Max width of the popup, in pixels.
- maxWidth: 300,
- // @option minWidth: Number = 50
- // Min width of the popup, in pixels.
- minWidth: 50,
- // @option maxHeight: Number = null
- // If set, creates a scrollable container of the given height
- // inside a popup if its content exceeds it.
- // The scrollable container can be styled using the
- // `leaflet-popup-scrolled` CSS class selector.
- maxHeight: null,
- // @option autoPan: Boolean = true
- // Set it to `false` if you don't want the map to do panning animation
- // to fit the opened popup.
- autoPan: true,
- // @option autoPanPaddingTopLeft: Point = null
- // The margin between the popup and the top left corner of the map
- // view after autopanning was performed.
- autoPanPaddingTopLeft: null,
- // @option autoPanPaddingBottomRight: Point = null
- // The margin between the popup and the bottom right corner of the map
- // view after autopanning was performed.
- autoPanPaddingBottomRight: null,
- // @option autoPanPadding: Point = Point(5, 5)
- // Equivalent of setting both top left and bottom right autopan padding to the same value.
- autoPanPadding: [5, 5],
- // @option keepInView: Boolean = false
- // Set it to `true` if you want to prevent users from panning the popup
- // off of the screen while it is open.
- keepInView: false,
- // @option closeButton: Boolean = true
- // Controls the presence of a close button in the popup.
- closeButton: true,
- // @option autoClose: Boolean = true
- // Set it to `false` if you want to override the default behavior of
- // the popup closing when another popup is opened.
- autoClose: true,
- // @option closeOnEscapeKey: Boolean = true
- // Set it to `false` if you want to override the default behavior of
- // the ESC key for closing of the popup.
- closeOnEscapeKey: true,
- // @option closeOnClick: Boolean = *
- // Set it if you want to override the default behavior of the popup closing when user clicks
- // on the map. Defaults to the map's [`closePopupOnClick`](#map-closepopuponclick) option.
- // @option className: String = ''
- // A custom CSS class name to assign to the popup.
- className: ''
- },
- // @namespace Popup
- // @method openOn(map: Map): this
- // Alternative to `map.openPopup(popup)`.
- // Adds the popup to the map and closes the previous one.
- openOn: function openOn(map) {
- map = arguments.length ? map : this._source._map; // experimental, not the part of public api
- if (!map.hasLayer(this) && map._popup && map._popup.options.autoClose) {
- map.removeLayer(map._popup);
- }
- map._popup = this;
- return DivOverlay.prototype.openOn.call(this, map);
- },
- onAdd: function onAdd(map) {
- DivOverlay.prototype.onAdd.call(this, map);
- // @namespace Map
- // @section Popup events
- // @event popupopen: PopupEvent
- // Fired when a popup is opened in the map
- map.fire('popupopen', {
- popup: this
- });
- if (this._source) {
- // @namespace Layer
- // @section Popup events
- // @event popupopen: PopupEvent
- // Fired when a popup bound to this layer is opened
- this._source.fire('popupopen', {
- popup: this
- }, true);
- // For non-path layers, we toggle the popup when clicking
- // again the layer, so prevent the map to reopen it.
- if (!(this._source instanceof Path)) {
- this._source.on('preclick', stopPropagation);
- }
- }
- },
- onRemove: function onRemove(map) {
- DivOverlay.prototype.onRemove.call(this, map);
- // @namespace Map
- // @section Popup events
- // @event popupclose: PopupEvent
- // Fired when a popup in the map is closed
- map.fire('popupclose', {
- popup: this
- });
- if (this._source) {
- // @namespace Layer
- // @section Popup events
- // @event popupclose: PopupEvent
- // Fired when a popup bound to this layer is closed
- this._source.fire('popupclose', {
- popup: this
- }, true);
- if (!(this._source instanceof Path)) {
- this._source.off('preclick', stopPropagation);
- }
- }
- },
- getEvents: function getEvents() {
- var events = DivOverlay.prototype.getEvents.call(this);
- if (this.options.closeOnClick !== undefined ? this.options.closeOnClick : this._map.options.closePopupOnClick) {
- events.preclick = this.close;
- }
- if (this.options.keepInView) {
- events.moveend = this._adjustPan;
- }
- return events;
- },
- _initLayout: function _initLayout() {
- var prefix = 'leaflet-popup',
- container = this._container = create$1('div', prefix + ' ' + (this.options.className || '') + ' leaflet-zoom-animated');
- var wrapper = this._wrapper = create$1('div', prefix + '-content-wrapper', container);
- this._contentNode = create$1('div', prefix + '-content', wrapper);
- disableClickPropagation(container);
- disableScrollPropagation(this._contentNode);
- on(container, 'contextmenu', stopPropagation);
- this._tipContainer = create$1('div', prefix + '-tip-container', container);
- this._tip = create$1('div', prefix + '-tip', this._tipContainer);
- if (this.options.closeButton) {
- var closeButton = this._closeButton = create$1('a', prefix + '-close-button', container);
- closeButton.setAttribute('role', 'button'); // overrides the implicit role=link of <a> elements #7399
- closeButton.setAttribute('aria-label', 'Close popup');
- closeButton.href = '#close';
- closeButton.innerHTML = '<span aria-hidden="true">×</span>';
- on(closeButton, 'click', function (ev) {
- preventDefault(ev);
- this.close();
- }, this);
- }
- },
- _updateLayout: function _updateLayout() {
- var container = this._contentNode,
- style = container.style;
- style.width = '';
- style.whiteSpace = 'nowrap';
- var width = container.offsetWidth;
- width = Math.min(width, this.options.maxWidth);
- width = Math.max(width, this.options.minWidth);
- style.width = width + 1 + 'px';
- style.whiteSpace = '';
- style.height = '';
- var height = container.offsetHeight,
- maxHeight = this.options.maxHeight,
- scrolledClass = 'leaflet-popup-scrolled';
- if (maxHeight && height > maxHeight) {
- style.height = maxHeight + 'px';
- addClass(container, scrolledClass);
- } else {
- removeClass(container, scrolledClass);
- }
- this._containerWidth = this._container.offsetWidth;
- },
- _animateZoom: function _animateZoom(e) {
- var pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center),
- anchor = this._getAnchor();
- setPosition(this._container, pos.add(anchor));
- },
- _adjustPan: function _adjustPan() {
- if (!this.options.autoPan) {
- return;
- }
- if (this._map._panAnim) {
- this._map._panAnim.stop();
- }
- // We can endlessly recurse if keepInView is set and the view resets.
- // Let's guard against that by exiting early if we're responding to our own autopan.
- if (this._autopanning) {
- this._autopanning = false;
- return;
- }
- var map = this._map,
- marginBottom = parseInt(getStyle(this._container, 'marginBottom'), 10) || 0,
- containerHeight = this._container.offsetHeight + marginBottom,
- containerWidth = this._containerWidth,
- layerPos = new Point(this._containerLeft, -containerHeight - this._containerBottom);
- layerPos._add(getPosition(this._container));
- var containerPos = map.layerPointToContainerPoint(layerPos),
- padding = toPoint(this.options.autoPanPadding),
- paddingTL = toPoint(this.options.autoPanPaddingTopLeft || padding),
- paddingBR = toPoint(this.options.autoPanPaddingBottomRight || padding),
- size = map.getSize(),
- dx = 0,
- dy = 0;
- if (containerPos.x + containerWidth + paddingBR.x > size.x) {
- // right
- dx = containerPos.x + containerWidth - size.x + paddingBR.x;
- }
- if (containerPos.x - dx - paddingTL.x < 0) {
- // left
- dx = containerPos.x - paddingTL.x;
- }
- if (containerPos.y + containerHeight + paddingBR.y > size.y) {
- // bottom
- dy = containerPos.y + containerHeight - size.y + paddingBR.y;
- }
- if (containerPos.y - dy - paddingTL.y < 0) {
- // top
- dy = containerPos.y - paddingTL.y;
- }
- // @namespace Map
- // @section Popup events
- // @event autopanstart: Event
- // Fired when the map starts autopanning when opening a popup.
- if (dx || dy) {
- // Track that we're autopanning, as this function will be re-ran on moveend
- if (this.options.keepInView) {
- this._autopanning = true;
- }
- map.fire('autopanstart').panBy([dx, dy]);
- }
- },
- _getAnchor: function _getAnchor() {
- // Where should we anchor the popup on the source layer?
- return toPoint(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
- }
- });
- // @namespace Popup
- // @factory L.popup(options?: Popup options, source?: Layer)
- // Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.
- // @alternative
- // @factory L.popup(latlng: LatLng, options?: Popup options)
- // Instantiates a `Popup` object given `latlng` where the popup will open and an optional `options` object that describes its appearance and location.
- var popup = function popup(options, source) {
- return new Popup(options, source);
- };
- /* @namespace Map
- * @section Interaction Options
- * @option closePopupOnClick: Boolean = true
- * Set it to `false` if you don't want popups to close when user clicks the map.
- */
- Map.mergeOptions({
- closePopupOnClick: true
- });
- // @namespace Map
- // @section Methods for Layers and Controls
- Map.include({
- // @method openPopup(popup: Popup): this
- // Opens the specified popup while closing the previously opened (to make sure only one is opened at one time for usability).
- // @alternative
- // @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
- // Creates a popup with the specified content and options and opens it in the given point on a map.
- openPopup: function openPopup(popup, latlng, options) {
- this._initOverlay(Popup, popup, latlng, options).openOn(this);
- return this;
- },
- // @method closePopup(popup?: Popup): this
- // Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
- closePopup: function closePopup(popup) {
- popup = arguments.length ? popup : this._popup;
- if (popup) {
- popup.close();
- }
- return this;
- }
- });
- /*
- * @namespace Layer
- * @section Popup methods example
- *
- * All layers share a set of methods convenient for binding popups to it.
- *
- * ```js
- * var layer = L.Polygon(latlngs).bindPopup('Hi There!').addTo(map);
- * layer.openPopup();
- * layer.closePopup();
- * ```
- *
- * Popups will also be automatically opened when the layer is clicked on and closed when the layer is removed from the map or another popup is opened.
- */
- // @section Popup methods
- Layer.include({
- // @method bindPopup(content: String|HTMLElement|Function|Popup, options?: Popup options): this
- // Binds a popup to the layer with the passed `content` and sets up the
- // necessary event listeners. If a `Function` is passed it will receive
- // the layer as the first argument and should return a `String` or `HTMLElement`.
- bindPopup: function bindPopup(content, options) {
- this._popup = this._initOverlay(Popup, this._popup, content, options);
- if (!this._popupHandlersAdded) {
- this.on({
- click: this._openPopup,
- keypress: this._onKeyPress,
- remove: this.closePopup,
- move: this._movePopup
- });
- this._popupHandlersAdded = true;
- }
- return this;
- },
- // @method unbindPopup(): this
- // Removes the popup previously bound with `bindPopup`.
- unbindPopup: function unbindPopup() {
- if (this._popup) {
- this.off({
- click: this._openPopup,
- keypress: this._onKeyPress,
- remove: this.closePopup,
- move: this._movePopup
- });
- this._popupHandlersAdded = false;
- this._popup = null;
- }
- return this;
- },
- // @method openPopup(latlng?: LatLng): this
- // Opens the bound popup at the specified `latlng` or at the default popup anchor if no `latlng` is passed.
- openPopup: function openPopup(latlng) {
- if (this._popup) {
- if (!(this instanceof FeatureGroup)) {
- this._popup._source = this;
- }
- if (this._popup._prepareOpen(latlng || this._latlng)) {
- // open the popup on the map
- this._popup.openOn(this._map);
- }
- }
- return this;
- },
- // @method closePopup(): this
- // Closes the popup bound to this layer if it is open.
- closePopup: function closePopup() {
- if (this._popup) {
- this._popup.close();
- }
- return this;
- },
- // @method togglePopup(): this
- // Opens or closes the popup bound to this layer depending on its current state.
- togglePopup: function togglePopup() {
- if (this._popup) {
- this._popup.toggle(this);
- }
- return this;
- },
- // @method isPopupOpen(): boolean
- // Returns `true` if the popup bound to this layer is currently open.
- isPopupOpen: function isPopupOpen() {
- return this._popup ? this._popup.isOpen() : false;
- },
- // @method setPopupContent(content: String|HTMLElement|Popup): this
- // Sets the content of the popup bound to this layer.
- setPopupContent: function setPopupContent(content) {
- if (this._popup) {
- this._popup.setContent(content);
- }
- return this;
- },
- // @method getPopup(): Popup
- // Returns the popup bound to this layer.
- getPopup: function getPopup() {
- return this._popup;
- },
- _openPopup: function _openPopup(e) {
- if (!this._popup || !this._map) {
- return;
- }
- // prevent map click
- stop(e);
- var target = e.layer || e.target;
- if (this._popup._source === target && !(target instanceof Path)) {
- // treat it like a marker and figure out
- // if we should toggle it open/closed
- if (this._map.hasLayer(this._popup)) {
- this.closePopup();
- } else {
- this.openPopup(e.latlng);
- }
- return;
- }
- this._popup._source = target;
- this.openPopup(e.latlng);
- },
- _movePopup: function _movePopup(e) {
- this._popup.setLatLng(e.latlng);
- },
- _onKeyPress: function _onKeyPress(e) {
- if (e.originalEvent.keyCode === 13) {
- this._openPopup(e);
- }
- }
- });
- /*
- * @class Tooltip
- * @inherits DivOverlay
- * @aka L.Tooltip
- * Used to display small texts on top of map layers.
- *
- * @example
- * If you want to just bind a tooltip to marker:
- *
- * ```js
- * marker.bindTooltip("my tooltip text").openTooltip();
- * ```
- * Path overlays like polylines also have a `bindTooltip` method.
- *
- * A tooltip can be also standalone:
- *
- * ```js
- * var tooltip = L.tooltip()
- * .setLatLng(latlng)
- * .setContent('Hello world!<br />This is a nice tooltip.')
- * .addTo(map);
- * ```
- * or
- * ```js
- * var tooltip = L.tooltip(latlng, {content: 'Hello world!<br />This is a nice tooltip.'})
- * .addTo(map);
- * ```
- *
- *
- * Note about tooltip offset. Leaflet takes two options in consideration
- * for computing tooltip offsetting:
- * - the `offset` Tooltip option: it defaults to [0, 0], and it's specific to one tooltip.
- * Add a positive x offset to move the tooltip to the right, and a positive y offset to
- * move it to the bottom. Negatives will move to the left and top.
- * - the `tooltipAnchor` Icon option: this will only be considered for Marker. You
- * should adapt this value if you use a custom icon.
- */
- // @namespace Tooltip
- var Tooltip = DivOverlay.extend({
- // @section
- // @aka Tooltip options
- options: {
- // @option pane: String = 'tooltipPane'
- // `Map pane` where the tooltip will be added.
- pane: 'tooltipPane',
- // @option offset: Point = Point(0, 0)
- // Optional offset of the tooltip position.
- offset: [0, 0],
- // @option direction: String = 'auto'
- // Direction where to open the tooltip. Possible values are: `right`, `left`,
- // `top`, `bottom`, `center`, `auto`.
- // `auto` will dynamically switch between `right` and `left` according to the tooltip
- // position on the map.
- direction: 'auto',
- // @option permanent: Boolean = false
- // Whether to open the tooltip permanently or only on mouseover.
- permanent: false,
- // @option sticky: Boolean = false
- // If true, the tooltip will follow the mouse instead of being fixed at the feature center.
- sticky: false,
- // @option opacity: Number = 0.9
- // Tooltip container opacity.
- opacity: 0.9
- },
- onAdd: function onAdd(map) {
- DivOverlay.prototype.onAdd.call(this, map);
- this.setOpacity(this.options.opacity);
- // @namespace Map
- // @section Tooltip events
- // @event tooltipopen: TooltipEvent
- // Fired when a tooltip is opened in the map.
- map.fire('tooltipopen', {
- tooltip: this
- });
- if (this._source) {
- this.addEventParent(this._source);
- // @namespace Layer
- // @section Tooltip events
- // @event tooltipopen: TooltipEvent
- // Fired when a tooltip bound to this layer is opened.
- this._source.fire('tooltipopen', {
- tooltip: this
- }, true);
- }
- },
- onRemove: function onRemove(map) {
- DivOverlay.prototype.onRemove.call(this, map);
- // @namespace Map
- // @section Tooltip events
- // @event tooltipclose: TooltipEvent
- // Fired when a tooltip in the map is closed.
- map.fire('tooltipclose', {
- tooltip: this
- });
- if (this._source) {
- this.removeEventParent(this._source);
- // @namespace Layer
- // @section Tooltip events
- // @event tooltipclose: TooltipEvent
- // Fired when a tooltip bound to this layer is closed.
- this._source.fire('tooltipclose', {
- tooltip: this
- }, true);
- }
- },
- getEvents: function getEvents() {
- var events = DivOverlay.prototype.getEvents.call(this);
- if (!this.options.permanent) {
- events.preclick = this.close;
- }
- return events;
- },
- _initLayout: function _initLayout() {
- var prefix = 'leaflet-tooltip',
- className = prefix + ' ' + (this.options.className || '') + ' leaflet-zoom-' + (this._zoomAnimated ? 'animated' : 'hide');
- this._contentNode = this._container = create$1('div', className);
- this._container.setAttribute('role', 'tooltip');
- this._container.setAttribute('id', 'leaflet-tooltip-' + stamp(this));
- },
- _updateLayout: function _updateLayout() {},
- _adjustPan: function _adjustPan() {},
- _setPosition: function _setPosition(pos) {
- var subX,
- subY,
- map = this._map,
- container = this._container,
- centerPoint = map.latLngToContainerPoint(map.getCenter()),
- tooltipPoint = map.layerPointToContainerPoint(pos),
- direction = this.options.direction,
- tooltipWidth = container.offsetWidth,
- tooltipHeight = container.offsetHeight,
- offset = toPoint(this.options.offset),
- anchor = this._getAnchor();
- if (direction === 'top') {
- subX = tooltipWidth / 2;
- subY = tooltipHeight;
- } else if (direction === 'bottom') {
- subX = tooltipWidth / 2;
- subY = 0;
- } else if (direction === 'center') {
- subX = tooltipWidth / 2;
- subY = tooltipHeight / 2;
- } else if (direction === 'right') {
- subX = 0;
- subY = tooltipHeight / 2;
- } else if (direction === 'left') {
- subX = tooltipWidth;
- subY = tooltipHeight / 2;
- } else if (tooltipPoint.x < centerPoint.x) {
- direction = 'right';
- subX = 0;
- subY = tooltipHeight / 2;
- } else {
- direction = 'left';
- subX = tooltipWidth + (offset.x + anchor.x) * 2;
- subY = tooltipHeight / 2;
- }
- pos = pos.subtract(toPoint(subX, subY, true)).add(offset).add(anchor);
- removeClass(container, 'leaflet-tooltip-right');
- removeClass(container, 'leaflet-tooltip-left');
- removeClass(container, 'leaflet-tooltip-top');
- removeClass(container, 'leaflet-tooltip-bottom');
- addClass(container, 'leaflet-tooltip-' + direction);
- setPosition(container, pos);
- },
- _updatePosition: function _updatePosition() {
- var pos = this._map.latLngToLayerPoint(this._latlng);
- this._setPosition(pos);
- },
- setOpacity: function setOpacity(opacity) {
- this.options.opacity = opacity;
- if (this._container) {
- _setOpacity(this._container, opacity);
- }
- },
- _animateZoom: function _animateZoom(e) {
- var pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center);
- this._setPosition(pos);
- },
- _getAnchor: function _getAnchor() {
- // Where should we anchor the tooltip on the source layer?
- return toPoint(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
- }
- });
- // @namespace Tooltip
- // @factory L.tooltip(options?: Tooltip options, source?: Layer)
- // Instantiates a `Tooltip` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.
- // @alternative
- // @factory L.tooltip(latlng: LatLng, options?: Tooltip options)
- // Instantiates a `Tooltip` object given `latlng` where the tooltip will open and an optional `options` object that describes its appearance and location.
- var tooltip = function tooltip(options, source) {
- return new Tooltip(options, source);
- };
- // @namespace Map
- // @section Methods for Layers and Controls
- Map.include({
- // @method openTooltip(tooltip: Tooltip): this
- // Opens the specified tooltip.
- // @alternative
- // @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
- // Creates a tooltip with the specified content and options and open it.
- openTooltip: function openTooltip(tooltip, latlng, options) {
- this._initOverlay(Tooltip, tooltip, latlng, options).openOn(this);
- return this;
- },
- // @method closeTooltip(tooltip: Tooltip): this
- // Closes the tooltip given as parameter.
- closeTooltip: function closeTooltip(tooltip) {
- tooltip.close();
- return this;
- }
- });
- /*
- * @namespace Layer
- * @section Tooltip methods example
- *
- * All layers share a set of methods convenient for binding tooltips to it.
- *
- * ```js
- * var layer = L.Polygon(latlngs).bindTooltip('Hi There!').addTo(map);
- * layer.openTooltip();
- * layer.closeTooltip();
- * ```
- */
- // @section Tooltip methods
- Layer.include({
- // @method bindTooltip(content: String|HTMLElement|Function|Tooltip, options?: Tooltip options): this
- // Binds a tooltip to the layer with the passed `content` and sets up the
- // necessary event listeners. If a `Function` is passed it will receive
- // the layer as the first argument and should return a `String` or `HTMLElement`.
- bindTooltip: function bindTooltip(content, options) {
- if (this._tooltip && this.isTooltipOpen()) {
- this.unbindTooltip();
- }
- this._tooltip = this._initOverlay(Tooltip, this._tooltip, content, options);
- this._initTooltipInteractions();
- if (this._tooltip.options.permanent && this._map && this._map.hasLayer(this)) {
- this.openTooltip();
- }
- return this;
- },
- // @method unbindTooltip(): this
- // Removes the tooltip previously bound with `bindTooltip`.
- unbindTooltip: function unbindTooltip() {
- if (this._tooltip) {
- this._initTooltipInteractions(true);
- this.closeTooltip();
- this._tooltip = null;
- }
- return this;
- },
- _initTooltipInteractions: function _initTooltipInteractions(remove) {
- if (!remove && this._tooltipHandlersAdded) {
- return;
- }
- var onOff = remove ? 'off' : 'on',
- events = {
- remove: this.closeTooltip,
- move: this._moveTooltip
- };
- if (!this._tooltip.options.permanent) {
- events.mouseover = this._openTooltip;
- events.mouseout = this.closeTooltip;
- events.click = this._openTooltip;
- if (this._map) {
- this._addFocusListeners();
- } else {
- events.add = this._addFocusListeners;
- }
- } else {
- events.add = this._openTooltip;
- }
- if (this._tooltip.options.sticky) {
- events.mousemove = this._moveTooltip;
- }
- this[onOff](events);
- this._tooltipHandlersAdded = !remove;
- },
- // @method openTooltip(latlng?: LatLng): this
- // Opens the bound tooltip at the specified `latlng` or at the default tooltip anchor if no `latlng` is passed.
- openTooltip: function openTooltip(latlng) {
- if (this._tooltip) {
- if (!(this instanceof FeatureGroup)) {
- this._tooltip._source = this;
- }
- if (this._tooltip._prepareOpen(latlng)) {
- // open the tooltip on the map
- this._tooltip.openOn(this._map);
- if (this.getElement) {
- this._setAriaDescribedByOnLayer(this);
- } else if (this.eachLayer) {
- this.eachLayer(this._setAriaDescribedByOnLayer, this);
- }
- }
- }
- return this;
- },
- // @method closeTooltip(): this
- // Closes the tooltip bound to this layer if it is open.
- closeTooltip: function closeTooltip() {
- if (this._tooltip) {
- return this._tooltip.close();
- }
- },
- // @method toggleTooltip(): this
- // Opens or closes the tooltip bound to this layer depending on its current state.
- toggleTooltip: function toggleTooltip() {
- if (this._tooltip) {
- this._tooltip.toggle(this);
- }
- return this;
- },
- // @method isTooltipOpen(): boolean
- // Returns `true` if the tooltip bound to this layer is currently open.
- isTooltipOpen: function isTooltipOpen() {
- return this._tooltip.isOpen();
- },
- // @method setTooltipContent(content: String|HTMLElement|Tooltip): this
- // Sets the content of the tooltip bound to this layer.
- setTooltipContent: function setTooltipContent(content) {
- if (this._tooltip) {
- this._tooltip.setContent(content);
- }
- return this;
- },
- // @method getTooltip(): Tooltip
- // Returns the tooltip bound to this layer.
- getTooltip: function getTooltip() {
- return this._tooltip;
- },
- _addFocusListeners: function _addFocusListeners() {
- if (this.getElement) {
- this._addFocusListenersOnLayer(this);
- } else if (this.eachLayer) {
- this.eachLayer(this._addFocusListenersOnLayer, this);
- }
- },
- _addFocusListenersOnLayer: function _addFocusListenersOnLayer(layer) {
- var el = layer.getElement();
- if (el) {
- on(el, 'focus', function () {
- this._tooltip._source = layer;
- this.openTooltip();
- }, this);
- on(el, 'blur', this.closeTooltip, this);
- }
- },
- _setAriaDescribedByOnLayer: function _setAriaDescribedByOnLayer(layer) {
- var el = layer.getElement();
- if (el) {
- el.setAttribute('aria-describedby', this._tooltip._container.id);
- }
- },
- _openTooltip: function _openTooltip(e) {
- if (!this._tooltip || !this._map || this._map.dragging && this._map.dragging.moving()) {
- return;
- }
- this._tooltip._source = e.layer || e.target;
- this.openTooltip(this._tooltip.options.sticky ? e.latlng : undefined);
- },
- _moveTooltip: function _moveTooltip(e) {
- var latlng = e.latlng,
- containerPoint,
- layerPoint;
- if (this._tooltip.options.sticky && e.originalEvent) {
- containerPoint = this._map.mouseEventToContainerPoint(e.originalEvent);
- layerPoint = this._map.containerPointToLayerPoint(containerPoint);
- latlng = this._map.layerPointToLatLng(layerPoint);
- }
- this._tooltip.setLatLng(latlng);
- }
- });
- /*
- * @class DivIcon
- * @aka L.DivIcon
- * @inherits Icon
- *
- * Represents a lightweight icon for markers that uses a simple `<div>`
- * element instead of an image. Inherits from `Icon` but ignores the `iconUrl` and shadow options.
- *
- * @example
- * ```js
- * var myIcon = L.divIcon({className: 'my-div-icon'});
- * // you can set .my-div-icon styles in CSS
- *
- * L.marker([50.505, 30.57], {icon: myIcon}).addTo(map);
- * ```
- *
- * By default, it has a 'leaflet-div-icon' CSS class and is styled as a little white square with a shadow.
- */
- var DivIcon = Icon.extend({
- options: {
- // @section
- // @aka DivIcon options
- iconSize: [12, 12],
- // also can be set through CSS
- // iconAnchor: (Point),
- // popupAnchor: (Point),
- // @option html: String|HTMLElement = ''
- // Custom HTML code to put inside the div element, empty by default. Alternatively,
- // an instance of `HTMLElement`.
- html: false,
- // @option bgPos: Point = [0, 0]
- // Optional relative position of the background, in pixels
- bgPos: null,
- className: 'leaflet-div-icon'
- },
- createIcon: function createIcon(oldIcon) {
- var div = oldIcon && oldIcon.tagName === 'DIV' ? oldIcon : document.createElement('div'),
- options = this.options;
- if (options.html instanceof Element) {
- empty(div);
- div.appendChild(options.html);
- } else {
- div.innerHTML = options.html !== false ? options.html : '';
- }
- if (options.bgPos) {
- var bgPos = toPoint(options.bgPos);
- div.style.backgroundPosition = -bgPos.x + 'px ' + -bgPos.y + 'px';
- }
- this._setIconStyles(div, 'icon');
- return div;
- },
- createShadow: function createShadow() {
- return null;
- }
- });
- // @factory L.divIcon(options: DivIcon options)
- // Creates a `DivIcon` instance with the given options.
- function divIcon(options) {
- return new DivIcon(options);
- }
- Icon.Default = IconDefault;
- /*
- * @class GridLayer
- * @inherits Layer
- * @aka L.GridLayer
- *
- * Generic class for handling a tiled grid of HTML elements. This is the base class for all tile layers and replaces `TileLayer.Canvas`.
- * GridLayer can be extended to create a tiled grid of HTML elements like `<canvas>`, `<img>` or `<div>`. GridLayer will handle creating and animating these DOM elements for you.
- *
- *
- * @section Synchronous usage
- * @example
- *
- * To create a custom layer, extend GridLayer and implement the `createTile()` method, which will be passed a `Point` object with the `x`, `y`, and `z` (zoom level) coordinates to draw your tile.
- *
- * ```js
- * var CanvasLayer = L.GridLayer.extend({
- * createTile: function(coords){
- * // create a <canvas> element for drawing
- * var tile = L.DomUtil.create('canvas', 'leaflet-tile');
- *
- * // setup tile width and height according to the options
- * var size = this.getTileSize();
- * tile.width = size.x;
- * tile.height = size.y;
- *
- * // get a canvas context and draw something on it using coords.x, coords.y and coords.z
- * var ctx = tile.getContext('2d');
- *
- * // return the tile so it can be rendered on screen
- * return tile;
- * }
- * });
- * ```
- *
- * @section Asynchronous usage
- * @example
- *
- * Tile creation can also be asynchronous, this is useful when using a third-party drawing library. Once the tile is finished drawing it can be passed to the `done()` callback.
- *
- * ```js
- * var CanvasLayer = L.GridLayer.extend({
- * createTile: function(coords, done){
- * var error;
- *
- * // create a <canvas> element for drawing
- * var tile = L.DomUtil.create('canvas', 'leaflet-tile');
- *
- * // setup tile width and height according to the options
- * var size = this.getTileSize();
- * tile.width = size.x;
- * tile.height = size.y;
- *
- * // draw something asynchronously and pass the tile to the done() callback
- * setTimeout(function() {
- * done(error, tile);
- * }, 1000);
- *
- * return tile;
- * }
- * });
- * ```
- *
- * @section
- */
- var GridLayer = Layer.extend({
- // @section
- // @aka GridLayer options
- options: {
- // @option tileSize: Number|Point = 256
- // Width and height of tiles in the grid. Use a number if width and height are equal, or `L.point(width, height)` otherwise.
- tileSize: 256,
- // @option opacity: Number = 1.0
- // Opacity of the tiles. Can be used in the `createTile()` function.
- opacity: 1,
- // @option updateWhenIdle: Boolean = (depends)
- // Load new tiles only when panning ends.
- // `true` by default on mobile browsers, in order to avoid too many requests and keep smooth navigation.
- // `false` otherwise in order to display new tiles _during_ panning, since it is easy to pan outside the
- // [`keepBuffer`](#gridlayer-keepbuffer) option in desktop browsers.
- updateWhenIdle: Browser.mobile,
- // @option updateWhenZooming: Boolean = true
- // By default, a smooth zoom animation (during a [touch zoom](#map-touchzoom) or a [`flyTo()`](#map-flyto)) will update grid layers every integer zoom level. Setting this option to `false` will update the grid layer only when the smooth animation ends.
- updateWhenZooming: true,
- // @option updateInterval: Number = 200
- // Tiles will not update more than once every `updateInterval` milliseconds when panning.
- updateInterval: 200,
- // @option zIndex: Number = 1
- // The explicit zIndex of the tile layer.
- zIndex: 1,
- // @option bounds: LatLngBounds = undefined
- // If set, tiles will only be loaded inside the set `LatLngBounds`.
- bounds: null,
- // @option minZoom: Number = 0
- // The minimum zoom level down to which this layer will be displayed (inclusive).
- minZoom: 0,
- // @option maxZoom: Number = undefined
- // The maximum zoom level up to which this layer will be displayed (inclusive).
- maxZoom: undefined,
- // @option maxNativeZoom: Number = undefined
- // Maximum zoom number the tile source has available. If it is specified,
- // the tiles on all zoom levels higher than `maxNativeZoom` will be loaded
- // from `maxNativeZoom` level and auto-scaled.
- maxNativeZoom: undefined,
- // @option minNativeZoom: Number = undefined
- // Minimum zoom number the tile source has available. If it is specified,
- // the tiles on all zoom levels lower than `minNativeZoom` will be loaded
- // from `minNativeZoom` level and auto-scaled.
- minNativeZoom: undefined,
- // @option noWrap: Boolean = false
- // Whether the layer is wrapped around the antimeridian. If `true`, the
- // GridLayer will only be displayed once at low zoom levels. Has no
- // effect when the [map CRS](#map-crs) doesn't wrap around. Can be used
- // in combination with [`bounds`](#gridlayer-bounds) to prevent requesting
- // tiles outside the CRS limits.
- noWrap: false,
- // @option pane: String = 'tilePane'
- // `Map pane` where the grid layer will be added.
- pane: 'tilePane',
- // @option className: String = ''
- // A custom class name to assign to the tile layer. Empty by default.
- className: '',
- // @option keepBuffer: Number = 2
- // When panning the map, keep this many rows and columns of tiles before unloading them.
- keepBuffer: 2
- },
- initialize: function initialize(options) {
- setOptions(this, options);
- },
- onAdd: function onAdd() {
- this._initContainer();
- this._levels = {};
- this._tiles = {};
- this._resetView(); // implicit _update() call
- },
- beforeAdd: function beforeAdd(map) {
- map._addZoomLimit(this);
- },
- onRemove: function onRemove(map) {
- this._removeAllTiles();
- _remove(this._container);
- map._removeZoomLimit(this);
- this._container = null;
- this._tileZoom = undefined;
- },
- // @method bringToFront: this
- // Brings the tile layer to the top of all tile layers.
- bringToFront: function bringToFront() {
- if (this._map) {
- toFront(this._container);
- this._setAutoZIndex(Math.max);
- }
- return this;
- },
- // @method bringToBack: this
- // Brings the tile layer to the bottom of all tile layers.
- bringToBack: function bringToBack() {
- if (this._map) {
- toBack(this._container);
- this._setAutoZIndex(Math.min);
- }
- return this;
- },
- // @method getContainer: HTMLElement
- // Returns the HTML element that contains the tiles for this layer.
- getContainer: function getContainer() {
- return this._container;
- },
- // @method setOpacity(opacity: Number): this
- // Changes the [opacity](#gridlayer-opacity) of the grid layer.
- setOpacity: function setOpacity(opacity) {
- this.options.opacity = opacity;
- this._updateOpacity();
- return this;
- },
- // @method setZIndex(zIndex: Number): this
- // Changes the [zIndex](#gridlayer-zindex) of the grid layer.
- setZIndex: function setZIndex(zIndex) {
- this.options.zIndex = zIndex;
- this._updateZIndex();
- return this;
- },
- // @method isLoading: Boolean
- // Returns `true` if any tile in the grid layer has not finished loading.
- isLoading: function isLoading() {
- return this._loading;
- },
- // @method redraw: this
- // Causes the layer to clear all the tiles and request them again.
- redraw: function redraw() {
- if (this._map) {
- this._removeAllTiles();
- var tileZoom = this._clampZoom(this._map.getZoom());
- if (tileZoom !== this._tileZoom) {
- this._tileZoom = tileZoom;
- this._updateLevels();
- }
- this._update();
- }
- return this;
- },
- getEvents: function getEvents() {
- var events = {
- viewprereset: this._invalidateAll,
- viewreset: this._resetView,
- zoom: this._resetView,
- moveend: this._onMoveEnd
- };
- if (!this.options.updateWhenIdle) {
- // update tiles on move, but not more often than once per given interval
- if (!this._onMove) {
- this._onMove = throttle(this._onMoveEnd, this.options.updateInterval, this);
- }
- events.move = this._onMove;
- }
- if (this._zoomAnimated) {
- events.zoomanim = this._animateZoom;
- }
- return events;
- },
- // @section Extension methods
- // Layers extending `GridLayer` shall reimplement the following method.
- // @method createTile(coords: Object, done?: Function): HTMLElement
- // Called only internally, must be overridden by classes extending `GridLayer`.
- // Returns the `HTMLElement` corresponding to the given `coords`. If the `done` callback
- // is specified, it must be called when the tile has finished loading and drawing.
- createTile: function createTile() {
- return document.createElement('div');
- },
- // @section
- // @method getTileSize: Point
- // Normalizes the [tileSize option](#gridlayer-tilesize) into a point. Used by the `createTile()` method.
- getTileSize: function getTileSize() {
- var s = this.options.tileSize;
- return s instanceof Point ? s : new Point(s, s);
- },
- _updateZIndex: function _updateZIndex() {
- if (this._container && this.options.zIndex !== undefined && this.options.zIndex !== null) {
- this._container.style.zIndex = this.options.zIndex;
- }
- },
- _setAutoZIndex: function _setAutoZIndex(compare) {
- // go through all other layers of the same pane, set zIndex to max + 1 (front) or min - 1 (back)
- var layers = this.getPane().children,
- edgeZIndex = -compare(-Infinity, Infinity); // -Infinity for max, Infinity for min
- for (var i = 0, len = layers.length, zIndex; i < len; i++) {
- zIndex = layers[i].style.zIndex;
- if (layers[i] !== this._container && zIndex) {
- edgeZIndex = compare(edgeZIndex, +zIndex);
- }
- }
- if (isFinite(edgeZIndex)) {
- this.options.zIndex = edgeZIndex + compare(-1, 1);
- this._updateZIndex();
- }
- },
- _updateOpacity: function _updateOpacity() {
- if (!this._map) {
- return;
- }
- // IE doesn't inherit filter opacity properly, so we're forced to set it on tiles
- if (Browser.ielt9) {
- return;
- }
- _setOpacity(this._container, this.options.opacity);
- var now = +new Date(),
- nextFrame = false,
- willPrune = false;
- for (var key in this._tiles) {
- var tile = this._tiles[key];
- if (!tile.current || !tile.loaded) {
- continue;
- }
- var fade = Math.min(1, (now - tile.loaded) / 200);
- _setOpacity(tile.el, fade);
- if (fade < 1) {
- nextFrame = true;
- } else {
- if (tile.active) {
- willPrune = true;
- } else {
- this._onOpaqueTile(tile);
- }
- tile.active = true;
- }
- }
- if (willPrune && !this._noPrune) {
- this._pruneTiles();
- }
- if (nextFrame) {
- cancelAnimFrame(this._fadeFrame);
- this._fadeFrame = requestAnimFrame(this._updateOpacity, this);
- }
- },
- _onOpaqueTile: falseFn,
- _initContainer: function _initContainer() {
- if (this._container) {
- return;
- }
- this._container = create$1('div', 'leaflet-layer ' + (this.options.className || ''));
- this._updateZIndex();
- if (this.options.opacity < 1) {
- this._updateOpacity();
- }
- this.getPane().appendChild(this._container);
- },
- _updateLevels: function _updateLevels() {
- var zoom = this._tileZoom,
- maxZoom = this.options.maxZoom;
- if (zoom === undefined) {
- return undefined;
- }
- for (var z in this._levels) {
- z = Number(z);
- if (this._levels[z].el.children.length || z === zoom) {
- this._levels[z].el.style.zIndex = maxZoom - Math.abs(zoom - z);
- this._onUpdateLevel(z);
- } else {
- _remove(this._levels[z].el);
- this._removeTilesAtZoom(z);
- this._onRemoveLevel(z);
- delete this._levels[z];
- }
- }
- var level = this._levels[zoom],
- map = this._map;
- if (!level) {
- level = this._levels[zoom] = {};
- level.el = create$1('div', 'leaflet-tile-container leaflet-zoom-animated', this._container);
- level.el.style.zIndex = maxZoom;
- level.origin = map.project(map.unproject(map.getPixelOrigin()), zoom).round();
- level.zoom = zoom;
- this._setZoomTransform(level, map.getCenter(), map.getZoom());
- // force the browser to consider the newly added element for transition
- falseFn(level.el.offsetWidth);
- this._onCreateLevel(level);
- }
- this._level = level;
- return level;
- },
- _onUpdateLevel: falseFn,
- _onRemoveLevel: falseFn,
- _onCreateLevel: falseFn,
- _pruneTiles: function _pruneTiles() {
- if (!this._map) {
- return;
- }
- var key, tile;
- var zoom = this._map.getZoom();
- if (zoom > this.options.maxZoom || zoom < this.options.minZoom) {
- this._removeAllTiles();
- return;
- }
- for (key in this._tiles) {
- tile = this._tiles[key];
- tile.retain = tile.current;
- }
- for (key in this._tiles) {
- tile = this._tiles[key];
- if (tile.current && !tile.active) {
- var coords = tile.coords;
- if (!this._retainParent(coords.x, coords.y, coords.z, coords.z - 5)) {
- this._retainChildren(coords.x, coords.y, coords.z, coords.z + 2);
- }
- }
- }
- for (key in this._tiles) {
- if (!this._tiles[key].retain) {
- this._removeTile(key);
- }
- }
- },
- _removeTilesAtZoom: function _removeTilesAtZoom(zoom) {
- for (var key in this._tiles) {
- if (this._tiles[key].coords.z !== zoom) {
- continue;
- }
- this._removeTile(key);
- }
- },
- _removeAllTiles: function _removeAllTiles() {
- for (var key in this._tiles) {
- this._removeTile(key);
- }
- },
- _invalidateAll: function _invalidateAll() {
- for (var z in this._levels) {
- _remove(this._levels[z].el);
- this._onRemoveLevel(Number(z));
- delete this._levels[z];
- }
- this._removeAllTiles();
- this._tileZoom = undefined;
- },
- _retainParent: function _retainParent(x, y, z, minZoom) {
- var x2 = Math.floor(x / 2),
- y2 = Math.floor(y / 2),
- z2 = z - 1,
- coords2 = new Point(+x2, +y2);
- coords2.z = +z2;
- var key = this._tileCoordsToKey(coords2),
- tile = this._tiles[key];
- if (tile && tile.active) {
- tile.retain = true;
- return true;
- } else if (tile && tile.loaded) {
- tile.retain = true;
- }
- if (z2 > minZoom) {
- return this._retainParent(x2, y2, z2, minZoom);
- }
- return false;
- },
- _retainChildren: function _retainChildren(x, y, z, maxZoom) {
- for (var i = 2 * x; i < 2 * x + 2; i++) {
- for (var j = 2 * y; j < 2 * y + 2; j++) {
- var coords = new Point(i, j);
- coords.z = z + 1;
- var key = this._tileCoordsToKey(coords),
- tile = this._tiles[key];
- if (tile && tile.active) {
- tile.retain = true;
- continue;
- } else if (tile && tile.loaded) {
- tile.retain = true;
- }
- if (z + 1 < maxZoom) {
- this._retainChildren(i, j, z + 1, maxZoom);
- }
- }
- }
- },
- _resetView: function _resetView(e) {
- var animating = e && (e.pinch || e.flyTo);
- this._setView(this._map.getCenter(), this._map.getZoom(), animating, animating);
- },
- _animateZoom: function _animateZoom(e) {
- this._setView(e.center, e.zoom, true, e.noUpdate);
- },
- _clampZoom: function _clampZoom(zoom) {
- var options = this.options;
- if (undefined !== options.minNativeZoom && zoom < options.minNativeZoom) {
- return options.minNativeZoom;
- }
- if (undefined !== options.maxNativeZoom && options.maxNativeZoom < zoom) {
- return options.maxNativeZoom;
- }
- return zoom;
- },
- _setView: function _setView(center, zoom, noPrune, noUpdate) {
- var tileZoom = Math.round(zoom);
- if (this.options.maxZoom !== undefined && tileZoom > this.options.maxZoom || this.options.minZoom !== undefined && tileZoom < this.options.minZoom) {
- tileZoom = undefined;
- } else {
- tileZoom = this._clampZoom(tileZoom);
- }
- var tileZoomChanged = this.options.updateWhenZooming && tileZoom !== this._tileZoom;
- if (!noUpdate || tileZoomChanged) {
- this._tileZoom = tileZoom;
- if (this._abortLoading) {
- this._abortLoading();
- }
- this._updateLevels();
- this._resetGrid();
- if (tileZoom !== undefined) {
- this._update(center);
- }
- if (!noPrune) {
- this._pruneTiles();
- }
- // Flag to prevent _updateOpacity from pruning tiles during
- // a zoom anim or a pinch gesture
- this._noPrune = !!noPrune;
- }
- this._setZoomTransforms(center, zoom);
- },
- _setZoomTransforms: function _setZoomTransforms(center, zoom) {
- for (var i in this._levels) {
- this._setZoomTransform(this._levels[i], center, zoom);
- }
- },
- _setZoomTransform: function _setZoomTransform(level, center, zoom) {
- var scale = this._map.getZoomScale(zoom, level.zoom),
- translate = level.origin.multiplyBy(scale).subtract(this._map._getNewPixelOrigin(center, zoom)).round();
- if (Browser.any3d) {
- setTransform(level.el, translate, scale);
- } else {
- setPosition(level.el, translate);
- }
- },
- _resetGrid: function _resetGrid() {
- var map = this._map,
- crs = map.options.crs,
- tileSize = this._tileSize = this.getTileSize(),
- tileZoom = this._tileZoom;
- var bounds = this._map.getPixelWorldBounds(this._tileZoom);
- if (bounds) {
- this._globalTileRange = this._pxBoundsToTileRange(bounds);
- }
- this._wrapX = crs.wrapLng && !this.options.noWrap && [Math.floor(map.project([0, crs.wrapLng[0]], tileZoom).x / tileSize.x), Math.ceil(map.project([0, crs.wrapLng[1]], tileZoom).x / tileSize.y)];
- this._wrapY = crs.wrapLat && !this.options.noWrap && [Math.floor(map.project([crs.wrapLat[0], 0], tileZoom).y / tileSize.x), Math.ceil(map.project([crs.wrapLat[1], 0], tileZoom).y / tileSize.y)];
- },
- _onMoveEnd: function _onMoveEnd() {
- if (!this._map || this._map._animatingZoom) {
- return;
- }
- this._update();
- },
- _getTiledPixelBounds: function _getTiledPixelBounds(center) {
- var map = this._map,
- mapZoom = map._animatingZoom ? Math.max(map._animateToZoom, map.getZoom()) : map.getZoom(),
- scale = map.getZoomScale(mapZoom, this._tileZoom),
- pixelCenter = map.project(center, this._tileZoom).floor(),
- halfSize = map.getSize().divideBy(scale * 2);
- return new Bounds(pixelCenter.subtract(halfSize), pixelCenter.add(halfSize));
- },
- // Private method to load tiles in the grid's active zoom level according to map bounds
- _update: function _update(center) {
- var map = this._map;
- if (!map) {
- return;
- }
- var zoom = this._clampZoom(map.getZoom());
- if (center === undefined) {
- center = map.getCenter();
- }
- if (this._tileZoom === undefined) {
- return;
- } // if out of minzoom/maxzoom
- var pixelBounds = this._getTiledPixelBounds(center),
- tileRange = this._pxBoundsToTileRange(pixelBounds),
- tileCenter = tileRange.getCenter(),
- queue = [],
- margin = this.options.keepBuffer,
- noPruneRange = new Bounds(tileRange.getBottomLeft().subtract([margin, -margin]), tileRange.getTopRight().add([margin, -margin]));
- // Sanity check: panic if the tile range contains Infinity somewhere.
- if (!(isFinite(tileRange.min.x) && isFinite(tileRange.min.y) && isFinite(tileRange.max.x) && isFinite(tileRange.max.y))) {
- throw new Error('Attempted to load an infinite number of tiles');
- }
- for (var key in this._tiles) {
- var c = this._tiles[key].coords;
- if (c.z !== this._tileZoom || !noPruneRange.contains(new Point(c.x, c.y))) {
- this._tiles[key].current = false;
- }
- }
- // _update just loads more tiles. If the tile zoom level differs too much
- // from the map's, let _setView reset levels and prune old tiles.
- if (Math.abs(zoom - this._tileZoom) > 1) {
- this._setView(center, zoom);
- return;
- }
- // create a queue of coordinates to load tiles from
- for (var j = tileRange.min.y; j <= tileRange.max.y; j++) {
- for (var i = tileRange.min.x; i <= tileRange.max.x; i++) {
- var coords = new Point(i, j);
- coords.z = this._tileZoom;
- if (!this._isValidTile(coords)) {
- continue;
- }
- var tile = this._tiles[this._tileCoordsToKey(coords)];
- if (tile) {
- tile.current = true;
- } else {
- queue.push(coords);
- }
- }
- }
- // sort tile queue to load tiles in order of their distance to center
- queue.sort(function (a, b) {
- return a.distanceTo(tileCenter) - b.distanceTo(tileCenter);
- });
- if (queue.length !== 0) {
- // if it's the first batch of tiles to load
- if (!this._loading) {
- this._loading = true;
- // @event loading: Event
- // Fired when the grid layer starts loading tiles.
- this.fire('loading');
- }
- // create DOM fragment to append tiles in one batch
- var fragment = document.createDocumentFragment();
- for (i = 0; i < queue.length; i++) {
- this._addTile(queue[i], fragment);
- }
- this._level.el.appendChild(fragment);
- }
- },
- _isValidTile: function _isValidTile(coords) {
- var crs = this._map.options.crs;
- if (!crs.infinite) {
- // don't load tile if it's out of bounds and not wrapped
- var bounds = this._globalTileRange;
- if (!crs.wrapLng && (coords.x < bounds.min.x || coords.x > bounds.max.x) || !crs.wrapLat && (coords.y < bounds.min.y || coords.y > bounds.max.y)) {
- return false;
- }
- }
- if (!this.options.bounds) {
- return true;
- }
- // don't load tile if it doesn't intersect the bounds in options
- var tileBounds = this._tileCoordsToBounds(coords);
- return toLatLngBounds(this.options.bounds).overlaps(tileBounds);
- },
- _keyToBounds: function _keyToBounds(key) {
- return this._tileCoordsToBounds(this._keyToTileCoords(key));
- },
- _tileCoordsToNwSe: function _tileCoordsToNwSe(coords) {
- var map = this._map,
- tileSize = this.getTileSize(),
- nwPoint = coords.scaleBy(tileSize),
- sePoint = nwPoint.add(tileSize),
- nw = map.unproject(nwPoint, coords.z),
- se = map.unproject(sePoint, coords.z);
- return [nw, se];
- },
- // converts tile coordinates to its geographical bounds
- _tileCoordsToBounds: function _tileCoordsToBounds(coords) {
- var bp = this._tileCoordsToNwSe(coords),
- bounds = new LatLngBounds(bp[0], bp[1]);
- if (!this.options.noWrap) {
- bounds = this._map.wrapLatLngBounds(bounds);
- }
- return bounds;
- },
- // converts tile coordinates to key for the tile cache
- _tileCoordsToKey: function _tileCoordsToKey(coords) {
- return coords.x + ':' + coords.y + ':' + coords.z;
- },
- // converts tile cache key to coordinates
- _keyToTileCoords: function _keyToTileCoords(key) {
- var k = key.split(':'),
- coords = new Point(+k[0], +k[1]);
- coords.z = +k[2];
- return coords;
- },
- _removeTile: function _removeTile(key) {
- var tile = this._tiles[key];
- if (!tile) {
- return;
- }
- _remove(tile.el);
- delete this._tiles[key];
- // @event tileunload: TileEvent
- // Fired when a tile is removed (e.g. when a tile goes off the screen).
- this.fire('tileunload', {
- tile: tile.el,
- coords: this._keyToTileCoords(key)
- });
- },
- _initTile: function _initTile(tile) {
- addClass(tile, 'leaflet-tile');
- var tileSize = this.getTileSize();
- tile.style.width = tileSize.x + 'px';
- tile.style.height = tileSize.y + 'px';
- tile.onselectstart = falseFn;
- tile.onmousemove = falseFn;
- // update opacity on tiles in IE7-8 because of filter inheritance problems
- if (Browser.ielt9 && this.options.opacity < 1) {
- _setOpacity(tile, this.options.opacity);
- }
- },
- _addTile: function _addTile(coords, container) {
- var tilePos = this._getTilePos(coords),
- key = this._tileCoordsToKey(coords);
- var tile = this.createTile(this._wrapCoords(coords), bind(this._tileReady, this, coords));
- this._initTile(tile);
- // if createTile is defined with a second argument ("done" callback),
- // we know that tile is async and will be ready later; otherwise
- if (this.createTile.length < 2) {
- // mark tile as ready, but delay one frame for opacity animation to happen
- requestAnimFrame(bind(this._tileReady, this, coords, null, tile));
- }
- setPosition(tile, tilePos);
- // save tile in cache
- this._tiles[key] = {
- el: tile,
- coords: coords,
- current: true
- };
- container.appendChild(tile);
- // @event tileloadstart: TileEvent
- // Fired when a tile is requested and starts loading.
- this.fire('tileloadstart', {
- tile: tile,
- coords: coords
- });
- },
- _tileReady: function _tileReady(coords, err, tile) {
- if (err) {
- // @event tileerror: TileErrorEvent
- // Fired when there is an error loading a tile.
- this.fire('tileerror', {
- error: err,
- tile: tile,
- coords: coords
- });
- }
- var key = this._tileCoordsToKey(coords);
- tile = this._tiles[key];
- if (!tile) {
- return;
- }
- tile.loaded = +new Date();
- if (this._map._fadeAnimated) {
- _setOpacity(tile.el, 0);
- cancelAnimFrame(this._fadeFrame);
- this._fadeFrame = requestAnimFrame(this._updateOpacity, this);
- } else {
- tile.active = true;
- this._pruneTiles();
- }
- if (!err) {
- addClass(tile.el, 'leaflet-tile-loaded');
- // @event tileload: TileEvent
- // Fired when a tile loads.
- this.fire('tileload', {
- tile: tile.el,
- coords: coords
- });
- }
- if (this._noTilesToLoad()) {
- this._loading = false;
- // @event load: Event
- // Fired when the grid layer loaded all visible tiles.
- this.fire('load');
- if (Browser.ielt9 || !this._map._fadeAnimated) {
- requestAnimFrame(this._pruneTiles, this);
- } else {
- // Wait a bit more than 0.2 secs (the duration of the tile fade-in)
- // to trigger a pruning.
- setTimeout(bind(this._pruneTiles, this), 250);
- }
- }
- },
- _getTilePos: function _getTilePos(coords) {
- return coords.scaleBy(this.getTileSize()).subtract(this._level.origin);
- },
- _wrapCoords: function _wrapCoords(coords) {
- var newCoords = new Point(this._wrapX ? wrapNum(coords.x, this._wrapX) : coords.x, this._wrapY ? wrapNum(coords.y, this._wrapY) : coords.y);
- newCoords.z = coords.z;
- return newCoords;
- },
- _pxBoundsToTileRange: function _pxBoundsToTileRange(bounds) {
- var tileSize = this.getTileSize();
- return new Bounds(bounds.min.unscaleBy(tileSize).floor(), bounds.max.unscaleBy(tileSize).ceil().subtract([1, 1]));
- },
- _noTilesToLoad: function _noTilesToLoad() {
- for (var key in this._tiles) {
- if (!this._tiles[key].loaded) {
- return false;
- }
- }
- return true;
- }
- });
- // @factory L.gridLayer(options?: GridLayer options)
- // Creates a new instance of GridLayer with the supplied options.
- function gridLayer(options) {
- return new GridLayer(options);
- }
- /*
- * @class TileLayer
- * @inherits GridLayer
- * @aka L.TileLayer
- * Used to load and display tile layers on the map. Note that most tile servers require attribution, which you can set under `Layer`. Extends `GridLayer`.
- *
- * @example
- *
- * ```js
- * L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar', attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
- * ```
- *
- * @section URL template
- * @example
- *
- * A string of the following form:
- *
- * ```
- * 'https://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
- * ```
- *
- * `{s}` means one of the available subdomains (used sequentially to help with browser parallel requests per domain limitation; subdomain values are specified in options; `a`, `b` or `c` by default, can be omitted), `{z}` — zoom level, `{x}` and `{y}` — tile coordinates. `{r}` can be used to add "@2x" to the URL to load retina tiles.
- *
- * You can use custom keys in the template, which will be [evaluated](#util-template) from TileLayer options, like this:
- *
- * ```
- * L.tileLayer('https://{s}.somedomain.com/{foo}/{z}/{x}/{y}.png', {foo: 'bar'});
- * ```
- */
- var TileLayer = GridLayer.extend({
- // @section
- // @aka TileLayer options
- options: {
- // @option minZoom: Number = 0
- // The minimum zoom level down to which this layer will be displayed (inclusive).
- minZoom: 0,
- // @option maxZoom: Number = 18
- // The maximum zoom level up to which this layer will be displayed (inclusive).
- maxZoom: 18,
- // @option subdomains: String|String[] = 'abc'
- // Subdomains of the tile service. Can be passed in the form of one string (where each letter is a subdomain name) or an array of strings.
- subdomains: 'abc',
- // @option errorTileUrl: String = ''
- // URL to the tile image to show in place of the tile that failed to load.
- errorTileUrl: '',
- // @option zoomOffset: Number = 0
- // The zoom number used in tile URLs will be offset with this value.
- zoomOffset: 0,
- // @option tms: Boolean = false
- // If `true`, inverses Y axis numbering for tiles (turn this on for [TMS](https://en.wikipedia.org/wiki/Tile_Map_Service) services).
- tms: false,
- // @option zoomReverse: Boolean = false
- // If set to true, the zoom number used in tile URLs will be reversed (`maxZoom - zoom` instead of `zoom`)
- zoomReverse: false,
- // @option detectRetina: Boolean = false
- // If `true` and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.
- detectRetina: false,
- // @option crossOrigin: Boolean|String = false
- // Whether the crossOrigin attribute will be added to the tiles.
- // If a String is provided, all tiles will have their crossOrigin attribute set to the String provided. This is needed if you want to access tile pixel data.
- // Refer to [CORS Settings](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for valid String values.
- crossOrigin: false,
- // @option referrerPolicy: Boolean|String = false
- // Whether the referrerPolicy attribute will be added to the tiles.
- // If a String is provided, all tiles will have their referrerPolicy attribute set to the String provided.
- // This may be needed if your map's rendering context has a strict default but your tile provider expects a valid referrer
- // (e.g. to validate an API token).
- // Refer to [HTMLImageElement.referrerPolicy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy) for valid String values.
- referrerPolicy: false
- },
- initialize: function initialize(url, options) {
- this._url = url;
- options = setOptions(this, options);
- // detecting retina displays, adjusting tileSize and zoom levels
- if (options.detectRetina && Browser.retina && options.maxZoom > 0) {
- options.tileSize = Math.floor(options.tileSize / 2);
- if (!options.zoomReverse) {
- options.zoomOffset++;
- options.maxZoom = Math.max(options.minZoom, options.maxZoom - 1);
- } else {
- options.zoomOffset--;
- options.minZoom = Math.min(options.maxZoom, options.minZoom + 1);
- }
- options.minZoom = Math.max(0, options.minZoom);
- } else if (!options.zoomReverse) {
- // make sure maxZoom is gte minZoom
- options.maxZoom = Math.max(options.minZoom, options.maxZoom);
- } else {
- // make sure minZoom is lte maxZoom
- options.minZoom = Math.min(options.maxZoom, options.minZoom);
- }
- if (typeof options.subdomains === 'string') {
- options.subdomains = options.subdomains.split('');
- }
- this.on('tileunload', this._onTileRemove);
- },
- // @method setUrl(url: String, noRedraw?: Boolean): this
- // Updates the layer's URL template and redraws it (unless `noRedraw` is set to `true`).
- // If the URL does not change, the layer will not be redrawn unless
- // the noRedraw parameter is set to false.
- setUrl: function setUrl(url, noRedraw) {
- if (this._url === url && noRedraw === undefined) {
- noRedraw = true;
- }
- this._url = url;
- if (!noRedraw) {
- this.redraw();
- }
- return this;
- },
- // @method createTile(coords: Object, done?: Function): HTMLElement
- // Called only internally, overrides GridLayer's [`createTile()`](#gridlayer-createtile)
- // to return an `<img>` HTML element with the appropriate image URL given `coords`. The `done`
- // callback is called when the tile has been loaded.
- createTile: function createTile(coords, done) {
- var tile = document.createElement('img');
- on(tile, 'load', bind(this._tileOnLoad, this, done, tile));
- on(tile, 'error', bind(this._tileOnError, this, done, tile));
- if (this.options.crossOrigin || this.options.crossOrigin === '') {
- tile.crossOrigin = this.options.crossOrigin === true ? '' : this.options.crossOrigin;
- }
- // for this new option we follow the documented behavior
- // more closely by only setting the property when string
- if (typeof this.options.referrerPolicy === 'string') {
- tile.referrerPolicy = this.options.referrerPolicy;
- }
- // The alt attribute is set to the empty string,
- // allowing screen readers to ignore the decorative image tiles.
- // https://www.w3.org/WAI/tutorials/images/decorative/
- // https://www.w3.org/TR/html-aria/#el-img-empty-alt
- tile.alt = '';
- tile.src = this.getTileUrl(coords);
- return tile;
- },
- // @section Extension methods
- // @uninheritable
- // Layers extending `TileLayer` might reimplement the following method.
- // @method getTileUrl(coords: Object): String
- // Called only internally, returns the URL for a tile given its coordinates.
- // Classes extending `TileLayer` can override this function to provide custom tile URL naming schemes.
- getTileUrl: function getTileUrl(coords) {
- var data = {
- r: Browser.retina ? '@2x' : '',
- s: this._getSubdomain(coords),
- x: coords.x,
- y: coords.y,
- z: this._getZoomForUrl()
- };
- if (this._map && !this._map.options.crs.infinite) {
- var invertedY = this._globalTileRange.max.y - coords.y;
- if (this.options.tms) {
- data['y'] = invertedY;
- }
- data['-y'] = invertedY;
- }
- return template(this._url, extend(data, this.options));
- },
- _tileOnLoad: function _tileOnLoad(done, tile) {
- // For https://github.com/Leaflet/Leaflet/issues/3332
- if (Browser.ielt9) {
- setTimeout(bind(done, this, null, tile), 0);
- } else {
- done(null, tile);
- }
- },
- _tileOnError: function _tileOnError(done, tile, e) {
- var errorUrl = this.options.errorTileUrl;
- if (errorUrl && tile.getAttribute('src') !== errorUrl) {
- tile.src = errorUrl;
- }
- done(e, tile);
- },
- _onTileRemove: function _onTileRemove(e) {
- e.tile.onload = null;
- },
- _getZoomForUrl: function _getZoomForUrl() {
- var zoom = this._tileZoom,
- maxZoom = this.options.maxZoom,
- zoomReverse = this.options.zoomReverse,
- zoomOffset = this.options.zoomOffset;
- if (zoomReverse) {
- zoom = maxZoom - zoom;
- }
- return zoom + zoomOffset;
- },
- _getSubdomain: function _getSubdomain(tilePoint) {
- var index = Math.abs(tilePoint.x + tilePoint.y) % this.options.subdomains.length;
- return this.options.subdomains[index];
- },
- // stops loading all tiles in the background layer
- _abortLoading: function _abortLoading() {
- var i, tile;
- for (i in this._tiles) {
- if (this._tiles[i].coords.z !== this._tileZoom) {
- tile = this._tiles[i].el;
- tile.onload = falseFn;
- tile.onerror = falseFn;
- if (!tile.complete) {
- tile.src = emptyImageUrl;
- var coords = this._tiles[i].coords;
- _remove(tile);
- delete this._tiles[i];
- // @event tileabort: TileEvent
- // Fired when a tile was loading but is now not wanted.
- this.fire('tileabort', {
- tile: tile,
- coords: coords
- });
- }
- }
- }
- },
- _removeTile: function _removeTile(key) {
- var tile = this._tiles[key];
- if (!tile) {
- return;
- }
- // Cancels any pending http requests associated with the tile
- tile.el.setAttribute('src', emptyImageUrl);
- return GridLayer.prototype._removeTile.call(this, key);
- },
- _tileReady: function _tileReady(coords, err, tile) {
- if (!this._map || tile && tile.getAttribute('src') === emptyImageUrl) {
- return;
- }
- return GridLayer.prototype._tileReady.call(this, coords, err, tile);
- }
- });
- // @factory L.tilelayer(urlTemplate: String, options?: TileLayer options)
- // Instantiates a tile layer object given a `URL template` and optionally an options object.
- function tileLayer(url, options) {
- return new TileLayer(url, options);
- }
- /*
- * @class TileLayer.WMS
- * @inherits TileLayer
- * @aka L.TileLayer.WMS
- * Used to display [WMS](https://en.wikipedia.org/wiki/Web_Map_Service) services as tile layers on the map. Extends `TileLayer`.
- *
- * @example
- *
- * ```js
- * var nexrad = L.tileLayer.wms("http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi", {
- * layers: 'nexrad-n0r-900913',
- * format: 'image/png',
- * transparent: true,
- * attribution: "Weather data © 2012 IEM Nexrad"
- * });
- * ```
- */
- var TileLayerWMS = TileLayer.extend({
- // @section
- // @aka TileLayer.WMS options
- // If any custom options not documented here are used, they will be sent to the
- // WMS server as extra parameters in each request URL. This can be useful for
- // [non-standard vendor WMS parameters](https://docs.geoserver.org/stable/en/user/services/wms/vendor.html).
- defaultWmsParams: {
- service: 'WMS',
- request: 'GetMap',
- // @option layers: String = ''
- // **(required)** Comma-separated list of WMS layers to show.
- layers: '',
- // @option styles: String = ''
- // Comma-separated list of WMS styles.
- styles: '',
- // @option format: String = 'image/jpeg'
- // WMS image format (use `'image/png'` for layers with transparency).
- format: 'image/jpeg',
- // @option transparent: Boolean = false
- // If `true`, the WMS service will return images with transparency.
- transparent: false,
- // @option version: String = '1.1.1'
- // Version of the WMS service to use
- version: '1.1.1'
- },
- options: {
- // @option crs: CRS = null
- // Coordinate Reference System to use for the WMS requests, defaults to
- // map CRS. Don't change this if you're not sure what it means.
- crs: null,
- // @option uppercase: Boolean = false
- // If `true`, WMS request parameter keys will be uppercase.
- uppercase: false
- },
- initialize: function initialize(url, options) {
- this._url = url;
- var wmsParams = extend({}, this.defaultWmsParams);
- // all keys that are not TileLayer options go to WMS params
- for (var i in options) {
- if (!(i in this.options)) {
- wmsParams[i] = options[i];
- }
- }
- options = setOptions(this, options);
- var realRetina = options.detectRetina && Browser.retina ? 2 : 1;
- var tileSize = this.getTileSize();
- wmsParams.width = tileSize.x * realRetina;
- wmsParams.height = tileSize.y * realRetina;
- this.wmsParams = wmsParams;
- },
- onAdd: function onAdd(map) {
- this._crs = this.options.crs || map.options.crs;
- this._wmsVersion = parseFloat(this.wmsParams.version);
- var projectionKey = this._wmsVersion >= 1.3 ? 'crs' : 'srs';
- this.wmsParams[projectionKey] = this._crs.code;
- TileLayer.prototype.onAdd.call(this, map);
- },
- getTileUrl: function getTileUrl(coords) {
- var tileBounds = this._tileCoordsToNwSe(coords),
- crs = this._crs,
- bounds = toBounds(crs.project(tileBounds[0]), crs.project(tileBounds[1])),
- min = bounds.min,
- max = bounds.max,
- bbox = (this._wmsVersion >= 1.3 && this._crs === EPSG4326 ? [min.y, min.x, max.y, max.x] : [min.x, min.y, max.x, max.y]).join(','),
- url = TileLayer.prototype.getTileUrl.call(this, coords);
- return url + getParamString(this.wmsParams, url, this.options.uppercase) + (this.options.uppercase ? '&BBOX=' : '&bbox=') + bbox;
- },
- // @method setParams(params: Object, noRedraw?: Boolean): this
- // Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
- setParams: function setParams(params, noRedraw) {
- extend(this.wmsParams, params);
- if (!noRedraw) {
- this.redraw();
- }
- return this;
- }
- });
- // @factory L.tileLayer.wms(baseUrl: String, options: TileLayer.WMS options)
- // Instantiates a WMS tile layer object given a base URL of the WMS service and a WMS parameters/options object.
- function tileLayerWMS(url, options) {
- return new TileLayerWMS(url, options);
- }
- TileLayer.WMS = TileLayerWMS;
- tileLayer.wms = tileLayerWMS;
- /*
- * @class Renderer
- * @inherits Layer
- * @aka L.Renderer
- *
- * Base class for vector renderer implementations (`SVG`, `Canvas`). Handles the
- * DOM container of the renderer, its bounds, and its zoom animation.
- *
- * A `Renderer` works as an implicit layer group for all `Path`s - the renderer
- * itself can be added or removed to the map. All paths use a renderer, which can
- * be implicit (the map will decide the type of renderer and use it automatically)
- * or explicit (using the [`renderer`](#path-renderer) option of the path).
- *
- * Do not use this class directly, use `SVG` and `Canvas` instead.
- *
- * @event update: Event
- * Fired when the renderer updates its bounds, center and zoom, for example when
- * its map has moved
- */
- var Renderer = Layer.extend({
- // @section
- // @aka Renderer options
- options: {
- // @option padding: Number = 0.1
- // How much to extend the clip area around the map view (relative to its size)
- // e.g. 0.1 would be 10% of map view in each direction
- padding: 0.1
- },
- initialize: function initialize(options) {
- setOptions(this, options);
- stamp(this);
- this._layers = this._layers || {};
- },
- onAdd: function onAdd() {
- if (!this._container) {
- this._initContainer(); // defined by renderer implementations
- if (this._zoomAnimated) {
- addClass(this._container, 'leaflet-zoom-animated');
- }
- }
- this.getPane().appendChild(this._container);
- this._update();
- this.on('update', this._updatePaths, this);
- },
- onRemove: function onRemove() {
- this.off('update', this._updatePaths, this);
- this._destroyContainer();
- },
- getEvents: function getEvents() {
- var events = {
- viewreset: this._reset,
- zoom: this._onZoom,
- moveend: this._update,
- zoomend: this._onZoomEnd
- };
- if (this._zoomAnimated) {
- events.zoomanim = this._onAnimZoom;
- }
- return events;
- },
- _onAnimZoom: function _onAnimZoom(ev) {
- this._updateTransform(ev.center, ev.zoom);
- },
- _onZoom: function _onZoom() {
- this._updateTransform(this._map.getCenter(), this._map.getZoom());
- },
- _updateTransform: function _updateTransform(center, zoom) {
- var scale = this._map.getZoomScale(zoom, this._zoom),
- viewHalf = this._map.getSize().multiplyBy(0.5 + this.options.padding),
- currentCenterPoint = this._map.project(this._center, zoom),
- topLeftOffset = viewHalf.multiplyBy(-scale).add(currentCenterPoint).subtract(this._map._getNewPixelOrigin(center, zoom));
- if (Browser.any3d) {
- setTransform(this._container, topLeftOffset, scale);
- } else {
- setPosition(this._container, topLeftOffset);
- }
- },
- _reset: function _reset() {
- this._update();
- this._updateTransform(this._center, this._zoom);
- for (var id in this._layers) {
- this._layers[id]._reset();
- }
- },
- _onZoomEnd: function _onZoomEnd() {
- for (var id in this._layers) {
- this._layers[id]._project();
- }
- },
- _updatePaths: function _updatePaths() {
- for (var id in this._layers) {
- this._layers[id]._update();
- }
- },
- _update: function _update() {
- // Update pixel bounds of renderer container (for positioning/sizing/clipping later)
- // Subclasses are responsible of firing the 'update' event.
- var p = this.options.padding,
- size = this._map.getSize(),
- min = this._map.containerPointToLayerPoint(size.multiplyBy(-p)).round();
- this._bounds = new Bounds(min, min.add(size.multiplyBy(1 + p * 2)).round());
- this._center = this._map.getCenter();
- this._zoom = this._map.getZoom();
- }
- });
- /*
- * @class Canvas
- * @inherits Renderer
- * @aka L.Canvas
- *
- * Allows vector layers to be displayed with [`<canvas>`](https://developer.mozilla.org/docs/Web/API/Canvas_API).
- * Inherits `Renderer`.
- *
- * Due to [technical limitations](https://caniuse.com/canvas), Canvas is not
- * available in all web browsers, notably IE8, and overlapping geometries might
- * not display properly in some edge cases.
- *
- * @example
- *
- * Use Canvas by default for all paths in the map:
- *
- * ```js
- * var map = L.map('map', {
- * renderer: L.canvas()
- * });
- * ```
- *
- * Use a Canvas renderer with extra padding for specific vector geometries:
- *
- * ```js
- * var map = L.map('map');
- * var myRenderer = L.canvas({ padding: 0.5 });
- * var line = L.polyline( coordinates, { renderer: myRenderer } );
- * var circle = L.circle( center, { renderer: myRenderer } );
- * ```
- */
- var Canvas = Renderer.extend({
- // @section
- // @aka Canvas options
- options: {
- // @option tolerance: Number = 0
- // How much to extend the click tolerance around a path/object on the map.
- tolerance: 0
- },
- getEvents: function getEvents() {
- var events = Renderer.prototype.getEvents.call(this);
- events.viewprereset = this._onViewPreReset;
- return events;
- },
- _onViewPreReset: function _onViewPreReset() {
- // Set a flag so that a viewprereset+moveend+viewreset only updates&redraws once
- this._postponeUpdatePaths = true;
- },
- onAdd: function onAdd() {
- Renderer.prototype.onAdd.call(this);
- // Redraw vectors since canvas is cleared upon removal,
- // in case of removing the renderer itself from the map.
- this._draw();
- },
- _initContainer: function _initContainer() {
- var container = this._container = document.createElement('canvas');
- on(container, 'mousemove', this._onMouseMove, this);
- on(container, 'click dblclick mousedown mouseup contextmenu', this._onClick, this);
- on(container, 'mouseout', this._handleMouseOut, this);
- container['_leaflet_disable_events'] = true;
- this._ctx = container.getContext('2d');
- },
- _destroyContainer: function _destroyContainer() {
- cancelAnimFrame(this._redrawRequest);
- delete this._ctx;
- _remove(this._container);
- off(this._container);
- delete this._container;
- },
- _updatePaths: function _updatePaths() {
- if (this._postponeUpdatePaths) {
- return;
- }
- var layer;
- this._redrawBounds = null;
- for (var id in this._layers) {
- layer = this._layers[id];
- layer._update();
- }
- this._redraw();
- },
- _update: function _update() {
- if (this._map._animatingZoom && this._bounds) {
- return;
- }
- Renderer.prototype._update.call(this);
- var b = this._bounds,
- container = this._container,
- size = b.getSize(),
- m = Browser.retina ? 2 : 1;
- setPosition(container, b.min);
- // set canvas size (also clearing it); use double size on retina
- container.width = m * size.x;
- container.height = m * size.y;
- container.style.width = size.x + 'px';
- container.style.height = size.y + 'px';
- if (Browser.retina) {
- this._ctx.scale(2, 2);
- }
- // translate so we use the same path coordinates after canvas element moves
- this._ctx.translate(-b.min.x, -b.min.y);
- // Tell paths to redraw themselves
- this.fire('update');
- },
- _reset: function _reset() {
- Renderer.prototype._reset.call(this);
- if (this._postponeUpdatePaths) {
- this._postponeUpdatePaths = false;
- this._updatePaths();
- }
- },
- _initPath: function _initPath(layer) {
- this._updateDashArray(layer);
- this._layers[stamp(layer)] = layer;
- var order = layer._order = {
- layer: layer,
- prev: this._drawLast,
- next: null
- };
- if (this._drawLast) {
- this._drawLast.next = order;
- }
- this._drawLast = order;
- this._drawFirst = this._drawFirst || this._drawLast;
- },
- _addPath: function _addPath(layer) {
- this._requestRedraw(layer);
- },
- _removePath: function _removePath(layer) {
- var order = layer._order;
- var next = order.next;
- var prev = order.prev;
- if (next) {
- next.prev = prev;
- } else {
- this._drawLast = prev;
- }
- if (prev) {
- prev.next = next;
- } else {
- this._drawFirst = next;
- }
- delete layer._order;
- delete this._layers[stamp(layer)];
- this._requestRedraw(layer);
- },
- _updatePath: function _updatePath(layer) {
- // Redraw the union of the layer's old pixel
- // bounds and the new pixel bounds.
- this._extendRedrawBounds(layer);
- layer._project();
- layer._update();
- // The redraw will extend the redraw bounds
- // with the new pixel bounds.
- this._requestRedraw(layer);
- },
- _updateStyle: function _updateStyle(layer) {
- this._updateDashArray(layer);
- this._requestRedraw(layer);
- },
- _updateDashArray: function _updateDashArray(layer) {
- if (typeof layer.options.dashArray === 'string') {
- var parts = layer.options.dashArray.split(/[, ]+/),
- dashArray = [],
- dashValue,
- i;
- for (i = 0; i < parts.length; i++) {
- dashValue = Number(parts[i]);
- // Ignore dash array containing invalid lengths
- if (isNaN(dashValue)) {
- return;
- }
- dashArray.push(dashValue);
- }
- layer.options._dashArray = dashArray;
- } else {
- layer.options._dashArray = layer.options.dashArray;
- }
- },
- _requestRedraw: function _requestRedraw(layer) {
- if (!this._map) {
- return;
- }
- this._extendRedrawBounds(layer);
- this._redrawRequest = this._redrawRequest || requestAnimFrame(this._redraw, this);
- },
- _extendRedrawBounds: function _extendRedrawBounds(layer) {
- if (layer._pxBounds) {
- var padding = (layer.options.weight || 0) + 1;
- this._redrawBounds = this._redrawBounds || new Bounds();
- this._redrawBounds.extend(layer._pxBounds.min.subtract([padding, padding]));
- this._redrawBounds.extend(layer._pxBounds.max.add([padding, padding]));
- }
- },
- _redraw: function _redraw() {
- this._redrawRequest = null;
- if (this._redrawBounds) {
- this._redrawBounds.min._floor();
- this._redrawBounds.max._ceil();
- }
- this._clear(); // clear layers in redraw bounds
- this._draw(); // draw layers
- this._redrawBounds = null;
- },
- _clear: function _clear() {
- var bounds = this._redrawBounds;
- if (bounds) {
- var size = bounds.getSize();
- this._ctx.clearRect(bounds.min.x, bounds.min.y, size.x, size.y);
- } else {
- this._ctx.save();
- this._ctx.setTransform(1, 0, 0, 1, 0, 0);
- this._ctx.clearRect(0, 0, this._container.width, this._container.height);
- this._ctx.restore();
- }
- },
- _draw: function _draw() {
- var layer,
- bounds = this._redrawBounds;
- this._ctx.save();
- if (bounds) {
- var size = bounds.getSize();
- this._ctx.beginPath();
- this._ctx.rect(bounds.min.x, bounds.min.y, size.x, size.y);
- this._ctx.clip();
- }
- this._drawing = true;
- for (var order = this._drawFirst; order; order = order.next) {
- layer = order.layer;
- if (!bounds || layer._pxBounds && layer._pxBounds.intersects(bounds)) {
- layer._updatePath();
- }
- }
- this._drawing = false;
- this._ctx.restore(); // Restore state before clipping.
- },
- _updatePoly: function _updatePoly(layer, closed) {
- if (!this._drawing) {
- return;
- }
- var i,
- j,
- len2,
- p,
- parts = layer._parts,
- len = parts.length,
- ctx = this._ctx;
- if (!len) {
- return;
- }
- ctx.beginPath();
- for (i = 0; i < len; i++) {
- for (j = 0, len2 = parts[i].length; j < len2; j++) {
- p = parts[i][j];
- ctx[j ? 'lineTo' : 'moveTo'](p.x, p.y);
- }
- if (closed) {
- ctx.closePath();
- }
- }
- this._fillStroke(ctx, layer);
- // TODO optimization: 1 fill/stroke for all features with equal style instead of 1 for each feature
- },
- _updateCircle: function _updateCircle(layer) {
- if (!this._drawing || layer._empty()) {
- return;
- }
- var p = layer._point,
- ctx = this._ctx,
- r = Math.max(Math.round(layer._radius), 1),
- s = (Math.max(Math.round(layer._radiusY), 1) || r) / r;
- if (s !== 1) {
- ctx.save();
- ctx.scale(1, s);
- }
- ctx.beginPath();
- ctx.arc(p.x, p.y / s, r, 0, Math.PI * 2, false);
- if (s !== 1) {
- ctx.restore();
- }
- this._fillStroke(ctx, layer);
- },
- _fillStroke: function _fillStroke(ctx, layer) {
- var options = layer.options;
- if (options.fill) {
- ctx.globalAlpha = options.fillOpacity;
- ctx.fillStyle = options.fillColor || options.color;
- ctx.fill(options.fillRule || 'evenodd');
- }
- if (options.stroke && options.weight !== 0) {
- if (ctx.setLineDash) {
- ctx.setLineDash(layer.options && layer.options._dashArray || []);
- }
- ctx.globalAlpha = options.opacity;
- ctx.lineWidth = options.weight;
- ctx.strokeStyle = options.color;
- ctx.lineCap = options.lineCap;
- ctx.lineJoin = options.lineJoin;
- ctx.stroke();
- }
- },
- // Canvas obviously doesn't have mouse events for individual drawn objects,
- // so we emulate that by calculating what's under the mouse on mousemove/click manually
- _onClick: function _onClick(e) {
- var point = this._map.mouseEventToLayerPoint(e),
- layer,
- clickedLayer;
- for (var order = this._drawFirst; order; order = order.next) {
- layer = order.layer;
- if (layer.options.interactive && layer._containsPoint(point)) {
- if (!(e.type === 'click' || e.type === 'preclick') || !this._map._draggableMoved(layer)) {
- clickedLayer = layer;
- }
- }
- }
- this._fireEvent(clickedLayer ? [clickedLayer] : false, e);
- },
- _onMouseMove: function _onMouseMove(e) {
- if (!this._map || this._map.dragging.moving() || this._map._animatingZoom) {
- return;
- }
- var point = this._map.mouseEventToLayerPoint(e);
- this._handleMouseHover(e, point);
- },
- _handleMouseOut: function _handleMouseOut(e) {
- var layer = this._hoveredLayer;
- if (layer) {
- // if we're leaving the layer, fire mouseout
- removeClass(this._container, 'leaflet-interactive');
- this._fireEvent([layer], e, 'mouseout');
- this._hoveredLayer = null;
- this._mouseHoverThrottled = false;
- }
- },
- _handleMouseHover: function _handleMouseHover(e, point) {
- if (this._mouseHoverThrottled) {
- return;
- }
- var layer, candidateHoveredLayer;
- for (var order = this._drawFirst; order; order = order.next) {
- layer = order.layer;
- if (layer.options.interactive && layer._containsPoint(point)) {
- candidateHoveredLayer = layer;
- }
- }
- if (candidateHoveredLayer !== this._hoveredLayer) {
- this._handleMouseOut(e);
- if (candidateHoveredLayer) {
- addClass(this._container, 'leaflet-interactive'); // change cursor
- this._fireEvent([candidateHoveredLayer], e, 'mouseover');
- this._hoveredLayer = candidateHoveredLayer;
- }
- }
- this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : false, e);
- this._mouseHoverThrottled = true;
- setTimeout(bind(function () {
- this._mouseHoverThrottled = false;
- }, this), 32);
- },
- _fireEvent: function _fireEvent(layers, e, type) {
- this._map._fireDOMEvent(e, type || e.type, layers);
- },
- _bringToFront: function _bringToFront(layer) {
- var order = layer._order;
- if (!order) {
- return;
- }
- var next = order.next;
- var prev = order.prev;
- if (next) {
- next.prev = prev;
- } else {
- // Already last
- return;
- }
- if (prev) {
- prev.next = next;
- } else if (next) {
- // Update first entry unless this is the
- // single entry
- this._drawFirst = next;
- }
- order.prev = this._drawLast;
- this._drawLast.next = order;
- order.next = null;
- this._drawLast = order;
- this._requestRedraw(layer);
- },
- _bringToBack: function _bringToBack(layer) {
- var order = layer._order;
- if (!order) {
- return;
- }
- var next = order.next;
- var prev = order.prev;
- if (prev) {
- prev.next = next;
- } else {
- // Already first
- return;
- }
- if (next) {
- next.prev = prev;
- } else if (prev) {
- // Update last entry unless this is the
- // single entry
- this._drawLast = prev;
- }
- order.prev = null;
- order.next = this._drawFirst;
- this._drawFirst.prev = order;
- this._drawFirst = order;
- this._requestRedraw(layer);
- }
- });
- // @factory L.canvas(options?: Renderer options)
- // Creates a Canvas renderer with the given options.
- function canvas(options) {
- return Browser.canvas ? new Canvas(options) : null;
- }
- /*
- * Thanks to Dmitry Baranovsky and his Raphael library for inspiration!
- */
- var vmlCreate = function () {
- try {
- document.namespaces.add('lvml', 'urn:schemas-microsoft-com:vml');
- return function (name) {
- return document.createElement('<lvml:' + name + ' class="lvml">');
- };
- } catch (e) {
- // Do not return fn from catch block so `e` can be garbage collected
- // See https://github.com/Leaflet/Leaflet/pull/7279
- }
- return function (name) {
- return document.createElement('<' + name + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
- };
- }();
- /*
- * @class SVG
- *
- *
- * VML was deprecated in 2012, which means VML functionality exists only for backwards compatibility
- * with old versions of Internet Explorer.
- */
- // mixin to redefine some SVG methods to handle VML syntax which is similar but with some differences
- var vmlMixin = {
- _initContainer: function _initContainer() {
- this._container = create$1('div', 'leaflet-vml-container');
- },
- _update: function _update() {
- if (this._map._animatingZoom) {
- return;
- }
- Renderer.prototype._update.call(this);
- this.fire('update');
- },
- _initPath: function _initPath(layer) {
- var container = layer._container = vmlCreate('shape');
- addClass(container, 'leaflet-vml-shape ' + (this.options.className || ''));
- container.coordsize = '1 1';
- layer._path = vmlCreate('path');
- container.appendChild(layer._path);
- this._updateStyle(layer);
- this._layers[stamp(layer)] = layer;
- },
- _addPath: function _addPath(layer) {
- var container = layer._container;
- this._container.appendChild(container);
- if (layer.options.interactive) {
- layer.addInteractiveTarget(container);
- }
- },
- _removePath: function _removePath(layer) {
- var container = layer._container;
- _remove(container);
- layer.removeInteractiveTarget(container);
- delete this._layers[stamp(layer)];
- },
- _updateStyle: function _updateStyle(layer) {
- var stroke = layer._stroke,
- fill = layer._fill,
- options = layer.options,
- container = layer._container;
- container.stroked = !!options.stroke;
- container.filled = !!options.fill;
- if (options.stroke) {
- if (!stroke) {
- stroke = layer._stroke = vmlCreate('stroke');
- }
- container.appendChild(stroke);
- stroke.weight = options.weight + 'px';
- stroke.color = options.color;
- stroke.opacity = options.opacity;
- if (options.dashArray) {
- stroke.dashStyle = isArray(options.dashArray) ? options.dashArray.join(' ') : options.dashArray.replace(/( *, *)/g, ' ');
- } else {
- stroke.dashStyle = '';
- }
- stroke.endcap = options.lineCap.replace('butt', 'flat');
- stroke.joinstyle = options.lineJoin;
- } else if (stroke) {
- container.removeChild(stroke);
- layer._stroke = null;
- }
- if (options.fill) {
- if (!fill) {
- fill = layer._fill = vmlCreate('fill');
- }
- container.appendChild(fill);
- fill.color = options.fillColor || options.color;
- fill.opacity = options.fillOpacity;
- } else if (fill) {
- container.removeChild(fill);
- layer._fill = null;
- }
- },
- _updateCircle: function _updateCircle(layer) {
- var p = layer._point.round(),
- r = Math.round(layer._radius),
- r2 = Math.round(layer._radiusY || r);
- this._setPath(layer, layer._empty() ? 'M0 0' : 'AL ' + p.x + ',' + p.y + ' ' + r + ',' + r2 + ' 0,' + 65535 * 360);
- },
- _setPath: function _setPath(layer, path) {
- layer._path.v = path;
- },
- _bringToFront: function _bringToFront(layer) {
- toFront(layer._container);
- },
- _bringToBack: function _bringToBack(layer) {
- toBack(layer._container);
- }
- };
- var create = Browser.vml ? vmlCreate : svgCreate;
- /*
- * @class SVG
- * @inherits Renderer
- * @aka L.SVG
- *
- * Allows vector layers to be displayed with [SVG](https://developer.mozilla.org/docs/Web/SVG).
- * Inherits `Renderer`.
- *
- * Due to [technical limitations](https://caniuse.com/svg), SVG is not
- * available in all web browsers, notably Android 2.x and 3.x.
- *
- * Although SVG is not available on IE7 and IE8, these browsers support
- * [VML](https://en.wikipedia.org/wiki/Vector_Markup_Language)
- * (a now deprecated technology), and the SVG renderer will fall back to VML in
- * this case.
- *
- * @example
- *
- * Use SVG by default for all paths in the map:
- *
- * ```js
- * var map = L.map('map', {
- * renderer: L.svg()
- * });
- * ```
- *
- * Use a SVG renderer with extra padding for specific vector geometries:
- *
- * ```js
- * var map = L.map('map');
- * var myRenderer = L.svg({ padding: 0.5 });
- * var line = L.polyline( coordinates, { renderer: myRenderer } );
- * var circle = L.circle( center, { renderer: myRenderer } );
- * ```
- */
- var SVG = Renderer.extend({
- _initContainer: function _initContainer() {
- this._container = create('svg');
- // makes it possible to click through svg root; we'll reset it back in individual paths
- this._container.setAttribute('pointer-events', 'none');
- this._rootGroup = create('g');
- this._container.appendChild(this._rootGroup);
- },
- _destroyContainer: function _destroyContainer() {
- _remove(this._container);
- off(this._container);
- delete this._container;
- delete this._rootGroup;
- delete this._svgSize;
- },
- _update: function _update() {
- if (this._map._animatingZoom && this._bounds) {
- return;
- }
- Renderer.prototype._update.call(this);
- var b = this._bounds,
- size = b.getSize(),
- container = this._container;
- // set size of svg-container if changed
- if (!this._svgSize || !this._svgSize.equals(size)) {
- this._svgSize = size;
- container.setAttribute('width', size.x);
- container.setAttribute('height', size.y);
- }
- // movement: update container viewBox so that we don't have to change coordinates of individual layers
- setPosition(container, b.min);
- container.setAttribute('viewBox', [b.min.x, b.min.y, size.x, size.y].join(' '));
- this.fire('update');
- },
- // methods below are called by vector layers implementations
- _initPath: function _initPath(layer) {
- var path = layer._path = create('path');
- // @namespace Path
- // @option className: String = null
- // Custom class name set on an element. Only for SVG renderer.
- if (layer.options.className) {
- addClass(path, layer.options.className);
- }
- if (layer.options.interactive) {
- addClass(path, 'leaflet-interactive');
- }
- this._updateStyle(layer);
- this._layers[stamp(layer)] = layer;
- },
- _addPath: function _addPath(layer) {
- if (!this._rootGroup) {
- this._initContainer();
- }
- this._rootGroup.appendChild(layer._path);
- layer.addInteractiveTarget(layer._path);
- },
- _removePath: function _removePath(layer) {
- _remove(layer._path);
- layer.removeInteractiveTarget(layer._path);
- delete this._layers[stamp(layer)];
- },
- _updatePath: function _updatePath(layer) {
- layer._project();
- layer._update();
- },
- _updateStyle: function _updateStyle(layer) {
- var path = layer._path,
- options = layer.options;
- if (!path) {
- return;
- }
- if (options.stroke) {
- path.setAttribute('stroke', options.color);
- path.setAttribute('stroke-opacity', options.opacity);
- path.setAttribute('stroke-width', options.weight);
- path.setAttribute('stroke-linecap', options.lineCap);
- path.setAttribute('stroke-linejoin', options.lineJoin);
- if (options.dashArray) {
- path.setAttribute('stroke-dasharray', options.dashArray);
- } else {
- path.removeAttribute('stroke-dasharray');
- }
- if (options.dashOffset) {
- path.setAttribute('stroke-dashoffset', options.dashOffset);
- } else {
- path.removeAttribute('stroke-dashoffset');
- }
- } else {
- path.setAttribute('stroke', 'none');
- }
- if (options.fill) {
- path.setAttribute('fill', options.fillColor || options.color);
- path.setAttribute('fill-opacity', options.fillOpacity);
- path.setAttribute('fill-rule', options.fillRule || 'evenodd');
- } else {
- path.setAttribute('fill', 'none');
- }
- },
- _updatePoly: function _updatePoly(layer, closed) {
- this._setPath(layer, pointsToPath(layer._parts, closed));
- },
- _updateCircle: function _updateCircle(layer) {
- var p = layer._point,
- r = Math.max(Math.round(layer._radius), 1),
- r2 = Math.max(Math.round(layer._radiusY), 1) || r,
- arc = 'a' + r + ',' + r2 + ' 0 1,0 ';
- // drawing a circle with two half-arcs
- var d = layer._empty() ? 'M0 0' : 'M' + (p.x - r) + ',' + p.y + arc + r * 2 + ',0 ' + arc + -r * 2 + ',0 ';
- this._setPath(layer, d);
- },
- _setPath: function _setPath(layer, path) {
- layer._path.setAttribute('d', path);
- },
- // SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
- _bringToFront: function _bringToFront(layer) {
- toFront(layer._path);
- },
- _bringToBack: function _bringToBack(layer) {
- toBack(layer._path);
- }
- });
- if (Browser.vml) {
- SVG.include(vmlMixin);
- }
- // @namespace SVG
- // @factory L.svg(options?: Renderer options)
- // Creates a SVG renderer with the given options.
- function svg(options) {
- return Browser.svg || Browser.vml ? new SVG(options) : null;
- }
- Map.include({
- // @namespace Map; @method getRenderer(layer: Path): Renderer
- // Returns the instance of `Renderer` that should be used to render the given
- // `Path`. It will ensure that the `renderer` options of the map and paths
- // are respected, and that the renderers do exist on the map.
- getRenderer: function getRenderer(layer) {
- // @namespace Path; @option renderer: Renderer
- // Use this specific instance of `Renderer` for this path. Takes
- // precedence over the map's [default renderer](#map-renderer).
- var renderer = layer.options.renderer || this._getPaneRenderer(layer.options.pane) || this.options.renderer || this._renderer;
- if (!renderer) {
- renderer = this._renderer = this._createRenderer();
- }
- if (!this.hasLayer(renderer)) {
- this.addLayer(renderer);
- }
- return renderer;
- },
- _getPaneRenderer: function _getPaneRenderer(name) {
- if (name === 'overlayPane' || name === undefined) {
- return false;
- }
- var renderer = this._paneRenderers[name];
- if (renderer === undefined) {
- renderer = this._createRenderer({
- pane: name
- });
- this._paneRenderers[name] = renderer;
- }
- return renderer;
- },
- _createRenderer: function _createRenderer(options) {
- // @namespace Map; @option preferCanvas: Boolean = false
- // Whether `Path`s should be rendered on a `Canvas` renderer.
- // By default, all `Path`s are rendered in a `SVG` renderer.
- return this.options.preferCanvas && canvas(options) || svg(options);
- }
- });
- /*
- * L.Rectangle extends Polygon and creates a rectangle when passed a LatLngBounds object.
- */
- /*
- * @class Rectangle
- * @aka L.Rectangle
- * @inherits Polygon
- *
- * A class for drawing rectangle overlays on a map. Extends `Polygon`.
- *
- * @example
- *
- * ```js
- * // define rectangle geographical bounds
- * var bounds = [[54.559322, -5.767822], [56.1210604, -3.021240]];
- *
- * // create an orange rectangle
- * L.rectangle(bounds, {color: "#ff7800", weight: 1}).addTo(map);
- *
- * // zoom the map to the rectangle bounds
- * map.fitBounds(bounds);
- * ```
- *
- */
- var Rectangle = Polygon.extend({
- initialize: function initialize(latLngBounds, options) {
- Polygon.prototype.initialize.call(this, this._boundsToLatLngs(latLngBounds), options);
- },
- // @method setBounds(latLngBounds: LatLngBounds): this
- // Redraws the rectangle with the passed bounds.
- setBounds: function setBounds(latLngBounds) {
- return this.setLatLngs(this._boundsToLatLngs(latLngBounds));
- },
- _boundsToLatLngs: function _boundsToLatLngs(latLngBounds) {
- latLngBounds = toLatLngBounds(latLngBounds);
- return [latLngBounds.getSouthWest(), latLngBounds.getNorthWest(), latLngBounds.getNorthEast(), latLngBounds.getSouthEast()];
- }
- });
- // @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)
- function rectangle(latLngBounds, options) {
- return new Rectangle(latLngBounds, options);
- }
- SVG.create = create;
- SVG.pointsToPath = pointsToPath;
- GeoJSON.geometryToLayer = geometryToLayer;
- GeoJSON.coordsToLatLng = coordsToLatLng;
- GeoJSON.coordsToLatLngs = coordsToLatLngs;
- GeoJSON.latLngToCoords = latLngToCoords;
- GeoJSON.latLngsToCoords = latLngsToCoords;
- GeoJSON.getFeature = getFeature;
- GeoJSON.asFeature = asFeature;
- /*
- * L.Handler.BoxZoom is used to add shift-drag zoom interaction to the map
- * (zoom to a selected bounding box), enabled by default.
- */
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @option boxZoom: Boolean = true
- // Whether the map can be zoomed to a rectangular area specified by
- // dragging the mouse while pressing the shift key.
- boxZoom: true
- });
- var BoxZoom = Handler.extend({
- initialize: function initialize(map) {
- this._map = map;
- this._container = map._container;
- this._pane = map._panes.overlayPane;
- this._resetStateTimeout = 0;
- map.on('unload', this._destroy, this);
- },
- addHooks: function addHooks() {
- on(this._container, 'mousedown', this._onMouseDown, this);
- },
- removeHooks: function removeHooks() {
- off(this._container, 'mousedown', this._onMouseDown, this);
- },
- moved: function moved() {
- return this._moved;
- },
- _destroy: function _destroy() {
- _remove(this._pane);
- delete this._pane;
- },
- _resetState: function _resetState() {
- this._resetStateTimeout = 0;
- this._moved = false;
- },
- _clearDeferredResetState: function _clearDeferredResetState() {
- if (this._resetStateTimeout !== 0) {
- clearTimeout(this._resetStateTimeout);
- this._resetStateTimeout = 0;
- }
- },
- _onMouseDown: function _onMouseDown(e) {
- if (!e.shiftKey || e.which !== 1 && e.button !== 1) {
- return false;
- }
- // Clear the deferred resetState if it hasn't executed yet, otherwise it
- // will interrupt the interaction and orphan a box element in the container.
- this._clearDeferredResetState();
- this._resetState();
- disableTextSelection();
- disableImageDrag();
- this._startPoint = this._map.mouseEventToContainerPoint(e);
- on(document, {
- contextmenu: stop,
- mousemove: this._onMouseMove,
- mouseup: this._onMouseUp,
- keydown: this._onKeyDown
- }, this);
- },
- _onMouseMove: function _onMouseMove(e) {
- if (!this._moved) {
- this._moved = true;
- this._box = create$1('div', 'leaflet-zoom-box', this._container);
- addClass(this._container, 'leaflet-crosshair');
- this._map.fire('boxzoomstart');
- }
- this._point = this._map.mouseEventToContainerPoint(e);
- var bounds = new Bounds(this._point, this._startPoint),
- size = bounds.getSize();
- setPosition(this._box, bounds.min);
- this._box.style.width = size.x + 'px';
- this._box.style.height = size.y + 'px';
- },
- _finish: function _finish() {
- if (this._moved) {
- _remove(this._box);
- removeClass(this._container, 'leaflet-crosshair');
- }
- enableTextSelection();
- enableImageDrag();
- off(document, {
- contextmenu: stop,
- mousemove: this._onMouseMove,
- mouseup: this._onMouseUp,
- keydown: this._onKeyDown
- }, this);
- },
- _onMouseUp: function _onMouseUp(e) {
- if (e.which !== 1 && e.button !== 1) {
- return;
- }
- this._finish();
- if (!this._moved) {
- return;
- }
- // Postpone to next JS tick so internal click event handling
- // still see it as "moved".
- this._clearDeferredResetState();
- this._resetStateTimeout = setTimeout(bind(this._resetState, this), 0);
- var bounds = new LatLngBounds(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point));
- this._map.fitBounds(bounds).fire('boxzoomend', {
- boxZoomBounds: bounds
- });
- },
- _onKeyDown: function _onKeyDown(e) {
- if (e.keyCode === 27) {
- this._finish();
- this._clearDeferredResetState();
- this._resetState();
- }
- }
- });
- // @section Handlers
- // @property boxZoom: Handler
- // Box (shift-drag with mouse) zoom handler.
- Map.addInitHook('addHandler', 'boxZoom', BoxZoom);
- /*
- * L.Handler.DoubleClickZoom is used to handle double-click zoom on the map, enabled by default.
- */
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @option doubleClickZoom: Boolean|String = true
- // Whether the map can be zoomed in by double clicking on it and
- // zoomed out by double clicking while holding shift. If passed
- // `'center'`, double-click zoom will zoom to the center of the
- // view regardless of where the mouse was.
- doubleClickZoom: true
- });
- var DoubleClickZoom = Handler.extend({
- addHooks: function addHooks() {
- this._map.on('dblclick', this._onDoubleClick, this);
- },
- removeHooks: function removeHooks() {
- this._map.off('dblclick', this._onDoubleClick, this);
- },
- _onDoubleClick: function _onDoubleClick(e) {
- var map = this._map,
- oldZoom = map.getZoom(),
- delta = map.options.zoomDelta,
- zoom = e.originalEvent.shiftKey ? oldZoom - delta : oldZoom + delta;
- if (map.options.doubleClickZoom === 'center') {
- map.setZoom(zoom);
- } else {
- map.setZoomAround(e.containerPoint, zoom);
- }
- }
- });
- // @section Handlers
- //
- // Map properties include interaction handlers that allow you to control
- // interaction behavior in runtime, enabling or disabling certain features such
- // as dragging or touch zoom (see `Handler` methods). For example:
- //
- // ```js
- // map.doubleClickZoom.disable();
- // ```
- //
- // @property doubleClickZoom: Handler
- // Double click zoom handler.
- Map.addInitHook('addHandler', 'doubleClickZoom', DoubleClickZoom);
- /*
- * L.Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.
- */
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @option dragging: Boolean = true
- // Whether the map is draggable with mouse/touch or not.
- dragging: true,
- // @section Panning Inertia Options
- // @option inertia: Boolean = *
- // If enabled, panning of the map will have an inertia effect where
- // the map builds momentum while dragging and continues moving in
- // the same direction for some time. Feels especially nice on touch
- // devices. Enabled by default.
- inertia: true,
- // @option inertiaDeceleration: Number = 3000
- // The rate with which the inertial movement slows down, in pixels/second².
- inertiaDeceleration: 3400,
- // px/s^2
- // @option inertiaMaxSpeed: Number = Infinity
- // Max speed of the inertial movement, in pixels/second.
- inertiaMaxSpeed: Infinity,
- // px/s
- // @option easeLinearity: Number = 0.2
- easeLinearity: 0.2,
- // TODO refactor, move to CRS
- // @option worldCopyJump: Boolean = false
- // With this option enabled, the map tracks when you pan to another "copy"
- // of the world and seamlessly jumps to the original one so that all overlays
- // like markers and vector layers are still visible.
- worldCopyJump: false,
- // @option maxBoundsViscosity: Number = 0.0
- // If `maxBounds` is set, this option will control how solid the bounds
- // are when dragging the map around. The default value of `0.0` allows the
- // user to drag outside the bounds at normal speed, higher values will
- // slow down map dragging outside bounds, and `1.0` makes the bounds fully
- // solid, preventing the user from dragging outside the bounds.
- maxBoundsViscosity: 0.0
- });
- var Drag = Handler.extend({
- addHooks: function addHooks() {
- if (!this._draggable) {
- var map = this._map;
- this._draggable = new Draggable(map._mapPane, map._container);
- this._draggable.on({
- dragstart: this._onDragStart,
- drag: this._onDrag,
- dragend: this._onDragEnd
- }, this);
- this._draggable.on('predrag', this._onPreDragLimit, this);
- if (map.options.worldCopyJump) {
- this._draggable.on('predrag', this._onPreDragWrap, this);
- map.on('zoomend', this._onZoomEnd, this);
- map.whenReady(this._onZoomEnd, this);
- }
- }
- addClass(this._map._container, 'leaflet-grab leaflet-touch-drag');
- this._draggable.enable();
- this._positions = [];
- this._times = [];
- },
- removeHooks: function removeHooks() {
- removeClass(this._map._container, 'leaflet-grab');
- removeClass(this._map._container, 'leaflet-touch-drag');
- this._draggable.disable();
- },
- moved: function moved() {
- return this._draggable && this._draggable._moved;
- },
- moving: function moving() {
- return this._draggable && this._draggable._moving;
- },
- _onDragStart: function _onDragStart() {
- var map = this._map;
- map._stop();
- if (this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
- var bounds = toLatLngBounds(this._map.options.maxBounds);
- this._offsetLimit = toBounds(this._map.latLngToContainerPoint(bounds.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(bounds.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));
- this._viscosity = Math.min(1.0, Math.max(0.0, this._map.options.maxBoundsViscosity));
- } else {
- this._offsetLimit = null;
- }
- map.fire('movestart').fire('dragstart');
- if (map.options.inertia) {
- this._positions = [];
- this._times = [];
- }
- },
- _onDrag: function _onDrag(e) {
- if (this._map.options.inertia) {
- var time = this._lastTime = +new Date(),
- pos = this._lastPos = this._draggable._absPos || this._draggable._newPos;
- this._positions.push(pos);
- this._times.push(time);
- this._prunePositions(time);
- }
- this._map.fire('move', e).fire('drag', e);
- },
- _prunePositions: function _prunePositions(time) {
- while (this._positions.length > 1 && time - this._times[0] > 50) {
- this._positions.shift();
- this._times.shift();
- }
- },
- _onZoomEnd: function _onZoomEnd() {
- var pxCenter = this._map.getSize().divideBy(2),
- pxWorldCenter = this._map.latLngToLayerPoint([0, 0]);
- this._initialWorldOffset = pxWorldCenter.subtract(pxCenter).x;
- this._worldWidth = this._map.getPixelWorldBounds().getSize().x;
- },
- _viscousLimit: function _viscousLimit(value, threshold) {
- return value - (value - threshold) * this._viscosity;
- },
- _onPreDragLimit: function _onPreDragLimit() {
- if (!this._viscosity || !this._offsetLimit) {
- return;
- }
- var offset = this._draggable._newPos.subtract(this._draggable._startPos);
- var limit = this._offsetLimit;
- if (offset.x < limit.min.x) {
- offset.x = this._viscousLimit(offset.x, limit.min.x);
- }
- if (offset.y < limit.min.y) {
- offset.y = this._viscousLimit(offset.y, limit.min.y);
- }
- if (offset.x > limit.max.x) {
- offset.x = this._viscousLimit(offset.x, limit.max.x);
- }
- if (offset.y > limit.max.y) {
- offset.y = this._viscousLimit(offset.y, limit.max.y);
- }
- this._draggable._newPos = this._draggable._startPos.add(offset);
- },
- _onPreDragWrap: function _onPreDragWrap() {
- // TODO refactor to be able to adjust map pane position after zoom
- var worldWidth = this._worldWidth,
- halfWidth = Math.round(worldWidth / 2),
- dx = this._initialWorldOffset,
- x = this._draggable._newPos.x,
- newX1 = (x - halfWidth + dx) % worldWidth + halfWidth - dx,
- newX2 = (x + halfWidth + dx) % worldWidth - halfWidth - dx,
- newX = Math.abs(newX1 + dx) < Math.abs(newX2 + dx) ? newX1 : newX2;
- this._draggable._absPos = this._draggable._newPos.clone();
- this._draggable._newPos.x = newX;
- },
- _onDragEnd: function _onDragEnd(e) {
- var map = this._map,
- options = map.options,
- noInertia = !options.inertia || e.noInertia || this._times.length < 2;
- map.fire('dragend', e);
- if (noInertia) {
- map.fire('moveend');
- } else {
- this._prunePositions(+new Date());
- var direction = this._lastPos.subtract(this._positions[0]),
- duration = (this._lastTime - this._times[0]) / 1000,
- ease = options.easeLinearity,
- speedVector = direction.multiplyBy(ease / duration),
- speed = speedVector.distanceTo([0, 0]),
- limitedSpeed = Math.min(options.inertiaMaxSpeed, speed),
- limitedSpeedVector = speedVector.multiplyBy(limitedSpeed / speed),
- decelerationDuration = limitedSpeed / (options.inertiaDeceleration * ease),
- offset = limitedSpeedVector.multiplyBy(-decelerationDuration / 2).round();
- if (!offset.x && !offset.y) {
- map.fire('moveend');
- } else {
- offset = map._limitOffset(offset, map.options.maxBounds);
- requestAnimFrame(function () {
- map.panBy(offset, {
- duration: decelerationDuration,
- easeLinearity: ease,
- noMoveStart: true,
- animate: true
- });
- });
- }
- }
- }
- });
- // @section Handlers
- // @property dragging: Handler
- // Map dragging handler (by both mouse and touch).
- Map.addInitHook('addHandler', 'dragging', Drag);
- /*
- * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
- */
- // @namespace Map
- // @section Keyboard Navigation Options
- Map.mergeOptions({
- // @option keyboard: Boolean = true
- // Makes the map focusable and allows users to navigate the map with keyboard
- // arrows and `+`/`-` keys.
- keyboard: true,
- // @option keyboardPanDelta: Number = 80
- // Amount of pixels to pan when pressing an arrow key.
- keyboardPanDelta: 80
- });
- var Keyboard = Handler.extend({
- keyCodes: {
- left: [37],
- right: [39],
- down: [40],
- up: [38],
- zoomIn: [187, 107, 61, 171],
- zoomOut: [189, 109, 54, 173]
- },
- initialize: function initialize(map) {
- this._map = map;
- this._setPanDelta(map.options.keyboardPanDelta);
- this._setZoomDelta(map.options.zoomDelta);
- },
- addHooks: function addHooks() {
- var container = this._map._container;
- // make the container focusable by tabbing
- if (container.tabIndex <= 0) {
- container.tabIndex = '0';
- }
- on(container, {
- focus: this._onFocus,
- blur: this._onBlur,
- mousedown: this._onMouseDown
- }, this);
- this._map.on({
- focus: this._addHooks,
- blur: this._removeHooks
- }, this);
- },
- removeHooks: function removeHooks() {
- this._removeHooks();
- off(this._map._container, {
- focus: this._onFocus,
- blur: this._onBlur,
- mousedown: this._onMouseDown
- }, this);
- this._map.off({
- focus: this._addHooks,
- blur: this._removeHooks
- }, this);
- },
- _onMouseDown: function _onMouseDown() {
- if (this._focused) {
- return;
- }
- var body = document.body,
- docEl = document.documentElement,
- top = body.scrollTop || docEl.scrollTop,
- left = body.scrollLeft || docEl.scrollLeft;
- this._map._container.focus();
- window.scrollTo(left, top);
- },
- _onFocus: function _onFocus() {
- this._focused = true;
- this._map.fire('focus');
- },
- _onBlur: function _onBlur() {
- this._focused = false;
- this._map.fire('blur');
- },
- _setPanDelta: function _setPanDelta(panDelta) {
- var keys = this._panKeys = {},
- codes = this.keyCodes,
- i,
- len;
- for (i = 0, len = codes.left.length; i < len; i++) {
- keys[codes.left[i]] = [-1 * panDelta, 0];
- }
- for (i = 0, len = codes.right.length; i < len; i++) {
- keys[codes.right[i]] = [panDelta, 0];
- }
- for (i = 0, len = codes.down.length; i < len; i++) {
- keys[codes.down[i]] = [0, panDelta];
- }
- for (i = 0, len = codes.up.length; i < len; i++) {
- keys[codes.up[i]] = [0, -1 * panDelta];
- }
- },
- _setZoomDelta: function _setZoomDelta(zoomDelta) {
- var keys = this._zoomKeys = {},
- codes = this.keyCodes,
- i,
- len;
- for (i = 0, len = codes.zoomIn.length; i < len; i++) {
- keys[codes.zoomIn[i]] = zoomDelta;
- }
- for (i = 0, len = codes.zoomOut.length; i < len; i++) {
- keys[codes.zoomOut[i]] = -zoomDelta;
- }
- },
- _addHooks: function _addHooks() {
- on(document, 'keydown', this._onKeyDown, this);
- },
- _removeHooks: function _removeHooks() {
- off(document, 'keydown', this._onKeyDown, this);
- },
- _onKeyDown: function _onKeyDown(e) {
- if (e.altKey || e.ctrlKey || e.metaKey) {
- return;
- }
- var key = e.keyCode,
- map = this._map,
- offset;
- if (key in this._panKeys) {
- if (!map._panAnim || !map._panAnim._inProgress) {
- offset = this._panKeys[key];
- if (e.shiftKey) {
- offset = toPoint(offset).multiplyBy(3);
- }
- if (map.options.maxBounds) {
- offset = map._limitOffset(toPoint(offset), map.options.maxBounds);
- }
- if (map.options.worldCopyJump) {
- var newLatLng = map.wrapLatLng(map.unproject(map.project(map.getCenter()).add(offset)));
- map.panTo(newLatLng);
- } else {
- map.panBy(offset);
- }
- }
- } else if (key in this._zoomKeys) {
- map.setZoom(map.getZoom() + (e.shiftKey ? 3 : 1) * this._zoomKeys[key]);
- } else if (key === 27 && map._popup && map._popup.options.closeOnEscapeKey) {
- map.closePopup();
- } else {
- return;
- }
- stop(e);
- }
- });
- // @section Handlers
- // @section Handlers
- // @property keyboard: Handler
- // Keyboard navigation handler.
- Map.addInitHook('addHandler', 'keyboard', Keyboard);
- /*
- * L.Handler.ScrollWheelZoom is used by L.Map to enable mouse scroll wheel zoom on the map.
- */
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @section Mouse wheel options
- // @option scrollWheelZoom: Boolean|String = true
- // Whether the map can be zoomed by using the mouse wheel. If passed `'center'`,
- // it will zoom to the center of the view regardless of where the mouse was.
- scrollWheelZoom: true,
- // @option wheelDebounceTime: Number = 40
- // Limits the rate at which a wheel can fire (in milliseconds). By default
- // user can't zoom via wheel more often than once per 40 ms.
- wheelDebounceTime: 40,
- // @option wheelPxPerZoomLevel: Number = 60
- // How many scroll pixels (as reported by [L.DomEvent.getWheelDelta](#domevent-getwheeldelta))
- // mean a change of one full zoom level. Smaller values will make wheel-zooming
- // faster (and vice versa).
- wheelPxPerZoomLevel: 60
- });
- var ScrollWheelZoom = Handler.extend({
- addHooks: function addHooks() {
- on(this._map._container, 'wheel', this._onWheelScroll, this);
- this._delta = 0;
- },
- removeHooks: function removeHooks() {
- off(this._map._container, 'wheel', this._onWheelScroll, this);
- },
- _onWheelScroll: function _onWheelScroll(e) {
- var delta = getWheelDelta(e);
- var debounce = this._map.options.wheelDebounceTime;
- this._delta += delta;
- this._lastMousePos = this._map.mouseEventToContainerPoint(e);
- if (!this._startTime) {
- this._startTime = +new Date();
- }
- var left = Math.max(debounce - (+new Date() - this._startTime), 0);
- clearTimeout(this._timer);
- this._timer = setTimeout(bind(this._performZoom, this), left);
- stop(e);
- },
- _performZoom: function _performZoom() {
- var map = this._map,
- zoom = map.getZoom(),
- snap = this._map.options.zoomSnap || 0;
- map._stop(); // stop panning and fly animations if any
- // map the delta with a sigmoid function to -4..4 range leaning on -1..1
- var d2 = this._delta / (this._map.options.wheelPxPerZoomLevel * 4),
- d3 = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(d2)))) / Math.LN2,
- d4 = snap ? Math.ceil(d3 / snap) * snap : d3,
- delta = map._limitZoom(zoom + (this._delta > 0 ? d4 : -d4)) - zoom;
- this._delta = 0;
- this._startTime = null;
- if (!delta) {
- return;
- }
- if (map.options.scrollWheelZoom === 'center') {
- map.setZoom(zoom + delta);
- } else {
- map.setZoomAround(this._lastMousePos, zoom + delta);
- }
- }
- });
- // @section Handlers
- // @property scrollWheelZoom: Handler
- // Scroll wheel zoom handler.
- Map.addInitHook('addHandler', 'scrollWheelZoom', ScrollWheelZoom);
- /*
- * L.Map.TapHold is used to simulate `contextmenu` event on long hold,
- * which otherwise is not fired by mobile Safari.
- */
- var tapHoldDelay = 600;
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @section Touch interaction options
- // @option tapHold: Boolean
- // Enables simulation of `contextmenu` event, default is `true` for mobile Safari.
- tapHold: Browser.touchNative && Browser.safari && Browser.mobile,
- // @option tapTolerance: Number = 15
- // The max number of pixels a user can shift his finger during touch
- // for it to be considered a valid tap.
- tapTolerance: 15
- });
- var TapHold = Handler.extend({
- addHooks: function addHooks() {
- on(this._map._container, 'touchstart', this._onDown, this);
- },
- removeHooks: function removeHooks() {
- off(this._map._container, 'touchstart', this._onDown, this);
- },
- _onDown: function _onDown(e) {
- clearTimeout(this._holdTimeout);
- if (e.touches.length !== 1) {
- return;
- }
- var first = e.touches[0];
- this._startPos = this._newPos = new Point(first.clientX, first.clientY);
- this._holdTimeout = setTimeout(bind(function () {
- this._cancel();
- if (!this._isTapValid()) {
- return;
- }
- // prevent simulated mouse events https://w3c.github.io/touch-events/#mouse-events
- on(document, 'touchend', preventDefault);
- on(document, 'touchend touchcancel', this._cancelClickPrevent);
- this._simulateEvent('contextmenu', first);
- }, this), tapHoldDelay);
- on(document, 'touchend touchcancel contextmenu', this._cancel, this);
- on(document, 'touchmove', this._onMove, this);
- },
- _cancelClickPrevent: function cancelClickPrevent() {
- off(document, 'touchend', preventDefault);
- off(document, 'touchend touchcancel', cancelClickPrevent);
- },
- _cancel: function _cancel() {
- clearTimeout(this._holdTimeout);
- off(document, 'touchend touchcancel contextmenu', this._cancel, this);
- off(document, 'touchmove', this._onMove, this);
- },
- _onMove: function _onMove(e) {
- var first = e.touches[0];
- this._newPos = new Point(first.clientX, first.clientY);
- },
- _isTapValid: function _isTapValid() {
- return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance;
- },
- _simulateEvent: function _simulateEvent(type, e) {
- var simulatedEvent = new MouseEvent(type, {
- bubbles: true,
- cancelable: true,
- view: window,
- // detail: 1,
- screenX: e.screenX,
- screenY: e.screenY,
- clientX: e.clientX,
- clientY: e.clientY
- // button: 2,
- // buttons: 2
- });
- simulatedEvent._simulated = true;
- e.target.dispatchEvent(simulatedEvent);
- }
- });
- // @section Handlers
- // @property tapHold: Handler
- // Long tap handler to simulate `contextmenu` event (useful in mobile Safari).
- Map.addInitHook('addHandler', 'tapHold', TapHold);
- /*
- * L.Handler.TouchZoom is used by L.Map to add pinch zoom on supported mobile browsers.
- */
- // @namespace Map
- // @section Interaction Options
- Map.mergeOptions({
- // @section Touch interaction options
- // @option touchZoom: Boolean|String = *
- // Whether the map can be zoomed by touch-dragging with two fingers. If
- // passed `'center'`, it will zoom to the center of the view regardless of
- // where the touch events (fingers) were. Enabled for touch-capable web
- // browsers.
- touchZoom: Browser.touch,
- // @option bounceAtZoomLimits: Boolean = true
- // Set it to false if you don't want the map to zoom beyond min/max zoom
- // and then bounce back when pinch-zooming.
- bounceAtZoomLimits: true
- });
- var TouchZoom = Handler.extend({
- addHooks: function addHooks() {
- addClass(this._map._container, 'leaflet-touch-zoom');
- on(this._map._container, 'touchstart', this._onTouchStart, this);
- },
- removeHooks: function removeHooks() {
- removeClass(this._map._container, 'leaflet-touch-zoom');
- off(this._map._container, 'touchstart', this._onTouchStart, this);
- },
- _onTouchStart: function _onTouchStart(e) {
- var map = this._map;
- if (!e.touches || e.touches.length !== 2 || map._animatingZoom || this._zooming) {
- return;
- }
- var p1 = map.mouseEventToContainerPoint(e.touches[0]),
- p2 = map.mouseEventToContainerPoint(e.touches[1]);
- this._centerPoint = map.getSize()._divideBy(2);
- this._startLatLng = map.containerPointToLatLng(this._centerPoint);
- if (map.options.touchZoom !== 'center') {
- this._pinchStartLatLng = map.containerPointToLatLng(p1.add(p2)._divideBy(2));
- }
- this._startDist = p1.distanceTo(p2);
- this._startZoom = map.getZoom();
- this._moved = false;
- this._zooming = true;
- map._stop();
- on(document, 'touchmove', this._onTouchMove, this);
- on(document, 'touchend touchcancel', this._onTouchEnd, this);
- preventDefault(e);
- },
- _onTouchMove: function _onTouchMove(e) {
- if (!e.touches || e.touches.length !== 2 || !this._zooming) {
- return;
- }
- var map = this._map,
- p1 = map.mouseEventToContainerPoint(e.touches[0]),
- p2 = map.mouseEventToContainerPoint(e.touches[1]),
- scale = p1.distanceTo(p2) / this._startDist;
- this._zoom = map.getScaleZoom(scale, this._startZoom);
- if (!map.options.bounceAtZoomLimits && (this._zoom < map.getMinZoom() && scale < 1 || this._zoom > map.getMaxZoom() && scale > 1)) {
- this._zoom = map._limitZoom(this._zoom);
- }
- if (map.options.touchZoom === 'center') {
- this._center = this._startLatLng;
- if (scale === 1) {
- return;
- }
- } else {
- // Get delta from pinch to center, so centerLatLng is delta applied to initial pinchLatLng
- var delta = p1._add(p2)._divideBy(2)._subtract(this._centerPoint);
- if (scale === 1 && delta.x === 0 && delta.y === 0) {
- return;
- }
- this._center = map.unproject(map.project(this._pinchStartLatLng, this._zoom).subtract(delta), this._zoom);
- }
- if (!this._moved) {
- map._moveStart(true, false);
- this._moved = true;
- }
- cancelAnimFrame(this._animRequest);
- var moveFn = bind(map._move, map, this._center, this._zoom, {
- pinch: true,
- round: false
- }, undefined);
- this._animRequest = requestAnimFrame(moveFn, this, true);
- preventDefault(e);
- },
- _onTouchEnd: function _onTouchEnd() {
- if (!this._moved || !this._zooming) {
- this._zooming = false;
- return;
- }
- this._zooming = false;
- cancelAnimFrame(this._animRequest);
- off(document, 'touchmove', this._onTouchMove, this);
- off(document, 'touchend touchcancel', this._onTouchEnd, this);
- // Pinch updates GridLayers' levels only when zoomSnap is off, so zoomSnap becomes noUpdate.
- if (this._map.options.zoomAnimation) {
- this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), true, this._map.options.zoomSnap);
- } else {
- this._map._resetView(this._center, this._map._limitZoom(this._zoom));
- }
- }
- });
- // @section Handlers
- // @property touchZoom: Handler
- // Touch zoom handler.
- Map.addInitHook('addHandler', 'touchZoom', TouchZoom);
- Map.BoxZoom = BoxZoom;
- Map.DoubleClickZoom = DoubleClickZoom;
- Map.Drag = Drag;
- Map.Keyboard = Keyboard;
- Map.ScrollWheelZoom = ScrollWheelZoom;
- Map.TapHold = TapHold;
- Map.TouchZoom = TouchZoom;
- exports.Bounds = Bounds;
- exports.Browser = Browser;
- exports.CRS = CRS;
- exports.Canvas = Canvas;
- exports.Circle = Circle;
- exports.CircleMarker = CircleMarker;
- exports.Class = Class;
- exports.Control = Control;
- exports.DivIcon = DivIcon;
- exports.DivOverlay = DivOverlay;
- exports.DomEvent = DomEvent;
- exports.DomUtil = DomUtil;
- exports.Draggable = Draggable;
- exports.Evented = Evented;
- exports.FeatureGroup = FeatureGroup;
- exports.GeoJSON = GeoJSON;
- exports.GridLayer = GridLayer;
- exports.Handler = Handler;
- exports.Icon = Icon;
- exports.ImageOverlay = ImageOverlay;
- exports.LatLng = LatLng;
- exports.LatLngBounds = LatLngBounds;
- exports.Layer = Layer;
- exports.LayerGroup = LayerGroup;
- exports.LineUtil = LineUtil;
- exports.Map = Map;
- exports.Marker = Marker;
- exports.Mixin = Mixin;
- exports.Path = Path;
- exports.Point = Point;
- exports.PolyUtil = PolyUtil;
- exports.Polygon = Polygon;
- exports.Polyline = Polyline;
- exports.Popup = Popup;
- exports.PosAnimation = PosAnimation;
- exports.Projection = index;
- exports.Rectangle = Rectangle;
- exports.Renderer = Renderer;
- exports.SVG = SVG;
- exports.SVGOverlay = SVGOverlay;
- exports.TileLayer = TileLayer;
- exports.Tooltip = Tooltip;
- exports.Transformation = Transformation;
- exports.Util = Util;
- exports.VideoOverlay = VideoOverlay;
- exports.bind = bind;
- exports.bounds = toBounds;
- exports.canvas = canvas;
- exports.circle = circle;
- exports.circleMarker = circleMarker;
- exports.control = control;
- exports.divIcon = divIcon;
- exports.extend = extend;
- exports.featureGroup = featureGroup;
- exports.geoJSON = geoJSON;
- exports.geoJson = geoJson;
- exports.gridLayer = gridLayer;
- exports.icon = icon;
- exports.imageOverlay = imageOverlay;
- exports.latLng = toLatLng;
- exports.latLngBounds = toLatLngBounds;
- exports.layerGroup = layerGroup;
- exports.map = createMap;
- exports.marker = marker;
- exports.point = toPoint;
- exports.polygon = polygon;
- exports.polyline = polyline;
- exports.popup = popup;
- exports.rectangle = rectangle;
- exports.setOptions = setOptions;
- exports.stamp = stamp;
- exports.svg = svg;
- exports.svgOverlay = svgOverlay;
- exports.tileLayer = tileLayer;
- exports.tooltip = tooltip;
- exports.transformation = toTransformation;
- exports.version = version;
- exports.videoOverlay = videoOverlay;
- var oldL = window.L;
- exports.noConflict = function () {
- window.L = oldL;
- return this;
- };
- // Always export us to window global (see #2364)
- window.L = exports;
- });
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)["default"]))
- /***/ }),
- /* 28 */
- /*!**********************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/images/marker-icon-2x.png ***!
- \**********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/node-modules/leaflet/dist/images/marker-icon-2x.png";
- /***/ }),
- /* 29 */
- /*!*********************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/node_modules/leaflet/dist/images/marker-shadow.png ***!
- \*********************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/node-modules/leaflet/dist/images/marker-shadow.png";
- /***/ }),
- /* 30 */
- /*!************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page ***!
- \************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page */ 31);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_mapShow_vue_vue_type_style_index_0_id_7c4266a1_lang_scss_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 31 */
- /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page ***!
- \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page */ 32);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("7b306cbc", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 32 */
- /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/AO/mapShow.vue?vue&type=style&index=0&id=7c4266a1&lang=scss&scoped=true&mpType=page ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.map[data-v-7c4266a1] {\n width: 100vw;\n height: 95vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: white;\n}\n.leaflet-tile-container img[data-v-7c4266a1] {\n width: 257px !important;\n height: 257px !important;\n}\n.my-div-icon[data-v-7c4266a1] {\n text-align: center !important;\n font-size: 50px !important;\n color: red !important;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 33 */
- /*!**********************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
- \**********************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode, /* vue-cli only */
- components, // fixed by xxxxxx auto components
- renderjs // fixed by xxxxxx renderjs
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // fixed by xxxxxx auto components
- if (components) {
- if (!options.components) {
- options.components = {}
- }
- var hasOwn = Object.prototype.hasOwnProperty
- for (var name in components) {
- if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
- options.components[name] = components[name]
- }
- }
- }
- // fixed by xxxxxx renderjs
- if (renderjs) {
- if(typeof renderjs.beforeCreate === 'function'){
- renderjs.beforeCreate = [renderjs.beforeCreate]
- }
- (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
- this[renderjs.__module] = this
- });
- (options.mixins || (options.mixins = [])).push(renderjs)
- }
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- /***/ }),
- /* 34 */
- /*!************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?mpType=page ***!
- \************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nfc.vue?vue&type=template&id=6158afae&scoped=true&mpType=page */ 35);
- /* harmony import */ var _nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nfc.vue?vue&type=script&lang=js&mpType=page */ 54);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page */ 56);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__["default"],
- _nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"],
- _nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "6158afae",
- null,
- false,
- _nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "pages/nfc/nfc.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 35 */
- /*!******************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=template&id=6158afae&scoped=true&mpType=page ***!
- \******************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./nfc.vue?vue&type=template&id=6158afae&scoped=true&mpType=page */ 36);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_template_id_6158afae_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 36 */
- /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=template&id=6158afae&scoped=true&mpType=page ***!
- \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- try {
- components = {
- uniEasyinput:
- __webpack_require__(/*! @/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue */ 37)
- .default,
- }
- } catch (e) {
- if (
- e.message.indexOf("Cannot find module") !== -1 &&
- e.message.indexOf(".vue") !== -1
- ) {
- console.error(e.message)
- console.error("1. 排查组件名称拼写是否正确")
- console.error(
- "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
- )
- console.error(
- "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
- )
- } else {
- throw e
- }
- }
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "uni-view",
- { staticClass: _vm._$g(0, "sc"), attrs: { _i: 0 } },
- [
- _c("uni-easyinput", {
- attrs: { _i: 1 },
- on: {
- input: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- model: {
- value: _vm._$g(1, "v-model"),
- callback: function () {},
- expression: "nfcWriteData",
- },
- }),
- _c(
- "uni-view",
- { staticClass: _vm._$g(2, "sc"), attrs: { _i: 2 } },
- [
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(3, "sc"),
- attrs: { type: "primary", _i: 3 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("读取NFC")]
- ),
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(4, "sc"),
- attrs: { type: "primary", _i: 4 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("写入NFC")]
- ),
- ],
- 1
- ),
- _c(
- "uni-view",
- { staticClass: _vm._$g(5, "sc"), attrs: { _i: 5 } },
- [
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(6, "sc"),
- attrs: { type: "primary", _i: 6 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("NFC状态")]
- ),
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(7, "sc"),
- attrs: { type: "warn", _i: 7 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("写入并锁定")]
- ),
- ],
- 1
- ),
- _c(
- "uni-view",
- { staticClass: _vm._$g(8, "sc"), attrs: { _i: 8 } },
- [
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(9, "sc"),
- attrs: { type: "warn", _i: 9 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("设置密码")]
- ),
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(10, "sc"),
- attrs: { type: "warn", _i: 10 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("清除密码")]
- ),
- ],
- 1
- ),
- ],
- 1
- )
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 37 */
- /*!***************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue ***!
- \***************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-easyinput.vue?vue&type=template&id=abe12412&scoped=true& */ 38);
- /* harmony import */ var _uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-easyinput.vue?vue&type=script&lang=js& */ 49);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& */ 51);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
- _uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "abe12412",
- null,
- false,
- _uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 38 */
- /*!**********************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=template&id=abe12412&scoped=true& ***!
- \**********************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-easyinput.vue?vue&type=template&id=abe12412&scoped=true& */ 39);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_template_id_abe12412_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 39 */
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=template&id=abe12412&scoped=true& ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- try {
- components = {
- uniIcons:
- __webpack_require__(/*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 40)
- .default,
- }
- } catch (e) {
- if (
- e.message.indexOf("Cannot find module") !== -1 &&
- e.message.indexOf(".vue") !== -1
- ) {
- console.error(e.message)
- console.error("1. 排查组件名称拼写是否正确")
- console.error(
- "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
- )
- console.error(
- "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
- )
- } else {
- throw e
- }
- }
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "uni-view",
- {
- staticClass: _vm._$g(0, "sc"),
- class: _vm._$g(0, "c"),
- style: _vm._$g(0, "s"),
- attrs: { _i: 0 },
- },
- [
- _c(
- "uni-view",
- {
- staticClass: _vm._$g(1, "sc"),
- class: _vm._$g(1, "c"),
- style: _vm._$g(1, "s"),
- attrs: { _i: 1 },
- },
- [
- _vm._t(
- "prefixIcon",
- [
- _vm._$g(3, "i")
- ? _c("uni-icons", {
- staticClass: _vm._$g(3, "sc"),
- attrs: { _i: 3 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _vm._e(),
- ],
- { _i: 2 }
- ),
- _vm._$g(4, "i")
- ? _c("v-uni-textarea", {
- staticClass: _vm._$g(4, "sc"),
- class: _vm._$g(4, "c"),
- attrs: {
- name: _vm._$g(4, "a-name"),
- value: _vm._$g(4, "a-value"),
- placeholder: _vm._$g(4, "a-placeholder"),
- placeholderStyle: _vm._$g(4, "a-placeholderStyle"),
- disabled: _vm._$g(4, "a-disabled"),
- "placeholder-class": "uni-easyinput__placeholder-class",
- maxlength: _vm._$g(4, "a-maxlength"),
- focus: _vm._$g(4, "a-focus"),
- autoHeight: _vm._$g(4, "a-autoHeight"),
- _i: 4,
- },
- on: {
- input: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- blur: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- focus: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- confirm: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _c("v-uni-input", {
- staticClass: _vm._$g(5, "sc"),
- style: _vm._$g(5, "s"),
- attrs: {
- type: _vm._$g(5, "a-type"),
- name: _vm._$g(5, "a-name"),
- value: _vm._$g(5, "a-value"),
- password: _vm._$g(5, "a-password"),
- placeholder: _vm._$g(5, "a-placeholder"),
- placeholderStyle: _vm._$g(5, "a-placeholderStyle"),
- "placeholder-class": "uni-easyinput__placeholder-class",
- disabled: _vm._$g(5, "a-disabled"),
- maxlength: _vm._$g(5, "a-maxlength"),
- focus: _vm._$g(5, "a-focus"),
- confirmType: _vm._$g(5, "a-confirmType"),
- _i: 5,
- },
- on: {
- focus: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- blur: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- input: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- confirm: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- }),
- _vm._$g(6, "i")
- ? [
- _vm._$g(7, "i")
- ? _c("uni-icons", {
- staticClass: _vm._$g(7, "sc"),
- class: _vm._$g(7, "c"),
- attrs: { _i: 7 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _vm._e(),
- ]
- : _vm._$g(8, "e")
- ? [
- _vm._t(
- "suffixIcon",
- [
- _vm._$g(10, "i")
- ? _c("uni-icons", {
- staticClass: _vm._$g(10, "sc"),
- attrs: { _i: 10 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _vm._e(),
- ],
- { _i: 9 }
- ),
- ]
- : [
- _vm._$g(12, "i")
- ? _c("uni-icons", {
- staticClass: _vm._$g(12, "sc"),
- class: _vm._$g(12, "c"),
- attrs: { _i: 12 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _vm._e(),
- ],
- _vm._t("right", null, { _i: 13 }),
- ],
- 2
- ),
- ],
- 1
- )
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 40 */
- /*!***************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue ***!
- \***************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-icons.vue?vue&type=template&id=a2e81f6e&scoped=true& */ 41);
- /* harmony import */ var _uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-icons.vue?vue&type=script&lang=js& */ 43);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& */ 45);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
- _uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "a2e81f6e",
- null,
- false,
- _uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "uni_modules/uni-icons/components/uni-icons/uni-icons.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 41 */
- /*!**********************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=template&id=a2e81f6e&scoped=true& ***!
- \**********************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-icons.vue?vue&type=template&id=a2e81f6e&scoped=true& */ 42);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_template_id_a2e81f6e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 42 */
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=template&id=a2e81f6e&scoped=true& ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c("v-uni-text", {
- staticClass: _vm._$g(0, "sc"),
- class: _vm._$g(0, "c"),
- style: _vm._$g(0, "s"),
- attrs: { _i: 0 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 43 */
- /*!****************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=script&lang=js& ***!
- \****************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-icons.vue?vue&type=script&lang=js& */ 44);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 44 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=script&lang=js& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- name: "UniIcons",
- props: ["type", "color", "size", "customPrefix"],
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 45 */
- /*!*************************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& ***!
- \*************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& */ 46);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_icons_vue_vue_type_style_index_0_id_a2e81f6e_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 46 */
- /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& */ 47);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("0212e13f", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 47 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uni-icons.vue?vue&type=style&index=0&id=a2e81f6e&lang=scss&scoped=true& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/lib/app-plus/getUrl.js */ 16);
- var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ./uniicons.ttf */ 48);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.uniui-color[data-v-a2e81f6e]:before {\n content: \"\\e6cf\";\n}\n.uniui-wallet[data-v-a2e81f6e]:before {\n content: \"\\e6b1\";\n}\n.uniui-settings-filled[data-v-a2e81f6e]:before {\n content: \"\\e6ce\";\n}\n.uniui-auth-filled[data-v-a2e81f6e]:before {\n content: \"\\e6cc\";\n}\n.uniui-shop-filled[data-v-a2e81f6e]:before {\n content: \"\\e6cd\";\n}\n.uniui-staff-filled[data-v-a2e81f6e]:before {\n content: \"\\e6cb\";\n}\n.uniui-vip-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c6\";\n}\n.uniui-plus-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c7\";\n}\n.uniui-folder-add-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c8\";\n}\n.uniui-color-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c9\";\n}\n.uniui-tune-filled[data-v-a2e81f6e]:before {\n content: \"\\e6ca\";\n}\n.uniui-calendar-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c0\";\n}\n.uniui-notification-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c1\";\n}\n.uniui-wallet-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c2\";\n}\n.uniui-medal-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c3\";\n}\n.uniui-gift-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c4\";\n}\n.uniui-fire-filled[data-v-a2e81f6e]:before {\n content: \"\\e6c5\";\n}\n.uniui-refreshempty[data-v-a2e81f6e]:before {\n content: \"\\e6bf\";\n}\n.uniui-location-filled[data-v-a2e81f6e]:before {\n content: \"\\e6af\";\n}\n.uniui-person-filled[data-v-a2e81f6e]:before {\n content: \"\\e69d\";\n}\n.uniui-personadd-filled[data-v-a2e81f6e]:before {\n content: \"\\e698\";\n}\n.uniui-back[data-v-a2e81f6e]:before {\n content: \"\\e6b9\";\n}\n.uniui-forward[data-v-a2e81f6e]:before {\n content: \"\\e6ba\";\n}\n.uniui-arrow-right[data-v-a2e81f6e]:before {\n content: \"\\e6bb\";\n}\n.uniui-arrowthinright[data-v-a2e81f6e]:before {\n content: \"\\e6bb\";\n}\n.uniui-arrow-left[data-v-a2e81f6e]:before {\n content: \"\\e6bc\";\n}\n.uniui-arrowthinleft[data-v-a2e81f6e]:before {\n content: \"\\e6bc\";\n}\n.uniui-arrow-up[data-v-a2e81f6e]:before {\n content: \"\\e6bd\";\n}\n.uniui-arrowthinup[data-v-a2e81f6e]:before {\n content: \"\\e6bd\";\n}\n.uniui-arrow-down[data-v-a2e81f6e]:before {\n content: \"\\e6be\";\n}\n.uniui-arrowthindown[data-v-a2e81f6e]:before {\n content: \"\\e6be\";\n}\n.uniui-bottom[data-v-a2e81f6e]:before {\n content: \"\\e6b8\";\n}\n.uniui-arrowdown[data-v-a2e81f6e]:before {\n content: \"\\e6b8\";\n}\n.uniui-right[data-v-a2e81f6e]:before {\n content: \"\\e6b5\";\n}\n.uniui-arrowright[data-v-a2e81f6e]:before {\n content: \"\\e6b5\";\n}\n.uniui-top[data-v-a2e81f6e]:before {\n content: \"\\e6b6\";\n}\n.uniui-arrowup[data-v-a2e81f6e]:before {\n content: \"\\e6b6\";\n}\n.uniui-left[data-v-a2e81f6e]:before {\n content: \"\\e6b7\";\n}\n.uniui-arrowleft[data-v-a2e81f6e]:before {\n content: \"\\e6b7\";\n}\n.uniui-eye[data-v-a2e81f6e]:before {\n content: \"\\e651\";\n}\n.uniui-eye-filled[data-v-a2e81f6e]:before {\n content: \"\\e66a\";\n}\n.uniui-eye-slash[data-v-a2e81f6e]:before {\n content: \"\\e6b3\";\n}\n.uniui-eye-slash-filled[data-v-a2e81f6e]:before {\n content: \"\\e6b4\";\n}\n.uniui-info-filled[data-v-a2e81f6e]:before {\n content: \"\\e649\";\n}\n.uniui-reload[data-v-a2e81f6e]:before {\n content: \"\\e6b2\";\n}\n.uniui-micoff-filled[data-v-a2e81f6e]:before {\n content: \"\\e6b0\";\n}\n.uniui-map-pin-ellipse[data-v-a2e81f6e]:before {\n content: \"\\e6ac\";\n}\n.uniui-map-pin[data-v-a2e81f6e]:before {\n content: \"\\e6ad\";\n}\n.uniui-location[data-v-a2e81f6e]:before {\n content: \"\\e6ae\";\n}\n.uniui-starhalf[data-v-a2e81f6e]:before {\n content: \"\\e683\";\n}\n.uniui-star[data-v-a2e81f6e]:before {\n content: \"\\e688\";\n}\n.uniui-star-filled[data-v-a2e81f6e]:before {\n content: \"\\e68f\";\n}\n.uniui-calendar[data-v-a2e81f6e]:before {\n content: \"\\e6a0\";\n}\n.uniui-fire[data-v-a2e81f6e]:before {\n content: \"\\e6a1\";\n}\n.uniui-medal[data-v-a2e81f6e]:before {\n content: \"\\e6a2\";\n}\n.uniui-font[data-v-a2e81f6e]:before {\n content: \"\\e6a3\";\n}\n.uniui-gift[data-v-a2e81f6e]:before {\n content: \"\\e6a4\";\n}\n.uniui-link[data-v-a2e81f6e]:before {\n content: \"\\e6a5\";\n}\n.uniui-notification[data-v-a2e81f6e]:before {\n content: \"\\e6a6\";\n}\n.uniui-staff[data-v-a2e81f6e]:before {\n content: \"\\e6a7\";\n}\n.uniui-vip[data-v-a2e81f6e]:before {\n content: \"\\e6a8\";\n}\n.uniui-folder-add[data-v-a2e81f6e]:before {\n content: \"\\e6a9\";\n}\n.uniui-tune[data-v-a2e81f6e]:before {\n content: \"\\e6aa\";\n}\n.uniui-auth[data-v-a2e81f6e]:before {\n content: \"\\e6ab\";\n}\n.uniui-person[data-v-a2e81f6e]:before {\n content: \"\\e699\";\n}\n.uniui-email-filled[data-v-a2e81f6e]:before {\n content: \"\\e69a\";\n}\n.uniui-phone-filled[data-v-a2e81f6e]:before {\n content: \"\\e69b\";\n}\n.uniui-phone[data-v-a2e81f6e]:before {\n content: \"\\e69c\";\n}\n.uniui-email[data-v-a2e81f6e]:before {\n content: \"\\e69e\";\n}\n.uniui-personadd[data-v-a2e81f6e]:before {\n content: \"\\e69f\";\n}\n.uniui-chatboxes-filled[data-v-a2e81f6e]:before {\n content: \"\\e692\";\n}\n.uniui-contact[data-v-a2e81f6e]:before {\n content: \"\\e693\";\n}\n.uniui-chatbubble-filled[data-v-a2e81f6e]:before {\n content: \"\\e694\";\n}\n.uniui-contact-filled[data-v-a2e81f6e]:before {\n content: \"\\e695\";\n}\n.uniui-chatboxes[data-v-a2e81f6e]:before {\n content: \"\\e696\";\n}\n.uniui-chatbubble[data-v-a2e81f6e]:before {\n content: \"\\e697\";\n}\n.uniui-upload-filled[data-v-a2e81f6e]:before {\n content: \"\\e68e\";\n}\n.uniui-upload[data-v-a2e81f6e]:before {\n content: \"\\e690\";\n}\n.uniui-weixin[data-v-a2e81f6e]:before {\n content: \"\\e691\";\n}\n.uniui-compose[data-v-a2e81f6e]:before {\n content: \"\\e67f\";\n}\n.uniui-qq[data-v-a2e81f6e]:before {\n content: \"\\e680\";\n}\n.uniui-download-filled[data-v-a2e81f6e]:before {\n content: \"\\e681\";\n}\n.uniui-pyq[data-v-a2e81f6e]:before {\n content: \"\\e682\";\n}\n.uniui-sound[data-v-a2e81f6e]:before {\n content: \"\\e684\";\n}\n.uniui-trash-filled[data-v-a2e81f6e]:before {\n content: \"\\e685\";\n}\n.uniui-sound-filled[data-v-a2e81f6e]:before {\n content: \"\\e686\";\n}\n.uniui-trash[data-v-a2e81f6e]:before {\n content: \"\\e687\";\n}\n.uniui-videocam-filled[data-v-a2e81f6e]:before {\n content: \"\\e689\";\n}\n.uniui-spinner-cycle[data-v-a2e81f6e]:before {\n content: \"\\e68a\";\n}\n.uniui-weibo[data-v-a2e81f6e]:before {\n content: \"\\e68b\";\n}\n.uniui-videocam[data-v-a2e81f6e]:before {\n content: \"\\e68c\";\n}\n.uniui-download[data-v-a2e81f6e]:before {\n content: \"\\e68d\";\n}\n.uniui-help[data-v-a2e81f6e]:before {\n content: \"\\e679\";\n}\n.uniui-navigate-filled[data-v-a2e81f6e]:before {\n content: \"\\e67a\";\n}\n.uniui-plusempty[data-v-a2e81f6e]:before {\n content: \"\\e67b\";\n}\n.uniui-smallcircle[data-v-a2e81f6e]:before {\n content: \"\\e67c\";\n}\n.uniui-minus-filled[data-v-a2e81f6e]:before {\n content: \"\\e67d\";\n}\n.uniui-micoff[data-v-a2e81f6e]:before {\n content: \"\\e67e\";\n}\n.uniui-closeempty[data-v-a2e81f6e]:before {\n content: \"\\e66c\";\n}\n.uniui-clear[data-v-a2e81f6e]:before {\n content: \"\\e66d\";\n}\n.uniui-navigate[data-v-a2e81f6e]:before {\n content: \"\\e66e\";\n}\n.uniui-minus[data-v-a2e81f6e]:before {\n content: \"\\e66f\";\n}\n.uniui-image[data-v-a2e81f6e]:before {\n content: \"\\e670\";\n}\n.uniui-mic[data-v-a2e81f6e]:before {\n content: \"\\e671\";\n}\n.uniui-paperplane[data-v-a2e81f6e]:before {\n content: \"\\e672\";\n}\n.uniui-close[data-v-a2e81f6e]:before {\n content: \"\\e673\";\n}\n.uniui-help-filled[data-v-a2e81f6e]:before {\n content: \"\\e674\";\n}\n.uniui-paperplane-filled[data-v-a2e81f6e]:before {\n content: \"\\e675\";\n}\n.uniui-plus[data-v-a2e81f6e]:before {\n content: \"\\e676\";\n}\n.uniui-mic-filled[data-v-a2e81f6e]:before {\n content: \"\\e677\";\n}\n.uniui-image-filled[data-v-a2e81f6e]:before {\n content: \"\\e678\";\n}\n.uniui-locked-filled[data-v-a2e81f6e]:before {\n content: \"\\e668\";\n}\n.uniui-info[data-v-a2e81f6e]:before {\n content: \"\\e669\";\n}\n.uniui-locked[data-v-a2e81f6e]:before {\n content: \"\\e66b\";\n}\n.uniui-camera-filled[data-v-a2e81f6e]:before {\n content: \"\\e658\";\n}\n.uniui-chat-filled[data-v-a2e81f6e]:before {\n content: \"\\e659\";\n}\n.uniui-camera[data-v-a2e81f6e]:before {\n content: \"\\e65a\";\n}\n.uniui-circle[data-v-a2e81f6e]:before {\n content: \"\\e65b\";\n}\n.uniui-checkmarkempty[data-v-a2e81f6e]:before {\n content: \"\\e65c\";\n}\n.uniui-chat[data-v-a2e81f6e]:before {\n content: \"\\e65d\";\n}\n.uniui-circle-filled[data-v-a2e81f6e]:before {\n content: \"\\e65e\";\n}\n.uniui-flag[data-v-a2e81f6e]:before {\n content: \"\\e65f\";\n}\n.uniui-flag-filled[data-v-a2e81f6e]:before {\n content: \"\\e660\";\n}\n.uniui-gear-filled[data-v-a2e81f6e]:before {\n content: \"\\e661\";\n}\n.uniui-home[data-v-a2e81f6e]:before {\n content: \"\\e662\";\n}\n.uniui-home-filled[data-v-a2e81f6e]:before {\n content: \"\\e663\";\n}\n.uniui-gear[data-v-a2e81f6e]:before {\n content: \"\\e664\";\n}\n.uniui-smallcircle-filled[data-v-a2e81f6e]:before {\n content: \"\\e665\";\n}\n.uniui-map-filled[data-v-a2e81f6e]:before {\n content: \"\\e666\";\n}\n.uniui-map[data-v-a2e81f6e]:before {\n content: \"\\e667\";\n}\n.uniui-refresh-filled[data-v-a2e81f6e]:before {\n content: \"\\e656\";\n}\n.uniui-refresh[data-v-a2e81f6e]:before {\n content: \"\\e657\";\n}\n.uniui-cloud-upload[data-v-a2e81f6e]:before {\n content: \"\\e645\";\n}\n.uniui-cloud-download-filled[data-v-a2e81f6e]:before {\n content: \"\\e646\";\n}\n.uniui-cloud-download[data-v-a2e81f6e]:before {\n content: \"\\e647\";\n}\n.uniui-cloud-upload-filled[data-v-a2e81f6e]:before {\n content: \"\\e648\";\n}\n.uniui-redo[data-v-a2e81f6e]:before {\n content: \"\\e64a\";\n}\n.uniui-images-filled[data-v-a2e81f6e]:before {\n content: \"\\e64b\";\n}\n.uniui-undo-filled[data-v-a2e81f6e]:before {\n content: \"\\e64c\";\n}\n.uniui-more[data-v-a2e81f6e]:before {\n content: \"\\e64d\";\n}\n.uniui-more-filled[data-v-a2e81f6e]:before {\n content: \"\\e64e\";\n}\n.uniui-undo[data-v-a2e81f6e]:before {\n content: \"\\e64f\";\n}\n.uniui-images[data-v-a2e81f6e]:before {\n content: \"\\e650\";\n}\n.uniui-paperclip[data-v-a2e81f6e]:before {\n content: \"\\e652\";\n}\n.uniui-settings[data-v-a2e81f6e]:before {\n content: \"\\e653\";\n}\n.uniui-search[data-v-a2e81f6e]:before {\n content: \"\\e654\";\n}\n.uniui-redo-filled[data-v-a2e81f6e]:before {\n content: \"\\e655\";\n}\n.uniui-list[data-v-a2e81f6e]:before {\n content: \"\\e644\";\n}\n.uniui-mail-open-filled[data-v-a2e81f6e]:before {\n content: \"\\e63a\";\n}\n.uniui-hand-down-filled[data-v-a2e81f6e]:before {\n content: \"\\e63c\";\n}\n.uniui-hand-down[data-v-a2e81f6e]:before {\n content: \"\\e63d\";\n}\n.uniui-hand-up-filled[data-v-a2e81f6e]:before {\n content: \"\\e63e\";\n}\n.uniui-hand-up[data-v-a2e81f6e]:before {\n content: \"\\e63f\";\n}\n.uniui-heart-filled[data-v-a2e81f6e]:before {\n content: \"\\e641\";\n}\n.uniui-mail-open[data-v-a2e81f6e]:before {\n content: \"\\e643\";\n}\n.uniui-heart[data-v-a2e81f6e]:before {\n content: \"\\e639\";\n}\n.uniui-loop[data-v-a2e81f6e]:before {\n content: \"\\e633\";\n}\n.uniui-pulldown[data-v-a2e81f6e]:before {\n content: \"\\e632\";\n}\n.uniui-scan[data-v-a2e81f6e]:before {\n content: \"\\e62a\";\n}\n.uniui-bars[data-v-a2e81f6e]:before {\n content: \"\\e627\";\n}\n.uniui-cart-filled[data-v-a2e81f6e]:before {\n content: \"\\e629\";\n}\n.uniui-checkbox[data-v-a2e81f6e]:before {\n content: \"\\e62b\";\n}\n.uniui-checkbox-filled[data-v-a2e81f6e]:before {\n content: \"\\e62c\";\n}\n.uniui-shop[data-v-a2e81f6e]:before {\n content: \"\\e62f\";\n}\n.uniui-headphones[data-v-a2e81f6e]:before {\n content: \"\\e630\";\n}\n.uniui-cart[data-v-a2e81f6e]:before {\n content: \"\\e631\";\n}\n@font-face {\n font-family: uniicons;\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"truetype\");\n}\n.uni-icons[data-v-a2e81f6e] {\n font-family: uniicons;\n text-decoration: none;\n text-align: center;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 48 */
- /*!**************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-icons/components/uni-icons/uniicons.ttf ***!
- \**************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/uni_modules/uni-icons/components/uni-icons/uniicons.ttf";
- /***/ }),
- /* 49 */
- /*!****************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=script&lang=js& ***!
- \****************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-easyinput.vue?vue&type=script&lang=js& */ 50);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 50 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=script&lang=js& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- name: "uni-easyinput",
- props: ["name", "value", "modelValue", "type", "clearable", "autoHeight", "placeholder", "placeholderStyle", "focus", "disabled", "maxlength", "confirmType", "clearSize", "inputBorder", "prefixIcon", "suffixIcon", "trim", "passwordIcon", "primaryColor", "styles", "errorMessage"],
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 51 */
- /*!*************************************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& ***!
- \*************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& */ 52);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_easyinput_vue_vue_type_style_index_0_id_abe12412_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 52 */
- /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& */ 53);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("0a6b455a", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 53 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue?vue&type=style&index=0&id=abe12412&lang=scss&scoped=true& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.uni-easyinput[data-v-abe12412] {\n width: 100%;\n flex: 1;\n position: relative;\n text-align: left;\n color: #333;\n font-size: 14px;\n}\n.uni-easyinput__content[data-v-abe12412] {\n flex: 1;\n width: 100%;\n display: flex;\n box-sizing: border-box;\n flex-direction: row;\n align-items: center;\n border-color: #fff;\n transition-property: border-color;\n transition-duration: 0.3s;\n}\n.uni-easyinput__content-input[data-v-abe12412] {\n width: auto;\n position: relative;\n overflow: hidden;\n flex: 1;\n line-height: 1;\n font-size: 14px;\n height: 35px;\n}\n.uni-easyinput__placeholder-class[data-v-abe12412] {\n color: #999;\n font-size: 12px;\n}\n.is-textarea[data-v-abe12412] {\n align-items: flex-start;\n}\n.is-textarea-icon[data-v-abe12412] {\n margin-top: 5px;\n}\n.uni-easyinput__content-textarea[data-v-abe12412] {\n position: relative;\n overflow: hidden;\n flex: 1;\n line-height: 1.5;\n font-size: 14px;\n margin: 6px;\n margin-left: 0;\n height: 80px;\n min-height: 80px;\n min-height: 80px;\n width: auto;\n}\n.input-padding[data-v-abe12412] {\n padding-left: 10px;\n}\n.content-clear-icon[data-v-abe12412] {\n padding: 0 5px;\n}\n.label-icon[data-v-abe12412] {\n margin-right: 5px;\n margin-top: -1px;\n}\n.is-input-border[data-v-abe12412] {\n display: flex;\n box-sizing: border-box;\n flex-direction: row;\n align-items: center;\n border: 1px solid #F0F0F0;\n border-radius: 4px;\n}\n.uni-error-message[data-v-abe12412] {\n position: absolute;\n bottom: -17px;\n left: 0;\n line-height: 12px;\n color: #e43d33;\n font-size: 12px;\n text-align: left;\n}\n.uni-error-msg--boeder[data-v-abe12412] {\n position: relative;\n bottom: 0;\n line-height: 22px;\n}\n.is-input-error-border[data-v-abe12412] {\n border-color: #e43d33;\n}\n.is-input-error-border .uni-easyinput__placeholder-class[data-v-abe12412] {\n color: #f29e99;\n}\n.uni-easyinput--border[data-v-abe12412] {\n margin-bottom: 0;\n padding: 10px 15px;\n border-top: 1px #eee solid;\n}\n.uni-easyinput-error[data-v-abe12412] {\n padding-bottom: 0;\n}\n.is-first-border[data-v-abe12412] {\n border: none;\n}\n.is-disabled[data-v-abe12412] {\n background-color: #f7f6f6;\n color: #d5d5d5;\n}\n.is-disabled .uni-easyinput__placeholder-class[data-v-abe12412] {\n color: #d5d5d5;\n font-size: 12px;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 54 */
- /*!************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=script&lang=js&mpType=page ***!
- \************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./nfc.vue?vue&type=script&lang=js&mpType=page */ 55);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 55 */
- /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=script&lang=js&mpType=page ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 56 */
- /*!*********************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page ***!
- \*********************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page */ 57);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_nfc_vue_vue_type_style_index_0_id_6158afae_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 57 */
- /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page ***!
- \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page */ 58);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("f36082dc", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 58 */
- /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/nfc/nfc.vue?vue&type=style&index=0&id=6158afae&scoped=true&lang=scss&mpType=page ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.container[data-v-6158afae] {\n padding: 15px;\n box-sizing: border-box;\n}\n.container .btn-box[data-v-6158afae] {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 20px;\n}\n.container .btn-box .btn[data-v-6158afae] {\n width: 35%;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 59 */
- /*!******************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?mpType=page ***!
- \******************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./verify.vue?vue&type=template&id=97e49014&scoped=true&mpType=page */ 60);
- /* harmony import */ var _verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./verify.vue?vue&type=script&lang=js&mpType=page */ 62);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page */ 64);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_1__["default"],
- _verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"],
- _verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "97e49014",
- null,
- false,
- _verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "pages/verify/verify.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 60 */
- /*!************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=template&id=97e49014&scoped=true&mpType=page ***!
- \************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./verify.vue?vue&type=template&id=97e49014&scoped=true&mpType=page */ 61);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_template_id_97e49014_scoped_true_mpType_page__WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 61 */
- /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=template&id=97e49014&scoped=true&mpType=page ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "uni-view",
- { staticClass: _vm._$g(0, "sc"), attrs: { _i: 0 } },
- [
- _c(
- "uni-view",
- { staticClass: _vm._$g(1, "sc"), attrs: { _i: 1 } },
- [
- _vm._$g(2, "i")
- ? _c(
- "v-uni-text",
- { staticClass: _vm._$g(2, "sc"), attrs: { _i: 2 } },
- [_vm._v("待扫码")]
- )
- : _c(
- "v-uni-text",
- { staticClass: _vm._$g(3, "sc"), attrs: { _i: 3 } },
- [_vm._v("扫码结果:" + _vm._$g(3, "t0-0"))]
- ),
- ],
- 1
- ),
- _c(
- "uni-view",
- { staticClass: _vm._$g(4, "sc"), attrs: { _i: 4 } },
- [
- _c(
- "v-uni-button",
- {
- staticClass: _vm._$g(5, "sc"),
- attrs: { type: "primary", _i: 5 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._v("扫一扫")]
- ),
- ],
- 1
- ),
- ],
- 1
- )
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 62 */
- /*!******************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=script&lang=js&mpType=page ***!
- \******************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./verify.vue?vue&type=script&lang=js&mpType=page */ 63);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_script_lang_js_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 63 */
- /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=script&lang=js&mpType=page ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 64 */
- /*!***************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page ***!
- \***************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page */ 65);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_verify_vue_vue_type_style_index_0_id_97e49014_scoped_true_lang_scss_mpType_page__WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 65 */
- /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page ***!
- \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page */ 66);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("d2ed8910", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 66 */
- /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/pages/verify/verify.vue?vue&type=style&index=0&id=97e49014&scoped=true&lang=scss&mpType=page ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.container[data-v-97e49014] {\n padding: 15px;\n box-sizing: border-box;\n}\n.container .text-box[data-v-97e49014] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200rpx;\n}\n.container .btn-box[data-v-97e49014] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 20px;\n}\n.container .btn-box .btn-scan[data-v-97e49014] {\n width: 90%;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 67 */
- /*!************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/App.vue?vue&type=style&index=0&lang=scss& ***!
- \************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./App.vue?vue&type=style&index=0&lang=scss& */ 68);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_App_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 68 */
- /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/App.vue?vue&type=style&index=0&lang=scss& ***!
- \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./App.vue?vue&type=style&index=0&lang=scss& */ 69);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("249050e0", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 69 */
- /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/App.vue?vue&type=style&index=0&lang=scss& ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/lib/app-plus/getUrl.js */ 16);
- var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! @/static/customicons.ttf */ 70);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n/*每个页面公共css */\n/* 水平间距 */\n@font-face {\n font-family: \"customicons\"; /* Project id 2878519 */\n src:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format('truetype');\n}\n.customicons {\n font-family: \"customicons\" !important;\n}\n.youxi:before {\n content: \"\\e60e\";\n}\n.wenjian:before {\n content: \"\\e60f\";\n}\n.zhuanfa:before {\n content: \"\\e610\";\n}\n.uni-border {\n border: 1px #F0F0F0 solid;\n}\n.uni-primary {\n color: #2979ff;\n}\n.uni-primary-bg {\n background-color: #2979ff;\n}\n.uni-primary-disable {\n color: #94bcff;\n}\n.uni-primary-disable-bg {\n background-color: #94bcff;\n}\n.uni-primary-light {\n color: #d4e4ff;\n}\n.uni-primary-light-bg {\n background-color: #d4e4ff;\n}\n.uni-success {\n color: #18bc37;\n}\n.uni-success-bg {\n background-color: #18bc37;\n}\n.uni-success-disable {\n color: #8cde9b;\n}\n.uni-success-disable-bg {\n background-color: #8cde9b;\n}\n.uni-success-light {\n color: #d1f2d7;\n}\n.uni-success-light-bg {\n background-color: #d1f2d7;\n}\n.uni-warning {\n color: #f3a73f;\n}\n.uni-warning-bg {\n background-color: #f3a73f;\n}\n.uni-warning-disable {\n color: #f9d39f;\n}\n.uni-warning-disable-bg {\n background-color: #f9d39f;\n}\n.uni-warning-light {\n color: #fdedd9;\n}\n.uni-warning-light-bg {\n background-color: #fdedd9;\n}\n.uni-error {\n color: #e43d33;\n}\n.uni-error-bg {\n background-color: #e43d33;\n}\n.uni-error-disable {\n color: #f29e99;\n}\n.uni-error-disable-bg {\n background-color: #f29e99;\n}\n.uni-error-light {\n color: #fad8d6;\n}\n.uni-error-light-bg {\n background-color: #fad8d6;\n}\n.uni-info {\n color: #8f939c;\n}\n.uni-info-bg {\n background-color: #8f939c;\n}\n.uni-info-disable {\n color: #c7c9ce;\n}\n.uni-info-disable-bg {\n background-color: #c7c9ce;\n}\n.uni-info-light {\n color: #e9e9eb;\n}\n.uni-info-light-bg {\n background-color: #e9e9eb;\n}\n.uni-main-color {\n color: #3a3a3a;\n}\n.uni-main-color-bg {\n background-color: #3a3a3a;\n}\n.uni-base-color {\n color: #6a6a6a;\n}\n.uni-base-color-bg {\n background-color: #6a6a6a;\n}\n.uni-secondary-color {\n color: #909399;\n}\n.uni-secondary-color-bg {\n background-color: #909399;\n}\n.uni-extra-color {\n color: #c7c7c7;\n}\n.uni-extra-color-bg {\n background-color: #c7c7c7;\n}\n.uni-bg-color {\n color: #f7f7f7;\n}\n.uni-bg-color-bg {\n background-color: #f7f7f7;\n}\n.uni-border-1 {\n color: #F0F0F0;\n}\n.uni-border-1-bg {\n background-color: #F0F0F0;\n}\n.uni-border-2 {\n color: #EDEDED;\n}\n.uni-border-2-bg {\n background-color: #EDEDED;\n}\n.uni-border-3 {\n color: #DCDCDC;\n}\n.uni-border-3-bg {\n background-color: #DCDCDC;\n}\n.uni-border-4 {\n color: #B9B9B9;\n}\n.uni-border-4-bg {\n background-color: #B9B9B9;\n}\n.uni-black {\n color: #000000;\n}\n.uni-black-bg {\n background-color: #000000;\n}\n.uni-white {\n color: #ffffff;\n}\n.uni-white-bg {\n background-color: #ffffff;\n}\n.uni-transparent {\n color: rgba(0, 0, 0, 0);\n}\n.uni-transparent-bg {\n background-color: rgba(0, 0, 0, 0);\n}\n.uni-shadow-sm {\n box-shadow: 0 0 5px rgba(216, 216, 216, 0.5);\n}\n.uni-shadow-base {\n box-shadow: 0 1px 8px 1px rgba(165, 165, 165, 0.2);\n}\n.uni-shadow-lg {\n box-shadow: 0px 1px 10px 2px rgba(165, 164, 164, 0.5);\n}\n.uni-mask {\n background-color: rgba(0, 0, 0, 0.4);\n}\n.uni-mt-0 {\n margin-top: 0px;\n}\n.uni-mt-n0 {\n margin-top: 0px;\n}\n.uni-mr-0 {\n margin-right: 0px;\n}\n.uni-mr-n0 {\n margin-right: 0px;\n}\n.uni-mb-0 {\n margin-bottom: 0px;\n}\n.uni-mb-n0 {\n margin-bottom: 0px;\n}\n.uni-ml-0 {\n margin-left: 0px;\n}\n.uni-ml-n0 {\n margin-left: 0px;\n}\n.uni-mx-0 {\n margin-left: 0px;\n margin-right: 0px;\n}\n.uni-mx-n0 {\n margin-left: 0px;\n margin-right: 0px;\n}\n.uni-my-0 {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.uni-my-n0 {\n margin-top: 0px;\n margin-bottom: 0px;\n}\n.uni-ma-0 {\n margin: 0px;\n}\n.uni-ma-n0 {\n margin: 0px;\n}\n.uni-mt-1 {\n margin-top: 2px;\n}\n.uni-mt-n1 {\n margin-top: -2px;\n}\n.uni-mr-1 {\n margin-right: 2px;\n}\n.uni-mr-n1 {\n margin-right: -2px;\n}\n.uni-mb-1 {\n margin-bottom: 2px;\n}\n.uni-mb-n1 {\n margin-bottom: -2px;\n}\n.uni-ml-1 {\n margin-left: 2px;\n}\n.uni-ml-n1 {\n margin-left: -2px;\n}\n.uni-mx-1 {\n margin-left: 2px;\n margin-right: 2px;\n}\n.uni-mx-n1 {\n margin-left: -2px;\n margin-right: -2px;\n}\n.uni-my-1 {\n margin-top: 2px;\n margin-bottom: 2px;\n}\n.uni-my-n1 {\n margin-top: -2px;\n margin-bottom: -2px;\n}\n.uni-ma-1 {\n margin: 2px;\n}\n.uni-ma-n1 {\n margin: -2px;\n}\n.uni-mt-2 {\n margin-top: 4px;\n}\n.uni-mt-n2 {\n margin-top: -4px;\n}\n.uni-mr-2 {\n margin-right: 4px;\n}\n.uni-mr-n2 {\n margin-right: -4px;\n}\n.uni-mb-2 {\n margin-bottom: 4px;\n}\n.uni-mb-n2 {\n margin-bottom: -4px;\n}\n.uni-ml-2 {\n margin-left: 4px;\n}\n.uni-ml-n2 {\n margin-left: -4px;\n}\n.uni-mx-2 {\n margin-left: 4px;\n margin-right: 4px;\n}\n.uni-mx-n2 {\n margin-left: -4px;\n margin-right: -4px;\n}\n.uni-my-2 {\n margin-top: 4px;\n margin-bottom: 4px;\n}\n.uni-my-n2 {\n margin-top: -4px;\n margin-bottom: -4px;\n}\n.uni-ma-2 {\n margin: 4px;\n}\n.uni-ma-n2 {\n margin: -4px;\n}\n.uni-mt-3 {\n margin-top: 6px;\n}\n.uni-mt-n3 {\n margin-top: -6px;\n}\n.uni-mr-3 {\n margin-right: 6px;\n}\n.uni-mr-n3 {\n margin-right: -6px;\n}\n.uni-mb-3 {\n margin-bottom: 6px;\n}\n.uni-mb-n3 {\n margin-bottom: -6px;\n}\n.uni-ml-3 {\n margin-left: 6px;\n}\n.uni-ml-n3 {\n margin-left: -6px;\n}\n.uni-mx-3 {\n margin-left: 6px;\n margin-right: 6px;\n}\n.uni-mx-n3 {\n margin-left: -6px;\n margin-right: -6px;\n}\n.uni-my-3 {\n margin-top: 6px;\n margin-bottom: 6px;\n}\n.uni-my-n3 {\n margin-top: -6px;\n margin-bottom: -6px;\n}\n.uni-ma-3 {\n margin: 6px;\n}\n.uni-ma-n3 {\n margin: -6px;\n}\n.uni-mt-4 {\n margin-top: 8px;\n}\n.uni-mt-n4 {\n margin-top: -8px;\n}\n.uni-mr-4 {\n margin-right: 8px;\n}\n.uni-mr-n4 {\n margin-right: -8px;\n}\n.uni-mb-4 {\n margin-bottom: 8px;\n}\n.uni-mb-n4 {\n margin-bottom: -8px;\n}\n.uni-ml-4 {\n margin-left: 8px;\n}\n.uni-ml-n4 {\n margin-left: -8px;\n}\n.uni-mx-4 {\n margin-left: 8px;\n margin-right: 8px;\n}\n.uni-mx-n4 {\n margin-left: -8px;\n margin-right: -8px;\n}\n.uni-my-4 {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.uni-my-n4 {\n margin-top: -8px;\n margin-bottom: -8px;\n}\n.uni-ma-4 {\n margin: 8px;\n}\n.uni-ma-n4 {\n margin: -8px;\n}\n.uni-mt-5 {\n margin-top: 10px;\n}\n.uni-mt-n5 {\n margin-top: -10px;\n}\n.uni-mr-5 {\n margin-right: 10px;\n}\n.uni-mr-n5 {\n margin-right: -10px;\n}\n.uni-mb-5 {\n margin-bottom: 10px;\n}\n.uni-mb-n5 {\n margin-bottom: -10px;\n}\n.uni-ml-5 {\n margin-left: 10px;\n}\n.uni-ml-n5 {\n margin-left: -10px;\n}\n.uni-mx-5 {\n margin-left: 10px;\n margin-right: 10px;\n}\n.uni-mx-n5 {\n margin-left: -10px;\n margin-right: -10px;\n}\n.uni-my-5 {\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.uni-my-n5 {\n margin-top: -10px;\n margin-bottom: -10px;\n}\n.uni-ma-5 {\n margin: 10px;\n}\n.uni-ma-n5 {\n margin: -10px;\n}\n.uni-mt-6 {\n margin-top: 12px;\n}\n.uni-mt-n6 {\n margin-top: -12px;\n}\n.uni-mr-6 {\n margin-right: 12px;\n}\n.uni-mr-n6 {\n margin-right: -12px;\n}\n.uni-mb-6 {\n margin-bottom: 12px;\n}\n.uni-mb-n6 {\n margin-bottom: -12px;\n}\n.uni-ml-6 {\n margin-left: 12px;\n}\n.uni-ml-n6 {\n margin-left: -12px;\n}\n.uni-mx-6 {\n margin-left: 12px;\n margin-right: 12px;\n}\n.uni-mx-n6 {\n margin-left: -12px;\n margin-right: -12px;\n}\n.uni-my-6 {\n margin-top: 12px;\n margin-bottom: 12px;\n}\n.uni-my-n6 {\n margin-top: -12px;\n margin-bottom: -12px;\n}\n.uni-ma-6 {\n margin: 12px;\n}\n.uni-ma-n6 {\n margin: -12px;\n}\n.uni-mt-7 {\n margin-top: 14px;\n}\n.uni-mt-n7 {\n margin-top: -14px;\n}\n.uni-mr-7 {\n margin-right: 14px;\n}\n.uni-mr-n7 {\n margin-right: -14px;\n}\n.uni-mb-7 {\n margin-bottom: 14px;\n}\n.uni-mb-n7 {\n margin-bottom: -14px;\n}\n.uni-ml-7 {\n margin-left: 14px;\n}\n.uni-ml-n7 {\n margin-left: -14px;\n}\n.uni-mx-7 {\n margin-left: 14px;\n margin-right: 14px;\n}\n.uni-mx-n7 {\n margin-left: -14px;\n margin-right: -14px;\n}\n.uni-my-7 {\n margin-top: 14px;\n margin-bottom: 14px;\n}\n.uni-my-n7 {\n margin-top: -14px;\n margin-bottom: -14px;\n}\n.uni-ma-7 {\n margin: 14px;\n}\n.uni-ma-n7 {\n margin: -14px;\n}\n.uni-mt-8 {\n margin-top: 16px;\n}\n.uni-mt-n8 {\n margin-top: -16px;\n}\n.uni-mr-8 {\n margin-right: 16px;\n}\n.uni-mr-n8 {\n margin-right: -16px;\n}\n.uni-mb-8 {\n margin-bottom: 16px;\n}\n.uni-mb-n8 {\n margin-bottom: -16px;\n}\n.uni-ml-8 {\n margin-left: 16px;\n}\n.uni-ml-n8 {\n margin-left: -16px;\n}\n.uni-mx-8 {\n margin-left: 16px;\n margin-right: 16px;\n}\n.uni-mx-n8 {\n margin-left: -16px;\n margin-right: -16px;\n}\n.uni-my-8 {\n margin-top: 16px;\n margin-bottom: 16px;\n}\n.uni-my-n8 {\n margin-top: -16px;\n margin-bottom: -16px;\n}\n.uni-ma-8 {\n margin: 16px;\n}\n.uni-ma-n8 {\n margin: -16px;\n}\n.uni-mt-9 {\n margin-top: 18px;\n}\n.uni-mt-n9 {\n margin-top: -18px;\n}\n.uni-mr-9 {\n margin-right: 18px;\n}\n.uni-mr-n9 {\n margin-right: -18px;\n}\n.uni-mb-9 {\n margin-bottom: 18px;\n}\n.uni-mb-n9 {\n margin-bottom: -18px;\n}\n.uni-ml-9 {\n margin-left: 18px;\n}\n.uni-ml-n9 {\n margin-left: -18px;\n}\n.uni-mx-9 {\n margin-left: 18px;\n margin-right: 18px;\n}\n.uni-mx-n9 {\n margin-left: -18px;\n margin-right: -18px;\n}\n.uni-my-9 {\n margin-top: 18px;\n margin-bottom: 18px;\n}\n.uni-my-n9 {\n margin-top: -18px;\n margin-bottom: -18px;\n}\n.uni-ma-9 {\n margin: 18px;\n}\n.uni-ma-n9 {\n margin: -18px;\n}\n.uni-mt-10 {\n margin-top: 20px;\n}\n.uni-mt-n10 {\n margin-top: -20px;\n}\n.uni-mr-10 {\n margin-right: 20px;\n}\n.uni-mr-n10 {\n margin-right: -20px;\n}\n.uni-mb-10 {\n margin-bottom: 20px;\n}\n.uni-mb-n10 {\n margin-bottom: -20px;\n}\n.uni-ml-10 {\n margin-left: 20px;\n}\n.uni-ml-n10 {\n margin-left: -20px;\n}\n.uni-mx-10 {\n margin-left: 20px;\n margin-right: 20px;\n}\n.uni-mx-n10 {\n margin-left: -20px;\n margin-right: -20px;\n}\n.uni-my-10 {\n margin-top: 20px;\n margin-bottom: 20px;\n}\n.uni-my-n10 {\n margin-top: -20px;\n margin-bottom: -20px;\n}\n.uni-ma-10 {\n margin: 20px;\n}\n.uni-ma-n10 {\n margin: -20px;\n}\n.uni-mt-11 {\n margin-top: 22px;\n}\n.uni-mt-n11 {\n margin-top: -22px;\n}\n.uni-mr-11 {\n margin-right: 22px;\n}\n.uni-mr-n11 {\n margin-right: -22px;\n}\n.uni-mb-11 {\n margin-bottom: 22px;\n}\n.uni-mb-n11 {\n margin-bottom: -22px;\n}\n.uni-ml-11 {\n margin-left: 22px;\n}\n.uni-ml-n11 {\n margin-left: -22px;\n}\n.uni-mx-11 {\n margin-left: 22px;\n margin-right: 22px;\n}\n.uni-mx-n11 {\n margin-left: -22px;\n margin-right: -22px;\n}\n.uni-my-11 {\n margin-top: 22px;\n margin-bottom: 22px;\n}\n.uni-my-n11 {\n margin-top: -22px;\n margin-bottom: -22px;\n}\n.uni-ma-11 {\n margin: 22px;\n}\n.uni-ma-n11 {\n margin: -22px;\n}\n.uni-mt-12 {\n margin-top: 24px;\n}\n.uni-mt-n12 {\n margin-top: -24px;\n}\n.uni-mr-12 {\n margin-right: 24px;\n}\n.uni-mr-n12 {\n margin-right: -24px;\n}\n.uni-mb-12 {\n margin-bottom: 24px;\n}\n.uni-mb-n12 {\n margin-bottom: -24px;\n}\n.uni-ml-12 {\n margin-left: 24px;\n}\n.uni-ml-n12 {\n margin-left: -24px;\n}\n.uni-mx-12 {\n margin-left: 24px;\n margin-right: 24px;\n}\n.uni-mx-n12 {\n margin-left: -24px;\n margin-right: -24px;\n}\n.uni-my-12 {\n margin-top: 24px;\n margin-bottom: 24px;\n}\n.uni-my-n12 {\n margin-top: -24px;\n margin-bottom: -24px;\n}\n.uni-ma-12 {\n margin: 24px;\n}\n.uni-ma-n12 {\n margin: -24px;\n}\n.uni-mt-13 {\n margin-top: 26px;\n}\n.uni-mt-n13 {\n margin-top: -26px;\n}\n.uni-mr-13 {\n margin-right: 26px;\n}\n.uni-mr-n13 {\n margin-right: -26px;\n}\n.uni-mb-13 {\n margin-bottom: 26px;\n}\n.uni-mb-n13 {\n margin-bottom: -26px;\n}\n.uni-ml-13 {\n margin-left: 26px;\n}\n.uni-ml-n13 {\n margin-left: -26px;\n}\n.uni-mx-13 {\n margin-left: 26px;\n margin-right: 26px;\n}\n.uni-mx-n13 {\n margin-left: -26px;\n margin-right: -26px;\n}\n.uni-my-13 {\n margin-top: 26px;\n margin-bottom: 26px;\n}\n.uni-my-n13 {\n margin-top: -26px;\n margin-bottom: -26px;\n}\n.uni-ma-13 {\n margin: 26px;\n}\n.uni-ma-n13 {\n margin: -26px;\n}\n.uni-mt-14 {\n margin-top: 28px;\n}\n.uni-mt-n14 {\n margin-top: -28px;\n}\n.uni-mr-14 {\n margin-right: 28px;\n}\n.uni-mr-n14 {\n margin-right: -28px;\n}\n.uni-mb-14 {\n margin-bottom: 28px;\n}\n.uni-mb-n14 {\n margin-bottom: -28px;\n}\n.uni-ml-14 {\n margin-left: 28px;\n}\n.uni-ml-n14 {\n margin-left: -28px;\n}\n.uni-mx-14 {\n margin-left: 28px;\n margin-right: 28px;\n}\n.uni-mx-n14 {\n margin-left: -28px;\n margin-right: -28px;\n}\n.uni-my-14 {\n margin-top: 28px;\n margin-bottom: 28px;\n}\n.uni-my-n14 {\n margin-top: -28px;\n margin-bottom: -28px;\n}\n.uni-ma-14 {\n margin: 28px;\n}\n.uni-ma-n14 {\n margin: -28px;\n}\n.uni-mt-15 {\n margin-top: 30px;\n}\n.uni-mt-n15 {\n margin-top: -30px;\n}\n.uni-mr-15 {\n margin-right: 30px;\n}\n.uni-mr-n15 {\n margin-right: -30px;\n}\n.uni-mb-15 {\n margin-bottom: 30px;\n}\n.uni-mb-n15 {\n margin-bottom: -30px;\n}\n.uni-ml-15 {\n margin-left: 30px;\n}\n.uni-ml-n15 {\n margin-left: -30px;\n}\n.uni-mx-15 {\n margin-left: 30px;\n margin-right: 30px;\n}\n.uni-mx-n15 {\n margin-left: -30px;\n margin-right: -30px;\n}\n.uni-my-15 {\n margin-top: 30px;\n margin-bottom: 30px;\n}\n.uni-my-n15 {\n margin-top: -30px;\n margin-bottom: -30px;\n}\n.uni-ma-15 {\n margin: 30px;\n}\n.uni-ma-n15 {\n margin: -30px;\n}\n.uni-mt-16 {\n margin-top: 32px;\n}\n.uni-mt-n16 {\n margin-top: -32px;\n}\n.uni-mr-16 {\n margin-right: 32px;\n}\n.uni-mr-n16 {\n margin-right: -32px;\n}\n.uni-mb-16 {\n margin-bottom: 32px;\n}\n.uni-mb-n16 {\n margin-bottom: -32px;\n}\n.uni-ml-16 {\n margin-left: 32px;\n}\n.uni-ml-n16 {\n margin-left: -32px;\n}\n.uni-mx-16 {\n margin-left: 32px;\n margin-right: 32px;\n}\n.uni-mx-n16 {\n margin-left: -32px;\n margin-right: -32px;\n}\n.uni-my-16 {\n margin-top: 32px;\n margin-bottom: 32px;\n}\n.uni-my-n16 {\n margin-top: -32px;\n margin-bottom: -32px;\n}\n.uni-ma-16 {\n margin: 32px;\n}\n.uni-ma-n16 {\n margin: -32px;\n}\n.uni-pt-0 {\n padding-top: 0px;\n}\n.uni-pt-n0 {\n padding-top: 0px;\n}\n.uni-pr-0 {\n padding-right: 0px;\n}\n.uni-pr-n0 {\n padding-right: 0px;\n}\n.uni-pb-0 {\n padding-bottom: 0px;\n}\n.uni-pb-n0 {\n padding-bottom: 0px;\n}\n.uni-pl-0 {\n padding-left: 0px;\n}\n.uni-pl-n0 {\n padding-left: 0px;\n}\n.uni-px-0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.uni-px-n0 {\n padding-left: 0px;\n padding-right: 0px;\n}\n.uni-py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.uni-py-n0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.uni-pa-0 {\n padding: 0px;\n}\n.uni-pa-n0 {\n padding: 0px;\n}\n.uni-pt-1 {\n padding-top: 2px;\n}\n.uni-pt-n1 {\n padding-top: -2px;\n}\n.uni-pr-1 {\n padding-right: 2px;\n}\n.uni-pr-n1 {\n padding-right: -2px;\n}\n.uni-pb-1 {\n padding-bottom: 2px;\n}\n.uni-pb-n1 {\n padding-bottom: -2px;\n}\n.uni-pl-1 {\n padding-left: 2px;\n}\n.uni-pl-n1 {\n padding-left: -2px;\n}\n.uni-px-1 {\n padding-left: 2px;\n padding-right: 2px;\n}\n.uni-px-n1 {\n padding-left: -2px;\n padding-right: -2px;\n}\n.uni-py-1 {\n padding-top: 2px;\n padding-bottom: 2px;\n}\n.uni-py-n1 {\n padding-top: -2px;\n padding-bottom: -2px;\n}\n.uni-pa-1 {\n padding: 2px;\n}\n.uni-pa-n1 {\n padding: -2px;\n}\n.uni-pt-2 {\n padding-top: 4px;\n}\n.uni-pt-n2 {\n padding-top: -4px;\n}\n.uni-pr-2 {\n padding-right: 4px;\n}\n.uni-pr-n2 {\n padding-right: -4px;\n}\n.uni-pb-2 {\n padding-bottom: 4px;\n}\n.uni-pb-n2 {\n padding-bottom: -4px;\n}\n.uni-pl-2 {\n padding-left: 4px;\n}\n.uni-pl-n2 {\n padding-left: -4px;\n}\n.uni-px-2 {\n padding-left: 4px;\n padding-right: 4px;\n}\n.uni-px-n2 {\n padding-left: -4px;\n padding-right: -4px;\n}\n.uni-py-2 {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.uni-py-n2 {\n padding-top: -4px;\n padding-bottom: -4px;\n}\n.uni-pa-2 {\n padding: 4px;\n}\n.uni-pa-n2 {\n padding: -4px;\n}\n.uni-pt-3 {\n padding-top: 6px;\n}\n.uni-pt-n3 {\n padding-top: -6px;\n}\n.uni-pr-3 {\n padding-right: 6px;\n}\n.uni-pr-n3 {\n padding-right: -6px;\n}\n.uni-pb-3 {\n padding-bottom: 6px;\n}\n.uni-pb-n3 {\n padding-bottom: -6px;\n}\n.uni-pl-3 {\n padding-left: 6px;\n}\n.uni-pl-n3 {\n padding-left: -6px;\n}\n.uni-px-3 {\n padding-left: 6px;\n padding-right: 6px;\n}\n.uni-px-n3 {\n padding-left: -6px;\n padding-right: -6px;\n}\n.uni-py-3 {\n padding-top: 6px;\n padding-bottom: 6px;\n}\n.uni-py-n3 {\n padding-top: -6px;\n padding-bottom: -6px;\n}\n.uni-pa-3 {\n padding: 6px;\n}\n.uni-pa-n3 {\n padding: -6px;\n}\n.uni-pt-4 {\n padding-top: 8px;\n}\n.uni-pt-n4 {\n padding-top: -8px;\n}\n.uni-pr-4 {\n padding-right: 8px;\n}\n.uni-pr-n4 {\n padding-right: -8px;\n}\n.uni-pb-4 {\n padding-bottom: 8px;\n}\n.uni-pb-n4 {\n padding-bottom: -8px;\n}\n.uni-pl-4 {\n padding-left: 8px;\n}\n.uni-pl-n4 {\n padding-left: -8px;\n}\n.uni-px-4 {\n padding-left: 8px;\n padding-right: 8px;\n}\n.uni-px-n4 {\n padding-left: -8px;\n padding-right: -8px;\n}\n.uni-py-4 {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.uni-py-n4 {\n padding-top: -8px;\n padding-bottom: -8px;\n}\n.uni-pa-4 {\n padding: 8px;\n}\n.uni-pa-n4 {\n padding: -8px;\n}\n.uni-pt-5 {\n padding-top: 10px;\n}\n.uni-pt-n5 {\n padding-top: -10px;\n}\n.uni-pr-5 {\n padding-right: 10px;\n}\n.uni-pr-n5 {\n padding-right: -10px;\n}\n.uni-pb-5 {\n padding-bottom: 10px;\n}\n.uni-pb-n5 {\n padding-bottom: -10px;\n}\n.uni-pl-5 {\n padding-left: 10px;\n}\n.uni-pl-n5 {\n padding-left: -10px;\n}\n.uni-px-5 {\n padding-left: 10px;\n padding-right: 10px;\n}\n.uni-px-n5 {\n padding-left: -10px;\n padding-right: -10px;\n}\n.uni-py-5 {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.uni-py-n5 {\n padding-top: -10px;\n padding-bottom: -10px;\n}\n.uni-pa-5 {\n padding: 10px;\n}\n.uni-pa-n5 {\n padding: -10px;\n}\n.uni-pt-6 {\n padding-top: 12px;\n}\n.uni-pt-n6 {\n padding-top: -12px;\n}\n.uni-pr-6 {\n padding-right: 12px;\n}\n.uni-pr-n6 {\n padding-right: -12px;\n}\n.uni-pb-6 {\n padding-bottom: 12px;\n}\n.uni-pb-n6 {\n padding-bottom: -12px;\n}\n.uni-pl-6 {\n padding-left: 12px;\n}\n.uni-pl-n6 {\n padding-left: -12px;\n}\n.uni-px-6 {\n padding-left: 12px;\n padding-right: 12px;\n}\n.uni-px-n6 {\n padding-left: -12px;\n padding-right: -12px;\n}\n.uni-py-6 {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.uni-py-n6 {\n padding-top: -12px;\n padding-bottom: -12px;\n}\n.uni-pa-6 {\n padding: 12px;\n}\n.uni-pa-n6 {\n padding: -12px;\n}\n.uni-pt-7 {\n padding-top: 14px;\n}\n.uni-pt-n7 {\n padding-top: -14px;\n}\n.uni-pr-7 {\n padding-right: 14px;\n}\n.uni-pr-n7 {\n padding-right: -14px;\n}\n.uni-pb-7 {\n padding-bottom: 14px;\n}\n.uni-pb-n7 {\n padding-bottom: -14px;\n}\n.uni-pl-7 {\n padding-left: 14px;\n}\n.uni-pl-n7 {\n padding-left: -14px;\n}\n.uni-px-7 {\n padding-left: 14px;\n padding-right: 14px;\n}\n.uni-px-n7 {\n padding-left: -14px;\n padding-right: -14px;\n}\n.uni-py-7 {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n.uni-py-n7 {\n padding-top: -14px;\n padding-bottom: -14px;\n}\n.uni-pa-7 {\n padding: 14px;\n}\n.uni-pa-n7 {\n padding: -14px;\n}\n.uni-pt-8 {\n padding-top: 16px;\n}\n.uni-pt-n8 {\n padding-top: -16px;\n}\n.uni-pr-8 {\n padding-right: 16px;\n}\n.uni-pr-n8 {\n padding-right: -16px;\n}\n.uni-pb-8 {\n padding-bottom: 16px;\n}\n.uni-pb-n8 {\n padding-bottom: -16px;\n}\n.uni-pl-8 {\n padding-left: 16px;\n}\n.uni-pl-n8 {\n padding-left: -16px;\n}\n.uni-px-8 {\n padding-left: 16px;\n padding-right: 16px;\n}\n.uni-px-n8 {\n padding-left: -16px;\n padding-right: -16px;\n}\n.uni-py-8 {\n padding-top: 16px;\n padding-bottom: 16px;\n}\n.uni-py-n8 {\n padding-top: -16px;\n padding-bottom: -16px;\n}\n.uni-pa-8 {\n padding: 16px;\n}\n.uni-pa-n8 {\n padding: -16px;\n}\n.uni-pt-9 {\n padding-top: 18px;\n}\n.uni-pt-n9 {\n padding-top: -18px;\n}\n.uni-pr-9 {\n padding-right: 18px;\n}\n.uni-pr-n9 {\n padding-right: -18px;\n}\n.uni-pb-9 {\n padding-bottom: 18px;\n}\n.uni-pb-n9 {\n padding-bottom: -18px;\n}\n.uni-pl-9 {\n padding-left: 18px;\n}\n.uni-pl-n9 {\n padding-left: -18px;\n}\n.uni-px-9 {\n padding-left: 18px;\n padding-right: 18px;\n}\n.uni-px-n9 {\n padding-left: -18px;\n padding-right: -18px;\n}\n.uni-py-9 {\n padding-top: 18px;\n padding-bottom: 18px;\n}\n.uni-py-n9 {\n padding-top: -18px;\n padding-bottom: -18px;\n}\n.uni-pa-9 {\n padding: 18px;\n}\n.uni-pa-n9 {\n padding: -18px;\n}\n.uni-pt-10 {\n padding-top: 20px;\n}\n.uni-pt-n10 {\n padding-top: -20px;\n}\n.uni-pr-10 {\n padding-right: 20px;\n}\n.uni-pr-n10 {\n padding-right: -20px;\n}\n.uni-pb-10 {\n padding-bottom: 20px;\n}\n.uni-pb-n10 {\n padding-bottom: -20px;\n}\n.uni-pl-10 {\n padding-left: 20px;\n}\n.uni-pl-n10 {\n padding-left: -20px;\n}\n.uni-px-10 {\n padding-left: 20px;\n padding-right: 20px;\n}\n.uni-px-n10 {\n padding-left: -20px;\n padding-right: -20px;\n}\n.uni-py-10 {\n padding-top: 20px;\n padding-bottom: 20px;\n}\n.uni-py-n10 {\n padding-top: -20px;\n padding-bottom: -20px;\n}\n.uni-pa-10 {\n padding: 20px;\n}\n.uni-pa-n10 {\n padding: -20px;\n}\n.uni-pt-11 {\n padding-top: 22px;\n}\n.uni-pt-n11 {\n padding-top: -22px;\n}\n.uni-pr-11 {\n padding-right: 22px;\n}\n.uni-pr-n11 {\n padding-right: -22px;\n}\n.uni-pb-11 {\n padding-bottom: 22px;\n}\n.uni-pb-n11 {\n padding-bottom: -22px;\n}\n.uni-pl-11 {\n padding-left: 22px;\n}\n.uni-pl-n11 {\n padding-left: -22px;\n}\n.uni-px-11 {\n padding-left: 22px;\n padding-right: 22px;\n}\n.uni-px-n11 {\n padding-left: -22px;\n padding-right: -22px;\n}\n.uni-py-11 {\n padding-top: 22px;\n padding-bottom: 22px;\n}\n.uni-py-n11 {\n padding-top: -22px;\n padding-bottom: -22px;\n}\n.uni-pa-11 {\n padding: 22px;\n}\n.uni-pa-n11 {\n padding: -22px;\n}\n.uni-pt-12 {\n padding-top: 24px;\n}\n.uni-pt-n12 {\n padding-top: -24px;\n}\n.uni-pr-12 {\n padding-right: 24px;\n}\n.uni-pr-n12 {\n padding-right: -24px;\n}\n.uni-pb-12 {\n padding-bottom: 24px;\n}\n.uni-pb-n12 {\n padding-bottom: -24px;\n}\n.uni-pl-12 {\n padding-left: 24px;\n}\n.uni-pl-n12 {\n padding-left: -24px;\n}\n.uni-px-12 {\n padding-left: 24px;\n padding-right: 24px;\n}\n.uni-px-n12 {\n padding-left: -24px;\n padding-right: -24px;\n}\n.uni-py-12 {\n padding-top: 24px;\n padding-bottom: 24px;\n}\n.uni-py-n12 {\n padding-top: -24px;\n padding-bottom: -24px;\n}\n.uni-pa-12 {\n padding: 24px;\n}\n.uni-pa-n12 {\n padding: -24px;\n}\n.uni-pt-13 {\n padding-top: 26px;\n}\n.uni-pt-n13 {\n padding-top: -26px;\n}\n.uni-pr-13 {\n padding-right: 26px;\n}\n.uni-pr-n13 {\n padding-right: -26px;\n}\n.uni-pb-13 {\n padding-bottom: 26px;\n}\n.uni-pb-n13 {\n padding-bottom: -26px;\n}\n.uni-pl-13 {\n padding-left: 26px;\n}\n.uni-pl-n13 {\n padding-left: -26px;\n}\n.uni-px-13 {\n padding-left: 26px;\n padding-right: 26px;\n}\n.uni-px-n13 {\n padding-left: -26px;\n padding-right: -26px;\n}\n.uni-py-13 {\n padding-top: 26px;\n padding-bottom: 26px;\n}\n.uni-py-n13 {\n padding-top: -26px;\n padding-bottom: -26px;\n}\n.uni-pa-13 {\n padding: 26px;\n}\n.uni-pa-n13 {\n padding: -26px;\n}\n.uni-pt-14 {\n padding-top: 28px;\n}\n.uni-pt-n14 {\n padding-top: -28px;\n}\n.uni-pr-14 {\n padding-right: 28px;\n}\n.uni-pr-n14 {\n padding-right: -28px;\n}\n.uni-pb-14 {\n padding-bottom: 28px;\n}\n.uni-pb-n14 {\n padding-bottom: -28px;\n}\n.uni-pl-14 {\n padding-left: 28px;\n}\n.uni-pl-n14 {\n padding-left: -28px;\n}\n.uni-px-14 {\n padding-left: 28px;\n padding-right: 28px;\n}\n.uni-px-n14 {\n padding-left: -28px;\n padding-right: -28px;\n}\n.uni-py-14 {\n padding-top: 28px;\n padding-bottom: 28px;\n}\n.uni-py-n14 {\n padding-top: -28px;\n padding-bottom: -28px;\n}\n.uni-pa-14 {\n padding: 28px;\n}\n.uni-pa-n14 {\n padding: -28px;\n}\n.uni-pt-15 {\n padding-top: 30px;\n}\n.uni-pt-n15 {\n padding-top: -30px;\n}\n.uni-pr-15 {\n padding-right: 30px;\n}\n.uni-pr-n15 {\n padding-right: -30px;\n}\n.uni-pb-15 {\n padding-bottom: 30px;\n}\n.uni-pb-n15 {\n padding-bottom: -30px;\n}\n.uni-pl-15 {\n padding-left: 30px;\n}\n.uni-pl-n15 {\n padding-left: -30px;\n}\n.uni-px-15 {\n padding-left: 30px;\n padding-right: 30px;\n}\n.uni-px-n15 {\n padding-left: -30px;\n padding-right: -30px;\n}\n.uni-py-15 {\n padding-top: 30px;\n padding-bottom: 30px;\n}\n.uni-py-n15 {\n padding-top: -30px;\n padding-bottom: -30px;\n}\n.uni-pa-15 {\n padding: 30px;\n}\n.uni-pa-n15 {\n padding: -30px;\n}\n.uni-pt-16 {\n padding-top: 32px;\n}\n.uni-pt-n16 {\n padding-top: -32px;\n}\n.uni-pr-16 {\n padding-right: 32px;\n}\n.uni-pr-n16 {\n padding-right: -32px;\n}\n.uni-pb-16 {\n padding-bottom: 32px;\n}\n.uni-pb-n16 {\n padding-bottom: -32px;\n}\n.uni-pl-16 {\n padding-left: 32px;\n}\n.uni-pl-n16 {\n padding-left: -32px;\n}\n.uni-px-16 {\n padding-left: 32px;\n padding-right: 32px;\n}\n.uni-px-n16 {\n padding-left: -32px;\n padding-right: -32px;\n}\n.uni-py-16 {\n padding-top: 32px;\n padding-bottom: 32px;\n}\n.uni-py-n16 {\n padding-top: -32px;\n padding-bottom: -32px;\n}\n.uni-pa-16 {\n padding: 32px;\n}\n.uni-pa-n16 {\n padding: -32px;\n}\n.uni-radius-0 {\n border-radius: 0;\n}\n.uni-radius {\n border-radius: 5px;\n}\n.uni-radius-lg {\n border-radius: 10px;\n}\n.uni-radius-xl {\n border-radius: 30px;\n}\n.uni-radius-pill {\n border-radius: 9999px;\n}\n.uni-radius-circle {\n border-radius: 50%;\n}\n.uni-radius-t-0 {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n.uni-radius-t {\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n}\n.uni-radius-t-lg {\n border-top-left-radius: 10px;\n border-top-right-radius: 10px;\n}\n.uni-radius-t-xl {\n border-top-left-radius: 30px;\n border-top-right-radius: 30px;\n}\n.uni-radius-t-pill {\n border-top-left-radius: 9999px;\n border-top-right-radius: 9999px;\n}\n.uni-radius-t-circle {\n border-top-left-radius: 50%;\n border-top-right-radius: 50%;\n}\n.uni-radius-r-0 {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.uni-radius-r {\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.uni-radius-r-lg {\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px;\n}\n.uni-radius-r-xl {\n border-top-right-radius: 30px;\n border-bottom-right-radius: 30px;\n}\n.uni-radius-r-pill {\n border-top-right-radius: 9999px;\n border-bottom-right-radius: 9999px;\n}\n.uni-radius-r-circle {\n border-top-right-radius: 50%;\n border-bottom-right-radius: 50%;\n}\n.uni-radius-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n.uni-radius-b {\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n}\n.uni-radius-b-lg {\n border-bottom-left-radius: 10px;\n border-bottom-right-radius: 10px;\n}\n.uni-radius-b-xl {\n border-bottom-left-radius: 30px;\n border-bottom-right-radius: 30px;\n}\n.uni-radius-b-pill {\n border-bottom-left-radius: 9999px;\n border-bottom-right-radius: 9999px;\n}\n.uni-radius-b-circle {\n border-bottom-left-radius: 50%;\n border-bottom-right-radius: 50%;\n}\n.uni-radius-l-0 {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.uni-radius-l {\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n}\n.uni-radius-l-lg {\n border-top-left-radius: 10px;\n border-bottom-left-radius: 10px;\n}\n.uni-radius-l-xl {\n border-top-left-radius: 30px;\n border-bottom-left-radius: 30px;\n}\n.uni-radius-l-pill {\n border-top-left-radius: 9999px;\n border-bottom-left-radius: 9999px;\n}\n.uni-radius-l-circle {\n border-top-left-radius: 50%;\n border-bottom-left-radius: 50%;\n}\n.uni-radius-tl-0 {\n border-top-left-radius: 0;\n}\n.uni-radius-tl {\n border-top-left-radius: 5px;\n}\n.uni-radius-tl-lg {\n border-top-left-radius: 10px;\n}\n.uni-radius-tl-xl {\n border-top-left-radius: 30px;\n}\n.uni-radius-tl-pill {\n border-top-left-radius: 9999px;\n}\n.uni-radius-tl-circle {\n border-top-left-radius: 50%;\n}\n.uni-radius-tr-0 {\n border-top-right-radius: 0;\n}\n.uni-radius-tr {\n border-top-right-radius: 5px;\n}\n.uni-radius-tr-lg {\n border-top-right-radius: 10px;\n}\n.uni-radius-tr-xl {\n border-top-right-radius: 30px;\n}\n.uni-radius-tr-pill {\n border-top-right-radius: 9999px;\n}\n.uni-radius-tr-circle {\n border-top-right-radius: 50%;\n}\n.uni-radius-br-0 {\n border-bottom-right-radius: 0;\n}\n.uni-radius-br {\n border-bottom-right-radius: 5px;\n}\n.uni-radius-br-lg {\n border-bottom-right-radius: 10px;\n}\n.uni-radius-br-xl {\n border-bottom-right-radius: 30px;\n}\n.uni-radius-br-pill {\n border-bottom-right-radius: 9999px;\n}\n.uni-radius-br-circle {\n border-bottom-right-radius: 50%;\n}\n.uni-radius-bl-0 {\n border-bottom-left-radius: 0;\n}\n.uni-radius-bl {\n border-bottom-left-radius: 5px;\n}\n.uni-radius-bl-lg {\n border-bottom-left-radius: 10px;\n}\n.uni-radius-bl-xl {\n border-bottom-left-radius: 30px;\n}\n.uni-radius-bl-pill {\n border-bottom-left-radius: 9999px;\n}\n.uni-radius-bl-circle {\n border-bottom-left-radius: 50%;\n}\n.uni-h1 {\n font-size: 32px;\n font-weight: 300;\n line-height: 50px;\n}\n.uni-h2 {\n font-size: 28px;\n font-weight: 300;\n line-height: 40px;\n}\n.uni-h3 {\n font-size: 24px;\n font-weight: 400;\n line-height: 32px;\n}\n.uni-h4 {\n font-size: 20px;\n font-weight: 400;\n line-height: 30px;\n}\n.uni-h5 {\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n}\n.uni-h6 {\n font-size: 14px;\n font-weight: 500;\n line-height: 18px;\n}\n.uni-subtitle {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n}\n.uni-body {\n font-size: 14px;\n font-weight: 400;\n line-height: 22px;\n}\n.uni-caption {\n font-size: 12px;\n font-weight: 400;\n line-height: 20px;\n}\n.uni-btn {\n margin: 5px;\n color: #393939;\n border: 1px solid #ccc;\n font-size: 16px;\n font-weight: 200;\n background-color: #F9F9F9;\n overflow: visible;\n}\n.uni-btn::after {\n border: none;\n}\n.uni-btn:not([type]), .uni-btn[type=default] {\n color: #999;\n}\n.uni-btn:not([type])[loading], .uni-btn[type=default][loading] {\n background: none;\n}\n.uni-btn:not([type])[loading]::before, .uni-btn[type=default][loading]::before {\n margin-right: 5px;\n}\n.uni-btn:not([type])[disabled], .uni-btn[type=default][disabled] {\n color: #d6d6d6;\n}\n.uni-btn:not([type])[disabled], .uni-btn:not([type])[disabled][loading], .uni-btn:not([type])[disabled]:active, .uni-btn[type=default][disabled], .uni-btn[type=default][disabled][loading], .uni-btn[type=default][disabled]:active {\n color: #d6d6d6;\n background-color: #fafafa;\n border-color: #f0f0f0;\n}\n.uni-btn:not([type])[plain], .uni-btn[type=default][plain] {\n color: #999;\n background: none;\n border-color: #F0F0F0;\n}\n.uni-btn:not([type])[plain]:not([hover-class]):active, .uni-btn[type=default][plain]:not([hover-class]):active {\n background: none;\n color: #cccccc;\n border-color: #e6e6e6;\n outline: none;\n}\n.uni-btn:not([type])[plain][disabled], .uni-btn:not([type])[plain][disabled][loading], .uni-btn:not([type])[plain][disabled]:active, .uni-btn[type=default][plain][disabled], .uni-btn[type=default][plain][disabled][loading], .uni-btn[type=default][plain][disabled]:active {\n background: none;\n color: #d6d6d6;\n border-color: #f0f0f0;\n}\n.uni-btn:not([hover-class]):active {\n color: gray;\n}\n.uni-btn[size=mini] {\n font-size: 16px;\n font-weight: 200;\n border-radius: 8px;\n}\n.uni-btn.uni-btn-small {\n font-size: 14px;\n}\n.uni-btn.uni-btn-mini {\n font-size: 12px;\n}\n.uni-btn.uni-btn-radius {\n border-radius: 999px;\n}\n.uni-btn[type=primary] {\n color: #fff;\n background-color: #2979ff;\n border-color: #266feb;\n}\n.uni-btn[type=primary]:not([hover-class]):active {\n background: #256de6;\n border-color: #2161cc;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=primary][loading] {\n color: #fff;\n background-color: #2979ff;\n border-color: #266feb;\n}\n.uni-btn[type=primary][loading]:not([hover-class]):active {\n background: #256de6;\n border-color: #2161cc;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=primary][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=primary][disabled], .uni-btn[type=primary][disabled][loading], .uni-btn[type=primary][disabled]:not([hover-class]):active {\n color: #fff;\n border-color: #80adfa;\n background-color: #94bcff;\n}\n.uni-btn[type=primary][plain] {\n color: #2979ff;\n background-color: #eaf2ff;\n border-color: #bfd7ff;\n}\n.uni-btn[type=primary][plain]:not([hover-class]):active {\n background: #d4e4ff;\n color: #2979ff;\n outline: none;\n border-color: #94bcff;\n}\n.uni-btn[type=primary][plain][loading] {\n color: #2979ff;\n background-color: #eaf2ff;\n border-color: #bfd7ff;\n}\n.uni-btn[type=primary][plain][loading]:not([hover-class]):active {\n background: #d4e4ff;\n color: #2979ff;\n outline: none;\n border-color: #94bcff;\n}\n.uni-btn[type=primary][plain][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=primary][plain][disabled], .uni-btn[type=primary][plain][disabled]:active {\n color: #7fafff;\n background-color: #eaf2ff;\n border-color: #d4e4ff;\n}\n.uni-btn[type=success] {\n color: #fff;\n background-color: #18bc37;\n border-color: #16ad33;\n}\n.uni-btn[type=success]:not([hover-class]):active {\n background: #16a932;\n border-color: #13962c;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=success][loading] {\n color: #fff;\n background-color: #18bc37;\n border-color: #16ad33;\n}\n.uni-btn[type=success][loading]:not([hover-class]):active {\n background: #16a932;\n border-color: #13962c;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=success][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=success][disabled], .uni-btn[type=success][disabled][loading], .uni-btn[type=success][disabled]:not([hover-class]):active {\n color: #fff;\n border-color: #89c794;\n background-color: #8cde9b;\n}\n.uni-btn[type=success][plain] {\n color: #18bc37;\n background-color: #e8f8eb;\n border-color: #baebc3;\n}\n.uni-btn[type=success][plain]:not([hover-class]):active {\n background: #d1f2d7;\n color: #18bc37;\n outline: none;\n border-color: #8cde9b;\n}\n.uni-btn[type=success][plain][loading] {\n color: #18bc37;\n background-color: #e8f8eb;\n border-color: #baebc3;\n}\n.uni-btn[type=success][plain][loading]:not([hover-class]):active {\n background: #d1f2d7;\n color: #18bc37;\n outline: none;\n border-color: #8cde9b;\n}\n.uni-btn[type=success][plain][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=success][plain][disabled], .uni-btn[type=success][plain][disabled]:active {\n color: #74d787;\n background-color: #e8f8eb;\n border-color: #d1f2d7;\n}\n.uni-btn[type=error] {\n color: #fff;\n background-color: #e43d33;\n border-color: #d2382f;\n}\n.uni-btn[type=error]:not([hover-class]):active {\n background: #cd372e;\n border-color: #b63129;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=error][loading] {\n color: #fff;\n background-color: #e43d33;\n border-color: #d2382f;\n}\n.uni-btn[type=error][loading]:not([hover-class]):active {\n background: #cd372e;\n border-color: #b63129;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=error][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=error][disabled], .uni-btn[type=error][disabled][loading], .uni-btn[type=error][disabled]:not([hover-class]):active {\n color: #fff;\n border-color: #e4928d;\n background-color: #f29e99;\n}\n.uni-btn[type=error][plain] {\n color: #e43d33;\n background-color: #fceceb;\n border-color: #f7c5c2;\n}\n.uni-btn[type=error][plain]:not([hover-class]):active {\n background: #fad8d6;\n color: #e43d33;\n outline: none;\n border-color: #f29e99;\n}\n.uni-btn[type=error][plain][loading] {\n color: #e43d33;\n background-color: #fceceb;\n border-color: #f7c5c2;\n}\n.uni-btn[type=error][plain][loading]:not([hover-class]):active {\n background: #fad8d6;\n color: #e43d33;\n outline: none;\n border-color: #f29e99;\n}\n.uni-btn[type=error][plain][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=error][plain][disabled], .uni-btn[type=error][plain][disabled]:active {\n color: #ef8b85;\n background-color: #fceceb;\n border-color: #fad8d6;\n}\n.uni-btn[type=warning] {\n color: #fff;\n background-color: #f3a73f;\n border-color: #e09a3a;\n}\n.uni-btn[type=warning]:not([hover-class]):active {\n background: #db9639;\n border-color: #c28632;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=warning][loading] {\n color: #fff;\n background-color: #f3a73f;\n border-color: #e09a3a;\n}\n.uni-btn[type=warning][loading]:not([hover-class]):active {\n background: #db9639;\n border-color: #c28632;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=warning][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=warning][disabled], .uni-btn[type=warning][disabled][loading], .uni-btn[type=warning][disabled]:not([hover-class]):active {\n color: #fff;\n border-color: #f8c887;\n background-color: #f9d39f;\n}\n.uni-btn[type=warning][plain] {\n color: #f3a73f;\n background-color: #fef6ec;\n border-color: #fbe5c5;\n}\n.uni-btn[type=warning][plain]:not([hover-class]):active {\n background: #fdedd9;\n color: #f3a73f;\n outline: none;\n border-color: #f9d39f;\n}\n.uni-btn[type=warning][plain][loading] {\n color: #f3a73f;\n background-color: #fef6ec;\n border-color: #fbe5c5;\n}\n.uni-btn[type=warning][plain][loading]:not([hover-class]):active {\n background: #fdedd9;\n color: #f3a73f;\n outline: none;\n border-color: #f9d39f;\n}\n.uni-btn[type=warning][plain][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=warning][plain][disabled], .uni-btn[type=warning][plain][disabled]:active {\n color: #f8ca8c;\n background-color: #fef6ec;\n border-color: #fdedd9;\n}\n.uni-btn[type=info] {\n color: #fff;\n background-color: #8f939c;\n border-color: #848790;\n}\n.uni-btn[type=info]:not([hover-class]):active {\n background: #81848c;\n border-color: #72767d;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=info][loading] {\n color: #fff;\n background-color: #8f939c;\n border-color: #848790;\n}\n.uni-btn[type=info][loading]:not([hover-class]):active {\n background: #81848c;\n border-color: #72767d;\n color: #fff;\n outline: none;\n}\n.uni-btn[type=info][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=info][disabled], .uni-btn[type=info][disabled][loading], .uni-btn[type=info][disabled]:not([hover-class]):active {\n color: #fff;\n border-color: #babcc1;\n background-color: #c7c9ce;\n}\n.uni-btn[type=info][plain] {\n color: #8f939c;\n background-color: #f4f4f5;\n border-color: #dddfe1;\n}\n.uni-btn[type=info][plain]:not([hover-class]):active {\n background: #e9e9eb;\n color: #8f939c;\n outline: none;\n border-color: #c7c9ce;\n}\n.uni-btn[type=info][plain][loading] {\n color: #8f939c;\n background-color: #f4f4f5;\n border-color: #dddfe1;\n}\n.uni-btn[type=info][plain][loading]:not([hover-class]):active {\n background: #e9e9eb;\n color: #8f939c;\n outline: none;\n border-color: #c7c9ce;\n}\n.uni-btn[type=info][plain][loading]::before {\n margin-right: 5px;\n}\n.uni-btn[type=info][plain][disabled], .uni-btn[type=info][plain][disabled]:active {\n color: #bcbec4;\n background-color: #f4f4f5;\n border-color: #e9e9eb;\n}\nbody {\n background-color: #fff;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ }),
- /* 70 */
- /*!*****************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/static/customicons.ttf ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
- module.exports = "/static/customicons.ttf";
- /***/ }),
- /* 71 */
- /*!******************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/sub/config.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- // 全局样式
- gStyle: {
- // 玩家定位标记点
- marker: {
- default: {
- radius: 8,
- // 圆的半径 px
- stroke: true,
- // 是否描边
- color: 'blue',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 1.0,
- // 描边不透明度
- fill: true,
- // 是否填充
- fillColor: 'blue',
- // 填充颜色
- fillOpacity: 1.0 // 填充不透明度
- },
- focus: {
- radius: 8,
- stroke: true,
- // 是否描边
- color: 'red',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 1.0,
- // 描边不透明度
- fill: true,
- // 是否填充
- fillColor: 'red',
- // 填充颜色
- fillOpacity: 1.0 // 填充不透明度
- },
- tooltip: {
- permanent: true,
- offset: [0, -10],
- direction: 'top',
- interactive: true
- }
- },
- // 玩家运动轨迹
- trail: {
- default: {
- smoothFactor: 0.5,
- // 值越大线条越平滑,值越小线条越精确
- stroke: true,
- // 是否描边
- color: 'blue',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 1.0,
- // 描边不透明度
- fill: false,
- // 是否填充
- fillColor: 'blue',
- // 填充颜色
- fillOpacity: 1.0 // 填充不透明度
- },
- focus: {
- smoothFactor: 0.5,
- // 值越大线条越平滑,值越小线条越精确
- stroke: true,
- // 是否描边
- color: 'red',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 1.0,
- // 描边不透明度
- fill: false,
- // 是否填充
- fillColor: 'red',
- // 填充颜色
- fillOpacity: 1.0 // 填充不透明度
- }
- },
- // 检查点
- checkPoint: {
- default: {
- radius: 15,
- color: '#ff00ff',
- weight: 2,
- fill: false,
- interactive: true
- },
- focus: {
- radius: 15,
- color: '#ff00ff',
- weight: 2,
- fill: false,
- interactive: true
- },
- tooltip: {
- permanent: true,
- offset: [0, -15],
- direction: 'top',
- interactive: true
- }
- },
- // 检查点组成的路径
- checkPointPath: {
- default: {
- dashArray: '8 12',
- // dashOffset: '1',
- stroke: true,
- // 是否描边
- color: '#ff00ff',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 0.6,
- // 描边不透明度
- fill: false,
- // 是否填充
- interactive: true
- },
- focus: {
- stroke: true,
- // 是否描边
- color: '#ff00ff',
- // 描边颜色
- weight: 3,
- // 描边宽度 px
- opacity: 1.0,
- // 描边不透明度
- fill: false,
- // 是否填充
- interactive: true
- }
- }
- }
- };
- exports.default = _default;
- /***/ }),
- /* 72 */
- /*!*****************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/sub/patch.js ***!
- \*****************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- // leaflet 补丁
- // author: wzx
- // version: 1.0
- var _default = {
- run: function run() {
- this.patchIconPath();
- this.patchTileWhiteLine();
- },
- // 解决leaflet默认图标的路径错误问题
- patchIconPath: function patchIconPath() {
- delete L.Icon.Default.prototype._getIconUrl;
- L.Icon.Default.mergeOptions({
- iconRetinaUrl: __webpack_require__(/*! leaflet/dist/images/marker-icon-2x.png */ 28),
- iconUrl: __webpack_require__(/*! leaflet/dist/images/marker-icon.png */ 19),
- shadowUrl: __webpack_require__(/*! leaflet/dist/images/marker-shadow.png */ 29)
- });
- },
- // 解决leaflet瓦片显示有白线问题
- patchTileWhiteLine: function patchTileWhiteLine() {
- (function () {
- var originalInitTile = L.GridLayer.prototype._initTile;
- L.GridLayer.include({
- _initTile: function _initTile(tile) {
- originalInitTile.call(this, tile);
- var tileSize = this.getTileSize();
- tile.style.width = tileSize.x + 1 + 'px';
- tile.style.height = tileSize.y + 1 + 'px';
- }
- });
- })();
- }
- };
- exports.default = _default;
- /***/ }),
- /* 73 */
- /*!******************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/sub/player.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(__f__) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 8);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _config = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/config */ 71));
- var _global = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/global */ 74));
- // import L from 'leaflet'
- var interval_creatCircleMarker = null;
- var interval_showTrail = null;
- var _default = {
- init: function init() {},
- // 即将开始地图缩放时触发本方法
- onZoomStart: function onZoomStart(e) {},
- // 地图发生缩放时触发本方法
- onZoom: function onZoom(e) {},
- // 地图缩放结束时触发本方法
- onZoomEnd: function onZoomEnd(e) {},
- drawAllPlayers: function drawAllPlayers() {
- for (var i = 0; i < _global.default.players.length; i++) {
- this.drawOnePlayer(_global.default.players[i].id);
- // this.drawOnePlayer2(global.players[i].id)
- }
- },
- drawOnePlayer2: function drawOnePlayer2(playerId) {
- var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var that = this;
- var player = _global.default.getPlayerById(playerId);
- var player_position = _global.default.getPlayerPositionById(playerId);
- // console.log(player, player_position)
- if (player == null || player_position == null) {
- __f__("warn", '[drawOnePlayer2] 关键数据为空', player, player_position, " at utils/map/sub/player.js:32");
- return;
- }
- // 在地图上创建 marker 并存储用户信息
- var playerIcon = L.icon({
- iconUrl: 'static/image/marker-icon.png',
- iconSize: [20, 32.8],
- iconAnchor: [10, 30]
- });
- var marker = L.marker([player_position.lat, player_position.lng], {
- icon: playerIcon
- }).addTo(_global.default.map)
- // .bindPopup("Hello, I'm a Marker!<br><img src='my-image.png' width='100'>").openPopup();
- .bindTooltip("".concat(player.nickName, " ").concat(player.phone), {
- permanent: true,
- offset: [0, -30],
- direction: 'top',
- interactive: true
- });
- marker.type = 'marker';
- marker.playerId = player.id; // 存储用户信息
- marker.animate = animate;
- marker.on('click', function (e) {
- var playerId = e.target.playerId; // 获取点击的 marker 的用户信息
- __f__("log", "Selected player ID: " + playerId, " at utils/map/sub/player.js:58");
- that.handleFocusPlayer(playerId);
- });
- var tooltip = marker.getTooltip();
- tooltip.playerId = player.id; // 存储用户信息
- tooltip.animate = animate;
- tooltip.on('click', function (e) {
- // console.log("[Marker.Tooltip]", e)
- var playerId = e.target.playerId; // 获取点击的 marker 的用户信息
- __f__("log", "[Marker.Tooltip] Selected player ID: " + playerId, " at utils/map/sub/player.js:68");
- that.handleFocusPlayer(playerId);
- });
- player.marker = marker;
- },
- // 创建动画效果函数,用于实现circleMarker的大小和透明度随时间变化
- animateCircle: function animateCircle(circle, minRadius, maxRadius) {
- var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
- var radius = circle.getRadius();
- var opacity = circle.options.fillOpacity;
- var zoomType = 'zoomIn'; // zoomIn: 放大 zoomOut: 缩小
- interval_creatCircleMarker = setInterval(function () {
- if (!circle.animate) {
- clearInterval(interval_creatCircleMarker);
- return;
- }
- // 改变圆形半径和透明度
- if (zoomType == 'zoomIn') {
- radius = radius + step;
- // opacity = opacity - 0.1
- } else if (zoomType == 'zoomOut') {
- radius = radius - step;
- // opacity = opacity - 0.1
- }
- circle.setRadius(radius);
- circle.setStyle({
- fillOpacity: opacity
- });
- if (radius >= maxRadius) {
- zoomType = 'zoomOut';
- } else if (radius <= minRadius) {
- zoomType = 'zoomIn';
- }
- }, 50);
- },
- drawOnePlayer: function drawOnePlayer(playerId) {
- var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
- var that = this;
- var player = _global.default.getPlayerById(playerId);
- var player_position = _global.default.getPlayerPositionById(playerId);
- // console.log(player, player_position)
- if (player == null || player_position == null) {
- __f__("warn", '[drawOnePlayer] 关键数据为空', player, player_position, " at utils/map/sub/player.js:114");
- return;
- }
- var marker = L.circleMarker([player_position.lat, player_position.lng], _config.default.gStyle.marker.default).addTo(_global.default.map)
- // .bindPopup("Hello, I'm a Marker!<br><img src='my-image.png' width='100'>").openPopup()
- .bindTooltip("".concat(player.nickName, " ").concat(player.phone), _config.default.gStyle.marker.tooltip);
- marker.type = 'circleMarker';
- marker.playerId = player.id; // 存储用户信息
- marker.animate = animate;
- marker.on('click', function (e) {
- // console.log("[Marker]", e)
- var playerId = e.target.playerId; // 获取点击的 marker 的用户信息
- __f__("log", "[Marker] Selected player ID: " + playerId, " at utils/map/sub/player.js:129");
- that.handleFocusPlayer(playerId);
- });
- var tooltip = marker.getTooltip();
- tooltip.playerId = player.id; // 存储用户信息
- tooltip.animate = animate;
- tooltip.on('click', function (e) {
- // console.log("[Marker.Tooltip]", e)
- var playerId = e.target.playerId; // 获取点击的 marker 的用户信息
- __f__("log", "[Marker.Tooltip] Selected player ID: " + playerId, " at utils/map/sub/player.js:139");
- that.handleFocusPlayer(playerId);
- });
- if (animate) {
- this.animateCircle(marker, 3, 9, 0.5);
- }
- player.marker = marker;
- },
- handleFocusPlayer: function handleFocusPlayer(playerId) {
- __f__("log", "[handleFocusPlayer] 当前选中玩家ID: " + playerId, " at utils/map/sub/player.js:150");
- if (_global.default.focusPlayerId > 0) {
- // 先把之前选中的目标恢复成默认状态
- var unfocusPlayer = _global.default.getPlayerById(_global.default.focusPlayerId);
- if (unfocusPlayer.marker != null && unfocusPlayer.marker.type == 'circleMarker') {
- unfocusPlayer.marker.setStyle(_config.default.gStyle.marker.default);
- }
- if (unfocusPlayer.trail != null) {
- unfocusPlayer.trail.setStyle(_config.default.gStyle.trail.default);
- }
- }
- _global.default.focusPlayerId = playerId;
- var focusPlayer = _global.default.getPlayerById(_global.default.focusPlayerId);
- if (focusPlayer.marker != null && focusPlayer.marker.type == 'circleMarker') {
- focusPlayer.marker.setStyle(_config.default.gStyle.marker.focus);
- }
- if (focusPlayer.trail != null) {
- focusPlayer.trail.setStyle(_config.default.gStyle.trail.focus);
- }
- },
- drawAllTrails: function drawAllTrails(duration) {
- for (var i = 0; i < _global.default.players.length; i++) {
- this.drawOneTrail(_global.default.players[i].id, duration);
- }
- },
- // 显示运动轨迹 duration:毫秒
- drawOneTrail: function drawOneTrail(playerId, duration) {
- var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
- var player = _global.default.getPlayerById(playerId);
- var player_position = _global.default.getPlayerPositionById(playerId);
- var player_trail = _global.default.getPlayerTrailById(playerId);
- // console.log(player, player_position, player_trail)
- if (player == null || player_position == null) {
- __f__("warn", '[drawOneTrail] 关键数据为空', player, player_position, " at utils/map/sub/player.js:185");
- return;
- }
- if (player_trail == null) {
- // console.warn('[drawOneTrail] 轨迹数据为空', player_trail)
- // return
- player_trail = {
- id: playerId,
- points: [[player_position.lat, player_position.lng, new Date()]],
- pointsT: 0
- };
- _global.default.players_trail.push(player_trail);
- }
- if (player.marker != null) {
- player.marker.animate = animate;
- }
- var trail = L.polyline(player_trail.points, _config.default.gStyle.trail.default).addTo(_global.default.map);
- var lastpos = [player_position.lat, player_position.lng, new Date()];
- var point = null;
- var that = this;
- interval_showTrail = setInterval(function () {
- trail.setLatLngs(player_trail.points);
- point = that.getCurPos(lastpos, duration, player_trail);
- lastpos = point;
- trail.addLatLng(point.slice(0, 2));
- if (player.marker != null) {
- player.marker.setLatLng(point.slice(0, 2)); // 更新玩家的标记位置
- }
- // global.map.setView(point.slice(0, 2), 18); //地图中心跟踪最新位置
- }, 100);
- player.trail = trail;
- },
- // duration: 轨迹保存时间 为0表示保存全部轨迹
- getCurPos: function getCurPos(lastpos, duration, player_trail) {
- // console.log(lastpos, pointsT)
- var now = +new Date();
- if (duration > 0) {
- player_trail.points = player_trail.points.filter(function (point) {
- return now - point[2] < duration;
- });
- }
- var step = 0.00001;
- var t = 10;
- var point = null;
- if (player_trail.pointsT < 20 * t) point = [lastpos[0] + Math.random() * step, lastpos[1] + Math.random() * step, now];else if (player_trail.pointsT >= 20 * t && player_trail.pointsT < 40 * t) point = [lastpos[0] - Math.random() * step, lastpos[1] + Math.random() * step, now];else if (player_trail.pointsT >= 40 * t && player_trail.pointsT < 60 * t) point = [lastpos[0] - Math.random() * step, lastpos[1] - Math.random() * step, now];else if (player_trail.pointsT >= 60 * t && player_trail.pointsT < 80 * t) point = [lastpos[0] + Math.random() * step, lastpos[1] - Math.random() * step, now];
- // point = [point[0] - Math.random() * 0.00001, point[1] - Math.random() * 0.00001, now];
- player_trail.pointsT++;
- if (player_trail.pointsT >= 80 * t) player_trail.pointsT = 0;
- player_trail.points.push(point);
- return point;
- },
- free: function free() {
- clearInterval(interval_creatCircleMarker);
- clearInterval(interval_showTrail);
- }
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)["default"]))
- /***/ }),
- /* 74 */
- /*!******************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/sub/global.js ***!
- \******************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- map: null,
- map_layer: null,
- players: [],
- // 玩家信息
- players_position: [],
- // 玩家当前位置信息
- players_trail: [],
- // 玩家轨迹信息
- focusPlayerId: 0,
- // 当前选中的玩家ID
- checkPoints: [],
- // 检查点列表
- setPlayers: function setPlayers(data) {
- this.players = data; // 指针复制,是同一个对象
- },
- setPlayersPosition: function setPlayersPosition(data) {
- this.players_position = data; // 指针复制,是同一个对象
- },
- setPlayersTrail: function setPlayersTrail(data) {
- this.players_trail = data; // 指针复制,是同一个对象
- },
- setCheckPoints: function setCheckPoints(data) {
- this.checkPoints = data; // 指针复制,是同一个对象
- },
- getPlayerById: function getPlayerById(playerId) {
- if (!(playerId > 0)) return;
- var player = null;
- if (this.players != null && this.players.length > 0) {
- player = this.players.find(function (o) {
- return o.id === playerId;
- });
- }
- // console.log("[getPlayerById]", playerId, player)
- return player;
- },
- getPlayerPositionById: function getPlayerPositionById(playerId) {
- if (!(playerId > 0)) return;
- var player_position = null;
- if (this.players_position != null && this.players_position.length > 0) {
- player_position = this.players_position.find(function (o) {
- return o.id === playerId;
- });
- }
- // console.log("[getPlayerPositionById]", playerId, player_position)
- return player_position;
- },
- getPlayerTrailById: function getPlayerTrailById(playerId) {
- if (!(playerId > 0)) return;
- var player_trail = null;
- if (this.players_trail != null && this.players_trail.length > 0) {
- player_trail = this.players_trail.find(function (o) {
- return o.id === playerId;
- });
- }
- // console.log("[getPlayerTrailById]", playerId, player_trail)
- return player_trail;
- },
- getCheckPointById: function getCheckPointById(cpId) {
- if (!(cpId > 0)) return;
- var checkPoint = null;
- if (this.checkPoints != null && this.checkPoints.length > 0) {
- checkPoint = this.checkPoints.find(function (o) {
- return o.cp_id === cpId;
- });
- }
- // console.log("[getCheckPointById]", cpId, checkPoint)
- return checkPoint;
- }
- };
- exports.default = _default;
- /***/ }),
- /* 75 */
- /*!**********************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/utils/map/sub/checkPoint.js ***!
- \**********************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(__f__) {
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 8);
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _config = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/config */ 71));
- var _global = _interopRequireDefault(__webpack_require__(/*! @/utils/map/sub/global */ 74));
- // import L from 'leaflet'
- // import 'leaflet-clipper/dist/L.Clipper'
- // import * as turf from '@turf/turf'
- var _default = {
- cpMarkLayerGroup: null,
- // 检查点标记图层组
- cpMemoLayerGroup: null,
- // 检查点备注图层组
- cpPathLayerGroup: null,
- // 检查点路线图层组
- init: function init() {
- this.cpMarkLayerGroup = new L.layerGroup();
- this.cpMemoLayerGroup = new L.layerGroup();
- this.cpPathLayerGroup = new L.layerGroup();
- },
- // 即将开始地图缩放时触发本方法
- onZoomStart: function onZoomStart(e) {
- // this.cpMarkLayerGroup.remove()
- this.cpMemoLayerGroup.remove();
- this.cpPathLayerGroup.remove();
- },
- // 地图发生缩放时触发本方法
- onZoom: function onZoom(e) {},
- // 地图缩放结束时触发本方法
- onZoomEnd: function onZoomEnd(e) {
- this.drawPath();
- // this.cpMarkLayerGroup.addTo(global.map)
- this.cpMemoLayerGroup.addTo(_global.default.map);
- this.cpPathLayerGroup.addTo(_global.default.map);
- },
- drawAllCheckPoints: function drawAllCheckPoints() {
- if (this.cpMarkLayerGroup != null) this.cpMarkLayerGroup.clearLayers();
- if (this.cpMemoLayerGroup != null) this.cpMemoLayerGroup.clearLayers();
- for (var i = 0; i < _global.default.checkPoints.length; i++) {
- this.drawOneCheckPoint(_global.default.checkPoints[i].cp_id);
- }
- },
- drawOneCheckPoint: function drawOneCheckPoint(cpId) {
- // var that = this
- var checkPoint = _global.default.getCheckPointById(cpId);
- if (checkPoint == null) {
- __f__("warn", '[drawOneCheckPoint] 关键数据为空', checkPoint, " at utils/map/sub/checkPoint.js:48");
- return;
- }
- // var marker = L.circle([checkPoint.latitude, checkPoint.longitude], config.gStyle.checkPoint.default)
- var marker = L.circleMarker([checkPoint.latitude, checkPoint.longitude], _config.default.gStyle.checkPoint.default).addTo(this.cpMarkLayerGroup);
- // .addTo(global.map)
- // .bindPopup("Hello, I'm a Marker!<br><img src='my-image.png' width='100'>").openPopup();
- // .bindTooltip(`检查点:${checkPoint.serial_num}`, config.gStyle.checkPoint.tooltip)
- var myIcon = L.divIcon({
- html: '<p style="text-align: center; font-size: 16px; font-weight: bold; color: #ff00ff;">CP:' + checkPoint.serial_num + '</p>',
- className: '',
- iconSize: [60, 20],
- //宽高
- iconAnchor: [30, -15] //文字标注相对位置
- });
- var markerMemo = L.marker([checkPoint.latitude, checkPoint.longitude], {
- icon: myIcon
- }).addTo(this.cpMemoLayerGroup);
- this.cpMarkLayerGroup.addTo(_global.default.map);
- this.cpMemoLayerGroup.addTo(_global.default.map);
- checkPoint.marker = marker;
- checkPoint.markerMemo = markerMemo;
- },
- drawPath: function drawPath() {
- if (this.cpPathLayerGroup != null) {
- this.cpPathLayerGroup.clearLayers();
- }
- var latlngs = [];
- for (var i = 0; i < _global.default.checkPoints.length; i++) {
- var cp = _global.default.checkPoints[i];
- latlngs.push([cp.latitude, cp.longitude]);
- }
- var radius = _config.default.gStyle.checkPoint.default.radius;
- var Lines = this.getIntersection(latlngs, radius); // 获取(圆与路线的)交叉点坐标
- // var polyline = L.polyline(latlngs, config.gStyle.checkPointPath.default)
- var polyline = L.polyline(Lines, _config.default.gStyle.checkPointPath.default).addTo(this.cpPathLayerGroup);
- this.cpPathLayerGroup.addTo(_global.default.map);
- },
- // 获取(圆与路线的)交叉点坐标
- getIntersection: function getIntersection(LatLngArry, radius) {
- // var LatLngArry = [
- // [36.672562, 117.127572],
- // [36.67165, 117.129262],
- // [36.671409, 117.126752]
- // ]
- var PointArry = [];
- // var Circles = []
- var radius = 20; // 圆的半径 px
- var DistanceArry = [];
- var Lines = [];
- for (var i = 0; i < LatLngArry.length; i++) {
- // 给定地理坐标,返回相应的像素坐标 (相对于原点像素)
- var point = _global.default.map.latLngToLayerPoint(LatLngArry[i]);
- PointArry.push(point);
- // let circle = L.circle(LatLngArry[i], {
- // radius: radius
- // }).addTo(global.map);
- // Circles.push(circle)
- if (i > 0) {
- // 计算相邻两个点之间的距离
- var distance = L.point(PointArry[i]).distanceTo(L.point(PointArry[i - 1]));
- DistanceArry.push(distance);
- // 计算圆半径占比
- var per = parseFloat(radius.toFixed(16) / distance.toFixed(16)).toFixed(16);
- // console.log('per:', per, i)
- // console.log('PointArry:', PointArry[i])
- var offsetX = parseFloat((PointArry[i].x.toFixed(16) - PointArry[i - 1].x.toFixed(16)) * per).toFixed(16);
- var offsetY = parseFloat((PointArry[i].y.toFixed(16) - PointArry[i - 1].y.toFixed(16)) * per).toFixed(16);
- // console.log('offset:', offsetX, offsetY)
- // 给定相对于原点像素的像素坐标, 返回相应的地理坐标(对于当前缩放级别)
- var line = [_global.default.map.layerPointToLatLng([parseFloat(PointArry[i - 1].x) + parseFloat(offsetX), parseFloat(PointArry[i - 1].y) + parseFloat(offsetY)]), _global.default.map.layerPointToLatLng([parseFloat(PointArry[i].x) - parseFloat(offsetX), parseFloat(PointArry[i].y) - parseFloat(offsetY)])];
- Lines.push(line);
- }
- }
- // console.log('DistanceArry', DistanceArry)
- // console.log('Lines', Lines)
- // var polyline = L.polyline(Lines, config.gStyle.checkPointPath.default).addTo(global.map)
- return Lines;
- },
- test: function test() {},
- free: function free() {}
- };
- exports.default = _default;
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/lib/format-log.js */ 7)["default"]))
- /***/ }),
- /* 76 */
- /*!***************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue ***!
- \***************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-popup.vue?vue&type=template&id=7c43d41b&scoped=true& */ 77);
- /* harmony import */ var _uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-popup.vue?vue&type=script&lang=js& */ 84);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& */ 86);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
- _uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
- _uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "7c43d41b",
- null,
- false,
- _uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "uni_modules/uni-popup/components/uni-popup/uni-popup.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 77 */
- /*!**********************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=template&id=7c43d41b&scoped=true& ***!
- \**********************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-popup.vue?vue&type=template&id=7c43d41b&scoped=true& */ 78);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_template_id_7c43d41b_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 78 */
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=template&id=7c43d41b&scoped=true& ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- try {
- components = {
- uniTransition:
- __webpack_require__(/*! @/uni_modules/uni-transition/components/uni-transition/uni-transition.vue */ 79)
- .default,
- }
- } catch (e) {
- if (
- e.message.indexOf("Cannot find module") !== -1 &&
- e.message.indexOf(".vue") !== -1
- ) {
- console.error(e.message)
- console.error("1. 排查组件名称拼写是否正确")
- console.error(
- "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
- )
- console.error(
- "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
- )
- } else {
- throw e
- }
- }
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _vm._$g(0, "i")
- ? _c(
- "uni-view",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm._$g(0, "v-show"),
- expression: "_$g(0,'v-show')",
- },
- ],
- staticClass: _vm._$g(0, "sc"),
- class: _vm._$g(0, "c"),
- attrs: { _i: 0 },
- },
- [
- _c(
- "uni-view",
- {
- attrs: { _i: 1 },
- on: {
- touchstart: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [
- _vm._$g(2, "i")
- ? _c("uni-transition", {
- key: "1",
- attrs: { _i: 2 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- })
- : _vm._e(),
- _c(
- "uni-transition",
- {
- key: "2",
- attrs: { _i: 3 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [
- _c(
- "uni-view",
- {
- staticClass: _vm._$g(4, "sc"),
- class: _vm._$g(4, "c"),
- style: _vm._$g(4, "s"),
- attrs: { _i: 4 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._t("default", null, { _i: 5 })],
- 2
- ),
- ],
- 1
- ),
- ],
- 1
- ),
- ],
- 1
- )
- : _vm._e()
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 79 */
- /*!******************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-transition/components/uni-transition/uni-transition.vue ***!
- \******************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./uni-transition.vue?vue&type=template&id=6369f8c4&scoped=true& */ 80);
- /* harmony import */ var _uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uni-transition.vue?vue&type=script&lang=js& */ 82);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 33);
- var renderjs
- /* normalize component */
- var component = Object(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
- _uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
- _uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- "6369f8c4",
- null,
- false,
- _uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
- renderjs
- )
- component.options.__file = "uni_modules/uni-transition/components/uni-transition/uni-transition.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /* 80 */
- /*!*************************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-transition/components/uni-transition/uni-transition.vue?vue&type=template&id=6369f8c4&scoped=true& ***!
- \*************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-transition.vue?vue&type=template&id=6369f8c4&scoped=true& */ 81);
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_filter_modules_template_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_template_id_6369f8c4_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
- /***/ }),
- /* 81 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/filter-modules-template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-transition/components/uni-transition/uni-transition.vue?vue&type=template&id=6369f8c4&scoped=true& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
- var components
- var render = function () {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _vm._$g(0, "i")
- ? _c(
- "uni-view",
- {
- directives: [
- {
- name: "show",
- rawName: "v-show",
- value: _vm._$g(0, "v-show"),
- expression: "_$g(0,'v-show')",
- },
- ],
- ref: "ani",
- class: _vm._$g(0, "c"),
- style: _vm._$g(0, "s"),
- attrs: { animation: _vm._$g(0, "a-animation"), _i: 0 },
- on: {
- click: function ($event) {
- return _vm.$handleViewEvent($event)
- },
- },
- },
- [_vm._t("default", null, { _i: 1 })],
- 2
- )
- : _vm._e()
- }
- var recyclableRender = false
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /* 82 */
- /*!*******************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-transition/components/uni-transition/uni-transition.vue?vue&type=script&lang=js& ***!
- \*******************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-transition.vue?vue&type=script&lang=js& */ 83);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_transition_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 83 */
- /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-transition/components/uni-transition/uni-transition.vue?vue&type=script&lang=js& ***!
- \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- name: "uniTransition",
- props: ["show", "modeClass", "duration", "styles", "customClass", "onceRender"],
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 84 */
- /*!****************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=script&lang=js& ***!
- \****************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-popup.vue?vue&type=script&lang=js& */ 85);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_script_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_using_components_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 85 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/using-components.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=script&lang=js& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- var _default = {
- name: "uniPopup",
- props: ["animation", "type", "isMaskClick", "maskClick", "backgroundColor", "safeArea", "maskBackgroundColor", "onceRender"],
- data: function data() {
- return {
- wxsProps: {}
- };
- },
- components: {}
- };
- exports.default = _default;
- /***/ }),
- /* 86 */
- /*!*************************************************************************************************************************************************************!*\
- !*** D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& ***!
- \*************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& */ 87);
- /* harmony import */ var _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
- /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
- /* harmony default export */ __webpack_exports__["default"] = (_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_app_vue_style_loader_index_js_ref_8_oneOf_1_0_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Program_Files_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_view_style_js_uni_popup_vue_vue_type_style_index_0_id_7c43d41b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /* 87 */
- /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& ***!
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__(/*! !../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!./uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& */ 88);
- if(content.__esModule) content = content.default;
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/app-vue-style-loader/lib/addStylesClient.js */ 20).default
- var update = add("45b443c2", content, false, {"sourceMap":false,"shadowMode":false});
- // Hot Module Replacement
- if(false) {}
- /***/ }),
- /* 88 */
- /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/view/style.js!D:/Work2/Orienteering/TrackOffical/uni_modules/uni-popup/components/uni-popup/uni-popup.vue?vue&type=style&index=0&id=7c43d41b&lang=scss&scoped=true& ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
- // Imports
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../../Program Files/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/runtime/api.js */ 15);
- exports = ___CSS_LOADER_API_IMPORT___(false);
- // Module
- exports.push([module.i, "@charset \"UTF-8\";\n/* 水平间距 */\n/* 水平间距 */\n.uni-popup[data-v-7c43d41b] {\n position: fixed;\n z-index: 99;\n}\n.uni-popup.top[data-v-7c43d41b], .uni-popup.left[data-v-7c43d41b], .uni-popup.right[data-v-7c43d41b] {\n top: 0;\n}\n.uni-popup .uni-popup__wrapper[data-v-7c43d41b] {\n display: block;\n position: relative;\n /* iphonex 等安全区设置,底部安全区适配 */\n}\n.uni-popup .uni-popup__wrapper.left[data-v-7c43d41b], .uni-popup .uni-popup__wrapper.right[data-v-7c43d41b] {\n padding-top: 0;\n flex: 1;\n}\n.fixforpc-z-index[data-v-7c43d41b] {\n z-index: 999;\n}\n.fixforpc-top[data-v-7c43d41b] {\n top: 0;\n}\n", ""]);
- // Exports
- module.exports = exports;
- /***/ })
- /******/ ]);
|