1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6850],{2245:()=>{},25053:(t,e,n)=>{"use strict";n.d(e,{K:()=>a,Q:()=>i});var r=n(19282);function i(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function a(t,e){return null==e?function(e,n){let i=(0,r.useRef)(void 0);return i.current||(i.current=t(e,n)),i}:function(n,i){let a=(0,r.useRef)(void 0);a.current||(a.current=t(n,i));let o=(0,r.useRef)(n),{instance:s}=a.current;return(0,r.useEffect)(function(){o.current!==n&&(e(s,n,o.current),o.current=n)},[s,n,e]),a}}},42118:()=>{},43880:(t,e,n)=>{"use strict";n.d(e,{Nq:()=>d,wk:()=>f,Lt:()=>g});var r=n(19282),i=n(33007),a=n(91674);function o(t){return(0,r.forwardRef)(function(e,n){let{instance:i,context:o}=t(e).current;(0,r.useImperativeHandle)(n,()=>i);let{children:s}=e;return null==s?null:r.createElement(a.dk,{value:o},s)})}function s(t,e){let n=(0,r.useRef)(e);(0,r.useEffect)(function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e},[t,e])}function l(t,e){let n=(0,r.useRef)(void 0);(0,r.useEffect)(function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}},[t,e])}function c(t,e){let n=t.pane??e.pane;return n?{...t,pane:n}:t}var u=n(25053);function h(t,e){(0,r.useEffect)(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function d(t,e){var n;return o((n=(0,u.K)(t,e),function(t){let e=(0,a.U$)(),r=n(c(t,e),e);return s(e.map,t.attribution),l(r.current,t.eventHandlers),h(r.current,e),r}))}function f(t,e){var n,o;return n=(0,u.K)(t),o=function(t,r){let i=(0,a.U$)(),o=n(c(t,i),i);return s(i.map,t.attribution),l(o.current,t.eventHandlers),e(o.current,i,t,r),o},(0,r.forwardRef)(function(t,e){let[n,a]=(0,r.useState)(!1),{instance:s}=o(t,a).current;(0,r.useImperativeHandle)(e,()=>s),(0,r.useEffect)(function(){n&&s.update()},[s,n,t.children]);let l=s._contentNode;return l?(0,i.createPortal)(t.children,l):null})}function g(t,e){var n;return o((n=(0,u.K)(t,e),function(t){let e=(0,a.U$)(),i=n(c(t,e),e);l(i.current,t.eventHandlers),h(i.current,e);var o=i.current;let s=(0,r.useRef)(void 0);return(0,r.useEffect)(function(){if(t.pathOptions!==s.current){let e=t.pathOptions??{};o.instance.setStyle(e),s.current=e}},[o,t]),i}))}},59168:(t,e,n)=>{"use strict";n.d(e,{W:()=>o});var r=n(91674),i=n(13421),a=n(19282);let o=(0,a.forwardRef)(function({bounds:t,boundsOptions:e,center:n,children:o,className:s,id:l,placeholder:c,style:u,whenReady:h,zoom:d,...f},g){let[m]=(0,a.useState)({className:s,id:l,style:u}),[p,v]=(0,a.useState)(null),y=(0,a.useRef)(void 0);(0,a.useImperativeHandle)(g,()=>p?.map??null,[p]);let _=(0,a.useCallback)(a=>{if(null!==a&&!y.current){let o=new i.Map(a,f);y.current=o,null!=n&&null!=d?o.setView(n,d):null!=t&&o.fitBounds(t,e),null!=h&&o.whenReady(h),v((0,r.fB)(o))}},[]);(0,a.useEffect)(()=>()=>{p?.map.remove()},[p]);let b=p?a.createElement(r.dk,{value:p},o):c??null;return a.createElement("div",{...m,ref:_},b)})},59756:(t,e,n)=>{"use strict";n.d(e,{Zs:()=>$});var r=Uint8Array,i=Uint16Array,a=Int32Array,o=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new i(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];for(var o=new a(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},u=c(o,2),h=u.b,d=u.r;h[28]=258,d[258]=28;var f=c(s,0),g=f.b;f.r;for(var m=new i(32768),p=0;p<32768;++p){var v=(43690&p)>>1|(21845&p)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,m[p]=((65280&v)>>8|(255&v)<<8)>>1}for(var y=function(t,e,n){for(var r,a=t.length,o=0,s=new i(e);o<a;++o)t[o]&&++s[t[o]-1];var l=new i(e);for(o=1;o<e;++o)l[o]=l[o-1]+s[o-1]<<1;if(n){r=new i(1<<e);var c=15-e;for(o=0;o<a;++o)if(t[o])for(var u=o<<4|t[o],h=e-t[o],d=l[t[o]-1]++<<h,f=d|(1<<h)-1;d<=f;++d)r[m[d]>>c]=u}else for(o=0,r=new i(a);o<a;++o)t[o]&&(r[o]=m[l[t[o]-1]++]>>15-t[o]);return r},_=new r(288),p=0;p<144;++p)_[p]=8;for(var p=144;p<256;++p)_[p]=9;for(var p=256;p<280;++p)_[p]=7;for(var p=280;p<288;++p)_[p]=8;for(var b=new r(32),p=0;p<32;++p)b[p]=5;var w=y(_,9,1),x=y(b,5,1),C=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},T=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},z=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)}
1,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,e,n){var r=Error(e||M[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,E),!n)throw r;return r},U=function(t,e,n,i){var a,c,u,d=t.length,f=i?i.length:0;if(!d||e.f&&!e.l)return n||new r(0);var m=!n,p=m||2!=e.i,v=e.i;m&&(n=new r(3*d));var _=function(t){var e=n.length;if(t>e){var i=new r(Math.max(2*e,t));i.set(n),n=i}},b=e.f||0,M=e.p||0,U=e.b||0,P=e.l,A=e.d,D=e.m,O=e.n,R=8*d;do{if(!P){b=T(t,M,1);var I=T(t,M+1,3);if(M+=3,I)if(1==I)P=w,A=x,D=9,O=5;else if(2==I){var S=T(t,M,31)+257,k=T(t,M+10,15)+4,Z=S+T(t,M+5,31)+1;M+=14;for(var B=new r(Z),$=new r(19),j=0;j<k;++j)$[l[j]]=T(t,M+3*j,7);M+=3*k;for(var H=C($),N=(1<<H)-1,K=y($,H,1),j=0;j<Z;){var W=K[T(t,M,N)];M+=15&W;var F=W>>4;if(F<16)B[j++]=F;else{var G=0,V=0;for(16==F?(V=3+T(t,M,3),M+=2,G=B[j-1]):17==F?(V=3+T(t,M,7),M+=3):18==F&&(V=11+T(t,M,127),M+=7);V--;)B[j++]=G}}var q=B.subarray(0,S),J=B.subarray(S);D=C(q),O=C(J),P=y(q,D,1),A=y(J,O,1)}else E(1);else{var F=((M+7)/8|0)+4,Q=t[F-4]|t[F-3]<<8,X=F+Q;if(X>d){v&&E(0);break}p&&_(U+Q),n.set(t.subarray(F,X),U),e.b=U+=Q,e.p=M=8*X,e.f=b;continue}if(M>R){v&&E(0);break}}p&&_(U+131072);for(var Y=(1<<D)-1,tt=(1<<O)-1,te=M;;te=M){var G=P[z(t,M)&Y],tn=G>>4;if((M+=15&G)>R){v&&E(0);break}if(G||E(2),tn<256)n[U++]=tn;else if(256==tn){te=M,P=null;break}else{var tr=tn-254;if(tn>264){var j=tn-257,ti=o[j];tr=T(t,M,(1<<ti)-1)+h[j],M+=ti}var ta=A[z(t,M)&tt],to=ta>>4;ta||E(3),M+=15&ta;var J=g[to];if(to>3){var ti=s[to];J+=z(t,M)&(1<<ti)-1,M+=ti}if(M>R){v&&E(0);break}p&&_(U+131072);var ts=U+tr;if(U<J){var tl=f-J,tc=Math.min(J,ts);for(tl+U<0&&E(3);U<tc;++U)n[U]=i[tl+U]}for(;U<ts;++U)n[U]=n[U-J]}}e.l=P,e.p=te,e.b=U,e.f=b,P&&(b=1,e.m=D,e.d=A,e.n=O)}while(!b);return U!=n.length&&m?(a=n,(c=0)<0&&(c=0),(null==(u=U)||u>a.length)&&(u=a.length),new r(a.subarray(c,u))):n.subarray(0,U)},P=new r(0),A=function(t){(31!=t[0]||139!=t[1]||8!=t[2])&&E(6,"invalid gzip data");var e=t[3],n=10;4&e&&(n+=(t[10]|t[11]<<8)+2);for(var r=(e>>3&1)+(e>>4&1);r>0;r-=!t[n++]);return n+(2&e)},D=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},O="undefined"!=typeof TextDecoder&&new TextDecoder;try{O.decode(P,{stream:!0})}catch(t){}"function"==typeof queueMicrotask&&queueMicrotask;var R=Object.defineProperty,I=Math.pow,S=(t,e)=>R(t,"name",{value:e,configurable:!0}),k=(t,e,n)=>new Promise((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())});S((t,e)=>{let n=!1,r="";return new(L.GridLayer.extend({createTile:S((e,i)=>{let a=document.createElement("img"),o=new AbortController,s=o.signal;return a.cancel=()=>{o.abort()},n||(t.getHeader().then(t=>{1===t.tileType||6===t.tileType?console.error("Error: archive contains vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):2===t.tileType?r="image/png":3===t.tileType?r="image/jpeg":4===t.tileType?r="image/webp":5===t.tileType&&(r="image/avif")}),n=!0),t.getZxy(e.z,e.x,e.y,s).then(t=>{if(t){let e=new Blob([t.data],{type:r});a.src=window.URL.createObjectURL(e)}else a.style.display="none";a.cancel=void 0,i(void 0,a)}).catch(t=>{if("AbortError"!==t.name)throw t}),a},"createTile"),_removeTile:S(function(t){let e=this._tiles[t];e&&(e.el.cancel&&e.el.cancel(),e.el.src&&window.URL.revokeObjectURL(e.el.src),e.el.width=0,e.el.height=0,e.el.deleted=!0,L.DomUtil.remove(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},"_removeTile")}))(e)},"leafletRasterLayer");var Z=S(t=>(e,n)=>{if(n instanceof AbortController)return t(e,n);let r=new AbortController;return t(e,r).then(t=>n(void 0,t.data,t.cacheControl||"",t.expires||""),t=>n(t)).catch(t=>n(t)),{cancel:S(()=>r.abort(),"cancel")}},"v3compat"),B=class{constructor(t){this.tilev4=S((t,e)=>k(this,null,function*(){if("json"===t.type){let n=t.url.substr(10),r=this.tiles.get(n);if(r||(r=new tl(n),this.tiles.set(n,r)),this.metadata){let n=yield r.getTileJson(t.url);return e.signal.throwIfAborted(),{data:n}}let i=yield r.getHeader();return e.signal.throwIfAborted(),(i.minLon>=i.maxLon||i.minLat>=i.maxLat)&&console.error(`Bounds of PMTiles archive ${i.minLon},${i.minLat},${i.maxLon},${i.maxLat} are not valid.`),{data:{tiles:[`${t.url}/{z}/{x}/{y}`],minzoom:i.minZoom,maxzoom:i.maxZoom,bounds:[i.minLon,i.minLat,i.maxLon,i.maxLat]}}}let n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),r=t.url.match(n);if(!r)throw Error("Invalid PMTiles protocol URL");let i=r[1],a=this.tiles.get(i);a||(a=new tl(i),this.tiles.set(i,a));let o=r[2],s=r[3],l=r[4],c=yield null==a?void 0:a.getZxy(+o,+s,+l,e.signal);if(e.signal.throwIfAborted(),c)return{data:new Uint8Array(c.data),cacheControl:c.cacheControl,expires:c.expires};let u=yield a.getHeader();if(1===u.tileType||6===u.tileType){if(this.errorOnMissingTile)throw Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Z(this.tilev4),this.tiles=new Map,this.metadata=(null==t?void 0:t.metadata)||!1,this.errorOnMissingTile=(null==t?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};S(B,"Protocol");var $=B;function j(t,e){return(e>>>0)*0x100000000+(t>>
1>0)}function H(t,e){let n=e.buf,r=n[e.pos++],i=(112&r)>>4;if(r<128||(i|=(127&(r=n[e.pos++]))<<3,r<128)||(i|=(127&(r=n[e.pos++]))<<10,r<128)||(i|=(127&(r=n[e.pos++]))<<17,r<128)||(i|=(127&(r=n[e.pos++]))<<24,r<128)||(i|=(1&(r=n[e.pos++]))<<31,r<128))return j(t,i);throw Error("Expected varint not more than 10 bytes")}function N(t){let e=t.buf,n=e[t.pos++],r=127&n;return n<128||(r|=(127&(n=e[t.pos++]))<<7,n<128)||(r|=(127&(n=e[t.pos++]))<<14,n<128)||(r|=(127&(n=e[t.pos++]))<<21,n<128)?r:H(r|=(15&(n=e[t.pos]))<<28,t)}function K(t,e,n,r,i){return 0===i?0!==r?[t-1-n,t-1-e]:[n,e]:[e,n]}function W(t,e,n){if(t>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(e>=1<<t||n>=1<<t)throw Error("tile x/y outside zoom level bounds");let r=((1<<t)*(1<<t)-1)/3,i=t-1,[a,o]=[e,n];for(let t=1<<i;t>0;t>>=1){let e=a&t,n=o&t;r+=(3*e^n)*(1<<i),[a,o]=K(t,a,o,e,n),i--}return r}function F(t){let e=3*t+1;return e<0x100000000?31-Math.clz32(e):63-Math.clz32(e/0x100000000)}S(j,"toNum"),S(H,"readVarintRemainder"),S(N,"readVarint"),S(K,"rotate"),S(W,"zxyToTileId"),S(F,"tileIdToZ"),S(function(t){let e=F(t)>>1;if(e>26)throw Error("Tile zoom level exceeds max safe number limit (26)");let n=t-((1<<e)*(1<<e)-1)/3,r=0,i=0,a=1<<e;for(let t=1;t<a;t<<=1){let e=t&n/2,a=t&(n^e);[r,i]=K(t,r,i,e,a),n/=2,r+=e,i+=a}return[e,r,i]},"tileIdToZxy");var G=(t=>(t[t.Unknown=0]="Unknown",t[t.None=1]="None",t[t.Gzip=2]="Gzip",t[t.Brotli=3]="Brotli",t[t.Zstd=4]="Zstd",t))(G||{});function V(t,e){return k(this,null,function*(){if(1===e||0===e)return t;if(2===e){if(void 0===globalThis.DecompressionStream){var n,i,a,o,s;return 31==(n=new Uint8Array(t))[0]&&139==n[1]&&8==n[2]?(a=void 0,(o=A(n))+8>n.length&&E(6,"invalid gzip data"),U(n.subarray(o,-8),{i:2},a&&a.out||new r(D(n)),a&&a.dictionary)):(15&n[0])!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?U(n,{i:2},i&&i.out,i&&i.dictionary):U(n.subarray((s=i&&i.dictionary,((15&n[0])!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&E(6,"invalid zlib data"),(n[1]>>5&1)==+!s&&E(6,"invalid zlib data: "+(32&n[1]?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2),-4),{i:2},i&&i.out,i&&i.dictionary)}let e=new Response(t).body;if(!e)throw Error("Failed to read response stream");return new Response(e.pipeThrough(new globalThis.DecompressionStream("gzip"))).arrayBuffer()}throw Error("Compression method not supported")})}S(V,"defaultDecompress");var q=(t=>(t[t.Unknown=0]="Unknown",t[t.Mvt=1]="Mvt",t[t.Png=2]="Png",t[t.Jpeg=3]="Jpeg",t[t.Webp=4]="Webp",t[t.Avif=5]="Avif",t[t.Mlt=6]="Mlt",t))(q||{});function J(t){return 1===t?".mvt":2===t?".png":3===t?".jpg":4===t?".webp":5===t?".avif":6===t?".mlt":""}function Q(t,e){let n=0,r=t.length-1;for(;n<=r;){let i=r+n>>1,a=e-t[i].tileId;if(a>0)n=i+1;else{if(!(a<0))return t[i];r=i-1}}return r>=0&&(0===t[r].runLength||e-t[r].tileId<t[r].runLength)?t[r]:null}S(J,"tileTypeExt"),S(Q,"findTile"),S(class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,e){return k(this,null,function*(){return{data:yield this.file.slice(t,t+e).arrayBuffer()}})}},"FileSource");var X=class{constructor(t,e=new Headers,n){var r,i;this.url=t,this.customHeaders=e,this.credentials=n,this.mustReload=!1;let a="";"navigator"in globalThis&&(a=null!=(i=null==(r=globalThis.navigator)?void 0:r.userAgent)?i:"");let o=a.indexOf("Windows")>-1,s=/Chrome|Chromium|Edg|OPR|Brave/.test(a);this.chromeWindowsNoCache=!1,o&&s&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,e,n,r){return k(this,null,function*(){let i,a,o;a=n||(i=new AbortController).signal;let s=new Headers(this.customHeaders);s.set("range",`bytes=${t}-${t+e-1}`),this.mustReload?o="reload":this.chromeWindowsNoCache&&(o="no-store");let l=yield fetch(this.url,{signal:a,cache:o,headers:s,credentials:this.credentials});if(0===t&&416===l.status){let t=l.headers.get("Content-Range");if(!t||!t.startsWith("bytes */"))throw Error("Missing content-length on 416 response");let e=+t.substr(8);s.set("range",`bytes=0-${e-1}`),l=yield fetch(this.url,{signal:a,cache:"reload",headers:s,credentials:this.credentials})}let c=l.headers.get("Etag");if(null!=c&&c.startsWith("W/")&&(c=null),416===l.status||r&&c&&c!==r)throw this.mustReload=!0,new tr(`Server returned non-matching ETag ${r} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(l.status>=300)throw Error(`Bad response code: ${l.status}`);let u=l.headers.get("Content-Length");if(200===l.status&&(!u||+u>e))throw i&&i.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield l.arrayBuffer(),etag:c||void 0,cacheControl:l.headers.get("Cache-Control")||void 0,expires:l.headers.get("Expires")||void 0}})}};function Y(t,e){let n=t.getUint32(e+4,!0),r=t.getUint32(e+0,!0);return n*I(2,32)+r}function tt(t,e){let n=new DataView(t),r=n.getUint8(7);if(r>3)throw Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:Y(n,8),rootDirectoryLength:Y(n,16),jsonMetadataOffset:Y(n,24),jsonMetadataLength:Y(n,32),leafDirectoryOffset:Y(n,40),leafDirectoryLength:Y(n,48),tileDataOffset:Y(n,56),tileDataLength:Y(n,64),numAddressedTiles:Y(n,72),numTileEntries:Y(n,80),numTileContents:Y(n,88),clustered:1===n.getUint8(96),internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:e}}function te(t){let e={buf:new Uint8Array(t),pos:0},n=N(e),r=[],i=0;for(let t=0;t<n;t++){let t=N(e);r.push({tileId:i+t,offset:0,length:0,runLength:1}),i+=t}for(let t=0;t<n;t++)r[t].runLength=N(e);for(let t=0;t<n;t++)r[t].length=N(e);for(let t=0;t<n;t++){let n=N(e);0===n&&t>0?r[t].offset=r[t-1].offset+r[t-1].length:r[t].offset=n-1}return r}S(X,"FetchSource"),S(Y,"getUint64"),S(tt,"bytesToHeader"),S(te,"deserializeIndex");
1var tn=class extends Error{};S(tn,"EtagMismatch");var tr=tn;function ti(t,e){return k(this,null,function*(){let n=yield t.getBytes(0,16384);if(19792!==new DataView(n.data).getUint16(0,!0))throw Error("Wrong magic number for PMTiles archive");let r=tt(n.data.slice(0,127),n.etag),i=n.data.slice(r.rootDirectoryOffset,r.rootDirectoryOffset+r.rootDirectoryLength),a=`${t.getKey()}|${r.etag||""}|${r.rootDirectoryOffset}|${r.rootDirectoryLength}`,o=te((yield e(i,r.internalCompression)));return[r,[a,o.length,o]]})}function ta(t,e,n,r,i,a){return k(this,null,function*(){let o=yield t.getBytes(n,r,a,i.etag),s=te((yield e(o.data,i.internalCompression)));if(0===s.length)throw Error("Empty directory is invalid");return s})}S(ti,"getHeaderAndRoot"),S(ta,"getDirectory"),S(class{constructor(t=100,e=!0,n=V){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=n}getHeader(t){return k(this,null,function*(){let e=t.getKey(),n=this.cache.get(e);if(n)return n.lastUsed=this.counter++,n.data;let r=yield ti(t,this.decompress);return r[1]&&this.cache.set(r[1][0],{lastUsed:this.counter++,data:r[1][2]}),this.cache.set(e,{lastUsed:this.counter++,data:r[0]}),this.prune(),r[0]})}getDirectory(t,e,n,r,i){return k(this,null,function*(){let a=`${t.getKey()}|${r.etag||""}|${e}|${n}`,o=this.cache.get(a);if(o)return o.lastUsed=this.counter++,o.data;let s=yield ta(t,this.decompress,e,n,r,i);return this.cache.set(a,{lastUsed:this.counter++,data:s}),this.prune(),s})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,e;this.cache.forEach((n,r)=>{n.lastUsed<t&&(t=n.lastUsed,e=r)}),e&&this.cache.delete(e)}}invalidate(t){return k(this,null,function*(){this.cache.delete(t.getKey())})}},"ResolvedValueCache");var to=class{constructor(t=100,e=!0,n=V){this.cache=new Map,this.invalidations=new Map,this.pendingFetches=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=n}getHeader(t){return k(this,null,function*(){let e=t.getKey(),n=this.cache.get(e);if(n)return n.lastUsed=this.counter++,yield n.data;let r=new Promise((e,n)=>{ti(t,this.decompress).then(t=>{t[1]&&this.cache.set(t[1][0],{lastUsed:this.counter++,data:Promise.resolve(t[1][2])}),e(t[0]),this.prune()}).catch(t=>{n(t)})});return this.cache.set(e,{lastUsed:this.counter++,data:r}),r})}trackSignal(t,e,n){e.refs++,n.addEventListener("abort",()=>{--e.refs<=0&&this.pendingFetches.get(t)===e&&(e.controller.abort(),this.cache.delete(t),this.pendingFetches.delete(t))},{once:!0})}getDirectory(t,e,n,r,i){return k(this,null,function*(){let a=`${t.getKey()}|${r.etag||""}|${e}|${n}`,o=this.cache.get(a);if(o){o.lastUsed=this.counter++;let t=this.pendingFetches.get(a);return t&&this.trackSignal(a,t,null!=i?i:new AbortController().signal),yield o.data}let s=new AbortController,l={controller:s,refs:0};this.trackSignal(a,l,null!=i?i:new AbortController().signal),this.pendingFetches.set(a,l);let c=new Promise((i,o)=>{ta(t,this.decompress,e,n,r,s.signal).then(t=>{this.pendingFetches.delete(a),i(t),this.prune()}).catch(t=>{o(t)})});return this.cache.set(a,{lastUsed:this.counter++,data:c}),c})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,e;this.cache.forEach((n,r)=>{n.lastUsed<t&&(t=n.lastUsed,e=r)}),e&&this.cache.delete(e)}}invalidate(t){return k(this,null,function*(){let e=t.getKey();if(this.invalidations.get(e))return yield this.invalidations.get(e);this.cache.delete(t.getKey());let n=new Promise((n,r)=>{this.getHeader(t).then(t=>{n(),this.invalidations.delete(e)}).catch(t=>{r(t)})});this.invalidations.set(e,n)})}};S(to,"SharedPromiseCache");var ts=class{constructor(t,e,n){"string"==typeof t?this.source=new X(t):this.source=t,n?this.decompress=n:this.decompress=V,e?this.cache=e:this.cache=new to}getHeader(){return k(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,e,n,r){return k(this,null,function*(){let i=W(t,e,n),a=yield this.cache.getHeader(this.source);if(null==r||r.throwIfAborted(),t<a.minZoom||t>a.maxZoom)return;let o=a.rootDirectoryOffset,s=a.rootDirectoryLength;for(let t=0;t<=3;t++){let t=yield this.cache.getDirectory(this.source,o,s,a,r);null==r||r.throwIfAborted();let e=Q(t,i);if(!e)return;if(e.runLength>0){let t=yield this.source.getBytes(a.tileDataOffset+e.offset,e.length,r,a.etag);
1return{data:yield this.decompress(t.data,a.tileCompression),cacheControl:t.cacheControl,expires:t.expires}}o=a.leafDirectoryOffset+e.offset,s=e.length}throw Error("Maximum directory depth exceeded")})}getZxy(t,e,n,r){return k(this,null,function*(){try{return yield this.getZxyAttempt(t,e,n,r)}catch(i){if(i instanceof tr)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,e,n,r);throw i}})}getMetadataAttempt(){return k(this,null,function*(){let t=yield this.cache.getHeader(this.source),e=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),n=yield this.decompress(e.data,t.internalCompression);return JSON.parse(new TextDecoder("utf-8").decode(n))})}getMetadata(){return k(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof tr)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return k(this,null,function*(){let e=yield this.getHeader(),n=yield this.getMetadata(),r=J(e.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${r}`],vector_layers:n.vector_layers,attribution:n.attribution,description:n.description,name:n.name,version:n.version,bounds:[e.minLon,e.minLat,e.maxLon,e.maxLat],center:[e.centerLon,e.centerLat,e.centerZoom],minzoom:e.minZoom,maxzoom:e.maxZoom}})}};S(ts,"PMTiles");var tl=ts},63297:(t,e,n)=>{"use strict";n.d(e,{yz:()=>l});var r,i=n(13421),a=n(35496),o=i||r||(r=n.t(i,2)),s=o.Layer.extend({options:{updateInterval:32,padding:.1,interactive:!1,pane:"tilePane"},initialize:function(t){o.setOptions(this,t),this._throttledUpdate=o.Util.throttle(this._update,this.options.updateInterval,this)},onAdd:function(t){this._container||this._initContainer();var e=this.getPaneName();t.getPane(e).appendChild(this._container),this._initGL(),this._offset=this._map.containerPointToLayerPoint([0,0]),t.options.zoomAnimation&&o.DomEvent.on(t._proxy,o.DomUtil.TRANSITION_END,this._transitionEnd,this)},onRemove:function(t){this._map._proxy&&this._map.options.zoomAnimation&&o.DomEvent.off(this._map._proxy,o.DomUtil.TRANSITION_END,this._transitionEnd,this);var e=this.getPaneName();t.getPane(e).removeChild(this._container),this._glMap.remove(),this._glMap=null},getEvents:function(){return{move:this._throttledUpdate,zoomanim:this._animateZoom,zoom:this._pinchZoom,zoomstart:this._zoomStart,zoomend:this._zoomEnd,resize:this._resize}},getAttribution:function(){if(this.options.attributionControl)return this.options.attributionControl.customAttribution;var t=this._glMap;if(t&&!1!==this.options.attributionControl){var e=t.getStyle();if(e&&e.sources)return Object.keys(e.sources).map(function(e){var n=t.getSource(e);return n&&"string"==typeof n.attribution?n.attribution.trim():null}).filter(Boolean).join(", ")}return""},getMaplibreMap:function(){return this._glMap},getCanvas:function(){return this._glMap.getCanvas()},getSize:function(){return this._map.getSize().multiplyBy(1+2*this.options.padding)},getBounds:function(){var t=this.getSize().multiplyBy(.5),e=this._map.latLngToContainerPoint(this._map.getCenter());return o.latLngBounds(this._map.containerPointToLatLng(e.subtract(t)),this._map.containerPointToLatLng(e.add(t)))},getContainer:function(){return this._container},getPaneName:function(){return this._map.getPane(this.options.pane)?this.options.pane:"tilePane"},_roundPoint:function(t){return{x:Math.round(t.x),y:Math.round(t.y)}},_initContainer:function(){var t=this._container=o.DomUtil.create("div","leaflet-gl-layer");this._resizeContainer();var e=this._map.getSize().multiplyBy(this.options.padding),n=this._map.containerPointToLayerPoint([0,0]).subtract(e);o.DomUtil.setPosition(t,this._roundPoint(n))},_resizeContainer:function(){var t=this.getSize();this._container.style.width=t.x+"px",this._container.style.height=t.y+"px"},_initGL:function(){var t=this._map.getCenter(),e=o.extend({},this.options,{container:this._container,center:[t.lng,t.lat],zoom:this._map.getZoom()-1,attributionControl:!1});this._glMap=new a.T5(e);var n=this._map,r=this.getAttribution(),i=this.getAttribution.bind(this);if(this._glMap.on("load",function(){n&&n.attributionControl&&(n.attributionControl.removeAttribution(r),n.attributionControl.addAttribution(i()))}),this._glMap.setTransformConstrain)this._glMap.setTransformConstrain(function(t,e){return{center:t,zoom:e}});else{var s=this._glMap.transform,l=Object.getPrototypeOf(s),c=Object.getOwnPropertyDescriptor(l,"latRange");(!c||c.set||c.writable)&&(s.latRange=null);var u=Object.getOwnPropertyDescriptor(l,"maxValidLatitude");(!u||u.set||u.writable)&&(s.maxValidLatitude=1/0),s._helper&&s._helper._latRange&&(s._helper._latRange=[-1/0,1/0])}this._transformGL(this._glMap),this._glMap._canvas.canvas?this._glMap._actualCanvas=this._glMap._canvas.canvas:this._glMap._actualCanvas=this._glMap._canvas;var h=this._glMap._actualCanvas;o.DomUtil.addClass(h,"leaflet-image-layer"),o.DomUtil.addClass(h,"leaflet-zoom-animated"),this.options.interactive&&o.DomUtil.addClass(h,"leaflet-interactive"),this.options.className&&o.DomUtil.addClass(h,this.options.className)},_update:function(t){if(this._map&&(this._offset=this._map.containerPointToLayerPoint([0,0]),!this._zooming)){var e=this._container,n=this._glMap,r=this._map.getSize().multiplyBy(this.options.padding),i=this._map.containerPointToLayerPoint([0,0]).subtract(r);o.DomUtil.setPosition(e,this._roundPoint(i)),this._transformGL(n)}},_transformGL:function(t){var e=this._map.getCenter();t.jumpTo({center:[e.lng,e.lat],zoom:this._map.getZoom()-1})},_pinchZoom:function(t){this._glMap.jumpTo({zoom:this._map.getZoom()-1,center:this._map.getCenter()})},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map.getSize().multiplyBy(this.options.padding*e),r=this.getSize()._divideBy(2),i=this._map.project(t.center,t.zoom)._subtract(r)._add(this._map._getMapPanePos().add(n))._round(),a=this._map.project(this._map.getBounds().getNorthWest(),t.zoom)._subtract(i);
1o.DomUtil.setTransform(this._glMap._actualCanvas,a.subtract(this._offset),e)},_zoomStart:function(t){this._zooming=!0},_zoomEnd:function(){var t=this._map.getZoomScale(this._map.getZoom());o.DomUtil.setTransform(this._glMap._actualCanvas,null,t),this._zooming=!1,this._update()},_transitionEnd:function(t){o.Util.requestAnimFrame(function(){var t=this._map.getZoom(),e=this._map.getCenter(),n=this._map.latLngToContainerPoint(this._map.getBounds().getNorthWest());this._resizeContainer(),o.DomUtil.setTransform(this._glMap._actualCanvas,n,1),this._glMap.once("moveend",o.Util.bind(function(){this._zoomEnd()},this)),this._glMap.jumpTo({center:e,zoom:t-1})},this)},_resize:function(t){this._transitionEnd(t)}}),l=function(t){return new s(t)};Object.isExtensible(o)&&(o.MaplibreGL=s,o.maplibreGL=l)},70691:(t,e,n)=>{"use strict";n.d(e,{p:()=>s});var r=n(43880),i=n(25053),a=n(91674),o=n(13421);let s=(0,r.Nq)(function({position:t,...e},n){let r=new o.Marker(t,e);return(0,i.Q)(r,(0,a.W4)(n,{overlayContainer:r}))},function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})},91674:(t,e,n)=>{"use strict";n.d(e,{U$:()=>s,W4:()=>a,dk:()=>o,fB:()=>i});var r=n(19282);function i(t){return Object.freeze({__version:1,map:t})}function a(t,e){return Object.freeze({...t,...e})}let o=(0,r.createContext)(null);function s(){let t=(0,r.use)(o);if(null==t)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.