map-offline/dist/assets/index-3e0c8030.js

8 lines
447 KiB
JavaScript
Raw Normal View History

2023-08-01 09:47:25 +08:00
var hv=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var u2=hv(he=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function dl(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Jt={},Yn=[],ci=()=>{},cv=()=>!1,fv=/^on[^a-z]/,Ta=t=>fv.test(t),ml=t=>t.startsWith("onUpdate:"),ue=Object.assign,vl=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dv=Object.prototype.hasOwnProperty,jt=(t,e)=>dv.call(t,e),Et=Array.isArray,Ds=t=>or(t)==="[object Map]",mv=t=>or(t)==="[object Set]",vv=t=>or(t)==="[object RegExp]",Rt=t=>typeof t=="function",ie=t=>typeof t=="string",_l=t=>typeof t=="symbol",Yt=t=>t!==null&&typeof t=="object",Dc=t=>Yt(t)&&Rt(t.then)&&Rt(t.catch),_v=Object.prototype.toString,or=t=>_v.call(t),pv=t=>or(t).slice(8,-1),gv=t=>or(t)==="[object Object]",pl=t=>ie(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Kr=dl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),La=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},yv=/-(\w)/g,os=La(t=>t.replace(yv,(e,n)=>n?n.toUpperCase():"")),bv=/\B([A-Z])/g,ms=La(t=>t.replace(bv,"-$1").toLowerCase()),Zc=La(t=>t.charAt(0).toUpperCase()+t.slice(1)),Mo=La(t=>t?`on${Zc(t)}`:""),Gs=(t,e)=>!Object.is(t,e),Zs=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},sa=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},xv=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Mv=t=>{const e=ie(t)?Number(t):NaN;return isNaN(e)?t:e};let Qu;const Do=()=>Qu||(Qu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lr(t){if(Et(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=ie(r)?Tv(r):lr(r);if(s)for(const o in s)e[o]=s[o]}return e}else{if(ie(t))return t;if(Yt(t))return t}}const wv=/;(?![^(]*\))/g,Cv=/:([^]+)/,Pv=/\/\*[^]*?\*\//g;function Tv(t){const e={};return t.replace(Pv,"").split(wv).forEach(n=>{if(n){const r=n.split(Cv);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Sa(t){let e="";if(ie(t))e=t;else if(Et(t))for(let n=0;n<t.length;n++){const r=Sa(t[n]);r&&(e+=r+" ")}else if(Yt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function Lv(t){if(!t)return null;let{class:e,style:n}=t;return e&&!ie(e)&&(t.class=Sa(e)),n&&(t.style=lr(n)),t}const Sv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ev=dl(Sv);function jc(t){return!!t||t===""}let Ze;class kv{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ze,!e&&Ze&&(this.index=(Ze.scopes||(Ze.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ze;try{return Ze=this,e()}finally{Ze=n}}}on(){Ze=this}off(){Ze=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Av(t,e=Ze){e&&e.active&&e.effects.push(t)}function Vc(){return Ze}function Ov(t){Ze&&Ze.cleanups.push(t)}const gl=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Hc=t=>(t.w&nn)>0,Wc=t=>(t.n&nn)>0,Iv=(
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/(function(t,e){(function(n,r){r(e)})(C0,function(n){var r="1.9.4";function s(i){var a,l,c,m;for(l=1,c=arguments.length;l<c;l++){m=arguments[l];for(a in m)i[a]=m[a]}return i}var o=Object.create||function(){function i(){}return function(a){return i.prototype=a,new i}}();function u(i,a){var l=Array.prototype.slice;if(i.bind)return i.bind.apply(i,l.call(arguments,1));var c=l.call(arguments,2);return function(){return i.apply(a,c.length?c.concat(l.call(arguments)):arguments)}}var h=0;function f(i){return"_leaflet_id"in i||(i._leaflet_id=++h),i._leaflet_id}function d(i,a,l){var c,m,g,w;return w=function(){c=!1,m&&(g.apply(l,m),m=!1)},g=function(){c?m=arguments:(i.apply(l,arguments),setTimeout(w,a),c=!0)},g}function v(i,a,l){var c=a[1],m=a[0],g=c-m;return i===c&&l?i:((i-m)%g+g)%g+m}function _(){return!1}function p(i,a){if(a===!1)return i;var l=Math.pow(10,a===void 0?6:a);return Math.round(i*l)/l}function y(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function b(i){return y(i).split(/\s+/)}function x(i,a){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var l in a)i.options[l]=a[l];return i.options}function T(i,a,l){var c=[];for(var m in i)c.push(encodeURIComponent(l?m.toUpperCase():m)+"="+encodeURIComponent(i[m]));return(!a||a.indexOf("?")===-1?"?":"&")+c.join("&")}var R=/\{ *([\w_ -]+) *\}/g;function S(i,a){return i.replace(R,function(l,c){var m=a[c];if(m===void 0)throw new Error("No value provided for variable "+l);return typeof m=="function"&&(m=m(a)),m})}var C=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function A(i,a){for(var l=0;l<i.length;l++)if(i[l]===a)return l;return-1}var q="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Z(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var V=0;function N(i){var a=+new Date,l=Math.max(0,16-(a-V));return V=a+l,window.setTimeout(i,l)}var I=window.requestAnimationFrame||Z("RequestAnimationFrame")||N,F=window.cancelAnimationFrame||Z("CancelAnimationFrame")||Z("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function W(i,a,l){if(l&&I===N)i.call(a);else return I.call(window,u(i,a))}function P(i){i&&F.call(window,i)}var $={__proto__:null,extend:s,create:o,bind:u,get lastId(){return h},stamp:f,throttle:d,wrapNum:v,falseFn:_,formatNum:p,trim:y,splitWords:b,setOptions:x,getParamString:T,template:S,isArray:C,indexOf:A,emptyImageUrl:q,requestFn:I,cancelFn:F,requestAnimFrame:W,cancelAnimFrame:P};function z(){}z.extend=function(i){var a=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},l=a.__super__=this.prototype,c=o(l);c.constructor=a,a.prototype=c;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(a[m]=this[m]);return i.statics&&s(a,i.statics),i.includes&&(nt(i.includes),s.apply(null,[c].concat(i.includes))),s(c,i),delete c.statics,delete c.includes,c.options&&(c.options=l.options?o(l.options):{},s(c.options,i.options)),c._initHooks=[],c.callInitHooks=function(){if(!this._initHooksCalled){l.callInitHooks&&l.callInitHooks.call(this),this._initHooksCalled=!0;for(var g=0,w=c._initHooks.length;g<w;g++)c._initHooks[g].call(this)}},a},z.include=function(i){var a=this.prototype.options;return s(this.prototype,i),i.options&&(this.prototype.options=a,this.mergeOptions(i.options)),this},z.mergeOptions=function(i){return s(this.prototype.options,i),this},z.addInitHook=function(i){var a=Array.prototype.slice.call(arguments,1),l=typeof i=="function"?i:function(){this[i].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(l),this};function nt(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=C(i)?i:[i];for(var a=0;a<i.length;a++)i[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var it={on:function(i,a,l){if(typeof i=="object")for(var c in i)this._on(c,i[c],a);else{i=b(i);for(var m=0,g=i
of digits after the zone letter and two 100km letters - front
half for easting meters, second half for
northing meters`+t;var p=_/2,y=0,b=0,x,T,R,S,C;return p>0&&(x=1e5/Math.pow(10,p),T=t.substring(o,o+p),y=parseFloat(T)*x,R=t.substring(o+p),b=parseFloat(R)*x),S=y+d,C=b+v,{easting:S,northing:C,zoneLetter:h,zoneNumber:u,accuracy:x}}function Ny(t,e){for(var n=gd.charCodeAt(e-1),r=1e5,s=!1;n!==t.charCodeAt(0);){if(n++,n===qe&&n++,n===Xe&&n++,n>Fs){if(s)throw"Bad character: "+t;n=Xn,s=!0}r+=1e5}return r}function By(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var n=yd.charCodeAt(e-1),r=0,s=!1;n!==t.charCodeAt(0);){if(n++,n===qe&&n++,n===Xe&&n++,n>qs){if(s)throw"Bad character: "+t;n=Xn,s=!0}r+=1e5}return r}function zy(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function fs(t,e,n){if(!(this instanceof fs))return new fs(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if(typeof t=="object")this.x=t.x,this.y=t.y,this.z=t.z||0;else if(typeof t=="string"&&typeof e>"u"){var r=t.split(",");this.x=parseFloat(r[0],10),this.y=parseFloat(r[1],10),this.z=parseFloat(r[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}fs.fromMGRS=function(t){return new fs(xd(t))};fs.prototype.toMGRS=function(t){return bd([this.x,this.y],t)};var qy=1,Fy=.25,_c=.046875,pc=.01953125,gc=.01068115234375,$y=.75,Dy=.46875,Zy=.013020833333333334,jy=.007120768229166667,Vy=.3645833333333333,Hy=.005696614583333333,Wy=.3076171875;function Cd(t){var e=[];e[0]=qy-t*(Fy+t*(_c+t*(pc+t*gc))),e[1]=t*($y-t*(_c+t*(pc+t*gc)));var n=t*t;return e[2]=n*(Dy-t*(Zy+t*jy)),n*=t,e[3]=n*(Vy-t*Hy),e[4]=n*t*Wy,e}function Wa(t,e,n,r){return n*=e,e*=e,r[0]*t-n*(r[1]+e*(r[2]+e*(r[3]+e*r[4])))}var Uy=20;function Pd(t,e,n){for(var r=1/(1-e),s=t,o=Uy;o;--o){var u=Math.sin(s),h=1-e*u*u;if(h=(Wa(s,u,Math.cos(s),n)-t)*(h*Math.sqrt(h))*r,s-=h,Math.abs(h)<dt)return s}return s}function Gy(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=Cd(this.es),this.ml0=Wa(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function Ky(t){var e=t.x,n=t.y,r=pt(e-this.long0),s,o,u,h=Math.sin(n),f=Math.cos(n);if(this.es){var v=f*r,_=Math.pow(v,2),p=this.ep2*Math.pow(f,2),y=Math.pow(p,2),b=Math.abs(f)>dt?Math.tan(n):0,x=Math.pow(b,2),T=Math.pow(x,2);s=1-this.es*Math.pow(h,2),v=v/Math.sqrt(s);var R=Wa(n,h,f,this.en);o=this.a*(this.k0*v*(1+_/6*(1-x+p+_/20*(5-18*x+T+14*p-58*x*p+_/42*(61+179*T-T*x-479*x)))))+this.x0,u=this.a*(this.k0*(R-this.ml0+h*r*v/2*(1+_/12*(5-x+9*p+4*y+_/30*(61+T-58*x+270*p-330*x*p+_/56*(1385+543*T-T*x-3111*x))))))+this.y0}else{var d=f*Math.sin(r);if(Math.abs(Math.abs(d)-1)<dt)return 93;if(o=.5*this.a*this.k0*Math.log((1+d)/(1-d))+this.x0,u=f*Math.cos(r)/Math.sqrt(1-Math.pow(d,2)),d=Math.abs(u),d>=1){if(d-1>dt)return 93;u=0}else u=Math.acos(u);n<0&&(u=-u),u=this.a*this.k0*(u-this.lat0)+this.y0}return t.x=o,t.y=u,t}function Qy(t){var e,n,r,s,o=(t.x-this.x0)*(1/this.a),u=(t.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+u/this.k0,n=Pd(e,this.es,this.en),Math.abs(n)<st){var _=Math.sin(n),p=Math.cos(n),y=Math.abs(p)>dt?Math.tan(n):0,b=this.ep2*Math.pow(p,2),x=Math.pow(b,2),T=Math.pow(y,2),R=Math.pow(T,2);e=1-this.es*Math.pow(_,2);var S=o*Math.sqrt(e)/this.k0,C=Math.pow(S,2);e=e*y,r=n-e*C/(1-this.es)*.5*(1-C/12*(5+3*T-9*b*T+b-4*x-C/30*(61+90*T-252*b*T+45*R+46*b-C/56*(1385+3633*T+4095*R+1574*R*T)))),s=pt(this.long0+S*(1-C/6*(1+2*T+b-C/20*(5+28*T+24*R+8*b*T+6*b-C/42*(61+662*T+1320*R+720*R*T))))/p)}else r=st*cr(u),s=0;else{var h=Math.exp(o/this.k0),f=.5*(h-1/h),d=this.lat0+u/this.k0,v=Math.cos(d);e=Math.sqrt((1-Math.pow(v,2))/