@swissgeo/coordinates 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,4 +20,5 @@ __p += '`),nt&&(L+=`' +
20
20
  function print() { __p += __j.call(arguments, '') }
21
21
  `:`;
22
22
  `)+L+`return __p
23
- }`;var V=H0(function(){return st(m,z+"return "+L).apply(n,p)});if(V.source=L,Pa(V))throw V;return V}function d4(e){return at(e).toLowerCase()}function M4(e){return at(e).toUpperCase()}function m4(e,r,a){if(e=at(e),e&&(a||r===n))return eh(e);if(!e||!(r=Zt(r)))return e;var l=ve(e),_=ve(r),m=ih(l,_),p=nh(l,_)+1;return Ve(l,m,p).join("")}function y4(e,r,a){if(e=at(e),e&&(a||r===n))return e.slice(0,sh(e)+1);if(!e||!(r=Zt(r)))return e;var l=ve(e),_=nh(l,ve(r))+1;return Ve(l,0,_).join("")}function p4(e,r,a){if(e=at(e),e&&(a||r===n))return e.replace(Ps,"");if(!e||!(r=Zt(r)))return e;var l=ve(e),_=ih(l,ve(r));return Ve(l,_).join("")}function w4(e,r){var a=Mt,l=lt;if(vt(r)){var _="separator"in r?r.separator:_;a="length"in r?Z(r.length):a,l="omission"in r?Zt(r.omission):l}e=at(e);var m=e.length;if(bi(e)){var p=ve(e);m=p.length}if(a>=m)return e;var w=a-Ai(l);if(w<1)return l;var P=p?Ve(p,0,w).join(""):e.slice(0,w);if(_===n)return P+l;if(p&&(w+=P.length-w),ba(_)){if(e.slice(w).search(_)){var N,R=P;for(_.global||(_=$s(_.source,at(xo.exec(_))+"g")),_.lastIndex=0;N=_.exec(R);)var L=N.index;P=P.slice(0,L===n?w:L)}}else if(e.indexOf(Zt(_),w)!=w){var D=P.lastIndexOf(_);D>-1&&(P=P.slice(0,D))}return P+l}function E4(e){return e=at(e),e&&Lf.test(e)?e.replace(po,Zl):e}var x4=Oi(function(e,r,a){return e+(a?" ":"")+r.toUpperCase()}),Ia=Yh("toUpperCase");function k0(e,r,a){return e=at(e),r=a?n:r,r===n?Hl(e)?t1(e):Fl(e):e.match(r)||[]}var H0=tt(function(e,r){try{return Qt(e,n,r)}catch(a){return Pa(a)?a:new Q(a)}}),S4=Be(function(e,r){return ie(r,function(a){a=Pe(a),Oe(e,a,xa(e[a],e))}),e});function P4(e){var r=e==null?0:e.length,a=k();return e=r?gt(e,function(l){if(typeof l[1]!="function")throw new ne(f);return[a(l[0]),l[1]]}):[],tt(function(l){for(var _=-1;++_<r;){var m=e[_];if(Qt(m[0],this,l))return Qt(m[1],this,l)}})}function b4(e){return Z1(se(e,M))}function Ca(e){return function(){return e}}function A4(e,r){return e==null||e!==e?r:e}var G4=Qh(),I4=Qh(!0);function Xt(e){return e}function Na(e){return Ph(typeof e=="function"?e:se(e,M))}function C4(e){return Ah(se(e,M))}function N4(e,r){return Gh(e,se(r,M))}var R4=tt(function(e,r){return function(a){return dn(a,e,r)}}),L4=tt(function(e,r){return function(a){return dn(e,a,r)}});function Ra(e,r,a){var l=At(r),_=Sr(r,l);a==null&&!(vt(r)&&(_.length||!l.length))&&(a=r,r=e,e=this,_=Sr(r,At(r)));var m=!(vt(a)&&"chain"in a)||!!a.chain,p=qe(e);return ie(_,function(w){var P=r[w];e[w]=P,p&&(e.prototype[w]=function(){var N=this.__chain__;if(m||N){var R=e(this.__wrapped__),L=R.__actions__=Wt(this.__actions__);return L.push({func:P,args:arguments,thisArg:e}),R.__chain__=N,R}return P.apply(e,He([this.value()],arguments))})}),e}function O4(){return Gt._===this&&(Gt._=a1),this}function La(){}function T4(e){return e=Z(e),tt(function(r){return Ih(r,e)})}var B4=fa(gt),F4=fa(Jo),q4=fa(Ts);function Y0(e){return Ma(e)?Bs(Pe(e)):gc(e)}function D4(e){return function(r){return e==null?n:fi(e,r)}}var U4=Zh(),W4=Zh(!0);function Oa(){return[]}function Ta(){return!1}function $4(){return{}}function z4(){return""}function X4(){return!0}function k4(e,r){if(e=Z(e),e<1||e>Xe)return[];var a=Ee,l=Nt(e,Ee);r=k(r),e-=Ee;for(var _=Ds(l,r);++a<e;)r(a);return _}function H4(e){return J(e)?gt(e,Pe):Vt(e)?[e]:Wt(_0(at(e)))}function Y4(e){var r=++r1;return at(e)+r}var K4=Cr(function(e,r){return e+r},0),Q4=la("ceil"),J4=Cr(function(e,r){return e/r},1),Z4=la("floor");function V4(e){return e&&e.length?xr(e,Xt,Js):n}function j4(e,r){return e&&e.length?xr(e,k(r,2),Js):n}function tv(e){return jo(e,Xt)}function ev(e,r){return jo(e,k(r,2))}function iv(e){return e&&e.length?xr(e,Xt,ta):n}function nv(e,r){return e&&e.length?xr(e,k(r,2),ta):n}var rv=Cr(function(e,r){return e*r},1),sv=la("round"),av=Cr(function(e,r){return e-r},0);function ov(e){return e&&e.length?qs(e,Xt):0}function hv(e,r){return e&&e.length?qs(e,k(r,2)):0}return d.after=C_,d.ary=S0,d.assign=Mg,d.assignIn=q0,d.assignInWith=zr,d.assignWith=mg,d.at=yg,d.before=P0,d.bind=xa,d.bindAll=S4,d.bindKey=b0,d.castArray=$_,d.chain=w0,d.chunk=Zc,d.compact=Vc,d.concat=jc,d.cond=P4,d.conforms=b4,d.constant=Ca,d.countBy=o_,d.create=pg,d.curry=A0,d.curryRight=G0,d.debounce=I0,d.defaults=wg,d.defaultsDeep=Eg,d.defer=N_,d.delay=R_,d.difference=t2,d.differenceBy=e2,d.differenceWith=i2,d.drop=n2,d.dropRight=r2,d.dropRightWhile=s2,d.dropWhile=a2,d.fill=o2,d.filter=u_,d.flatMap=c_,d.flatMapDeep=__,d.flatMapDepth=g_,d.flatten=M0,d.flattenDeep=h2,d.flattenDepth=u2,d.flip=L_,d.flow=G4,d.flowRight=I4,d.fromPairs=f2,d.functions=Ig,d.functionsIn=Cg,d.groupBy=v_,d.initial=c2,d.intersection=_2,d.intersectionBy=g2,d.intersectionWith=v2,d.invert=Rg,d.invertBy=Lg,d.invokeMap=M_,d.iteratee=Na,d.keyBy=m_,d.keys=At,d.keysIn=zt,d.map=Fr,d.mapKeys=Tg,d.mapValues=Bg,d.matches=C4,d.matchesProperty=N4,d.memoize=Dr,d.merge=Fg,d.mergeWith=D0,d.method=R4,d.methodOf=L4,d.mixin=Ra,d.negate=Ur,d.nthArg=T4,d.omit=qg,d.omitBy=Dg,d.once=O_,d.orderBy=y_,d.over=B4,d.overArgs=T_,d.overEvery=F4,d.overSome=q4,d.partial=Sa,d.partialRight=C0,d.partition=p_,d.pick=Ug,d.pickBy=U0,d.property=Y0,d.propertyOf=D4,d.pull=y2,d.pullAll=y0,d.pullAllBy=p2,d.pullAllWith=w2,d.pullAt=E2,d.range=U4,d.rangeRight=W4,d.rearg=B_,d.reject=x_,d.remove=x2,d.rest=F_,d.reverse=wa,d.sampleSize=P_,d.set=$g,d.setWith=zg,d.shuffle=b_,d.slice=S2,d.sortBy=I_,d.sortedUniq=N2,d.sortedUniqBy=R2,d.split=c4,d.spread=q_,d.tail=L2,d.take=O2,d.takeRight=T2,d.takeRightWhile=B2,d.takeWhile=F2,d.tap=V2,d.throttle=D_,d.thru=Br,d.toArray=T0,d.toPairs=W0,d.toPairsIn=$0,d.toPath=H4,d.toPlainObject=F0,d.transform=Xg,d.unary=U_,d.union=q2,d.unionBy=D2,d.unionWith=U2,d.uniq=W2,d.uniqBy=$2,d.uniqWith=z2,d.unset=kg,d.unzip=Ea,d.unzipWith=p0,d.update=Hg,d.updateWith=Yg,d.values=Fi,d.valuesIn=Kg,d.without=X2,d.words=k0,d.wrap=W_,d.xor=k2,d.xorBy=H2,d.xorWith=Y2,d.zip=K2,d.zipObject=Q2,d.zipObjectDeep=J2,d.zipWith=Z2,d.entries=W0,d.entriesIn=$0,d.extend=q0,d.extendWith=zr,Ra(d,d),d.add=K4,d.attempt=H0,d.camelCase=Vg,d.capitalize=z0,d.ceil=Q4,d.clamp=Qg,d.clone=z_,d.cloneDeep=k_,d.cloneDeepWith=H_,d.cloneWith=X_,d.conformsTo=Y_,d.deburr=X0,d.defaultTo=A4,d.divide=J4,d.endsWith=jg,d.eq=Me,d.escape=t4,d.escapeRegExp=e4,d.every=h_,d.find=f_,d.findIndex=v0,d.findKey=xg,d.findLast=l_,d.findLastIndex=d0,d.findLastKey=Sg,d.floor=Z4,d.forEach=E0,d.forEachRight=x0,d.forIn=Pg,d.forInRight=bg,d.forOwn=Ag,d.forOwnRight=Gg,d.get=Aa,d.gt=K_,d.gte=Q_,d.has=Ng,d.hasIn=Ga,d.head=m0,d.identity=Xt,d.includes=d_,d.indexOf=l2,d.inRange=Jg,d.invoke=Og,d.isArguments=_i,d.isArray=J,d.isArrayBuffer=J_,d.isArrayLike=$t,d.isArrayLikeObject=pt,d.isBoolean=Z_,d.isBuffer=je,d.isDate=V_,d.isElement=j_,d.isEmpty=tg,d.isEqual=eg,d.isEqualWith=ig,d.isError=Pa,d.isFinite=ng,d.isFunction=qe,d.isInteger=N0,d.isLength=Wr,d.isMap=R0,d.isMatch=rg,d.isMatchWith=sg,d.isNaN=ag,d.isNative=og,d.isNil=ug,d.isNull=hg,d.isNumber=L0,d.isObject=vt,d.isObjectLike=mt,d.isPlainObject=En,d.isRegExp=ba,d.isSafeInteger=fg,d.isSet=O0,d.isString=$r,d.isSymbol=Vt,d.isTypedArray=Bi,d.isUndefined=lg,d.isWeakMap=cg,d.isWeakSet=_g,d.join=d2,d.kebabCase=i4,d.last=oe,d.lastIndexOf=M2,d.lowerCase=n4,d.lowerFirst=r4,d.lt=gg,d.lte=vg,d.max=V4,d.maxBy=j4,d.mean=tv,d.meanBy=ev,d.min=iv,d.minBy=nv,d.stubArray=Oa,d.stubFalse=Ta,d.stubObject=$4,d.stubString=z4,d.stubTrue=X4,d.multiply=rv,d.nth=m2,d.noConflict=O4,d.noop=La,d.now=qr,d.pad=s4,d.padEnd=a4,d.padStart=o4,d.parseInt=h4,d.random=Zg,d.reduce=w_,d.reduceRight=E_,d.repeat=u4,d.replace=f4,d.result=Wg,d.round=sv,d.runInContext=S,d.sample=S_,d.size=A_,d.snakeCase=l4,d.some=G_,d.sortedIndex=P2,d.sortedIndexBy=b2,d.sortedIndexOf=A2,d.sortedLastIndex=G2,d.sortedLastIndexBy=I2,d.sortedLastIndexOf=C2,d.startCase=_4,d.startsWith=g4,d.subtract=av,d.sum=ov,d.sumBy=hv,d.template=v4,d.times=k4,d.toFinite=De,d.toInteger=Z,d.toLength=B0,d.toLower=d4,d.toNumber=he,d.toSafeInteger=dg,d.toString=at,d.toUpper=M4,d.trim=m4,d.trimEnd=y4,d.trimStart=p4,d.truncate=w4,d.unescape=E4,d.uniqueId=Y4,d.upperCase=x4,d.upperFirst=Ia,d.each=E0,d.eachRight=x0,d.first=m0,Ra(d,function(){var e={};return xe(d,function(r,a){ut.call(d.prototype,a)||(e[a]=r)}),e}(),{chain:!1}),d.VERSION=s,ie(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ie(["drop","take"],function(e,r){it.prototype[e]=function(a){a=a===n?1:Pt(Z(a),0);var l=this.__filtered__&&!r?new it(this):this.clone();return l.__filtered__?l.__takeCount__=Nt(a,l.__takeCount__):l.__views__.push({size:Nt(a,Ee),type:e+(l.__dir__<0?"Right":"")}),l},it.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),ie(["filter","map","takeWhile"],function(e,r){var a=r+1,l=a==Ie||a==gs;it.prototype[e]=function(_){var m=this.clone();return m.__iteratees__.push({iteratee:k(_,3),type:a}),m.__filtered__=m.__filtered__||l,m}}),ie(["head","last"],function(e,r){var a="take"+(r?"Right":"");it.prototype[e]=function(){return this[a](1).value()[0]}}),ie(["initial","tail"],function(e,r){var a="drop"+(r?"":"Right");it.prototype[e]=function(){return this.__filtered__?new it(this):this[a](1)}}),it.prototype.compact=function(){return this.filter(Xt)},it.prototype.find=function(e){return this.filter(e).head()},it.prototype.findLast=function(e){return this.reverse().find(e)},it.prototype.invokeMap=tt(function(e,r){return typeof e=="function"?new it(this):this.map(function(a){return dn(a,e,r)})}),it.prototype.reject=function(e){return this.filter(Ur(k(e)))},it.prototype.slice=function(e,r){e=Z(e);var a=this;return a.__filtered__&&(e>0||r<0)?new it(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),r!==n&&(r=Z(r),a=r<0?a.dropRight(-r):a.take(r-e)),a)},it.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},it.prototype.toArray=function(){return this.take(Ee)},xe(it.prototype,function(e,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),l=/^(?:head|last)$/.test(r),_=d[l?"take"+(r=="last"?"Right":""):r],m=l||/^find/.test(r);_&&(d.prototype[r]=function(){var p=this.__wrapped__,w=l?[1]:arguments,P=p instanceof it,N=w[0],R=P||J(p),L=function(et){var nt=_.apply(d,He([et],w));return l&&D?nt[0]:nt};R&&a&&typeof N=="function"&&N.length!=1&&(P=R=!1);var D=this.__chain__,z=!!this.__actions__.length,H=m&&!D,V=P&&!z;if(!m&&R){p=V?p:new it(this);var Y=e.apply(p,w);return Y.__actions__.push({func:Br,args:[L],thisArg:n}),new re(Y,D)}return H&&V?e.apply(this,w):(Y=this.thru(L),H?l?Y.value()[0]:Y.value():Y)})}),ie(["pop","push","shift","sort","splice","unshift"],function(e){var r=hr[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var _=arguments;if(l&&!this.__chain__){var m=this.value();return r.apply(J(m)?m:[],_)}return this[a](function(p){return r.apply(J(p)?p:[],_)})}}),xe(it.prototype,function(e,r){var a=d[r];if(a){var l=a.name+"";ut.call(Ni,l)||(Ni[l]=[]),Ni[l].push({name:r,func:a})}}),Ni[Ir(n,C).name]=[{name:"wrapper",func:n}],it.prototype.clone=E1,it.prototype.reverse=x1,it.prototype.value=S1,d.prototype.at=j2,d.prototype.chain=t_,d.prototype.commit=e_,d.prototype.next=i_,d.prototype.plant=r_,d.prototype.reverse=s_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=a_,d.prototype.first=d.prototype.head,un&&(d.prototype[un]=n_),d},Gi=e1();si?((si.exports=Gi)._=Gi,Ns._=Gi):Gt._=Gi}).call(l6)}(Nn,Nn.exports)),Nn.exports}var _6=c6();function g6(t,i){let n=i.features;const s=[];for(;n.length>0;){n=_6.sortBy(n,f=>{if(f.geometry&&f.geometry.coordinates&&f.geometry.coordinates[0])return ns(t,f.geometry.coordinates[0]);throw new Error("Feature missing geometry")});const o=n.shift(),h=o.geometry.coordinates[o.geometry.coordinates.length-1];h&&(t=h),s.push(o)}return s}class ji{lowerX;upperX;lowerY;upperY;customCenter;bottomLeft;bottomRight;topLeft;topRight;center;flatten;constructor(i){const{lowerX:n,upperX:s,lowerY:o,upperY:h,customCenter:f}=i;this.lowerX=n,this.upperX=s,this.lowerY=o,this.upperY=h,this.customCenter=f,this.bottomLeft=[this.lowerX,this.lowerY],this.bottomRight=[this.upperX,this.lowerY],this.topLeft=[this.lowerX,this.upperY],this.topRight=[this.upperX,this.upperY],this.center=this.customCenter??[(this.lowerX+this.upperX)/2,(this.lowerY+this.upperY)/2],this.flatten=[this.lowerX,this.lowerY,this.upperX,this.upperY]}isInBounds(i,n){return typeof i=="number"?i>=this.lowerX&&i<=this.upperX&&n>=this.lowerY&&n<=this.upperY:this.isInBounds(i[0],i[1])}splitIfOutOfBounds(i){if(!(!Array.isArray(i)||i.length<=1)&&!i.find(n=>n.length!==2)){if(i.find(n=>!this.isInBounds(n))){const n=ff(this.flatten),s=f6(Wn(i),n);return i[0]&&(s.features=g6(i[0],s)),s.features.map(o=>({coordinates:o.geometry.coordinates,isWithinBounds:dm(o.geometry.coordinates).features.every(h=>Cm(h,n))}))}return[{coordinates:i,isWithinBounds:!0}]}}}const Zi=15.5,df=8,$n=2*Math.PI*Dt/256;class lo{epsgNumber;epsg;label;technicalName;proj4transformationMatrix;bounds;usesMercatorPyramid;constructor(i){const{epsgNumber:n,label:s,proj4transformationMatrix:o,bounds:h,technicalName:f,usesMercatorPyramid:u=!1}=i;this.epsgNumber=n,this.epsg=`EPSG:${n}`,this.label=s,this.proj4transformationMatrix=o,this.bounds=h,this.technicalName=f,this.usesMercatorPyramid=u}getBoundsAs(i){if(this.bounds){if(i.epsg===this.epsg)return this.bounds;const n=mi(this.epsg,i.epsg,this.bounds.bottomLeft),s=mi(this.epsg,i.epsg,this.bounds.topRight);let o;return this.bounds.customCenter&&(o=mi(this.epsg,i.epsg,this.bounds.customCenter)),new ji({lowerX:n[0],lowerY:n[1],upperX:s[0],upperY:s[1],customCenter:o})}}isInBounds(i,n){return this.bounds?typeof i=="number"?this.bounds.isInBounds(i,n):this.bounds.isInBounds(i[0],i[1]):!1}roundZoomLevel(i){return wi(i,3)}getResolutionSteps(i){if(!this.bounds)return[];const n=$n,s=[],o=(i??0)*Math.PI/180;for(let h=0;h<21;++h)s.push({resolution:n*Math.cos(o)/Math.pow(2,h),zoom:h});return s}getTileOrigin(){return this.bounds?.topLeft??[0,0]}getMatrixIds(){const i=[];for(let n=0;n<this.getResolutionSteps().length;++n)i[n]=n;return i}}class Mf extends lo{constructor(i){super(i)}getTileOrigin(){return this.bounds.topLeft}}const pe=[650,500,250,100,50,20,10,5,2.5,2,1,.5,.25,.1],mf=[4e3,3750,3500,3250,3e3,2750,2500,2250,2e3,1750,1500,1250,1e3,750,...pe.slice(0,10),1.5,...pe.slice(10)],ue=[7.35,7.75,8.75,10,11,12.5,13.5,14.5,Zi,15.75,16.7,17.75,18.75,20,21],v6=["1:2'500'000","1:2'500'000","1:1'000'000","1:1'000'000","1:500'000","1:200'000","1:100'000","1:50'000","1:25'000","1:25'000","1:10'000","1:10'000","1:10'000","1:10'000","1:10'000"],d6=ue.map((t,i)=>i);class co extends Mf{getResolutionSteps(){return mf.map(i=>{const n=pe.indexOf(i)??void 0;let s;return n&&(s=v6[n]),{zoom:n,label:s,resolution:i}})}get1_25000ZoomLevel(){return df}getDefaultZoom(){return 1}transformStandardZoomLevelToCustom(i){return typeof ue[0]=="number"&&typeof ue[14]=="number"&&i>=ue[0]&&i<=ue[14]?ue.filter(n=>n<i).length:typeof ue[0]=="number"&&i<ue[0]?0:typeof ue[14]=="number"&&i>ue[14]?14:this.get1_25000ZoomLevel()}transformCustomZoomLevelToStandard(i){const n=Math.floor(i);return ue.length-1>=n?ue[n]??Zi:Zi}getResolutionForZoomAndCenter(i){const n=Math.round(i);return typeof pe[n]!="number"?0:pe[n]}getZoomForResolutionAndCenter(i){const n=pe.find(o=>o<=i);if(n)return pe.indexOf(n);const s=pe.slice(-1)[0];return s&&s>i?pe.indexOf(s):0}roundCoordinateValue(i){return wi(i,2)}roundZoomLevel(i,n=!1){return n?_m(i,d6):super.roundZoomLevel(i)}}class M6 extends co{constructor(){super({epsgNumber:21781,label:"CH1903 / LV03",technicalName:"LV03",proj4transformationMatrix:"+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs",bounds:new ji({lowerX:485071.58,upperX:837119.8,lowerY:74261.72,upperY:299941.79}),usesMercatorPyramid:!1})}}class m6 extends co{constructor(){super({epsgNumber:2056,label:"CH1903+ / LV95",technicalName:"LV95",proj4transformationMatrix:"+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs",bounds:new ji({lowerX:242e4,upperX:29e5,lowerY:103e4,upperY:135e4}),usesMercatorPyramid:!1})}}class _o extends lo{get1_25000ZoomLevel(){return Zi}getDefaultZoom(){return Zi}}class y6 extends _o{constructor(){super({epsgNumber:3857,label:"WebMercator",proj4transformationMatrix:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=proj",bounds:new ji({lowerX:-20037508342789244e-9,upperX:20037508342789244e-9,lowerY:-20037508342789244e-9,upperY:20037508342789244e-9,customCenter:[917209.87,591473743e-2]}),usesMercatorPyramid:!0})}roundCoordinateValue(i){return wi(i,2)}getResolutionForZoomAndCenter(i,n){const s=mi(this.epsg,zn.epsg,n).map(o=>o*Math.PI/180);return typeof s[1]!="number"?0:wi(Math.abs($n*Math.cos(s[1])/Math.pow(2,i)),2)}getZoomForResolutionAndCenter(i,n){const s=mi(this.epsg,zn.epsg,n).map(o=>o*Math.PI/180);return typeof s[1]!="number"?0:Math.abs(Math.log2(i/$n/Math.cos(s[1])))}}class p6 extends _o{constructor(){super({epsgNumber:4326,label:"WGS 84 (lat/lon)",proj4transformationMatrix:"+proj=longlat +datum=WGS84 +no_defs +type=proj",bounds:new ji({lowerX:-180,upperX:180,lowerY:-90,upperY:90,customCenter:[8.239436,46.832259]}),usesMercatorPyramid:!0})}roundCoordinateValue(i){return wi(i,6)}getResolutionForZoomAndCenter(i,n){return wi(Math.abs($n*Math.cos(n[1]*Math.PI/180)/Math.pow(2,i)),2)}getExtentInOrderXY(i){return i[0]>i[1]?[i[1],i[0],i[3],i[2]]:i}getZoomForResolutionAndCenter(i,n){return Math.abs(Math.log2(i/$n/Math.cos(n[1]*Math.PI/180)))}}const go=new m6,vo=new M6,zn=new p6,Mo=new y6,yf=[go,vo,zn,Mo],w6={STANDARD_ZOOM_LEVEL_1_25000_MAP:Zi,SWISS_ZOOM_LEVEL_1_25000_MAP:df,LV95_RESOLUTIONS:pe,SWISSTOPO_TILEGRID_RESOLUTIONS:mf},E6={LV95:go,LV03:vo,WGS84:zn,WEBMERCATOR:Mo,allCoordinateSystems:yf};exports.CoordinateSystem=lo;exports.CoordinateSystemBounds=ji;exports.CustomCoordinateSystem=Mf;exports.LV03=vo;exports.LV95=go;exports.LV95_RESOLUTIONS=pe;exports.StandardCoordinateSystem=_o;exports.SwissCoordinateSystem=co;exports.WEBMERCATOR=Mo;exports.WGS84=zn;exports.allCoordinateSystems=yf;exports.bbox=di;exports.bboxPolygon=ff;exports.constants=w6;exports.crs=E6;exports.d=vm;exports.earthRadius=Dt;exports.feature=Ge;exports.featureCollection=ce;exports.featureEach=Qn;exports.geomEach=uf;exports.getDefaultExportFromCjs=o6;exports.getGeom=hf;exports.i=rf;exports.lengthToRadians=ym;exports.lineString=Wn;exports.multiLineString=Mm;exports.multiPolygon=mm;exports.point=Mi;exports.polygon=af;exports.proj4=mi;exports.radiansToLength=of;exports.s=wi;
23
+ }`;var V=H0(function(){return st(m,z+"return "+L).apply(n,p)});if(V.source=L,Pa(V))throw V;return V}function d4(e){return at(e).toLowerCase()}function M4(e){return at(e).toUpperCase()}function m4(e,r,a){if(e=at(e),e&&(a||r===n))return eh(e);if(!e||!(r=Zt(r)))return e;var l=ve(e),_=ve(r),m=ih(l,_),p=nh(l,_)+1;return Ve(l,m,p).join("")}function y4(e,r,a){if(e=at(e),e&&(a||r===n))return e.slice(0,sh(e)+1);if(!e||!(r=Zt(r)))return e;var l=ve(e),_=nh(l,ve(r))+1;return Ve(l,0,_).join("")}function p4(e,r,a){if(e=at(e),e&&(a||r===n))return e.replace(Ps,"");if(!e||!(r=Zt(r)))return e;var l=ve(e),_=ih(l,ve(r));return Ve(l,_).join("")}function w4(e,r){var a=Mt,l=lt;if(vt(r)){var _="separator"in r?r.separator:_;a="length"in r?Z(r.length):a,l="omission"in r?Zt(r.omission):l}e=at(e);var m=e.length;if(bi(e)){var p=ve(e);m=p.length}if(a>=m)return e;var w=a-Ai(l);if(w<1)return l;var P=p?Ve(p,0,w).join(""):e.slice(0,w);if(_===n)return P+l;if(p&&(w+=P.length-w),ba(_)){if(e.slice(w).search(_)){var N,R=P;for(_.global||(_=$s(_.source,at(xo.exec(_))+"g")),_.lastIndex=0;N=_.exec(R);)var L=N.index;P=P.slice(0,L===n?w:L)}}else if(e.indexOf(Zt(_),w)!=w){var D=P.lastIndexOf(_);D>-1&&(P=P.slice(0,D))}return P+l}function E4(e){return e=at(e),e&&Lf.test(e)?e.replace(po,Zl):e}var x4=Oi(function(e,r,a){return e+(a?" ":"")+r.toUpperCase()}),Ia=Yh("toUpperCase");function k0(e,r,a){return e=at(e),r=a?n:r,r===n?Hl(e)?t1(e):Fl(e):e.match(r)||[]}var H0=tt(function(e,r){try{return Qt(e,n,r)}catch(a){return Pa(a)?a:new Q(a)}}),S4=Be(function(e,r){return ie(r,function(a){a=Pe(a),Oe(e,a,xa(e[a],e))}),e});function P4(e){var r=e==null?0:e.length,a=k();return e=r?gt(e,function(l){if(typeof l[1]!="function")throw new ne(f);return[a(l[0]),l[1]]}):[],tt(function(l){for(var _=-1;++_<r;){var m=e[_];if(Qt(m[0],this,l))return Qt(m[1],this,l)}})}function b4(e){return Z1(se(e,M))}function Ca(e){return function(){return e}}function A4(e,r){return e==null||e!==e?r:e}var G4=Qh(),I4=Qh(!0);function Xt(e){return e}function Na(e){return Ph(typeof e=="function"?e:se(e,M))}function C4(e){return Ah(se(e,M))}function N4(e,r){return Gh(e,se(r,M))}var R4=tt(function(e,r){return function(a){return dn(a,e,r)}}),L4=tt(function(e,r){return function(a){return dn(e,a,r)}});function Ra(e,r,a){var l=At(r),_=Sr(r,l);a==null&&!(vt(r)&&(_.length||!l.length))&&(a=r,r=e,e=this,_=Sr(r,At(r)));var m=!(vt(a)&&"chain"in a)||!!a.chain,p=qe(e);return ie(_,function(w){var P=r[w];e[w]=P,p&&(e.prototype[w]=function(){var N=this.__chain__;if(m||N){var R=e(this.__wrapped__),L=R.__actions__=Wt(this.__actions__);return L.push({func:P,args:arguments,thisArg:e}),R.__chain__=N,R}return P.apply(e,He([this.value()],arguments))})}),e}function O4(){return Gt._===this&&(Gt._=a1),this}function La(){}function T4(e){return e=Z(e),tt(function(r){return Ih(r,e)})}var B4=fa(gt),F4=fa(Jo),q4=fa(Ts);function Y0(e){return Ma(e)?Bs(Pe(e)):gc(e)}function D4(e){return function(r){return e==null?n:fi(e,r)}}var U4=Zh(),W4=Zh(!0);function Oa(){return[]}function Ta(){return!1}function $4(){return{}}function z4(){return""}function X4(){return!0}function k4(e,r){if(e=Z(e),e<1||e>Xe)return[];var a=Ee,l=Nt(e,Ee);r=k(r),e-=Ee;for(var _=Ds(l,r);++a<e;)r(a);return _}function H4(e){return J(e)?gt(e,Pe):Vt(e)?[e]:Wt(_0(at(e)))}function Y4(e){var r=++r1;return at(e)+r}var K4=Cr(function(e,r){return e+r},0),Q4=la("ceil"),J4=Cr(function(e,r){return e/r},1),Z4=la("floor");function V4(e){return e&&e.length?xr(e,Xt,Js):n}function j4(e,r){return e&&e.length?xr(e,k(r,2),Js):n}function tv(e){return jo(e,Xt)}function ev(e,r){return jo(e,k(r,2))}function iv(e){return e&&e.length?xr(e,Xt,ta):n}function nv(e,r){return e&&e.length?xr(e,k(r,2),ta):n}var rv=Cr(function(e,r){return e*r},1),sv=la("round"),av=Cr(function(e,r){return e-r},0);function ov(e){return e&&e.length?qs(e,Xt):0}function hv(e,r){return e&&e.length?qs(e,k(r,2)):0}return d.after=C_,d.ary=S0,d.assign=Mg,d.assignIn=q0,d.assignInWith=zr,d.assignWith=mg,d.at=yg,d.before=P0,d.bind=xa,d.bindAll=S4,d.bindKey=b0,d.castArray=$_,d.chain=w0,d.chunk=Zc,d.compact=Vc,d.concat=jc,d.cond=P4,d.conforms=b4,d.constant=Ca,d.countBy=o_,d.create=pg,d.curry=A0,d.curryRight=G0,d.debounce=I0,d.defaults=wg,d.defaultsDeep=Eg,d.defer=N_,d.delay=R_,d.difference=t2,d.differenceBy=e2,d.differenceWith=i2,d.drop=n2,d.dropRight=r2,d.dropRightWhile=s2,d.dropWhile=a2,d.fill=o2,d.filter=u_,d.flatMap=c_,d.flatMapDeep=__,d.flatMapDepth=g_,d.flatten=M0,d.flattenDeep=h2,d.flattenDepth=u2,d.flip=L_,d.flow=G4,d.flowRight=I4,d.fromPairs=f2,d.functions=Ig,d.functionsIn=Cg,d.groupBy=v_,d.initial=c2,d.intersection=_2,d.intersectionBy=g2,d.intersectionWith=v2,d.invert=Rg,d.invertBy=Lg,d.invokeMap=M_,d.iteratee=Na,d.keyBy=m_,d.keys=At,d.keysIn=zt,d.map=Fr,d.mapKeys=Tg,d.mapValues=Bg,d.matches=C4,d.matchesProperty=N4,d.memoize=Dr,d.merge=Fg,d.mergeWith=D0,d.method=R4,d.methodOf=L4,d.mixin=Ra,d.negate=Ur,d.nthArg=T4,d.omit=qg,d.omitBy=Dg,d.once=O_,d.orderBy=y_,d.over=B4,d.overArgs=T_,d.overEvery=F4,d.overSome=q4,d.partial=Sa,d.partialRight=C0,d.partition=p_,d.pick=Ug,d.pickBy=U0,d.property=Y0,d.propertyOf=D4,d.pull=y2,d.pullAll=y0,d.pullAllBy=p2,d.pullAllWith=w2,d.pullAt=E2,d.range=U4,d.rangeRight=W4,d.rearg=B_,d.reject=x_,d.remove=x2,d.rest=F_,d.reverse=wa,d.sampleSize=P_,d.set=$g,d.setWith=zg,d.shuffle=b_,d.slice=S2,d.sortBy=I_,d.sortedUniq=N2,d.sortedUniqBy=R2,d.split=c4,d.spread=q_,d.tail=L2,d.take=O2,d.takeRight=T2,d.takeRightWhile=B2,d.takeWhile=F2,d.tap=V2,d.throttle=D_,d.thru=Br,d.toArray=T0,d.toPairs=W0,d.toPairsIn=$0,d.toPath=H4,d.toPlainObject=F0,d.transform=Xg,d.unary=U_,d.union=q2,d.unionBy=D2,d.unionWith=U2,d.uniq=W2,d.uniqBy=$2,d.uniqWith=z2,d.unset=kg,d.unzip=Ea,d.unzipWith=p0,d.update=Hg,d.updateWith=Yg,d.values=Fi,d.valuesIn=Kg,d.without=X2,d.words=k0,d.wrap=W_,d.xor=k2,d.xorBy=H2,d.xorWith=Y2,d.zip=K2,d.zipObject=Q2,d.zipObjectDeep=J2,d.zipWith=Z2,d.entries=W0,d.entriesIn=$0,d.extend=q0,d.extendWith=zr,Ra(d,d),d.add=K4,d.attempt=H0,d.camelCase=Vg,d.capitalize=z0,d.ceil=Q4,d.clamp=Qg,d.clone=z_,d.cloneDeep=k_,d.cloneDeepWith=H_,d.cloneWith=X_,d.conformsTo=Y_,d.deburr=X0,d.defaultTo=A4,d.divide=J4,d.endsWith=jg,d.eq=Me,d.escape=t4,d.escapeRegExp=e4,d.every=h_,d.find=f_,d.findIndex=v0,d.findKey=xg,d.findLast=l_,d.findLastIndex=d0,d.findLastKey=Sg,d.floor=Z4,d.forEach=E0,d.forEachRight=x0,d.forIn=Pg,d.forInRight=bg,d.forOwn=Ag,d.forOwnRight=Gg,d.get=Aa,d.gt=K_,d.gte=Q_,d.has=Ng,d.hasIn=Ga,d.head=m0,d.identity=Xt,d.includes=d_,d.indexOf=l2,d.inRange=Jg,d.invoke=Og,d.isArguments=_i,d.isArray=J,d.isArrayBuffer=J_,d.isArrayLike=$t,d.isArrayLikeObject=pt,d.isBoolean=Z_,d.isBuffer=je,d.isDate=V_,d.isElement=j_,d.isEmpty=tg,d.isEqual=eg,d.isEqualWith=ig,d.isError=Pa,d.isFinite=ng,d.isFunction=qe,d.isInteger=N0,d.isLength=Wr,d.isMap=R0,d.isMatch=rg,d.isMatchWith=sg,d.isNaN=ag,d.isNative=og,d.isNil=ug,d.isNull=hg,d.isNumber=L0,d.isObject=vt,d.isObjectLike=mt,d.isPlainObject=En,d.isRegExp=ba,d.isSafeInteger=fg,d.isSet=O0,d.isString=$r,d.isSymbol=Vt,d.isTypedArray=Bi,d.isUndefined=lg,d.isWeakMap=cg,d.isWeakSet=_g,d.join=d2,d.kebabCase=i4,d.last=oe,d.lastIndexOf=M2,d.lowerCase=n4,d.lowerFirst=r4,d.lt=gg,d.lte=vg,d.max=V4,d.maxBy=j4,d.mean=tv,d.meanBy=ev,d.min=iv,d.minBy=nv,d.stubArray=Oa,d.stubFalse=Ta,d.stubObject=$4,d.stubString=z4,d.stubTrue=X4,d.multiply=rv,d.nth=m2,d.noConflict=O4,d.noop=La,d.now=qr,d.pad=s4,d.padEnd=a4,d.padStart=o4,d.parseInt=h4,d.random=Zg,d.reduce=w_,d.reduceRight=E_,d.repeat=u4,d.replace=f4,d.result=Wg,d.round=sv,d.runInContext=S,d.sample=S_,d.size=A_,d.snakeCase=l4,d.some=G_,d.sortedIndex=P2,d.sortedIndexBy=b2,d.sortedIndexOf=A2,d.sortedLastIndex=G2,d.sortedLastIndexBy=I2,d.sortedLastIndexOf=C2,d.startCase=_4,d.startsWith=g4,d.subtract=av,d.sum=ov,d.sumBy=hv,d.template=v4,d.times=k4,d.toFinite=De,d.toInteger=Z,d.toLength=B0,d.toLower=d4,d.toNumber=he,d.toSafeInteger=dg,d.toString=at,d.toUpper=M4,d.trim=m4,d.trimEnd=y4,d.trimStart=p4,d.truncate=w4,d.unescape=E4,d.uniqueId=Y4,d.upperCase=x4,d.upperFirst=Ia,d.each=E0,d.eachRight=x0,d.first=m0,Ra(d,function(){var e={};return xe(d,function(r,a){ut.call(d.prototype,a)||(e[a]=r)}),e}(),{chain:!1}),d.VERSION=s,ie(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){d[e].placeholder=d}),ie(["drop","take"],function(e,r){it.prototype[e]=function(a){a=a===n?1:Pt(Z(a),0);var l=this.__filtered__&&!r?new it(this):this.clone();return l.__filtered__?l.__takeCount__=Nt(a,l.__takeCount__):l.__views__.push({size:Nt(a,Ee),type:e+(l.__dir__<0?"Right":"")}),l},it.prototype[e+"Right"]=function(a){return this.reverse()[e](a).reverse()}}),ie(["filter","map","takeWhile"],function(e,r){var a=r+1,l=a==Ie||a==gs;it.prototype[e]=function(_){var m=this.clone();return m.__iteratees__.push({iteratee:k(_,3),type:a}),m.__filtered__=m.__filtered__||l,m}}),ie(["head","last"],function(e,r){var a="take"+(r?"Right":"");it.prototype[e]=function(){return this[a](1).value()[0]}}),ie(["initial","tail"],function(e,r){var a="drop"+(r?"":"Right");it.prototype[e]=function(){return this.__filtered__?new it(this):this[a](1)}}),it.prototype.compact=function(){return this.filter(Xt)},it.prototype.find=function(e){return this.filter(e).head()},it.prototype.findLast=function(e){return this.reverse().find(e)},it.prototype.invokeMap=tt(function(e,r){return typeof e=="function"?new it(this):this.map(function(a){return dn(a,e,r)})}),it.prototype.reject=function(e){return this.filter(Ur(k(e)))},it.prototype.slice=function(e,r){e=Z(e);var a=this;return a.__filtered__&&(e>0||r<0)?new it(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),r!==n&&(r=Z(r),a=r<0?a.dropRight(-r):a.take(r-e)),a)},it.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},it.prototype.toArray=function(){return this.take(Ee)},xe(it.prototype,function(e,r){var a=/^(?:filter|find|map|reject)|While$/.test(r),l=/^(?:head|last)$/.test(r),_=d[l?"take"+(r=="last"?"Right":""):r],m=l||/^find/.test(r);_&&(d.prototype[r]=function(){var p=this.__wrapped__,w=l?[1]:arguments,P=p instanceof it,N=w[0],R=P||J(p),L=function(et){var nt=_.apply(d,He([et],w));return l&&D?nt[0]:nt};R&&a&&typeof N=="function"&&N.length!=1&&(P=R=!1);var D=this.__chain__,z=!!this.__actions__.length,H=m&&!D,V=P&&!z;if(!m&&R){p=V?p:new it(this);var Y=e.apply(p,w);return Y.__actions__.push({func:Br,args:[L],thisArg:n}),new re(Y,D)}return H&&V?e.apply(this,w):(Y=this.thru(L),H?l?Y.value()[0]:Y.value():Y)})}),ie(["pop","push","shift","sort","splice","unshift"],function(e){var r=hr[e],a=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);d.prototype[e]=function(){var _=arguments;if(l&&!this.__chain__){var m=this.value();return r.apply(J(m)?m:[],_)}return this[a](function(p){return r.apply(J(p)?p:[],_)})}}),xe(it.prototype,function(e,r){var a=d[r];if(a){var l=a.name+"";ut.call(Ni,l)||(Ni[l]=[]),Ni[l].push({name:r,func:a})}}),Ni[Ir(n,C).name]=[{name:"wrapper",func:n}],it.prototype.clone=E1,it.prototype.reverse=x1,it.prototype.value=S1,d.prototype.at=j2,d.prototype.chain=t_,d.prototype.commit=e_,d.prototype.next=i_,d.prototype.plant=r_,d.prototype.reverse=s_,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=a_,d.prototype.first=d.prototype.head,un&&(d.prototype[un]=n_),d},Gi=e1();si?((si.exports=Gi)._=Gi,Ns._=Gi):Gt._=Gi}).call(l6)}(Nn,Nn.exports)),Nn.exports}var _6=c6();function g6(t,i){let n=i.features;const s=[];for(;n.length>0;){n=_6.sortBy(n,f=>{if(f.geometry&&f.geometry.coordinates&&f.geometry.coordinates[0])return ns(t,f.geometry.coordinates[0]);throw new Error("Feature missing geometry")});const o=n.shift(),h=o.geometry.coordinates[o.geometry.coordinates.length-1];h&&(t=h),s.push(o)}return s}class ji{lowerX;upperX;lowerY;upperY;customCenter;bottomLeft;bottomRight;topLeft;topRight;center;flatten;constructor(i){const{lowerX:n,upperX:s,lowerY:o,upperY:h,customCenter:f}=i;this.lowerX=n,this.upperX=s,this.lowerY=o,this.upperY=h,this.customCenter=f,this.bottomLeft=[this.lowerX,this.lowerY],this.bottomRight=[this.upperX,this.lowerY],this.topLeft=[this.lowerX,this.upperY],this.topRight=[this.upperX,this.upperY],this.center=this.customCenter??[(this.lowerX+this.upperX)/2,(this.lowerY+this.upperY)/2],this.flatten=[this.lowerX,this.lowerY,this.upperX,this.upperY]}isInBounds(i,n){return typeof i=="number"?i>=this.lowerX&&i<=this.upperX&&n>=this.lowerY&&n<=this.upperY:this.isInBounds(i[0],i[1])}splitIfOutOfBounds(i){if(!(!Array.isArray(i)||i.length<=1)&&!i.find(n=>n.length!==2)){if(i.find(n=>!this.isInBounds(n))){const n=ff(this.flatten),s=f6(Wn(i),n);return i[0]&&(s.features=g6(i[0],s)),s.features.map(o=>({coordinates:o.geometry.coordinates,isWithinBounds:dm(o.geometry.coordinates).features.every(h=>Cm(h,n))}))}return[{coordinates:i,isWithinBounds:!0}]}}}const Zi=15.5,df=8,$n=2*Math.PI*Dt/256;class lo{epsgNumber;epsg;label;technicalName;proj4transformationMatrix;bounds;usesMercatorPyramid;constructor(i){const{epsgNumber:n,label:s,proj4transformationMatrix:o,bounds:h,technicalName:f,usesMercatorPyramid:u=!1}=i;this.epsgNumber=n,this.epsg=`EPSG:${n}`,this.label=s,this.proj4transformationMatrix=o,this.bounds=h,this.technicalName=f,this.usesMercatorPyramid=u}getBoundsAs(i){if(this.bounds){if(i.epsg===this.epsg)return this.bounds;const n=mi(this.epsg,i.epsg,this.bounds.bottomLeft),s=mi(this.epsg,i.epsg,this.bounds.topRight);let o;return this.bounds.customCenter&&(o=mi(this.epsg,i.epsg,this.bounds.customCenter)),new ji({lowerX:n[0],lowerY:n[1],upperX:s[0],upperY:s[1],customCenter:o})}}isInBounds(i,n){return this.bounds?typeof i=="number"?this.bounds.isInBounds(i,n):this.bounds.isInBounds(i[0],i[1]):!1}roundZoomLevel(i){return wi(i,3)}getResolutionSteps(i){if(!this.bounds)return[];const n=$n,s=[],o=(i??0)*Math.PI/180;for(let h=0;h<21;++h)s.push({resolution:n*Math.cos(o)/Math.pow(2,h),zoom:h});return s}getTileOrigin(){return this.bounds?.topLeft??[0,0]}getMatrixIds(){const i=[];for(let n=0;n<this.getResolutionSteps().length;++n)i[n]=n;return i}}class Mf extends lo{constructor(i){super(i)}getTileOrigin(){return this.bounds.topLeft}}const pe=[650,500,250,100,50,20,10,5,2.5,2,1,.5,.25,.1],mf=[4e3,3750,3500,3250,3e3,2750,2500,2250,2e3,1750,1500,1250,1e3,750,...pe.slice(0,10),1.5,...pe.slice(10)],ue=[7.35,7.75,8.75,10,11,12.5,13.5,14.5,Zi,15.75,16.7,17.75,18.75,20,21],v6=["1:2'500'000","1:2'500'000","1:1'000'000","1:1'000'000","1:500'000","1:200'000","1:100'000","1:50'000","1:25'000","1:25'000","1:10'000","1:10'000","1:10'000","1:10'000","1:10'000"],d6=ue.map((t,i)=>i);class co extends Mf{getResolutionSteps(){return mf.map(i=>{const n=pe.indexOf(i)??void 0;let s;return n&&(s=v6[n]),{zoom:n,label:s,resolution:i}})}get1_25000ZoomLevel(){return df}getDefaultZoom(){return 1}transformStandardZoomLevelToCustom(i){return typeof ue[0]=="number"&&typeof ue[14]=="number"&&i>=ue[0]&&i<=ue[14]?ue.filter(n=>n<i).length:typeof ue[0]=="number"&&i<ue[0]?0:typeof ue[14]=="number"&&i>ue[14]?14:this.get1_25000ZoomLevel()}transformCustomZoomLevelToStandard(i){const n=Math.floor(i);return ue.length-1>=n?ue[n]??Zi:Zi}getResolutionForZoom(i){const n=Math.round(i);return typeof pe[n]!="number"?0:pe[n]}getZoomForResolution(i){const n=pe.find(o=>o<=i);if(n)return pe.indexOf(n);const s=pe.slice(-1)[0];return s&&s>i?pe.indexOf(s):0}roundCoordinateValue(i){return wi(i,2)}roundZoomLevel(i,n=!1){return n?_m(i,d6):super.roundZoomLevel(i)}}class M6 extends co{constructor(){super({epsgNumber:21781,label:"CH1903 / LV03",technicalName:"LV03",proj4transformationMatrix:"+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=600000 +y_0=200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs",bounds:new ji({lowerX:485071.58,upperX:837119.8,lowerY:74261.72,upperY:299941.79}),usesMercatorPyramid:!1})}}class m6 extends co{constructor(){super({epsgNumber:2056,label:"CH1903+ / LV95",technicalName:"LV95",proj4transformationMatrix:"+proj=somerc +lat_0=46.9524055555556 +lon_0=7.43958333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs +type=crs",bounds:new ji({lowerX:242e4,upperX:29e5,lowerY:103e4,upperY:135e4}),usesMercatorPyramid:!1})}}class _o extends lo{get1_25000ZoomLevel(){return Zi}getDefaultZoom(){return Zi}}class y6 extends _o{constructor(){super({epsgNumber:3857,label:"WebMercator",proj4transformationMatrix:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=proj",bounds:new ji({lowerX:-20037508342789244e-9,upperX:20037508342789244e-9,lowerY:-20037508342789244e-9,upperY:20037508342789244e-9,customCenter:[917209.87,591473743e-2]}),usesMercatorPyramid:!0})}roundCoordinateValue(i){return wi(i,2)}getResolutionForZoom(i,n){const s=mi(this.epsg,zn.epsg,n).map(o=>o*Math.PI/180);return typeof s[1]!="number"?0:wi(Math.abs($n*Math.cos(s[1])/Math.pow(2,i)),2)}getZoomForResolution(i,n){const s=mi(this.epsg,zn.epsg,n).map(o=>o*Math.PI/180);return typeof s[1]!="number"?0:Math.abs(Math.log2(i/$n/Math.cos(s[1])))}}class p6 extends _o{constructor(){super({epsgNumber:4326,label:"WGS 84 (lat/lon)",proj4transformationMatrix:"+proj=longlat +datum=WGS84 +no_defs +type=proj",bounds:new ji({lowerX:-180,upperX:180,lowerY:-90,upperY:90,customCenter:[8.239436,46.832259]}),usesMercatorPyramid:!0})}roundCoordinateValue(i){return wi(i,6)}getResolutionForZoom(i,n){return wi(Math.abs($n*Math.cos(n[1]*Math.PI/180)/Math.pow(2,i)),2)}getExtentInOrderXY(i){return i[0]>i[1]?[i[1],i[0],i[3],i[2]]:i}getZoomForResolution(i,n){return Math.abs(Math.log2(i/$n/Math.cos(n[1]*Math.PI/180)))}}const go=new m6,vo=new M6,zn=new p6,Mo=new y6,yf=[go,vo,zn,Mo],w6={STANDARD_ZOOM_LEVEL_1_25000_MAP:Zi,SWISS_ZOOM_LEVEL_1_25000_MAP:df,LV95_RESOLUTIONS:pe,SWISSTOPO_TILEGRID_RESOLUTIONS:mf},E6={LV95:go,LV03:vo,WGS84:zn,WEBMERCATOR:Mo,allCoordinateSystems:yf};exports.CoordinateSystem=lo;exports.CoordinateSystemBounds=ji;exports.CustomCoordinateSystem=Mf;exports.LV03=vo;exports.LV95=go;exports.LV95_RESOLUTIONS=pe;exports.StandardCoordinateSystem=_o;exports.SwissCoordinateSystem=co;exports.WEBMERCATOR=Mo;exports.WGS84=zn;exports.allCoordinateSystems=yf;exports.bbox=di;exports.bboxPolygon=ff;exports.constants=w6;exports.crs=E6;exports.d=vm;exports.earthRadius=Dt;exports.feature=Ge;exports.featureCollection=ce;exports.featureEach=Qn;exports.geomEach=uf;exports.getDefaultExportFromCjs=o6;exports.getGeom=hf;exports.i=rf;exports.lengthToRadians=ym;exports.lineString=Wn;exports.multiLineString=Mm;exports.multiPolygon=mm;exports.point=Mi;exports.polygon=af;exports.proj4=mi;exports.radiansToLength=of;exports.s=wi;
24
+ //# sourceMappingURL=index-e9ERo8-f.cjs.map