From 1d29ed598cc3e93828b09b7c28af0322c62ff436 Mon Sep 17 00:00:00 2001 From: ryanweiler92 Date: Thu, 4 Jan 2024 09:48:26 -0500 Subject: [PATCH] Updates --- assets/basedecoder-ZA-T3ZBw.js | 1 + assets/decoder-ztUAhsIh.js | 1 + assets/deflate-EZWV29Lt.js | 1 + assets/index-1skV9Dxk.css | 1 + assets/index-jT9oq8Ed.js | 486 +++++++++++++++++++++++++++++++++ assets/jpeg-rjh0axXg.js | 1 + assets/lerc-gwbOzx28.js | 1 + assets/lzw-NamZKYVt.js | 1 + assets/packbits-65YHJGuf.js | 1 + assets/pako.esm-1A7OWKUb.js | 1 + assets/raw-FjKAlyiw.js | 1 + assets/webimage-NiQ987z3.js | 1 + earth_icon.svg | 271 ++++++++++++++++++ index.html | 14 + vite.svg | 1 + 15 files changed, 783 insertions(+) create mode 100644 assets/basedecoder-ZA-T3ZBw.js create mode 100644 assets/decoder-ztUAhsIh.js create mode 100644 assets/deflate-EZWV29Lt.js create mode 100644 assets/index-1skV9Dxk.css create mode 100644 assets/index-jT9oq8Ed.js create mode 100644 assets/jpeg-rjh0axXg.js create mode 100644 assets/lerc-gwbOzx28.js create mode 100644 assets/lzw-NamZKYVt.js create mode 100644 assets/packbits-65YHJGuf.js create mode 100644 assets/pako.esm-1A7OWKUb.js create mode 100644 assets/raw-FjKAlyiw.js create mode 100644 assets/webimage-NiQ987z3.js create mode 100644 earth_icon.svg create mode 100644 index.html create mode 100644 vite.svg diff --git a/assets/basedecoder-ZA-T3ZBw.js b/assets/basedecoder-ZA-T3ZBw.js new file mode 100644 index 0000000..849625b --- /dev/null +++ b/assets/basedecoder-ZA-T3ZBw.js @@ -0,0 +1 @@ +function l(o,n){let t=o.length-n,r=0;do{for(let a=n;a>0;a--)o[r+n]+=o[r],r++;t-=n}while(t>0)}function d(o,n,t){let r=0,a=o.length;const i=a/t;for(;a>n;){for(let e=n;e>0;--e)o[r+n]+=o[r],++r;a-=n}const s=o.slice();for(let e=0;e=o.byteLength);++c){let h;if(n===2){switch(a[0]){case 8:h=new Uint8Array(o,c*e*t*s,e*t*s);break;case 16:h=new Uint16Array(o,c*e*t*s,e*t*s/2);break;case 32:h=new Uint32Array(o,c*e*t*s,e*t*s/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}l(h,e)}else n===3&&(h=new Uint8Array(o,c*e*t*s,e*t*s),d(h,e,s))}return o}class g{async decode(n,t){const r=await this.decodeBlock(t),a=n.Predictor||1;if(a!==1){const i=!n.StripOffsets,s=i?n.TileWidth:n.ImageWidth,e=i?n.TileLength:n.RowsPerStrip||n.ImageLength;return f(r,a,s,e,n.BitsPerSample,n.PlanarConfiguration)}return r}}export{g as B}; diff --git a/assets/decoder-ztUAhsIh.js b/assets/decoder-ztUAhsIh.js new file mode 100644 index 0000000..16d02d7 --- /dev/null +++ b/assets/decoder-ztUAhsIh.js @@ -0,0 +1 @@ +import{g as e}from"./index-jT9oq8Ed.js";var t=Worker;const i=e(t);function I(){const A='function A(A,e,t,i,r,I,g){try{var n=A[I](g),a=n.value}catch(A){return void t(A)}n.done?e(a):Promise.resolve(a).then(i,r)}function e(e){return function(){var t=this,i=arguments;return new Promise((function(r,I){var g=e.apply(t,i);function n(e){A(g,r,I,n,a,"next",e)}function a(e){A(g,r,I,n,a,"throw",e)}n(void 0)}))}}function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}var i={exports:{}};!function(A){var e=function(A){var e,i=Object.prototype,r=i.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},g=I.iterator||"@@iterator",n=I.asyncIterator||"@@asyncIterator",a=I.toStringTag||"@@toStringTag";function o(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{o({},"")}catch(A){o=function(A,e,t){return A[e]=t}}function B(A,e,t,i){var r=e&&e.prototype instanceof h?e:h,I=Object.create(r.prototype),g=new S(i||[]);return I._invoke=function(A,e,t){var i=Q;return function(r,I){if(i===s)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw I;return R()}for(t.method=r,t.arg=I;;){var g=t.delegate;if(g){var n=m(g,t);if(n){if(n===c)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===Q)throw i=f,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=s;var a=C(A,e,t);if("normal"===a.type){if(i=t.done?f:E,a.arg===c)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(i=f,t.method="throw",t.arg=a.arg)}}}(A,t,g),I}function C(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=B;var Q="suspendedStart",E="suspendedYield",s="executing",f="completed",c={};function h(){}function l(){}function u(){}var w={};o(w,g,(function(){return this}));var d=Object.getPrototypeOf,D=d&&d(d(v([])));D&&D!==i&&r.call(D,g)&&(w=D);var y=u.prototype=h.prototype=Object.create(w);function k(A){["next","throw","return"].forEach((function(e){o(A,e,(function(A){return this._invoke(e,A)}))}))}function p(A,e){function i(I,g,n,a){var o=C(A[I],A,g);if("throw"!==o.type){var B=o.arg,Q=B.value;return Q&&"object"===t(Q)&&r.call(Q,"__await")?e.resolve(Q.__await).then((function(A){i("next",A,n,a)}),(function(A){i("throw",A,n,a)})):e.resolve(Q).then((function(A){B.value=A,n(B)}),(function(A){return i("throw",A,n,a)}))}a(o.arg)}var I;this._invoke=function(A,t){function r(){return new e((function(e,r){i(A,t,e,r)}))}return I=I?I.then(r,r):r()}}function m(A,t){var i=A.iterator[t.method];if(i===e){if(t.delegate=null,"throw"===t.method){if(A.iterator.return&&(t.method="return",t.arg=e,m(A,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return c}var r=C(i,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var I=r.arg;return I?I.done?(t[A.resultName]=I.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,c):I:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function G(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function F(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(G,this),this.reset(!0)}function v(A){if(A){var t=A[g];if(t)return t.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var i=-1,I=function t(){for(;++i=0;--I){var g=this.tryEntries[I],n=g.completion;if("root"===g.tryLoc)return i("end");if(g.tryLoc<=this.prev){var a=r.call(g,"catchLoc"),o=r.call(g,"finallyLoc");if(a&&o){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),F(t),c}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var i=t.completion;if("throw"===i.type){var r=i.arg;F(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,i){return this.delegate={iterator:v(A),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),c}},A}(A.exports);try{regeneratorRuntime=e}catch(A){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(i);var r=i.exports,I=new Map;function g(A,e){Array.isArray(A)||(A=[A]),A.forEach((function(A){return I.set(A,e)}))}function n(A){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function A(e){var t,i;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=I.get(e.Compression)){A.next=3;break}throw new Error("Unknown compression method identifier: ".concat(e.Compression));case 3:return A.next=5,t();case 5:return i=A.sent,A.abrupt("return",new i(e));case 7:case"end":return A.stop()}}),A)})))).apply(this,arguments)}g([void 0,1],(function(){return Promise.resolve().then((function(){return y})).then((function(A){return A.default}))})),g(5,(function(){return Promise.resolve().then((function(){return F})).then((function(A){return A.default}))})),g(6,(function(){throw new Error("old style JPEG compression is not supported.")})),g(7,(function(){return Promise.resolve().then((function(){return N})).then((function(A){return A.default}))})),g([8,32946],(function(){return Promise.resolve().then((function(){return OA})).then((function(A){return A.default}))})),g(32773,(function(){return Promise.resolve().then((function(){return _A})).then((function(A){return A.default}))})),g(34887,(function(){return Promise.resolve().then((function(){return le})).then(function(){var A=e(r.mark((function A(e){return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e.zstd.init();case 2:return A.abrupt("return",e);case 3:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}()).then((function(A){return A.default}))})),g(50001,(function(){return Promise.resolve().then((function(){return de})).then((function(A){return A.default}))}));var o=globalThis;function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function C(A,e){for(var t=0;t0;r--)A[i+e]+=A[i],i++;t-=e}while(t>0)}function l(A,e,t){for(var i=0,r=A.length,I=r/t;r>e;){for(var g=e;g>0;--g)A[i+e]+=A[i],++i;r-=e}for(var n=A.slice(),a=0;a=A.byteLength);++o){var B=void 0;if(2===e){switch(r[0]){case 8:B=new Uint8Array(A,o*a*t*n,a*t*n);break;case 16:B=new Uint16Array(A,o*a*t*n,a*t*n/2);break;case 32:B=new Uint32Array(A,o*a*t*n,a*t*n/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(r[0]," bits per sample."))}h(B,a)}else 3===e&&l(B=new Uint8Array(A,o*a*t*n,a*t*n),a,n)}return A}o.addEventListener("message",function(){var A=e(r.mark((function A(e){var t,i,I,g,a,B;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.data,i=t.id,I=t.fileDirectory,g=t.buffer,A.next=3,n(I);case 3:return a=A.sent,A.next=6,a.decode(I,g);case 6:B=A.sent,o.postMessage({decoded:B,id:i},[B]);case 8:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}());var w=function(){function A(){B(this,A)}var t;return Q(A,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n,a;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.decodeBlock(t);case 2:if(i=A.sent,1===(I=e.Predictor||1)){A.next=9;break}return g=!e.StripOffsets,n=g?e.TileWidth:e.ImageWidth,a=g?e.TileLength:e.RowsPerStrip||e.ImageLength,A.abrupt("return",u(i,I,n,a,e.BitsPerSample,e.PlanarConfiguration));case 9:return A.abrupt("return",i);case 10:case"end":return A.stop()}}),A,this)}))),function(A,e){return t.apply(this,arguments)})}]),A}();function d(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var D=function(A){s(t,w);var e=d(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return A}}]),t}(),y=Object.freeze({__proto__:null,default:D});function k(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}function p(A,e){for(var t=e.length-1;t>=0;t--)A.push(e[t]);return A}function m(A){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),i=0;i<=257;i++)e[i]=4096,t[i]=i;var r=258,I=9,g=0;function n(){r=258,I=9}function a(A){var e=function(A,e,t){var i=e%8,r=Math.floor(e/8),I=8-i,g=e+t-8*(r+1),n=8*(r+2)-(e+t),a=8*(r+2)-e;if(n=Math.max(0,n),r>=A.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var o=A[r]&Math.pow(2,8-i)-1,B=o<<=t-I;if(r+1>>n;B+=C<<=Math.max(0,t-a)}if(g>8&&r+2>>Q}return B}(A,g,I);return g+=I,e}function o(A,i){return t[r]=i,e[r]=A,++r-1}function B(A){for(var i=[],r=A;4096!==r;r=e[r])i.push(t[r]);return i}var C=[];n();for(var Q,E=new Uint8Array(A),s=a(E);257!==s;){if(256===s){for(n(),s=a(E);256===s;)s=a(E);if(257===s)break;if(s>256)throw new Error("corrupted code at scanline ".concat(s));p(C,B(s)),Q=s}else if(s=Math.pow(2,I)&&(12===I?Q=void 0:I++),s=a(E)}return new Uint8Array(C)}var G=function(A){s(t,w);var e=k(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return m(A).buffer}}]),t}(),F=Object.freeze({__proto__:null,default:G});function S(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var v=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function R(A,e){for(var t=0,i=[],r=16;r>0&&!A[r-1];)--r;i.push({children:[],index:0});for(var I,g=i[0],n=0;n0;)g=i.pop();for(g.index++,i.push(g);i.length<=n;)i.push(I={children:[],index:0}),g.children[g.index]=I.children,g=I;t++}n+10)return f--,s>>f&1;if(255===(s=A[E++])){var e=A[E++];if(e)throw new Error("unexpected marker: ".concat((s<<8|e).toString(16)))}return f=7,s>>>7}function h(A){for(var e,i=A;null!==(e=c());){if("number"==typeof(i=i[e]))return i;if("object"!==t(i))throw new Error("invalid huffman sequence")}return null}function l(A){for(var e=A,t=0;e>0;){var i=c();if(null===i)return;t=t<<1|i,--e}return t}function u(A){var e=l(A);return e>=1<0)w--;else for(var t=g,i=n;t<=i;){var r=h(A.huffmanTableAC),I=15&r,a=r>>4;if(0===I){if(a<15){w=l(a)+(1<>4,0===C)r<15?(w=l(r)+(1<>4;if(0===g){if(n<15)break;r+=16}else e[v[r+=n]]=u(g),r++}};var L,b,M=0;b=1===U?r[0].blocksPerLine*r[0].blocksPerColumn:B*i.mcusPerColumn;for(var N=I||b;M=65488&&L<=65495))break;E+=2}return E-Q}function L(A,e){var t=[],i=e.blocksPerLine,r=e.blocksPerColumn,I=i<<3,g=new Int32Array(64),n=new Uint8Array(64);function a(A,t,i){var r,I,g,n,a,o,B,C,Q,E,s=e.quantizationTable,f=i;for(E=0;E<64;E++)f[E]=A[E]*s[E];for(E=0;E<8;++E){var c=8*E;0!==f[1+c]||0!==f[2+c]||0!==f[3+c]||0!==f[4+c]||0!==f[5+c]||0!==f[6+c]||0!==f[7+c]?(r=5793*f[0+c]+128>>8,I=5793*f[4+c]+128>>8,g=f[2+c],n=f[6+c],a=2896*(f[1+c]-f[7+c])+128>>8,C=2896*(f[1+c]+f[7+c])+128>>8,o=f[3+c]<<4,Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+128>>8,g=1567*g-3784*n+128>>8,n=Q,Q=a-(B=f[5+c]<<4)+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+c]=r+C,f[7+c]=r-C,f[1+c]=I+B,f[6+c]=I-B,f[2+c]=g+o,f[5+c]=g-o,f[3+c]=n+a,f[4+c]=n-a):(Q=5793*f[0+c]+512>>10,f[0+c]=Q,f[1+c]=Q,f[2+c]=Q,f[3+c]=Q,f[4+c]=Q,f[5+c]=Q,f[6+c]=Q,f[7+c]=Q)}for(E=0;E<8;++E){var h=E;0!==f[8+h]||0!==f[16+h]||0!==f[24+h]||0!==f[32+h]||0!==f[40+h]||0!==f[48+h]||0!==f[56+h]?(r=5793*f[0+h]+2048>>12,I=5793*f[32+h]+2048>>12,g=f[16+h],n=f[48+h],a=2896*(f[8+h]-f[56+h])+2048>>12,C=2896*(f[8+h]+f[56+h])+2048>>12,o=f[24+h],Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+2048>>12,g=1567*g-3784*n+2048>>12,n=Q,Q=a-(B=f[40+h])+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+h]=r+C,f[56+h]=r-C,f[8+h]=I+B,f[48+h]=I-B,f[16+h]=g+o,f[40+h]=g-o,f[24+h]=n+a,f[32+h]=n-a):(Q=5793*i[E+0]+8192>>14,f[0+h]=Q,f[8+h]=Q,f[16+h]=Q,f[24+h]=Q,f[32+h]=Q,f[40+h]=Q,f[48+h]=Q,f[56+h]=Q)}for(E=0;E<64;++E){var l=128+(f[E]+8>>4);t[E]=l<0?0:l>255?255:l}}for(var o=0;o>4==0)for(var C=0;C<64;C++){B[v[C]]=A[e++]}else{if(o>>4!=1)throw new Error("DQT: invalid table spec");for(var Q=0;Q<64;Q++){B[v[Q]]=t()}}this.quantizationTables[15&o]=B}break;case 65472:case 65473:case 65474:t();for(var E={extended:65473===g,progressive:65474===g,precision:A[e++],scanLines:t(),samplesPerLine:t(),components:{},componentsOrder:[]},s=A[e++],f=void 0,c=0;c>4,l=15&A[e+1],u=A[e+2];E.componentsOrder.push(f),E.components[f]={h:h,v:l,quantizationIdx:u},e+=3}i(E),this.frames.push(E);break;case 65476:for(var w=t(),d=2;d>4==0?this.huffmanTablesDC[15&D]=R(y,m):this.huffmanTablesAC[15&D]=R(y,m)}break;case 65501:t(),this.resetInterval=t();break;case 65498:t();for(var F=A[e++],S=[],L=this.frames[0],b=0;b>4],M.huffmanTableAC=this.huffmanTablesAC[15&N],S.push(M)}var x=A[e++],J=A[e++],q=A[e++],Y=U(A,e,L,S,this.resetInterval,x,J,q>>4,15&q);e+=Y;break;case 65535:255!==A[e]&&e--;break;default:if(255===A[e-3]&&A[e-2]>=192&&A[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker ".concat(g.toString(16)))}g=t()}}},{key:"getResult",value:function(){var A=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var e=0;e=0;)A[e]=0}x(new Array(576)),x(new Array(60)),x(new Array(512)),x(new Array(256)),x(new Array(29)),x(new Array(30));var J=function(A,e,t,i){for(var r=65535&A|0,I=A>>>16&65535|0,g=0;0!==t;){t-=g=t>2e3?2e3:t;do{I=I+(r=r+e[i++]|0)|0}while(--g);r%=65521,I%=65521}return r|I<<16|0},q=new Uint32Array(function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}()),Y=function(A,e,t,i){var r=q,I=i+t;A^=-1;for(var g=i;g>>8^r[255&(A^e[g])];return-1^A},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},O=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},P=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!==t(i))throw new TypeError(i+"must be non-object");for(var r in i)O(i,r)&&(A[r]=i[r])}}return A},T=function(A){for(var e=0,t=0,i=A.length;t=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;_[254]=_[254]=1;var Z=function(A){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);var e,t,i,r,I,g=A.length,n=0;for(r=0;r>>6,e[I++]=128|63&t):t<65536?(e[I++]=224|t>>>12,e[I++]=128|t>>>6&63,e[I++]=128|63&t):(e[I++]=240|t>>>18,e[I++]=128|t>>>12&63,e[I++]=128|t>>>6&63,e[I++]=128|63&t);return e},j=function(A,e){var t,i,r=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));var I=new Array(2*r);for(i=0,t=0;t4)I[i++]=65533,t+=n-1;else{for(g&=2===n?31:3===n?15:7;n>1&&t1?I[i++]=65533:g<65536?I[i++]=g:(g-=65536,I[i++]=55296|g>>10&1023,I[i++]=56320|1023&g)}}}return function(A,e){if(e<65534&&A.subarray&&V)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));for(var t="",i=0;iA.length&&(e=A.length);for(var t=e-1;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+_[A[t]]>e?t:e};var z=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(A,e){var t,i,r,I,g,n,a,o,B,C,Q,E,s,f,c,h,l,u,w,d,D,y,k,p,m=A.state;t=A.next_in,k=A.input,i=t+(A.avail_in-5),r=A.next_out,p=A.output,I=r-(e-A.avail_out),g=r+(A.avail_out-257),n=m.dmax,a=m.wsize,o=m.whave,B=m.wnext,C=m.window,Q=m.hold,E=m.bits,s=m.lencode,f=m.distcode,c=(1<>>=u=l>>>24,E-=u,0===(u=l>>>16&255))p[r++]=65535&l;else{if(!(16&u)){if(0==(64&u)){l=s[(65535&l)+(Q&(1<>>=u,E-=u),E<15&&(Q+=k[t++]<>>=u=l>>>24,E-=u,!(16&(u=l>>>16&255))){if(0==(64&u)){l=f[(65535&l)+(Q&(1<n){A.msg="invalid distance too far back",m.mode=30;break A}if(Q>>>=u,E-=u,d>(u=r-I)){if((u=d-u)>o&&m.sane){A.msg="invalid distance too far back",m.mode=30;break A}if(D=0,y=C,0===B){if(D+=a-u,u2;)p[r++]=y[D++],p[r++]=y[D++],p[r++]=y[D++],w-=3;w&&(p[r++]=y[D++],w>1&&(p[r++]=y[D++]))}else{D=r-d;do{p[r++]=p[D++],p[r++]=p[D++],p[r++]=p[D++],w-=3}while(w>2);w&&(p[r++]=p[D++],w>1&&(p[r++]=p[D++]))}break}}break}}while(t>3,Q&=(1<<(E-=w<<3))-1,A.next_in=t,A.next_out=r,A.avail_in=t=1&&0===v[d];d--);if(D>d&&(D=d),0===d)return r[I++]=20971520,r[I++]=20971520,n.bits=1,0;for(w=1;w0&&(0===A||1!==d))return-1;for(R[1]=0,l=1;l<15;l++)R[l+1]=R[l]+v[l];for(u=0;u852||2===A&&m>592)return 1;for(;;){s=l-k,g[u]E?(f=U[L+g[u]],c=F[S+g[u]]):(f=96,c=0),a=1<>k)+(o-=a)]=s<<24|f<<16|c|0}while(0!==o);for(a=1<>=1;if(0!==a?(G&=a-1,G+=a):G=0,u++,0==--v[l]){if(l===d)break;l=e[t+g[u]]}if(l>D&&(G&C)!==B){for(0===k&&(k=D),Q+=w,p=1<<(y=l-k);y+k852||2===A&&m>592)return 1;r[B=G&C]=D<<24|y<<16|Q-I|0}}return 0!==G&&(r[Q+G]=l-k<<24|64<<16|0),n.bits=D,0},IA=H.Z_FINISH,gA=H.Z_BLOCK,nA=H.Z_TREES,aA=H.Z_OK,oA=H.Z_STREAM_END,BA=H.Z_NEED_DICT,CA=H.Z_STREAM_ERROR,QA=H.Z_DATA_ERROR,EA=H.Z_MEM_ERROR,sA=H.Z_BUF_ERROR,fA=H.Z_DEFLATED,cA=function(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)};function hA(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var lA,uA,wA=function(A){if(!A||!A.state)return CA;var e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,aA},dA=function(A){if(!A||!A.state)return CA;var e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,wA(A)},DA=function(A,e){var t;if(!A||!A.state)return CA;var i=A.state;return e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?CA:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,dA(A))},yA=function(A,e){if(!A)return CA;var t=new hA;A.state=t,t.window=null;var i=DA(A,e);return i!==aA&&(A.state=null),i},kA=!0,pA=function(A){if(kA){lA=new Int32Array(512),uA=new Int32Array(32);for(var e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(rA(1,A.lens,0,288,lA,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;rA(2,A.lens,0,32,uA,0,A.work,{bits:5}),kA=!1}A.lencode=lA,A.lenbits=9,A.distcode=uA,A.distbits=5},mA=function(A,e,t,i){var r,I=A.state;return null===I.window&&(I.wsize=1<=I.wsize?(I.window.set(e.subarray(t-I.wsize,t),0),I.wnext=0,I.whave=I.wsize):((r=I.wsize-I.wnext)>i&&(r=i),I.window.set(e.subarray(t-i,t-i+r),I.wnext),(i-=r)?(I.window.set(e.subarray(t-i,t),0),I.wnext=i,I.whave=I.wsize):(I.wnext+=r,I.wnext===I.wsize&&(I.wnext=0),I.whave>>8&255,t.check=Y(t.check,G,2,0),o=0,B=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&o)<<8)+(o>>8))%31){A.msg="incorrect header check",t.mode=30;break}if((15&o)!==fA){A.msg="unknown compression method",t.mode=30;break}if(B-=4,D=8+(15&(o>>>=4)),0===t.wbits)t.wbits=D;else if(D>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=3;case 3:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>8&255,G[2]=o>>>16&255,G[3]=o>>>24&255,t.check=Y(t.check,G,4,0)),o=0,B=0,t.mode=4;case 4:for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>8),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=5;case 5:if(1024&t.flags){for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((E=t.length)>n&&(E=n),E&&(t.head&&(D=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(I,I+E),D)),512&t.flags&&(t.check=Y(t.check,i,E,I)),n-=E,I+=E,t.length-=E),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===n)break A;E=0;do{D=i[I+E++],t.head&&D&&t.length<65536&&(t.head.name+=String.fromCharCode(D))}while(D&&E>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>=7&B,B-=7&B,t.mode=27;break}for(;B<3;){if(0===n)break A;n--,o+=i[I++]<>>=1)){case 0:t.mode=14;break;case 1:if(pA(t),t.mode=20,e===nA){o>>>=2,B-=2;break A}break;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}o>>>=2,B-=2;break;case 14:for(o>>>=7&B,B-=7&B;B<32;){if(0===n)break A;n--,o+=i[I++]<>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&o,o=0,B=0,t.mode=15,e===nA)break A;case 15:t.mode=16;case 16:if(E=t.length){if(E>n&&(E=n),E>a&&(E=a),0===E)break A;r.set(i.subarray(I,I+E),g),n-=E,I+=E,a-=E,g+=E,t.length-=E;break}t.mode=12;break;case 17:for(;B<14;){if(0===n)break A;n--,o+=i[I++]<>>=5,B-=5,t.ndist=1+(31&o),o>>>=5,B-=5,t.ncode=4+(15&o),o>>>=4,B-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,B-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=rA(0,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=c,B-=c,t.lens[t.have++]=l;else{if(16===l){for(p=c+2;B>>=c,B-=c,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}D=t.lens[t.have-1],E=3+(3&o),o>>>=2,B-=2}else if(17===l){for(p=c+3;B>>=c)),o>>>=3,B-=3}else{for(p=c+7;B>>=c)),o>>>=7,B-=7}if(t.have+E>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;E--;)t.lens[t.have++]=D}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,k={bits:t.lenbits},y=rA(1,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=rA(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,e===nA)break A;case 20:t.mode=21;case 21:if(n>=6&&a>=258){A.next_out=g,A.avail_out=a,A.next_in=I,A.avail_in=n,t.hold=o,t.bits=B,$(A,Q),g=A.next_out,r=A.output,a=A.avail_out,I=A.next_in,i=A.input,n=A.avail_in,o=t.hold,B=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;h=(m=t.lencode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,t.length=l,0===h){t.mode=26;break}if(32&h){t.back=-1,t.mode=12;break}if(64&h){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&h,t.mode=22;case 22:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;h=(m=t.distcode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,64&h){A.msg="invalid distance code",t.mode=30;break}t.offset=l,t.extra=15&h,t.mode=24;case 24:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(E=Q-a,t.offset>E){if((E=t.offset-E)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}E>t.wnext?(E-=t.wnext,s=t.wsize-E):s=t.wnext-E,E>t.length&&(E=t.length),f=t.window}else f=r,s=g-t.offset,E=t.length;E>a&&(E=a),a-=E,t.length-=E;do{r[g++]=f[s++]}while(--E);0===t.length&&(t.mode=21);break;case 26:if(0===a)break A;r[g++]=t.length,a--,t.mode=21;break;case 27:if(t.wrap){for(;B<32;){if(0===n)break A;n--,o|=i[I++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var t=GA.inflateInit2(this.strm,e.windowBits);if(t!==UA)throw new Error(K[t]);if(this.header=new FA,GA.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Z(e.dictionary):"[object ArrayBuffer]"===SA.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=GA.inflateSetDictionary(this.strm,e.dictionary))!==UA))throw new Error(K[t])}function qA(A,e){var t=new JA(e);if(t.push(A),t.err)throw t.msg||K[t.err];return t.result}JA.prototype.push=function(A,e){var t,i,r,I=this.strm,g=this.options.chunkSize,n=this.options.dictionary;if(this.ended)return!1;for(i=e===~~e?e:!0===e?RA:vA,"[object ArrayBuffer]"===SA.call(A)?I.input=new Uint8Array(A):I.input=A,I.next_in=0,I.avail_in=I.input.length;;){for(0===I.avail_out&&(I.output=new Uint8Array(g),I.next_out=0,I.avail_out=g),(t=GA.inflate(I,i))===bA&&n&&((t=GA.inflateSetDictionary(I,n))===UA?t=GA.inflate(I,i):t===NA&&(t=bA));I.avail_in>0&&t===LA&&I.state.wrap>0&&0!==A[I.next_in];)GA.inflateReset(I),t=GA.inflate(I,i);switch(t){case MA:case NA:case bA:case xA:return this.onEnd(t),this.ended=!0,!1}if(r=I.avail_out,I.next_out&&(0===I.avail_out||t===LA))if("string"===this.options.to){var a=W(I.output,I.next_out),o=I.next_out-a,B=j(I.output,a);I.next_out=o,I.avail_out=g-o,o&&I.output.set(I.output.subarray(a,a+o),0),this.onData(B)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(t!==UA||0!==r){if(t===LA)return t=GA.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,!0;if(0===I.avail_in)break}}return!0},JA.prototype.onData=function(A){this.chunks.push(A)},JA.prototype.onEnd=function(A){A===UA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=T(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var YA={Inflate:JA,inflate:qA,inflateRaw:function(A,e){return(e=e||{}).raw=!0,qA(A,e)},ungzip:qA,constants:H}.inflate;function KA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var HA=function(A){s(t,w);var e=KA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return YA(new Uint8Array(A)).buffer}}]),t}(),OA=Object.freeze({__proto__:null,default:HA});function PA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var TA,VA=function(A){s(t,w);var e=PA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){for(var e=new DataView(A),t=[],i=0;i>3],m<<=7&G),c=0;c>3]),128&m?(a&&(a[G]=1),f=f>(g=S.encoding<2?y[k++]:p)?g:f,n[G++]=g):(a&&(a[G]=0),n[G++]=i),m<<=1;G+=F}else if(S.encoding<2)for(h=0;h(g=y[k++])?g:f,n[G++]=g;G+=F}else for(f=f>p?p:f,h=0;h0){var g=new Uint8Array(Math.ceil(i.width*i.height/8)),n=(I=new DataView(A,e,i.mask.numBytes)).getInt16(0,!0),a=2,o=0;do{if(n>0)for(;n--;)g[o++]=I.getUint8(a++);else{var B=I.getUint8(a++);for(n=-n;n--;)g[o++]=B}n=I.getInt16(a,!0),a+=2}while(a0?1:0),s=Q+(i.height%Q>0?1:0);i.pixels.blocks=new Array(E*s);for(var f=0,c=0;c3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==d&&2!==d){if(d>>=6,w.offsetType=d,2===d)w.offset=I.getInt8(1),l++;else if(1===d)w.offset=I.getInt16(1,!0),l+=2;else{if(0!==d)throw"Invalid block offset type";w.offset=I.getFloat32(1,!0),l+=4}if(1===w.encoding)if(d=I.getUint8(l),l++,w.bitsPerPixel=63&d,d>>=6,w.numValidPixelsType=d,2===d)w.numValidPixels=I.getUint8(l),l++;else if(1===d)w.numValidPixels=I.getUint16(l,!0),l+=2;else{if(0!==d)throw"Invalid valid pixel count type";w.numValidPixels=I.getUint32(l,!0),l+=4}}var D;if(e+=l,3!==w.encoding)if(0===w.encoding){var y=(i.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";D=new ArrayBuffer(4*y),new Uint8Array(D).set(new Uint8Array(A,e,4*y));var k=new Float32Array(D);w.rawData=k,e+=4*y}else if(1===w.encoding){var p=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),m=Math.ceil(p/4);D=new ArrayBuffer(4*m),new Uint8Array(D).set(new Uint8Array(A,e,p)),w.stuffedData=new Uint32Array(D),e+=p}}else e++}return i.eofOffset=e,i},I=function(A,e,t,i,r,I,g){var n,a,o,B=(1<=e)a=o>>>Q-e&B,Q-=e;else{var f=e-Q;a=(o&B)<>>(Q=32-f)}I[n]=a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=r[o];else for(Q=Math.ceil((n-I)/g),a=0;a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=o=e?(Q=g>>>C-e&n,C-=e):(Q=(g&n)<<(B=e-C)&n,Q+=(g=A[a++])>>>(C=32-B)),E[o]=Q=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=e?(Q=g>>>E&n,C-=e,E+=e):(Q=g>>>E&n,C=32-(B=e-C),Q|=((g=A[a++])&(1<=t?(I=g>>>B-t&a,B-=t):(I=(g&a)<<(n=t-B)&a,I+=(g=A[o++])>>>(B=32-n)),e[r]=I;return e},C=function(A,e,t,i){var r,I,g,n,a=(1<=t?(I=g>>>C&a,B-=t,C+=t):(I=g>>>C&a,B=32-(n=t-B),I|=((g=A[o++])&(1<=359?359:r;r-=g;do{e+=A[I++]<<8,t+=e+=A[I++]}while(--g);e=(65535&e)+(e>>>16),t=(65535&t)+(t>>>16)}return 1&i&&(t+=e+=A[I]<<8),((t=(65535&t)+(t>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(A,e){var t=e.ptr,i=new Uint8Array(A,t,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;t+=6;var I,g=new DataView(A,t,8),n=g.getInt32(0,!0);if(r.fileVersion=n,t+=4,n>=3&&(r.checksum=g.getUint32(4,!0),t+=4),g=new DataView(A,t,12),r.height=g.getUint32(0,!0),r.width=g.getUint32(4,!0),t+=8,n>=4?(r.numDims=g.getUint32(8,!0),t+=4):r.numDims=1,g=new DataView(A,t,40),r.numValidPixel=g.getUint32(0,!0),r.microBlockSize=g.getInt32(4,!0),r.blobSize=g.getInt32(8,!0),r.imageType=g.getInt32(12,!0),r.maxZError=g.getFloat64(16,!0),r.zMin=g.getFloat64(24,!0),r.zMax=g.getFloat64(32,!0),t+=40,e.headerInfo=r,e.ptr=t,n>=3&&(I=n>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(A,t-I,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(A,e){var t=e.headerInfo,i=this.getDataTypeArray(t.imageType),r=t.numDims*this.getDataTypeSize(t.imageType),I=this.readSubArray(A,e.ptr,i,r),g=this.readSubArray(A,e.ptr+r,i,r);e.ptr+=2*r;var n,a=!0;for(n=0;n0){t=new Uint8Array(Math.ceil(g/8));var B=(a=new DataView(A,r,o.numBytes)).getInt16(0,!0),C=2,Q=0,E=0;do{if(B>0)for(;B--;)t[Q++]=a.getUint8(C++);else for(E=a.getUint8(C++),B=-B;B--;)t[Q++]=E;B=a.getInt16(C,!0),C+=2}while(C>3],s<<=7&f):s=t[f>>3],128&s&&(i[f]=1);e.pixels.resultMask=i,o.bitset=t,r+=o.numBytes}return e.ptr=r,e.mask=o,!0},readDataOneSweep:function(A,e,t,i){var r,I=e.ptr,g=e.headerInfo,n=g.numDims,a=g.width*g.height,o=g.imageType,B=g.numValidPixel*Q.getDataTypeSize(o)*n,C=e.pixels.resultMask;if(t===Uint8Array)r=new Uint8Array(A,I,B);else{var E=new ArrayBuffer(B);new Uint8Array(E).set(new Uint8Array(A,I,B)),r=new t(E)}if(r.length===a*n)e.pixels.resultPixels=i?Q.swapDimensionOrder(r,a,n,t,!0):r;else{e.pixels.resultPixels=new t(a*n);var s=0,f=0,c=0,h=0;if(n>1){if(i){for(f=0;f=g)return!1;var n=new Uint32Array(g-I);Q.decodeBits(A,e,n);var a,o,B,C,s=[];for(a=I;a0&&(s[o].second=l<>>32-C,32-w>=C?32===(w+=C)&&(w=0,l=u[++d]):(w+=C-32,l=u[++d],s[o].second|=l>>>32-w));var D=0,y=0,k=new E;for(a=0;a=t?t:D;var p,m,G,F,S,v=[];for(a=I;a0)if(p=[C,o],C<=y)for(m=s[o].second<=0;F--)m>>>F&1?(S.right||(S.right=new E),S=S.right):(S.left||(S.left=new E),S=S.left),0!==F||S.val||(S.val=p[1]);return{decodeLut:v,numBitsLUTQick:y,numBitsLUT:D,tree:k,stuffedData:u,srcPtr:d,bitPos:w}},readHuffman:function(A,e,t,i){var r,I,g,n,a,o,B,C,E,s=e.headerInfo.numDims,f=e.headerInfo.height,c=e.headerInfo.width,h=c*f,l=this.readHuffmanTree(A,e),u=l.decodeLut,w=l.tree,d=l.stuffedData,D=l.srcPtr,y=l.bitPos,k=l.numBitsLUTQick,p=l.numBitsLUT,m=0===e.headerInfo.imageType?128:0,G=e.pixels.resultMask,F=0;y>0&&(D++,y=0);var S,v=d[D],R=1===e.encodeMode,U=new t(h*s),L=U;if(s<2||R){for(S=0;S1&&(L=new t(U.buffer,h*S,h),F=0),e.headerInfo.numValidPixel===c*f)for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(g+=B>0?F:o>0?L[C-c]:F,g&=255,L[C]=g,F=g):L[C]=g}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(B>0&&G[C-1]?g+=F:o>0&&G[C-c]?g+=L[C-c]:g+=F,g&=255,L[C]=g,F=g):L[C]=g}}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,L[C]=g}e.ptr=e.ptr+4*(D+1)+(y>0?4:0),e.pixels.resultPixels=U,s>1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(U,h,s,t))},decodeBits:function(A,e,t,i,r){var I=e.headerInfo,Q=I.fileVersion,E=0,s=A.byteLength-e.ptr>=5?5:A.byteLength-e.ptr,f=new DataView(A,e.ptr,s),c=f.getUint8(0);E++;var h=c>>6,l=0===h?4:3-h,u=(32&c)>0,w=31&c,d=0;if(1===l)d=f.getUint8(E),E++;else if(2===l)d=f.getUint16(E,!0),E+=2;else{if(4!==l)throw"Invalid valid pixel count type";d=f.getUint32(E,!0),E+=4}var D,y,k,p,m,G,F,S,v,R=2*I.maxZError,U=I.numDims>1?I.maxValues[r]:I.zMax;if(u){for(e.counter.lut++,S=f.getUint8(E),E++,p=Math.ceil((S-1)*w/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),k=new Uint8Array(y),e.ptr+=E,k.set(new Uint8Array(A,e.ptr,p)),F=new Uint32Array(y),e.ptr+=p,v=0;S-1>>>v;)v++;p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,G=Q>=3?o(F,w,S-1,i,R,U):n(F,w,S-1,i,R,U),Q>=3?a(D,t,v,d,G):g(D,t,v,d,G)}else e.counter.bitstuffer++,v=w,e.ptr+=E,v>0&&(p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,Q>=3?null==i?C(D,t,v,d):a(D,t,v,d,!1,i,R,U):null==i?B(D,t,v,d):g(D,t,v,d,!1,i,R,U))},readTiles:function(A,e,t,i){var r=e.headerInfo,I=r.width,g=r.height,n=I*g,a=r.microBlockSize,o=r.imageType,B=Q.getDataTypeSize(o),C=Math.ceil(I/a),E=Math.ceil(g/a);e.pixels.numBlocksY=E,e.pixels.numBlocksX=C,e.pixels.ptr=0;var s,f,c,h,l,u,w,d,D,y,k=0,p=0,m=0,G=0,F=0,S=0,v=0,R=0,U=0,L=0,b=0,M=0,N=0,x=0,J=0,q=new t(a*a),Y=g%a||a,K=I%a||a,H=r.numDims,O=e.pixels.resultMask,P=e.pixels.resultPixels,T=r.fileVersion>=5?14:15,V=r.zMax;for(m=0;m1?(y=P,L=m*I*a+G*a,P=new t(e.pixels.resultPixels.buffer,n*d*B,n),V=r.maxValues[d]):y=null,v=A.byteLength-e.ptr,f={},J=0,R=(s=new DataView(A,e.ptr,Math.min(10,v))).getUint8(0),J++,D=r.fileVersion>=5?4&R:0,U=R>>6&255,(R>>2&T)!=(G*a>>3&T))throw"integrity issue";if(D&&0===d)throw"integrity issue";if((l=3&R)>3)throw e.ptr+=J,"Invalid block encoding ("+l+")";if(2!==l)if(0===l){if(D)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=J,M=(M=F*S*B)<(N=A.byteLength-e.ptr)?M:N,c=new ArrayBuffer(M%B==0?M:M+B-M%B),new Uint8Array(c).set(new Uint8Array(A,e.ptr,M)),h=new t(c),x=0,O)for(k=0;k1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(e.pixels.resultPixels,n,H,t))},formatFileInfo:function(A){return{fileIdentifierString:A.headerInfo.fileIdentifierString,fileVersion:A.headerInfo.fileVersion,imageType:A.headerInfo.imageType,height:A.headerInfo.height,width:A.headerInfo.width,numValidPixel:A.headerInfo.numValidPixel,microBlockSize:A.headerInfo.microBlockSize,blobSize:A.headerInfo.blobSize,maxZError:A.headerInfo.maxZError,pixelType:Q.getPixelType(A.headerInfo.imageType),eofOffset:A.eofOffset,mask:A.mask?{numBytes:A.mask.numBytes}:null,pixels:{numBlocksX:A.pixels.numBlocksX,numBlocksY:A.pixels.numBlocksY,maxValue:A.headerInfo.zMax,minValue:A.headerInfo.zMin,noDataValue:A.noDataValue}}},constructConstantSurface:function(A,e){var t=A.headerInfo.zMax,i=A.headerInfo.zMin,r=A.headerInfo.maxValues,I=A.headerInfo.numDims,g=A.headerInfo.height*A.headerInfo.width,n=0,a=0,o=0,B=A.pixels.resultMask,C=A.pixels.resultPixels;if(B)if(I>1){if(e)for(n=0;n1&&i!==t)if(e)for(n=0;n=-128&&e<=127;break;case 1:t=e>=0&&e<=255;break;case 2:t=e>=-32768&&e<=32767;break;case 3:t=e>=0&&e<=65536;break;case 4:t=e>=-2147483648&&e<=2147483647;break;case 5:t=e>=0&&e<=4294967296;break;case 6:t=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:t=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:t=!1}return t},getDataTypeSize:function(A){var e=0;switch(A){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=A}return e},getDataTypeUsed:function(A,e){var t=A;switch(A){case 2:case 4:t=A-e;break;case 3:case 5:t=A-2*e;break;case 6:t=0===e?A:1===e?2:1;break;case 7:t=0===e?A:A-2*e+1;break;default:t=A}return t},getOnePixel:function(A,e,t,i){var r=0;switch(t){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(A,e,t,i,r){var I=0,g=0,n=0,a=0,o=A;if(t>1)if(o=new i(e*t),r)for(I=0;I5)throw"unsupported lerc version 2."+g;Q.readMask(A,r),I.numValidPixel===I.width*I.height||r.pixels.resultMask||(r.pixels.resultMask=e.maskData);var a=I.width*I.height;r.pixels.resultPixels=new n(a*I.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o,B=!e.returnPixelInterleavedDims;if(0!==I.numValidPixel)if(I.zMax===I.zMin)Q.constructConstantSurface(r,B);else if(g>=4&&Q.checkMinMaxRanges(A,r))Q.constructConstantSurface(r,B);else{var C=new DataView(A,r.ptr,2),E=C.getUint8(0);if(r.ptr++,E)Q.readDataOneSweep(A,r,n,B);else if(g>1&&I.imageType<=1&&Math.abs(I.maxZError-.5)<1e-5){var s=C.getUint8(1);if(r.ptr++,r.encodeMode=s,s>2||g<4&&s>1)throw"Invalid Huffman flag "+s;s?Q.readHuffman(A,r,n,B):Q.readTiles(A,r,n,B)}else Q.readTiles(A,r,n,B)}r.eofOffset=r.ptr,e.inputOffset?(o=r.headerInfo.blobSize+e.inputOffset-r.ptr,Math.abs(o)>=1&&(r.eofOffset=e.inputOffset+r.headerInfo.blobSize)):(o=r.headerInfo.blobSize-r.ptr,Math.abs(o)>=1&&(r.eofOffset=r.headerInfo.blobSize));var f={width:I.width,height:I.height,pixelData:r.pixels.resultPixels,minValue:I.zMin,maxValue:I.zMax,validPixelCount:I.numValidPixel,dimCount:I.numDims,dimStats:{minValues:I.minValues,maxValues:I.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&Q.isValidPixelValue(I.imageType,t)){var c=r.pixels.resultMask;for(i=0;i1&&(o&&f.push(o),d.fileInfo.mask&&d.fileInfo.mask.numBytes>0&&w++),E++,u.pixels.push(d.pixelData),u.statistics.push({minValue:d.minValue,maxValue:d.maxValue,noDataValue:d.noDataValue,dimStats:d.dimStats})}if(i>1&&w>1){for(Q=u.width*u.height,u.bandMasks=f,(o=new Uint8Array(Q)).set(f[0]),B=1;B1&&void 0!==arguments[1]?arguments[1]:0;if(!jA)throw new Error("ZSTDDecoder: Await .init() before decoding.");var t=A.byteLength,i=jA.exports.malloc(t);WA.set(A,i),e=e||Number(jA.exports.ZSTD_findDecompressedSize(i,t));var r=jA.exports.malloc(e),I=jA.exports.ZSTD_decompress(r,e,i,t),g=WA.slice(r,r+I);return jA.exports.free(i),jA.exports.free(r),g}}]),A}(),ee="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gA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F/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAg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gABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQX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gQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAt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9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",te={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(var re in te)te.hasOwnProperty(re)&&(ie[te[re]]=parseInt(re,10));ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs;var Ie={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ge={};for(var ne in Ie)Ie.hasOwnProperty(ne)&&(ge[Ie[ne]]=parseInt(ne,10));var ae=1,oe=0,Be=1,Ce=2,Qe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},Ee={};for(var se in Qe)Qe.hasOwnProperty(se)&&(Ee[Qe[se]]=parseInt(se,10));function fe(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var ce=new Ae,he=function(A){s(t,w);var e=fe(t);function t(A){var i;return B(this,t),(i=e.call(this)).planarConfiguration=void 0!==A.PlanarConfiguration?A.PlanarConfiguration:1,i.samplesPerPixel=void 0!==A.SamplesPerPixel?A.SamplesPerPixel:1,i.addCompression=A.LercParameters[ae],i}return Q(t,[{key:"decodeBlock",value:function(A){switch(this.addCompression){case oe:break;case Be:A=YA(new Uint8Array(A)).buffer;break;case Ce:A=ce.decode(new Uint8Array(A)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return zA.decode(A,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),t}(),le=Object.freeze({__proto__:null,zstd:ce,default:he});function ue(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var we=function(A){s(I,w);var t,i=ue(I);function I(){var A;if(B(this,I),A=i.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return A}return Q(I,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return i=new Blob([t]),A.next=3,createImageBitmap(i);case 3:return I=A.sent,"undefined"!=typeof document?((g=document.createElement("canvas")).width=I.width,g.height=I.height):g=new OffscreenCanvas(I.width,I.height),(n=g.getContext("2d")).drawImage(I,0,0),A.abrupt("return",n.getImageData(0,0,I.width,I.height).data.buffer);case 8:case"end":return A.stop()}}),A)}))),function(A,e){return t.apply(this,arguments)})}]),I}(),de=Object.freeze({__proto__:null,default:we});';return new i(typeof Buffer<"u"?"data:application/javascript;base64,"+Buffer.from(A,"binary").toString("base64"):URL.createObjectURL(new Blob([A],{type:"application/javascript"})))}export{I as create}; diff --git a/assets/deflate-EZWV29Lt.js b/assets/deflate-EZWV29Lt.js new file mode 100644 index 0000000..9a3efc8 --- /dev/null +++ b/assets/deflate-EZWV29Lt.js @@ -0,0 +1 @@ +import{i as r}from"./pako.esm-1A7OWKUb.js";import{B as a}from"./basedecoder-ZA-T3ZBw.js";class s extends a{decodeBlock(e){return r(new Uint8Array(e)).buffer}}export{s as default}; diff --git a/assets/index-1skV9Dxk.css b/assets/index-1skV9Dxk.css new file mode 100644 index 0000000..6824050 --- /dev/null +++ b/assets/index-1skV9Dxk.css @@ -0,0 +1 @@ +:root,:host{--ol-background-color: white;--ol-accent-background-color: #F5F5F5;--ol-subtle-background-color: rgba(128, 128, 128, .25);--ol-partial-background-color: rgba(255, 255, 255, .75);--ol-foreground-color: #333333;--ol-subtle-foreground-color: #666666;--ol-brand-color: #00AAFF}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid var(--ol-background-color);background-color:var(--ol-partial-background-color)}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:var(--ol-partial-background-color);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-bar-inner{display:flex}.ol-scale-step-marker{width:1px;height:15px;background-color:var(--ol-foreground-color);float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:10px;z-index:11;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{position:absolute;font-size:12px;text-align:center;bottom:25px;color:var(--ol-foreground-color);text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid var(--ol-foreground-color)}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.ol-viewport canvas{all:unset;overflow:hidden}.ol-viewport{touch-action:pan-x pan-y}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:var(--ol-subtle-background-color);border-radius:4px}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:var(--ol-subtle-foreground-color);font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:var(--ol-background-color);border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;outline:1px solid var(--ol-subtle-foreground-color);color:var(--ol-foreground-color)}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:var(--ol-subtle-foreground-color);text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:var(--ol-foreground-color);text-shadow:0 0 2px var(--ol-background-color);font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:var(--ol-partial-background-color)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547}a:hover{color:#747bff}button{background-color:#f9f9f9}} diff --git a/assets/index-jT9oq8Ed.js b/assets/index-jT9oq8Ed.js new file mode 100644 index 0000000..ddd2203 --- /dev/null +++ b/assets/index-jT9oq8Ed.js @@ -0,0 +1,486 @@ +function _5(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function x5(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var NT={exports:{}},Nh={},zT={exports:{}},ge={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lu=Symbol.for("react.element"),b5=Symbol.for("react.portal"),S5=Symbol.for("react.fragment"),w5=Symbol.for("react.strict_mode"),E5=Symbol.for("react.profiler"),T5=Symbol.for("react.provider"),C5=Symbol.for("react.context"),R5=Symbol.for("react.forward_ref"),P5=Symbol.for("react.suspense"),A5=Symbol.for("react.memo"),k5=Symbol.for("react.lazy"),_x=Symbol.iterator;function I5(t){return t===null||typeof t!="object"?null:(t=_x&&t[_x]||t["@@iterator"],typeof t=="function"?t:null)}var BT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jT=Object.assign,UT={};function il(t,e,n){this.props=t,this.context=e,this.refs=UT,this.updater=n||BT}il.prototype.isReactComponent={};il.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};il.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function VT(){}VT.prototype=il.prototype;function cv(t,e,n){this.props=t,this.context=e,this.refs=UT,this.updater=n||BT}var uv=cv.prototype=new VT;uv.constructor=cv;jT(uv,il.prototype);uv.isPureReactComponent=!0;var xx=Array.isArray,GT=Object.prototype.hasOwnProperty,dv={current:null},WT={key:!0,ref:!0,__self:!0,__source:!0};function HT(t,e,n){var r,i={},o=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)GT.call(e,r)&&!WT.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(10?Lt(ol,--_n):0,Da--,ht===10&&(Da=1,Bh--),ht}function An(){return ht=_n2||bc(ht)>3?"":" "}function tL(t,e){for(;--e&&An()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return cu(t,Nd()+(e<6&&Nr()==32&&An()==32))}function s0(t){for(;An();)switch(ht){case t:return _n;case 34:case 39:t!==34&&t!==39&&s0(ht);break;case 40:t===41&&s0(t);break;case 92:An();break}return _n}function nL(t,e){for(;An()&&t+ht!==57;)if(t+ht===84&&Nr()===47)break;return"/*"+cu(e,_n-1)+"*"+zh(t===47?t:An())}function rL(t){for(;!bc(Nr());)An();return cu(t,_n)}function iL(t){return JT(Bd("",null,null,null,[""],t=QT(t),0,[0],t))}function Bd(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,m=1,v=1,y=1,g=0,_="",x=i,S=o,T=r,w=_;v;)switch(p=g,g=An()){case 40:if(p!=108&&Lt(w,d-1)==58){o0(w+=Re(zd(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:w+=zd(g);break;case 9:case 10:case 13:case 32:w+=eL(p);break;case 92:w+=tL(Nd()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Gu(oL(nL(An(),Nd()),e,n),l);break;default:w+="/"}break;case 123*m:a[c++]=kr(w)*y;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:y==-1&&(w=Re(w,/\f/g,"")),h>0&&kr(w)-d&&Gu(h>32?wx(w+";",r,n,d-1):wx(Re(w," ","")+";",r,n,d-2),l);break;case 59:w+=";";default:if(Gu(T=Sx(w,e,n,c,u,i,a,_,x=[],S=[],d),o),g===123)if(u===0)Bd(w,e,T,T,x,o,d,a,S);else switch(f===99&&Lt(w,3)===110?100:f){case 100:case 108:case 109:case 115:Bd(t,T,T,r&&Gu(Sx(t,T,T,0,0,i,a,_,i,x=[],d),S),i,S,d,a,r?x:S);break;default:Bd(w,T,T,T,[""],S,0,a,S)}}c=u=h=0,m=y=1,_=w="",d=s;break;case 58:d=1+kr(w),h=p;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&J5()==125)continue}switch(w+=zh(g),g*m){case 38:y=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(kr(w)-1)*y,y=1;break;case 64:Nr()===45&&(w+=zd(An())),f=Nr(),u=d=kr(_=w+=rL(Nd())),g++;break;case 45:p===45&&kr(w)==2&&(m=0)}}return o}function Sx(t,e,n,r,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=gv(f),p=0,m=0,v=0;p0?f[y]+" "+g:Re(g,/&\f/g,f[y])))&&(l[v++]=_);return jh(t,e,n,i===0?hv:a,l,c,u)}function oL(t,e,n){return jh(t,e,n,XT,zh(Q5()),xc(t,2,-2),0)}function wx(t,e,n,r){return jh(t,e,n,pv,xc(t,0,r),xc(t,r+1,-1),r)}function ma(t,e){for(var n="",r=gv(t),i=0;i6)switch(Lt(t,e+1)){case 109:if(Lt(t,e+4)!==45)break;case 102:return Re(t,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+Rf+(Lt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~o0(t,"stretch")?tC(Re(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Lt(t,e+1)!==115)break;case 6444:switch(Lt(t,kr(t)-3-(~o0(t,"!important")&&10))){case 107:return Re(t,":",":"+Te)+t;case 101:return Re(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(Lt(t,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+jt+"$2box$3")+t}break;case 5936:switch(Lt(t,e+11)){case 114:return Te+t+jt+Re(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Te+t+jt+Re(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Te+t+jt+Re(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Te+t+jt+t+t}return t}var pL=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case pv:e.return=tC(e.value,e.length);break;case YT:return ma([ml(e,{value:Re(e.value,"@","@"+Te)})],i);case hv:if(e.length)return q5(e.props,function(o){switch(Z5(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ma([ml(e,{props:[Re(o,/:(read-\w+)/,":"+Rf+"$1")]})],i);case"::placeholder":return ma([ml(e,{props:[Re(o,/:(plac\w+)/,":"+Te+"input-$1")]}),ml(e,{props:[Re(o,/:(plac\w+)/,":"+Rf+"$1")]}),ml(e,{props:[Re(o,/:(plac\w+)/,jt+"input-$1")]})],i)}return""})}},gL=[pL],mL=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||gL,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var PL={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},AL=/[A-Z]|^ms/g,kL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,lC=function(e){return e.charCodeAt(1)===45},Cx=function(e){return e!=null&&typeof e!="boolean"},gg=eC(function(t){return lC(t)?t:t.replace(AL,"-$&").toLowerCase()}),Rx=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(kL,function(r,i,o){return Ir={name:i,styles:o,next:Ir},i})}return PL[e]!==1&&!lC(e)&&typeof n=="number"&&n!==0?n+"px":n};function Sc(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ir={name:n.name,styles:n.styles,next:Ir},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ir={name:r.name,styles:r.styles,next:Ir},r=r.next;var i=n.styles+";";return i}return IL(t,e,n)}case"function":{if(t!==void 0){var o=Ir,s=n(t);return Ir=o,Sc(t,e,s)}break}}if(e==null)return n;var a=e[n];return a!==void 0?a:n}function IL(t,e,n){var r="";if(Array.isArray(n))for(var i=0;ik.jsx(Qh,{styles:hC}),BL=({scope:t=""})=>k.jsx(Qh,{styles:fC` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${t} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${t} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${t} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${t} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${t} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${t} :where(b, strong) { + font-weight: bold; + } + + ${t} small { + font-size: 80%; + } + + ${t} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${t} sub { + bottom: -0.25em; + } + + ${t} sup { + top: -0.5em; + } + + ${t} img { + border-style: none; + } + + ${t} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${t} :where(button, input) { + overflow: visible; + } + + ${t} :where(button, select) { + text-transform: none; + } + + ${t} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${t} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${t} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${t} progress { + vertical-align: baseline; + } + + ${t} textarea { + overflow: auto; + } + + ${t} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${t} input[type="number"]::-webkit-inner-spin-button, + ${t} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${t} input[type="number"] { + -moz-appearance: textfield; + } + + ${t} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${t} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${t} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${t} details { + display: block; + } + + ${t} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${t} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${t} button { + background: transparent; + padding: 0; + } + + ${t} fieldset { + margin: 0; + padding: 0; + } + + ${t} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${t} textarea { + resize: vertical; + } + + ${t} :where(button, [role="button"]) { + cursor: pointer; + } + + ${t} button::-moz-focus-inner { + border: 0 !important; + } + + ${t} table { + border-collapse: collapse; + } + + ${t} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${t} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${t} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${t} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${t} select::-ms-expand { + display: none; + } + + ${hC} + `});function jL(t,e){return`${t} returned \`undefined\`. Seems you forgot to wrap component within ${e}`}function wi(t={}){const{name:e,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=t,a=C.createContext(s);a.displayName=e;function l(){var c;const u=C.useContext(a);if(!u&&n){const d=new Error(o??jL(r,i));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}var[UL,VL]=wi({strict:!1,name:"PortalManagerContext"});function pC(t){const{children:e,zIndex:n}=t;return k.jsx(UL,{value:{zIndex:n},children:e})}pC.displayName="PortalManager";var Yo=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,gC={exports:{}},$n={},mC={exports:{}},yC={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(t){function e(O,B){var N=O.length;O.push(B);e:for(;0>>1,te=O[X];if(0>>1;Xi(ne,N))dei(he,ne)?(O[X]=he,O[de]=N,X=de):(O[X]=ne,O[Y]=N,X=Y);else if(dei(he,N))O[X]=he,O[de]=N,X=de;else break e}}return B}function i(O,B){var N=O.sortIndex-B.sortIndex;return N!==0?N:O.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(O){for(var B=n(c);B!==null;){if(B.callback===null)r(c);else if(B.startTime<=O)r(c),B.sortIndex=B.expirationTime,e(l,B);else break;B=n(c)}}function x(O){if(m=!1,_(O),!p)if(n(l)!==null)p=!0,oe(S);else{var B=n(c);B!==null&&ee(x,B.startTime-O)}}function S(O,B){p=!1,m&&(m=!1,y(E),E=-1),h=!0;var N=f;try{for(_(B),d=n(l);d!==null&&(!(d.expirationTime>B)||O&&!z());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var te=X(d.expirationTime<=B);B=t.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),_(B)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var Y=n(c);Y!==null&&ee(x,Y.startTime-B),q=!1}return q}finally{d=null,f=N,h=!1}}var T=!1,w=null,E=-1,I=5,M=-1;function z(){return!(t.unstable_now()-MO||125X?(O.sortIndex=N,e(c,O),n(l)===null&&O===n(c)&&(m?(y(E),E=-1):m=!0,ee(x,N-X))):(O.sortIndex=te,e(l,O),p||h||(p=!0,oe(S))),O},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(O){var B=f;return function(){var N=f;f=B;try{return O.apply(this,arguments)}finally{f=N}}}})(yC);mC.exports=yC;var GL=mC.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var vC=C,Mn=GL;function D(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),a0=Object.prototype.hasOwnProperty,WL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kx={},Ix={};function HL(t){return a0.call(Ix,t)?!0:a0.call(kx,t)?!1:WL.test(t)?Ix[t]=!0:(kx[t]=!0,!1)}function KL(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function XL(t,e,n,r){if(e===null||typeof e>"u"||KL(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function on(t,e,n,r,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ft[t]=new on(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ft[e]=new on(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ft[t]=new on(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ft[t]=new on(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ft[t]=new on(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ft[t]=new on(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ft[t]=new on(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ft[t]=new on(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ft[t]=new on(t,5,!1,t.toLowerCase(),null,!1,!1)});var xv=/[\-:]([a-z])/g;function bv(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(xv,bv);Ft[e]=new on(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(xv,bv);Ft[e]=new on(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(xv,bv);Ft[e]=new on(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ft[t]=new on(t,1,!1,t.toLowerCase(),null,!1,!1)});Ft.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ft[t]=new on(t,1,!1,t.toLowerCase(),null,!0,!0)});function Sv(t,e,n,r){var i=Ft.hasOwnProperty(e)?Ft[e]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=s&&0<=a);break}}}finally{yg=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Dl(t):""}function YL(t){switch(t.tag){case 5:return Dl(t.type);case 16:return Dl("Lazy");case 13:return Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 2:case 15:return t=vg(t.type,!1),t;case 11:return t=vg(t.type.render,!1),t;case 1:return t=vg(t.type,!0),t;default:return""}}function d0(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Xs:return"Fragment";case Ks:return"Portal";case l0:return"Profiler";case wv:return"StrictMode";case c0:return"Suspense";case u0:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case bC:return(t.displayName||"Context")+".Consumer";case xC:return(t._context.displayName||"Context")+".Provider";case Ev:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Tv:return e=t.displayName||null,e!==null?e:d0(t.type)||"Memo";case Ni:e=t._payload,t=t._init;try{return d0(t(e))}catch{}}return null}function ZL(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return d0(e);case 8:return e===wv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function co(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wC(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function qL(t){var e=wC(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){t._valueTracker||(t._valueTracker=qL(t))}function EC(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=wC(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Af(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function f0(t,e){var n=e.checked;return Je({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Lx(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=co(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function TC(t,e){e=e.checked,e!=null&&Sv(t,"checked",e,!1)}function h0(t,e){TC(t,e);var n=co(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?p0(t,e.type,n):e.hasOwnProperty("defaultValue")&&p0(t,e.type,co(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Ox(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function p0(t,e,n){(e!=="number"||Af(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Fl=Array.isArray;function ya(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Ku.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Tc(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Xl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},QL=["Webkit","ms","Moz","O"];Object.keys(Xl).forEach(function(t){QL.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Xl[e]=Xl[t]})});function AC(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Xl.hasOwnProperty(t)&&Xl[t]?(""+e).trim():e+"px"}function kC(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=AC(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var JL=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function y0(t,e){if(e){if(JL[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(D(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(D(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(D(61))}if(e.style!=null&&typeof e.style!="object")throw Error(D(62))}}function v0(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _0=null;function Cv(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var x0=null,va=null,_a=null;function $x(t){if(t=fu(t)){if(typeof x0!="function")throw Error(D(280));var e=t.stateNode;e&&(e=rp(e),x0(t.stateNode,t.type,e))}}function IC(t){va?_a?_a.push(t):_a=[t]:va=t}function MC(){if(va){var t=va,e=_a;if(_a=va=null,$x(t),e)for(t=0;t>>=0,t===0?32:31-(uO(t)/dO|0)|0}var Xu=64,Yu=4194304;function $l(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Lf(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=$l(a):(o&=s,o!==0&&(r=$l(o)))}else s=n&~i,s!==0?r=$l(s):o!==0&&(r=$l(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function uu(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-fr(e),t[e]=n}function gO(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Zl),Hx=" ",Kx=!1;function QC(t,e){switch(t){case"keyup":return VO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JC(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ys=!1;function WO(t,e){switch(t){case"compositionend":return JC(e);case"keypress":return e.which!==32?null:(Kx=!0,Hx);case"textInput":return t=e.data,t===Hx&&Kx?null:t;default:return null}}function HO(t,e){if(Ys)return t==="compositionend"||!Ov&&QC(t,e)?(t=ZC(),Ud=Iv=Ki=null,Ys=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qx(n)}}function r2(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?r2(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function i2(){for(var t=window,e=Af();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Af(t.document)}return e}function Dv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function tD(t){var e=i2(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&r2(n.ownerDocument.documentElement,n)){if(r!==null&&Dv(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=Qx(n,o);var s=Qx(n,r);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zs=null,C0=null,Ql=null,R0=!1;function Jx(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;R0||Zs==null||Zs!==Af(r)||(r=Zs,"selectionStart"in r&&Dv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ql&&Ic(Ql,r)||(Ql=r,r=Ff(C0,"onSelect"),0Js||(t.current=L0[Js],L0[Js]=null,Js--)}function $e(t,e){Js++,L0[Js]=t.current,t.current=e}var uo={},Kt=_o(uo),mn=_o(!1),is=uo;function $a(t,e){var n=t.type.contextTypes;if(!n)return uo;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function yn(t){return t=t.childContextTypes,t!=null}function Nf(){Ve(mn),Ve(Kt)}function sb(t,e,n){if(Kt.current!==uo)throw Error(D(168));$e(Kt,e),$e(mn,n)}function h2(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(D(108,ZL(t)||"Unknown",i));return Je({},n,r)}function zf(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||uo,is=Kt.current,$e(Kt,t),$e(mn,mn.current),!0}function ab(t,e,n){var r=t.stateNode;if(!r)throw Error(D(169));n?(t=h2(t,e,is),r.__reactInternalMemoizedMergedChildContext=t,Ve(mn),Ve(Kt),$e(Kt,t)):Ve(mn),$e(mn,n)}var ei=null,ip=!1,Mg=!1;function p2(t){ei===null?ei=[t]:ei.push(t)}function hD(t){ip=!0,p2(t)}function xo(){if(!Mg&&ei!==null){Mg=!0;var t=0,e=Me;try{var n=ei;for(Me=1;t>=s,i-=s,ii=1<<32-fr(e)+i|n<E?(I=w,w=null):I=w.sibling;var M=f(y,w,_[E],x);if(M===null){w===null&&(w=I);break}t&&w&&M.alternate===null&&e(y,w),g=o(M,g,E),T===null?S=M:T.sibling=M,T=M,w=I}if(E===_.length)return n(y,w),Xe&&Lo(y,E),S;if(w===null){for(;E<_.length;E++)w=d(y,_[E],x),w!==null&&(g=o(w,g,E),T===null?S=w:T.sibling=w,T=w);return Xe&&Lo(y,E),S}for(w=r(y,w);E<_.length;E++)I=h(w,y,E,_[E],x),I!==null&&(t&&I.alternate!==null&&w.delete(I.key===null?E:I.key),g=o(I,g,E),T===null?S=I:T.sibling=I,T=I);return t&&w.forEach(function(z){return e(y,z)}),Xe&&Lo(y,E),S}function m(y,g,_,x){var S=yl(_);if(typeof S!="function")throw Error(D(150));if(_=S.call(_),_==null)throw Error(D(151));for(var T=S=null,w=g,E=g=0,I=null,M=_.next();w!==null&&!M.done;E++,M=_.next()){w.index>E?(I=w,w=null):I=w.sibling;var z=f(y,w,M.value,x);if(z===null){w===null&&(w=I);break}t&&w&&z.alternate===null&&e(y,w),g=o(z,g,E),T===null?S=z:T.sibling=z,T=z,w=I}if(M.done)return n(y,w),Xe&&Lo(y,E),S;if(w===null){for(;!M.done;E++,M=_.next())M=d(y,M.value,x),M!==null&&(g=o(M,g,E),T===null?S=M:T.sibling=M,T=M);return Xe&&Lo(y,E),S}for(w=r(y,w);!M.done;E++,M=_.next())M=h(w,y,E,M.value,x),M!==null&&(t&&M.alternate!==null&&w.delete(M.key===null?E:M.key),g=o(M,g,E),T===null?S=M:T.sibling=M,T=M);return t&&w.forEach(function(j){return e(y,j)}),Xe&&Lo(y,E),S}function v(y,g,_,x){if(typeof _=="object"&&_!==null&&_.type===Xs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Wu:e:{for(var S=_.key,T=g;T!==null;){if(T.key===S){if(S=_.type,S===Xs){if(T.tag===7){n(y,T.sibling),g=i(T,_.props.children),g.return=y,y=g;break e}}else if(T.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ni&&pb(S)===T.type){n(y,T.sibling),g=i(T,_.props),g.ref=Sl(y,T,_),g.return=y,y=g;break e}n(y,T);break}else e(y,T);T=T.sibling}_.type===Xs?(g=qo(_.props.children,y.mode,x,_.key),g.return=y,y=g):(x=Zd(_.type,_.key,_.props,null,y.mode,x),x.ref=Sl(y,g,_),x.return=y,y=x)}return s(y);case Ks:e:{for(T=_.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){n(y,g.sibling),g=i(g,_.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else e(y,g);g=g.sibling}g=Bg(_,y.mode,x),g.return=y,y=g}return s(y);case Ni:return T=_._init,v(y,g,T(_._payload),x)}if(Fl(_))return p(y,g,_,x);if(yl(_))return m(y,g,_,x);nd(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,_),g.return=y,y=g):(n(y,g),g=zg(_,y.mode,x),g.return=y,y=g),s(y)):n(y,g)}return v}var za=S2(!0),w2=S2(!1),hu={},Br=_o(hu),Dc=_o(hu),Fc=_o(hu);function Go(t){if(t===hu)throw Error(D(174));return t}function Gv(t,e){switch($e(Fc,e),$e(Dc,t),$e(Br,hu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:m0(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=m0(e,t)}Ve(Br),$e(Br,e)}function Ba(){Ve(Br),Ve(Dc),Ve(Fc)}function E2(t){Go(Fc.current);var e=Go(Br.current),n=m0(e,t.type);e!==n&&($e(Dc,t),$e(Br,n))}function Wv(t){Dc.current===t&&(Ve(Br),Ve(Dc))}var Ye=_o(0);function Wf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Lg=[];function Hv(){for(var t=0;tn?n:4,t(!0);var r=Og.transition;Og.transition={};try{t(!1),e()}finally{Me=n,Og.transition=r}}function B2(){return Jn().memoizedState}function yD(t,e,n){var r=io(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},j2(t))U2(e,n);else if(n=v2(t,e,n,r),n!==null){var i=tn();hr(n,t,r,i),V2(n,e,r)}}function vD(t,e,n){var r=io(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(j2(t))U2(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,mr(a,s)){var l=e.interleaved;l===null?(i.next=i,Uv(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=v2(t,e,i,r),n!==null&&(i=tn(),hr(n,t,r,i),V2(n,e,r))}}function j2(t){var e=t.alternate;return t===Qe||e!==null&&e===Qe}function U2(t,e){Jl=Hf=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function V2(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Pv(t,n)}}var Kf={readContext:Qn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},_D={readContext:Qn,useCallback:function(t,e){return Rr().memoizedState=[t,e===void 0?null:e],t},useContext:Qn,useEffect:mb,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Hd(4194308,4,D2.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Hd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Hd(4,2,t,e)},useMemo:function(t,e){var n=Rr();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Rr();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=yD.bind(null,Qe,t),[r.memoizedState,t]},useRef:function(t){var e=Rr();return t={current:t},e.memoizedState=t},useState:gb,useDebugValue:qv,useDeferredValue:function(t){return Rr().memoizedState=t},useTransition:function(){var t=gb(!1),e=t[0];return t=mD.bind(null,t[1]),Rr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Qe,i=Rr();if(Xe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=e(),Tt===null)throw Error(D(349));ss&30||R2(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,mb(A2.bind(null,r,o,t),[t]),r.flags|=2048,zc(9,P2.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=Rr(),e=Tt.identifierPrefix;if(Xe){var n=oi,r=ii;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=$c++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[Lr]=e,t[Oc]=r,Q2(t,e,!1,!1),e.stateNode=t;e:{switch(s=v0(n,r),n){case"dialog":je("cancel",t),je("close",t),i=r;break;case"iframe":case"object":case"embed":je("load",t),i=r;break;case"video":case"audio":for(i=0;iUa&&(e.flags|=128,r=!0,wl(o,!1),e.lanes=4194304)}else{if(!r)if(t=Wf(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),wl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Xe)return Bt(e),null}else 2*st()-o.renderingStartTime>Ua&&n!==1073741824&&(e.flags|=128,r=!0,wl(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=st(),e.sibling=null,n=Ye.current,$e(Ye,r?n&1|2:n&1),e):(Bt(e),null);case 22:case 23:return r1(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Tn&1073741824&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),null;case 24:return null;case 25:return null}throw Error(D(156,e.tag))}function RD(t,e){switch($v(e),e.tag){case 1:return yn(e.type)&&Nf(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ba(),Ve(mn),Ve(Kt),Hv(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Wv(e),null;case 13:if(Ve(Ye),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(D(340));Na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ve(Ye),null;case 4:return Ba(),null;case 10:return jv(e.type._context),null;case 22:case 23:return r1(),null;case 24:return null;default:return null}}var id=!1,Wt=!1,PD=typeof WeakSet=="function"?WeakSet:Set,V=null;function ra(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){it(t,e,r)}else n.current=null}function W0(t,e,n){try{n()}catch(r){it(t,e,r)}}var Tb=!1;function AD(t,e){if(P0=Of,t=i2(),Dv(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++c===i&&(a=s),f===o&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(A0={focusedElem:t,selectionRange:n},Of=!1,V=e;V!==null;)if(e=V,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,V=t;else for(;V!==null;){e=V;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,y=e.stateNode,g=y.getSnapshotBeforeUpdate(e.elementType===e.type?m:sr(e.type,m),v);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(x){it(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,V=t;break}V=e.return}return p=Tb,Tb=!1,p}function ec(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&W0(e,n,o)}i=i.next}while(i!==r)}}function ap(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function H0(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function tR(t){var e=t.alternate;e!==null&&(t.alternate=null,tR(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Lr],delete e[Oc],delete e[M0],delete e[dD],delete e[fD])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function nR(t){return t.tag===5||t.tag===3||t.tag===4}function Cb(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||nR(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function K0(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=$f));else if(r!==4&&(t=t.child,t!==null))for(K0(t,e,n),t=t.sibling;t!==null;)K0(t,e,n),t=t.sibling}function X0(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(X0(t,e,n),t=t.sibling;t!==null;)X0(t,e,n),t=t.sibling}var It=null,ar=!1;function Pi(t,e,n){for(n=n.child;n!==null;)rR(t,e,n),n=n.sibling}function rR(t,e,n){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(Jh,n)}catch{}switch(n.tag){case 5:Wt||ra(n,e);case 6:var r=It,i=ar;It=null,Pi(t,e,n),It=r,ar=i,It!==null&&(ar?(t=It,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):It.removeChild(n.stateNode));break;case 18:It!==null&&(ar?(t=It,n=n.stateNode,t.nodeType===8?Ig(t.parentNode,n):t.nodeType===1&&Ig(t,n),Ac(t)):Ig(It,n.stateNode));break;case 4:r=It,i=ar,It=n.stateNode.containerInfo,ar=!0,Pi(t,e,n),It=r,ar=i;break;case 0:case 11:case 14:case 15:if(!Wt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&W0(n,e,s),i=i.next}while(i!==r)}Pi(t,e,n);break;case 1:if(!Wt&&(ra(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){it(n,e,a)}Pi(t,e,n);break;case 21:Pi(t,e,n);break;case 22:n.mode&1?(Wt=(r=Wt)||n.memoizedState!==null,Pi(t,e,n),Wt=r):Pi(t,e,n);break;default:Pi(t,e,n)}}function Rb(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new PD),e.forEach(function(r){var i=ND.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function nr(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=st()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ID(r/1960))-r,10t?16:t,Xi===null)var r=!1;else{if(t=Xi,Xi=null,Zf=0,xe&6)throw Error(D(331));var i=xe;for(xe|=4,V=t.current;V!==null;){var o=V,s=o.child;if(V.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lst()-t1?Zo(t,0):e1|=n),vn(t,e)}function dR(t,e){e===0&&(t.mode&1?(e=Yu,Yu<<=1,!(Yu&130023424)&&(Yu=4194304)):e=1);var n=tn();t=yi(t,e),t!==null&&(uu(t,e,n),vn(t,n))}function $D(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),dR(t,n)}function ND(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(e),dR(t,n)}var fR;fR=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||mn.current)hn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return hn=!1,TD(t,e,n);hn=!!(t.flags&131072)}else hn=!1,Xe&&e.flags&1048576&&g2(e,jf,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Kd(t,e),t=e.pendingProps;var i=$a(e,Kt.current);ba(e,n),i=Xv(null,e,r,t,i,n);var o=Yv();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yn(r)?(o=!0,zf(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vv(e),i.updater=op,e.stateNode=i,i._reactInternals=e,N0(e,r,t,n),e=j0(null,e,r,!0,o,n)):(e.tag=0,Xe&&o&&Fv(e),Qt(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Kd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=BD(r),t=sr(r,t),i){case 0:e=B0(null,e,r,t,n);break e;case 1:e=Sb(null,e,r,t,n);break e;case 11:e=xb(null,e,r,t,n);break e;case 14:e=bb(null,e,r,sr(r.type,t),n);break e}throw Error(D(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:sr(r,i),B0(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:sr(r,i),Sb(t,e,r,i,n);case 3:e:{if(Y2(e),t===null)throw Error(D(387));r=e.pendingProps,o=e.memoizedState,i=o.element,_2(t,e),Gf(e,r,null,n);var s=e.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=ja(Error(D(423)),e),e=wb(t,e,r,n,i);break e}else if(r!==i){i=ja(Error(D(424)),e),e=wb(t,e,r,n,i);break e}else for(Rn=to(e.stateNode.containerInfo.firstChild),kn=e,Xe=!0,lr=null,n=w2(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Na(),r===i){e=vi(t,e,n);break e}Qt(t,e,r,n)}e=e.child}return e;case 5:return E2(e),t===null&&D0(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,k0(r,i)?s=null:o!==null&&k0(r,o)&&(e.flags|=32),X2(t,e),Qt(t,e,s,n),e.child;case 6:return t===null&&D0(e),null;case 13:return Z2(t,e,n);case 4:return Gv(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=za(e,null,r,n):Qt(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:sr(r,i),xb(t,e,r,i,n);case 7:return Qt(t,e,e.pendingProps,n),e.child;case 8:return Qt(t,e,e.pendingProps.children,n),e.child;case 12:return Qt(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,s=i.value,$e(Uf,r._currentValue),r._currentValue=s,o!==null)if(mr(o.value,s)){if(o.children===i.children&&!mn.current){e=vi(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ci(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),F0(o.return,n,e),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(D(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),F0(s,n,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Qt(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,ba(e,n),i=Qn(i),r=r(i),e.flags|=1,Qt(t,e,r,n),e.child;case 14:return r=e.type,i=sr(r,e.pendingProps),i=sr(r.type,i),bb(t,e,r,i,n);case 15:return H2(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:sr(r,i),Kd(t,e),e.tag=1,yn(r)?(t=!0,zf(e)):t=!1,ba(e,n),b2(e,r,i),N0(e,r,i,n),j0(null,e,r,!0,t,n);case 19:return q2(t,e,n);case 22:return K2(t,e,n)}throw Error(D(156,e.tag))};function hR(t,e){return zC(t,e)}function zD(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,n,r){return new zD(t,e,n,r)}function o1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function BD(t){if(typeof t=="function")return o1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ev)return 11;if(t===Tv)return 14}return 2}function oo(t,e){var n=t.alternate;return n===null?(n=Xn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Zd(t,e,n,r,i,o){var s=2;if(r=t,typeof t=="function")o1(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Xs:return qo(n.children,i,o,e);case wv:s=8,i|=8;break;case l0:return t=Xn(12,n,e,i|2),t.elementType=l0,t.lanes=o,t;case c0:return t=Xn(13,n,e,i),t.elementType=c0,t.lanes=o,t;case u0:return t=Xn(19,n,e,i),t.elementType=u0,t.lanes=o,t;case SC:return cp(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case xC:s=10;break e;case bC:s=9;break e;case Ev:s=11;break e;case Tv:s=14;break e;case Ni:s=16,r=null;break e}throw Error(D(130,t==null?t:typeof t,""))}return e=Xn(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function qo(t,e,n,r){return t=Xn(7,t,r,e),t.lanes=n,t}function cp(t,e,n,r){return t=Xn(22,t,r,e),t.elementType=SC,t.lanes=n,t.stateNode={isHidden:!1},t}function zg(t,e,n){return t=Xn(6,t,null,e),t.lanes=n,t}function Bg(t,e,n){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function jD(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xg(0),this.expirationTimes=xg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xg(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function s1(t,e,n,r,i,o,s,a,l){return t=new jD(t,e,n,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Xn(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vv(o),t}function UD(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yR)}catch(t){console.error(t)}}yR(),gC.exports=$n;var u1=gC.exports,[vR,KD]=wi({strict:!1,name:"PortalContext"}),d1="chakra-portal",XD=".chakra-portal",YD=t=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),ZD=t=>{const{appendToParentPortal:e,children:n}=t,[r,i]=C.useState(null),o=C.useRef(null),[,s]=C.useState({});C.useEffect(()=>s({}),[]);const a=KD(),l=VL();Yo(()=>{if(!r)return;const u=r.ownerDocument,d=e?a??u.body:u.body;if(!d)return;o.current=u.createElement("div"),o.current.className=d1,d.appendChild(o.current),s({});const f=o.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const c=l!=null&&l.zIndex?k.jsx(YD,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return o.current?u1.createPortal(k.jsx(vR,{value:o.current,children:c}),o.current):k.jsx("span",{ref:u=>{u&&i(u)}})},qD=t=>{const{children:e,containerRef:n,appendToParentPortal:r}=t,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=C.useMemo(()=>{const l=i==null?void 0:i.ownerDocument.createElement("div");return l&&(l.className=d1),l},[i]),[,a]=C.useState({});return Yo(()=>a({}),[]),Yo(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?u1.createPortal(k.jsx(vR,{value:r?s:null,children:e}),s):null};function pp(t){const e={appendToParentPortal:!0,...t},{containerRef:n,...r}=e;return n?k.jsx(qD,{containerRef:n,...r}):k.jsx(ZD,{...r})}pp.className=d1;pp.selector=XD;pp.displayName="Portal";function _R(){const t=C.useContext(wc);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return t}var f1=C.createContext({});f1.displayName="ColorModeContext";function h1(){const t=C.useContext(f1);if(t===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return t}var ad={light:"chakra-ui-light",dark:"chakra-ui-dark"};function QD(t={}){const{preventTransition:e=!0}=t,n={setDataset:r=>{const i=e?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?ad.dark:ad.light),document.body.classList.remove(r?ad.light:ad.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=s=>{r(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var JD="chakra-ui-color-mode";function eF(t){return{ssr:!1,type:"localStorage",get(e){if(!(globalThis!=null&&globalThis.document))return e;let n;try{n=localStorage.getItem(t)||e}catch{}return n||e},set(e){try{localStorage.setItem(t,e)}catch{}}}}var tF=eF(JD),Db=()=>{};function Fb(t,e){return t.type==="cookie"&&t.ssr?t.get(e):e}function xR(t){const{value:e,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=tF}=t,a=i==="dark"?"dark":"light",[l,c]=C.useState(()=>Fb(s,a)),[u,d]=C.useState(()=>Fb(s)),{getSystemTheme:f,setClassName:h,setDataset:p,addListener:m}=C.useMemo(()=>QD({preventTransition:o}),[o]),v=i==="system"&&!l?u:l,y=C.useCallback(x=>{const S=x==="system"?f():x;c(S),h(S==="dark"),p(S),s.set(S)},[s,f,h,p]);Yo(()=>{i==="system"&&d(f())},[]),C.useEffect(()=>{const x=s.get();if(x){y(x);return}if(i==="system"){y("system");return}y(a)},[s,a,i,y]);const g=C.useCallback(()=>{y(v==="dark"?"light":"dark")},[v,y]);C.useEffect(()=>{if(r)return m(y)},[r,m,y]);const _=C.useMemo(()=>({colorMode:e??v,toggleColorMode:e?Db:g,setColorMode:e?Db:y,forced:e!==void 0}),[v,g,y,e]);return k.jsx(f1.Provider,{value:_,children:n})}xR.displayName="ColorModeProvider";function nF(){const t=h1(),e=_R();return{...t,theme:e}}var zn=(...t)=>t.filter(Boolean).join(" ");function jr(t){const e=typeof t;return t!=null&&(e==="object"||e==="function")&&!Array.isArray(t)}function Yi(t,...e){return rF(t)?t(...e):t}var rF=t=>typeof t=="function",Se=t=>t?"":void 0;function En(...t){return function(n){t.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Jf={exports:{}};Jf.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",y="[object Null]",g="[object Object]",_="[object Proxy]",x="[object RegExp]",S="[object Set]",T="[object String]",w="[object Undefined]",E="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",z="[object Float32Array]",j="[object Float64Array]",Z="[object Int8Array]",G="[object Int16Array]",H="[object Int32Array]",oe="[object Uint8Array]",ee="[object Uint8ClampedArray]",O="[object Uint16Array]",B="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,q={};q[z]=q[j]=q[Z]=q[G]=q[H]=q[oe]=q[ee]=q[O]=q[B]=!0,q[a]=q[l]=q[I]=q[u]=q[M]=q[d]=q[f]=q[h]=q[m]=q[v]=q[g]=q[x]=q[S]=q[T]=q[E]=!1;var Y=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,ne=typeof self=="object"&&self&&self.Object===Object&&self,de=Y||ne||Function("return this")(),he=e&&!e.nodeType&&e,et=he&&!0&&t&&!t.nodeType&&t,ut=et&&et.exports===he,tt=ut&&Y.process,xt=function(){try{var b=et&&et.require&&et.require("util").types;return b||tt&&tt.binding&&tt.binding("util")}catch{}}(),Yt=xt&&xt.isTypedArray;function yr(b,R,A){switch(A.length){case 0:return b.call(R);case 1:return b.call(R,A[0]);case 2:return b.call(R,A[0],A[1]);case 3:return b.call(R,A[0],A[1],A[2])}return b.apply(R,A)}function an(b,R){for(var A=-1,U=Array(b);++A-1}function AM(b,R){var A=this.__data__,U=zu(A,b);return U<0?(++this.size,A.push([b,R])):A[U][1]=R,this}Zr.prototype.clear=TM,Zr.prototype.delete=CM,Zr.prototype.get=RM,Zr.prototype.has=PM,Zr.prototype.set=AM;function Rs(b){var R=-1,A=b==null?0:b.length;for(this.clear();++R1?A[ve-1]:void 0,We=ve>2?A[2]:void 0;for(De=b.length>3&&typeof De=="function"?(ve--,De):void 0,We&&i5(A[0],A[1],We)&&(De=ve<3?void 0:De,ve=1),R=Object(R);++U-1&&b%1==0&&b0){if(++R>=i)return arguments[0]}else R=0;return b.apply(void 0,arguments)}}function f5(b){if(b!=null){try{return Rt.call(b)}catch{}try{return b+""}catch{}}return""}function Uu(b,R){return b===R||b!==b&&R!==R}var lg=cx(function(){return arguments}())?cx:function(b){return pl(b)&&nt.call(b,"callee")&&!Co.call(b,"callee")},cg=Array.isArray;function ug(b){return b!=null&&px(b.length)&&!dg(b)}function h5(b){return pl(b)&&ug(b)}var hx=ng||v5;function dg(b){if(!Po(b))return!1;var R=Bu(b);return R==h||R==p||R==c||R==_}function px(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Po(b){var R=typeof b;return b!=null&&(R=="object"||R=="function")}function pl(b){return b!=null&&typeof b=="object"}function p5(b){if(!pl(b)||Bu(b)!=g)return!1;var R=W(b);if(R===null)return!0;var A=nt.call(R,"constructor")&&R.constructor;return typeof A=="function"&&A instanceof A&&Rt.call(A)==ws}var gx=Yt?ie(Yt):GM;function g5(b){return JM(b,mx(b))}function mx(b){return ug(b)?BM(b,!0):WM(b)}var m5=e5(function(b,R,A,U){ux(b,R,A,U)});function y5(b){return function(){return b}}function yx(b){return b}function v5(){return!1}t.exports=m5})(Jf,Jf.exports);var iF=Jf.exports;const Fr=fs(iF);var oF=t=>/!(important)?$/.test(t),$b=t=>typeof t=="string"?t.replace(/!(important)?$/,"").trim():t,sF=(t,e)=>n=>{const r=String(e),i=oF(r),o=$b(r),s=t?`${t}.${o}`:o;let a=jr(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:e;return a=$b(a),i?`${a} !important`:a};function p1(t){const{scale:e,transform:n,compose:r}=t;return(o,s)=>{var a;const l=sF(e,o)(s);let c=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(c=r(c,s)),c}}var ld=(...t)=>e=>t.reduce((n,r)=>r(n),e);function jn(t,e){return n=>{const r={property:n,scale:t};return r.transform=p1({scale:t,transform:e}),r}}var aF=({rtl:t,ltr:e})=>n=>n.direction==="rtl"?t:e;function lF(t){const{property:e,scale:n,transform:r}=t;return{scale:n,property:aF(e),transform:n?p1({scale:n,compose:r}):r}}var bR=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function cF(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...bR].join(" ")}function uF(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...bR].join(" ")}var dF={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},fF={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function hF(t){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":t,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var pF={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},J0={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},gF=new Set(Object.values(J0)),ey=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),mF=t=>t.trim();function yF(t,e){if(t==null||ey.has(t))return t;if(!(ty(t)||ey.has(t)))return`url('${t}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(t),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return t;const a=o.includes("-gradient")?o:`${o}-gradient`,[l,...c]=s.split(",").map(mF).filter(Boolean);if((c==null?void 0:c.length)===0)return t;const u=l in J0?J0[l]:l;c.unshift(u);const d=c.map(f=>{if(gF.has(f))return f;const h=f.indexOf(" "),[p,m]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],v=ty(m)?m:m&&m.split(" "),y=`colors.${p}`,g=y in e.__cssMap?e.__cssMap[y].varRef:p;return v?[g,...Array.isArray(v)?v:[v]].join(" "):g});return`${a}(${d.join(", ")})`}var ty=t=>typeof t=="string"&&t.includes("(")&&t.includes(")"),vF=(t,e)=>yF(t,e??{});function _F(t){return/^var\(--.+\)$/.test(t)}var xF=t=>{const e=parseFloat(t.toString()),n=t.toString().replace(String(e),"");return{unitless:!n,value:e,unit:n}},Sr=t=>e=>`${t}(${e})`,ye={filter(t){return t!=="auto"?t:dF},backdropFilter(t){return t!=="auto"?t:fF},ring(t){return hF(ye.px(t))},bgClip(t){return t==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:t}},transform(t){return t==="auto"?cF():t==="auto-gpu"?uF():t},vh(t){return t==="$100vh"?"var(--chakra-vh)":t},px(t){if(t==null)return t;const{unitless:e}=xF(t);return e||typeof t=="number"?`${t}px`:t},fraction(t){return typeof t!="number"||t>1?t:`${t*100}%`},float(t,e){const n={left:"right",right:"left"};return e.direction==="rtl"?n[t]:t},degree(t){if(_F(t)||t==null)return t;const e=typeof t=="string"&&!t.endsWith("deg");return typeof t=="number"||e?`${t}deg`:t},gradient:vF,blur:Sr("blur"),opacity:Sr("opacity"),brightness:Sr("brightness"),contrast:Sr("contrast"),dropShadow:Sr("drop-shadow"),grayscale:Sr("grayscale"),hueRotate:t=>Sr("hue-rotate")(ye.degree(t)),invert:Sr("invert"),saturate:Sr("saturate"),sepia:Sr("sepia"),bgImage(t){return t==null||ty(t)||ey.has(t)?t:`url(${t})`},outline(t){const e=String(t)==="0"||String(t)==="none";return t!==null&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:t}},flexDirection(t){var e;const{space:n,divide:r}=(e=pF[t])!=null?e:{},i={flexDirection:t};return n&&(i[n]=1),r&&(i[r]=1),i}},P={borderWidths:jn("borderWidths"),borderStyles:jn("borderStyles"),colors:jn("colors"),borders:jn("borders"),gradients:jn("gradients",ye.gradient),radii:jn("radii",ye.px),space:jn("space",ld(ye.vh,ye.px)),spaceT:jn("space",ld(ye.vh,ye.px)),degreeT(t){return{property:t,transform:ye.degree}},prop(t,e,n){return{property:t,scale:e,...e&&{transform:p1({scale:e,transform:n})}}},propT(t,e){return{property:t,transform:e}},sizes:jn("sizes",ld(ye.vh,ye.px)),sizesT:jn("sizes",ld(ye.vh,ye.fraction)),shadows:jn("shadows"),logical:lF,blur:jn("blur",ye.blur)},qd={background:P.colors("background"),backgroundColor:P.colors("backgroundColor"),backgroundImage:P.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ye.bgClip},bgSize:P.prop("backgroundSize"),bgPosition:P.prop("backgroundPosition"),bg:P.colors("background"),bgColor:P.colors("backgroundColor"),bgPos:P.prop("backgroundPosition"),bgRepeat:P.prop("backgroundRepeat"),bgAttachment:P.prop("backgroundAttachment"),bgGradient:P.gradients("backgroundImage"),bgClip:{transform:ye.bgClip}};Object.assign(qd,{bgImage:qd.backgroundImage,bgImg:qd.backgroundImage});var Ee={border:P.borders("border"),borderWidth:P.borderWidths("borderWidth"),borderStyle:P.borderStyles("borderStyle"),borderColor:P.colors("borderColor"),borderRadius:P.radii("borderRadius"),borderTop:P.borders("borderTop"),borderBlockStart:P.borders("borderBlockStart"),borderTopLeftRadius:P.radii("borderTopLeftRadius"),borderStartStartRadius:P.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:P.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:P.radii("borderTopRightRadius"),borderStartEndRadius:P.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:P.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:P.borders("borderRight"),borderInlineEnd:P.borders("borderInlineEnd"),borderBottom:P.borders("borderBottom"),borderBlockEnd:P.borders("borderBlockEnd"),borderBottomLeftRadius:P.radii("borderBottomLeftRadius"),borderBottomRightRadius:P.radii("borderBottomRightRadius"),borderLeft:P.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:P.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:P.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:P.borders(["borderLeft","borderRight"]),borderInline:P.borders("borderInline"),borderY:P.borders(["borderTop","borderBottom"]),borderBlock:P.borders("borderBlock"),borderTopWidth:P.borderWidths("borderTopWidth"),borderBlockStartWidth:P.borderWidths("borderBlockStartWidth"),borderTopColor:P.colors("borderTopColor"),borderBlockStartColor:P.colors("borderBlockStartColor"),borderTopStyle:P.borderStyles("borderTopStyle"),borderBlockStartStyle:P.borderStyles("borderBlockStartStyle"),borderBottomWidth:P.borderWidths("borderBottomWidth"),borderBlockEndWidth:P.borderWidths("borderBlockEndWidth"),borderBottomColor:P.colors("borderBottomColor"),borderBlockEndColor:P.colors("borderBlockEndColor"),borderBottomStyle:P.borderStyles("borderBottomStyle"),borderBlockEndStyle:P.borderStyles("borderBlockEndStyle"),borderLeftWidth:P.borderWidths("borderLeftWidth"),borderInlineStartWidth:P.borderWidths("borderInlineStartWidth"),borderLeftColor:P.colors("borderLeftColor"),borderInlineStartColor:P.colors("borderInlineStartColor"),borderLeftStyle:P.borderStyles("borderLeftStyle"),borderInlineStartStyle:P.borderStyles("borderInlineStartStyle"),borderRightWidth:P.borderWidths("borderRightWidth"),borderInlineEndWidth:P.borderWidths("borderInlineEndWidth"),borderRightColor:P.colors("borderRightColor"),borderInlineEndColor:P.colors("borderInlineEndColor"),borderRightStyle:P.borderStyles("borderRightStyle"),borderInlineEndStyle:P.borderStyles("borderInlineEndStyle"),borderTopRadius:P.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:P.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:P.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:P.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ee,{rounded:Ee.borderRadius,roundedTop:Ee.borderTopRadius,roundedTopLeft:Ee.borderTopLeftRadius,roundedTopRight:Ee.borderTopRightRadius,roundedTopStart:Ee.borderStartStartRadius,roundedTopEnd:Ee.borderStartEndRadius,roundedBottom:Ee.borderBottomRadius,roundedBottomLeft:Ee.borderBottomLeftRadius,roundedBottomRight:Ee.borderBottomRightRadius,roundedBottomStart:Ee.borderEndStartRadius,roundedBottomEnd:Ee.borderEndEndRadius,roundedLeft:Ee.borderLeftRadius,roundedRight:Ee.borderRightRadius,roundedStart:Ee.borderInlineStartRadius,roundedEnd:Ee.borderInlineEndRadius,borderStart:Ee.borderInlineStart,borderEnd:Ee.borderInlineEnd,borderTopStartRadius:Ee.borderStartStartRadius,borderTopEndRadius:Ee.borderStartEndRadius,borderBottomStartRadius:Ee.borderEndStartRadius,borderBottomEndRadius:Ee.borderEndEndRadius,borderStartRadius:Ee.borderInlineStartRadius,borderEndRadius:Ee.borderInlineEndRadius,borderStartWidth:Ee.borderInlineStartWidth,borderEndWidth:Ee.borderInlineEndWidth,borderStartColor:Ee.borderInlineStartColor,borderEndColor:Ee.borderInlineEndColor,borderStartStyle:Ee.borderInlineStartStyle,borderEndStyle:Ee.borderInlineEndStyle});var bF={color:P.colors("color"),textColor:P.colors("color"),fill:P.colors("fill"),stroke:P.colors("stroke")},ny={boxShadow:P.shadows("boxShadow"),mixBlendMode:!0,blendMode:P.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:P.prop("backgroundBlendMode"),opacity:!0};Object.assign(ny,{shadow:ny.boxShadow});var SF={filter:{transform:ye.filter},blur:P.blur("--chakra-blur"),brightness:P.propT("--chakra-brightness",ye.brightness),contrast:P.propT("--chakra-contrast",ye.contrast),hueRotate:P.propT("--chakra-hue-rotate",ye.hueRotate),invert:P.propT("--chakra-invert",ye.invert),saturate:P.propT("--chakra-saturate",ye.saturate),dropShadow:P.propT("--chakra-drop-shadow",ye.dropShadow),backdropFilter:{transform:ye.backdropFilter},backdropBlur:P.blur("--chakra-backdrop-blur"),backdropBrightness:P.propT("--chakra-backdrop-brightness",ye.brightness),backdropContrast:P.propT("--chakra-backdrop-contrast",ye.contrast),backdropHueRotate:P.propT("--chakra-backdrop-hue-rotate",ye.hueRotate),backdropInvert:P.propT("--chakra-backdrop-invert",ye.invert),backdropSaturate:P.propT("--chakra-backdrop-saturate",ye.saturate)},eh={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ye.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:P.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:P.space("gap"),rowGap:P.space("rowGap"),columnGap:P.space("columnGap")};Object.assign(eh,{flexDir:eh.flexDirection});var SR={gridGap:P.space("gridGap"),gridColumnGap:P.space("gridColumnGap"),gridRowGap:P.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},wF={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ye.outline},outlineOffset:!0,outlineColor:P.colors("outlineColor")},Vn={width:P.sizesT("width"),inlineSize:P.sizesT("inlineSize"),height:P.sizes("height"),blockSize:P.sizes("blockSize"),boxSize:P.sizes(["width","height"]),minWidth:P.sizes("minWidth"),minInlineSize:P.sizes("minInlineSize"),minHeight:P.sizes("minHeight"),minBlockSize:P.sizes("minBlockSize"),maxWidth:P.sizes("maxWidth"),maxInlineSize:P.sizes("maxInlineSize"),maxHeight:P.sizes("maxHeight"),maxBlockSize:P.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(t,e)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=e.__breakpoints)==null?void 0:n.get(t))==null?void 0:r.minW)!=null?i:t})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(t,e)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=e.__breakpoints)==null?void 0:n.get(t))==null?void 0:r._minW)!=null?i:t})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:P.propT("float",ye.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Vn,{w:Vn.width,h:Vn.height,minW:Vn.minWidth,maxW:Vn.maxWidth,minH:Vn.minHeight,maxH:Vn.maxHeight,overscroll:Vn.overscrollBehavior,overscrollX:Vn.overscrollBehaviorX,overscrollY:Vn.overscrollBehaviorY});var EF={listStyleType:!0,listStylePosition:!0,listStylePos:P.prop("listStylePosition"),listStyleImage:!0,listStyleImg:P.prop("listStyleImage")};function TF(t,e,n,r){const i=typeof e=="string"?e.split("."):[e];for(r=0;r{const e=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return t(r,i,o);e.has(r)||e.set(r,new Map);const a=e.get(r);if(a.has(i))return a.get(i);const l=t(r,i,o,s);return a.set(i,l),l}},RF=CF(TF),PF={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},AF={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},jg=(t,e,n)=>{const r={},i=RF(t,e,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},kF={srOnly:{transform(t){return t===!0?PF:t==="focusable"?AF:{}}},layerStyle:{processResult:!0,transform:(t,e,n)=>jg(e,`layerStyles.${t}`,n)},textStyle:{processResult:!0,transform:(t,e,n)=>jg(e,`textStyles.${t}`,n)},apply:{processResult:!0,transform:(t,e,n)=>jg(e,t,n)}},rc={position:!0,pos:P.prop("position"),zIndex:P.prop("zIndex","zIndices"),inset:P.spaceT("inset"),insetX:P.spaceT(["left","right"]),insetInline:P.spaceT("insetInline"),insetY:P.spaceT(["top","bottom"]),insetBlock:P.spaceT("insetBlock"),top:P.spaceT("top"),insetBlockStart:P.spaceT("insetBlockStart"),bottom:P.spaceT("bottom"),insetBlockEnd:P.spaceT("insetBlockEnd"),left:P.spaceT("left"),insetInlineStart:P.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:P.spaceT("right"),insetInlineEnd:P.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(rc,{insetStart:rc.insetInlineStart,insetEnd:rc.insetInlineEnd});var IF={ring:{transform:ye.ring},ringColor:P.colors("--chakra-ring-color"),ringOffset:P.prop("--chakra-ring-offset-width"),ringOffsetColor:P.colors("--chakra-ring-offset-color"),ringInset:P.prop("--chakra-ring-inset")},Ue={margin:P.spaceT("margin"),marginTop:P.spaceT("marginTop"),marginBlockStart:P.spaceT("marginBlockStart"),marginRight:P.spaceT("marginRight"),marginInlineEnd:P.spaceT("marginInlineEnd"),marginBottom:P.spaceT("marginBottom"),marginBlockEnd:P.spaceT("marginBlockEnd"),marginLeft:P.spaceT("marginLeft"),marginInlineStart:P.spaceT("marginInlineStart"),marginX:P.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:P.spaceT("marginInline"),marginY:P.spaceT(["marginTop","marginBottom"]),marginBlock:P.spaceT("marginBlock"),padding:P.space("padding"),paddingTop:P.space("paddingTop"),paddingBlockStart:P.space("paddingBlockStart"),paddingRight:P.space("paddingRight"),paddingBottom:P.space("paddingBottom"),paddingBlockEnd:P.space("paddingBlockEnd"),paddingLeft:P.space("paddingLeft"),paddingInlineStart:P.space("paddingInlineStart"),paddingInlineEnd:P.space("paddingInlineEnd"),paddingX:P.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:P.space("paddingInline"),paddingY:P.space(["paddingTop","paddingBottom"]),paddingBlock:P.space("paddingBlock")};Object.assign(Ue,{m:Ue.margin,mt:Ue.marginTop,mr:Ue.marginRight,me:Ue.marginInlineEnd,marginEnd:Ue.marginInlineEnd,mb:Ue.marginBottom,ml:Ue.marginLeft,ms:Ue.marginInlineStart,marginStart:Ue.marginInlineStart,mx:Ue.marginX,my:Ue.marginY,p:Ue.padding,pt:Ue.paddingTop,py:Ue.paddingY,px:Ue.paddingX,pb:Ue.paddingBottom,pl:Ue.paddingLeft,ps:Ue.paddingInlineStart,paddingStart:Ue.paddingInlineStart,pr:Ue.paddingRight,pe:Ue.paddingInlineEnd,paddingEnd:Ue.paddingInlineEnd});var MF={textDecorationColor:P.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:P.shadows("textShadow")},LF={clipPath:!0,transform:P.propT("transform",ye.transform),transformOrigin:!0,translateX:P.spaceT("--chakra-translate-x"),translateY:P.spaceT("--chakra-translate-y"),skewX:P.degreeT("--chakra-skew-x"),skewY:P.degreeT("--chakra-skew-y"),scaleX:P.prop("--chakra-scale-x"),scaleY:P.prop("--chakra-scale-y"),scale:P.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:P.degreeT("--chakra-rotate")},OF={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:P.prop("transitionDuration","transition.duration"),transitionProperty:P.prop("transitionProperty","transition.property"),transitionTimingFunction:P.prop("transitionTimingFunction","transition.easing")},DF={fontFamily:P.prop("fontFamily","fonts"),fontSize:P.prop("fontSize","fontSizes",ye.px),fontWeight:P.prop("fontWeight","fontWeights"),lineHeight:P.prop("lineHeight","lineHeights"),letterSpacing:P.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(t){if(t===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},FF={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:P.spaceT("scrollMargin"),scrollMarginTop:P.spaceT("scrollMarginTop"),scrollMarginBottom:P.spaceT("scrollMarginBottom"),scrollMarginLeft:P.spaceT("scrollMarginLeft"),scrollMarginRight:P.spaceT("scrollMarginRight"),scrollMarginX:P.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:P.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:P.spaceT("scrollPadding"),scrollPaddingTop:P.spaceT("scrollPaddingTop"),scrollPaddingBottom:P.spaceT("scrollPaddingBottom"),scrollPaddingLeft:P.spaceT("scrollPaddingLeft"),scrollPaddingRight:P.spaceT("scrollPaddingRight"),scrollPaddingX:P.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:P.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function wR(t){return jr(t)&&t.reference?t.reference:String(t)}var gp=(t,...e)=>e.map(wR).join(` ${t} `).replace(/calc/g,""),Nb=(...t)=>`calc(${gp("+",...t)})`,zb=(...t)=>`calc(${gp("-",...t)})`,ry=(...t)=>`calc(${gp("*",...t)})`,Bb=(...t)=>`calc(${gp("/",...t)})`,jb=t=>{const e=wR(t);return e!=null&&!Number.isNaN(parseFloat(e))?String(e).startsWith("-")?String(e).slice(1):`-${e}`:ry(e,-1)},zo=Object.assign(t=>({add:(...e)=>zo(Nb(t,...e)),subtract:(...e)=>zo(zb(t,...e)),multiply:(...e)=>zo(ry(t,...e)),divide:(...e)=>zo(Bb(t,...e)),negate:()=>zo(jb(t)),toString:()=>t.toString()}),{add:Nb,subtract:zb,multiply:ry,divide:Bb,negate:jb});function $F(t,e="-"){return t.replace(/\s+/g,e)}function NF(t){const e=$F(t.toString());return BF(zF(e))}function zF(t){return t.includes("\\.")?t:!Number.isInteger(parseFloat(t.toString()))?t.replace(".","\\."):t}function BF(t){return t.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function jF(t,e=""){return[e,t].filter(Boolean).join("-")}function UF(t,e){return`var(${t}${e?`, ${e}`:""})`}function VF(t,e=""){return NF(`--${jF(t,e)}`)}function J(t,e,n){const r=VF(t,n);return{variable:r,reference:UF(r,e)}}function GF(t,e){const n={};for(const r of e){if(Array.isArray(r)){const[i,o]=r;n[i]=J(`${t}-${i}`,o);continue}n[r]=J(`${t}-${r}`)}return n}function WF(t){const e=t==null?0:t.length;return e?t[e-1]:void 0}function HF(t){const e=parseFloat(t.toString()),n=t.toString().replace(String(e),"");return{unitless:!n,value:e,unit:n}}function iy(t){if(t==null)return t;const{unitless:e}=HF(t);return e||typeof t=="number"?`${t}px`:t}var ER=(t,e)=>parseInt(t[1],10)>parseInt(e[1],10)?1:-1,g1=t=>Object.fromEntries(Object.entries(t).sort(ER));function Ub(t){const e=g1(t);return Object.assign(Object.values(e),e)}function KF(t){const e=Object.keys(g1(t));return new Set(e)}function Vb(t){var e;if(!t)return t;t=(e=iy(t))!=null?e:t;const n=-.02;return typeof t=="number"?`${t+n}`:t.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function zl(t,e){const n=["@media screen"];return t&&n.push("and",`(min-width: ${iy(t)})`),e&&n.push("and",`(max-width: ${iy(e)})`),n.join(" ")}function XF(t){var e;if(!t)return null;t.base=(e=t.base)!=null?e:"0px";const n=Ub(t),r=Object.entries(t).sort(ER).map(([s,a],l,c)=>{var u;let[,d]=(u=c[l+1])!=null?u:[];return d=parseFloat(d)>0?Vb(d):void 0,{_minW:Vb(a),breakpoint:s,minW:a,maxW:d,maxWQuery:zl(null,d),minWQuery:zl(a),minMaxQuery:zl(a,d)}}),i=KF(t),o=Array.from(i.values());return{keys:i,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>i.has(l))},asObject:g1(t),asArray:Ub(t),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>zl(s)).slice(1)],toArrayValue(s){if(!jr(s))throw new Error("toArrayValue: value must be an object");const a=o.map(l=>{var c;return(c=s[l])!=null?c:null});for(;WF(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,c)=>{const u=o[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}var At={hover:(t,e)=>`${t}:hover ${e}, ${t}[data-hover] ${e}`,focus:(t,e)=>`${t}:focus ${e}, ${t}[data-focus] ${e}`,focusVisible:(t,e)=>`${t}:focus-visible ${e}`,focusWithin:(t,e)=>`${t}:focus-within ${e}`,active:(t,e)=>`${t}:active ${e}, ${t}[data-active] ${e}`,disabled:(t,e)=>`${t}:disabled ${e}, ${t}[data-disabled] ${e}`,invalid:(t,e)=>`${t}:invalid ${e}, ${t}[data-invalid] ${e}`,checked:(t,e)=>`${t}:checked ${e}, ${t}[data-checked] ${e}`,indeterminate:(t,e)=>`${t}:indeterminate ${e}, ${t}[aria-checked=mixed] ${e}, ${t}[data-indeterminate] ${e}`,readOnly:(t,e)=>`${t}:read-only ${e}, ${t}[readonly] ${e}, ${t}[data-read-only] ${e}`,expanded:(t,e)=>`${t}:read-only ${e}, ${t}[aria-expanded=true] ${e}, ${t}[data-expanded] ${e}`,placeholderShown:(t,e)=>`${t}:placeholder-shown ${e}`},Ai=t=>TR(e=>t(e,"&"),"[role=group]","[data-group]",".group"),qr=t=>TR(e=>t(e,"~ &"),"[data-peer]",".peer"),TR=(t,...e)=>e.map(t).join(", "),mp={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ai(At.hover),_peerHover:qr(At.hover),_groupFocus:Ai(At.focus),_peerFocus:qr(At.focus),_groupFocusVisible:Ai(At.focusVisible),_peerFocusVisible:qr(At.focusVisible),_groupActive:Ai(At.active),_peerActive:qr(At.active),_groupDisabled:Ai(At.disabled),_peerDisabled:qr(At.disabled),_groupInvalid:Ai(At.invalid),_peerInvalid:qr(At.invalid),_groupChecked:Ai(At.checked),_peerChecked:qr(At.checked),_groupFocusWithin:Ai(At.focusWithin),_peerFocusWithin:qr(At.focusWithin),_peerPlaceholderShown:qr(At.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},CR=Object.keys(mp);function Gb(t,e){return J(String(t).replace(/\./g,"-"),void 0,e)}function YF(t,e){let n={};const r={};for(const[i,o]of Object.entries(t)){const{isSemantic:s,value:a}=o,{variable:l,reference:c}=Gb(i,e==null?void 0:e.cssVarPrefix);if(!s){if(i.startsWith("space")){const f=i.split("."),[h,...p]=f,m=`${h}.-${p.join(".")}`,v=zo.negate(a),y=zo.negate(c);r[m]={value:v,var:l,varRef:y}}n[l]=a,r[i]={value:a,var:l,varRef:c};continue}const u=f=>{const p=[String(i).split(".")[0],f].join(".");if(!t[p])return f;const{reference:v}=Gb(p,e==null?void 0:e.cssVarPrefix);return v},d=jr(a)?a:{default:a};n=Fr(n,Object.entries(d).reduce((f,[h,p])=>{var m,v;if(!p)return f;const y=u(`${p}`);if(h==="default")return f[l]=y,f;const g=(v=(m=mp)==null?void 0:m[h])!=null?v:h;return f[g]={[l]:y},f},{})),r[i]={value:c,var:l,varRef:c}}return{cssVars:n,cssMap:r}}function ZF(t,e=[]){const n=Object.assign({},t);for(const r of e)r in n&&delete n[r];return n}function qF(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function QF(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)}function Wb(t,e,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){var l;if(QF(s)||Array.isArray(s)){const c={};for(const[u,d]of Object.entries(s)){const f=(l=i==null?void 0:i(u))!=null?l:u,h=[...a,f];if(r!=null&&r(s,h))return e(s,a);c[f]=o(d,h)}return c}return e(s,a)}return o(t)}var JF=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function e3(t){return qF(t,JF)}function t3(t){return t.semanticTokens}function n3(t){const{__cssMap:e,__cssVars:n,__breakpoints:r,...i}=t;return i}var r3=t=>CR.includes(t)||t==="default";function i3({tokens:t,semanticTokens:e}){const n={};return Wb(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),Wb(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(r3)}),n}function o3(t){var e;const n=n3(t),r=e3(n),i=t3(n),o=i3({tokens:r,semanticTokens:i}),s=(e=n.config)==null?void 0:e.cssVarPrefix,{cssMap:a,cssVars:l}=YF(o,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:XF(n.breakpoints)}),n}var m1=Fr({},qd,Ee,bF,eh,Vn,SF,IF,wF,SR,kF,rc,ny,Ue,FF,DF,MF,LF,EF,OF);Object.assign({},Ue,Vn,eh,SR,rc);var s3=[...Object.keys(m1),...CR],a3={...m1,...mp},l3=t=>t in a3,c3=t=>e=>{if(!e.__breakpoints)return t;const{isResponsive:n,toArrayValue:r,media:i}=e.__breakpoints,o={};for(const s in t){let a=Yi(t[s],e);if(a==null)continue;if(a=jr(a)&&n(a)?r(a):a,!Array.isArray(a)){o[s]=a;continue}const l=a.slice(0,i.length).length;for(let c=0;ct.startsWith("--")&&typeof e=="string"&&!d3(e),h3=(t,e)=>{var n,r;if(e==null)return e;const i=l=>{var c,u;return(u=(c=t.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},o=l=>{var c;return(c=i(l))!=null?c:l},[s,a]=u3(e);return e=(r=(n=i(s))!=null?n:o(a))!=null?r:o(e),e};function p3(t){const{configs:e={},pseudos:n={},theme:r}=t,i=(o,s=!1)=>{var a,l,c;const u=Yi(o,r),d=c3(u)(r);let f={};for(let h in d){const p=d[h];let m=Yi(p,r);h in n&&(h=n[h]),f3(h,m)&&(m=h3(r,m));let v=e[h];if(v===!0&&(v={property:h}),jr(m)){f[h]=(a=f[h])!=null?a:{},f[h]=Fr({},f[h],i(m,!0));continue}let y=(c=(l=v==null?void 0:v.transform)==null?void 0:l.call(v,m,r,u))!=null?c:m;y=v!=null&&v.processResult?i(y,!0):y;const g=Yi(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const _=Yi(v.static,r);f=Fr({},f,_)}if(g&&Array.isArray(g)){for(const _ of g)f[_]=y;continue}if(g){g==="&"&&jr(y)?f=Fr({},f,y):f[g]=y;continue}if(jr(y)){f=Fr({},f,y);continue}f[h]=y}return f};return i}var RR=t=>e=>p3({theme:e,pseudos:mp,configs:m1})(t);function Be(t){return{definePartsStyle(e){return e},defineMultiStyleConfig(e){return{parts:t,...e}}}}function g3(t,e){if(Array.isArray(t))return t;if(jr(t))return e(t);if(t!=null)return[t]}function m3(t,e){for(let n=e+1;n{Fr(c,{[_]:f?g[_]:{[y]:g[_]}})});continue}if(!h){f?Fr(c,g):c[y]=g;continue}c[y]=g}}return c}}function v3(t){return e=>{var n;const{variant:r,size:i,theme:o}=e,s=y3(o);return Fr({},Yi((n=t.baseStyle)!=null?n:{},e),s(t,"sizes",i,e),s(t,"variants",r,e))}}function Kr(t){return ZF(t,["styleConfig","size","variant","colorScheme"])}var _3={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},x3={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},b3={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},S3={property:_3,easing:x3,duration:b3},w3=S3,E3={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},T3=E3,C3={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},R3=C3,P3={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},A3=P3,k3={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},I3=k3,M3={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},L3=M3,O3={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},D3=O3,F3={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},$3=F3,N3={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},PR=N3,AR={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},z3={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},B3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},j3={...AR,...z3,container:B3},kR=j3,U3={breakpoints:A3,zIndices:T3,radii:L3,blur:$3,colors:I3,...PR,sizes:kR,shadows:D3,space:AR,borders:R3,transition:w3},{defineMultiStyleConfig:V3,definePartsStyle:Bl}=Be(["stepper","step","title","description","indicator","separator","icon","number"]),ni=J("stepper-indicator-size"),oa=J("stepper-icon-size"),sa=J("stepper-title-font-size"),jl=J("stepper-description-font-size"),Tl=J("stepper-accent-color"),G3=Bl(({colorScheme:t})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Tl.variable]:`colors.${t}.500`,_dark:{[Tl.variable]:`colors.${t}.200`}},title:{fontSize:sa.reference,fontWeight:"medium"},description:{fontSize:jl.reference,color:"chakra-subtle-text"},number:{fontSize:sa.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:oa.reference,height:oa.reference},indicator:{flexShrink:0,borderRadius:"full",width:ni.reference,height:ni.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Tl.reference},"&[data-status=complete]":{bg:Tl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Tl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ni.reference} - 8px)`,top:`calc(${ni.reference} + 4px)`,insetStart:`calc(${ni.reference} / 2 - 1px)`}}})),W3=V3({baseStyle:G3,sizes:{xs:Bl({stepper:{[ni.variable]:"sizes.4",[oa.variable]:"sizes.3",[sa.variable]:"fontSizes.xs",[jl.variable]:"fontSizes.xs"}}),sm:Bl({stepper:{[ni.variable]:"sizes.6",[oa.variable]:"sizes.4",[sa.variable]:"fontSizes.sm",[jl.variable]:"fontSizes.xs"}}),md:Bl({stepper:{[ni.variable]:"sizes.8",[oa.variable]:"sizes.5",[sa.variable]:"fontSizes.md",[jl.variable]:"fontSizes.sm"}}),lg:Bl({stepper:{[ni.variable]:"sizes.10",[oa.variable]:"sizes.6",[sa.variable]:"fontSizes.lg",[jl.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ae(t,e={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...u){r();for(const d of u)e[d]=l(d);return Ae(t,e)}function o(...u){for(const d of u)d in e||(e[d]=l(d));return Ae(t,e)}function s(){return Object.fromEntries(Object.entries(e).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(e).map(([d,f])=>[d,f.className]))}function l(u){const h=`chakra-${(["container","root"].includes(u??"")?[t]:[t,u]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>u}}return{parts:i,toPart:l,extend:o,selectors:s,classnames:a,get keys(){return Object.keys(e)},__type:{}}}var H3=Ae("accordion").parts("root","container","button","panel").extend("icon"),K3=Ae("alert").parts("title","description","container").extend("icon","spinner"),X3=Ae("avatar").parts("label","badge","container").extend("excessLabel","group"),Y3=Ae("breadcrumb").parts("link","item","container").extend("separator");Ae("button").parts();var Z3=Ae("checkbox").parts("control","icon","container").extend("label");Ae("progress").parts("track","filledTrack").extend("label");var q3=Ae("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Q3=Ae("editable").parts("preview","input","textarea"),J3=Ae("form").parts("container","requiredIndicator","helperText"),e$=Ae("formError").parts("text","icon"),t$=Ae("input").parts("addon","field","element","group"),n$=Ae("list").parts("container","item","icon"),r$=Ae("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),i$=Ae("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),o$=Ae("numberinput").parts("root","field","stepperGroup","stepper");Ae("pininput").parts("field");var s$=Ae("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),a$=Ae("progress").parts("label","filledTrack","track"),l$=Ae("radio").parts("container","control","label"),c$=Ae("select").parts("field","icon"),u$=Ae("slider").parts("container","track","thumb","filledTrack","mark"),d$=Ae("stat").parts("container","label","helpText","number","icon"),f$=Ae("switch").parts("container","track","thumb","label"),h$=Ae("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),p$=Ae("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),g$=Ae("tag").parts("container","label","closeButton"),m$=Ae("card").parts("container","header","body","footer");Ae("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Wo(t,e,n){return Math.min(Math.max(t,n),e)}class y$ extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Ul=y$;function y1(t){if(typeof t!="string")throw new Ul(t);if(t.trim().toLowerCase()==="transparent")return[0,0,0,0];let e=t.trim();e=T$.test(t)?x$(t):t;const n=b$.exec(e);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(jc(a,2),16)),parseInt(jc(s[3]||"f",2),16)/255]}const r=S$.exec(e);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const i=w$.exec(e);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const o=E$.exec(e);if(o){const[s,a,l,c]=Array.from(o).slice(1).map(parseFloat);if(Wo(0,100,a)!==a)throw new Ul(t);if(Wo(0,100,l)!==l)throw new Ul(t);return[...C$(s,a,l),Number.isNaN(c)?1:c]}throw new Ul(t)}function v$(t){let e=5381,n=t.length;for(;n;)e=e*33^t.charCodeAt(--n);return(e>>>0)%2341}const Hb=t=>parseInt(t.replace(/_/g,""),36),_$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,e)=>{const n=Hb(e.substring(0,3)),r=Hb(e.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return t[n]=`${i}${r}`,t},{});function x$(t){const e=t.toLowerCase().trim(),n=_$[v$(e)];if(!n)throw new Ul(t);return`#${n}`}const jc=(t,e)=>Array.from(Array(e)).map(()=>t).join(""),b$=new RegExp(`^#${jc("([a-f0-9])",3)}([a-f0-9])?$`,"i"),S$=new RegExp(`^#${jc("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),w$=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${jc(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),E$=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,T$=/^[a-z]+$/i,Kb=t=>Math.round(t*255),C$=(t,e,n)=>{let r=n/100;if(e===0)return[r,r,r].map(Kb);const i=(t%360+360)%360/60,o=(1-Math.abs(2*r-1))*(e/100),s=o*(1-Math.abs(i%2-1));let a=0,l=0,c=0;i>=0&&i<1?(a=o,l=s):i>=1&&i<2?(a=s,l=o):i>=2&&i<3?(l=o,c=s):i>=3&&i<4?(l=s,c=o):i>=4&&i<5?(a=s,c=o):i>=5&&i<6&&(a=o,c=s);const u=r-o/2,d=a+u,f=l+u,h=c+u;return[d,f,h].map(Kb)};function R$(t,e,n,r){return`rgba(${Wo(0,255,t).toFixed()}, ${Wo(0,255,e).toFixed()}, ${Wo(0,255,n).toFixed()}, ${parseFloat(Wo(0,1,r).toFixed(3))})`}function P$(t,e){const[n,r,i,o]=y1(t);return R$(n,r,i,o-e)}function A$(t){const[e,n,r,i]=y1(t);let o=s=>{const a=Wo(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${o(e)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}function k$(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;rObject.keys(t).length===0,Jt=(t,e,n)=>{const r=k$(t,`colors.${e}`,e);try{return A$(r),r}catch{return n??"#000000"}},M$=t=>{const[e,n,r]=y1(t);return(e*299+n*587+r*114)/1e3},L$=t=>e=>{const n=Jt(e,t);return M$(n)<128?"dark":"light"},O$=t=>e=>L$(t)(e)==="dark",Va=(t,e)=>n=>{const r=Jt(n,t);return P$(r,1-e)};function Xb(t="1rem",e="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${e} 25%, + transparent 25%, + transparent 50%, + ${e} 50%, + ${e} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${t} ${t}`}}var D$=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function F$(t){const e=D$();return!t||I$(t)?e:t.string&&t.colors?N$(t.string,t.colors):t.string&&!t.colors?$$(t.string):t.colors&&!t.string?z$(t.colors):e}function $$(t){let e=0;if(t.length===0)return e.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function N$(t,e){let n=0;if(t.length===0)return e[0];for(let r=0;rn.colorMode==="dark"?e:t}function v1(t){const{orientation:e,vertical:n,horizontal:r}=t;return e?e==="vertical"?n:r:{}}function IR(t){return jr(t)&&t.reference?t.reference:String(t)}var yp=(t,...e)=>e.map(IR).join(` ${t} `).replace(/calc/g,""),Yb=(...t)=>`calc(${yp("+",...t)})`,Zb=(...t)=>`calc(${yp("-",...t)})`,oy=(...t)=>`calc(${yp("*",...t)})`,qb=(...t)=>`calc(${yp("/",...t)})`,Qb=t=>{const e=IR(t);return e!=null&&!Number.isNaN(parseFloat(e))?String(e).startsWith("-")?String(e).slice(1):`-${e}`:oy(e,-1)},ri=Object.assign(t=>({add:(...e)=>ri(Yb(t,...e)),subtract:(...e)=>ri(Zb(t,...e)),multiply:(...e)=>ri(oy(t,...e)),divide:(...e)=>ri(qb(t,...e)),negate:()=>ri(Qb(t)),toString:()=>t.toString()}),{add:Yb,subtract:Zb,multiply:oy,divide:qb,negate:Qb});function B$(t){return!Number.isInteger(parseFloat(t.toString()))}function j$(t,e="-"){return t.replace(/\s+/g,e)}function MR(t){const e=j$(t.toString());return e.includes("\\.")?t:B$(t)?e.replace(".","\\."):t}function U$(t,e=""){return[e,MR(t)].filter(Boolean).join("-")}function V$(t,e){return`var(${MR(t)}${e?`, ${e}`:""})`}function G$(t,e=""){return`--${U$(t,e)}`}function _t(t,e){const n=G$(t,e==null?void 0:e.prefix);return{variable:n,reference:V$(n,W$(e==null?void 0:e.fallback))}}function W$(t){return typeof t=="string"?t:t==null?void 0:t.reference}var{defineMultiStyleConfig:H$,definePartsStyle:Qd}=Be(f$.keys),ic=_t("switch-track-width"),Qo=_t("switch-track-height"),Ug=_t("switch-track-diff"),K$=ri.subtract(ic,Qo),sy=_t("switch-thumb-x"),Cl=_t("switch-bg"),X$=t=>{const{colorScheme:e}=t;return{borderRadius:"full",p:"0.5",width:[ic.reference],height:[Qo.reference],transitionProperty:"common",transitionDuration:"fast",[Cl.variable]:"colors.gray.300",_dark:{[Cl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Cl.variable]:`colors.${e}.500`,_dark:{[Cl.variable]:`colors.${e}.200`}},bg:Cl.reference}},Y$={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Qo.reference],height:[Qo.reference],_checked:{transform:`translateX(${sy.reference})`}},Z$=Qd(t=>({container:{[Ug.variable]:K$,[sy.variable]:Ug.reference,_rtl:{[sy.variable]:ri(Ug).negate().toString()}},track:X$(t),thumb:Y$})),q$={sm:Qd({container:{[ic.variable]:"1.375rem",[Qo.variable]:"sizes.3"}}),md:Qd({container:{[ic.variable]:"1.875rem",[Qo.variable]:"sizes.4"}}),lg:Qd({container:{[ic.variable]:"2.875rem",[Qo.variable]:"sizes.6"}})},Q$=H$({baseStyle:Z$,sizes:q$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:J$,definePartsStyle:wa}=Be(h$.keys),eN=wa({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),th={"&[data-is-numeric=true]":{textAlign:"end"}},tN=wa(t=>{const{colorScheme:e}=t;return{th:{color:Q("gray.600","gray.400")(t),borderBottom:"1px",borderColor:Q(`${e}.100`,`${e}.700`)(t),...th},td:{borderBottom:"1px",borderColor:Q(`${e}.100`,`${e}.700`)(t),...th},caption:{color:Q("gray.600","gray.100")(t)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),nN=wa(t=>{const{colorScheme:e}=t;return{th:{color:Q("gray.600","gray.400")(t),borderBottom:"1px",borderColor:Q(`${e}.100`,`${e}.700`)(t),...th},td:{borderBottom:"1px",borderColor:Q(`${e}.100`,`${e}.700`)(t),...th},caption:{color:Q("gray.600","gray.100")(t)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Q(`${e}.100`,`${e}.700`)(t)},td:{background:Q(`${e}.100`,`${e}.700`)(t)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),rN={simple:tN,striped:nN,unstyled:{}},iN={sm:wa({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:wa({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:wa({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},oN=J$({baseStyle:eN,variants:rN,sizes:iN,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),fn=J("tabs-color"),cr=J("tabs-bg"),cd=J("tabs-border-color"),{defineMultiStyleConfig:sN,definePartsStyle:Ur}=Be(p$.keys),aN=t=>{const{orientation:e}=t;return{display:e==="vertical"?"flex":"block"}},lN=t=>{const{isFitted:e}=t;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},cN=t=>{const{align:e="start",orientation:n}=t;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:n==="vertical"?"column":"row"}},uN={p:4},dN=Ur(t=>({root:aN(t),tab:lN(t),tablist:cN(t),tabpanel:uN})),fN={sm:Ur({tab:{py:1,px:4,fontSize:"sm"}}),md:Ur({tab:{fontSize:"md",py:2,px:4}}),lg:Ur({tab:{fontSize:"lg",py:3,px:4}})},hN=Ur(t=>{const{colorScheme:e,orientation:n}=t,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[fn.variable]:`colors.${e}.600`,_dark:{[fn.variable]:`colors.${e}.300`},borderColor:"currentColor"},_active:{[cr.variable]:"colors.gray.200",_dark:{[cr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:fn.reference,bg:cr.reference}}}),pN=Ur(t=>{const{colorScheme:e}=t;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[cd.variable]:"transparent",_selected:{[fn.variable]:`colors.${e}.600`,[cd.variable]:"colors.white",_dark:{[fn.variable]:`colors.${e}.300`,[cd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:cd.reference},color:fn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),gN=Ur(t=>{const{colorScheme:e}=t;return{tab:{border:"1px solid",borderColor:"inherit",[cr.variable]:"colors.gray.50",_dark:{[cr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[cr.variable]:"colors.white",[fn.variable]:`colors.${e}.600`,_dark:{[cr.variable]:"colors.gray.800",[fn.variable]:`colors.${e}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:fn.reference,bg:cr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),mN=Ur(t=>{const{colorScheme:e,theme:n}=t;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Jt(n,`${e}.700`),bg:Jt(n,`${e}.100`)}}}}),yN=Ur(t=>{const{colorScheme:e}=t;return{tab:{borderRadius:"full",fontWeight:"semibold",[fn.variable]:"colors.gray.600",_dark:{[fn.variable]:"inherit"},_selected:{[fn.variable]:"colors.white",[cr.variable]:`colors.${e}.600`,_dark:{[fn.variable]:"colors.gray.800",[cr.variable]:`colors.${e}.300`}},color:fn.reference,bg:cr.reference}}}),vN=Ur({}),_N={line:hN,enclosed:pN,"enclosed-colored":gN,"soft-rounded":mN,"solid-rounded":yN,unstyled:vN},xN=sN({baseStyle:dN,sizes:fN,variants:_N,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),at=GF("badge",["bg","color","shadow"]),bN={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:at.bg.reference,color:at.color.reference,boxShadow:at.shadow.reference},SN=t=>{const{colorScheme:e,theme:n}=t,r=Va(`${e}.500`,.6)(n);return{[at.bg.variable]:`colors.${e}.500`,[at.color.variable]:"colors.white",_dark:{[at.bg.variable]:r,[at.color.variable]:"colors.whiteAlpha.800"}}},wN=t=>{const{colorScheme:e,theme:n}=t,r=Va(`${e}.200`,.16)(n);return{[at.bg.variable]:`colors.${e}.100`,[at.color.variable]:`colors.${e}.800`,_dark:{[at.bg.variable]:r,[at.color.variable]:`colors.${e}.200`}}},EN=t=>{const{colorScheme:e,theme:n}=t,r=Va(`${e}.200`,.8)(n);return{[at.color.variable]:`colors.${e}.500`,_dark:{[at.color.variable]:r},[at.shadow.variable]:`inset 0 0 0px 1px ${at.color.reference}`}},TN={solid:SN,subtle:wN,outline:EN},oc={baseStyle:bN,variants:TN,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:CN,definePartsStyle:Jo}=Be(g$.keys),Jb=J("tag-bg"),eS=J("tag-color"),Vg=J("tag-shadow"),Jd=J("tag-min-height"),ef=J("tag-min-width"),tf=J("tag-font-size"),nf=J("tag-padding-inline"),RN={fontWeight:"medium",lineHeight:1.2,outline:0,[eS.variable]:at.color.reference,[Jb.variable]:at.bg.reference,[Vg.variable]:at.shadow.reference,color:eS.reference,bg:Jb.reference,boxShadow:Vg.reference,borderRadius:"md",minH:Jd.reference,minW:ef.reference,fontSize:tf.reference,px:nf.reference,_focusVisible:{[Vg.variable]:"shadows.outline"}},PN={lineHeight:1.2,overflow:"visible"},AN={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},kN=Jo({container:RN,label:PN,closeButton:AN}),IN={sm:Jo({container:{[Jd.variable]:"sizes.5",[ef.variable]:"sizes.5",[tf.variable]:"fontSizes.xs",[nf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Jo({container:{[Jd.variable]:"sizes.6",[ef.variable]:"sizes.6",[tf.variable]:"fontSizes.sm",[nf.variable]:"space.2"}}),lg:Jo({container:{[Jd.variable]:"sizes.8",[ef.variable]:"sizes.8",[tf.variable]:"fontSizes.md",[nf.variable]:"space.3"}})},MN={subtle:Jo(t=>{var e;return{container:(e=oc.variants)==null?void 0:e.subtle(t)}}),solid:Jo(t=>{var e;return{container:(e=oc.variants)==null?void 0:e.solid(t)}}),outline:Jo(t=>{var e;return{container:(e=oc.variants)==null?void 0:e.outline(t)}})},LN=CN({variants:MN,baseStyle:kN,sizes:IN,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:si,defineMultiStyleConfig:ON}=Be(t$.keys),aa=J("input-height"),la=J("input-font-size"),ca=J("input-padding"),ua=J("input-border-radius"),DN=si({addon:{height:aa.reference,fontSize:la.reference,px:ca.reference,borderRadius:ua.reference},field:{width:"100%",height:aa.reference,fontSize:la.reference,px:ca.reference,borderRadius:ua.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ki={lg:{[la.variable]:"fontSizes.lg",[ca.variable]:"space.4",[ua.variable]:"radii.md",[aa.variable]:"sizes.12"},md:{[la.variable]:"fontSizes.md",[ca.variable]:"space.4",[ua.variable]:"radii.md",[aa.variable]:"sizes.10"},sm:{[la.variable]:"fontSizes.sm",[ca.variable]:"space.3",[ua.variable]:"radii.sm",[aa.variable]:"sizes.8"},xs:{[la.variable]:"fontSizes.xs",[ca.variable]:"space.2",[ua.variable]:"radii.sm",[aa.variable]:"sizes.6"}},FN={lg:si({field:ki.lg,group:ki.lg}),md:si({field:ki.md,group:ki.md}),sm:si({field:ki.sm,group:ki.sm}),xs:si({field:ki.xs,group:ki.xs})};function _1(t){const{focusBorderColor:e,errorBorderColor:n}=t;return{focusBorderColor:e||Q("blue.500","blue.300")(t),errorBorderColor:n||Q("red.500","red.300")(t)}}var $N=si(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=_1(t);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Q("gray.300","whiteAlpha.400")(t)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(e,r),boxShadow:`0 0 0 1px ${Jt(e,r)}`},_focusVisible:{zIndex:1,borderColor:Jt(e,n),boxShadow:`0 0 0 1px ${Jt(e,n)}`}},addon:{border:"1px solid",borderColor:Q("inherit","whiteAlpha.50")(t),bg:Q("gray.100","whiteAlpha.300")(t)}}}),NN=si(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=_1(t);return{field:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(t),_hover:{bg:Q("gray.200","whiteAlpha.100")(t)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(e,r)},_focusVisible:{bg:"transparent",borderColor:Jt(e,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Q("gray.100","whiteAlpha.50")(t)}}}),zN=si(t=>{const{theme:e}=t,{focusBorderColor:n,errorBorderColor:r}=_1(t);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Jt(e,r),boxShadow:`0px 1px 0px 0px ${Jt(e,r)}`},_focusVisible:{borderColor:Jt(e,n),boxShadow:`0px 1px 0px 0px ${Jt(e,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),BN=si({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),jN={outline:$N,filled:NN,flushed:zN,unstyled:BN},Pe=ON({baseStyle:DN,sizes:FN,variants:jN,defaultProps:{size:"md",variant:"outline"}}),tS,UN={...(tS=Pe.baseStyle)==null?void 0:tS.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},nS,rS,VN={outline:t=>{var e,n;return(n=(e=Pe.variants)==null?void 0:e.outline(t).field)!=null?n:{}},flushed:t=>{var e,n;return(n=(e=Pe.variants)==null?void 0:e.flushed(t).field)!=null?n:{}},filled:t=>{var e,n;return(n=(e=Pe.variants)==null?void 0:e.filled(t).field)!=null?n:{}},unstyled:(rS=(nS=Pe.variants)==null?void 0:nS.unstyled.field)!=null?rS:{}},iS,oS,sS,aS,lS,cS,uS,dS,GN={xs:(oS=(iS=Pe.sizes)==null?void 0:iS.xs.field)!=null?oS:{},sm:(aS=(sS=Pe.sizes)==null?void 0:sS.sm.field)!=null?aS:{},md:(cS=(lS=Pe.sizes)==null?void 0:lS.md.field)!=null?cS:{},lg:(dS=(uS=Pe.sizes)==null?void 0:uS.lg.field)!=null?dS:{}},WN={baseStyle:UN,sizes:GN,variants:VN,defaultProps:{size:"md",variant:"outline"}},ud=_t("tooltip-bg"),Gg=_t("tooltip-fg"),HN=_t("popper-arrow-bg"),KN={bg:ud.reference,color:Gg.reference,[ud.variable]:"colors.gray.700",[Gg.variable]:"colors.whiteAlpha.900",_dark:{[ud.variable]:"colors.gray.300",[Gg.variable]:"colors.gray.900"},[HN.variable]:ud.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},XN={baseStyle:KN},{defineMultiStyleConfig:YN,definePartsStyle:Vl}=Be(a$.keys),ZN=t=>{const{colorScheme:e,theme:n,isIndeterminate:r,hasStripe:i}=t,o=Q(Xb(),Xb("1rem","rgba(0,0,0,0.1)"))(t),s=Q(`${e}.500`,`${e}.200`)(t),a=`linear-gradient( + to right, + transparent 0%, + ${Jt(n,s)} 50%, + transparent 100% + )`;return{...!r&&i&&o,...r?{bgImage:a}:{bgColor:s}}},qN={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},QN=t=>({bg:Q("gray.100","whiteAlpha.300")(t)}),JN=t=>({transitionProperty:"common",transitionDuration:"slow",...ZN(t)}),e4=Vl(t=>({label:qN,filledTrack:JN(t),track:QN(t)})),t4={xs:Vl({track:{h:"1"}}),sm:Vl({track:{h:"2"}}),md:Vl({track:{h:"3"}}),lg:Vl({track:{h:"4"}})},n4=YN({sizes:t4,baseStyle:e4,defaultProps:{size:"md",colorScheme:"blue"}}),r4=t=>typeof t=="function";function nn(t,...e){return r4(t)?t(...e):t}var{definePartsStyle:rf,defineMultiStyleConfig:i4}=Be(Z3.keys),sc=J("checkbox-size"),o4=t=>{const{colorScheme:e}=t;return{w:sc.reference,h:sc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Q(`${e}.500`,`${e}.200`)(t),borderColor:Q(`${e}.500`,`${e}.200`)(t),color:Q("white","gray.900")(t),_hover:{bg:Q(`${e}.600`,`${e}.300`)(t),borderColor:Q(`${e}.600`,`${e}.300`)(t)},_disabled:{borderColor:Q("gray.200","transparent")(t),bg:Q("gray.200","whiteAlpha.300")(t),color:Q("gray.500","whiteAlpha.500")(t)}},_indeterminate:{bg:Q(`${e}.500`,`${e}.200`)(t),borderColor:Q(`${e}.500`,`${e}.200`)(t),color:Q("white","gray.900")(t)},_disabled:{bg:Q("gray.100","whiteAlpha.100")(t),borderColor:Q("gray.100","transparent")(t)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Q("red.500","red.300")(t)}}},s4={_disabled:{cursor:"not-allowed"}},a4={userSelect:"none",_disabled:{opacity:.4}},l4={transitionProperty:"transform",transitionDuration:"normal"},c4=rf(t=>({icon:l4,container:s4,control:nn(o4,t),label:a4})),u4={sm:rf({control:{[sc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:rf({control:{[sc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:rf({control:{[sc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},nh=i4({baseStyle:c4,sizes:u4,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:d4,definePartsStyle:of}=Be(l$.keys),f4=t=>{var e;const n=(e=nn(nh.baseStyle,t))==null?void 0:e.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},h4=of(t=>{var e,n,r,i;return{label:(n=(e=nh).baseStyle)==null?void 0:n.call(e,t).label,container:(i=(r=nh).baseStyle)==null?void 0:i.call(r,t).container,control:f4(t)}}),p4={md:of({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:of({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:of({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},g4=d4({baseStyle:h4,sizes:p4,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:m4,definePartsStyle:y4}=Be(c$.keys),dd=J("select-bg"),fS,v4={...(fS=Pe.baseStyle)==null?void 0:fS.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:dd.reference,[dd.variable]:"colors.white",_dark:{[dd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:dd.reference}},_4={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},x4=y4({field:v4,icon:_4}),fd={paddingInlineEnd:"8"},hS,pS,gS,mS,yS,vS,_S,xS,b4={lg:{...(hS=Pe.sizes)==null?void 0:hS.lg,field:{...(pS=Pe.sizes)==null?void 0:pS.lg.field,...fd}},md:{...(gS=Pe.sizes)==null?void 0:gS.md,field:{...(mS=Pe.sizes)==null?void 0:mS.md.field,...fd}},sm:{...(yS=Pe.sizes)==null?void 0:yS.sm,field:{...(vS=Pe.sizes)==null?void 0:vS.sm.field,...fd}},xs:{...(_S=Pe.sizes)==null?void 0:_S.xs,field:{...(xS=Pe.sizes)==null?void 0:xS.xs.field,...fd},icon:{insetEnd:"1"}}},S4=m4({baseStyle:x4,sizes:b4,variants:Pe.variants,defaultProps:Pe.defaultProps}),Wg=J("skeleton-start-color"),Hg=J("skeleton-end-color"),w4={[Wg.variable]:"colors.gray.100",[Hg.variable]:"colors.gray.400",_dark:{[Wg.variable]:"colors.gray.800",[Hg.variable]:"colors.gray.600"},background:Wg.reference,borderColor:Hg.reference,opacity:.7,borderRadius:"sm"},E4={baseStyle:w4},Kg=J("skip-link-bg"),T4={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Kg.variable]:"colors.white",_dark:{[Kg.variable]:"colors.gray.700"},bg:Kg.reference}},C4={baseStyle:T4},{defineMultiStyleConfig:R4,definePartsStyle:vp}=Be(u$.keys),Uc=J("slider-thumb-size"),Vc=J("slider-track-size"),Wi=J("slider-bg"),P4=t=>{const{orientation:e}=t;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...v1({orientation:e,vertical:{h:"100%"},horizontal:{w:"100%"}})}},A4=t=>({...v1({orientation:t.orientation,horizontal:{h:Vc.reference},vertical:{w:Vc.reference}}),overflow:"hidden",borderRadius:"sm",[Wi.variable]:"colors.gray.200",_dark:{[Wi.variable]:"colors.whiteAlpha.200"},_disabled:{[Wi.variable]:"colors.gray.300",_dark:{[Wi.variable]:"colors.whiteAlpha.300"}},bg:Wi.reference}),k4=t=>{const{orientation:e}=t;return{...v1({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Uc.reference,h:Uc.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},I4=t=>{const{colorScheme:e}=t;return{width:"inherit",height:"inherit",[Wi.variable]:`colors.${e}.500`,_dark:{[Wi.variable]:`colors.${e}.200`},bg:Wi.reference}},M4=vp(t=>({container:P4(t),track:A4(t),thumb:k4(t),filledTrack:I4(t)})),L4=vp({container:{[Uc.variable]:"sizes.4",[Vc.variable]:"sizes.1"}}),O4=vp({container:{[Uc.variable]:"sizes.3.5",[Vc.variable]:"sizes.1"}}),D4=vp({container:{[Uc.variable]:"sizes.2.5",[Vc.variable]:"sizes.0.5"}}),F4={lg:L4,md:O4,sm:D4},$4=R4({baseStyle:M4,sizes:F4,defaultProps:{size:"md",colorScheme:"blue"}}),Bo=_t("spinner-size"),N4={width:[Bo.reference],height:[Bo.reference]},z4={xs:{[Bo.variable]:"sizes.3"},sm:{[Bo.variable]:"sizes.4"},md:{[Bo.variable]:"sizes.6"},lg:{[Bo.variable]:"sizes.8"},xl:{[Bo.variable]:"sizes.12"}},B4={baseStyle:N4,sizes:z4,defaultProps:{size:"md"}},{defineMultiStyleConfig:j4,definePartsStyle:LR}=Be(d$.keys),U4={fontWeight:"medium"},V4={opacity:.8,marginBottom:"2"},G4={verticalAlign:"baseline",fontWeight:"semibold"},W4={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},H4=LR({container:{},label:U4,helpText:V4,number:G4,icon:W4}),K4={md:LR({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},X4=j4({baseStyle:H4,sizes:K4,defaultProps:{size:"md"}}),Xg=J("kbd-bg"),Y4={[Xg.variable]:"colors.gray.100",_dark:{[Xg.variable]:"colors.whiteAlpha.100"},bg:Xg.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Z4={baseStyle:Y4},q4={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Q4={baseStyle:q4},{defineMultiStyleConfig:J4,definePartsStyle:ez}=Be(n$.keys),tz={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},nz=ez({icon:tz}),rz=J4({baseStyle:nz}),{defineMultiStyleConfig:iz,definePartsStyle:oz}=Be(r$.keys),Ar=J("menu-bg"),Yg=J("menu-shadow"),sz={[Ar.variable]:"#fff",[Yg.variable]:"shadows.sm",_dark:{[Ar.variable]:"colors.gray.700",[Yg.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ar.reference,boxShadow:Yg.reference},az={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ar.variable]:"colors.gray.100",_dark:{[Ar.variable]:"colors.whiteAlpha.100"}},_active:{[Ar.variable]:"colors.gray.200",_dark:{[Ar.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ar.variable]:"colors.gray.100",_dark:{[Ar.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ar.reference},lz={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},cz={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},uz={opacity:.6},dz={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},fz={transitionProperty:"common",transitionDuration:"normal"},hz=oz({button:fz,list:sz,item:az,groupTitle:lz,icon:cz,command:uz,divider:dz}),pz=iz({baseStyle:hz}),{defineMultiStyleConfig:gz,definePartsStyle:ay}=Be(i$.keys),Zg=J("modal-bg"),qg=J("modal-shadow"),mz={bg:"blackAlpha.600",zIndex:"modal"},yz=t=>{const{isCentered:e,scrollBehavior:n}=t;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},vz=t=>{const{isCentered:e,scrollBehavior:n}=t;return{borderRadius:"md",color:"inherit",my:e?"auto":"16",mx:e?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Zg.variable]:"colors.white",[qg.variable]:"shadows.lg",_dark:{[Zg.variable]:"colors.gray.700",[qg.variable]:"shadows.dark-lg"},bg:Zg.reference,boxShadow:qg.reference}},_z={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xz={position:"absolute",top:"2",insetEnd:"3"},bz=t=>{const{scrollBehavior:e}=t;return{px:"6",py:"2",flex:"1",overflow:e==="inside"?"auto":void 0}},Sz={px:"6",py:"4"},wz=ay(t=>({overlay:mz,dialogContainer:nn(yz,t),dialog:nn(vz,t),header:_z,closeButton:xz,body:nn(bz,t),footer:Sz}));function rr(t){return ay(t==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:t}})}var Ez={xs:rr("xs"),sm:rr("sm"),md:rr("md"),lg:rr("lg"),xl:rr("xl"),"2xl":rr("2xl"),"3xl":rr("3xl"),"4xl":rr("4xl"),"5xl":rr("5xl"),"6xl":rr("6xl"),full:rr("full")},Tz=gz({baseStyle:wz,sizes:Ez,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Cz,definePartsStyle:OR}=Be(o$.keys),x1=_t("number-input-stepper-width"),DR=_t("number-input-input-padding"),Rz=ri(x1).add("0.5rem").toString(),Qg=_t("number-input-bg"),Jg=_t("number-input-color"),em=_t("number-input-border-color"),Pz={[x1.variable]:"sizes.6",[DR.variable]:Rz},Az=t=>{var e,n;return(n=(e=nn(Pe.baseStyle,t))==null?void 0:e.field)!=null?n:{}},kz={width:x1.reference},Iz={borderStart:"1px solid",borderStartColor:em.reference,color:Jg.reference,bg:Qg.reference,[Jg.variable]:"colors.chakra-body-text",[em.variable]:"colors.chakra-border-color",_dark:{[Jg.variable]:"colors.whiteAlpha.800",[em.variable]:"colors.whiteAlpha.300"},_active:{[Qg.variable]:"colors.gray.200",_dark:{[Qg.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Mz=OR(t=>{var e;return{root:Pz,field:(e=nn(Az,t))!=null?e:{},stepperGroup:kz,stepper:Iz}});function hd(t){var e,n,r;const i=(e=Pe.sizes)==null?void 0:e[t],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",a=PR.fontSizes[s];return OR({field:{...i.field,paddingInlineEnd:DR.reference,verticalAlign:"top"},stepper:{fontSize:ri(a).multiply(.75).toString(),_first:{borderTopEndRadius:o[t]},_last:{borderBottomEndRadius:o[t],mt:"-1px",borderTopWidth:1}}})}var Lz={xs:hd("xs"),sm:hd("sm"),md:hd("md"),lg:hd("lg")},Oz=Cz({baseStyle:Mz,sizes:Lz,variants:Pe.variants,defaultProps:Pe.defaultProps}),bS,Dz={...(bS=Pe.baseStyle)==null?void 0:bS.field,textAlign:"center"},Fz={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},SS,wS,$z={outline:t=>{var e,n,r;return(r=(n=nn((e=Pe.variants)==null?void 0:e.outline,t))==null?void 0:n.field)!=null?r:{}},flushed:t=>{var e,n,r;return(r=(n=nn((e=Pe.variants)==null?void 0:e.flushed,t))==null?void 0:n.field)!=null?r:{}},filled:t=>{var e,n,r;return(r=(n=nn((e=Pe.variants)==null?void 0:e.filled,t))==null?void 0:n.field)!=null?r:{}},unstyled:(wS=(SS=Pe.variants)==null?void 0:SS.unstyled.field)!=null?wS:{}},Nz={baseStyle:Dz,sizes:Fz,variants:$z,defaultProps:Pe.defaultProps},{defineMultiStyleConfig:zz,definePartsStyle:Bz}=Be(s$.keys),pd=_t("popper-bg"),jz=_t("popper-arrow-bg"),ES=_t("popper-arrow-shadow-color"),Uz={zIndex:10},Vz={[pd.variable]:"colors.white",bg:pd.reference,[jz.variable]:pd.reference,[ES.variable]:"colors.gray.200",_dark:{[pd.variable]:"colors.gray.700",[ES.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Gz={px:3,py:2,borderBottomWidth:"1px"},Wz={px:3,py:2},Hz={px:3,py:2,borderTopWidth:"1px"},Kz={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Xz=Bz({popper:Uz,content:Vz,header:Gz,body:Wz,footer:Hz,closeButton:Kz}),Yz=zz({baseStyle:Xz}),{definePartsStyle:ly,defineMultiStyleConfig:Zz}=Be(q3.keys),tm=J("drawer-bg"),nm=J("drawer-box-shadow");function ks(t){return ly(t==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:t}})}var qz={bg:"blackAlpha.600",zIndex:"modal"},Qz={display:"flex",zIndex:"modal",justifyContent:"center"},Jz=t=>{const{isFullHeight:e}=t;return{...e&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[tm.variable]:"colors.white",[nm.variable]:"shadows.lg",_dark:{[tm.variable]:"colors.gray.700",[nm.variable]:"shadows.dark-lg"},bg:tm.reference,boxShadow:nm.reference}},eB={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},tB={position:"absolute",top:"2",insetEnd:"3"},nB={px:"6",py:"2",flex:"1",overflow:"auto"},rB={px:"6",py:"4"},iB=ly(t=>({overlay:qz,dialogContainer:Qz,dialog:nn(Jz,t),header:eB,closeButton:tB,body:nB,footer:rB})),oB={xs:ks("xs"),sm:ks("md"),md:ks("lg"),lg:ks("2xl"),xl:ks("4xl"),full:ks("full")},sB=Zz({baseStyle:iB,sizes:oB,defaultProps:{size:"xs"}}),{definePartsStyle:aB,defineMultiStyleConfig:lB}=Be(Q3.keys),cB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},uB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},dB={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},fB=aB({preview:cB,input:uB,textarea:dB}),hB=lB({baseStyle:fB}),{definePartsStyle:pB,defineMultiStyleConfig:gB}=Be(J3.keys),Ea=J("form-control-color"),mB={marginStart:"1",[Ea.variable]:"colors.red.500",_dark:{[Ea.variable]:"colors.red.300"},color:Ea.reference},yB={mt:"2",[Ea.variable]:"colors.gray.600",_dark:{[Ea.variable]:"colors.whiteAlpha.600"},color:Ea.reference,lineHeight:"normal",fontSize:"sm"},vB=pB({container:{width:"100%",position:"relative"},requiredIndicator:mB,helperText:yB}),_B=gB({baseStyle:vB}),{definePartsStyle:xB,defineMultiStyleConfig:bB}=Be(e$.keys),Ta=J("form-error-color"),SB={[Ta.variable]:"colors.red.500",_dark:{[Ta.variable]:"colors.red.300"},color:Ta.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},wB={marginEnd:"0.5em",[Ta.variable]:"colors.red.500",_dark:{[Ta.variable]:"colors.red.300"},color:Ta.reference},EB=xB({text:SB,icon:wB}),TB=bB({baseStyle:EB}),CB={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},RB={baseStyle:CB},PB={fontFamily:"heading",fontWeight:"bold"},AB={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},kB={baseStyle:PB,sizes:AB,defaultProps:{size:"xl"}},{defineMultiStyleConfig:IB,definePartsStyle:MB}=Be(Y3.keys),rm=J("breadcrumb-link-decor"),LB={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:rm.reference,[rm.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[rm.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},OB=MB({link:LB}),DB=IB({baseStyle:OB}),FB={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},FR=t=>{const{colorScheme:e,theme:n}=t;if(e==="gray")return{color:Q("gray.800","whiteAlpha.900")(t),_hover:{bg:Q("gray.100","whiteAlpha.200")(t)},_active:{bg:Q("gray.200","whiteAlpha.300")(t)}};const r=Va(`${e}.200`,.12)(n),i=Va(`${e}.200`,.24)(n);return{color:Q(`${e}.600`,`${e}.200`)(t),bg:"transparent",_hover:{bg:Q(`${e}.50`,r)(t)},_active:{bg:Q(`${e}.100`,i)(t)}}},$B=t=>{const{colorScheme:e}=t,n=Q("gray.200","whiteAlpha.300")(t);return{border:"1px solid",borderColor:e==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...nn(FR,t)}},NB={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},zB=t=>{var e;const{colorScheme:n}=t;if(n==="gray"){const l=Q("gray.100","whiteAlpha.200")(t);return{bg:l,color:Q("gray.800","whiteAlpha.900")(t),_hover:{bg:Q("gray.200","whiteAlpha.300")(t),_disabled:{bg:l}},_active:{bg:Q("gray.300","whiteAlpha.400")(t)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:s=`${n}.700`}=(e=NB[n])!=null?e:{},a=Q(r,`${n}.200`)(t);return{bg:a,color:Q(i,"gray.800")(t),_hover:{bg:Q(o,`${n}.300`)(t),_disabled:{bg:a}},_active:{bg:Q(s,`${n}.400`)(t)}}},BB=t=>{const{colorScheme:e}=t;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Q(`${e}.500`,`${e}.200`)(t),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Q(`${e}.700`,`${e}.500`)(t)}}},jB={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},UB={ghost:FR,outline:$B,solid:zB,link:BB,unstyled:jB},VB={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},GB={baseStyle:FB,variants:UB,sizes:VB,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:es,defineMultiStyleConfig:WB}=Be(m$.keys),rh=J("card-bg"),ui=J("card-padding"),$R=J("card-shadow"),sf=J("card-radius"),NR=J("card-border-width","0"),zR=J("card-border-color"),HB=es({container:{[rh.variable]:"colors.chakra-body-bg",backgroundColor:rh.reference,boxShadow:$R.reference,borderRadius:sf.reference,color:"chakra-body-text",borderWidth:NR.reference,borderColor:zR.reference},body:{padding:ui.reference,flex:"1 1 0%"},header:{padding:ui.reference},footer:{padding:ui.reference}}),KB={sm:es({container:{[sf.variable]:"radii.base",[ui.variable]:"space.3"}}),md:es({container:{[sf.variable]:"radii.md",[ui.variable]:"space.5"}}),lg:es({container:{[sf.variable]:"radii.xl",[ui.variable]:"space.7"}})},XB={elevated:es({container:{[$R.variable]:"shadows.base",_dark:{[rh.variable]:"colors.gray.700"}}}),outline:es({container:{[NR.variable]:"1px",[zR.variable]:"colors.chakra-border-color"}}),filled:es({container:{[rh.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ui.variable]:0},header:{[ui.variable]:0},footer:{[ui.variable]:0}}},YB=WB({baseStyle:HB,variants:XB,sizes:KB,defaultProps:{variant:"elevated",size:"md"}}),ac=_t("close-button-size"),Rl=_t("close-button-bg"),ZB={w:[ac.reference],h:[ac.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Rl.variable]:"colors.blackAlpha.100",_dark:{[Rl.variable]:"colors.whiteAlpha.100"}},_active:{[Rl.variable]:"colors.blackAlpha.200",_dark:{[Rl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Rl.reference},qB={lg:{[ac.variable]:"sizes.10",fontSize:"md"},md:{[ac.variable]:"sizes.8",fontSize:"xs"},sm:{[ac.variable]:"sizes.6",fontSize:"2xs"}},QB={baseStyle:ZB,sizes:qB,defaultProps:{size:"md"}},{variants:JB,defaultProps:e6}=oc,t6={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:at.bg.reference,color:at.color.reference,boxShadow:at.shadow.reference},n6={baseStyle:t6,variants:JB,defaultProps:e6},r6={w:"100%",mx:"auto",maxW:"prose",px:"4"},i6={baseStyle:r6},o6={opacity:.6,borderColor:"inherit"},s6={borderStyle:"solid"},a6={borderStyle:"dashed"},l6={solid:s6,dashed:a6},c6={baseStyle:o6,variants:l6,defaultProps:{variant:"solid"}},{definePartsStyle:u6,defineMultiStyleConfig:d6}=Be(H3.keys),f6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},h6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},p6={pt:"2",px:"4",pb:"5"},g6={fontSize:"1.25em"},m6=u6({container:f6,button:h6,panel:p6,icon:g6}),y6=d6({baseStyle:m6}),{definePartsStyle:pu,defineMultiStyleConfig:v6}=Be(K3.keys),In=J("alert-fg"),_i=J("alert-bg"),_6=pu({container:{bg:_i.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:In.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:In.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function b1(t){const{theme:e,colorScheme:n}=t,r=Va(`${n}.200`,.16)(e);return{light:`colors.${n}.100`,dark:r}}var x6=pu(t=>{const{colorScheme:e}=t,n=b1(t);return{container:{[In.variable]:`colors.${e}.600`,[_i.variable]:n.light,_dark:{[In.variable]:`colors.${e}.200`,[_i.variable]:n.dark}}}}),b6=pu(t=>{const{colorScheme:e}=t,n=b1(t);return{container:{[In.variable]:`colors.${e}.600`,[_i.variable]:n.light,_dark:{[In.variable]:`colors.${e}.200`,[_i.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:In.reference}}}),S6=pu(t=>{const{colorScheme:e}=t,n=b1(t);return{container:{[In.variable]:`colors.${e}.600`,[_i.variable]:n.light,_dark:{[In.variable]:`colors.${e}.200`,[_i.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:In.reference}}}),w6=pu(t=>{const{colorScheme:e}=t;return{container:{[In.variable]:"colors.white",[_i.variable]:`colors.${e}.600`,_dark:{[In.variable]:"colors.gray.900",[_i.variable]:`colors.${e}.200`},color:In.reference}}}),E6={subtle:x6,"left-accent":b6,"top-accent":S6,solid:w6},T6=v6({baseStyle:_6,variants:E6,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:BR,defineMultiStyleConfig:C6}=Be(X3.keys),Ca=J("avatar-border-color"),lc=J("avatar-bg"),Gc=J("avatar-font-size"),Ga=J("avatar-size"),R6={borderRadius:"full",border:"0.2em solid",borderColor:Ca.reference,[Ca.variable]:"white",_dark:{[Ca.variable]:"colors.gray.800"}},P6={bg:lc.reference,fontSize:Gc.reference,width:Ga.reference,height:Ga.reference,lineHeight:"1",[lc.variable]:"colors.gray.200",_dark:{[lc.variable]:"colors.whiteAlpha.400"}},A6=t=>{const{name:e,theme:n}=t,r=e?F$({string:e}):"colors.gray.400",i=O$(r)(n);let o="white";return i||(o="gray.800"),{bg:lc.reference,fontSize:Gc.reference,color:o,borderColor:Ca.reference,verticalAlign:"top",width:Ga.reference,height:Ga.reference,"&:not([data-loaded])":{[lc.variable]:r},[Ca.variable]:"colors.white",_dark:{[Ca.variable]:"colors.gray.800"}}},k6={fontSize:Gc.reference,lineHeight:"1"},I6=BR(t=>({badge:nn(R6,t),excessLabel:nn(P6,t),container:nn(A6,t),label:k6}));function Ii(t){const e=t!=="100%"?kR[t]:void 0;return BR({container:{[Ga.variable]:e??t,[Gc.variable]:`calc(${e??t} / 2.5)`},excessLabel:{[Ga.variable]:e??t,[Gc.variable]:`calc(${e??t} / 2.5)`}})}var M6={"2xs":Ii(4),xs:Ii(6),sm:Ii(8),md:Ii(12),lg:Ii(16),xl:Ii(24),"2xl":Ii(32),full:Ii("100%")},L6=C6({baseStyle:I6,sizes:M6,defaultProps:{size:"md"}}),O6={Accordion:y6,Alert:T6,Avatar:L6,Badge:oc,Breadcrumb:DB,Button:GB,Checkbox:nh,CloseButton:QB,Code:n6,Container:i6,Divider:c6,Drawer:sB,Editable:hB,Form:_B,FormError:TB,FormLabel:RB,Heading:kB,Input:Pe,Kbd:Z4,Link:Q4,List:rz,Menu:pz,Modal:Tz,NumberInput:Oz,PinInput:Nz,Popover:Yz,Progress:n4,Radio:g4,Select:S4,Skeleton:E4,SkipLink:C4,Slider:$4,Spinner:B4,Stat:X4,Switch:Q$,Table:oN,Tabs:xN,Tag:LN,Textarea:WN,Tooltip:XN,Card:YB,Stepper:W3},D6={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},F6={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},$6="ltr",N6={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},z6={semanticTokens:D6,direction:$6,...U3,components:O6,styles:F6,config:N6};function B6(t,e){const n={};return Object.keys(t).forEach(r=>{e.includes(r)||(n[r]=t[r])}),n}function j6(t,e,n,r){const i=typeof e=="string"?e.split("."):[e];for(r=0;r{const e=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return t(r,i,o);e.has(r)||e.set(r,new Map);const a=e.get(r);if(a.has(i))return a.get(i);const l=t(r,i,o,s);return a.set(i,l),l}},jR=U6(j6);function UR(t,e){const n={};return Object.keys(t).forEach(r=>{const i=t[r];e(i,r,t)&&(n[r]=i)}),n}var VR=t=>UR(t,e=>e!=null);function V6(t){return typeof t=="function"}function GR(t,...e){return V6(t)?t(...e):t}const WR=1/60*1e3,G6=typeof performance<"u"?()=>performance.now():()=>Date.now(),HR=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(G6()),WR);function W6(t){let e=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&i,f=d?e:n;return c&&s.add(l),f.indexOf(l)===-1&&(f.push(l),d&&i&&(r=e.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let c=0;c(t[e]=W6(()=>Wc=!0),t),{}),K6=gu.reduce((t,e)=>{const n=_p[e];return t[e]=(r,i=!1,o=!1)=>(Wc||Z6(),n.schedule(r,i,o)),t},{}),X6=gu.reduce((t,e)=>(t[e]=_p[e].cancel,t),{});gu.reduce((t,e)=>(t[e]=()=>_p[e].process(Ra),t),{});const Y6=t=>_p[t].process(Ra),KR=t=>{Wc=!1,Ra.delta=cy?WR:Math.max(Math.min(t-Ra.timestamp,H6),1),Ra.timestamp=t,uy=!0,gu.forEach(Y6),uy=!1,Wc&&(cy=!1,HR(KR))},Z6=()=>{Wc=!0,cy=!0,uy||HR(KR)},TS=()=>Ra;var q6=typeof Element<"u",Q6=typeof Map=="function",J6=typeof Set=="function",ej=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function af(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!af(t[r],e[r]))return!1;return!0}var o;if(Q6&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!af(r.value[1],e.get(r.value[0])))return!1;return!0}if(J6&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(ej&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(q6&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!af(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var tj=function(e,n){try{return af(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const nj=fs(tj);function XR(t,e={}){var n;const{styleConfig:r,...i}=e,{theme:o,colorMode:s}=nF(),a=t?jR(o,`components.${t}`):void 0,l=r||a,c=Fr({theme:o,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},VR(B6(i,["children"]))),u=C.useRef({});if(l){const f=v3(l)(c);nj(u.current,f)||(u.current=f)}return u.current}function gs(t,e={}){return XR(t,e)}function xp(t,e={}){return XR(t,e)}var rj=new Set([...s3,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),ij=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function oj(t){return ij.has(t)||!rj.has(t)}function sj(t,...e){if(t==null)throw new TypeError("Cannot convert undefined or null to object");const n={...t};for(const r of e)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function aj(t){const e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}var lj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cj=eC(function(t){return lj.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),uj=cj,dj=function(e){return e!=="theme"},CS=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?uj:dj},RS=function(e,n,r){var i;if(n){var o=n.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},fj=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return sC(n,r,i),LL(function(){return aC(n,r,i)}),null},hj=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,o,s;n!==void 0&&(o=n.label,s=n.target);var a=RS(e,n,r),l=a||CS(i),c=!l("as");return function(){var u=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;he=>{const{theme:n,css:r,__css:i,sx:o,...s}=e,a=UR(s,(d,f)=>l3(f)),l=GR(t,e),c=sj({},i,l,VR(a),o),u=RR(c)(e.theme);return r?[u,r]:u};function im(t,e){const{baseStyle:n,...r}=e??{};r.shouldForwardProp||(r.shouldForwardProp=oj);const i=mj({baseStyle:n}),o=gj(t,r)(i);return gn.forwardRef(function(l,c){const{colorMode:u,forced:d}=h1();return gn.createElement(o,{ref:c,"data-theme":d?u:void 0,...l})})}function yj(){const t=new Map;return new Proxy(im,{apply(e,n,r){return im(...r)},get(e,n){return t.has(n)||t.set(n,im(n)),t.get(n)}})}var Oe=yj();function ct(t){return C.forwardRef(t)}function vj(t={}){const{strict:e=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=t,i=C.createContext(void 0);i.displayName=r;function o(){var s;const a=C.useContext(i);if(!a&&e){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,o),l}return a}return[i.Provider,o,i]}function _j(t){const{cssVarsRoot:e,theme:n,children:r}=t,i=C.useMemo(()=>o3(n),[n]);return k.jsxs(FL,{theme:i,children:[k.jsx(xj,{root:e}),r]})}function xj({root:t=":host, :root"}){const e=[t,"[data-theme]"].join(",");return k.jsx(Qh,{styles:n=>({[e]:n.__cssVars})})}vj({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function bj(){const{colorMode:t}=h1();return k.jsx(Qh,{styles:e=>{const n=jR(e,"styles.global"),r=GR(n,{theme:e,colorMode:t});return r?RR(r)(e):void 0}})}var YR=C.createContext({getDocument(){return document},getWindow(){return window}});YR.displayName="EnvironmentContext";function ZR(t){const{children:e,environment:n,disabled:r}=t,i=C.useRef(null),o=C.useMemo(()=>n||{getDocument:()=>{var a,l;return(l=(a=i.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=i.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[n]),s=!r||!n;return k.jsxs(YR.Provider,{value:o,children:[e,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}ZR.displayName="EnvironmentProvider";var Sj=t=>{const{children:e,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=t,d=k.jsx(ZR,{environment:a,disabled:c,children:e});return k.jsx(_j,{theme:s,cssVarsRoot:l,children:k.jsxs(xR,{colorModeManager:n,options:s.config,children:[o?k.jsx(BL,{scope:i}):k.jsx(zL,{}),!u&&k.jsx(bj,{}),r?k.jsx(pC,{zIndex:r,children:d}):d]})})},wj=(t,e)=>t.find(n=>n.id===e);function AS(t,e){const n=qR(t,e),r=n?t[n].findIndex(i=>i.id===e):-1;return{position:n,index:r}}function qR(t,e){for(const[n,r]of Object.entries(t))if(wj(r,e))return n}function Ej(t){const e=t.includes("right"),n=t.includes("left");let r="center";return e&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function Tj(t){const n=t==="top"||t==="bottom"?"0 auto":void 0,r=t.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=t.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=t.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=t.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}function Vr(t,e=[]){const n=C.useRef(t);return C.useEffect(()=>{n.current=t}),C.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},e)}function Cj(t,e){const n=Vr(t);C.useEffect(()=>{if(e==null)return;let r=null;return r=window.setTimeout(()=>{n()},e),()=>{r&&window.clearTimeout(r)}},[e,n])}function oh(t,e){const n=C.useRef(!1),r=C.useRef(!1);C.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},e),C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const QR=C.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),bp=C.createContext({}),mu=C.createContext(null),Sp=typeof document<"u",S1=Sp?C.useLayoutEffect:C.useEffect,JR=C.createContext({strict:!1}),w1=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Rj="framerAppearId",eP="data-"+w1(Rj);function Pj(t,e,n,r){const{visualElement:i}=C.useContext(bp),o=C.useContext(JR),s=C.useContext(mu),a=C.useContext(QR).reducedMotion,l=C.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;C.useInsertionEffect(()=>{c&&c.update(n,s)});const u=C.useRef(!!(n[eP]&&!window.HandoffComplete));return S1(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),C.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function da(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Aj(t,e,n){return C.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):da(n)&&(n.current=r))},[e])}function Hc(t){return typeof t=="string"||Array.isArray(t)}function wp(t){return typeof t=="object"&&typeof t.start=="function"}const E1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],T1=["initial",...E1];function Ep(t){return wp(t.animate)||T1.some(e=>Hc(t[e]))}function tP(t){return!!(Ep(t)||t.variants)}function kj(t,e){if(Ep(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Hc(n)?n:void 0,animate:Hc(r)?r:void 0}}return t.inherit!==!1?e:{}}function Ij(t){const{initial:e,animate:n}=kj(t,C.useContext(bp));return C.useMemo(()=>({initial:e,animate:n}),[kS(e),kS(n)])}function kS(t){return Array.isArray(t)?t.join(" "):t}const IS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kc={};for(const t in IS)Kc[t]={isEnabled:e=>IS[t].some(n=>!!e[n])};function Mj(t){for(const e in t)Kc[e]={...Kc[e],...t[e]}}const C1=C.createContext({}),nP=C.createContext({}),Lj=Symbol.for("motionComponentSymbol");function Oj({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Mj(t);function o(a,l){let c;const u={...C.useContext(QR),...a,layoutId:Dj(a)},{isStatic:d}=u,f=Ij(a),h=r(a,d);if(!d&&Sp){f.visualElement=Pj(i,h,u,e);const p=C.useContext(nP),m=C.useContext(JR).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,m,t,p))}return C.createElement(bp.Provider,{value:f},c&&f.visualElement?C.createElement(c,{visualElement:f.visualElement,...u}):null,n(i,a,Aj(h,f.visualElement,l),h,d,f.visualElement))}const s=C.forwardRef(o);return s[Lj]=i,s}function Dj({layoutId:t}){const e=C.useContext(C1).id;return e&&t!==void 0?e+"-"+t:t}function Fj(t){function e(r,i={}){return Oj(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const $j=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R1(t){return typeof t!="string"||t.includes("-")?!1:!!($j.indexOf(t)>-1||/[A-Z]/.test(t))}const sh={};function Nj(t){Object.assign(sh,t)}const yu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ms=new Set(yu);function rP(t,{layout:e,layoutId:n}){return ms.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!sh[t]||t==="opacity")}const xn=t=>!!(t&&t.getVelocity),zj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bj=yu.length;function jj(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;se=>typeof e=="string"&&e.startsWith(t),oP=iP("--"),dy=iP("var(--"),Uj=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Vj=(t,e)=>e&&typeof t=="number"?e.transform(t):t,fo=(t,e,n)=>Math.min(Math.max(n,t),e),ys={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},cc={...ys,transform:t=>fo(0,1,t)},gd={...ys,default:1},uc=t=>Math.round(t*1e5)/1e5,Tp=/(-)?([\d]*\.?[\d])+/g,sP=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Gj=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function vu(t){return typeof t=="string"}const _u=t=>({test:e=>vu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Di=_u("deg"),Gr=_u("%"),re=_u("px"),Wj=_u("vh"),Hj=_u("vw"),MS={...Gr,parse:t=>Gr.parse(t)/100,transform:t=>Gr.transform(t*100)},LS={...ys,transform:Math.round},aP={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Di,rotateX:Di,rotateY:Di,rotateZ:Di,scale:gd,scaleX:gd,scaleY:gd,scaleZ:gd,skew:Di,skewX:Di,skewY:Di,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:cc,originX:MS,originY:MS,originZ:re,zIndex:LS,fillOpacity:cc,strokeOpacity:cc,numOctaves:LS};function P1(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const d in e){const f=e[d];if(oP(d)){o[d]=f;continue}const h=aP[d],p=Vj(f,h);if(ms.has(d)){if(l=!0,s[d]=p,!u)continue;f!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,a[d]=p):i[d]=p}if(e.transform||(l||r?i.transform=jj(t.transform,n,u,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;i.transformOrigin=`${d} ${f} ${h}`}}const A1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lP(t,e,n){for(const r in e)!xn(e[r])&&!rP(r,n)&&(t[r]=e[r])}function Kj({transformTemplate:t},e,n){return C.useMemo(()=>{const r=A1();return P1(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function Xj(t,e,n){const r=t.style||{},i={};return lP(i,r,t),Object.assign(i,Kj(t,e,n)),t.transformValues?t.transformValues(i):i}function Yj(t,e,n){const r={},i=Xj(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const Zj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ah(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||Zj.has(t)}let cP=t=>!ah(t);function qj(t){t&&(cP=e=>e.startsWith("on")?!ah(e):t(e))}try{qj(require("@emotion/is-prop-valid").default)}catch{}function Qj(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(cP(i)||n===!0&&ah(i)||!e&&!ah(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function OS(t,e,n){return typeof t=="string"?t:re.transform(e+n*t)}function Jj(t,e,n){const r=OS(e,t.x,t.width),i=OS(n,t.y,t.height);return`${r} ${i}`}const e8={offset:"stroke-dashoffset",array:"stroke-dasharray"},t8={offset:"strokeDashoffset",array:"strokeDasharray"};function n8(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?e8:t8;t[o.offset]=re.transform(-r);const s=re.transform(e),a=re.transform(n);t[o.array]=`${s} ${a}`}function k1(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,f){if(P1(t,c,u,f),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:m}=t;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Jj(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&n8(h,s,a,l,!1)}const uP=()=>({...A1(),attrs:{}}),I1=t=>typeof t=="string"&&t.toLowerCase()==="svg";function r8(t,e,n,r){const i=C.useMemo(()=>{const o=uP();return k1(o,e,{enableHardwareAcceleration:!1},I1(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};lP(o,t.style,t),i.style={...o,...i.style}}return i}function i8(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(R1(n)?r8:Yj)(r,o,s,n),u={...Qj(r,typeof n=="string",t),...l,ref:i},{children:d}=r,f=C.useMemo(()=>xn(d)?d.get():d,[d]);return C.createElement(n,{...u,children:f})}}function dP(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const fP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function hP(t,e,n,r){dP(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(fP.has(i)?i:w1(i),e.attrs[i])}function M1(t,e){const{style:n}=t,r={};for(const i in n)(xn(n[i])||e.style&&xn(e.style[i])||rP(i,t))&&(r[i]=n[i]);return r}function pP(t,e){const n=M1(t,e);for(const r in t)if(xn(t[r])||xn(e[r])){const i=yu.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function L1(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function gP(t){const e=C.useRef(null);return e.current===null&&(e.current=t()),e.current}const lh=t=>Array.isArray(t),o8=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),s8=t=>lh(t)?t[t.length-1]||0:t;function lf(t){const e=xn(t)?t.get():t;return o8(e)?e.toValue():e}function a8({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:l8(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const mP=t=>(e,n)=>{const r=C.useContext(bp),i=C.useContext(mu),o=()=>a8(t,e,r,i);return n?o():gP(o)};function l8(t,e,n,r){const i={},o=r(t,{});for(const f in o)i[f]=lf(o[f]);let{initial:s,animate:a}=t;const l=Ep(t),c=tP(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;return d&&typeof d!="boolean"&&!wp(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const p=L1(t,h);if(!p)return;const{transitionEnd:m,transition:v,...y}=p;for(const g in y){let _=y[g];if(Array.isArray(_)){const x=u?_.length-1:0;_=_[x]}_!==null&&(i[g]=_)}for(const g in m)i[g]=m[g]}),i}const ot=t=>t;class DS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function c8(t){let e=new DS,n=new DS,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&i,f=d?e:n;return c&&s.add(l),f.add(l)&&d&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let c=0;c(d[f]=c8(()=>n=!0),d),{}),s=d=>o[d].process(i),a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,u8),1),i.timestamp=d,i.isProcessing=!0,md.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:md.reduce((d,f)=>{const h=o[f];return d[f]=(p,m=!1,v=!1)=>(n||l(),h.schedule(p,m,v)),d},{}),cancel:d=>md.forEach(f=>o[f].cancel(d)),state:i,steps:o}}const{schedule:ze,cancel:xi,state:Gt,steps:om}=d8(typeof requestAnimationFrame<"u"?requestAnimationFrame:ot,!0),f8={useVisualState:mP({scrapeMotionValuesFromProps:pP,createRenderState:uP,onMount:(t,e,{renderState:n,latestValues:r})=>{ze.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ze.render(()=>{k1(n,r,{enableHardwareAcceleration:!1},I1(e.tagName),t.transformTemplate),hP(e,n)})}})},h8={useVisualState:mP({scrapeMotionValuesFromProps:M1,createRenderState:A1})};function p8(t,{forwardMotionProps:e=!1},n,r){return{...R1(t)?f8:h8,preloadedFeatures:n,useRender:i8(e),createVisualElement:r,Component:t}}function ai(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const yP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Cp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const g8=t=>e=>yP(e)&&t(e,Cp(e));function di(t,e,n,r){return ai(t,e,g8(n),r)}const m8=(t,e)=>n=>e(t(n)),so=(...t)=>t.reduce(m8);function vP(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const FS=vP("dragHorizontal"),$S=vP("dragVertical");function _P(t){let e=!1;if(t==="y")e=$S();else if(t==="x")e=FS();else{const n=FS(),r=$S();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function xP(){const t=_P(!0);return t?(t(),!1):!0}class bo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function NS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||xP())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&ze.update(()=>a[r](o,s))};return di(t.current,n,i,{passive:!t.getProps()[r]})}class y8 extends bo{mount(){this.unmount=so(NS(this.node,!0),NS(this.node,!1))}unmount(){}}class v8 extends bo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=so(ai(this.node.current,"focus",()=>this.onFocus()),ai(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const bP=(t,e)=>e?t===e?!0:bP(t,e.parentElement):!1;function sm(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Cp(n))}class _8 extends bo{constructor(){super(...arguments),this.removeStartListeners=ot,this.removeEndListeners=ot,this.removeAccessibleListeners=ot,this.startPointerPress=(e,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=di(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();ze.update(()=>{bP(this.node.current,a.target)?c&&c(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=di(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=so(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||sm("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&ze.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=ai(this.node.current,"keyup",s),sm("down",(a,l)=>{this.startPress(a,l)})},n=ai(this.node.current,"keydown",e),r=()=>{this.isPressing&&sm("cancel",(o,s)=>this.cancelPress(o,s))},i=ai(this.node.current,"blur",r);this.removeAccessibleListeners=so(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ze.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xP()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ze.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=di(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ai(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=so(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const fy=new WeakMap,am=new WeakMap,x8=t=>{const e=fy.get(t.target);e&&e(t)},b8=t=>{t.forEach(x8)};function S8({root:t,...e}){const n=t||document;am.has(n)||am.set(n,{});const r=am.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(b8,{root:t,...e})),r[i]}function w8(t,e,n){const r=S8(e);return fy.set(t,n),r.observe(t),()=>{fy.delete(t),r.unobserve(t)}}const E8={some:0,all:1};class T8 extends bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:E8[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return w8(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(C8(e,n))&&this.startObserver()}unmount(){}}function C8({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const R8={inView:{Feature:T8},tap:{Feature:_8},focus:{Feature:v8},hover:{Feature:y8}};function SP(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;re[r]=n.get()),e}function A8(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Rp(t,e,n){const r=t.getProps();return L1(r,e,n!==void 0?n:r.custom,P8(t),A8(t))}let k8=ot,O1=ot;const ao=t=>t*1e3,fi=t=>t/1e3,I8={current:!1},wP=t=>Array.isArray(t)&&typeof t[0]=="number";function EP(t){return!!(!t||typeof t=="string"&&TP[t]||wP(t)||Array.isArray(t)&&t.every(EP))}const Gl=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,TP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function CP(t){if(t)return wP(t)?Gl(t):Array.isArray(t)?t.map(CP):TP[t]}function M8(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=CP(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function L8(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const RP=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,O8=1e-7,D8=12;function F8(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=RP(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>O8&&++aF8(o,0,1,t,n);return o=>o===0||o===1?o:RP(i(o),e,r)}const $8=xu(.42,0,1,1),N8=xu(0,0,.58,1),PP=xu(.42,0,.58,1),z8=t=>Array.isArray(t)&&typeof t[0]!="number",AP=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,kP=t=>e=>1-t(1-e),D1=t=>1-Math.sin(Math.acos(t)),IP=kP(D1),B8=AP(D1),MP=xu(.33,1.53,.69,.99),F1=kP(MP),j8=AP(F1),U8=t=>(t*=2)<1?.5*F1(t):.5*(2-Math.pow(2,-10*(t-1))),V8={linear:ot,easeIn:$8,easeInOut:PP,easeOut:N8,circIn:D1,circInOut:B8,circOut:IP,backIn:F1,backInOut:j8,backOut:MP,anticipate:U8},zS=t=>{if(Array.isArray(t)){O1(t.length===4);const[e,n,r,i]=t;return xu(e,n,r,i)}else if(typeof t=="string")return V8[t];return t},$1=(t,e)=>n=>!!(vu(n)&&Gj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),LP=(t,e,n)=>r=>{if(!vu(r))return r;const[i,o,s,a]=r.match(Tp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},G8=t=>fo(0,255,t),lm={...ys,transform:t=>Math.round(G8(t))},Ho={test:$1("rgb","red"),parse:LP("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+lm.transform(t)+", "+lm.transform(e)+", "+lm.transform(n)+", "+uc(cc.transform(r))+")"};function W8(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hy={test:$1("#"),parse:W8,transform:Ho.transform},fa={test:$1("hsl","hue"),parse:LP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Gr.transform(uc(e))+", "+Gr.transform(uc(n))+", "+uc(cc.transform(r))+")"},qt={test:t=>Ho.test(t)||hy.test(t)||fa.test(t),parse:t=>Ho.test(t)?Ho.parse(t):fa.test(t)?fa.parse(t):hy.parse(t),transform:t=>vu(t)?t:t.hasOwnProperty("red")?Ho.transform(t):fa.transform(t)},Ze=(t,e,n)=>-n*t+n*e+t;function cm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function H8({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=cm(l,a,t+1/3),o=cm(l,a,t),s=cm(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const um=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},K8=[hy,Ho,fa],X8=t=>K8.find(e=>e.test(t));function BS(t){const e=X8(t);let n=e.parse(t);return e===fa&&(n=H8(n)),n}const OP=(t,e)=>{const n=BS(t),r=BS(e),i={...n};return o=>(i.red=um(n.red,r.red,o),i.green=um(n.green,r.green,o),i.blue=um(n.blue,r.blue,o),i.alpha=Ze(n.alpha,r.alpha,o),Ho.transform(i))};function Y8(t){var e,n;return isNaN(t)&&vu(t)&&(((e=t.match(Tp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(sP))===null||n===void 0?void 0:n.length)||0)>0}const DP={regex:Uj,countKey:"Vars",token:"${v}",parse:ot},FP={regex:sP,countKey:"Colors",token:"${c}",parse:qt.parse},$P={regex:Tp,countKey:"Numbers",token:"${n}",parse:ys.parse};function dm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function ch(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&dm(n,DP),dm(n,FP),dm(n,$P),n}function NP(t){return ch(t).values}function zP(t){const{values:e,numColors:n,numVars:r,tokenised:i}=ch(t),o=e.length;return s=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function q8(t){const e=NP(t);return zP(t)(e.map(Z8))}const ho={test:Y8,parse:NP,createTransformer:zP,getAnimatableNone:q8},BP=(t,e)=>n=>`${n>0?e:t}`;function jP(t,e){return typeof t=="number"?n=>Ze(t,e,n):qt.test(t)?OP(t,e):t.startsWith("var(")?BP(t,e):VP(t,e)}const UP=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>jP(o,e[s]));return o=>{for(let s=0;s{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=jP(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},VP=(t,e)=>{const n=ho.createTransformer(e),r=ch(t),i=ch(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?so(UP(r.values,i.values),n):BP(t,e)},Xc=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},jS=(t,e)=>n=>Ze(t,e,n);function J8(t){return typeof t=="number"?jS:typeof t=="string"?qt.test(t)?OP:VP:Array.isArray(t)?UP:typeof t=="object"?Q8:jS}function eU(t,e,n){const r=[],i=n||J8(t[0]),o=t.length-1;for(let s=0;se[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=eU(e,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(fo(t[0],t[o-1],c)):l}function tU(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Xc(0,e,r);t.push(Ze(n,1,i))}}function nU(t){const e=[0];return tU(e,t.length-1),e}function rU(t,e){return t.map(n=>n*e)}function iU(t,e){return t.map(()=>e||PP).splice(0,t.length-1)}function uh({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=z8(r)?r.map(zS):zS(r),o={done:!1,value:e[0]},s=rU(n&&n.length===e.length?n:nU(e),t),a=GP(s,e,{ease:Array.isArray(i)?i:iU(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function WP(t,e){return e?t*(1e3/e):0}const oU=5;function HP(t,e,n){const r=Math.max(e-oU,0);return WP(n-t(r),e-r)}const fm=.001,sU=.01,US=10,aU=.05,lU=1;function cU({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;k8(t<=ao(US));let s=1-e;s=fo(aU,lU,s),t=fo(sU,US,fi(t)),s<1?(i=c=>{const u=c*s,d=u*t,f=u-n,h=py(c,s),p=Math.exp(-d);return fm-f/h*p},o=c=>{const d=c*s*t,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-d),m=py(Math.pow(c,2),s);return(-i(c)+fm>0?-1:1)*((f-h)*p)/m}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-fm+u*d},o=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=dU(i,o,a);if(t=ao(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const uU=12;function dU(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function pU(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!VS(t,hU)&&VS(t,fU)){const n=cU(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function KP({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=pU(r),h=u?-fi(u):0,p=l/(2*Math.sqrt(a*c)),m=o-i,v=fi(Math.sqrt(a/c)),y=Math.abs(m)<5;n||(n=y?.01:2),e||(e=y?.005:.5);let g;if(p<1){const _=py(v,p);g=x=>{const S=Math.exp(-p*v*x);return o-S*((h+p*v*m)/_*Math.sin(_*x)+m*Math.cos(_*x))}}else if(p===1)g=_=>o-Math.exp(-v*_)*(m+(h+v*m)*_);else{const _=v*Math.sqrt(p*p-1);g=x=>{const S=Math.exp(-p*v*x),T=Math.min(_*x,300);return o-S*((h+p*v*m)*Math.sinh(T)+_*m*Math.cosh(T))/_}}return{calculatedDuration:f&&d||null,next:_=>{const x=g(_);if(f)s.done=_>=d;else{let S=h;_!==0&&(p<1?S=HP(g,_,x):S=0);const T=Math.abs(S)<=n,w=Math.abs(o-x)<=e;s.done=T&&w}return s.value=s.done?o:x,s}}}function GS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=E=>a!==void 0&&El,p=E=>a===void 0?l:l===void 0||Math.abs(a-E)-m*Math.exp(-E/r),_=E=>y+g(E),x=E=>{const I=g(E),M=_(E);f.done=Math.abs(I)<=c,f.value=f.done?y:M};let S,T;const w=E=>{h(f.value)&&(S=E,T=KP({keyframes:[f.value,p(f.value)],velocity:HP(_,E,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:E=>{let I=!1;return!T&&S===void 0&&(I=!0,x(E),w(E)),S!==void 0&&E>S?T.next(E-S):(!I&&x(E),f)}}}const gU=t=>{const e=({timestamp:n})=>t(n);return{start:()=>ze.update(e,!0),stop:()=>xi(e),now:()=>Gt.isProcessing?Gt.timestamp:performance.now()}},WS=2e4;function HS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e=WS?1/0:e}const mU={decay:GS,inertia:GS,tween:uh,keyframes:uh,spring:KP};function dh({autoplay:t=!0,delay:e=0,driver:n=gU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h=1,p=!1,m,v;const y=()=>{v=new Promise(X=>{m=X})};y();let g;const _=mU[i]||uh;let x;_!==uh&&typeof r[0]!="number"&&(x=GP([0,100],r,{clamp:!1}),r=[0,100]);const S=_({...f,keyframes:r});let T;a==="mirror"&&(T=_({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let w="idle",E=null,I=null,M=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=HS(S));const{calculatedDuration:z}=S;let j=1/0,Z=1/0;z!==null&&(j=z+s,Z=j*(o+1)-s);let G=0;const H=X=>{if(I===null)return;h>0&&(I=Math.min(I,X)),h<0&&(I=Math.min(X-Z/h,I)),E!==null?G=E:G=Math.round(X-I)*h;const te=G-e*(h>=0?1:-1),q=h>=0?te<0:te>Z;G=Math.max(te,0),w==="finished"&&E===null&&(G=Z);let Y=G,ne=S;if(o){const ut=G/j;let tt=Math.floor(ut),xt=ut%1;!xt&&ut>=1&&(xt=1),xt===1&&tt--,tt=Math.min(tt,o+1);const Yt=!!(tt%2);Yt&&(a==="reverse"?(xt=1-xt,s&&(xt-=s/j)):a==="mirror"&&(ne=T));let yr=fo(0,1,xt);G>Z&&(yr=a==="reverse"&&Yt?1:0),Y=yr*j}const de=q?{done:!1,value:r[0]}:ne.next(Y);x&&(de.value=x(de.value));let{done:he}=de;!q&&z!==null&&(he=h>=0?G>=Z:G<=0);const et=E===null&&(w==="finished"||w==="running"&&he);return d&&d(de.value),et&&O(),de},oe=()=>{g&&g.stop(),g=void 0},ee=()=>{w="idle",oe(),m(),y(),I=M=null},O=()=>{w="finished",u&&u(),oe(),m()},B=()=>{if(p)return;g||(g=n(H));const X=g.now();l&&l(),E!==null?I=X-E:(!I||w==="finished")&&(I=X),w==="finished"&&y(),M=I,E=null,w="running",g.start()};t&&B();const N={then(X,te){return v.then(X,te)},get time(){return fi(G)},set time(X){X=ao(X),G=X,E!==null||!g||h===0?E=X:I=g.now()-X/h},get duration(){const X=S.calculatedDuration===null?HS(S):S.calculatedDuration;return fi(X)},get speed(){return h},set speed(X){X===h||!g||(h=X,N.time=fi(G))},get state(){return w},play:B,pause:()=>{w="paused",E=G},stop:()=>{p=!0,w!=="idle"&&(w="idle",c&&c(),ee())},cancel:()=>{M!==null&&H(M),ee()},complete:()=>{w="finished"},sample:X=>(I=0,H(X))};return N}function yU(t){let e;return()=>(e===void 0&&(e=t()),e)}const vU=yU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_U=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),yd=10,xU=2e4,bU=(t,e)=>e.type==="spring"||t==="backgroundColor"||!EP(e.ease);function SU(t,e,{onUpdate:n,onComplete:r,...i}){if(!(vU()&&_U.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l;const c=()=>{l=new Promise(g=>{a=g})};c();let{keyframes:u,duration:d=300,ease:f,times:h}=i;if(bU(e,i)){const g=dh({...i,repeat:0,delay:0});let _={done:!1,value:u[0]};const x=[];let S=0;for(;!_.done&&Sp.cancel(),v=()=>{ze.update(m),a(),c()};return p.onfinish=()=>{t.set(L8(u,i)),r&&r(),v()},{then(g,_){return l.then(g,_)},attachTimeline(g){return p.timeline=g,p.onfinish=null,ot},get time(){return fi(p.currentTime||0)},set time(g){p.currentTime=ao(g)},get speed(){return p.playbackRate},set speed(g){p.playbackRate=g},get duration(){return fi(d)},play:()=>{s||(p.play(),xi(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,p.playState==="idle")return;const{currentTime:g}=p;if(g){const _=dh({...i,autoplay:!1});t.setWithVelocity(_.sample(g-yd).value,_.sample(g).value,yd)}v()},complete:()=>p.finish(),cancel:v}}function wU({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ot,pause:ot,stop:ot,then:o=>(o(),Promise.resolve()),cancel:ot,complete:ot});return e?dh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const EU={type:"spring",stiffness:500,damping:25,restSpeed:10},TU=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),CU={type:"keyframes",duration:.8},RU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PU=(t,{keyframes:e})=>e.length>2?CU:ms.has(t)?t.startsWith("scale")?TU(e[1]):EU:RU,gy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ho.test(e)||e==="0")&&!e.startsWith("url(")),AU=new Set(["brightness","contrast","saturate","opacity"]);function kU(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Tp)||[];if(!r)return t;const i=n.replace(r,"");let o=AU.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const IU=/([a-z-]*)\(.*?\)/g,my={...ho,getAnimatableNone:t=>{const e=t.match(IU);return e?e.map(kU).join(" "):t}},MU={...aP,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:my,WebkitFilter:my},N1=t=>MU[t];function XP(t,e){let n=N1(t);return n!==my&&(n=ho),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const YP=t=>/^0[^.\s]+$/.test(t);function LU(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||YP(t)}function OU(t,e,n,r){const i=gy(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:t.get();let a;const l=[];for(let c=0;ci=>{const o=z1(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-ao(s);const l=OU(e,t,n,o),c=l[0],u=l[l.length-1],d=gy(t,c),f=gy(t,u);let h={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(DU(o)||(h={...h,...PU(t,h)}),h.duration&&(h.duration=ao(h.duration)),h.repeatDelay&&(h.repeatDelay=ao(h.repeatDelay)),!d||!f||I8.current||o.type===!1)return wU(h);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=SU(e,t,h);if(p)return p}return dh(h)};function fh(t){return!!(xn(t)&&t.add)}const ZP=t=>/^\-?\d*\.?\d+$/.test(t);function j1(t,e){t.indexOf(e)===-1&&t.push(e)}function U1(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class V1{constructor(){this.subscriptions=[]}add(e){return j1(this.subscriptions,e),()=>U1(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o!isNaN(parseFloat(t));class $U{constructor(e,n={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Gt;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,ze.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ze.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=FU(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new V1);const r=this.events[e].add(n);return e==="change"?()=>{r(),ze.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?WP(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wa(t,e){return new $U(t,e)}const qP=t=>e=>e.test(t),NU={test:t=>t==="auto",parse:t=>t},QP=[ys,re,Gr,Di,Hj,Wj,NU],Pl=t=>QP.find(qP(t)),zU=[...QP,qt,ho],BU=t=>zU.find(qP(t));function jU(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Wa(n))}function UU(t,e){const n=Rp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=s8(o[s]);jU(t,s,a)}}function VU(t,e,n){var r,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),s=o.length;if(s)for(let a=0;al.remove(d))),c.push(v)}return s&&Promise.all(c).then(()=>{s&&UU(t,s)}),c}function yy(t,e,n={}){const r=Rp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(JP(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=i;return XU(t,e,c+l,u,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function XU(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(YU).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(yy(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function YU(t,e){return t.sortNodePosition(e)}function ZU(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>yy(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=yy(t,e,n);else{const i=typeof e=="function"?Rp(t,e,n.custom):e;r=Promise.all(JP(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const qU=[...E1].reverse(),QU=E1.length;function JU(t){return e=>Promise.all(e.map(({animation:n,options:r})=>ZU(t,n,r)))}function eV(t){let e=JU(t);const n=nV();let r=!0;const i=(l,c)=>{const u=Rp(t,c);if(u){const{transition:d,transitionEnd:f,...h}=u;l={...l,...h,...f}}return l};function o(l){e=l(t)}function s(l,c){const u=t.getProps(),d=t.getVariantContext(!0)||{},f=[],h=new Set;let p={},m=1/0;for(let y=0;ym&&S;const M=Array.isArray(x)?x:[x];let z=M.reduce(i,{});T===!1&&(z={});const{prevResolvedValues:j={}}=_,Z={...j,...z},G=H=>{I=!0,h.delete(H),_.needsAnimating[H]=!0};for(const H in Z){const oe=z[H],ee=j[H];p.hasOwnProperty(H)||(oe!==ee?lh(oe)&&lh(ee)?!SP(oe,ee)||E?G(H):_.protectedKeys[H]=!0:oe!==void 0?G(H):h.add(H):oe!==void 0&&h.has(H)?G(H):_.protectedKeys[H]=!0)}_.prevProp=x,_.prevResolvedValues=z,_.isActive&&(p={...p,...z}),r&&t.blockInitialAnimation&&(I=!1),I&&!w&&f.push(...M.map(H=>({animation:H,options:{type:g,...l}})))}if(h.size){const y={};h.forEach(g=>{const _=t.getBaseTarget(g);_!==void 0&&(y[g]=_)}),f.push({animation:y})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?e(f):Promise.resolve()}function a(l,c,u){var d;if(n[l].isActive===c)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=s(u,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function tV(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!SP(e,t):!1}function Ao(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nV(){return{animate:Ao(!0),whileInView:Ao(),whileHover:Ao(),whileTap:Ao(),whileDrag:Ao(),whileFocus:Ao(),exit:Ao()}}class rV extends bo{constructor(e){super(e),e.animationState||(e.animationState=eV(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),wp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let iV=0;class oV extends bo{constructor(){super(...arguments),this.id=iV++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const sV={animation:{Feature:rV},exit:{Feature:oV}},KS=(t,e)=>Math.abs(t-e);function aV(t,e){const n=KS(t.x,e.x),r=KS(t.y,e.y);return Math.sqrt(n**2+r**2)}class eA{constructor(e,n,{transformPagePoint:r,contextWindow:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=pm(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=aV(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=Gt;this.history.push({...h,timestamp:p});const{onStart:m,onMove:v}=this.handlers;d||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=hm(d,this.transformPagePoint),ze.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:h}=this.handlers,p=pm(u.type==="pointercancel"?this.lastMoveEventInfo:hm(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,p),h&&h(u,p)},!yP(e))return;this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Cp(e),s=hm(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=Gt;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,pm(s,this.history)),this.removeListeners=so(di(this.contextWindow,"pointermove",this.handlePointerMove),di(this.contextWindow,"pointerup",this.handlePointerUp),di(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),xi(this.updatePoint)}}function hm(t,e){return e?{point:e(t.point)}:t}function XS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function pm({point:t},e){return{point:t,delta:XS(t,tA(e)),offset:XS(t,lV(e)),velocity:cV(e,.1)}}function lV(t){return t[0]}function tA(t){return t[t.length-1]}function cV(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=tA(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ao(e)));)n--;if(!r)return{x:0,y:0};const o=fi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ln(t){return t.max-t.min}function vy(t,e=0,n=.01){return Math.abs(t-e)<=n}function YS(t,e,n,r=.5){t.origin=r,t.originPoint=Ze(e.min,e.max,t.origin),t.scale=Ln(n)/Ln(e),(vy(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ze(n.min,n.max,t.origin)-t.originPoint,(vy(t.translate)||isNaN(t.translate))&&(t.translate=0)}function dc(t,e,n,r){YS(t.x,e.x,n.x,r?r.originX:void 0),YS(t.y,e.y,n.y,r?r.originY:void 0)}function ZS(t,e,n){t.min=n.min+e.min,t.max=t.min+Ln(e)}function uV(t,e,n){ZS(t.x,e.x,n.x),ZS(t.y,e.y,n.y)}function qS(t,e,n){t.min=e.min-n.min,t.max=t.min+Ln(e)}function fc(t,e,n){qS(t.x,e.x,n.x),qS(t.y,e.y,n.y)}function dV(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?Ze(n,t,r.max):Math.min(t,n)),t}function QS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function fV(t,{top:e,left:n,bottom:r,right:i}){return{x:QS(t.x,n,i),y:QS(t.y,e,r)}}function JS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=Xc(e.min,e.max-r,t.min):r>i&&(n=Xc(t.min,t.max-i,e.min)),fo(0,1,n)}function gV(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const _y=.35;function mV(t=_y){return t===!1?t=0:t===!0&&(t=_y),{x:ew(t,"left","right"),y:ew(t,"top","bottom")}}function ew(t,e,n){return{min:tw(t,e),max:tw(t,n)}}function tw(t,e){return typeof t=="number"?t:t[e]||0}const nw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ha=()=>({x:nw(),y:nw()}),rw=()=>({min:0,max:0}),dt=()=>({x:rw(),y:rw()});function Pr(t){return[t("x"),t("y")]}function nA({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function yV({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function vV(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gm(t){return t===void 0||t===1}function xy({scale:t,scaleX:e,scaleY:n}){return!gm(t)||!gm(e)||!gm(n)}function Do(t){return xy(t)||rA(t)||t.z||t.rotate||t.rotateX||t.rotateY}function rA(t){return iw(t.x)||iw(t.y)}function iw(t){return t&&t!=="0%"}function hh(t,e,n){const r=t-n,i=e*r;return n+i}function ow(t,e,n,r,i){return i!==void 0&&(t=hh(t,i,r)),hh(t,n,r)+e}function by(t,e=0,n=1,r,i){t.min=ow(t.min,e,n,r,i),t.max=ow(t.max,e,n,r,i)}function iA(t,{x:e,y:n}){by(t.x,e.translate,e.scale,e.originPoint),by(t.y,n.translate,n.scale,n.originPoint)}function _V(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Bi(t,e){t.min=t.min+e,t.max=t.max+e}function aw(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=Ze(t.min,t.max,o);by(t,e[n],e[r],s,e.scale)}const xV=["x","scaleX","originX"],bV=["y","scaleY","originY"];function pa(t,e){aw(t.x,e,xV),aw(t.y,e,bV)}function oA(t,e){return nA(vV(t.getBoundingClientRect(),e))}function SV(t,e,n){const r=oA(t,n),{scroll:i}=e;return i&&(Bi(r.x,i.offset.x),Bi(r.y,i.offset.y)),r}const sA=({current:t})=>t?t.ownerDocument.defaultView:null,wV=new WeakMap;class EV{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dt(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Cp(l,"page").point)},o=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:f}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_P(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pr(p=>{let m=this.getAxisMotionValue(p).get()||0;if(Gr.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const y=v.layout.layoutBox[p];y&&(m=Ln(y)*(parseFloat(m)/100))}}this.originPoint[p]=m}),f&&ze.update(()=>f(l,c),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:f,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:p}=c;if(d&&this.currentDirection===null){this.currentDirection=TV(p),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,p),this.updateAxis("y",c.point,p),this.visualElement.render(),h&&h(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new eA(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:sA(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ze.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!vd(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=dV(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&da(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=fV(i.layoutBox,n):this.constraints=!1,this.elastic=mV(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Pr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=gV(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!da(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=SV(r,i.root,this.visualElement.getTransformPagePoint());let s=hV(i.layout.layoutBox,o);if(n){const a=n(yV(s));this.hasMutatedConstraints=!!a,a&&(s=nA(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Pr(u=>{if(!vd(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(B1(e,r,0,n))}stopAnimation(){Pr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Pr(n=>{const{drag:r}=this.getProps();if(!vd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-Ze(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!da(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Pr(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=pV({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pr(s=>{if(!vd(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(Ze(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;wV.set(this.visualElement,this);const e=this.visualElement.current,n=di(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();da(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ai(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Pr(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=_y,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function vd(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function TV(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class CV extends bo{constructor(e){super(e),this.removeGroupControls=ot,this.removeListeners=ot,this.controls=new EV(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const lw=t=>(e,n)=>{t&&ze.update(()=>t(e,n))};class RV extends bo{constructor(){super(...arguments),this.removePointerDownListener=ot}onPointerDown(e){this.session=new eA(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sA(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:lw(e),onStart:lw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&ze.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=di(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function PV(){const t=C.useContext(mu);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=C.useId();return C.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}function AV(){return kV(C.useContext(mu))}function kV(t){return t===null?!0:t.isPresent}const cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Al={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(re.test(t))t=parseFloat(t);else return t;const n=cw(t,e.target.x),r=cw(t,e.target.y);return`${n}% ${r}%`}},IV={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=ho.parse(t);if(i.length>5)return r;const o=ho.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const c=Ze(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class MV extends gn.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Nj(LV),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||ze.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function aA(t){const[e,n]=PV(),r=C.useContext(C1);return gn.createElement(MV,{...t,layoutGroup:r,switchLayoutGroup:C.useContext(nP),isPresent:e,safeToRemove:n})}const LV={borderRadius:{...Al,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Al,borderTopRightRadius:Al,borderBottomLeftRadius:Al,borderBottomRightRadius:Al,boxShadow:IV},lA=["TopLeft","TopRight","BottomLeft","BottomRight"],OV=lA.length,uw=t=>typeof t=="string"?parseFloat(t):t,dw=t=>typeof t=="number"||re.test(t);function DV(t,e,n,r,i,o){i?(t.opacity=Ze(0,n.opacity!==void 0?n.opacity:1,FV(r)),t.opacityExit=Ze(e.opacity!==void 0?e.opacity:1,0,$V(r))):o&&(t.opacity=Ze(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;sre?1:n(Xc(t,e,r))}function hw(t,e){t.min=e.min,t.max=e.max}function Un(t,e){hw(t.x,e.x),hw(t.y,e.y)}function pw(t,e,n,r,i){return t-=e,t=hh(t,1/n,r),i!==void 0&&(t=hh(t,1/i,r)),t}function NV(t,e=0,n=1,r=.5,i,o=t,s=t){if(Gr.test(e)&&(e=parseFloat(e),e=Ze(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=Ze(o.min,o.max,r);t===o&&(a-=e),t.min=pw(t.min,e,n,a,i),t.max=pw(t.max,e,n,a,i)}function gw(t,e,[n,r,i],o,s){NV(t,e[n],e[r],e[i],e.scale,o,s)}const zV=["x","scaleX","originX"],BV=["y","scaleY","originY"];function mw(t,e,n,r){gw(t.x,e,zV,n?n.x:void 0,r?r.x:void 0),gw(t.y,e,BV,n?n.y:void 0,r?r.y:void 0)}function yw(t){return t.translate===0&&t.scale===1}function uA(t){return yw(t.x)&&yw(t.y)}function jV(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function dA(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function vw(t){return Ln(t.x)/Ln(t.y)}class UV{constructor(){this.members=[]}add(e){j1(this.members,e),e.scheduleRender()}remove(e){if(U1(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _w(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const VV=(t,e)=>t.depth-e.depth;class GV{constructor(){this.children=[],this.isDirty=!1}add(e){j1(this.children,e),this.isDirty=!0}remove(e){U1(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(VV),this.isDirty=!1,this.children.forEach(e)}}function WV(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(xi(r),t(o-e))};return ze.read(r,!0),()=>xi(r)}function HV(t){window.MotionDebug&&window.MotionDebug.record(t)}function KV(t){return t instanceof SVGElement&&t.tagName!=="svg"}function XV(t,e,n){const r=xn(t)?t:Wa(t);return r.start(B1("",r,e,n)),r.animation}const xw=["","X","Y","Z"],YV={visibility:"hidden"},bw=1e3;let ZV=0;const Fo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fA({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=ZV++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Fo.totalNodes=Fo.resolvedTargetDeltas=Fo.recalculatedProjection=0,this.nodes.forEach(JV),this.nodes.forEach(iG),this.nodes.forEach(oG),this.nodes.forEach(eG),HV(Fo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=WV(f,250),cf.hasAnimatedSinceResize&&(cf.hasAnimatedSinceResize=!1,this.nodes.forEach(ww))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||uG,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!dA(this.targetLayout,p)||h,_=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||_||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,_);const x={...z1(m,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||ww(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,xi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sG),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(tG),this.sharedNodes.forEach(aG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ze.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ze.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=x/1e3;Ew(d.x,s.x,S),Ew(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fc(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lG(this.relativeTarget,this.relativeTargetOrigin,f,S),_&&jV(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=dt()),Un(_,this.relativeTarget)),m&&(this.animationValues=u,DV(u,c,this.latestValues,S,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ze.update(()=>{cf.hasAnimatedSinceResize=!0,this.currentAnimation=XV(0,bw,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&hA(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||dt();const d=Ln(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ln(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Un(a,l),pa(a,u),dc(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new UV),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Sw),this.root.sharedNodes.clear()}}}function qV(t){t.updateLayout()}function QV(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?Pr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ln(f);f.min=r[d].min,f.max=f.min+h}):hA(o,n.layoutBox,r)&&Pr(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=Ln(r[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=ha();dc(a,r,n.layoutBox);const l=ha();s?dc(l,t.applyTransform(i,!0),n.measuredBox):dc(l,r,n.layoutBox);const c=!uA(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=dt();fc(p,n.layoutBox,f.layoutBox);const m=dt();fc(m,r,h.layoutBox),dA(p,m)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function JV(t){Fo.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tG(t){t.clearSnapshot()}function Sw(t){t.clearMeasurements()}function nG(t){t.isLayoutDirty=!1}function rG(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ww(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iG(t){t.resolveTargetDelta()}function oG(t){t.calcProjection()}function sG(t){t.resetRotation()}function aG(t){t.removeLeadSnapshot()}function Ew(t,e,n){t.translate=Ze(e.translate,0,n),t.scale=Ze(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Tw(t,e,n,r){t.min=Ze(e.min,n.min,r),t.max=Ze(e.max,n.max,r)}function lG(t,e,n,r){Tw(t.x,e.x,n.x,r),Tw(t.y,e.y,n.y,r)}function cG(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const uG={duration:.45,ease:[.4,0,.1,1]},Cw=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Rw=Cw("applewebkit/")&&!Cw("chrome/")?Math.round:ot;function Pw(t){t.min=Rw(t.min),t.max=Rw(t.max)}function dG(t){Pw(t.x),Pw(t.y)}function hA(t,e,n){return t==="position"||t==="preserve-aspect"&&!vy(vw(e),vw(n),.2)}const fG=fA({attachResizeListener:(t,e)=>ai(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mm={current:void 0},pA=fA({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!mm.current){const t=new fG({});t.mount(window),t.setOptions({layoutScroll:!0}),mm.current=t}return mm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),hG={pan:{Feature:RV},drag:{Feature:CV,ProjectionNode:pA,MeasureLayout:aA}},pG=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gG(t){const e=pG.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Sy(t,e,n=1){const[r,i]=gG(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return ZP(s)?parseFloat(s):s}else return dy(i)?Sy(i,e,n+1):i}function mG(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!dy(o))return;const s=Sy(o,r);s&&i.set(s)});for(const i in e){const o=e[i];if(!dy(o))continue;const s=Sy(o,r);s&&(e[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const yG=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),gA=t=>yG.has(t),vG=t=>Object.keys(t).some(gA),Aw=t=>t===ys||t===re,kw=(t,e)=>parseFloat(t.split(", ")[e]),Iw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return kw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?kw(o[1],t):0}},_G=new Set(["x","y","z"]),xG=yu.filter(t=>!_G.has(t));function bG(t){const e=[];return xG.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Ha={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Iw(4,13),y:Iw(5,14)};Ha.translateX=Ha.x;Ha.translateY=Ha.y;const SG=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Ha[c](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=Ha[c](l,o)}),t},wG=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(gA);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],d=Pl(u);const f=e[l];let h;if(lh(f)){const p=f.length,m=f[0]===null?1:0;u=f[m],d=Pl(u);for(let v=m;v=0?window.pageYOffset:null,c=SG(e,t,a);return o.length&&o.forEach(([u,d])=>{t.getValue(u).set(d)}),t.render(),Sp&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function EG(t,e,n,r){return vG(e)?wG(t,e,n,r):{target:e,transitionEnd:r}}const TG=(t,e,n,r)=>{const i=mG(t,e,r);return e=i.target,r=i.transitionEnd,EG(t,e,n,r)},wy={current:null},mA={current:!1};function CG(){if(mA.current=!0,!!Sp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>wy.current=t.matches;t.addListener(e),e()}else wy.current=!1}function RG(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(xn(o))t.addValue(i,o),fh(r)&&r.add(i);else if(xn(s))t.addValue(i,Wa(o,{owner:t})),fh(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,Wa(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Mw=new WeakMap,yA=Object.keys(Kc),PG=yA.length,Lw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],AG=T1.length;class kG{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ze.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Ep(n),this.isVariantNode=tP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const d in u){const f=u[d];a[d]!==void 0&&xn(f)&&(f.set(a[d],!1),fh(c)&&c.add(d))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Mw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),mA.current||CG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Mw.delete(this.current),this.projection&&this.projection.unmount(),xi(this.notifyUpdate),xi(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=ms.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&ze.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:h})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Wa(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=L1(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!xn(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new V1),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class vA extends kG{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let s=WU(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){VU(this,r,s);const a=TG(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function IG(t){return window.getComputedStyle(t)}class MG extends vA{readValueFromInstance(e,n){if(ms.has(n)){const r=N1(n);return r&&r.default||0}else{const r=IG(e),i=(oP(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return oA(e,n)}build(e,n,r,i){P1(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return M1(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;xn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){dP(e,n,r,i)}}class LG extends vA{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ms.has(n)){const r=N1(n);return r&&r.default||0}return n=fP.has(n)?n:w1(n),e.getAttribute(n)}measureInstanceViewportBox(){return dt()}scrapeMotionValuesFromProps(e,n){return pP(e,n)}build(e,n,r,i){k1(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){hP(e,n,r,i)}mount(e){this.isSVGTag=I1(e.tagName),super.mount(e)}}const OG=(t,e)=>R1(t)?new LG(e,{enableHardwareAcceleration:!1}):new MG(e,{enableHardwareAcceleration:!0}),DG={layout:{ProjectionNode:pA,MeasureLayout:aA}},FG={...sV,...R8,...hG,...DG},$G=Fj((t,e)=>p8(t,e,FG,OG));function _A(){const t=C.useRef(!1);return S1(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function NG(){const t=_A(),[e,n]=C.useState(0),r=C.useCallback(()=>{t.current&&n(e+1)},[e]);return[C.useCallback(()=>ze.postRender(r),[r]),e]}class zG extends C.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function BG({children:t,isPresent:e}){const n=C.useId(),r=C.useRef(null),i=C.useRef({width:0,height:0,top:0,left:0});return C.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(e||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${o}px !important; + height: ${s}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(c)}},[e]),C.createElement(zG,{isPresent:e,childRef:r,sizeRef:i},C.cloneElement(t,{ref:r}))}const ym=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=gP(jG),l=C.useId(),c=C.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u=>{a.set(u,!0);for(const d of a.values())if(!d)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),o?void 0:[n]);return C.useMemo(()=>{a.forEach((u,d)=>a.set(d,!1))},[n]),C.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(t=C.createElement(BG,{isPresent:n},t)),C.createElement(mu.Provider,{value:c},t)};function jG(){return new Map}function UG(t){return C.useEffect(()=>()=>t(),[])}const $o=t=>t.key||"";function VG(t,e){t.forEach(n=>{const r=$o(n);e.set(r,n)})}function GG(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const WG=({children:t,custom:e,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=C.useContext(C1).forceRender||NG()[0],l=_A(),c=GG(t);let u=c;const d=C.useRef(new Map).current,f=C.useRef(u),h=C.useRef(new Map).current,p=C.useRef(!0);if(S1(()=>{p.current=!1,VG(c,h),f.current=u}),UG(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return C.createElement(C.Fragment,null,u.map(g=>C.createElement(ym,{key:$o(g),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},g)));u=[...u];const m=f.current.map($o),v=c.map($o),y=m.length;for(let g=0;g{if(v.indexOf(_)!==-1)return;const x=h.get(_);if(!x)return;const S=m.indexOf(_);let T=g;if(!T){const w=()=>{d.delete(_);const E=Array.from(h.keys()).filter(I=>!v.includes(I));if(E.forEach(I=>h.delete(I)),f.current=c.filter(I=>{const M=$o(I);return M===_||E.includes(M)}),!d.size){if(l.current===!1)return;a(),r&&r()}};T=C.createElement(ym,{key:$o(x),isPresent:!1,onExitComplete:w,custom:e,presenceAffectsLayout:o,mode:s},x),d.set(_,T)}u.splice(S,0,T)}),u=u.map(g=>{const _=g.key;return d.has(_)?g:C.createElement(ym,{key:$o(g),isPresent:!0,presenceAffectsLayout:o,mode:s},g)}),C.createElement(C.Fragment,null,d.size?u:u.map(g=>C.cloneElement(g)))};var HG={initial:t=>{const{position:e}=t,n=["top","bottom"].includes(e)?"y":"x";let r=["top-right","bottom-right"].includes(e)?1:-1;return e==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},xA=C.memo(t=>{const{id:e,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:c=HG,toastSpacing:u="0.5rem"}=t,[d,f]=C.useState(a),h=AV();oh(()=>{h||r==null||r()},[h]),oh(()=>{f(a)},[a]);const p=()=>f(null),m=()=>f(a),v=()=>{h&&i()};C.useEffect(()=>{h&&o&&i()},[h,o,i]),Cj(v,d);const y=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),g=C.useMemo(()=>Ej(s),[s]);return k.jsx($G.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:s},style:g,children:k.jsx(Oe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:Yi(n,{id:e,onClose:v})})})});xA.displayName="ToastComponent";var Ow={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),k.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},bu=ct((t,e)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:a,__css:l,...c}=t,u=zn("chakra-icon",a),d=gs("Icon",t),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...l,...d},h={ref:e,focusable:o,className:u,__css:f},p=r??Ow.viewBox;if(n&&typeof n!="string")return k.jsx(Oe.svg,{as:n,...h,...c});const m=s??Ow.path;return k.jsx(Oe.svg,{verticalAlign:"middle",viewBox:p,...h,...c,children:m})});bu.displayName="Icon";function KG(t){return k.jsx(bu,{viewBox:"0 0 24 24",...t,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function XG(t){return k.jsx(bu,{viewBox:"0 0 24 24",...t,children:k.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Dw(t){return k.jsx(bu,{viewBox:"0 0 24 24",...t,children:k.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var YG=NL({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),bA=ct((t,e)=>{const n=gs("Spinner",t),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=Kr(t),c=zn("chakra-spinner",a),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${YG} ${o} linear infinite`,...n};return k.jsx(Oe.div,{ref:e,__css:u,className:c,...l,children:r&&k.jsx(Oe.span,{srOnly:!0,children:r})})});bA.displayName="Spinner";var[ZG,G1]=wi({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[qG,W1]=wi({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),SA={info:{icon:XG,colorScheme:"blue"},warning:{icon:Dw,colorScheme:"orange"},success:{icon:KG,colorScheme:"green"},error:{icon:Dw,colorScheme:"red"},loading:{icon:bA,colorScheme:"blue"}};function QG(t){return SA[t].colorScheme}function JG(t){return SA[t].icon}var wA=ct(function(e,n){const r=W1(),{status:i}=G1(),o={display:"inline",...r.description};return k.jsx(Oe.div,{ref:n,"data-status":i,...e,className:zn("chakra-alert__desc",e.className),__css:o})});wA.displayName="AlertDescription";function EA(t){const{status:e}=G1(),n=JG(e),r=W1(),i=e==="loading"?r.spinner:r.icon;return k.jsx(Oe.span,{display:"inherit","data-status":e,...t,className:zn("chakra-alert__icon",t.className),__css:i,children:t.children||k.jsx(n,{h:"100%",w:"100%"})})}EA.displayName="AlertIcon";var TA=ct(function(e,n){const r=W1(),{status:i}=G1();return k.jsx(Oe.div,{ref:n,"data-status":i,...e,className:zn("chakra-alert__title",e.className),__css:r.title})});TA.displayName="AlertTitle";var CA=ct(function(e,n){var r;const{status:i="info",addRole:o=!0,...s}=Kr(e),a=(r=e.colorScheme)!=null?r:QG(i),l=xp("Alert",{...e,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(ZG,{value:{status:i},children:k.jsx(qG,{value:l,children:k.jsx(Oe.div,{"data-status":i,role:o?"alert":void 0,ref:n,...s,className:zn("chakra-alert",e.className),__css:c})})})});CA.displayName="Alert";function e9(t){return k.jsx(bu,{focusable:"false","aria-hidden":!0,...t,children:k.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var RA=ct(function(e,n){const r=gs("CloseButton",e),{children:i,isDisabled:o,__css:s,...a}=Kr(e),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(Oe.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...l,...r,...s},...a,children:i||k.jsx(e9,{width:"1em",height:"1em"})})});RA.displayName="CloseButton";var t9={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},hc=n9(t9);function n9(t){let e=t;const n=new Set,r=i=>{e=i(e),n.forEach(o=>o())};return{getState:()=>e,subscribe:i=>(n.add(i),()=>{r(()=>t),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(a=>a.id!=i)}))},notify:(i,o)=>{const s=r9(i,o),{position:a,id:l}=s;return r(c=>{var u,d;const h=a.includes("top")?[s,...(u=c[a])!=null?u:[]]:[...(d=c[a])!=null?d:[],s];return{...c,[a]:h}}),l},update:(i,o)=>{i&&r(s=>{const a={...s},{position:l,index:c}=AS(a,i);return l&&c!==-1&&(a[l][c]={...a[l][c],...o,message:o9(o)}),a})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=o[c].map(u=>({...u,requestClose:!0})),l),{...o}))},close:i=>{r(o=>{const s=qR(o,i);return s?{...o,[s]:o[s].map(a=>a.id==i?{...a,requestClose:!0}:a)}:o})},isActive:i=>!!AS(hc.getState(),i).position}}var Fw=0;function r9(t,e={}){var n,r;Fw+=1;const i=(n=e.id)!=null?n:Fw,o=(r=e.position)!=null?r:"bottom";return{id:i,message:t,position:o,duration:e.duration,onCloseComplete:e.onCloseComplete,onRequestRemove:()=>hc.removeToast(String(i),o),status:e.status,requestClose:!1,containerStyle:e.containerStyle}}var i9=t=>{const{status:e,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:a,colorScheme:l,icon:c}=t,u=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return k.jsxs(CA,{addRole:!1,status:e,variant:n,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[k.jsx(EA,{children:c}),k.jsxs(Oe.div,{flex:"1",maxWidth:"100%",children:[i&&k.jsx(TA,{id:u==null?void 0:u.title,children:i}),a&&k.jsx(wA,{id:u==null?void 0:u.description,display:"block",children:a})]}),o&&k.jsx(RA,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function o9(t={}){const{render:e,toastComponent:n=i9}=t;return i=>typeof e=="function"?e({...i,...t}):k.jsx(n,{...i,...t})}var[s9,wne]=wi({name:"ToastOptionsContext",strict:!1}),a9=t=>{const e=C.useSyncExternalStore(hc.subscribe,hc.getState,hc.getState),{motionVariants:n,component:r=xA,portalProps:i}=t,s=Object.keys(e).map(a=>{const l=e[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:Tj(a),children:k.jsx(WG,{initial:!1,children:l.map(c=>k.jsx(r,{motionVariants:n,...c},c.id))})},a)});return k.jsx(pp,{...i,children:s})},l9=t=>function({children:n,theme:r=t,toastOptions:i,...o}){return k.jsxs(Sj,{theme:r,...o,children:[k.jsx(s9,{value:i==null?void 0:i.defaultOptions,children:n}),k.jsx(a9,{...i})]})},c9=l9(z6);function u9(t,e){if(t!=null){if(typeof t=="function"){t(e);return}try{t.current=e}catch{throw new Error(`Cannot assign value '${e}' to ref '${t}'`)}}}function ts(...t){return e=>{t.forEach(n=>{u9(n,e)})}}function d9(t){const{value:e,defaultValue:n,onChange:r,shouldUpdate:i=(f,h)=>f!==h}=t,o=Vr(r),s=Vr(i),[a,l]=C.useState(n),c=e!==void 0,u=c?e:a,d=Vr(f=>{const p=typeof f=="function"?f(u):f;s(u,p)&&(c||l(p),o(p))},[c,o,u,s]);return[u,d]}var[f9,h9]=wi({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[p9,PA]=wi({strict:!1,name:"FormControlContext"});function g9(t){const{id:e,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...s}=t,a=C.useId(),l=e||`field-${a}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[f,h]=C.useState(!1),[p,m]=C.useState(!1),[v,y]=C.useState(!1),g=C.useCallback((w={},E=null)=>({id:d,...w,ref:ts(E,I=>{I&&m(!0)})}),[d]),_=C.useCallback((w={},E=null)=>({...w,ref:E,"data-focus":Se(v),"data-disabled":Se(i),"data-invalid":Se(r),"data-readonly":Se(o),id:w.id!==void 0?w.id:c,htmlFor:w.htmlFor!==void 0?w.htmlFor:l}),[l,i,v,r,o,c]),x=C.useCallback((w={},E=null)=>({id:u,...w,ref:ts(E,I=>{I&&h(!0)}),"aria-live":"polite"}),[u]),S=C.useCallback((w={},E=null)=>({...w,...s,ref:E,role:"group","data-focus":Se(v),"data-disabled":Se(i),"data-invalid":Se(r),"data-readonly":Se(o)}),[s,i,v,r,o]),T=C.useCallback((w={},E=null)=>({...w,ref:E,role:"presentation","aria-hidden":!0,children:w.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:p,setHasHelpText:m,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:s,getHelpTextProps:g,getErrorMessageProps:x,getRootProps:S,getLabelProps:_,getRequiredIndicatorProps:T}}var m9=ct(function(e,n){const r=xp("Form",e),i=Kr(e),{getRootProps:o,htmlProps:s,...a}=g9(i),l=zn("chakra-form-control",e.className);return k.jsx(p9,{value:a,children:k.jsx(f9,{value:r,children:k.jsx(Oe.div,{...o({},n),className:l,__css:r.container})})})});m9.displayName="FormControl";var y9=ct(function(e,n){const r=PA(),i=h9(),o=zn("chakra-form__helper-text",e.className);return k.jsx(Oe.div,{...r==null?void 0:r.getHelpTextProps(e,n),__css:i.helperText,className:o})});y9.displayName="FormHelperText";function v9(t){var e,n,r;const i=PA(),{id:o,disabled:s,readOnly:a,required:l,isRequired:c,isInvalid:u,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:p,...m}=t,v=t["aria-describedby"]?[t["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&v.push(i.feedbackId),i!=null&&i.hasHelpText&&v.push(i.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(e=s??f)!=null?e:i==null?void 0:i.isDisabled,isReadOnly:(n=a??d)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=l??c)!=null?r:i==null?void 0:i.isRequired,isInvalid:u??(i==null?void 0:i.isInvalid),onFocus:En(i==null?void 0:i.onFocus,h),onBlur:En(i==null?void 0:i.onBlur,p)}}var _9={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},x9=()=>typeof document<"u",$w=!1,Su=null,cs=!1,Ey=!1,Ty=new Set;function H1(t,e){Ty.forEach(n=>n(t,e))}var b9=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function S9(t){return!(t.metaKey||!b9&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Nw(t){cs=!0,S9(t)&&(Su="keyboard",H1("keyboard",t))}function Is(t){if(Su="pointer",t.type==="mousedown"||t.type==="pointerdown"){cs=!0;const e=t.composedPath?t.composedPath()[0]:t.target;let n=!1;try{n=e.matches(":focus-visible")}catch{}if(n)return;H1("pointer",t)}}function w9(t){return t.mozInputSource===0&&t.isTrusted?!0:t.detail===0&&!t.pointerType}function E9(t){w9(t)&&(cs=!0,Su="virtual")}function T9(t){t.target===window||t.target===document||(!cs&&!Ey&&(Su="virtual",H1("virtual",t)),cs=!1,Ey=!1)}function C9(){cs=!1,Ey=!0}function zw(){return Su!=="pointer"}function R9(){if(!x9()||$w)return;const{focus:t}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){cs=!0,t.apply(this,n)},document.addEventListener("keydown",Nw,!0),document.addEventListener("keyup",Nw,!0),document.addEventListener("click",E9,!0),window.addEventListener("focus",T9,!0),window.addEventListener("blur",C9,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Is,!0),document.addEventListener("pointermove",Is,!0),document.addEventListener("pointerup",Is,!0)):(document.addEventListener("mousedown",Is,!0),document.addEventListener("mousemove",Is,!0),document.addEventListener("mouseup",Is,!0)),$w=!0}function P9(t){R9(),t(zw());const e=()=>t(zw());return Ty.add(e),()=>{Ty.delete(e)}}function A9(t,e=[]){const n=Object.assign({},t);for(const r of e)r in n&&delete n[r];return n}function k9(t={}){const e=v9(t),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:s,onBlur:a,onFocus:l,"aria-describedby":c}=e,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:p,name:m,value:v,tabIndex:y=void 0,"aria-label":g,"aria-labelledby":_,"aria-invalid":x,...S}=t,T=A9(S,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),w=Vr(h),E=Vr(a),I=Vr(l),[M,z]=C.useState(!1),[j,Z]=C.useState(!1),[G,H]=C.useState(!1),[oe,ee]=C.useState(!1);C.useEffect(()=>P9(z),[]);const O=C.useRef(null),[B,N]=C.useState(!0),[X,te]=C.useState(!!u),q=d!==void 0,Y=q?d:X,ne=C.useCallback(ie=>{if(r||n){ie.preventDefault();return}q||te(Y?ie.target.checked:p?!0:ie.target.checked),w==null||w(ie)},[r,n,Y,q,p,w]);Yo(()=>{O.current&&(O.current.indeterminate=!!p)},[p]),oh(()=>{n&&Z(!1)},[n,Z]),Yo(()=>{const ie=O.current;if(!(ie!=null&&ie.form))return;const Ge=()=>{te(!!u)};return ie.form.addEventListener("reset",Ge),()=>{var bt;return(bt=ie.form)==null?void 0:bt.removeEventListener("reset",Ge)}},[]);const de=n&&!f,he=C.useCallback(ie=>{ie.key===" "&&ee(!0)},[ee]),et=C.useCallback(ie=>{ie.key===" "&&ee(!1)},[ee]);Yo(()=>{if(!O.current)return;O.current.checked!==Y&&te(O.current.checked)},[O.current]);const ut=C.useCallback((ie={},Ge=null)=>{const bt=Sn=>{j&&Sn.preventDefault(),ee(!0)};return{...ie,ref:Ge,"data-active":Se(oe),"data-hover":Se(G),"data-checked":Se(Y),"data-focus":Se(j),"data-focus-visible":Se(j&&M),"data-indeterminate":Se(p),"data-disabled":Se(n),"data-invalid":Se(o),"data-readonly":Se(r),"aria-hidden":!0,onMouseDown:En(ie.onMouseDown,bt),onMouseUp:En(ie.onMouseUp,()=>ee(!1)),onMouseEnter:En(ie.onMouseEnter,()=>H(!0)),onMouseLeave:En(ie.onMouseLeave,()=>H(!1))}},[oe,Y,n,j,M,G,p,o,r]),tt=C.useCallback((ie={},Ge=null)=>({...ie,ref:Ge,"data-active":Se(oe),"data-hover":Se(G),"data-checked":Se(Y),"data-focus":Se(j),"data-focus-visible":Se(j&&M),"data-indeterminate":Se(p),"data-disabled":Se(n),"data-invalid":Se(o),"data-readonly":Se(r)}),[oe,Y,n,j,M,G,p,o,r]),xt=C.useCallback((ie={},Ge=null)=>({...T,...ie,ref:ts(Ge,bt=>{bt&&N(bt.tagName==="LABEL")}),onClick:En(ie.onClick,()=>{var bt;B||((bt=O.current)==null||bt.click(),requestAnimationFrame(()=>{var Sn;(Sn=O.current)==null||Sn.focus({preventScroll:!0})}))}),"data-disabled":Se(n),"data-checked":Se(Y),"data-invalid":Se(o)}),[T,n,Y,o,B]),Yt=C.useCallback((ie={},Ge=null)=>({...ie,ref:ts(O,Ge),type:"checkbox",name:m,value:v,id:s,tabIndex:y,onChange:En(ie.onChange,ne),onBlur:En(ie.onBlur,E,()=>Z(!1)),onFocus:En(ie.onFocus,I,()=>Z(!0)),onKeyDown:En(ie.onKeyDown,he),onKeyUp:En(ie.onKeyUp,et),required:i,checked:Y,disabled:de,readOnly:r,"aria-label":g,"aria-labelledby":_,"aria-invalid":x?!!x:o,"aria-describedby":c,"aria-disabled":n,style:_9}),[m,v,s,ne,E,I,he,et,i,Y,de,r,g,_,x,o,c,n,y]),yr=C.useCallback((ie={},Ge=null)=>({...ie,ref:Ge,onMouseDown:En(ie.onMouseDown,I9),"data-disabled":Se(n),"data-checked":Se(Y),"data-invalid":Se(o)}),[Y,n,o]);return{state:{isInvalid:o,isFocused:j,isChecked:Y,isActive:oe,isHovered:G,isIndeterminate:p,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:xt,getCheckboxProps:ut,getIndicatorProps:tt,getInputProps:Yt,getLabelProps:yr,htmlProps:T}}function I9(t){t.preventDefault(),t.stopPropagation()}function M9(t){const e=parseFloat(t);return typeof e!="number"||Number.isNaN(e)?0:e}function L9(t,e){let n=M9(t);const r=10**(e??10);return n=Math.round(n*r)/r,e?n.toFixed(e):n.toString()}function O9(t){if(!Number.isFinite(t))return 0;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n+=1;return n}function Bw(t,e,n){return(t-e)*100/(n-e)}function D9(t,e,n){return(n-e)*t+e}function jw(t,e,n){const r=Math.round((t-e)/n)*n+e,i=O9(n);return L9(r,i)}function vm(t,e,n){return t==null?t:(nt?"":void 0,_m=t=>t?!0:void 0,wu=(...t)=>t.filter(Boolean).join(" ");function xm(...t){return function(n){t.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function _d(t){const{orientation:e,vertical:n,horizontal:r}=t;return e==="vertical"?n:r}var uf={width:0,height:0},xd=t=>t||uf;function $9(t){const{orientation:e,thumbPercents:n,thumbRects:r,isReversed:i}=t,o=m=>{var v;const y=(v=r[m])!=null?v:uf;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",..._d({orientation:e,vertical:{bottom:`calc(${n[m]}% - ${y.height/2}px)`},horizontal:{left:`calc(${n[m]}% - ${y.width/2}px)`}})}},s=e==="vertical"?r.reduce((m,v)=>xd(m).height>xd(v).height?m:v,uf):r.reduce((m,v)=>xd(m).width>xd(v).width?m:v,uf),a={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,..._d({orientation:e,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},l={position:"absolute",..._d({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},c=n.length===1,u=[0,i?100-n[0]:n[0]],d=c?u:n;let f=d[0];!c&&i&&(f=100-f);const h=Math.abs(d[d.length-1]-d[0]),p={...l,..._d({orientation:e,vertical:i?{height:`${h}%`,top:`${f}%`}:{height:`${h}%`,bottom:`${f}%`},horizontal:i?{width:`${h}%`,right:`${f}%`}:{width:`${h}%`,left:`${f}%`}})};return{trackStyle:l,innerTrackStyle:p,rootStyle:a,getThumbStyle:o}}function N9(t){const{isReversed:e,direction:n,orientation:r}=t;return n==="ltr"||r==="vertical"?e:!e}function z9(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function B9(t){const e=U9(t);return typeof e.PointerEvent<"u"&&t instanceof e.PointerEvent?t.pointerType==="mouse":t instanceof e.MouseEvent}function kA(t){return!!t.touches}function j9(t){return kA(t)&&t.touches.length>1}function U9(t){var e;return(e=t.view)!=null?e:window}function V9(t,e="page"){const n=t.touches[0]||t.changedTouches[0];return{x:n[`${e}X`],y:n[`${e}Y`]}}function G9(t,e="page"){return{x:t[`${e}X`],y:t[`${e}Y`]}}function IA(t,e="page"){return kA(t)?V9(t,e):G9(t,e)}function W9(t){return e=>{const n=B9(e);(!n||n&&e.button===0)&&t(e)}}function H9(t,e=!1){function n(i){t(i,{point:IA(i)})}return e?W9(n):n}function df(t,e,n,r){return z9(t,e,H9(n,e==="pointerdown"),r)}var K9=Object.defineProperty,X9=(t,e,n)=>e in t?K9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ir=(t,e,n)=>(X9(t,typeof e!="symbol"?e+"":e,n),n),Y9=class{constructor(t,e,n){ir(this,"history",[]),ir(this,"startEvent",null),ir(this,"lastEvent",null),ir(this,"lastEventInfo",null),ir(this,"handlers",{}),ir(this,"removeListeners",()=>{}),ir(this,"threshold",3),ir(this,"win"),ir(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const a=bm(this.lastEventInfo,this.history),l=this.startEvent!==null,c=J9(a.offset,{x:0,y:0})>=this.threshold;if(!l&&!c)return;const{timestamp:u}=TS();this.history.push({...a.point,timestamp:u});const{onStart:d,onMove:f}=this.handlers;l||(d==null||d(this.lastEvent,a),this.startEvent=this.lastEvent),f==null||f(this.lastEvent,a)}),ir(this,"onPointerMove",(a,l)=>{this.lastEvent=a,this.lastEventInfo=l,K6.update(this.updatePoint,!0)}),ir(this,"onPointerUp",(a,l)=>{const c=bm(l,this.history),{onEnd:u,onSessionEnd:d}=this.handlers;d==null||d(a,c),this.end(),!(!u||!this.startEvent)&&(u==null||u(a,c))});var r;if(this.win=(r=t.view)!=null?r:window,j9(t))return;this.handlers=e,n&&(this.threshold=n),t.stopPropagation(),t.preventDefault();const i={point:IA(t)},{timestamp:o}=TS();this.history=[{...i.point,timestamp:o}];const{onSessionStart:s}=e;s==null||s(t,bm(i,this.history)),this.removeListeners=Q9(df(this.win,"pointermove",this.onPointerMove),df(this.win,"pointerup",this.onPointerUp),df(this.win,"pointercancel",this.onPointerUp))}updateHandlers(t){this.handlers=t}end(){var t;(t=this.removeListeners)==null||t.call(this),X6.update(this.updatePoint)}};function Uw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bm(t,e){return{point:t.point,delta:Uw(t.point,e[e.length-1]),offset:Uw(t.point,e[0]),velocity:q9(e,.1)}}var Z9=t=>t*1e3;function q9(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=t[t.length-1];for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Z9(e)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Q9(...t){return e=>t.reduce((n,r)=>r(n),e)}function Sm(t,e){return Math.abs(t-e)}function Vw(t){return"x"in t&&"y"in t}function J9(t,e){if(typeof t=="number"&&typeof e=="number")return Sm(t,e);if(Vw(t)&&Vw(e)){const n=Sm(t.x,e.x),r=Sm(t.y,e.y);return Math.sqrt(n**2+r**2)}return 0}function MA(t){const e=C.useRef(null);return e.current=t,e}function eW(t,e){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:s,threshold:a}=e,l=!!(n||r||i||o||s),c=C.useRef(null),u=MA({onSessionStart:o,onSessionEnd:s,onStart:r,onMove:n,onEnd(d,f){c.current=null,i==null||i(d,f)}});C.useEffect(()=>{var d;(d=c.current)==null||d.updateHandlers(u.current)}),C.useEffect(()=>{const d=t.current;if(!d||!l)return;function f(h){c.current=new Y9(h,u.current,a)}return df(d,"pointerdown",f)},[t,l,u,a]),C.useEffect(()=>()=>{var d;(d=c.current)==null||d.end(),c.current=null},[])}function tW(t,e){if(!t){e(void 0);return}e({width:t.offsetWidth,height:t.offsetHeight});const n=t.ownerDocument.defaultView??window,r=new n.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=t.offsetWidth,a=t.offsetHeight;e({width:s,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}var nW=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect;function rW(t,e){var n,r;if(!t||!t.parentElement)return;const i=(r=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,o=new i.MutationObserver(()=>{e()});return o.observe(t.parentElement,{childList:!0}),()=>{o.disconnect()}}function iW({getNodes:t,observeMutation:e=!0}){const[n,r]=C.useState([]),[i,o]=C.useState(0);return nW(()=>{const s=t(),a=s.map((l,c)=>tW(l,u=>{r(d=>[...d.slice(0,c),u,...d.slice(c+1)])}));if(e){const l=s[0];a.push(rW(l,()=>{o(c=>c+1)}))}return()=>{a.forEach(l=>{l==null||l()})}},[i]),n}function oW(t){return typeof t=="object"&&t!==null&&"current"in t}function sW(t){const[e]=iW({observeMutation:!1,getNodes(){return[oW(t)?t.current:t]}});return e}function aW(t){var e;const{min:n=0,max:r=100,onChange:i,value:o,defaultValue:s,isReversed:a,direction:l="ltr",orientation:c="horizontal",id:u,isDisabled:d,isReadOnly:f,onChangeStart:h,onChangeEnd:p,step:m=1,getAriaValueText:v,"aria-valuetext":y,"aria-label":g,"aria-labelledby":_,name:x,focusThumbOnChange:S=!0,...T}=t,w=Vr(h),E=Vr(p),I=Vr(v),M=N9({isReversed:a,direction:l,orientation:c}),[z,j]=d9({value:o,defaultValue:s??cW(n,r),onChange:i}),[Z,G]=C.useState(!1),[H,oe]=C.useState(!1),ee=!(d||f),O=(r-n)/10,B=m||(r-n)/100,N=vm(z,n,r),X=r-N+n,q=Bw(M?X:N,n,r),Y=c==="vertical",ne=MA({min:n,max:r,step:m,isDisabled:d,value:N,isInteractive:ee,isReversed:M,isVertical:Y,eventSource:null,focusThumbOnChange:S,orientation:c}),de=C.useRef(null),he=C.useRef(null),et=C.useRef(null),ut=C.useId(),tt=u??ut,[xt,Yt]=[`slider-thumb-${tt}`,`slider-track-${tt}`],yr=C.useCallback(W=>{var se,Co;if(!de.current)return;const Zt=ne.current;Zt.eventSource="pointer";const Pt=de.current.getBoundingClientRect(),{clientX:Ri,clientY:ng}=(Co=(se=W.touches)==null?void 0:se[0])!=null?Co:W,Nu=Y?Pt.bottom-ng:Ri-Pt.left,rg=Y?Pt.height:Pt.width;let Cs=Nu/rg;M&&(Cs=1-Cs);let tr=D9(Cs,Zt.min,Zt.max);return Zt.step&&(tr=parseFloat(jw(tr,Zt.min,Zt.step))),tr=vm(tr,Zt.min,Zt.max),tr},[Y,M,ne]),an=C.useCallback(W=>{const se=ne.current;se.isInteractive&&(W=parseFloat(jw(W,se.min,B)),W=vm(W,se.min,se.max),j(W))},[B,j,ne]),ie=C.useMemo(()=>({stepUp(W=B){const se=M?N-W:N+W;an(se)},stepDown(W=B){const se=M?N+W:N-W;an(se)},reset(){an(s||0)},stepTo(W){an(W)}}),[an,M,N,B,s]),Ge=C.useCallback(W=>{const se=ne.current,Zt={ArrowRight:()=>ie.stepUp(),ArrowUp:()=>ie.stepUp(),ArrowLeft:()=>ie.stepDown(),ArrowDown:()=>ie.stepDown(),PageUp:()=>ie.stepUp(O),PageDown:()=>ie.stepDown(O),Home:()=>an(se.min),End:()=>an(se.max)}[W.key];Zt&&(W.preventDefault(),W.stopPropagation(),Zt(W),se.eventSource="keyboard")},[ie,an,O,ne]),bt=(e=I==null?void 0:I(N))!=null?e:y,Sn=sW(he),{getThumbStyle:Ss,rootStyle:vr,trackStyle:Ci,innerTrackStyle:Rt}=C.useMemo(()=>{const W=ne.current,se=Sn??{width:0,height:0};return $9({isReversed:M,orientation:W.orientation,thumbRects:[se],thumbPercents:[q]})},[M,Sn,q,ne]),nt=C.useCallback(()=>{ne.current.focusThumbOnChange&&setTimeout(()=>{var se;return(se=he.current)==null?void 0:se.focus()})},[ne]);oh(()=>{const W=ne.current;nt(),W.eventSource==="keyboard"&&(E==null||E(W.value))},[N,E]);function er(W){const se=yr(W);se!=null&&se!==ne.current.value&&j(se)}eW(et,{onPanSessionStart(W){const se=ne.current;se.isInteractive&&(G(!0),nt(),er(W),w==null||w(se.value))},onPanSessionEnd(){const W=ne.current;W.isInteractive&&(G(!1),E==null||E(W.value))},onPan(W){ne.current.isInteractive&&er(W)}});const _r=C.useCallback((W={},se=null)=>({...W,...T,ref:ts(se,et),tabIndex:-1,"aria-disabled":_m(d),"data-focused":Ms(H),style:{...W.style,...vr}}),[T,d,H,vr]),ws=C.useCallback((W={},se=null)=>({...W,ref:ts(se,de),id:Yt,"data-disabled":Ms(d),style:{...W.style,...Ci}}),[d,Yt,Ci]),Es=C.useCallback((W={},se=null)=>({...W,ref:se,style:{...W.style,...Rt}}),[Rt]),xr=C.useCallback((W={},se=null)=>({...W,ref:ts(se,he),role:"slider",tabIndex:ee?0:void 0,id:xt,"data-active":Ms(Z),"aria-valuetext":bt,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":N,"aria-orientation":c,"aria-disabled":_m(d),"aria-readonly":_m(f),"aria-label":g,"aria-labelledby":g?void 0:_,style:{...W.style,...Ss(0)},onKeyDown:xm(W.onKeyDown,Ge),onFocus:xm(W.onFocus,()=>oe(!0)),onBlur:xm(W.onBlur,()=>oe(!1))}),[ee,xt,Z,bt,n,r,N,c,d,f,g,_,Ss,Ge]),Yr=C.useCallback((W,se=null)=>{const Co=!(W.valuer),Zt=N>=W.value,Pt=Bw(W.value,n,r),Ri={position:"absolute",pointerEvents:"none",...lW({orientation:c,vertical:{bottom:M?`${100-Pt}%`:`${Pt}%`},horizontal:{left:M?`${100-Pt}%`:`${Pt}%`}})};return{...W,ref:se,role:"presentation","aria-hidden":!0,"data-disabled":Ms(d),"data-invalid":Ms(!Co),"data-highlighted":Ms(Zt),style:{...W.style,...Ri}}},[d,M,r,n,c,N]),Ts=C.useCallback((W={},se=null)=>({...W,ref:se,type:"hidden",value:N,name:x}),[x,N]);return{state:{value:N,isFocused:H,isDragging:Z},actions:ie,getRootProps:_r,getTrackProps:ws,getInnerTrackProps:Es,getThumbProps:xr,getMarkerProps:Yr,getInputProps:Ts}}function lW(t){const{orientation:e,vertical:n,horizontal:r}=t;return e==="vertical"?n:r}function cW(t,e){return e"}),[dW,Ap]=wi({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),ff=ct((t,e)=>{var n;const r={...t,orientation:(n=t==null?void 0:t.orientation)!=null?n:"horizontal"},i=xp("Slider",r),o=Kr(r),{direction:s}=_R();o.direction=s;const{getInputProps:a,getRootProps:l,...c}=aW(o),u=l(),d=a({},e);return k.jsx(uW,{value:c,children:k.jsx(dW,{value:i,children:k.jsxs(Oe.div,{...u,className:wu("chakra-slider",r.className),__css:i.container,children:[r.children,k.jsx("input",{...d})]})})})});ff.displayName="Slider";var hf=ct((t,e)=>{const{getThumbProps:n}=Pp(),r=Ap(),i=n(t,e);return k.jsx(Oe.div,{...i,className:wu("chakra-slider__thumb",t.className),__css:r.thumb})});hf.displayName="SliderThumb";var pf=ct((t,e)=>{const{getTrackProps:n}=Pp(),r=Ap(),i=n(t,e);return k.jsx(Oe.div,{...i,className:wu("chakra-slider__track",t.className),__css:r.track})});pf.displayName="SliderTrack";var gf=ct((t,e)=>{const{getInnerTrackProps:n}=Pp(),r=Ap(),i=n(t,e);return k.jsx(Oe.div,{...i,className:wu("chakra-slider__filled-track",t.className),__css:r.filledTrack})});gf.displayName="SliderFilledTrack";var mf=ct((t,e)=>{const{getMarkerProps:n}=Pp(),r=Ap(),i=n(t,e);return k.jsx(Oe.div,{...i,className:wu("chakra-slider__marker",t.className),__css:r.mark})});mf.displayName="SliderMark";var LA=ct(function(e,n){const r=xp("Switch",e),{spacing:i="0.5rem",children:o,...s}=Kr(e),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:c,getRootProps:u,getLabelProps:d}=k9(s),f=C.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=C.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),p=C.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return k.jsxs(Oe.label,{...u(),className:zn("chakra-switch",e.className),__css:f,children:[k.jsx("input",{className:"chakra-switch__input",...l({},n)}),k.jsx(Oe.span,{...c(),className:"chakra-switch__track",__css:h,children:k.jsx(Oe.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),o&&k.jsx(Oe.span,{className:"chakra-switch__label",...d(),__css:p,children:o})]})});LA.displayName="Switch";var Ry={},Gw=u1;Ry.createRoot=Gw.createRoot,Ry.hydrateRoot=Gw.hydrateRoot;var OA={exports:{}},DA={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Eu=C;function fW(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var hW=typeof Object.is=="function"?Object.is:fW,pW=Eu.useSyncExternalStore,gW=Eu.useRef,mW=Eu.useEffect,yW=Eu.useMemo,vW=Eu.useDebugValue;DA.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=gW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=yW(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,hW(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,n,r,i]);var a=pW(t,o[0],o[1]);return mW(function(){s.hasValue=!0,s.value=a},[a]),vW(a),a};OA.exports=DA;var _W=OA.exports,Pn="default"in Cf?gn:Cf,Ww=Symbol.for("react-redux-context"),Hw=typeof globalThis<"u"?globalThis:{};function xW(){if(!Pn.createContext)return{};const t=Hw[Ww]??(Hw[Ww]=new Map);let e=t.get(Pn.createContext);return e||(e=Pn.createContext(null),t.set(Pn.createContext,e)),e}var go=xW(),bW=()=>{throw new Error("uSES not initialized!")};function Y1(t=go){return function(){return Pn.useContext(t)}}var FA=Y1(),$A=bW,SW=t=>{$A=t},wW=(t,e)=>t===e;function EW(t=go){const e=t===go?FA:Y1(t);return function(r,i={}){const{equalityFn:o=wW,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:l,getServerState:c,stabilityCheck:u,identityFunctionCheck:d}=e();Pn.useRef(!0);const f=Pn.useCallback({[r.name](p){return r(p)}}[r.name],[r,u,s.stabilityCheck]),h=$A(l.addNestedSub,a.getState,c||a.getState,f,o);return Pn.useDebugValue(h),h}}var NA=EW();function TW(t){t()}function CW(){let t=null,e=null;return{clear(){t=null,e=null},notify(){TW(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0,i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var Kw={notify(){},get:()=>[]};function RW(t,e){let n,r=Kw,i=0,o=!1;function s(m){u();const v=r.subscribe(m);let y=!1;return()=>{y||(y=!0,v(),d())}}function a(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){i++,n||(n=e?e.addNestedSub(l):t.subscribe(l),r=CW())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Kw)}function f(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>r};return p}var PW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AW=PW?Pn.useLayoutEffect:Pn.useEffect;function kW({store:t,context:e,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=Pn.useMemo(()=>{const c=RW(t);return{store:t,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[t,r,i,o]),a=Pn.useMemo(()=>t.getState(),[t]);AW(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==t.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=e||go;return Pn.createElement(l.Provider,{value:s},n)}var IW=kW;function zA(t=go){const e=t===go?FA:Y1(t);return function(){const{store:r}=e();return r}}var MW=zA();function LW(t=go){const e=t===go?MW:zA(t);return function(){return e().dispatch}}var BA=LW();SW(_W.useSyncExternalStoreWithSelector);const Tu=C.createContext({map:null,setMap:()=>{}}),OW=({children:t})=>{const[e,n]=C.useState(null);return k.jsx(Tu.Provider,{value:{map:e,setMap:n},children:t})};function kt(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var DW=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xw=DW,wm=()=>Math.random().toString(36).substring(7).split("").join("."),FW={INIT:`@@redux/INIT${wm()}`,REPLACE:`@@redux/REPLACE${wm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wm()}`},ph=FW;function Z1(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function jA(t,e,n){if(typeof t!="function")throw new Error(kt(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(kt(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(kt(1));return n(jA)(t,e)}let r=t,i=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,y)=>{s.set(y,v)}))}function u(){if(l)throw new Error(kt(3));return i}function d(v){if(typeof v!="function")throw new Error(kt(4));if(l)throw new Error(kt(5));let y=!0;c();const g=a++;return s.set(g,v),function(){if(y){if(l)throw new Error(kt(6));y=!1,c(),s.delete(g),o=null}}}function f(v){if(!Z1(v))throw new Error(kt(7));if(typeof v.type>"u")throw new Error(kt(8));if(typeof v.type!="string")throw new Error(kt(17));if(l)throw new Error(kt(9));try{l=!0,i=r(i,v)}finally{l=!1}return(o=s).forEach(g=>{g()}),v}function h(v){if(typeof v!="function")throw new Error(kt(10));r=v,f({type:ph.REPLACE})}function p(){const v=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(kt(11));function g(){const x=y;x.next&&x.next(u())}return g(),{unsubscribe:v(g)}},[Xw](){return this}}}return f({type:ph.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:h,[Xw]:p}}function $W(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:ph.INIT})>"u")throw new Error(kt(12));if(typeof n(void 0,{type:ph.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(kt(13))})}function NW(t){const e=Object.keys(t),n={};for(let o=0;o"u")throw a&&a.type,new Error(kt(14));c[d]=p,l=l||p!==h}return l=l||r.length!==Object.keys(s).length,l?c:s}}function gh(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function zW(...t){return e=>(n,r)=>{const i=e(n,r);let o=()=>{throw new Error(kt(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=gh(...a)(i.dispatch),{...i,dispatch:o}}}function BW(t){return Z1(t)&&"type"in t&&typeof t.type=="string"}var UA=Symbol.for("immer-nothing"),Yw=Symbol.for("immer-draftable"),On=Symbol.for("immer-state");function ur(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ka=Object.getPrototypeOf;function mo(t){return!!t&&!!t[On]}function bi(t){var e;return t?VA(t)||Array.isArray(t)||!!t[Yw]||!!((e=t.constructor)!=null&&e[Yw])||Ip(t)||Mp(t):!1}var jW=Object.prototype.constructor.toString();function VA(t){if(!t||typeof t!="object")return!1;const e=Ka(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===jW}function Zc(t,e){kp(t)===0?Object.entries(t).forEach(([n,r])=>{e(n,r,t)}):t.forEach((n,r)=>e(r,n,t))}function kp(t){const e=t[On];return e?e.type_:Array.isArray(t)?1:Ip(t)?2:Mp(t)?3:0}function Py(t,e){return kp(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function GA(t,e,n){const r=kp(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function UW(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ip(t){return t instanceof Map}function Mp(t){return t instanceof Set}function No(t){return t.copy_||t.base_}function Ay(t,e){if(Ip(t))return new Map(t);if(Mp(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&VA(t))return Ka(t)?{...t}:Object.assign(Object.create(null),t);const n=Object.getOwnPropertyDescriptors(t);delete n[On];let r=Reflect.ownKeys(n);for(let i=0;i1&&(t.set=t.add=t.clear=t.delete=VW),Object.freeze(t),e&&Zc(t,(n,r)=>q1(r,!0))),t}function VW(){ur(2)}function Lp(t){return Object.isFrozen(t)}var GW={};function us(t){const e=GW[t];return e||ur(0,t),e}var qc;function WA(){return qc}function WW(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Zw(t,e){e&&(us("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ky(t){Iy(t),t.drafts_.forEach(HW),t.drafts_=null}function Iy(t){t===qc&&(qc=t.parent_)}function qw(t){return qc=WW(qc,t)}function HW(t){const e=t[On];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Qw(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[On].modified_&&(ky(e),ur(4)),bi(t)&&(t=mh(e,t),e.parent_||yh(e,t)),e.patches_&&us("Patches").generateReplacementPatches_(n[On].base_,t,e.patches_,e.inversePatches_)):t=mh(e,n,[]),ky(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==UA?t:void 0}function mh(t,e,n){if(Lp(e))return e;const r=e[On];if(!r)return Zc(e,(i,o)=>Jw(t,r,e,i,o,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return yh(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Zc(o,(a,l)=>Jw(t,r,i,a,l,n,s)),yh(t,i,!1),n&&t.patches_&&us("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Jw(t,e,n,r,i,o,s){if(mo(i)){const a=o&&e&&e.type_!==3&&!Py(e.assigned_,r)?o.concat(r):void 0,l=mh(t,i,a);if(GA(n,r,l),mo(l))t.canAutoFreeze_=!1;else return}else s&&n.add(i);if(bi(i)&&!Lp(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;mh(t,i),(!e||!e.scope_.parent_)&&yh(t,i)}}function yh(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&q1(e,n)}function KW(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:WA(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Q1;n&&(i=[r],o=Qc);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var Q1={get(t,e){if(e===On)return t;const n=No(t);if(!Py(n,e))return XW(t,n,e);const r=n[e];return t.finalized_||!bi(r)?r:r===Em(t.base_,e)?(Tm(t),t.copy_[e]=Ly(r,t)):r},has(t,e){return e in No(t)},ownKeys(t){return Reflect.ownKeys(No(t))},set(t,e,n){const r=HA(No(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=Em(No(t),e),o=i==null?void 0:i[On];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(UW(n,i)&&(n!==void 0||Py(t.base_,e)))return!0;Tm(t),My(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return Em(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,Tm(t),My(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=No(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){ur(11)},getPrototypeOf(t){return Ka(t.base_)},setPrototypeOf(){ur(12)}},Qc={};Zc(Q1,(t,e)=>{Qc[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});Qc.deleteProperty=function(t,e){return Qc.set.call(this,t,e,void 0)};Qc.set=function(t,e,n){return Q1.set.call(this,t[0],e,n,t[0])};function Em(t,e){const n=t[On];return(n?No(n):t)[e]}function XW(t,e,n){var i;const r=HA(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function HA(t,e){if(!(e in t))return;let n=Ka(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Ka(n)}}function My(t){t.modified_||(t.modified_=!0,t.parent_&&My(t.parent_))}function Tm(t){t.copy_||(t.copy_=Ay(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var YW=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const o=n;n=e;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&ur(6),r!==void 0&&typeof r!="function"&&ur(7);let i;if(bi(e)){const o=qw(this),s=Ly(e,void 0);let a=!0;try{i=n(s),a=!1}finally{a?ky(o):Iy(o)}return Zw(o,r),Qw(i,o)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===UA&&(i=void 0),this.autoFreeze_&&q1(i,!0),r){const o=[],s=[];us("Patches").generateReplacementPatches_(e,i,o,s),r(o,s)}return i}else ur(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,i;return[this.produce(e,n,(s,a)=>{r=s,i=a}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){bi(t)||ur(8),mo(t)&&(t=KA(t));const e=qw(this),n=Ly(t,void 0);return n[On].isManual_=!0,Iy(e),n}finishDraft(t,e){const n=t&&t[On];(!n||!n.isManual_)&&ur(9);const{scope_:r}=n;return Zw(r,e),Qw(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=us("Patches").applyPatches_;return mo(t)?r(t,e):this.produce(t,i=>r(i,e))}};function Ly(t,e){const n=Ip(t)?us("MapSet").proxyMap_(t,e):Mp(t)?us("MapSet").proxySet_(t,e):KW(t,e);return(e?e.scope_:WA()).drafts_.push(n),n}function KA(t){return mo(t)||ur(10,t),XA(t)}function XA(t){if(!bi(t)||Lp(t))return t;const e=t[On];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Ay(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Ay(t,!0);return Zc(n,(r,i)=>{GA(n,r,XA(i))}),e&&(e.finalized_=!1),n}var Dn=new YW,YA=Dn.produce;Dn.produceWithPatches.bind(Dn);Dn.setAutoFreeze.bind(Dn);Dn.setUseStrictShallowCopy.bind(Dn);Dn.applyPatches.bind(Dn);Dn.createDraft.bind(Dn);Dn.finishDraft.bind(Dn);function ZW(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function qW(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${e}[${n}]`)}}var eE=t=>Array.isArray(t)?t:[t];function QW(t){const e=Array.isArray(t[0])?t[0]:t;return qW(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function JW(t,e){const n=[],{length:r}=t;for(let i=0;i{n=bd(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function rH(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t;return(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),ZW(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=ZA,argsMemoizeOptions:p=[],devModeChecks:m={}}=u,v=eE(f),y=eE(p),g=QW(i),_=d(function(){return o++,c.apply(null,arguments)},...v),x=h(function(){s++;const T=JW(g,arguments);return a=_.apply(null,T),a},...y);return Object.assign(x,{resultFunc:c,memoizedResultFunc:_,dependencies:g,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})}}function qA(t){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,t):i(o)}var iH=qA(),oH=qA,sH=(...t)=>{const e=rH(...t);return(...n)=>{const r=e(...n),i=(o,...s)=>r(mo(o)?KA(o):o,...s);return Object.assign(i,r),i}};sH(ZA);var aH=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gh:gh.apply(null,arguments)};function Jc(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(pr(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>BW(r)&&r.type===t,n}var QA=class Wl extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wl.prototype)}static get[Symbol.species](){return Wl}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wl(...e[0].concat(this)):new Wl(...e.concat(this))}};function nE(t){return bi(t)?YA(t,()=>{}):t}function rE(t,e,n){if(t.has(e)){let i=t.get(e);return n.update&&(i=n.update(i,e,t),t.set(e,i)),i}if(!n.insert)throw new Error(pr(10));const r=n.insert(e,t);return t.set(e,r),r}function lH(t){return typeof t=="boolean"}var cH=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=e??{};let s=new QA;return n&&(lH(n)?s.push(iH):s.push(oH(n.extraArgument))),s},uH="RTK_autoBatch",JA=t=>e=>{setTimeout(e,t)},dH=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:JA(10),fH=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,o=!1,s=!1;const a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?dH:t.type==="callback"?t.queueNotification:JA(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const d=()=>i&&u(),f=r.subscribe(d);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){var d;try{return i=!((d=u==null?void 0:u.meta)!=null&&d[uH]),o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},hH=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new QA(t);return r&&i.push(fH(typeof r=="object"?r:void 0)),i},pH=!0;function gH(t){const e=cH(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=t||{};let a;if(typeof n=="function")a=n;else if(Z1(n))a=NW(n);else throw new Error(pr(1));let l;typeof r=="function"?l=r(e):l=e();let c=gh;i&&(c=aH({trace:!pH,...typeof i=="object"&&i}));const u=zW(...l),d=hH(u);let f=typeof s=="function"?s(d):d();const h=c(...f);return jA(a,o,h)}function ek(t){const e={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(pr(28));if(a in e)throw new Error(pr(29));return e[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return t(i),[e,n,r]}function mH(t){return typeof t=="function"}function yH(t,e){let[n,r,i]=ek(e),o;if(mH(t))o=()=>nE(t());else{const a=nE(t);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(mo(u)){const h=d(u,l);return h===void 0?u:h}else{if(bi(u))return YA(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw new Error(pr(9))}return f}}return u},a)}return s.getInitialState=o,s}var vH=Symbol.for("rtk-slice-createasyncthunk");function _H(t,e){return`${t}/${e}`}function xH({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[vH];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(pr(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(wH()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(v,y){const g=typeof v=="string"?v:v.type;if(!g)throw new Error(pr(12));if(g in c.sliceCaseReducersByType)throw new Error(pr(13));return c.sliceCaseReducersByType[g]=y,u},addMatcher(v,y){return c.sliceMatchers.push({matcher:v,reducer:y}),u},exposeAction(v,y){return c.actionCreators[v]=y,u},exposeCaseReducer(v,y){return c.sliceCaseReducersByName[v]=y,u}};l.forEach(v=>{const y=a[v],g={reducerName:v,type:_H(o,v),createNotation:typeof i.reducers=="function"};TH(y)?RH(g,y,u,e):EH(g,y,u)});function d(){const[v={},y=[],g=void 0]=typeof i.extraReducers=="function"?ek(i.extraReducers):[i.extraReducers],_={...v,...c.sliceCaseReducersByType};return yH(i.initialState,x=>{for(let S in _)x.addCase(S,_[S]);for(let S of c.sliceMatchers)x.addMatcher(S.matcher,S.reducer);for(let S of y)x.addMatcher(S.matcher,S.reducer);g&&x.addDefaultCase(g)})}const f=v=>v,h=new WeakMap;let p;const m={name:o,reducerPath:s,reducer(v,y){return p||(p=d()),p(v,y)},actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState(){return p||(p=d()),p.getInitialState()},getSelectors(v=f){const y=rE(h,this,{insert:()=>new WeakMap});return rE(y,v,{insert:()=>{const g={};for(const[_,x]of Object.entries(i.selectors??{}))g[_]=bH(this,x,v,this!==m);return g}})},selectSlice(v){let y=v[this.reducerPath];return typeof y>"u"&&this!==m&&(y=this.getInitialState()),y},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(v,{reducerPath:y,...g}={}){const _=y??this.reducerPath;return v.inject({reducerPath:_,reducer:this.reducer},g),{...this,reducerPath:_}}};return m}}function bH(t,e,n,r){function i(o,...s){let a=n.call(t,o);return typeof a>"u"&&r&&(a=t.getInitialState()),e(a,...s)}return i.unwrapped=e,i}var SH=xH();function wH(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function EH({type:t,reducerName:e,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!CH(r))throw new Error(pr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?Jc(t,s):Jc(t))}function TH(t){return t._reducerDefinitionType==="asyncThunk"}function CH(t){return t._reducerDefinitionType==="reducerWithPrepare"}function RH({type:t,reducerName:e},n,r,i){if(!i)throw new Error(pr(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=n,d=i(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Sd,pending:a||Sd,rejected:l||Sd,settled:c||Sd})}function Sd(){}var J1="listenerMiddleware";Jc(`${J1}/add`);Jc(`${J1}/removeAll`);Jc(`${J1}/remove`);function pr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const PH={layers:[{name:"Corrected Reflectance (True Color)",visible:!0,order:0,id:"VIIRS_SNPP_CorrectedReflectance_TrueColor"},{name:"HLS Landsat FIRMS SWIR",visible:!0,order:1,id:"hls_landsat_firms_swir",red:50,green:50,blue:50},{name:"HLS Landsat FIRMS NO SWIR",visible:!0,order:2,id:"hls_landsat_firms_no_swir",red:50,green:50,blue:50},{name:"Coastlines / Borders / Roads",visible:!0,order:3,id:"Reference_Features_15m"},{name:"Place Labels",visible:!0,order:4,id:"Reference_Labels_15m"}]},tk=SH({name:"map",initialState:PH,reducers:{setLayerVisibility:(t,e)=>{const{id:n,visible:r}=e.payload,i=t.layers.find(o=>o.id===n);i&&(i.visible=!r)},updateLayerRgb:(t,e)=>{const{id:n,red:r,green:i,blue:o}=e.payload,s=t.layers.find(a=>a.id===n);s&&(s.red=r,s.green=i,s.blue=o)}}}),{setLayerVisibility:AH,updateLayerRgb:kH}=tk.actions,IH=tk.reducer,MH=()=>{const{map:t}=C.useContext(Tu),e=NA(o=>o.mapState.layers),n=BA(),r=o=>{t.getLayers().getArray().find(l=>l.get("id")===o.id).setVisible(!o.visible),n(AH(o))},i=[...e].reverse();return k.jsxs(X1,{mt:"8",children:[k.jsx(K1,{as:"h2",size:"lg",mb:"4",color:"whiteAlpha.900",textAlign:"center",children:"Layers"}),k.jsx(po,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:i.map(o=>k.jsxs(po,{alignItems:"center",justifyContent:"space-between",width:"100%",mb:"4",children:[k.jsx(Yc,{color:"whiteAlpha.900",children:o.name}),k.jsx(LA,{colorScheme:"blue",size:"sm",isChecked:o.visible,onChange:()=>r(o)})]},o.id))})]})};var nk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},iE=gn.createContext&&gn.createContext(nk),lo=function(){return lo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{const{map:t}=C.useContext(Tu),e=BA(),n=NA(o=>o.mapState.layers.filter(s=>s.id==="hls_landsat_firms_swir"||s.id==="hls_landsat_firms_no_swir")),r=(o,s,a,l)=>{const c=t.getLayers().getArray().find(f=>f.get("id")===o);if(!c)return;const u=f=>Math.max(0,Math.min(f,100))/100*255,d=()=>({color:["array",["/",["band",1],u(s)],["/",["band",2],u(a)],["/",["band",3],u(l)],1]});c.setStyle(d)},i=(o,s,a)=>{const l={...o,[s]:a};e(kH(l)),r(o.id,l.red,l.green,l.blue)};return k.jsxs(X1,{mt:"2",children:[k.jsx(K1,{as:"h2",size:"lg",mb:"1",color:"whiteAlpha.900",textAlign:"center",children:"HLS Contrast"}),k.jsx(po,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:n&&n.map(o=>k.jsxs(po,{flexDirection:"column",justifyContent:"center",mt:"4",width:"100%",children:[k.jsx(Yc,{color:"whiteAlpha.900",as:"b",textAlign:"center",children:o.name}),k.jsxs(ff,{"aria-label":"red-slider",colorScheme:"red",defaultValue:o.red,mt:"8",onChange:s=>{i(o,"red",s)},children:[k.jsxs(mf,{value:o.red,textAlign:"center",bg:"red.500",color:"white",mt:"-10",ml:"-5",w:"12",children:[o.red,"%"]}),k.jsx(pf,{children:k.jsx(gf,{})}),k.jsx(hf,{boxSize:6,children:k.jsx(Pa,{color:"tomato",as:Cm})})]}),k.jsxs(ff,{"aria-label":"green-slider",colorScheme:"green",defaultValue:o.green,mt:"16",onChange:s=>{i(o,"green",s)},children:[k.jsxs(mf,{value:o.green,textAlign:"center",bg:"green.500",color:"white",mt:"-10",ml:"-5",w:"12",children:[o.green,"%"]}),k.jsx(pf,{children:k.jsx(gf,{})}),k.jsx(hf,{boxSize:6,children:k.jsx(Pa,{color:"green",as:Cm})})]}),k.jsxs(ff,{"aria-label":"blue-slider",colorScheme:"blue",defaultValue:o.blue,mt:"16",onChange:s=>{i(o,"blue",s)},children:[k.jsxs(mf,{value:o.blue,textAlign:"center",bg:"blue.500",color:"white",mt:"-10",ml:"-5",w:"12",children:[o.blue,"%"]}),k.jsx(pf,{children:k.jsx(gf,{})}),k.jsx(hf,{boxSize:6,children:k.jsx(Pa,{color:"blue",as:Cm})})]})]},o.id))})]})},$H=()=>{const{map:t}=C.useContext(Tu),e=()=>{if(!t)return{zoom:null,xTile:null,yTile:null};const s=t.getView(),a=s.getZoom(),l=s.getCenter(),c=l[0],u=l[1],d=Math.pow(2,a),f=Math.floor((c+180)/360*d),h=u*Math.PI/180,p=Math.floor((1-Math.log(Math.tan(h)+1/Math.cos(h))/Math.PI)/2*d);return{zoom:a,xTile:f,yTile:p}},[n,r]=C.useState(null),[i,o]=C.useState(null);return e(),C.useEffect(()=>{if(t){const s=()=>{const a=t.getView();r(a.getZoom().toFixed(2));const l=a.getCenter();o(l.map(c=>c.toFixed(4)).join(", "))};return t.on("moveend",s),s(),()=>{t.un("moveend",s)}}},[t]),k.jsxs(Pa,{id:"sidebar",width:"33%",p:4,bg:"blackAlpha.800",height:"100vh",overflowY:"auto",overflowX:"hidden",sx:{"&::-webkit-scrollbar":{width:"4px",borderRadius:"8px",backgroundColor:"rgba(0, 0, 0, 0.05)"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgb(225,214,196)"}},children:[k.jsxs(po,{gap:8,mb:"4",children:[k.jsx(Cy,{borderRadius:"full",px:"2",colorScheme:"teal",width:"20%",textAlign:"center",children:"Coordinates"}),k.jsxs(Yc,{color:"whiteAlpha.900",children:[" ",i," "]})]}),k.jsxs(po,{gap:8,mb:"4",children:[k.jsx(Cy,{borderRadius:"full",px:"2",colorScheme:"teal",width:"20%",textAlign:"center",children:"Zoom"}),k.jsxs(Yc,{color:"whiteAlpha.900",children:[" ",n," "]})]}),k.jsx(MH,{}),k.jsx(FH,{})]})};class NH{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const So=NH,eu={PROPERTYCHANGE:"propertychange"};class zH{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const Op=zH;function Dp(t,e){return t>e?1:te?-1:0}function e_(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if(typeof n=="function"){for(let i=1;i0?i-1:i}return r-1}if(n>0){for(let i=1;i0||n&&s===0)})}function vh(){return!0}function $p(){return!1}function _h(){}function VH(t){let e=!1,n,r,i;return function(){const o=Array.prototype.slice.call(arguments);return(!e||this!==i||!Fp(o,r))&&(e=!0,i=this,r=o,n=t.apply(this,arguments)),n}}function GH(t){function e(){let n;try{n=t()}catch(r){return Promise.reject(r)}return n instanceof Promise?n:Promise.resolve(n)}return e()}function Cu(t){for(const e in t)delete t[e]}function WH(t){let e;for(e in t)return!1;return!e}class HH extends Op{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const r=this.listeners_||(this.listeners_={}),i=r[e]||(r[e]=[]);i.includes(n)||i.push(n)}dispatchEvent(e){const n=typeof e=="string",r=n?e:e.type,i=this.listeners_&&this.listeners_[r];if(!i)return;const o=n?new So(e):e;o.target||(o.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});r in s||(s[r]=0,a[r]=0),++s[r];let l;for(let c=0,u=i.length;c0:!1}removeEventListener(e,n){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const i=r.indexOf(n);i!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[i]=_h,++this.pendingRemovals_[e]):(r.splice(i,1),r.length===0&&delete this.listeners_[e]))}}const Np=HH,ce={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function ke(t,e,n,r,i){if(r&&r!==t&&(n=n.bind(r)),i){const s=n;n=function(){t.removeEventListener(e,n),s.apply(this,arguments)}}const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function xh(t,e,n,r){return ke(t,e,n,r,!0)}function qe(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),Cu(t))}class zp extends Np{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(ce.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const r=e.length,i=new Array(r);for(let o=0;o0;)this.pop()}extend(e){for(let n=0,r=e.length;nthis.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new wd(Kn.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let r=0,i=n.length;r=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new wd(Kn.REMOVE,n,e)),n}setAt(e,n){const r=this.getLength();if(e>=r){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const i=this.array_[e];this.array_[e]=n,this.dispatchEvent(new wd(Kn.REMOVE,i,e)),this.dispatchEvent(new wd(Kn.ADD,n,e))}updateLength_(){this.set(sE.LENGTH,this.array_.length)}assertUnique_(e,n){for(let r=0,i=this.array_.length;ri&&(l=l|Mt.RIGHT),ao&&(l=l|Mt.ABOVE),l===Mt.UNKNOWN&&(l=Mt.INTERSECTING),l}function vs(){return[1/0,1/0,-1/0,-1/0]}function Ru(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function jp(t){return Ru(1/0,1/0,-1/0,-1/0,t)}function c7(t,e){const n=t[0],r=t[1];return Ru(n,r,n,r,e)}function u7(t,e,n,r,i){const o=jp(i);return fk(o,t,e,n,r)}function Dy(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function d7(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function yf(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function fk(t,e,n,r,i){for(;ne[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function Au(t){return t[2]=s&&m<=l),!r&&o&Mt.RIGHT&&!(i&Mt.RIGHT)&&(v=h-(f-l)*p,r=v>=a&&v<=c),!r&&o&Mt.BELOW&&!(i&Mt.BELOW)&&(m=f-(h-a)/p,r=m>=s&&m<=l),!r&&o&Mt.LEFT&&!(i&Mt.LEFT)&&(v=h-(f-s)*p,r=v>=a&&v<=c)}return r}const bh={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var en={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"]};en.whitepoint={2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}};en.max=en.whitepoint[2].D65;en.rgb=function(t,e){e=e||en.whitepoint[2].E;var n=t[0]/e[0],r=t[1]/e[1],i=t[2]/e[2],o,s,a;return o=n*3.240969941904521+r*-1.537383177570093+i*-.498610760293,s=n*-.96924363628087+r*1.87596750150772+i*.041555057407175,a=n*.055630079696993+r*-.20397695888897+i*1.056971514242878,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o=o*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s=s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a=a*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[o*255,s*255,a*255]};bh.xyz=function(t,e){var n=t[0]/255,r=t[1]/255,i=t[2]/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var o=n*.41239079926595+r*.35758433938387+i*.18048078840183,s=n*.21263900587151+r*.71516867876775+i*.072192315360733,a=n*.019330818715591+r*.11919477979462+i*.95053215224966;return e=e||en.whitepoint[2].E,[o*e[0],s*e[1],a*e[2]]};const pk={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,n){var r,i,o,s,a,l,c,u,d,f,h,p,m;if(o=t[0],s=t[1],a=t[2],o===0)return[0,0,0];var v=.0011070564598794539;return e=e||"D65",n=n||2,d=en.whitepoint[n][e][0],f=en.whitepoint[n][e][1],h=en.whitepoint[n][e][2],p=4*d/(d+15*f+3*h),m=9*f/(d+15*f+3*h),r=s/(13*o)+p||0,i=a/(13*o)+m||0,c=o>8?f*Math.pow((o+16)/116,3):f*o*v,l=c*9*r/(4*i)||0,u=c*(12-3*r-20*i)/(4*i)||0,[l,c,u]}};en.luv=function(t,e,n){var r,i,o,s,a,l,c,u,d,f,h,p,m,v=.008856451679035631,y=903.2962962962961;e=e||"D65",n=n||2,d=en.whitepoint[n][e][0],f=en.whitepoint[n][e][1],h=en.whitepoint[n][e][2],p=4*d/(d+15*f+3*h),m=9*f/(d+15*f+3*h),l=t[0],c=t[1],u=t[2],r=4*l/(l+15*c+3*u)||0,i=9*c/(l+15*c+3*u)||0;var g=c/f;return o=g<=v?y*g:116*Math.pow(g,1/3)-16,s=13*o*(r-p),a=13*o*(i-m),[o,s,a]};pk.lchuv=function(t){var e=t[0],n=t[1],r=t[2],i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n),s=o*360/2/Math.PI;return s<0&&(s+=360),[e,i,s]};en.lchuv=function(t){return pk.lchuv(en.luv(t))};var m7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const uE=fs(m7);var dE={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function y7(t){var u,d;var e,n=[],r=1,i;if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(typeof t=="number")return{space:"rgb",values:[t>>>16,(t&65280)>>>8,t&255],alpha:1};if(t=String(t).toLowerCase(),uE[t])n=uE[t].slice(),i="rgb";else if(t==="transparent")r=0,i="rgb",n=[0,0,0];else if(t[0]==="#"){var o=t.slice(1),s=o.length,a=s<=4;r=1,a?(n=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],s===4&&(r=parseInt(o[3]+o[3],16)/255)):(n=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],s===8&&(r=parseInt(o[6]+o[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),i="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var l=e[1];i=l.replace(/a$/,"");var c=i==="cmyk"?4:i==="gray"?1:3;n=e[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=n.shift()),n=n.map(function(f,h){if(f[f.length-1]==="%")return f=parseFloat(f)/100,h===3?f:i==="rgb"?f*255:i[0]==="h"||i[0]==="l"&&!h?f*100:i==="lab"?f*125:i==="lch"?h<2?f*150:f*360:i[0]==="o"&&!h?f:i==="oklab"?f*.4:i==="oklch"?h<2?f*.4:f*360:f;if(i[h]==="h"||h===2&&i[i.length-1]==="h"){if(dE[f]!==void 0)return dE[f];if(f.endsWith("deg"))return parseFloat(f);if(f.endsWith("turn"))return parseFloat(f)*360;if(f.endsWith("grad"))return parseFloat(f)*360/400;if(f.endsWith("rad"))return parseFloat(f)*180/Math.PI}return f==="none"?0:parseFloat(f)}),r=n.length>c?n.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(n=t.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=((d=(u=t.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:d.toLowerCase())||"rgb");return{space:i,values:n,alpha:r}}const Rm={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100,i,o,s,a,l,c=0;if(n===0)return l=r*255,[l,l,l];for(o=r<.5?r*(1+n):r+n-r*n,i=2*r-o,a=[0,0,0];c<3;)s=e+1/3*-(c-1),s<0?s++:s>1&&s--,l=6*s<1?i+(o-i)*6*s:2*s<1?o:3*s<2?i+(o-i)*(2/3-s)*6:i,a[c++]=l*255;return a}};bh.hsl=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=o-i,a,l,c;return o===i?a=0:e===o?a=(n-r)/s:n===o?a=2+(r-e)/s:r===o&&(a=4+(e-n)/s),a=Math.min(a*60,360),a<0&&(a+=360),c=(i+o)/2,o===i?l=0:c<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,c*100]};function v7(t){Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var e,n=y7(t);if(!n.space)return[];const r=n.space[0]==="h"?Rm.min:bh.min,i=n.space[0]==="h"?Rm.max:bh.max;return e=Array(3),e[0]=Math.min(Math.max(n.values[0],r[0]),i[0]),e[1]=Math.min(Math.max(n.values[1],r[1]),i[1]),e[2]=Math.min(Math.max(n.values[2],r[2]),i[2]),n.space[0]==="h"&&(e=Rm.rgb(e)),e.push(Math.min(Math.max(n.alpha,0),1)),e}function lt(t,e,n){return Math.min(Math.max(t,e),n)}function _7(t,e,n,r,i,o){const s=i-n,a=o-r;if(s!==0||a!==0){const l=((t-n)*s+(e-r)*a)/(s*s+a*a);l>1?(n=i,r=o):l>0&&(n+=s*l,r+=a*l)}return Aa(t,e,n,r)}function Aa(t,e,n,r){const i=n-t,o=r-e;return i*i+o*o}function x7(t){const e=t.length;for(let r=0;ro&&(o=l,i=a)}if(o===0)return null;const s=t[i];t[i]=t[r],t[r]=s;for(let a=r+1;a=0;r--){n[r]=t[r][e]/t[r][r];for(let i=r-1;i>=0;i--)t[i][e]-=t[i][r]*n[r]}return n}function vf(t){return t*Math.PI/180}function ka(t,e){const n=t%e;return n*e<0?n+e:n}function b7(t,e,n){return t+n*(e-t)}function gk(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Ed(t,e){return Math.floor(gk(t,e))}function Td(t,e){return Math.ceil(gk(t,e))}function S7(t){return typeof t=="string"?t:T7(t)}const w7=1024,kl={};let Pm=0;function mk(t){if(kl.hasOwnProperty(t))return kl[t];if(Pm>=w7){let n=0;for(const r in kl)n++&3||(delete kl[r],--Pm)}const e=v7(t);if(e.length!==4)throw new Error('Failed to parse "'+t+'" as color');for(const n of e)if(isNaN(n))throw new Error('Failed to parse "'+t+'" as color');return E7(e),kl[t]=e,++Pm,e}function Sh(t){return Array.isArray(t)?t:mk(t)}function E7(t){return t[0]=lt(t[0]+.5|0,0,255),t[1]=lt(t[1]+.5|0,0,255),t[2]=lt(t[2]+.5|0,0,255),t[3]=lt(t[3],0,1),t}function T7(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let r=t[2];r!=(r|0)&&(r=r+.5|0);const i=t[3]===void 0?1:Math.round(t[3]*100)/100;return"rgba("+e+","+n+","+r+","+i+")"}function C7(t){try{return mk(t),!0}catch{return!1}}class R7{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const r=this.cache_[n];!(e++&3)&&!r.hasListener()&&(delete this.cache_[n],--this.cacheSize_)}}}get(e,n,r){const i=fE(e,n,r);return i in this.cache_?this.cache_[i]:null}set(e,n,r,i){const o=fE(e,n,r);this.cache_[o]=i,++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function fE(t,e,n){const r=n?S7(n):"null";return e+":"+t+":"+r}const yk=new R7,Ce={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};class P7 extends Ti{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;const n=Object.assign({},e);typeof e.properties=="object"&&(delete n.properties,Object.assign(n,e.properties)),n[Ce.OPACITY]=e.opacity!==void 0?e.opacity:1,Ne(typeof n[Ce.OPACITY]=="number","Layer opacity must be a number"),n[Ce.VISIBLE]=e.visible!==void 0?e.visible:!0,n[Ce.Z_INDEX]=e.zIndex,n[Ce.MAX_RESOLUTION]=e.maxResolution!==void 0?e.maxResolution:1/0,n[Ce.MIN_RESOLUTION]=e.minResolution!==void 0?e.minResolution:0,n[Ce.MIN_ZOOM]=e.minZoom!==void 0?e.minZoom:-1/0,n[Ce.MAX_ZOOM]=e.maxZoom!==void 0?e.maxZoom:1/0,this.className_=n.className!==void 0?n.className:"ol-layer",delete n.className,this.setProperties(n),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){const n=this.state_||{layer:this,managed:e===void 0?!0:e},r=this.getZIndex();return n.opacity=lt(Math.round(this.getOpacity()*100)/100,0,1),n.visible=this.getVisible(),n.extent=this.getExtent(),n.zIndex=r===void 0&&!n.managed?1/0:r,n.maxResolution=this.getMaxResolution(),n.minResolution=Math.max(this.getMinResolution(),0),n.minZoom=this.getMinZoom(),n.maxZoom=this.getMaxZoom(),this.state_=n,n}getLayersArray(e){return Ke()}getLayerStatesArray(e){return Ke()}getExtent(){return this.get(Ce.EXTENT)}getMaxResolution(){return this.get(Ce.MAX_RESOLUTION)}getMinResolution(){return this.get(Ce.MIN_RESOLUTION)}getMinZoom(){return this.get(Ce.MIN_ZOOM)}getMaxZoom(){return this.get(Ce.MAX_ZOOM)}getOpacity(){return this.get(Ce.OPACITY)}getSourceState(){return Ke()}getVisible(){return this.get(Ce.VISIBLE)}getZIndex(){return this.get(Ce.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set(Ce.EXTENT,e)}setMaxResolution(e){this.set(Ce.MAX_RESOLUTION,e)}setMinResolution(e){this.set(Ce.MIN_RESOLUTION,e)}setMaxZoom(e){this.set(Ce.MAX_ZOOM,e)}setMinZoom(e){this.set(Ce.MIN_ZOOM,e)}setOpacity(e){Ne(typeof e=="number","Layer opacity must be a number"),this.set(Ce.OPACITY,e)}setVisible(e){this.set(Ce.VISIBLE,e)}setZIndex(e){this.set(Ce.Z_INDEX,e)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const vk=P7,dn={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Gn={ANIMATING:0,INTERACTING:1},or={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},A7=42,r_=256,k7={9001:"m",9002:"ft",9003:"us-ft",9101:"radians",9102:"degrees"};function hE(t){return k7[t]}const ru={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class I7{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||ru[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const wh=I7,ku=6378137,ga=Math.PI*ku,M7=[-ga,-ga,ga,ga],L7=[-180,-85,180,85],Cd=ku*Math.log(Math.tan(Math.PI/2));class Ls extends wh{constructor(e){super({code:e,units:"m",extent:M7,global:!0,worldExtent:L7,getPointResolution:function(n,r){return n/Math.cosh(r[1]/ku)}})}}const pE=[new Ls("EPSG:3857"),new Ls("EPSG:102100"),new Ls("EPSG:102113"),new Ls("EPSG:900913"),new Ls("http://www.opengis.net/def/crs/EPSG/0/3857"),new Ls("http://www.opengis.net/gml/srs/epsg.xml#3857")];function O7(t,e,n){const r=t.length;n=n>1?n:2,e===void 0&&(n>2?e=t.slice():e=new Array(r));for(let i=0;iCd?o=Cd:o<-Cd&&(o=-Cd),e[i+1]=o}return e}function D7(t,e,n){const r=t.length;n=n>1?n:2,e===void 0&&(n>2?e=t.slice():e=new Array(r));for(let i=0;i=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function i_(t,e){const n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,o=t[1]*n+t[0]*r;return t[0]=i,t[1]=o,t}function U7(t,e){return t[0]*=e,t[1]*=e,t}function V7(t,e){if(e.canWrapX()){const n=yt(e.getExtent()),r=G7(t,e,n);r&&(t[0]-=r*n)}return t}function G7(t,e,n){const r=e.getExtent();let i=0;return e.canWrapX()&&(t[0]r[2])&&(n=n||yt(r),i=Math.floor((t[0]-r[0])/n)),i}const W7=63710088e-1;function yE(t,e,n){n=n||W7;const r=vf(t[1]),i=vf(e[1]),o=(i-r)/2,s=vf(e[0]-t[0])/2,a=Math.sin(o)*Math.sin(o)+Math.sin(s)*Math.sin(s)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}const _k={info:1,warn:2,error:3,none:4};let H7=_k.info;function xk(...t){H7>_k.warn||console.warn(...t)}function vE(...t){console.error(...t)}let zy=!0;function K7(t){zy=!(t===void 0?!0:t)}function o_(t,e){if(e!==void 0){for(let n=0,r=t.length;n=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(zy=!1,xk("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function Sk(t,e){return t}function Zi(t,e){return t}function Q7(){xE(pE),xE(mE),Z7(mE,pE,O7,D7)}Q7();function bE(t,e,n){return function(r,i,o,s,a){if(!r)return;if(!i&&!e)return r;const l=e?0:o[0]*i,c=e?0:o[1]*i,u=a?a[0]:0,d=a?a[1]:0;let f=t[0]+l/2+u,h=t[2]-l/2+u,p=t[1]+c/2+d,m=t[3]-c/2+d;f>h&&(f=(h+f)/2,h=f),p>m&&(p=(m+p)/2,m=p);let v=lt(r[0],f,h),y=lt(r[1],p,m);if(s&&n&&i){const g=30*i;v+=-g*Math.log(1+Math.max(0,f-r[0])/g)+g*Math.log(1+Math.max(0,r[0]-h)/g),y+=-g*Math.log(1+Math.max(0,p-r[1])/g)+g*Math.log(1+Math.max(0,r[1]-m)/g)}return[v,y]}}function J7(t){return t}function l_(t,e,n,r){const i=yt(e)/n[0],o=gr(e)/n[1];return r?Math.min(t,Math.max(i,o)):Math.min(t,Math.min(i,o))}function c_(t,e,n){let r=Math.min(t,e);const i=50;return r*=Math.log(1+i*Math.max(0,t/e-1))/i+1,n&&(r=Math.max(r,n),r/=Math.log(1+i*Math.max(0,n/t-1))/i+1),lt(r,n/2,e*2)}function eK(t,e,n,r){return e=e!==void 0?e:!0,function(i,o,s,a){if(i!==void 0){const l=t[0],c=t[t.length-1],u=n?l_(l,n,s,r):l;if(a)return e?c_(i,u,c):lt(i,c,u);const d=Math.min(u,i),f=Math.floor(e_(t,d,o));return t[f]>u&&f{if(!r)return this.getSimplifiedGeometry(n);const i=this.clone();return i.applyTransform(r),i.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return Ke()}closestPointXY(e,n,r,i){return Ke()}containsXY(e,n){const r=this.getClosestPoint([e,n]);return r[0]===e&&r[1]===n}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return Ke()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&jp(n),this.extentRevision_=this.getRevision()}return p7(this.extent_,e)}rotate(e,n){Ke()}scale(e,n,r){Ke()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return Ke()}getType(){return Ke()}applyTransform(e){Ke()}intersectsExtent(e){return Ke()}translate(e,n){Ke()}transform(e,n){const r=bn(e),i=r.getUnits()=="tile-pixels"?function(o,s,a){const l=r.getExtent(),c=r.getWorldExtent(),u=gr(c)/gr(l);return ds(EE,c[0],c[3],u,-u,0,0,0),sK(o,0,o.length,a,EE,s),Ch(r,n)(o,s,a)}:Ch(r,n);return this.applyTransform(i),this}}const dK=uK;class fK extends dK{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return u7(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return Ke()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length1)d=n;else if(f>0){for(let h=0;hi&&(i=c),o=a,s=l}return i}function pK(t,e,n,r,i){for(let o=0,s=n.length;o0;){const d=c.pop(),f=c.pop();let h=0;const p=t[f],m=t[f+1],v=t[d],y=t[d+1];for(let g=f+r;gh&&(u=g,h=S)}h>i&&(l[(u-e)/r]=1,f+r0&&m>h)&&(p<0&&v0&&v>p)){c=d,u=f;continue}o[s++]=c,o[s++]=u,a=c,l=u,c=d,u=f}return o[s++]=c,o[s++]=u,s}function xK(t,e,n,r,i,o,s,a){for(let l=0,c=n.length;lo&&(c-a)*(o-l)-(i-a)*(u-l)>0&&s++:u<=o&&(c-a)*(o-l)-(i-a)*(u-l)<0&&s--,a=c,l=u}return s!==0}function Ak(t,e,n,r,i,o){if(n.length===0||!Ko(t,e,n[0],r,i,o))return!1;for(let s=1,a=n.length;sy&&(c=(u+d)/2,Ak(t,e,n,r,c,p)&&(v=c,y=g)),u=d}return isNaN(v)&&(v=i[o]),s?(s.push(v,p,y),s):[v,p,y]}function CK(t,e,n,r,i){let o;for(e+=r;e=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]?!0:CK(t,e,n,r,function(s,a){return g7(i,s,a)}):!1}function Ik(t,e,n,r,i){return!!(kk(t,e,n,r,i)||Ko(t,e,n,r,i[0],i[1])||Ko(t,e,n,r,i[0],i[3])||Ko(t,e,n,r,i[2],i[1])||Ko(t,e,n,r,i[2],i[3]))}function RK(t,e,n,r,i){if(!Ik(t,e,n[0],r,i))return!1;if(n.length===1)return!0;for(let o=1,s=n.length;o0}function AK(t,e,n,r,i){i=i!==void 0?i:!1;for(let o=0,s=n.length;o1&&typeof arguments[n-1]=="function"&&(r=arguments[n-1],--n);let i=0;for(;i0}getInteracting(){return this.hints_[Gn.INTERACTING]>0}cancelAnimations(){this.setHint(Gn.ANIMATING,-this.hints_[Gn.ANIMATING]);let e;for(let n=0,r=this.animations_.length;n=0;--r){const i=this.animations_[r];let o=!0;for(let s=0,a=i.length;s0?c/l.duration:1;u>=1?(l.complete=!0,u=1):o=!1;const d=l.easing(u);if(l.sourceCenter){const f=l.sourceCenter[0],h=l.sourceCenter[1],p=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;const v=f+d*(p-f),y=h+d*(m-h);this.targetCenter_=[v,y]}if(l.sourceResolution&&l.targetResolution){const f=d===1?l.targetResolution:l.sourceResolution+d*(l.targetResolution-l.sourceResolution);if(l.anchor){const h=this.getViewportSize_(this.getRotation()),p=this.constraints_.resolution(f,0,h,!0);this.targetCenter_=this.calculateCenterZoom(p,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=f,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){const f=d===1?ka(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+d*(l.targetRotation-l.sourceRotation);if(l.anchor){const h=this.constraints_.rotation(f,!0);this.targetCenter_=this.calculateCenterRotate(h,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=f}if(this.applyTargetState_(!0),n=!0,!l.complete)break}if(o){this.animations_[r]=null,this.setHint(Gn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const s=i[0].callback;s&&Rd(s,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,n){let r;const i=this.getCenterInternal();return i!==void 0&&(r=[i[0]-n[0],i[1]-n[1]],i_(r,e-this.getRotation()),j7(r,n)),r}calculateCenterZoom(e,n){let r;const i=this.getCenterInternal(),o=this.getResolution();if(i!==void 0&&o!==void 0){const s=n[0]-e*(n[0]-i[0])/o,a=n[1]-e*(n[1]-i[1])/o;r=[s,a]}return r}getViewportSize_(e){const n=this.viewportSize_;if(e){const r=n[0],i=n[1];return[Math.abs(r*Math.cos(e))+Math.abs(i*Math.sin(e)),Math.abs(r*Math.sin(e))+Math.abs(i*Math.cos(e))]}return n}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const e=this.getCenterInternal();return e&&Rh(e,this.getProjection())}getCenterInternal(){return this.get(or.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(e){return e!==void 0?(e[0]=this.hints_[0],e[1]=this.hints_[1],e):this.hints_.slice()}calculateExtent(e){const n=this.calculateExtentInternal(e);return Sk(n,this.getProjection())}calculateExtentInternal(e){e=e||this.getViewportSizeMinusPadding_();const n=this.getCenterInternal();Ne(n,"The view center is not defined");const r=this.getResolution();Ne(r!==void 0,"The view resolution is not defined");const i=this.getRotation();return Ne(i!==void 0,"The view rotation is not defined"),Fy(n,r,i,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(or.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,n){return this.getResolutionForExtentInternal(Zi(e,this.getProjection()),n)}getResolutionForExtentInternal(e,n){n=n||this.getViewportSizeMinusPadding_();const r=yt(e)/n[0],i=gr(e)/n[1];return Math.max(r,i)}getResolutionForValueFunction(e){e=e||2;const n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/Math.log(e);return function(o){return n/Math.pow(e,o*i)}}getRotation(){return this.get(or.ROTATION)}getValueForResolutionFunction(e){const n=Math.log(e||2),r=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,o=Math.log(r/i)/n;return function(s){return Math.log(r/s)/n/o}}getViewportSizeMinusPadding_(e){let n=this.getViewportSize_(e);const r=this.padding_;return r&&(n=[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]),n}getState(){const e=this.getProjection(),n=this.getResolution(),r=this.getRotation();let i=this.getCenterInternal();const o=this.padding_;if(o){const s=this.getViewportSizeMinusPadding_();i=km(i,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,r)}return{center:i.slice(0),projection:e!==void 0?e:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:r,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e;const n=this.getResolution();return n!==void 0&&(e=this.getZoomForResolution(n)),e}getZoomForResolution(e){let n=this.minZoom_||0,r,i;if(this.resolutions_){const o=e_(this.resolutions_,e,1);n=o,r=this.resolutions_[o],o==this.resolutions_.length-1?i=2:i=r/this.resolutions_[o+1]}else r=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(r/e)/Math.log(i)}getResolutionForZoom(e){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const n=lt(Math.floor(e),0,this.resolutions_.length-2),r=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(r,lt(e-n,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,e-this.minZoom_)}fit(e,n){let r;if(Ne(Array.isArray(e)||typeof e.getSimplifiedGeometry=="function","Invalid extent or geometry provided as `geometry`"),Array.isArray(e)){Ne(!Au(e),"Cannot fit empty extent provided as `geometry`");const i=Zi(e,this.getProjection());r=AE(i)}else if(e.getType()==="Circle"){const i=Zi(e.getExtent(),this.getProjection());r=AE(i),r.rotate(this.getRotation(),Xa(i))}else r=e;this.fitInternal(r,n)}rotatedExtentForGeometry(e){const n=this.getRotation(),r=Math.cos(n),i=Math.sin(-n),o=e.getFlatCoordinates(),s=e.getStride();let a=1/0,l=1/0,c=-1/0,u=-1/0;for(let d=0,f=o.length;d{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let n;const r=this.getMapInternal();!e&&r&&(e=r.getView()),e instanceof Dr?n={viewState:e.getState(),extent:e.calculateExtent()}:n=e,!n.layerStatesArray&&r&&(n.layerStatesArray=r.getLayerGroup().getLayerStatesArray());let i;n.layerStatesArray?i=n.layerStatesArray.find(s=>s.layer===this):i=this.getLayerState();const o=this.getExtent();return h_(i,n.viewState)&&(!o||Pu(o,n.extent))}getAttributions(e){if(!this.isVisible(e))return[];let n;const r=this.getSource();if(r&&(n=r.getAttributions()),!n)return[];const i=e instanceof Dr?e.getViewStateAndExtent():e;let o=n(i);return Array.isArray(o)||(o=[o]),o}render(e,n){const r=this.getRenderer();return r.prepareFrame(e)?(this.rendered=!0,r.renderFrame(e,n)):null}unrender(){this.rendered=!1}setMapInternal(e){e||this.unrender(),this.set(Ce.MAP,e)}getMapInternal(){return this.get(Ce.MAP)}setMap(e){this.mapPrecomposeKey_&&(qe(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),e||this.changed(),this.mapRenderKey_&&(qe(this.mapRenderKey_),this.mapRenderKey_=null),e&&(this.mapPrecomposeKey_=ke(e,dn.PRECOMPOSE,function(n){const i=n.frameState.layerStatesArray,o=this.getLayerState(!1);Ne(!i.some(function(s){return s.layer===o.layer}),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),i.push(o)},this),this.mapRenderKey_=ke(this,ce.CHANGE,e.render,e),this.changed())}setSource(e){this.set(Ce.SOURCE,e)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function h_(t,e){if(!t.visible)return!1;const n=e.resolution;if(n=t.maxResolution)return!1;const r=e.zoom;return r>t.minZoom&&r<=t.maxZoom}const p_=DK;class FK extends Op{constructor(e){super(),this.map_=e}dispatchRenderEvent(e,n){Ke()}calculateMatrices2D(e){const n=e.viewState,r=e.coordinateToPixelTransform,i=e.pixelToCoordinateTransform;ds(r,e.size[0]/2,e.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),ck(i,r)}forEachFeatureAtCoordinate(e,n,r,i,o,s,a,l){let c;const u=n.viewState;function d(x,S,T,w){return o.call(s,S,x?T:null,w)}const f=u.projection,h=V7(e.slice(),f),p=[[0,0]];if(f.canWrapX()&&i){const x=f.getExtent(),S=yt(x);p.push([-S,0],[S,0])}const m=n.layerStatesArray,v=m.length,y=[],g=[];for(let x=0;x=0;--S){const T=m[S],w=T.layer;if(w.hasRenderer()&&h_(T,u)&&a.call(l,w)){const E=w.getRenderer(),I=w.getSource();if(E&&I){const M=I.getWrapX()?h:e,z=d.bind(null,T.managed);g[0]=M[0]+p[x][0],g[1]=M[1]+p[x][1],c=E.forEachFeatureAtCoordinate(g,n,r,z,y)}if(c)return c}}if(y.length===0)return;const _=1/y.length;return y.forEach((x,S)=>x.distanceSq+=S*_),y.sort((x,S)=>x.distanceSq-S.distanceSq),y.some(x=>c=x.callback(x.feature,x.layer,x.geometry)),c}hasFeatureAtCoordinate(e,n,r,i,o,s){return this.forEachFeatureAtCoordinate(e,n,r,i,vh,this,o,s)!==void 0}getMap(){return this.map_}renderFrame(e){Ke()}flushDeclutterItems(e){}scheduleExpireIconCache(e){yk.canExpireCache()&&e.postRenderFunctions.push($K)}}function $K(t,e){yk.expire()}const NK=FK;class zK extends So{constructor(e,n,r,i){super(e),this.inversePixelTransform=n,this.frameState=r,this.context=i}}const pc=zK,Pd="ol-hidden",Wp="ol-unselectable",g_="ol-control",kE="ol-collapsed";function Si(t,e,n,r){let i;return n&&n.length?i=n.shift():ak?i=new OffscreenCanvas(t||300,e||300):i=document.createElement("canvas"),t&&(i.width=t),e&&(i.height=e),i.getContext("2d",r)}function ou(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function IE(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function By(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function BK(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function jK(t,e){const n=t.childNodes;for(let r=0;;++r){const i=n[r],o=e[r];if(!i&&!o)break;if(i!==o){if(!i){t.appendChild(o);continue}if(!o){t.removeChild(i),--r;continue}t.insertBefore(o,i)}}}const UK=new Ti;class VK extends NK{constructor(e){super(e),this.fontChangeListenerKey_=ke(UK,eu.PROPERTYCHANGE,e.redrawText.bind(e)),this.element_=document.createElement("div");const n=this.element_.style;n.position="absolute",n.width="100%",n.height="100%",n.zIndex="0",this.element_.className=Wp+" ol-layers";const r=e.getViewport();r.insertBefore(this.element_,r.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(e,n){const r=this.getMap();if(r.hasListener(e)){const i=new pc(e,void 0,n);r.dispatchEvent(i)}}disposeInternal(){qe(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(e){if(!e){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(e),this.dispatchRenderEvent(dn.PRECOMPOSE,e);const n=e.layerStatesArray.sort(function(s,a){return s.zIndex-a.zIndex}),r=e.viewState;this.children_.length=0;const i=this.declutterLayers_;i.length=0;let o=null;for(let s=0,a=n.length;s=0;--r)n[r].renderDeclutter(e);n.length=0}}const GK=VK;class ji extends So{constructor(e,n){super(e),this.layer=n}}const Im={LAYERS:"layers"};class m_ extends vk{constructor(e){e=e||{};const n=Object.assign({},e);delete n.layers;let r=e.layers;super(n),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Im.LAYERS,this.handleLayersChanged_),r?Array.isArray(r)?r=new li(r.slice(),{unique:!0}):Ne(typeof r.getArray=="function","Expected `layers` to be an array or a `Collection`"):r=new li(void 0,{unique:!0}),this.setLayers(r)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(qe),this.layersListenerKeys_.length=0;const e=this.getLayers();this.layersListenerKeys_.push(ke(e,Kn.ADD,this.handleLayersAdd_,this),ke(e,Kn.REMOVE,this.handleLayersRemove_,this));for(const r in this.listenerKeys_)this.listenerKeys_[r].forEach(qe);Cu(this.listenerKeys_);const n=e.getArray();for(let r=0,i=n.length;r{this.clickTimeoutId_=void 0;const r=new Fi(rt.SINGLECLICK,this.map_,e);this.dispatchEvent(r)},250)}updateActivePointers_(e){const n=e,r=n.pointerId;if(n.type==rt.POINTERUP||n.type==rt.POINTERCANCEL){delete this.trackedTouches_[r];for(const i in this.trackedTouches_)if(this.trackedTouches_[i].target!==n.target){delete this.trackedTouches_[i];break}}else(n.type==rt.POINTERDOWN||n.type==rt.POINTERMOVE)&&(this.trackedTouches_[r]=n);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(e){this.updateActivePointers_(e);const n=new Fi(rt.POINTERUP,this.map_,e,void 0,void 0,this.activePointers_);this.dispatchEvent(n),this.emulateClicks_&&!n.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(e)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(qe),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(e){return e.button===0}handlePointerDown_(e){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(e);const n=new Fi(rt.POINTERDOWN,this.map_,e,void 0,void 0,this.activePointers_);if(this.dispatchEvent(n),this.down_=new PointerEvent(e.type,e),Object.defineProperty(this.down_,"target",{writable:!1,value:e.target}),this.dragListenerKeys_.length===0){const r=this.map_.getOwnerDocument();this.dragListenerKeys_.push(ke(r,rt.POINTERMOVE,this.handlePointerMove_,this),ke(r,rt.POINTERUP,this.handlePointerUp_,this),ke(this.element_,rt.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==r&&this.dragListenerKeys_.push(ke(this.element_.getRootNode(),rt.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(e){if(this.isMoving_(e)){this.updateActivePointers_(e),this.dragging_=!0;const n=new Fi(rt.POINTERDRAG,this.map_,e,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(n)}}relayMoveEvent_(e){this.originalPointerMoveEvent_=e;const n=!!(this.down_&&this.isMoving_(e));this.dispatchEvent(new Fi(rt.POINTERMOVE,this.map_,e,n))}handleTouchMove_(e){const n=this.originalPointerMoveEvent_;(!n||n.defaultPrevented)&&(typeof e.cancelable!="boolean"||e.cancelable===!0)&&e.preventDefault()}isMoving_(e){return this.dragging_||Math.abs(e.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(e.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(qe(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ce.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(qe(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(qe),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const XK=KK,$i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Ut={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Ah=1/0;class YK{constructor(e,n){this.priorityFunction_=e,this.keyFunction_=n,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Cu(this.queuedElements_)}dequeue(){const e=this.elements_,n=this.priorities_,r=e[0];e.length==1?(e.length=0,n.length=0):(e[0]=e.pop(),n[0]=n.pop(),this.siftUp_(0));const i=this.keyFunction_(r);return delete this.queuedElements_[i],r}enqueue(e){Ne(!(this.keyFunction_(e)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const n=this.priorityFunction_(e);return n!=Ah?(this.elements_.push(e),this.priorities_.push(n),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(e){return e*2+1}getRightChildIndex_(e){return e*2+2}getParentIndex_(e){return e-1>>1}heapify_(){let e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)}isEmpty(){return this.elements_.length===0}isKeyQueued(e){return e in this.queuedElements_}isQueued(e){return this.isKeyQueued(this.keyFunction_(e))}siftUp_(e){const n=this.elements_,r=this.priorities_,i=n.length,o=n[e],s=r[e],a=e;for(;e>1;){const l=this.getLeftChildIndex_(e),c=this.getRightChildIndex_(e),u=ce;){const a=this.getParentIndex_(n);if(i[a]>s)r[n]=r[a],i[n]=i[a],n=a;else break}r[n]=o,i[n]=s}reprioritize(){const e=this.priorityFunction_,n=this.elements_,r=this.priorities_;let i=0;const o=n.length;let s,a,l;for(a=0;a0;)o=this.dequeue()[0],s=o.getKey(),i=o.getState(),i===F.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++r,o.load())}}const QK=qK;function JK(t,e,n,r,i){if(!t||!(n in t.wantedTiles)||!t.wantedTiles[n][e.getKey()])return Ah;const o=t.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}class eX extends Ti{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){By(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&By(this.element);for(let n=0,r=this.listenerKeys.length;ni.getAttributions(e)))),r=!this.getMap().getAllLayers().some(i=>i.getSource()&&i.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(r),n}updateElement_(e){if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=this.collectSourceAttributions_(e),r=n.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!Fp(n,this.renderedAttributions_)){BK(this.ulElement_);for(let i=0,o=n.length;i0&&r%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ll}):n.setRotation(0))}render(e){const n=e.frameState;if(!n)return;const r=n.viewState.rotation;if(r!=this.rotation_){const i="rotate("+r+"rad)";if(this.autoHide_){const o=this.element.classList.contains(Pd);!o&&r===0?this.element.classList.add(Pd):o&&r!==0&&this.element.classList.remove(Pd)}this.label_.style.transform=i}this.rotation_=r}}const iX=rX;class oX extends y_{constructor(e){e=e||{},super({element:document.createElement("div"),target:e.target});const n=e.className!==void 0?e.className:"ol-zoom",r=e.delta!==void 0?e.delta:1,i=e.zoomInClassName!==void 0?e.zoomInClassName:n+"-in",o=e.zoomOutClassName!==void 0?e.zoomOutClassName:n+"-out",s=e.zoomInLabel!==void 0?e.zoomInLabel:"+",a=e.zoomOutLabel!==void 0?e.zoomOutLabel:"–",l=e.zoomInTipLabel!==void 0?e.zoomInTipLabel:"Zoom in",c=e.zoomOutTipLabel!==void 0?e.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=i,u.setAttribute("type","button"),u.title=l,u.appendChild(typeof s=="string"?document.createTextNode(s):s),u.addEventListener(ce.CLICK,this.handleClick_.bind(this,r),!1);const d=document.createElement("button");d.className=o,d.setAttribute("type","button"),d.title=c,d.appendChild(typeof a=="string"?document.createTextNode(a):a),d.addEventListener(ce.CLICK,this.handleClick_.bind(this,-r),!1);const f=n+" "+Wp+" "+g_,h=this.element;h.className=f,h.appendChild(u),h.appendChild(d),this.duration_=e.duration!==void 0?e.duration:250}handleClick_(e,n){n.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){const r=this.getMap().getView();if(!r)return;const i=r.getZoom();if(i!==void 0){const o=r.getConstrainedZoom(i+e);this.duration_>0?(r.getAnimating()&&r.cancelAnimations(),r.animate({zoom:o,duration:this.duration_,easing:ll})):r.setZoom(o)}}}const sX=oX;function aX(t){t=t||{};const e=new li;return(t.zoom!==void 0?t.zoom:!0)&&e.push(new sX(t.zoomOptions)),(t.rotate!==void 0?t.rotate:!0)&&e.push(new iX(t.rotateOptions)),(t.attribution!==void 0?t.attribution:!0)&&e.push(new nX(t.attributionOptions)),e}const ME={ACTIVE:"active"};class lX extends Ti{constructor(e){super(),this.on,this.once,this.un,e&&e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(ME.ACTIVE)}getMap(){return this.map_}handleEvent(e){return!0}setActive(e){this.set(ME.ACTIVE,e)}setMap(e){this.map_=e}}function cX(t,e,n){const r=t.getCenterInternal();if(r){const i=[r[0]+e[0],r[1]+e[1]];t.animateInternal({duration:n!==void 0?n:250,easing:oK,center:t.getConstrainedCenter(i)})}}function v_(t,e,n,r){const i=t.getZoom();if(i===void 0)return;const o=t.getConstrainedZoom(i+e),s=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:s,anchor:n,duration:r!==void 0?r:250,easing:ll})}const Iu=lX;class uX extends Iu{constructor(e){super(),e=e||{},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:250}handleEvent(e){let n=!1;if(e.type==rt.DBLCLICK){const r=e.originalEvent,i=e.map,o=e.coordinate,s=r.shiftKey?-this.delta_:this.delta_,a=i.getView();v_(a,s,o,this.duration_),r.preventDefault(),n=!0}return!n}}const dX=uX;class fX extends Iu{constructor(e){e=e||{},super(e),e.handleDownEvent&&(this.handleDownEvent=e.handleDownEvent),e.handleDragEvent&&(this.handleDragEvent=e.handleDragEvent),e.handleMoveEvent&&(this.handleMoveEvent=e.handleMoveEvent),e.handleUpEvent&&(this.handleUpEvent=e.handleUpEvent),e.stopDown&&(this.stopDown=e.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(e){return!1}handleDragEvent(e){}handleEvent(e){if(!e.originalEvent)return!0;let n=!1;if(this.updateTrackedPointers_(e),this.handlingDownUpSequence){if(e.type==rt.POINTERDRAG)this.handleDragEvent(e),e.originalEvent.preventDefault();else if(e.type==rt.POINTERUP){const r=this.handleUpEvent(e);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(e.type==rt.POINTERDOWN){const r=this.handleDownEvent(e);this.handlingDownUpSequence=r,n=this.stopDown(r)}else e.type==rt.POINTERMOVE&&this.handleMoveEvent(e);return!n}handleMoveEvent(e){}handleUpEvent(e){return!1}stopDown(e){return e}updateTrackedPointers_(e){e.activePointers&&(this.targetPointers=e.activePointers)}}function __(t){const e=t.length;let n=0,r=0;for(let i=0;i0&&this.condition_(e)){const r=e.map.getView();return this.lastCentroid=null,r.getAnimating()&&r.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const xX=_X;class bX extends Mu{constructor(e){e=e||{},super({stopDown:$p}),this.condition_=e.condition?e.condition:hX,this.lastAngle_=void 0,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){if(!Mm(e))return;const n=e.map,r=n.getView();if(r.getConstraints().rotation===u_)return;const i=n.getSize(),o=e.pixel,s=Math.atan2(i[1]/2-o[1],o[0]-i[0]/2);if(this.lastAngle_!==void 0){const a=s-this.lastAngle_;r.adjustRotationInternal(-a)}this.lastAngle_=s}handleUpEvent(e){return Mm(e)?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){return Mm(e)&&Ok(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}}const SX=bX;class wX extends Op{constructor(e){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const e=this.startPixel_,n=this.endPixel_,r="px",i=this.element_.style;i.left=Math.min(e[0],n[0])+r,i.top=Math.min(e[1],n[1])+r,i.width=Math.abs(n[0]-e[0])+r,i.height=Math.abs(n[1]-e[1])+r}setMap(e){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=e,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(e,n){this.startPixel_=e,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const e=this.startPixel_,n=this.endPixel_,i=[e,[e[0],n[1]],n,[n[0],e[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new iu([i])}getGeometry(){return this.geometry_}}const EX=wX,Ad={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"};class Lm extends So{constructor(e,n,r){super(e),this.coordinate=n,this.mapBrowserEvent=r}}class TX extends Mu{constructor(e){super(),this.on,this.once,this.un,e=e||{},this.box_=new EX(e.className||"ol-dragbox"),this.minArea_=e.minArea!==void 0?e.minArea:64,e.onBoxEnd&&(this.onBoxEnd=e.onBoxEnd),this.startPixel_=null,this.condition_=e.condition?e.condition:Ok,this.boxEndCondition_=e.boxEndCondition?e.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(e,n,r){const i=r[0]-n[0],o=r[1]-n[1];return i*i+o*o>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(e){this.box_.setPixels(this.startPixel_,e.pixel),this.dispatchEvent(new Lm(Ad.BOXDRAG,e.coordinate,e))}handleUpEvent(e){this.box_.setMap(null);const n=this.boxEndCondition_(e,this.startPixel_,e.pixel);return n&&this.onBoxEnd(e),this.dispatchEvent(new Lm(n?Ad.BOXEND:Ad.BOXCANCEL,e.coordinate,e)),!1}handleDownEvent(e){return this.condition_(e)?(this.startPixel_=e.pixel,this.box_.setMap(e.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Lm(Ad.BOXSTART,e.coordinate,e)),!0):!1}onBoxEnd(e){}}const CX=TX;class RX extends CX{constructor(e){e=e||{};const n=e.condition?e.condition:yX;super({condition:n,className:e.className||"ol-dragzoom",minArea:e.minArea}),this.duration_=e.duration!==void 0?e.duration:200,this.out_=e.out!==void 0?e.out:!1}onBoxEnd(e){const r=this.getMap().getView();let i=this.getGeometry();if(this.out_){const o=r.rotatedExtentForGeometry(i),s=r.getResolutionForExtentInternal(o),a=r.getResolution()/s;i=i.clone(),i.scale(a*a)}r.fitInternal(i,{duration:this.duration_,easing:ll})}}const PX=RX,Io={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};class AX extends Iu{constructor(e){super(),e=e||{},this.defaultCondition_=function(n){return Dk(n)&&Fk(n)},this.condition_=e.condition!==void 0?e.condition:this.defaultCondition_,this.duration_=e.duration!==void 0?e.duration:100,this.pixelDelta_=e.pixelDelta!==void 0?e.pixelDelta:128}handleEvent(e){let n=!1;if(e.type==ce.KEYDOWN){const r=e.originalEvent,i=r.key;if(this.condition_(e)&&(i==Io.DOWN||i==Io.LEFT||i==Io.RIGHT||i==Io.UP)){const s=e.map.getView(),a=s.getResolution()*this.pixelDelta_;let l=0,c=0;i==Io.DOWN?c=-a:i==Io.LEFT?l=-a:i==Io.RIGHT?l=a:c=a;const u=[l,c];i_(u,s.getRotation()),cX(s,u,this.duration_),r.preventDefault(),n=!0}}return!n}}const kX=AX;class IX extends Iu{constructor(e){super(),e=e||{},this.condition_=e.condition?e.condition:function(n){return!mX(n)&&Fk(n)},this.delta_=e.delta?e.delta:1,this.duration_=e.duration!==void 0?e.duration:100}handleEvent(e){let n=!1;if(e.type==ce.KEYDOWN||e.type==ce.KEYPRESS){const r=e.originalEvent,i=r.key;if(this.condition_(e)&&(i==="+"||i==="-")){const o=e.map,s=i==="+"?this.delta_:-this.delta_,a=o.getView();v_(a,s,void 0,this.duration_),r.preventDefault(),n=!0}}return!n}}const MX=IX;class LX{constructor(e,n,r){this.decay_=e,this.minVelocity_=n,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,n){this.points_.push(e,n,Date.now())}end(){if(this.points_.length<6)return!1;const e=Date.now()-this.delay_,n=this.points_.length-3;if(this.points_[n+2]0&&this.points_[r+2]>e;)r-=3;const i=this.points_[n+2]-this.points_[r+2];if(i<1e3/60)return!1;const o=this.points_[n]-this.points_[r],s=this.points_[n+1]-this.points_[r+1];return this.angle_=Math.atan2(s,o),this.initialVelocity_=Math.sqrt(o*o+s*s)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}const OX=LX;class DX extends Iu{constructor(e){e=e||{},super(e),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=e.maxDelta!==void 0?e.maxDelta:1,this.duration_=e.duration!==void 0?e.duration:250,this.timeout_=e.timeout!==void 0?e.timeout:80,this.useAnchor_=e.useAnchor!==void 0?e.useAnchor:!0,this.constrainResolution_=e.constrainResolution!==void 0?e.constrainResolution:!1;const n=e.condition?e.condition:gX;this.condition_=e.onFocusOnly?Uy(Lk,n):n,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const e=this.getMap();if(!e)return;e.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(e){if(!this.condition_(e)||e.type!==ce.WHEEL)return!0;const r=e.map,i=e.originalEvent;i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=e.coordinate);let o;if(e.type==ce.WHEEL&&(o=i.deltaY,qH&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=sk),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;const s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?"trackpad":"wheel");const a=r.getView();if(this.mode_==="trackpad"&&!(a.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;const l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,r),l),!1}handleWheelZoom_(e){const n=e.getView();n.getAnimating()&&n.cancelAnimations();let r=-lt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(r=r?r>0?1:-1:0),v_(n,r,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(e){this.useAnchor_=e,e||(this.lastAnchor_=null)}}const FX=DX;class $X extends Mu{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=$p),super(n),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=e.threshold!==void 0?e.threshold:.3,this.duration_=e.duration!==void 0?e.duration:250}handleDragEvent(e){let n=0;const r=this.targetPointers[0],i=this.targetPointers[1],o=Math.atan2(i.clientY-r.clientY,i.clientX-r.clientX);if(this.lastAngle_!==void 0){const l=o-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=l}this.lastAngle_=o;const s=e.map,a=s.getView();a.getConstraints().rotation!==u_&&(this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(__(this.targetPointers))),this.rotating_&&(s.render(),a.adjustRotationInternal(n,this.anchor_)))}handleUpEvent(e){return this.targetPointers.length<2?(e.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}const NX=$X;class zX extends Mu{constructor(e){e=e||{};const n=e;n.stopDown||(n.stopDown=$p),super(n),this.anchor_=null,this.duration_=e.duration!==void 0?e.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(e){let n=1;const r=this.targetPointers[0],i=this.targetPointers[1],o=r.clientX-i.clientX,s=r.clientY-i.clientY,a=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/a),this.lastDistance_=a;const l=e.map,c=l.getView();n!=1&&(this.lastScaleDelta_=n),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(__(this.targetPointers))),l.render(),c.adjustResolutionInternal(n,this.anchor_)}handleUpEvent(e){if(this.targetPointers.length<2){const r=e.map.getView(),i=this.lastScaleDelta_>1?1:-1;return r.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(e){if(this.targetPointers.length>=2){const n=e.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}return!1}}const BX=zX;function jX(t){t=t||{};const e=new li,n=new OX(-.005,.05,100);return(t.altShiftDragRotate!==void 0?t.altShiftDragRotate:!0)&&e.push(new SX),(t.doubleClickZoom!==void 0?t.doubleClickZoom:!0)&&e.push(new dX({delta:t.zoomDelta,duration:t.zoomDuration})),(t.dragPan!==void 0?t.dragPan:!0)&&e.push(new xX({onFocusOnly:t.onFocusOnly,kinetic:n})),(t.pinchRotate!==void 0?t.pinchRotate:!0)&&e.push(new NX),(t.pinchZoom!==void 0?t.pinchZoom:!0)&&e.push(new BX({duration:t.zoomDuration})),(t.keyboard!==void 0?t.keyboard:!0)&&(e.push(new kX),e.push(new MX({delta:t.zoomDelta,duration:t.zoomDuration}))),(t.mouseWheelZoom!==void 0?t.mouseWheelZoom:!0)&&e.push(new FX({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(t.shiftDragZoom!==void 0?t.shiftDragZoom:!0)&&e.push(new PX({duration:t.zoomDuration})),e}function LE(t){return t[0]>0&&t[1]>0}function UX(t,e,n){return n===void 0&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function pn(t,e){return Array.isArray(t)?t:(e===void 0?e=[t,t]:(e[0]=t,e[1]=t),e)}function $k(t){if(t instanceof p_){t.setMapInternal(null);return}t instanceof Hp&&t.getLayers().forEach($k)}function Nk(t,e){if(t instanceof p_){t.setMapInternal(e);return}if(t instanceof Hp){const n=t.getLayers().getArray();for(let r=0,i=n.length;rthis.updateSize()),this.controls=n.controls||aX(),this.interactions=n.interactions||jX({onFocusOnly:!0}),this.overlays_=n.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new QK(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(Ut.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(Ut.VIEW,this.handleViewChanged_),this.addChangeListener(Ut.SIZE,this.handleSizeChanged_),this.addChangeListener(Ut.TARGET,this.handleTargetChanged_),this.setProperties(n.values);const r=this;e.view&&!(e.view instanceof Dr)&&e.view.then(function(i){r.setView(new Dr(i))}),this.controls.addEventListener(Kn.ADD,i=>{i.element.setMap(this)}),this.controls.addEventListener(Kn.REMOVE,i=>{i.element.setMap(null)}),this.interactions.addEventListener(Kn.ADD,i=>{i.element.setMap(this)}),this.interactions.addEventListener(Kn.REMOVE,i=>{i.element.setMap(null)}),this.overlays_.addEventListener(Kn.ADD,i=>{this.addOverlayInternal_(i.element)}),this.overlays_.addEventListener(Kn.REMOVE,i=>{const o=i.element.getId();o!==void 0&&delete this.overlayIdIndex_[o.toString()],i.element.setMap(null)}),this.controls.forEach(i=>{i.setMap(this)}),this.interactions.forEach(i=>{i.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(e){this.getControls().push(e)}addInteraction(e){this.getInteractions().push(e)}addLayer(e){this.getLayerGroup().getLayers().push(e)}handleLayerAdd_(e){Nk(e.layer,this)}addOverlay(e){this.getOverlays().push(e)}addOverlayInternal_(e){const n=e.getId();n!==void 0&&(this.overlayIdIndex_[n.toString()]=e),e.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(e,n,r){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(e);r=r!==void 0?r:{};const o=r.hitTolerance!==void 0?r.hitTolerance:0,s=r.layerFilter!==void 0?r.layerFilter:vh,a=r.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,o,a,n,null,s,null)}getFeaturesAtPixel(e,n){const r=[];return this.forEachFeatureAtPixel(e,function(i){r.push(i)},n),r}getAllLayers(){const e=[];function n(r){r.forEach(function(i){i instanceof Hp?n(i.getLayers()):e.push(i)})}return n(this.getLayers()),e}hasFeatureAtPixel(e,n){if(!this.frameState_||!this.renderer_)return!1;const r=this.getCoordinateFromPixelInternal(e);n=n!==void 0?n:{};const i=n.layerFilter!==void 0?n.layerFilter:vh,o=n.hitTolerance!==void 0?n.hitTolerance:0,s=n.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,o,s,i,null)}getEventCoordinate(e){return this.getCoordinateFromPixel(this.getEventPixel(e))}getEventCoordinateInternal(e){return this.getCoordinateFromPixelInternal(this.getEventPixel(e))}getEventPixel(e){const r=this.viewport_.getBoundingClientRect(),i=this.getSize(),o=r.width/i[0],s=r.height/i[1],a="changedTouches"in e?e.changedTouches[0]:e;return[(a.clientX-r.left)/o,(a.clientY-r.top)/s]}getTarget(){return this.get(Ut.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(e){return Rh(this.getCoordinateFromPixelInternal(e),this.getView().getProjection())}getCoordinateFromPixelInternal(e){const n=this.frameState_;return n?Cn(n.pixelToCoordinateTransform,e.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(e){const n=this.overlayIdIndex_[e.toString()];return n!==void 0?n:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(Ut.LAYERGROUP)}setLayers(e){const n=this.getLayerGroup();if(e instanceof li){n.setLayers(e);return}const r=n.getLayers();r.clear(),r.extend(e)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const e=this.getLayerGroup().getLayerStatesArray();for(let n=0,r=e.length;n=0;o--){const s=i[o];if(s.getMap()!==this||!s.getActive()||!this.getTargetElement())continue;if(!s.handleEvent(e)||e.propagationStopped)break}}}handlePostRender(){const e=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){let i=this.maxTilesLoading_,o=i;if(e){const s=e.viewHints;if(s[Gn.ANIMATING]||s[Gn.INTERACTING]){const a=Date.now()-e.time>8;i=a?0:8,o=a?0:2}}n.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(e){const n=this.getLayerGroup();n&&this.handleLayerRemove_(new ji("removelayer",n)),this.set(Ut.LAYERGROUP,e)}setSize(e){this.set(Ut.SIZE,e)}setTarget(e){this.set(Ut.TARGET,e)}setView(e){if(!e||e instanceof Dr){this.set(Ut.VIEW,e);return}this.set(Ut.VIEW,new Dr);const n=this;e.then(function(r){n.setView(new Dr(r))})}updateSize(){const e=this.getTargetElement();let n;if(e){const i=getComputedStyle(e),o=e.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),s=e.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(o)&&!isNaN(s)&&(n=[o,s],!LE(n)&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&xk("No map visible because the map container's width or height are 0."))}const r=this.getSize();n&&(!r||!Fp(n,r))&&(this.setSize(n),this.updateViewportSize_(n))}updateViewportSize_(e){const n=this.getView();n&&n.setViewportSize(e)}};function GX(t){let e=null;t.keyboardEventTarget!==void 0&&(e=typeof t.keyboardEventTarget=="string"?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},r=t.layers&&typeof t.layers.getLayers=="function"?t.layers:new Hp({layers:t.layers});n[Ut.LAYERGROUP]=r,n[Ut.TARGET]=t.target,n[Ut.VIEW]=t.view instanceof Dr?t.view:new Dr;let i;t.controls!==void 0&&(Array.isArray(t.controls)?i=new li(t.controls.slice()):(Ne(typeof t.controls.getArray=="function","Expected `controls` to be an array or an `ol/Collection.js`"),i=t.controls));let o;t.interactions!==void 0&&(Array.isArray(t.interactions)?o=new li(t.interactions.slice()):(Ne(typeof t.interactions.getArray=="function","Expected `interactions` to be an array or an `ol/Collection.js`"),o=t.interactions));let s;return t.overlays!==void 0?Array.isArray(t.overlays)?s=new li(t.overlays.slice()):(Ne(typeof t.overlays.getArray=="function","Expected `overlays` to be an array or an `ol/Collection.js`"),s=t.overlays):s=new li,{controls:i,interactions:o,keyboardEventTarget:e,overlays:s,values:n}}const WX=VX;class zk{constructor(e,n,r,i){this.minX=e,this.maxX=n,this.minY=r,this.maxY=i}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,n){return this.minX<=e&&e<=this.maxX&&this.minY<=n&&n<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minXthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}}function Ds(t,e,n,r,i){return i!==void 0?(i.minX=t,i.maxX=e,i.minY=n,i.maxY=r,i):new zk(t,e,n,r)}const x_=zk;function kh(t,e,n,r){return r!==void 0?(r[0]=t,r[1]=e,r[2]=n,r):[t,e,n]}function Ya(t,e,n){return t+"/"+e+"/"+n}function Hi(t){return Ya(t[0],t[1],t[2])}function HX(t){return t.split("/").map(Number)}function KX(t){return(t[1]<n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return o?o.containsXY(r,i):!0}const Fs=[0,0,0],Mi=5;class YX{constructor(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,Ne(UH(this.resolutions_,(i,o)=>o-i,!0),"`resolutions` must be sorted in descending order");let n;if(!e.origins){for(let i=0,o=this.resolutions_.length-1;i{const s=new x_(Math.min(0,i[0]),Math.max(i[0]-1,-1),Math.min(0,i[1]),Math.max(i[1]-1,-1));if(r){const a=this.getTileRangeForExtentAndZ(r,o);s.minX=Math.max(a.minX,s.minX),s.maxX=Math.min(a.maxX,s.maxX),s.minY=Math.max(a.minY,s.minY),s.maxY=Math.min(a.maxY,s.maxY)}return s}):r&&this.calculateTileRanges_(r)}forEachTileCoord(e,n,r){const i=this.getTileRangeForExtentAndZ(e,n);for(let o=i.minX,s=i.maxX;o<=s;++o)for(let a=i.minY,l=i.maxY;a<=l;++a)r([n,o,a])}forEachTileCoordParentTileRange(e,n,r,i){let o,s,a,l=null,c=e[0]-1;for(this.zoomFactor_===2?(s=e[1],a=e[2]):l=this.getTileCoordExtent(e,i);c>=this.minZoom;){if(s!==void 0&&a!==void 0?(s=Math.floor(s/2),a=Math.floor(a/2),o=Ds(s,s,a,a,r)):o=this.getTileRangeForExtentAndZ(l,c,r),n(c,o))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,n,r){if(e[0]this.maxZoom||ne)throw new Error("Tile load sequence violation");this.state=e,this.changed()}load(){Ke()}getAlpha(e,n){if(!this.transition_)return 1;let r=this.transitionStarts_[e];if(!r)r=n,this.transitionStarts_[e]=r;else if(r===-1)return 1;const i=n-r+1e3/60;return i>=this.transition_?1:wk(i/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}}const b_=QX,$s={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function JX(t,e,n){const r=t;let i=!0,o=!1,s=!1;const a=[xh(r,ce.LOAD,function(){s=!0,o||e()})];return r.src&&t7?(o=!0,r.decode().then(function(){i&&e()}).catch(function(l){i&&(s?e():n())})):a.push(xh(r,ce.ERROR,n)),function(){i=!1,a.forEach(qe)}}class eY extends b_{constructor(e,n,r,i,o,s){super(e,n,s),this.crossOrigin_=i,this.src_=r,this.key=r,this.image_=new Image,i!==null&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=o}getImage(){return this.image_}setImage(e){this.image_=e,this.state=F.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=F.ERROR,this.unlistenImage_(),this.image_=tY(),this.changed()}handleImageLoad_(){const e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=F.LOADED:this.state=F.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==F.ERROR&&(this.state=F.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==F.IDLE&&(this.state=F.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=JX(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function tY(){const t=Si(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}const Xp=eY,Bk=.5,nY=10,OE=.25;class rY{constructor(e,n,r,i,o,s){this.sourceProj_=e,this.targetProj_=n;let a={};const l=Ch(this.targetProj_,this.sourceProj_);this.transformInv_=function(g){const _=g[0]+"/"+g[1];return a[_]||(a[_]=l(g)),a[_]},this.maxSourceExtent_=i,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&yt(i)>=yt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?yt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?yt(this.targetProj_.getExtent()):null;const c=_s(r),u=Gp(r),d=Vp(r),f=Up(r),h=this.transformInv_(c),p=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(f),y=nY+(s?Math.max(0,Math.ceil(Math.log2(nu(r)/(s*s*256*256)))):0);if(this.addQuad_(c,u,d,f,h,p,m,v,y),this.wrapsXInSource_){let g=1/0;this.triangles_.forEach(function(_,x,S){g=Math.min(g,_.source[0][0],_.source[1][0],_.source[2][0])}),this.triangles_.forEach(_=>{if(Math.max(_.source[0][0],_.source[1][0],_.source[2][0])-g>this.sourceWorldWidth_/2){const x=[[_.source[0][0],_.source[0][1]],[_.source[1][0],_.source[1][1]],[_.source[2][0],_.source[2][1]]];x[0][0]-g>this.sourceWorldWidth_/2&&(x[0][0]-=this.sourceWorldWidth_),x[1][0]-g>this.sourceWorldWidth_/2&&(x[1][0]-=this.sourceWorldWidth_),x[2][0]-g>this.sourceWorldWidth_/2&&(x[2][0]-=this.sourceWorldWidth_);const S=Math.min(x[0][0],x[1][0],x[2][0]);Math.max(x[0][0],x[1][0],x[2][0])-S.5&&d<1;let p=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const v=Oy([e,n,r,i]);p=yt(v)/this.targetWorldWidth_>OE||p}!h&&this.sourceProj_.isGlobal()&&d&&(p=d>OE||p)}if(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Pu(u,this.maxSourceExtent_))return;let m=0;if(!p&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(c>0)p=!0;else if(m=(!isFinite(o[0])||!isFinite(o[1])?8:0)+(!isFinite(s[0])||!isFinite(s[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),m!=1&&m!=2&&m!=4&&m!=8)return}if(c>0){if(!p){const v=[(e[0]+r[0])/2,(e[1]+r[1])/2],y=this.transformInv_(v);let g;h?g=(ka(o[0],f)+ka(a[0],f))/2-ka(y[0],f):g=(o[0]+a[0])/2-y[0];const _=(o[1]+a[1])/2-y[1];p=g*g+_*_>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-r[0])<=Math.abs(e[1]-r[1])){const v=[(n[0]+r[0])/2,(n[1]+r[1])/2],y=this.transformInv_(v),g=[(i[0]+e[0])/2,(i[1]+e[1])/2],_=this.transformInv_(g);this.addQuad_(e,n,v,g,o,s,y,_,c-1),this.addQuad_(g,v,r,i,_,y,a,l,c-1)}else{const v=[(e[0]+n[0])/2,(e[1]+n[1])/2],y=this.transformInv_(v),g=[(r[0]+i[0])/2,(r[1]+i[1])/2],_=this.transformInv_(g);this.addQuad_(e,v,g,i,o,y,_,l,c-1),this.addQuad_(v,n,r,g,y,s,a,_,c-1)}return}}if(h){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}m&11||this.addTriangle_(e,r,i,o,a,l),m&14||this.addTriangle_(e,r,n,o,a,s),m&&(m&13||this.addTriangle_(n,i,e,s,l,o),m&7||this.addTriangle_(n,i,r,s,l,a))}calculateSourceExtent(){const e=vs();return this.triangles_.forEach(function(n,r,i){const o=n.source;yf(e,o[0]),yf(e,o[1]),yf(e,o[2])}),e}getTriangles(){return this.triangles_}}const jk=rY;let Om;const hi=[];function DE(t,e,n,r,i){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(r,i),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,r)+1,Math.max(n,i)),t.restore()}function Dm(t,e){return Math.abs(t[e*4]-210)>2||Math.abs(t[e*4+3]-.75*255)>2}function iY(){if(Om===void 0){const t=Si(6,6,hi);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",DE(t,4,5,4,0),DE(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;Om=Dm(e,0)||Dm(e,4)||Dm(e,8),ou(t),hi.push(t.canvas)}return Om}function FE(t,e,n,r){const i=q7(n,e,t);let o=_E(e,r,n);const s=e.getMetersPerUnit();s!==void 0&&(o*=s);const a=t.getMetersPerUnit();a!==void 0&&(o/=a);const l=t.getExtent();if(!l||tu(l,i)){const c=_E(t,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}function Uk(t,e,n,r){const i=Xa(n);let o=FE(t,e,i,r);return(!isFinite(o)||o<=0)&&hk(n,function(s){return o=FE(t,e,s,r),isFinite(o)&&o>0}),o}function Vk(t,e,n,r,i,o,s,a,l,c,u,d,f){const h=Si(Math.round(n*t),Math.round(n*e),hi);if(d||(h.imageSmoothingEnabled=!1),l.length===0)return h.canvas;h.scale(n,n);function p(g){return Math.round(g*n)/n}h.globalCompositeOperation="lighter";const m=vs();l.forEach(function(g,_,x){d7(m,g.extent)});let v;if(!f||l.length!==1||c!==0){const g=yt(m),_=gr(m);v=Si(Math.round(n*g/r),Math.round(n*_/r),hi),d||(v.imageSmoothingEnabled=!1);const x=n/r;l.forEach(function(S,T,w){const E=S.extent[0]-m[0],I=-(S.extent[3]-m[3]),M=yt(S.extent),z=gr(S.extent);S.image.width>0&&S.image.height>0&&v.drawImage(S.image,c,c,S.image.width-2*c,S.image.height-2*c,E*x,I*x,M*x,z*x)})}const y=_s(s);return a.getTriangles().forEach(function(g,_,x){const S=g.source,T=g.target;let w=S[0][0],E=S[0][1],I=S[1][0],M=S[1][1],z=S[2][0],j=S[2][1];const Z=p((T[0][0]-y[0])/o),G=p(-(T[0][1]-y[1])/o),H=p((T[1][0]-y[0])/o),oe=p(-(T[1][1]-y[1])/o),ee=p((T[2][0]-y[0])/o),O=p(-(T[2][1]-y[1])/o),B=w,N=E;w=0,E=0,I-=B,M-=N,z-=B,j-=N;const X=[[I,M,0,0,H-Z],[z,j,0,0,ee-Z],[0,0,I,M,oe-G],[0,0,z,j,O-G]],te=x7(X);if(!te)return;if(h.save(),h.beginPath(),iY()||!d){h.moveTo(H,oe);const Y=4,ne=Z-H,de=G-oe;for(let he=0;he{n&&n.getState()==F.LOADED&&e.push({extent:this.sourceTileGrid_.getTileCoordExtent(n.tileCoord),image:n.getImage()})}),this.sourceTiles_.length=0,e.length===0)this.state=F.ERROR;else{const n=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(n),i=typeof r=="number"?r:r[0],o=typeof r=="number"?r:r[1],s=this.targetTileGrid_.getResolution(n),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Vk(i,o,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),s,l,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=F.LOADED}this.changed()}load(){if(this.state==F.IDLE){this.state=F.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(n=>{const r=n.getState();if(r==F.IDLE||r==F.LOADING){e++;const i=ke(n,ce.CHANGE,function(o){const s=n.getState();(s==F.LOADED||s==F.ERROR||s==F.EMPTY)&&(qe(i),e--,e===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(i)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(n,r,i){n.getState()==F.IDLE&&n.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(qe),this.sourcesListenerKeys_=null}release(){this.canvas_&&(ou(this.canvas_.getContext("2d")),hi.push(this.canvas_),this.canvas_=null),super.release()}}const Za=oY;class sY{constructor(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let n=this.oldest_;for(;n;)e(n.value_,n.key_,this),n=n.newer}get(e,n){const r=this.entries_[e];return Ne(r!==void 0,"Tried to get a value for a key that does not exist in the cache"),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_}remove(e){const n=this.entries_[e];return Ne(n!==void 0,"Tried to get a value for a key that does not exist in the cache"),n===this.newest_?(this.newest_=n.older,this.newest_&&(this.newest_.newer=null)):n===this.oldest_?(this.oldest_=n.newer,this.oldest_&&(this.oldest_.older=null)):(n.newer.older=n.older,n.older.newer=n.newer),delete this.entries_[e],--this.count_,n.value_}getCount(){return this.count_}getKeys(){const e=new Array(this.count_);let n=0,r;for(r=this.newest_;r;r=r.older)e[n++]=r.key_;return e}getValues(){const e=new Array(this.count_);let n=0,r;for(r=this.newest_;r;r=r.older)e[n++]=r.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){var n;return(n=this.entries_[e])==null?void 0:n.value_}pop(){const e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,n){this.get(e),this.entries_[e].value_=n}set(e,n){Ne(!(e in this.entries_),"Tried to set a value for a key that is used already");const r={key_:e,newer:null,older:this.newest_,value_:n};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[e]=r,++this.count_}setSize(e){this.highWaterMark=e}}const Gk=sY;class aY extends Gk{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(e){for(;this.canExpireCache()&&!(this.peekLast().getKey()in e);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;const e=this.peekFirstKey(),r=HX(e)[0];this.forEach(i=>{i.tileCoord[0]!==r&&(this.remove(Hi(i.tileCoord)),i.release())})}}const S_=aY,Ma={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};class lY extends Ti{constructor(e){super(),this.projection=bn(e.projection),this.attributions_=$E(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible!==void 0?e.attributionsCollapsible:!0,this.loading=!1,this.state_=e.state!==void 0?e.state:"ready",this.wrapX_=e.wrapX!==void 0?e.wrapX:!1,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;const n=this;this.viewPromise_=new Promise(function(r,i){n.viewResolver=r,n.viewRejector=i})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=$E(e),this.changed()}setState(e){this.state_=e,this.changed()}}function $E(t){return t?Array.isArray(t)?function(e){return t}:typeof t=="function"?t:function(e){return[t]}:null}const cY=lY;function w_(t){let e=t.getDefaultTileGrid();return e||(e=hY(t),t.setDefaultTileGrid(e)),e}function uY(t,e,n){const r=e[0],i=t.getTileCoordCenter(e),o=E_(n);if(!tu(o,i)){const s=yt(o),a=Math.ceil((o[0]-i[0])/s);return i[0]+=s*a,t.getTileCoordForCoordAndZ(i,r)}return e}function dY(t,e,n,r){r=r!==void 0?r:"top-left";const i=Wk(t,e,n);return new Kp({extent:t,origin:h7(t,r),resolutions:i,tileSize:n})}function fY(t){const e=t||{},n=e.extent||bn("EPSG:3857").getExtent(),r={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:Wk(n,e.maxZoom,e.tileSize,e.maxResolution)};return new Kp(r)}function Wk(t,e,n,r){e=e!==void 0?e:A7,n=pn(n!==void 0?n:r_);const i=gr(t),o=yt(t);r=r>0?r:Math.max(o/n[0],i/n[1]);const s=e+1,a=new Array(s);for(let l=0;lr.highWaterMark&&(r.highWaterMark=e)}useTile(e,n,r,i){}}class Hk extends So{constructor(e,n){super(e),this.tile=n}}const Kk=pY;function gY(t,e){const n=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){if(s)return t.replace(n,s[0].toString()).replace(r,s[1].toString()).replace(i,s[2].toString()).replace(o,function(){const c=s[0],u=e.getFullTileRange(c);if(!u)throw new Error("The {-y} placeholder requires a tile grid with extent");return(u.getHeight()-s[2]-1).toString()})}}function mY(t,e){const n=t.length,r=new Array(n);for(let i=0;ithis.getTileInternal(v,y,g,_,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return m.key=d,c?(m.interimTile=c,m.refreshInterimChain(),a.replace(u,m)):a.set(u,m),m}getTileInternal(e,n,r,i,o){let s=null;const a=Ya(e,n,r),l=this.getKey();if(!this.tileCache.containsKey(a))s=this.createTile_(e,n,r,i,o,l),this.tileCache.set(a,s);else if(s=this.tileCache.get(a),s.key!=l){const c=s;s=this.createTile_(e,n,r,i,o,l),c.getState()==F.IDLE?s.interimTile=c.interimTile:s.interimTile=c,s.refreshInterimChain(),this.tileCache.replace(a,s)}return s}setRenderReprojectionEdges(e){if(this.renderReprojectionEdges_!=e){this.renderReprojectionEdges_=e;for(const n in this.tileCacheForProjection)this.tileCacheForProjection[n].clear();this.changed()}}setTileGridForProjection(e,n){const r=bn(e);if(r){const i=Fe(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=n)}}clear(){super.clear();for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear()}}function _Y(t,e){t.getImage().src=e}const xY=vY;function NE(t,e){const n=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&n.push(i+"="+encodeURIComponent(e[i]))});const r=n.join("&");return t=t.replace(/[?&]$/,""),t+=t.includes("?")?"&":"?",t+r}class bY extends xY{constructor(e){const n=e.requestEncoding!==void 0?e.requestEncoding:"KVP",r=e.tileGrid;let i=e.urls;i===void 0&&e.url!==void 0&&(i=Xk(e.url)),super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:r,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,urls:i,wrapX:e.wrapX!==void 0?e.wrapX:!1,transition:e.transition,zDirection:e.zDirection}),this.version_=e.version!==void 0?e.version:"1.0.0",this.format_=e.format!==void 0?e.format:"image/jpeg",this.dimensions_=e.dimensions!==void 0?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=n,this.setKey(this.getKeyForDimensions_()),i&&i.length>0&&(this.tileUrlFunction=Vy(i.map(this.createFromWMTSTemplate.bind(this))))}setUrls(e){this.urls=e;const n=e.join(` +`);this.setTileUrlFunction(Vy(e.map(this.createFromWMTSTemplate.bind(this))),n)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const e=this.urls?this.urls.slice(0):[];for(const n in this.dimensions_)e.push(n+"-"+this.dimensions_[n]);return e.join("/")}updateDimensions(e){Object.assign(this.dimensions_,e),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(e){const n=this.requestEncoding_,r={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n=="KVP"&&Object.assign(r,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),e=n=="KVP"?NE(e,r):e.replace(/\{(\w+?)\}/g,function(s,a){return a.toLowerCase()in r?r[a.toLowerCase()]:s});const i=this.tileGrid,o=this.dimensions_;return function(s,a,l){if(!s)return;const c={TileMatrix:i.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};Object.assign(c,o);let u=e;return n=="KVP"?u=NE(u,c):u=u.replace(/\{(\w+?)\}/g,function(d,f){return c[f]}),u}}}const SY=bY,kd={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};class wY extends p_{constructor(e){e=e||{};const n=Object.assign({},e);delete n.preload,delete n.useInterimTilesOnError,super(n),this.on,this.once,this.un,this.setPreload(e.preload!==void 0?e.preload:0),this.setUseInterimTilesOnError(e.useInterimTilesOnError!==void 0?e.useInterimTilesOnError:!0)}getPreload(){return this.get(kd.PRELOAD)}setPreload(e){this.set(kd.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(kd.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(kd.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}}const Yk=wY;class EY extends ik{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.declutterExecutorGroup=null}getFeatures(e){return Ke()}getData(e){return null}prepareFrame(e){return Ke()}renderFrame(e,n){return Ke()}loadedTileCallback(e,n,r){e[n]||(e[n]={}),e[n][r.tileCoord.toString()]=r}createLoadedTileFinder(e,n,r){return(i,o)=>{const s=this.loadedTileCallback.bind(this,r,i);return e.forEachLoadedTile(n,i,o,s)}}forEachFeatureAtCoordinate(e,n,r,i,o){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){const n=e.target;(n.getState()===$s.LOADED||n.getState()===$s.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let n=e.getState();return n!=$s.LOADED&&n!=$s.ERROR&&e.addEventListener(ce.CHANGE,this.boundHandleImageChange_),n==$s.IDLE&&(e.load(),n=e.getState()),n==$s.LOADED}renderIfReadyAndVisible(){const e=this.getLayer();e&&e.getVisible()&&e.getSourceState()==="ready"&&e.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const Zk=EY;let Gs=null;function TY(){Gs=Si(1,1,void 0,{willReadFrequently:!0})}class CY extends Zk{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=Wr(),this.pixelTransform=Wr(),this.inversePixelTransform=Wr(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(e,n,r){Gs||TY(),Gs.clearRect(0,0,1,1);let i;try{Gs.drawImage(e,n,r,1,1,0,0,1,1),i=Gs.getImageData(0,0,1,1).data}catch{return Gs=null,null}return i}getBackground(e){let r=this.getLayer().getBackground();return typeof r=="function"&&(r=r(e.viewState.resolution)),r||void 0}useContainer(e,n,r){const i=this.getLayer().getClassName();let o,s;if(e&&e.className===i&&(!r||e&&e.style.backgroundColor&&Fp(Sh(e.style.backgroundColor),Sh(r)))){const a=e.firstElementChild;a instanceof HTMLCanvasElement&&(s=a.getContext("2d"))}if(s&&s.canvas.style.transform===n?(this.container=e,this.context=s,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){o=document.createElement("div"),o.className=i;let a=o.style;a.position="absolute",a.width="100%",a.height="100%",s=Si();const l=s.canvas;o.appendChild(l),a=l.style,a.position="absolute",a.left="0",a.transformOrigin="top left",this.container=o,this.context=s}!this.containerReused&&r&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=r)}clipUnrotated(e,n,r){const i=_s(r),o=Gp(r),s=Vp(r),a=Up(r);Cn(n.coordinateToPixelTransform,i),Cn(n.coordinateToPixelTransform,o),Cn(n.coordinateToPixelTransform,s),Cn(n.coordinateToPixelTransform,a);const l=this.inversePixelTransform;Cn(l,i),Cn(l,o),Cn(l,s),Cn(l,a),e.save(),e.beginPath(),e.moveTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.lineTo(Math.round(s[0]),Math.round(s[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.clip()}dispatchRenderEvent_(e,n,r){const i=this.getLayer();if(i.hasListener(e)){const o=new pc(e,this.inversePixelTransform,r,n);i.dispatchEvent(o)}}preRender(e,n){this.frameState=n,this.dispatchRenderEvent_(dn.PRERENDER,e,n)}postRender(e,n){this.dispatchRenderEvent_(dn.POSTRENDER,e,n)}getRenderTransform(e,n,r,i,o,s,a){const l=o/2,c=s/2,u=i/n,d=-u,f=-e[0]+a,h=-e[1];return ds(this.tempTransform,l,c,u,d,-r,f,h)}disposeInternal(){delete this.frameState,super.disposeInternal()}}const RY=CY;class PY extends RY{constructor(e){super(e),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=vs(),this.tmpTileRange_=new x_(0,0,0,0)}isDrawableTile(e){const n=this.getLayer(),r=e.getState(),i=n.getUseInterimTilesOnError();return r==F.LOADED||r==F.EMPTY||r==F.ERROR&&!i}getTile(e,n,r,i){const o=i.pixelRatio,s=i.viewState.projection,a=this.getLayer();let c=a.getSource().getTile(e,n,r,o,s);return c.getState()==F.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(c)||(c=c.getInterimTile()),c}getData(e){const n=this.frameState;if(!n)return null;const r=this.getLayer(),i=Cn(n.pixelToCoordinateTransform,e.slice()),o=r.getExtent();if(o&&!tu(o,i))return null;const s=n.pixelRatio,a=n.viewState.projection,l=n.viewState,c=r.getRenderSource(),u=c.getTileGridForProjection(l.projection),d=c.getTilePixelRatio(n.pixelRatio);for(let f=u.getZForResolution(l.resolution);f>=u.getMinZoom();--f){const h=u.getTileCoordForCoordAndZ(i,f),p=c.getTile(f,h[1],h[2],s,a);if(!(p instanceof Xp||p instanceof Za)||p instanceof Za&&p.getState()===F.EMPTY)return null;if(p.getState()!==F.LOADED)continue;const m=u.getOrigin(f),v=pn(u.getTileSize(f)),y=u.getResolution(f),g=Math.floor(d*((i[0]-m[0])/y-h[1]*v[0])),_=Math.floor(d*((m[1]-i[1])/y-h[2]*v[1])),x=Math.round(d*c.getGutterForProjection(l.projection));return this.getImageData(p.getImage(),g+x,_+x)}return null}loadedTileCallback(e,n,r){return this.isDrawableTile(r)?super.loadedTileCallback(e,n,r):!1}prepareFrame(e){return!!this.getLayer().getSource()}renderFrame(e,n){const r=e.layerStatesArray[e.layerIndex],i=e.viewState,o=i.projection,s=i.resolution,a=i.center,l=i.rotation,c=e.pixelRatio,u=this.getLayer(),d=u.getSource(),f=d.getRevision(),h=d.getTileGridForProjection(o),p=h.getZForResolution(s,d.zDirection),m=h.getResolution(p);let v=e.extent;const y=e.viewState.resolution,g=d.getTilePixelRatio(c),_=Math.round(yt(v)/y*c),x=Math.round(gr(v)/y*c),S=r.extent&&Zi(r.extent);S&&(v=Zn(v,Zi(r.extent)));const T=m*_/2/g,w=m*x/2/g,E=[a[0]-T,a[1]-w,a[0]+T,a[1]+w],I=h.getTileRangeForExtentAndZ(v,p),M={};M[p]={};const z=this.createLoadedTileFinder(d,o,M),j=this.tmpExtent,Z=this.tmpTileRange_;this.newTiles_=!1;const G=l?$y(i.center,y,l,e.size):void 0;for(let q=I.minX;q<=I.maxX;++q)for(let Y=I.minY;Y<=I.maxY;++Y){if(l&&!h.tileCoordIntersectsViewport([p,q,Y],G))continue;const ne=this.getTile(p,q,Y,e);if(this.isDrawableTile(ne)){const et=Fe(this);if(ne.getState()==F.LOADED){M[p][ne.tileCoord.toString()]=ne;let ut=ne.inTransition(et);ut&&r.opacity!==1&&(ne.endTransition(et),ut=!1),!this.newTiles_&&(ut||!this.renderedTiles.includes(ne))&&(this.newTiles_=!0)}if(ne.getAlpha(et,e.time)===1)continue}const de=h.getTileCoordChildTileRange(ne.tileCoord,Z,j);let he=!1;de&&(he=z(p+1,de)),he||h.forEachTileCoordParentTileRange(ne.tileCoord,z,Z,j)}const H=m/s*c/g;ds(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/c,1/c,l,-_/2,-x/2);const oe=s7(this.pixelTransform);this.useContainer(n,oe,this.getBackground(e));const ee=this.context,O=ee.canvas;ck(this.inversePixelTransform,this.pixelTransform),ds(this.tempTransform,_/2,x/2,H,H,0,-_/2,-x/2),O.width!=_||O.height!=x?(O.width=_,O.height=x):this.containerReused||ee.clearRect(0,0,_,x),S&&this.clipUnrotated(ee,e,S),d.getInterpolate()||(ee.imageSmoothingEnabled=!1),this.preRender(ee,e),this.renderedTiles.length=0;let B=Object.keys(M).map(Number);B.sort(Dp);let N,X,te;r.opacity===1&&(!this.containerReused||d.getOpaque(e.viewState.projection))?B=B.reverse():(N=[],X=[]);for(let q=B.length-1;q>=0;--q){const Y=B[q],ne=d.getTilePixelSize(Y,c,o),he=h.getResolution(Y)/m,et=ne[0]*he*H,ut=ne[1]*he*H,tt=h.getTileCoordForCoordAndZ(_s(E),Y),xt=h.getTileCoordExtent(tt),Yt=Cn(this.tempTransform,[g*(xt[0]-E[0])/m,g*(E[3]-xt[3])/m]),yr=g*d.getGutterForProjection(o),an=M[Y];for(const ie in an){const Ge=an[ie],bt=Ge.tileCoord,Sn=tt[1]-bt[1],Ss=Math.round(Yt[0]-(Sn-1)*et),vr=tt[2]-bt[2],Ci=Math.round(Yt[1]-(vr-1)*ut),Rt=Math.round(Yt[0]-Sn*et),nt=Math.round(Yt[1]-vr*ut),er=Ss-Rt,_r=Ci-nt,ws=p===Y,Es=ws&&Ge.getAlpha(Fe(this),e.time)!==1;let xr=!1;if(!Es)if(N){te=[Rt,nt,Rt+er,nt,Rt+er,nt+_r,Rt,nt+_r];for(let Yr=0,Ts=N.length;Yr{let i,o;switch(n){case 1:i=OY,o=FY;break;case-1:i=DY,o=$Y;break;default:i=r.maxExtent,o=[i[0],i[3]];break}const s=t.resolutions.length,a=e&&e.length;if(!e||a!==s||n)return{origin:o,extent:i};const l=s-1,c=t.resolutions[l],u=t.tileSize[0]*c,d=t.tileSize[1]*c,{minTileCol:f,maxTileRow:h,maxTileCol:p,minTileRow:m}=e[l],v=i[0]+f*u,y=i[3]-(h+1)*d,g=i[0]+(p+1)*u,_=i[3]-m*d;return{origin:o,extent:[v,y,g,_]}},jY=()=>{const e=new Date;return e.setTime(e.getTime()-18144e5),e.toISOString()};jY();const Fm=t=>{const{id:e,format:n,matrixIds:r,matrixSet:i=t.projections.geographic.matrixSet,matrixSetLimits:o,style:s}=t,a=MY["GIBS:geographic"],l=a.matrixSets[i],{tileMatrices:c,resolutions:u,tileSize:d}=l,f="Fri Nov 24 2023 19:00:00 GMT-0500 (Eastern Standard Time)",h=new Date(f),p=0,m=LY.geographic,{origin:v,extent:y}=BY(l,o,p,m),g=c?c.map(({matrixWidth:I,matrixHeight:M})=>[I,M]):[],_=`?TIME=${NY(zY(h))}`,x=t.sourceOverride||a.url,S={origin:v,extent:y,sizes:g,resolutions:u,matrixIds:r||u.map((I,M)=>M),tileSize:d[0]},T={url:x+_,layer:e,cacheSize:4096,crossOrigin:"anonymous",format:n,transition:0,matrixSet:l.id,tileGrid:new qX(S),wrapX:!1,style:typeof s>"u"?"default":s},w=new SY(T);return new IY({extent:y,preload:0,source:w,className:e,id:e})};function Ih(t){return t instanceof Image||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageBitmap?t:null}function Gy(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Float32Array||t instanceof DataView?t:null}let Ns=null;function UY(t){Ns||(Ns=Si(t.width,t.height,void 0,{willReadFrequently:!0}));const e=Ns.canvas,n=t.width;e.width!==n&&(e.width=n);const r=t.height;return e.height!==r&&(e.height=r),Ns.clearRect(0,0,n,r),Ns.drawImage(t,0,0),Ns.getImageData(0,0,n,r).data}const VY=[256,256];let GY=class extends b_{constructor(e){const n=F.IDLE;super(e.tileCoord,n,{transition:e.transition,interpolate:e.interpolate}),this.loader_=e.loader,this.data_=null,this.error_=null,this.size_=e.size||null}getSize(){if(this.size_)return this.size_;const e=Ih(this.data_);return e?[e.width,e.height]:VY}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==F.IDLE&&this.state!==F.ERROR)return;this.state=F.LOADING,this.changed();const e=this;this.loader_().then(function(n){e.data_=n,e.state=F.LOADED,e.changed()}).catch(function(n){e.error_=n,e.state=F.ERROR,e.changed()})}};const C_=GY;class WY extends C_{constructor(e){super({tileCoord:e.tileCoord,loader:()=>Promise.resolve(new Uint8Array(4)),interpolate:e.interpolate,transition:e.transition}),this.pixelRatio_=e.pixelRatio,this.gutter_=e.gutter,this.reprojData_=null,this.reprojError_=null,this.reprojSize_=void 0,this.sourceTileGrid_=e.sourceTileGrid,this.targetTileGrid_=e.targetTileGrid,this.wrappedTileCoord_=e.wrappedTileCoord||e.tileCoord,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const n=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_),r=this.targetTileGrid_.getExtent();let i=this.sourceTileGrid_.getExtent();const o=r?Zn(n,r):n;if(nu(o)===0){this.state=F.EMPTY;return}const s=e.sourceProj,a=s.getExtent();a&&(i?i=Zn(i,a):i=a);const l=this.targetTileGrid_.getResolution(this.wrappedTileCoord_[0]),c=e.targetProj,u=Uk(s,c,o,l);if(!isFinite(u)||u<=0){this.state=F.EMPTY;return}const d=e.errorThreshold!==void 0?e.errorThreshold:Bk;if(this.triangulation_=new jk(s,c,o,i,u*d,l),this.triangulation_.getTriangles().length===0){this.state=F.EMPTY;return}this.sourceZ_=this.sourceTileGrid_.getZForResolution(u);let f=this.triangulation_.calculateSourceExtent();if(i&&(s.canWrapX()?(f[1]=lt(f[1],i[1],i[3]),f[3]=lt(f[3],i[1],i[3])):f=Zn(f,i)),!nu(f))this.state=F.EMPTY;else{const h=this.sourceTileGrid_.getTileRangeForExtentAndZ(f,this.sourceZ_),p=e.getTileFunction;for(let m=h.minX;m<=h.maxX;m++)for(let v=h.minY;v<=h.maxY;v++){const y=p(this.sourceZ_,m,v,this.pixelRatio_);y&&this.sourceTiles_.push(y)}this.sourceTiles_.length===0&&(this.state=F.EMPTY)}}getSize(){return this.reprojSize_}getData(){return this.reprojData_}getError(){return this.reprojError_}reproject_(){const e=[];if(this.sourceTiles_.forEach(n=>{if(!n||n.getState()!==F.LOADED)return;const r=n.getSize(),i=this.gutter_;let o;const s=Gy(n.getData());s?o=s:o=UY(Ih(n.getData()));const a=[r[0]+2*i,r[1]+2*i],l=o instanceof Float32Array,c=a[0]*a[1],u=l?Float32Array:Uint8Array,d=new u(o.buffer),f=u.BYTES_PER_ELEMENT,h=f*d.length/c,p=d.byteLength/a[1],m=Math.floor(p/f/a[0]),v=c*m;let y=d;if(d.length!==v){y=new u(v);let g=0,_=0;const x=a[0]*m;for(let S=0;S=0;--h){const p=[];for(let x=0,S=e.length;x{const r=n.getState();if(r!==F.IDLE&&r!==F.LOADING)return;e++;const i=ke(n,ce.CHANGE,function(){const o=n.getState();(o==F.LOADED||o==F.ERROR||o==F.EMPTY)&&(qe(i),e--,e===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(i)}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(n){n.getState()==F.IDLE&&n.load()})}unlistenSources_(){this.sourcesListenerKeys_.forEach(qe),this.sourcesListenerKeys_=null}}const R_=WY;class HY extends Kk{constructor(e){const n=e.projection===void 0?"EPSG:3857":e.projection;let r=e.tileGrid;r===void 0&&n&&(r=fY({extent:E_(n),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize})),super({cacheSize:.1,attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:n,tileGrid:r,opaque:e.opaque,state:e.state,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate}),this.gutter_=e.gutter!==void 0?e.gutter:0,this.tileSize_=e.tileSize?pn(e.tileSize):null,this.tileSizes_=null,this.tileLoadingKeys_={},this.loader_=e.loader,this.handleTileChange_=this.handleTileChange_.bind(this),this.bandCount=e.bandCount===void 0?4:e.bandCount,this.tileGridForProjection_={},this.tileCacheForProjection_={}}setTileSizes(e){this.tileSizes_=e}getTileSize(e){if(this.tileSizes_)return this.tileSizes_[e];if(this.tileSize_)return this.tileSize_;const n=this.getTileGrid();return n?pn(n.getTileSize(e)):[256,256]}getGutterForProjection(e){const n=this.getProjection();return!n||Or(n,e)?this.gutter_:0}setLoader(e){this.loader_=e}getReprojTile_(e,n,r,i,o){const s=this.getTileCacheForProjection(i),a=Ya(e,n,r);if(s.containsKey(a)){const v=s.get(a);if(v&&v.key==this.getKey())return v}const l=this.getTileGrid(),c=Math.max.apply(null,l.getResolutions().map((v,y)=>{const g=pn(l.getTileSize(y)),_=this.getTileSize(y);return Math.max(_[0]/g[0],_[1]/g[1])})),u=this.getTileGridForProjection(o),d=this.getTileGridForProjection(i),f=[e,n,r],h=this.getTileCoordForTileUrlFunction(f,i),p=Object.assign({sourceProj:o,sourceTileGrid:u,targetProj:i,targetTileGrid:d,tileCoord:f,wrappedTileCoord:h,pixelRatio:c,gutter:this.getGutterForProjection(o),getTileFunction:(v,y,g,_)=>this.getTile(v,y,g,_,o)},this.tileOptions),m=new R_(p);return m.key=this.getKey(),m}getTile(e,n,r,i,o){const s=this.getProjection();if(s&&o&&!Or(s,o))return this.getReprojTile_(e,n,r,o,s);const a=this.getTileSize(e),l=Ya(e,n,r);if(this.tileCache.containsKey(l))return this.tileCache.get(l);const c=this.loader_;function u(){return GH(function(){return c(e,n,r)})}const d=Object.assign({tileCoord:[e,n,r],loader:u,size:a},this.tileOptions),f=new C_(d);return f.key=this.getKey(),f.addEventListener(ce.CHANGE,this.handleTileChange_),this.tileCache.set(l,f),f}handleTileChange_(e){const n=e.target,r=Fe(n),i=n.getState();let o;i==F.LOADING?(this.tileLoadingKeys_[r]=!0,o=Ma.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],o=i==F.ERROR?Ma.TILELOADERROR:i==F.LOADED?Ma.TILELOADEND:void 0),o&&this.dispatchEvent(new Hk(o,n))}getTileGridForProjection(e){const n=this.getProjection();if(this.tileGrid&&(!n||Or(n,e)))return this.tileGrid;const r=Fe(e);return r in this.tileGridForProjection_||(this.tileGridForProjection_[r]=w_(e)),this.tileGridForProjection_[r]}setTileGridForProjection(e,n){const r=bn(e);if(r){const i=Fe(r);i in this.tileGridForProjection_||(this.tileGridForProjection_[i]=n)}}getTileCacheForProjection(e){const n=this.getProjection();if(!n||Or(n,e))return this.tileCache;const r=Fe(e);return r in this.tileCacheForProjection_||(this.tileCacheForProjection_[r]=new S_(.1)),this.tileCacheForProjection_[r]}expireCache(e,n){const r=this.getTileCacheForProjection(e);this.tileCache.expireCache(this.tileCache==r?n:{});for(const i in this.tileCacheForProjection_){const o=this.tileCacheForProjection_[i];o.expireCache(o==r?n:{})}}clear(){super.clear();for(const e in this.tileCacheForProjection_)this.tileCacheForProjection_[e].clear()}}const KY=HY;function $t(t){return(e,...n)=>XY(t,e,n)}function cl(t,e){return $t(qk(t,e).get)}const{apply:XY,construct:Rne,defineProperty:Pne,get:Ane,getOwnPropertyDescriptor:qk,getPrototypeOf:P_,has:kne,ownKeys:YY,set:Ine,setPrototypeOf:Mne}=Reflect,{iterator:Lu,species:Lne,toStringTag:ZY,for:One}=Symbol,qY=Object,{create:A_,defineProperty:QY,freeze:Dne,is:Fne}=qY,JY=Array,eZ=JY.prototype,Qk=eZ[Lu],tZ=$t(Qk),Jk=ArrayBuffer,nZ=Jk.prototype;cl(nZ,"byteLength");const zE=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;zE&&cl(zE.prototype,"byteLength");const eI=P_(Uint8Array);eI.from;const sn=eI.prototype;sn[Lu];$t(sn.keys);$t(sn.values);$t(sn.entries);$t(sn.set);$t(sn.reverse);$t(sn.fill);$t(sn.copyWithin);$t(sn.sort);$t(sn.slice);$t(sn.subarray);cl(sn,"buffer");cl(sn,"byteOffset");cl(sn,"length");cl(sn,ZY);const rZ=Uint8Array,tI=Uint16Array,k_=Uint32Array,iZ=Float32Array,su=P_([][Lu]()),nI=$t(su.next),oZ=$t(function*(){}().next),sZ=P_(su),aZ=DataView.prototype,lZ=$t(aZ.getUint16),I_=WeakMap,rI=I_.prototype,iI=$t(rI.get),cZ=$t(rI.set),oI=new I_,uZ=A_(null,{next:{value:function(){const e=iI(oI,this);return nI(e)}},[Lu]:{value:function(){return this}}});function dZ(t){if(t[Lu]===Qk&&su.next===nI)return t;const e=A_(uZ);return cZ(oI,e,tZ(t)),e}const fZ=new I_,hZ=A_(sZ,{next:{value:function(){const e=iI(fZ,this);return oZ(e)},writable:!0,configurable:!0}});for(const t of YY(su))t!=="next"&&QY(hZ,t,qk(su,t));const sI=new Jk(4),pZ=new iZ(sI),gZ=new k_(sI),wr=new tI(512),Er=new rZ(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(wr[t]=0,wr[t|256]=32768,Er[t]=24,Er[t|256]=24):e<-14?(wr[t]=1024>>-e-14,wr[t|256]=1024>>-e-14|32768,Er[t]=-e-1,Er[t|256]=-e-1):e<=15?(wr[t]=e+15<<10,wr[t|256]=e+15<<10|32768,Er[t]=13,Er[t|256]=13):e<128?(wr[t]=31744,wr[t|256]=64512,Er[t]=24,Er[t|256]=24):(wr[t]=31744,wr[t|256]=64512,Er[t]=13,Er[t|256]=13)}const M_=new k_(2048);for(let t=1;t<1024;++t){let e=t<<13,n=0;for(;!(e&8388608);)e<<=1,n-=8388608;e&=-8388609,n+=947912704,M_[t]=e|n}for(let t=1024;t<2048;++t)M_[t]=939524096+(t-1024<<13);const ul=new k_(64);for(let t=1;t<31;++t)ul[t]=t<<23;ul[31]=1199570944;ul[32]=2147483648;for(let t=33;t<63;++t)ul[t]=2147483648+(t-32<<23);ul[63]=3347054592;const aI=new tI(64);for(let t=1;t<64;++t)t!==32&&(aI[t]=1024);function mZ(t){const e=t>>10;return gZ[0]=M_[aI[e]+(t&1023)]+ul[e],pZ[0]}function lI(t,e,...n){return mZ(lZ(t,e,...dZ(n)))}var L_={exports:{}};function cI(t,e,n){const r=n&&n.debug||!1;r&&console.log("[xml-utils] getting "+e+" in "+t);const i=typeof t=="object"?t.outer:t,o=i.slice(0,i.indexOf(">")+1),s=['"',"'"];for(let a=0;a/]`,o);if(r&&console.log("[xml-utils] start:",s),s===-1)return;const a=t.slice(s+e.length);let l=Nm(a,"^[^<]*[ /]>",0);const c=l!==-1&&a[l-1]==="/";if(r&&console.log("[xml-utils] selfClosing:",c),c===!1)if(i){let h=0,p=1,m=0;for(;(l=Nm(a,"[ /]"+e+">",h))!==-1;){const v=a.substring(h,l+1);if(p+=BE(v,"<"+e+`[ + >]`),m+=BE(v,""),m>=p)break;h=l}}else l=Nm(a,"[ /]"+e+">",0);const u=s+e.length+l+1;if(r&&console.log("[xml-utils] end:",u),u===-1)return;const d=t.slice(s,u);let f;return c?f=null:f=d.slice(d.indexOf(">")+1,d.lastIndexOf("<")),{inner:f,outer:d,start:s,end:u}}D_.exports=hI;D_.exports.default=hI;var SZ=D_.exports;const wZ=SZ;function pI(t,e,n){const r=[],i=n&&n.debug||!1,o=n&&typeof n.nested=="boolean"?n.nested:!0;let s=n&&n.startIndex||0,a;for(;a=wZ(t,e,{debug:i,startIndex:s});)o?s=a.start+1+e.length:s=a.end,r.push(a);return i&&console.log("findTagsByName found",r.length,"tags"),r}O_.exports=pI;O_.exports.default=pI;var EZ=O_.exports;const TZ=fs(EZ),gc={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},Cr={};for(const t in gc)gc.hasOwnProperty(t)&&(Cr[gc[t]]=parseInt(t,10));const CZ=[Cr.BitsPerSample,Cr.ExtraSamples,Cr.SampleFormat,Cr.StripByteCounts,Cr.StripOffsets,Cr.StripRowCounts,Cr.TileByteCounts,Cr.TileOffsets,Cr.SubIFDs],zm={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ue={};for(const t in zm)zm.hasOwnProperty(t)&&(ue[zm[t]]=parseInt(t,10));const ln={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},RZ={Unspecified:0,Assocalpha:1,Unassalpha:2},$ne={Version:0,AddCompression:1},Nne={None:0,Deflate:1,Zstandard:2},PZ={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"};function AZ(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3);let o;for(let s=0,a=0;s>24,l=t[i+2]<<24>>24;let c=(s+16)/116,u=a/500+c,d=c-l/200,f,h,p;u=OZ*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),c=DZ*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),d=FZ*(d*d*d>.008856?d*d*d:(d-16/116)/7.787),f=u*3.2406+c*-1.5372+d*-.4986,h=u*-.9689+c*1.8758+d*.0415,p=u*.0557+c*-.204+d*1.057,f=f>.0031308?1.055*f**(1/2.4)-.055:12.92*f,h=h>.0031308?1.055*h**(1/2.4)-.055:12.92*h,p=p>.0031308?1.055*p**(1/2.4)-.055:12.92*p,r[o]=Math.max(0,Math.min(1,f))*255,r[o+1]=Math.max(0,Math.min(1,h))*255,r[o+2]=Math.max(0,Math.min(1,p))*255}return r}const NZ="modulepreload",zZ=function(t){return"/contrast-stretch-demo/"+t},jE={},wo=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link");i=Promise.all(n.map(s=>{if(s=zZ(s),s in jE)return;jE[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const f=o[d];if(f.href===s&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":NZ,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},gI=new Map;function Eo(t,e){Array.isArray(t)||(t=[t]),t.forEach(n=>gI.set(n,e))}async function mI(t){const e=gI.get(t.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${t.Compression}`);const n=await e();return new n(t)}Eo([void 0,1],()=>wo(()=>import("./raw-FjKAlyiw.js"),__vite__mapDeps([0,1])).then(t=>t.default));Eo(5,()=>wo(()=>import("./lzw-NamZKYVt.js"),__vite__mapDeps([2,1])).then(t=>t.default));Eo(6,()=>{throw new Error("old style JPEG compression is not supported.")});Eo(7,()=>wo(()=>import("./jpeg-rjh0axXg.js"),__vite__mapDeps([3,1])).then(t=>t.default));Eo([8,32946],()=>wo(()=>import("./deflate-EZWV29Lt.js"),__vite__mapDeps([4,5,1])).then(t=>t.default));Eo(32773,()=>wo(()=>import("./packbits-65YHJGuf.js"),__vite__mapDeps([6,1])).then(t=>t.default));Eo(34887,()=>wo(()=>import("./lerc-gwbOzx28.js"),__vite__mapDeps([7,5,1])).then(async t=>(await t.zstd.init(),t)).then(t=>t.default));Eo(50001,()=>wo(()=>import("./webimage-NiQ987z3.js"),__vite__mapDeps([8,1])).then(t=>t.default));function Yp(t,e,n,r=1){return new(Object.getPrototypeOf(t)).constructor(e*n*r)}function BZ(t,e,n,r,i){const o=e/r,s=n/i;return t.map(a=>{const l=Yp(a,r,i);for(let c=0;c{const l=Yp(a,r,i);for(let c=0;c>8-i-T&d;else if(T+i<=16)u[x]=a.getUint16(S)>>16-i-T&d;else if(T+i<=24){const w=a.getUint16(S)<<8|a.getUint8(S+2);u[x]=w>>24-i-T&d}else u[x]=a.getUint32(S)>>32-i-T&d}}}}return u.buffer}class YZ{constructor(e,n,r,i,o,s){this.fileDirectory=e,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=o?{}:null,this.isTiled=!e.StripOffsets;const a=e.PlanarConfiguration;if(this.planarConfiguration=typeof a>"u"?1:a,this.planarConfiguration!==1&&this.planarConfiguration!==2)throw new Error("Invalid planar configuration.");this.source=s}getFileDirectory(){return this.fileDirectory}getGeoKeys(){return this.geoKeys}getWidth(){return this.fileDirectory.ImageWidth}getHeight(){return this.fileDirectory.ImageLength}getSamplesPerPixel(){return typeof this.fileDirectory.SamplesPerPixel<"u"?this.fileDirectory.SamplesPerPixel:1}getTileWidth(){return this.isTiled?this.fileDirectory.TileWidth:this.getWidth()}getTileHeight(){return this.isTiled?this.fileDirectory.TileLength:typeof this.fileDirectory.RowsPerStrip<"u"?Math.min(this.fileDirectory.RowsPerStrip,this.getHeight()):this.getHeight()}getBlockWidth(){return this.getTileWidth()}getBlockHeight(e){return this.isTiled||(e+1)*this.getTileHeight()<=this.getHeight()?this.getTileHeight():this.getHeight()-e*this.getTileHeight()}getBytesPerPixel(){let e=0;for(let n=0;n=this.fileDirectory.BitsPerSample.length)throw new RangeError(`Sample index ${e} is out of range.`);return Math.ceil(this.fileDirectory.BitsPerSample[e]/8)}getReaderForSample(e){const n=this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1,r=this.fileDirectory.BitsPerSample[e];switch(n){case 1:if(r<=8)return DataView.prototype.getUint8;if(r<=16)return DataView.prototype.getUint16;if(r<=32)return DataView.prototype.getUint32;break;case 2:if(r<=8)return DataView.prototype.getInt8;if(r<=16)return DataView.prototype.getInt16;if(r<=32)return DataView.prototype.getInt32;break;case 3:switch(r){case 16:return function(i,o){return lI(this,i,o)};case 32:return DataView.prototype.getFloat32;case 64:return DataView.prototype.getFloat64}break}throw Error("Unsupported data format/bitsPerSample")}getSampleFormat(e=0){return this.fileDirectory.SampleFormat?this.fileDirectory.SampleFormat[e]:1}getBitsPerSample(e=0){return this.fileDirectory.BitsPerSample[e]}getArrayForSample(e,n){const r=this.getSampleFormat(e),i=this.getBitsPerSample(e);return Wy(r,i,n)}async getTileOrStrip(e,n,r,i,o){const s=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:c}=this;this.planarConfiguration===1?l=n*s+e:this.planarConfiguration===2&&(l=r*s*a+n*s+e);let u,d;this.isTiled?(u=this.fileDirectory.TileOffsets[l],d=this.fileDirectory.TileByteCounts[l]):(u=this.fileDirectory.StripOffsets[l],d=this.fileDirectory.StripByteCounts[l]);const f=(await this.source.fetch([{offset:u,length:d}],o))[0];let h;return c===null||!c[l]?(h=(async()=>{let p=await i.decode(this.fileDirectory,f);const m=this.getSampleFormat(),v=this.getBitsPerSample();return KZ(m,v)&&(p=XZ(p,m,this.planarConfiguration,this.getSamplesPerPixel(),v,this.getTileWidth(),this.getBlockHeight(n))),p})(),c!==null&&(c[l]=h)):h=c[l],{x:e,y:n,sample:r,data:await h}}async _readRaster(e,n,r,i,o,s,a,l,c){const u=this.getTileWidth(),d=this.getTileHeight(),f=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(e[0]/u),0),m=Math.min(Math.ceil(e[2]/u),Math.ceil(f/u)),v=Math.max(Math.floor(e[1]/d),0),y=Math.min(Math.ceil(e[3]/d),Math.ceil(h/d)),g=e[2]-e[0];let _=this.getBytesPerPixel();const x=[],S=[];for(let E=0;E{const oe=H.data,ee=new DataView(oe),O=this.getBlockHeight(H.y),B=H.y*d,N=H.x*u,X=B+O,te=(H.x+1)*u,q=S[j],Y=Math.min(O,O-(X-e[3]),h-B),ne=Math.min(u,u-(te-e[2]),f-N);for(let de=Math.max(0,e[1]-B);deu[2]||u[1]>u[3])throw new Error("Invalid subsets");const d=u[2]-u[0],f=u[3]-u[1],h=d*f,p=this.getSamplesPerPixel();if(!n||!n.length)for(let g=0;g=p)return Promise.reject(new RangeError(`Invalid sample index '${n[g]}'.`));let m;if(r){const g=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,_=Math.max.apply(null,this.fileDirectory.BitsPerSample);m=Wy(g,_,h*n.length),l&&m.fill(l)}else{m=[];for(let g=0;gc[2]||c[1]>c[3])throw new Error("Invalid subsets");const u=this.fileDirectory.PhotometricInterpretation;if(u===ln.RGB){let y=[0,1,2];if(this.fileDirectory.ExtraSamples!==RZ.Unspecified&&a){y=[];for(let g=0;g$m(o,"sample")===void 0):i=i.filter(o=>Number($m(o,"sample"))===e);for(let o=0;o[s+r*m+i*v,u+a*m+l*v]),h=f.map(m=>m[0]),p=f.map(m=>m[1]);return[Math.min(...h),Math.min(...p),Math.max(...h),Math.max(...p)]}else{const r=this.getOrigin(),i=this.getResolution(),o=r[0],s=r[1],a=o+i[0]*this.getWidth(),l=s+i[1]*this.getHeight();return[Math.min(o,a),Math.min(s,l),Math.max(o,a),Math.max(s,l)]}}}const yI=YZ;class ZZ{constructor(e){this._dataView=new DataView(e)}get buffer(){return this._dataView.buffer}getUint64(e,n){const r=this.getUint32(e,n),i=this.getUint32(e+4,n);let o;if(n){if(o=r+2**32*i,!Number.isSafeInteger(o))throw new Error(`${o} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return o}if(o=2**32*r+i,!Number.isSafeInteger(o))throw new Error(`${o} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return o}getInt64(e,n){let r=0;const i=(this._dataView.getUint8(e+(n?7:0))&128)>0;let o=!0;for(let s=0;s<8;s++){let a=this._dataView.getUint8(e+(n?s:7-s));i&&(o?a!==0&&(a=~(a-1)&255,o=!1):a=~a&255),r+=a*256**s}return i&&(r=-r),r}getUint8(e,n){return this._dataView.getUint8(e,n)}getInt8(e,n){return this._dataView.getInt8(e,n)}getUint16(e,n){return this._dataView.getUint16(e,n)}getInt16(e,n){return this._dataView.getInt16(e,n)}getUint32(e,n){return this._dataView.getUint32(e,n)}getInt32(e,n){return this._dataView.getInt32(e,n)}getFloat16(e,n){return lI(this._dataView,e,n)}getFloat32(e,n){return this._dataView.getFloat32(e,n)}getFloat64(e,n){return this._dataView.getFloat64(e,n)}}class qZ{constructor(e,n,r,i){this._dataView=new DataView(e),this._sliceOffset=n,this._littleEndian=r,this._bigTiff=i}get sliceOffset(){return this._sliceOffset}get sliceTop(){return this._sliceOffset+this.buffer.byteLength}get littleEndian(){return this._littleEndian}get bigTiff(){return this._bigTiff}get buffer(){return this._dataView.buffer}covers(e,n){return this.sliceOffset<=e&&this.sliceTop>=e+n}readUint8(e){return this._dataView.getUint8(e-this._sliceOffset,this._littleEndian)}readInt8(e){return this._dataView.getInt8(e-this._sliceOffset,this._littleEndian)}readUint16(e){return this._dataView.getUint16(e-this._sliceOffset,this._littleEndian)}readInt16(e){return this._dataView.getInt16(e-this._sliceOffset,this._littleEndian)}readUint32(e){return this._dataView.getUint32(e-this._sliceOffset,this._littleEndian)}readInt32(e){return this._dataView.getInt32(e-this._sliceOffset,this._littleEndian)}readFloat32(e){return this._dataView.getFloat32(e-this._sliceOffset,this._littleEndian)}readFloat64(e){return this._dataView.getFloat64(e-this._sliceOffset,this._littleEndian)}readUint64(e){const n=this.readUint32(e),r=this.readUint32(e+4);let i;if(this._littleEndian){if(i=n+2**32*r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}if(i=2**32*n+r,!Number.isSafeInteger(i))throw new Error(`${i} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return i}readInt64(e){let n=0;const r=(this._dataView.getUint8(e+(this._littleEndian?7:0))&128)>0;let i=!0;for(let o=0;o<8;o++){let s=this._dataView.getUint8(e+(this._littleEndian?o:7-o));r&&(i?s!==0&&(s=~(s-1)&255,i=!1):s=~s&255),n+=s*256**o}return r&&(n=-n),n}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const QZ=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class JZ{constructor(e=QZ,n){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=n?Promise.resolve(n):new Promise(r=>{wo(()=>import("./decoder-ztUAhsIh.js"),__vite__mapDeps([])).then(i=>{r(i.create)})}),this._awaitingDecoder.then(r=>{this._awaitingDecoder=null,this.workers=[];for(let i=0;ir.decode(e,n)):new Promise(r=>{const i=this.workers.find(a=>a.idle)||this.workers[Math.floor(Math.random()*this.size)];i.idle=!1;const o=this.messageId++,s=a=>{a.data.id===o&&(i.idle=!0,r(a.data.decoded),i.worker.removeEventListener("message",s))};i.worker.addEventListener("message",s),i.worker.postMessage({fileDirectory:e,buffer:n,id:o},[n])})}destroy(){this.workers&&(this.workers.forEach(e=>{e.worker.terminate()}),this.workers=null)}}const eq=JZ,UE=`\r +\r +`;function vI(t){if(typeof Object.fromEntries<"u")return Object.fromEntries(t);const e={};for(const[n,r]of t)e[n.toLowerCase()]=r;return e}function tq(t){const e=t.split(`\r +`).map(n=>{const r=n.split(":").map(i=>i.trim());return r[0]=r[0].toLowerCase(),r});return vI(e)}function nq(t){const[e,...n]=t.split(";").map(i=>i.trim()),r=n.map(i=>i.split("="));return{type:e,params:vI(r)}}function Hy(t){let e,n,r;return t&&([,e,n,r]=t.match(/bytes (\d+)-(\d+)\/(\d+)/),e=parseInt(e,10),n=parseInt(n,10),r=parseInt(r,10)),{start:e,end:n,total:r}}function rq(t,e){let n=null;const r=new TextDecoder("ascii"),i=[],o=`--${e}`,s=`${o}--`;for(let a=0;a<10;++a)r.decode(new Uint8Array(t,a,o.length))===o&&(n=a);if(n===null)throw new Error("Could not find initial boundary");for(;nthis.fetchSlice(r,n)))}async fetchSlice(e){throw new Error(`fetching of slice ${e} not possible, not implemented`)}get fileSize(){return null}async close(){}}class iq extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(const[n,r]of e)this.onEviction(n,r.value)}_deleteIfExpired(e,n){return typeof n.expiry=="number"&&n.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,n.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,n){if(this._deleteIfExpired(e,n)===!1)return n.value}_getItemValue(e,n){return n.expiry?this._getOrDeleteIfExpired(e,n):n.value}_peek(e,n){const r=n.get(e);return this._getItemValue(e,r)}_set(e,n){this.cache.set(e,n),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,n){this.oldCache.delete(e),this._set(e,n)}*_entriesAscending(){for(const e of this.oldCache){const[n,r]=e;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield e)}for(const e of this.cache){const[n,r]=e;this._deleteIfExpired(n,r)===!1&&(yield e)}}get(e){if(this.cache.has(e)){const n=this.cache.get(e);return this._getItemValue(e,n)}if(this.oldCache.has(e)){const n=this.oldCache.get(e);if(this._deleteIfExpired(e,n)===!1)return this._moveToRecent(e,n),n.value}}set(e,n,{maxAge:r=this.maxAge}={}){const i=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return this.cache.has(e)?this.cache.set(e,{value:n,expiry:i}):this._set(e,{value:n,expiry:i}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){const n=this.cache.delete(e);return n&&this._size--,this.oldCache.delete(e)||n}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const n=[...this._entriesAscending()],r=n.length-e;r<0?(this.cache=new Map(n),this.oldCache=new Map,this._size=n.length):(r>0&&this._emitEvictions(n.slice(0,r)),this.oldCache=new Map(n.slice(r)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[n,r]=e;this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}for(const e of this.oldCache){const[n,r]=e;this.cache.has(n)||this._deleteIfExpired(n,r)===!1&&(yield[n,r.value])}}*entriesDescending(){let e=[...this.cache];for(let n=e.length-1;n>=0;--n){const r=e[n],[i,o]=r;this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}e=[...this.oldCache];for(let n=e.length-1;n>=0;--n){const r=e[n],[i,o]=r;this.cache.has(i)||this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}}*entriesAscending(){for(const[e,n]of this._entriesAscending())yield[e,n.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const n of this.oldCache.keys())this.cache.has(n)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,n=this){for(const[r,i]of this.entriesAscending())e.call(n,i,r,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}async function oq(t){return new Promise(e=>setTimeout(e,t))}function sq(t,e){const n=Array.isArray(t)?t:Array.from(t),r=Array.isArray(e)?e:Array.from(e);return n.map((i,o)=>[i,r[o]])}class qa extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,qa),this.name="AbortError"}}class aq extends Error{constructor(e,n){super(n),this.errors=e,this.message=n,this.name="AggregateError"}}const lq=aq;class cq{constructor(e,n,r=null){this.offset=e,this.length=n,this.data=r}get top(){return this.offset+this.length}}class VE{constructor(e,n,r){this.offset=e,this.length=n,this.blockIds=r}}class uq extends z_{constructor(e,{blockSize:n=65536,cacheSize:r=100}={}){super(),this.source=e,this.blockSize=n,this.blockCache=new iq({maxSize:r,onEviction:(i,o)=>{this.evictedBlocks.set(i,o)}}),this.evictedBlocks=new Map,this.blockRequests=new Map,this.blockIdsToFetch=new Set,this.abortedBlockIds=new Set}get fileSize(){return this.source.fileSize}async fetch(e,n){const r=[],i=[],o=[];this.evictedBlocks.clear();for(const{offset:f,length:h}of e){let p=f+h;const{fileSize:m}=this;m!==null&&(p=Math.min(p,m));const v=Math.floor(f/this.blockSize)*this.blockSize;for(let y=v;ythis.abortedBlockIds.has(f)||!this.blockCache.has(f));if(l.forEach(f=>this.blockIdsToFetch.add(f)),l.length>0&&n&&!n.aborted){this.fetchBlocks(null);for(const f of l){const h=this.blockRequests.get(f);if(!h)throw new Error(`Block ${f} is not in the block requests`);a.push(h)}await Promise.allSettled(a)}if(n&&n.aborted)throw new qa("Request was aborted");const c=o.map(f=>this.blockCache.get(f)||this.evictedBlocks.get(f)),u=c.filter(f=>!f);if(u.length)throw new lq(u,"Request failed");const d=new Map(sq(o,c));return this.readSliceData(e,d)}fetchBlocks(e){if(this.blockIdsToFetch.size>0){const n=this.groupBlocks(this.blockIdsToFetch),r=this.source.fetch(n,e);for(let i=0;i{try{const a=(await r)[i],l=s*this.blockSize,c=l-a.offset,u=Math.min(c+this.blockSize,a.data.byteLength),d=a.data.slice(c,u),f=new cq(l,d.byteLength,d,s);this.blockCache.set(s,f),this.abortedBlockIds.delete(s)}catch(a){if(a.name==="AbortError")a.signal=e,this.blockCache.delete(s),this.abortedBlockIds.add(s);else throw a}finally{this.blockRequests.delete(s)}})())}this.blockIdsToFetch.clear()}}groupBlocks(e){const n=Array.from(e).sort((s,a)=>s-a);if(n.length===0)return[];let r=[],i=null;const o=[];for(const s of n)i===null||i+1===s?(r.push(s),i=s):(o.push(new VE(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[s],i=s);return o.push(new VE(r[0]*this.blockSize,r.length*this.blockSize,r)),o}readSliceData(e,n){return e.map(r=>{let i=r.offset+r.length;this.fileSize!==null&&(i=Math.min(this.fileSize,i));const o=Math.floor(r.offset/this.blockSize),s=Math.floor(i/this.blockSize),a=new ArrayBuffer(r.length),l=new Uint8Array(a);for(let c=o;c<=s;++c){const u=n.get(c),d=u.offset-r.offset,f=u.top-i;let h=0,p=0,m;d<0?h=-d:d>0&&(p=d),f<0?m=u.length-h:m=i-u.offset-h;const v=new Uint8Array(u.data,h,m);l.set(v,p)}return a})}}class B_{get ok(){return this.status>=200&&this.status<=299}get status(){throw new Error("not implemented")}getHeader(e){throw new Error("not implemented")}async getData(){throw new Error("not implemented")}}class j_{constructor(e){this.url=e}async request({headers:e,credentials:n,signal:r}={}){throw new Error("request is not implemented")}}class dq extends B_{constructor(e){super(),this.response=e}get status(){return this.response.status}getHeader(e){return this.response.headers.get(e)}async getData(){return this.response.arrayBuffer?await this.response.arrayBuffer():(await this.response.buffer()).buffer}}class fq extends j_{constructor(e,n){super(e),this.credentials=n}async request({headers:e,credentials:n,signal:r}={}){const i=await fetch(this.url,{headers:e,credentials:n,signal:r});return new dq(i)}}class hq extends B_{constructor(e,n){super(),this.xhr=e,this.data=n}get status(){return this.xhr.status}getHeader(e){return this.xhr.getResponseHeader(e)}async getData(){return this.data}}class pq extends j_{constructRequest(e,n){return new Promise((r,i)=>{const o=new XMLHttpRequest;o.open("GET",this.url),o.responseType="arraybuffer";for(const[s,a]of Object.entries(e))o.setRequestHeader(s,a);o.onload=()=>{const s=o.response;r(new hq(o,s))},o.onerror=i,o.onabort=()=>i(new qa("Request aborted")),o.send(),n&&(n.aborted&&o.abort(),n.addEventListener("abort",()=>o.abort()))})}async request({headers:e,signal:n}={}){return await this.constructRequest(e,n)}}const _f={},gq=Object.freeze(Object.defineProperty({__proto__:null,default:_f},Symbol.toStringTag,{value:"Module"}));class mq extends B_{constructor(e,n){super(),this.response=e,this.dataPromise=n}get status(){return this.response.statusCode}getHeader(e){return this.response.headers[e]}async getData(){return await this.dataPromise}}class yq extends j_{constructor(e){super(e),this.parsedUrl=_f.parse(this.url),this.httpApi=(this.parsedUrl.protocol==="http:",_f)}constructRequest(e,n){return new Promise((r,i)=>{const o=this.httpApi.get({...this.parsedUrl,headers:e},s=>{const a=new Promise(l=>{const c=[];s.on("data",u=>{c.push(u)}),s.on("end",()=>{const u=Buffer.concat(c).buffer;l(u)}),s.on("error",i)});r(new mq(s,a))});o.on("error",i),n&&(n.aborted&&o.destroy(new qa("Request aborted")),n.addEventListener("abort",()=>o.destroy(new qa("Request aborted"))))})}async request({headers:e,signal:n}={}){return await this.constructRequest(e,n)}}class U_ extends z_{constructor(e,n,r,i){super(),this.client=e,this.headers=n,this.maxRanges=r,this.allowFullFile=i,this._fileSize=null}async fetch(e,n){return this.maxRanges>=e.length?this.fetchSlices(e,n):(this.maxRanges>0&&e.length>1,Promise.all(e.map(r=>this.fetchSlice(r,n))))}async fetchSlices(e,n){const r=await this.client.request({headers:{...this.headers,Range:`bytes=${e.map(({offset:i,length:o})=>`${i}-${i+o}`).join(",")}`},signal:n});if(r.ok)if(r.status===206){const{type:i,params:o}=nq(r.getHeader("content-type"));if(i==="multipart/byteranges"){const d=rq(await r.getData(),o.boundary);return this._fileSize=d[0].fileSize||null,d}const s=await r.getData(),{start:a,end:l,total:c}=Hy(r.getHeader("content-range"));this._fileSize=c||null;const u=[{data:s,offset:a,length:l-a}];if(e.length>1){const d=await Promise.all(e.slice(1).map(f=>this.fetchSlice(f,n)));return u.concat(d)}return u}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const i=await r.getData();return this._fileSize=i.byteLength,[{data:i,offset:0,length:i.byteLength}]}else throw new Error("Error fetching data.")}async fetchSlice(e,n){const{offset:r,length:i}=e,o=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+i}`},signal:n});if(o.ok)if(o.status===206){const s=await o.getData(),{total:a}=Hy(o.getHeader("content-range"));return this._fileSize=a||null,{data:s,offset:r,length:i}}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const s=await o.getData();return this._fileSize=s.byteLength,{data:s,offset:0,length:s.byteLength}}else throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function V_(t,{blockSize:e,cacheSize:n}){return e===null?t:new uq(t,{blockSize:e,cacheSize:n})}function vq(t,{headers:e={},credentials:n,maxRanges:r=0,allowFullFile:i=!1,...o}={}){const s=new fq(t,n),a=new U_(s,e,r,i);return V_(a,o)}function _q(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const o=new pq(t),s=new U_(o,e,n,r);return V_(s,i)}function xq(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const o=new yq(t),s=new U_(o,e,n,r);return V_(s,i)}function Ky(t,{forceXHR:e=!1,...n}={}){return typeof fetch=="function"&&!e?vq(t,n):typeof XMLHttpRequest<"u"?_q(t,n):xq(t,n)}class bq extends z_{constructor(e){super(),this.file=e}async fetchSlice(e,n){return new Promise((r,i)=>{const o=this.file.slice(e.offset,e.offset+e.length),s=new FileReader;s.onload=a=>r(a.target.result),s.onerror=i,s.onabort=i,s.readAsArrayBuffer(o),n&&n.addEventListener("abort",()=>s.abort())})}}function Sq(t){return new bq(t)}function Xy(t){switch(t){case ue.BYTE:case ue.ASCII:case ue.SBYTE:case ue.UNDEFINED:return 1;case ue.SHORT:case ue.SSHORT:return 2;case ue.LONG:case ue.SLONG:case ue.FLOAT:case ue.IFD:return 4;case ue.RATIONAL:case ue.SRATIONAL:case ue.DOUBLE:case ue.LONG8:case ue.SLONG8:case ue.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${t}`)}}function wq(t){const e=t.GeoKeyDirectory;if(!e)return null;const n={};for(let r=4;r<=e[3]*4;r+=4){const i=PZ[e[r]],o=e[r+1]?gc[e[r+1]]:null,s=e[r+2],a=e[r+3];let l=null;if(!o)l=a;else{if(l=t[o],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${i}'.`);typeof l=="string"?l=l.substring(a,a+s-1):l.subarray&&(l=l.subarray(a,a+s),s===1&&(l=l[0]))}n[i]=l}return n}function zs(t,e,n,r){let i=null,o=null;const s=Xy(e);switch(e){case ue.BYTE:case ue.ASCII:case ue.UNDEFINED:i=new Uint8Array(n),o=t.readUint8;break;case ue.SBYTE:i=new Int8Array(n),o=t.readInt8;break;case ue.SHORT:i=new Uint16Array(n),o=t.readUint16;break;case ue.SSHORT:i=new Int16Array(n),o=t.readInt16;break;case ue.LONG:case ue.IFD:i=new Uint32Array(n),o=t.readUint32;break;case ue.SLONG:i=new Int32Array(n),o=t.readInt32;break;case ue.LONG8:case ue.IFD8:i=new Array(n),o=t.readUint64;break;case ue.SLONG8:i=new Array(n),o=t.readInt64;break;case ue.RATIONAL:i=new Uint32Array(n*2),o=t.readUint32;break;case ue.SRATIONAL:i=new Int32Array(n*2),o=t.readInt32;break;case ue.FLOAT:i=new Float32Array(n),o=t.readFloat32;break;case ue.DOUBLE:i=new Float64Array(n),o=t.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e===ue.RATIONAL||e===ue.SRATIONAL)for(let a=0;ap.getWidth()-m.getWidth());for(let p=0;pv||s&&s>y)break}}let f=n;if(a){const[h,p]=l.getOrigin(),[m,v]=c.getResolution(l);f=[Math.round((a[0]-h)/m),Math.round((a[1]-p)/v),Math.round((a[2]-h)/m),Math.round((a[3]-p)/v)],f=[Math.min(f[0],f[2]),Math.min(f[1],f[3]),Math.max(f[0],f[2]),Math.max(f[1],f[3])]}return c.readRasters({...e,window:f})}}class Qa extends _I{constructor(e,n,r,i,o={}){super(),this.source=e,this.littleEndian=n,this.bigTiff=r,this.firstIFDOffset=i,this.cache=o.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(e,n){const r=this.bigTiff?4048:1024;return new qZ((await this.source.fetch([{offset:e,length:typeof n<"u"?n:r}]))[0],e,this.littleEndian,this.bigTiff)}async parseFileDirectoryAt(e){const n=this.bigTiff?20:12,r=this.bigTiff?8:2;let i=await this.getSlice(e);const o=this.bigTiff?i.readUint64(e):i.readUint16(e),s=o*n+(this.bigTiff?16:6);i.covers(e,s)||(i=await this.getSlice(e,s));const a={};let l=e+(this.bigTiff?8:2);for(let d=0;d{const n=await this.ifdRequests[e-1];if(n.nextIFDByteOffset===0)throw new Id(e);return this.parseFileDirectoryAt(n.nextIFDByteOffset)})(),this.ifdRequests[e]}async getImage(e=0){const n=await this.requestIFD(e);return new yI(n.fileDirectory,n.geoKeyDirectory,this.dataView,this.littleEndian,this.cache,this.source)}async getImageCount(){let e=0,n=!0;for(;n;)try{await this.requestIFD(e),++e}catch(r){if(r instanceof Id)n=!1;else throw r}return e}async getGhostValues(){const e=this.bigTiff?16:8;if(this.ghostValues)return this.ghostValues;const n="GDAL_STRUCTURAL_METADATA_SIZE=",r=n.length+100;let i=await this.getSlice(e,r);if(n===zs(i,ue.ASCII,n.length,e)){const s=zs(i,ue.ASCII,r,e).split(` +`)[0],a=Number(s.split("=")[1].split(" ")[0])+s.length;a>r&&(i=await this.getSlice(e,a));const l=zs(i,ue.ASCII,a,e);this.ghostValues={},l.split(` +`).filter(c=>c.length>0).map(c=>c.split("=")).forEach(([c,u])=>{this.ghostValues[c]=u})}return this.ghostValues}static async fromSource(e,n,r){const i=(await e.fetch([{offset:0,length:1024}],r))[0],o=new ZZ(i),s=o.getUint16(0,0);let a;if(s===18761)a=!0;else if(s===19789)a=!1;else throw new TypeError("Invalid byte order value.");const l=o.getUint16(2,a);let c;if(l===42)c=!1;else if(l===43){if(c=!0,o.getUint16(4,a)!==8)throw new Error("Unsupported offset byte-size.")}else throw new TypeError("Invalid magic number.");const u=c?o.getUint64(8,a):o.getUint32(4,a);return new Qa(e,a,c,u,n)}close(){return typeof this.source.close=="function"?this.source.close():!1}}class Tq extends _I{constructor(e,n){super(),this.mainFile=e,this.overviewFiles=n,this.imageFiles=[e].concat(n),this.fileDirectoriesPerFile=null,this.fileDirectoriesPerFileParsing=null,this.imageCount=null}async parseFileDirectoriesPerFile(){const e=[this.mainFile.parseFileDirectoryAt(this.mainFile.firstIFDOffset)].concat(this.overviewFiles.map(n=>n.parseFileDirectoryAt(n.firstIFDOffset)));return this.fileDirectoriesPerFile=await Promise.all(e),this.fileDirectoriesPerFile}async getImage(e=0){await this.getImageCount(),await this.parseFileDirectoriesPerFile();let n=0,r=0;for(let i=0;in.getImageCount()));return this.imageCounts=await Promise.all(e),this.imageCount=this.imageCounts.reduce((n,r)=>n+r,0),this.imageCount}}async function Cq(t,e={},n){return Qa.fromSource(Ky(t,e),n)}async function Rq(t,e){return Qa.fromSource(Sq(t),e)}async function Pq(t,e=[],n={},r){const i=await Qa.fromSource(Ky(t,n),r),o=await Promise.all(e.map(s=>Qa.fromSource(Ky(s,n))));return new Tq(i,o)}function Aq(t){return((t.fileDirectory.NewSubfileType||0)&4)===4}function kq(t,e){if(!t)return!1;if(t===!0)return!0;if(e.getSamplesPerPixel()!==3)return!1;const n=e.fileDirectory.PhotometricInterpretation,r=ln;return n===r.CMYK||n===r.YCbCr||n===r.CIELab||n===r.ICCLab}const GE="STATISTICS_MAXIMUM",WE="STATISTICS_MINIMUM",Bm=256;let jm;function Iq(){return jm||(jm=new eq),jm}function Mq(t){try{return t.getBoundingBox()}catch{return[0,0,t.getWidth(),t.getHeight()]}}function Lq(t){try{return t.getOrigin().slice(0,2)}catch{return[0,t.getHeight()]}}function Oq(t,e){try{return t.getResolution(e)}catch{return[e.getWidth()/t.getWidth(),e.getHeight()/t.getHeight()]}}function Dq(t){const e=t.geoKeys;if(!e)return null;if(e.ProjectedCSTypeGeoKey&&e.ProjectedCSTypeGeoKey!==32767){const n="EPSG:"+e.ProjectedCSTypeGeoKey;let r=bn(n);if(!r){const i=hE(e.ProjLinearUnitsGeoKey);i&&(r=new wh({code:n,units:i}))}return r}if(e.GeographicTypeGeoKey&&e.GeographicTypeGeoKey!==32767){const n="EPSG:"+e.GeographicTypeGeoKey;let r=bn(n);if(!r){const i=hE(e.GeogAngularUnitsGeoKey);i&&(r=new wh({code:n,units:i}))}return r}return null}function Fq(t){return t.getImageCount().then(function(e){const n=new Array(e);for(let r=0;rn*t)throw new Error(r)}function Nq(t){return t instanceof Int8Array?-128:t instanceof Int16Array?-32768:t instanceof Int32Array?-2147483648:t instanceof Float32Array?12e-39:0}function zq(t){return t instanceof Int8Array?127:t instanceof Uint8Array||t instanceof Uint8ClampedArray?255:t instanceof Int16Array?32767:t instanceof Uint16Array?65535:t instanceof Int32Array?2147483647:t instanceof Uint32Array?4294967295:t instanceof Float32Array?34e37:255}class xI extends KY{constructor(e){super({state:"loading",tileGrid:null,projection:e.projection||null,opaque:e.opaque,transition:e.transition,interpolate:e.interpolate!==!1,wrapX:e.wrapX}),this.sourceInfo_=e.sources;const n=this.sourceInfo_.length;this.sourceOptions_=e.sourceOptions,this.sourceImagery_=new Array(n),this.sourceMasks_=new Array(n),this.resolutionFactors_=new Array(n),this.samplesPerPixel_,this.nodataValues_,this.metadata_,this.normalize_=e.normalize!==!1,this.addAlpha_=!1,this.error_=null,this.convertToRGB_=e.convertToRGB||!1,this.setKey(this.sourceInfo_.map(o=>o.url).join(","));const r=this,i=new Array(n);for(let o=0;o=0;--r){const i=n[r],o=Dq(i);if(o){this.projection=o;break}}}configure_(e){let n,r,i,o,s;const a=new Array(e.length),l=new Array(e.length),c=new Array(e.length);let u=0;const d=e.length;for(let m=0;m{Aq(E)?y.push(E):v.push(E)});const g=v.length;if(y.length>0&&y.length!==g)throw new Error(`Expected one mask per image found ${y.length} masks and ${g} images`);let _,x;const S=new Array(g),T=new Array(g),w=new Array(g);l[m]=new Array(g),c[m]=new Array(g);for(let E=0;Ew.length&&(u=s.length-w.length);const E=s[s.length-1]/w[w.length-1];this.resolutionFactors_[m]=E;const I=w.map(z=>z*=E),M=`Resolution mismatch for source ${m}, got [${I}] but expected [${s}]`;Hl(s.slice(u,s.length),I,.02,M,this.viewRejector)}i?Hl(i.slice(u,i.length),T,.01,`Tile size mismatch for source ${m}`,this.viewRejector):i=T,o?Hl(o.slice(u,o.length),S,0,`Tile size mismatch for source ${m}`,this.viewRejector):o=S,this.sourceImagery_[m]=v.reverse(),this.sourceMasks_[m]=y.reverse()}for(let m=0,v=this.sourceImagery_.length;me=>{const n=jq.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xr=t=>(t=t.toLowerCase(),e=>Zp(e)===t),qp=t=>e=>typeof e===t,{isArray:dl}=Array,au=qp("undefined");function Uq(t){return t!==null&&!au(t)&&t.constructor!==null&&!au(t.constructor)&&qn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const SI=Xr("ArrayBuffer");function Vq(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&SI(t.buffer),e}const Gq=qp("string"),qn=qp("function"),wI=qp("number"),Qp=t=>t!==null&&typeof t=="object",Wq=t=>t===!0||t===!1,xf=t=>{if(Zp(t)!=="object")return!1;const e=G_(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hq=Xr("Date"),Kq=Xr("File"),Xq=Xr("Blob"),Yq=Xr("FileList"),Zq=t=>Qp(t)&&qn(t.pipe),qq=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||qn(t.append)&&((e=Zp(t))==="formdata"||e==="object"&&qn(t.toString)&&t.toString()==="[object FormData]"))},Qq=Xr("URLSearchParams"),Jq=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ou(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),dl(t))for(r=0,i=t.length;r0;)if(i=n[r],e===i.toLowerCase())return i;return null}const TI=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,CI=t=>!au(t)&&t!==TI;function Yy(){const{caseless:t}=CI(this)&&this||{},e={},n=(r,i)=>{const o=t&&EI(e,i)||i;xf(e[o])&&xf(r)?e[o]=Yy(e[o],r):xf(r)?e[o]=Yy({},r):dl(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r(Ou(e,(i,o)=>{n&&qn(i)?t[o]=bI(i,n):t[o]=i},{allOwnKeys:r}),t),tQ=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nQ=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},rQ=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&G_(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},iQ=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},oQ=t=>{if(!t)return null;if(dl(t))return t;let e=t.length;if(!wI(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sQ=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&G_(Uint8Array)),aQ=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},lQ=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},cQ=Xr("HTMLFormElement"),uQ=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),HE=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),dQ=Xr("RegExp"),RI=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ou(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},fQ=t=>{RI(t,(e,n)=>{if(qn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(qn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hQ=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return dl(t)?r(t):r(String(t).split(e)),n},pQ=()=>{},gQ=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Um="abcdefghijklmnopqrstuvwxyz",KE="0123456789",PI={DIGIT:KE,ALPHA:Um,ALPHA_DIGIT:Um+Um.toUpperCase()+KE},mQ=(t=16,e=PI.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function yQ(t){return!!(t&&qn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const vQ=t=>{const e=new Array(10),n=(r,i)=>{if(Qp(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=dl(r)?[]:{};return Ou(r,(s,a)=>{const l=n(s,i+1);!au(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},_Q=Xr("AsyncFunction"),xQ=t=>t&&(Qp(t)||qn(t))&&qn(t.then)&&qn(t.catch),L={isArray:dl,isArrayBuffer:SI,isBuffer:Uq,isFormData:qq,isArrayBufferView:Vq,isString:Gq,isNumber:wI,isBoolean:Wq,isObject:Qp,isPlainObject:xf,isUndefined:au,isDate:Hq,isFile:Kq,isBlob:Xq,isRegExp:dQ,isFunction:qn,isStream:Zq,isURLSearchParams:Qq,isTypedArray:sQ,isFileList:Yq,forEach:Ou,merge:Yy,extend:eQ,trim:Jq,stripBOM:tQ,inherits:nQ,toFlatObject:rQ,kindOf:Zp,kindOfTest:Xr,endsWith:iQ,toArray:oQ,forEachEntry:aQ,matchAll:lQ,isHTMLForm:cQ,hasOwnProperty:HE,hasOwnProp:HE,reduceDescriptors:RI,freezeMethods:fQ,toObjectSet:hQ,toCamelCase:uQ,noop:pQ,toFiniteNumber:gQ,findKey:EI,global:TI,isContextDefined:CI,ALPHABET:PI,generateString:mQ,isSpecCompliantForm:yQ,toJSONObject:vQ,isAsyncFn:_Q,isThenable:xQ};function _e(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}L.inherits(_e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const AI=_e.prototype,kI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{kI[t]={value:t}});Object.defineProperties(_e,kI);Object.defineProperty(AI,"isAxiosError",{value:!0});_e.from=(t,e,n,r,i,o)=>{const s=Object.create(AI);return L.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),_e.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const bQ=null;function Zy(t){return L.isPlainObject(t)||L.isArray(t)}function II(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function XE(t,e,n){return t?t.concat(e).map(function(i,o){return i=II(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function SQ(t){return L.isArray(t)&&!t.some(Zy)}const wQ=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function Jp(t,e,n){if(!L.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!L.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(e);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(!l&&L.isBlob(p))throw new _e("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,v){let y=p;if(p&&!v&&typeof p=="object"){if(L.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&SQ(p)||(L.isFileList(p)||L.endsWith(m,"[]"))&&(y=L.toArray(p)))return m=II(m),y.forEach(function(_,x){!(L.isUndefined(_)||_===null)&&e.append(s===!0?XE([m],x,o):s===null?m:m+"[]",c(_))}),!1}return Zy(p)?!0:(e.append(XE(v,m,o),c(p)),!1)}const d=[],f=Object.assign(wQ,{defaultVisitor:u,convertValue:c,isVisitable:Zy});function h(p,m){if(!L.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),L.forEach(p,function(y,g){(!(L.isUndefined(y)||y===null)&&i.call(e,y,L.isString(g)?g.trim():g,m,f))===!0&&h(y,m?m.concat(g):[g])}),d.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return h(t),e}function YE(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function W_(t,e){this._pairs=[],t&&Jp(t,this,e)}const MI=W_.prototype;MI.append=function(e,n){this._pairs.push([e,n])};MI.toString=function(e){const n=e?function(r){return e.call(this,r,YE)}:YE;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function EQ(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LI(t,e,n){if(!e)return t;const r=n&&n.encode||EQ,i=n&&n.serialize;let o;if(i?o=i(e,n):o=L.isURLSearchParams(e)?e.toString():new W_(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class TQ{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){L.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ZE=TQ,OI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CQ=typeof URLSearchParams<"u"?URLSearchParams:W_,RQ=typeof FormData<"u"?FormData:null,PQ=typeof Blob<"u"?Blob:null,AQ={isBrowser:!0,classes:{URLSearchParams:CQ,FormData:RQ,Blob:PQ},protocols:["http","https","file","blob","url","data"]},DI=typeof window<"u"&&typeof document<"u",kQ=(t=>DI&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),IQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:DI,hasStandardBrowserEnv:kQ,hasStandardBrowserWebWorkerEnv:IQ},Symbol.toStringTag,{value:"Module"})),$r={...MQ,...AQ};function LQ(t,e){return Jp(t,new $r.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return $r.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function OQ(t){return L.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function DQ(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&L.isArray(i)?i.length:s,l?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=DQ(i[s])),!a)}if(L.isFormData(t)&&L.isFunction(t.entries)){const n={};return L.forEachEntry(t,(r,i)=>{e(OQ(r),i,n,0)}),n}return null}function FQ(t,e,n){if(L.isString(t))try{return(e||JSON.parse)(t),L.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const H_={transitional:OI,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(e);if(o&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return i&&i?JSON.stringify(FI(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LQ(e,this.formSerializer).toString();if((a=L.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Jp(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),FQ(e)):e}],transformResponse:[function(e){const n=this.transitional||H_.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&L.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?_e.from(a,_e.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r.classes.FormData,Blob:$r.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],t=>{H_.headers[t]={}});const K_=H_,$Q=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NQ=t=>{const e={};let n,r,i;return t&&t.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&$Q[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},qE=Symbol("internals");function Il(t){return t&&String(t).trim().toLowerCase()}function bf(t){return t===!1||t==null?t:L.isArray(t)?t.map(bf):String(t)}function zQ(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const BQ=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Vm(t,e,n,r,i){if(L.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!L.isString(e)){if(L.isString(r))return e.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(e)}}function jQ(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function UQ(t,e){const n=L.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class eg{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,c){const u=Il(l);if(!u)throw new Error("header name must be a non-empty string");const d=L.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=bf(a))}const s=(a,l)=>L.forEach(a,(c,u)=>o(c,u,l));return L.isPlainObject(e)||e instanceof this.constructor?s(e,n):L.isString(e)&&(e=e.trim())&&!BQ(e)?s(NQ(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=Il(e),e){const r=L.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return zQ(i);if(L.isFunction(n))return n.call(this,i,r);if(L.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Il(e),e){const r=L.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Vm(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=Il(s),s){const a=L.findKey(r,s);a&&(!n||Vm(r,r[a],a,n))&&(delete r[a],i=!0)}}return L.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Vm(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return L.forEach(this,(i,o)=>{const s=L.findKey(r,o);if(s){n[s]=bf(i),delete n[o];return}const a=e?jQ(o):String(o).trim();a!==o&&delete n[o],n[a]=bf(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return L.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&L.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[qE]=this[qE]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Il(s);r[a]||(UQ(i,s),r[a]=!0)}return L.isArray(e)?e.forEach(o):o(e),this}}eg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.reduceDescriptors(eg.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});L.freezeMethods(eg);const pi=eg;function Gm(t,e){const n=this||K_,r=e||n,i=pi.from(r.headers);let o=r.data;return L.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function $I(t){return!!(t&&t.__CANCEL__)}function Du(t,e,n){_e.call(this,t??"canceled",_e.ERR_CANCELED,e,n),this.name="CanceledError"}L.inherits(Du,_e,{__CANCEL__:!0});function VQ(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const GQ=$r.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];L.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),L.isString(r)&&s.push("path="+r),L.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function WQ(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function HQ(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function NI(t,e){return t&&!WQ(e)?HQ(t,e):e}const KQ=$r.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=L.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function XQ(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function YQ(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[o];s||(s=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),c=o<=s;n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}const ZQ=typeof XMLHttpRequest<"u",qQ=ZQ&&function(t){return new Promise(function(n,r){let i=t.data;const o=pi.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let u;if(L.isFormData(i)){if($r.hasStandardBrowserEnv||$r.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[m,...v]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...v].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const m=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+v))}const f=NI(t.baseURL,t.url);d.open(t.method.toUpperCase(),LI(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function h(){if(!d)return;const m=pi.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:t,request:d};VQ(function(_){n(_),c()},function(_){r(_),c()},y),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new _e("Request aborted",_e.ECONNABORTED,t,d)),d=null)},d.onerror=function(){r(new _e("Network Error",_e.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||OI;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),r(new _e(v,y.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,t,d)),d=null},$r.hasStandardBrowserEnv&&(a&&L.isFunction(a)&&(a=a(t)),a||a!==!1&&KQ(f))){const m=t.xsrfHeaderName&&t.xsrfCookieName&&GQ.read(t.xsrfCookieName);m&&o.set(t.xsrfHeaderName,m)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&L.forEach(o.toJSON(),function(v,y){d.setRequestHeader(y,v)}),L.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",QE(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",QE(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=m=>{d&&(r(!m||m.type?new Du(null,t,d):m),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=XQ(f);if(p&&$r.protocols.indexOf(p)===-1){r(new _e("Unsupported protocol "+p+":",_e.ERR_BAD_REQUEST,t));return}d.send(i||null)})},qy={http:bQ,xhr:qQ};L.forEach(qy,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const JE=t=>`- ${t}`,QQ=t=>L.isFunction(t)||t===null||t===!1,zI={getAdapter:t=>{t=L.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since : +`+o.map(JE).join(` +`):" "+JE(o[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:qy};function Wm(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Du(null,t)}function eT(t){return Wm(t),t.headers=pi.from(t.headers),t.data=Gm.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),zI.getAdapter(t.adapter||K_.adapter)(t).then(function(r){return Wm(t),r.data=Gm.call(t,t.transformResponse,r),r.headers=pi.from(r.headers),r},function(r){return $I(r)||(Wm(t),r&&r.response&&(r.response.data=Gm.call(t,t.transformResponse,r.response),r.response.headers=pi.from(r.response.headers))),Promise.reject(r)})}const tT=t=>t instanceof pi?t.toJSON():t;function Ja(t,e){e=e||{};const n={};function r(c,u,d){return L.isPlainObject(c)&&L.isPlainObject(u)?L.merge.call({caseless:d},c,u):L.isPlainObject(u)?L.merge({},u):L.isArray(u)?u.slice():u}function i(c,u,d){if(L.isUndefined(u)){if(!L.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function o(c,u){if(!L.isUndefined(u))return r(void 0,u)}function s(c,u){if(L.isUndefined(u)){if(!L.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in e)return r(c,u);if(d in t)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>i(tT(c),tT(u),!0)};return L.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=l[u]||i,f=d(t[u],e[u],u);L.isUndefined(f)&&d!==a||(n[u]=f)}),n}const BI="1.6.3",X_={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{X_[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const nT={};X_.transitional=function(e,n,r){function i(o,s){return"[Axios v"+BI+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new _e(i(s," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!nT[s]&&(nT[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function JQ(t,e,n){if(typeof t!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(a,o,t);if(l!==!0)throw new _e("option "+o+" must be "+l,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}const Qy={assertOptions:JQ,validators:X_},Li=Qy.validators;class Mh{constructor(e){this.defaults=e,this.interceptors={request:new ZE,response:new ZE}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ja(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Qy.assertOptions(r,{silentJSONParsing:Li.transitional(Li.boolean),forcedJSONParsing:Li.transitional(Li.boolean),clarifyTimeoutError:Li.transitional(Li.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:Qy.assertOptions(i,{encode:Li.function,serialize:Li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&L.merge(o.common,o[n.method]);o&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=pi.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[eT.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new Du(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Y_(function(i){e=i}),cancel:e}}}const eJ=Y_;function tJ(t){return function(n){return t.apply(null,n)}}function nJ(t){return L.isObject(t)&&t.isAxiosError===!0}const Jy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jy).forEach(([t,e])=>{Jy[e]=t});const rJ=Jy;function jI(t){const e=new Sf(t),n=bI(Sf.prototype.request,e);return L.extend(n,Sf.prototype,e,{allOwnKeys:!0}),L.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return jI(Ja(t,i))},n}const gt=jI(K_);gt.Axios=Sf;gt.CanceledError=Du;gt.CancelToken=eJ;gt.isCancel=$I;gt.VERSION=BI;gt.toFormData=Jp;gt.AxiosError=_e;gt.Cancel=gt.CanceledError;gt.all=function(e){return Promise.all(e)};gt.spread=tJ;gt.isAxiosError=nJ;gt.mergeConfig=Ja;gt.AxiosHeaders=pi;gt.formToJSON=t=>FI(L.isHTMLForm(t)?new FormData(t):t);gt.getAdapter=zI.getAdapter;gt.HttpStatusCode=rJ;gt.default=gt;const rT=gt;var iJ=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},iT=typeof Symbol<"u"&&Symbol,oJ=iJ,sJ=function(){return typeof iT!="function"||typeof Symbol!="function"||typeof iT("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:oJ()},oT={foo:{}},aJ=Object,lJ=function(){return{__proto__:oT}.foo===oT.foo&&!({__proto__:null}instanceof aJ)},cJ="Function.prototype.bind called on incompatible ",uJ=Object.prototype.toString,dJ=Math.max,fJ="[object Function]",sT=function(e,n){for(var r=[],i=0;i"u"||!wt?pe:wt(Uint8Array),rs={"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Bs&&wt?wt([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Ws,"%AsyncGenerator%":Ws,"%AsyncGeneratorFunction%":Ws,"%AsyncIteratorPrototype%":Ws,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":UI,"%GeneratorFunction%":Ws,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Bs&&wt?wt(wt([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Bs||!wt?pe:wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Bs||!wt?pe:wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Bs&&wt?wt(""[Symbol.iterator]()):pe,"%Symbol%":Bs?Symbol:pe,"%SyntaxError%":el,"%ThrowTypeError%":bJ,"%TypedArray%":wJ,"%TypeError%":Oa,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet};if(wt)try{null.error}catch(t){var EJ=wt(wt(t));rs["%Error.prototype%"]=EJ}var TJ=function t(e){var n;if(e==="%AsyncFunction%")n=Hm("async function () {}");else if(e==="%GeneratorFunction%")n=Hm("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Hm("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&wt&&(n=wt(i.prototype))}return rs[e]=n,n},aT={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Fu=Z_,Lh=xJ,CJ=Fu.call(Function.call,Array.prototype.concat),RJ=Fu.call(Function.apply,Array.prototype.splice),lT=Fu.call(Function.call,String.prototype.replace),Oh=Fu.call(Function.call,String.prototype.slice),PJ=Fu.call(Function.call,RegExp.prototype.exec),AJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kJ=/\\(\\)?/g,IJ=function(e){var n=Oh(e,0,1),r=Oh(e,-1);if(n==="%"&&r!=="%")throw new el("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new el("invalid intrinsic syntax, expected opening `%`");var i=[];return lT(e,AJ,function(o,s,a,l){i[i.length]=a?lT(l,kJ,"$1"):s||o}),i},MJ=function(e,n){var r=e,i;if(Lh(aT,r)&&(i=aT[r],r="%"+i[0]+"%"),Lh(rs,r)){var o=rs[r];if(o===Ws&&(o=TJ(r)),typeof o>"u"&&!n)throw new Oa("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new el("intrinsic "+e+" does not exist!")},xs=function(e,n){if(typeof e!="string"||e.length===0)throw new Oa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Oa('"allowMissing" argument must be a boolean');if(PJ(/^%?[^%]*%?$/,e)===null)throw new el("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=IJ(e),i=r.length>0?r[0]:"",o=MJ("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],RJ(r,CJ([0,1],c)));for(var u=1,d=!0;u=r.length){var m=ns(a,f);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[f]}else d=Lh(a,f),a=a[f];d&&!l&&(rs[s]=a)}}return a},VI={exports:{}},LJ=xs,ev=LJ("%Object.defineProperty%",!0),tv=function(){if(ev)try{return ev({},"a",{value:1}),!0}catch{return!1}return!1};tv.hasArrayLengthDefineBug=function(){if(!tv())return null;try{return ev([],"length",{value:1}).length!==1}catch{return!0}};var GI=tv,OJ=xs,wf=OJ("%Object.getOwnPropertyDescriptor%",!0);if(wf)try{wf([],"length")}catch{wf=null}var WI=wf,DJ=GI(),q_=xs,mc=DJ&&q_("%Object.defineProperty%",!0);if(mc)try{mc({},"a",{value:1})}catch{mc=!1}var FJ=q_("%SyntaxError%"),js=q_("%TypeError%"),cT=WI,$J=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new js("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new js("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new js("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new js("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new js("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new js("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!cT&&cT(e,n);if(mc)mc(e,n,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:r,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)e[n]=r;else throw new FJ("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},HI=xs,uT=$J,NJ=GI(),dT=WI,fT=HI("%TypeError%"),zJ=HI("%Math.floor%"),BJ=function(e,n){if(typeof e!="function")throw new fT("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||zJ(n)!==n)throw new fT("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in e&&dT){var s=dT(e,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!r)&&(NJ?uT(e,"length",n,!0,!0):uT(e,"length",n)),e};(function(t){var e=Z_,n=xs,r=BJ,i=n("%TypeError%"),o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||e.call(s,o),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(f){if(typeof f!="function")throw new i("a function is required");var h=a(e,s,arguments);return r(h,1+c(0,f.length-(arguments.length-1)),!0)};var u=function(){return a(e,o,arguments)};l?l(t.exports,"apply",{value:u}):t.exports.apply=u})(VI);var jJ=VI.exports,KI=xs,XI=jJ,UJ=XI(KI("String.prototype.indexOf")),VJ=function(e,n){var r=KI(e,!!n);return typeof r=="function"&&UJ(e,".prototype.")>-1?XI(r):r};const GJ=x5(gq);var Q_=typeof Map=="function"&&Map.prototype,Xm=Object.getOwnPropertyDescriptor&&Q_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Dh=Q_&&Xm&&typeof Xm.get=="function"?Xm.get:null,hT=Q_&&Map.prototype.forEach,J_=typeof Set=="function"&&Set.prototype,Ym=Object.getOwnPropertyDescriptor&&J_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Fh=J_&&Ym&&typeof Ym.get=="function"?Ym.get:null,pT=J_&&Set.prototype.forEach,WJ=typeof WeakMap=="function"&&WeakMap.prototype,yc=WJ?WeakMap.prototype.has:null,HJ=typeof WeakSet=="function"&&WeakSet.prototype,vc=HJ?WeakSet.prototype.has:null,KJ=typeof WeakRef=="function"&&WeakRef.prototype,gT=KJ?WeakRef.prototype.deref:null,XJ=Boolean.prototype.valueOf,YJ=Object.prototype.toString,ZJ=Function.prototype.toString,qJ=String.prototype.match,ex=String.prototype.slice,qi=String.prototype.replace,QJ=String.prototype.toUpperCase,mT=String.prototype.toLowerCase,YI=RegExp.prototype.test,yT=Array.prototype.concat,Mr=Array.prototype.join,JJ=Array.prototype.slice,vT=Math.floor,nv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Zm=Object.getOwnPropertySymbols,rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,tl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Xt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===tl||!0)?Symbol.toStringTag:null,ZI=Object.prototype.propertyIsEnumerable,_T=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function xT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||YI.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-vT(-t):vT(t);if(r!==t){var i=String(r),o=ex.call(e,i.length+1);return qi.call(i,n,"$&_")+"."+qi.call(qi.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return qi.call(e,n,"$&_")}var iv=GJ,bT=iv.custom,ST=QI(bT)?bT:null,eee=function t(e,n,r,i){var o=n||{};if(Ui(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ui(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ui(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ui(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ui(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return eM(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?xT(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return a?xT(e,c):c}var u=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof e=="object")return ov(e)?"[Array]":"[Object]";var d=vee(o,r);if(typeof i>"u")i=[];else if(JI(i,e)>=0)return"[Circular]";function f(Z,G,H){if(G&&(i=JJ.call(i),i.push(G)),H){var oe={depth:o.depth};return Ui(o,"quoteStyle")&&(oe.quoteStyle=o.quoteStyle),t(Z,oe,r+1,i)}return t(Z,o,r+1,i)}if(typeof e=="function"&&!wT(e)){var h=cee(e),p=Md(e,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+Mr.call(p,", ")+" }":"")}if(QI(e)){var m=tl?qi.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):rv.call(e);return typeof e=="object"&&!tl?Ml(m):m}if(gee(e)){for(var v="<"+mT.call(String(e.nodeName)),y=e.attributes||[],g=0;g",v}if(ov(e)){if(e.length===0)return"[]";var _=Md(e,f);return d&&!yee(_)?"["+sv(_,d)+"]":"[ "+Mr.call(_,", ")+" ]"}if(ree(e)){var x=Md(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!ZI.call(e,"cause")?"{ ["+String(e)+"] "+Mr.call(yT.call("[cause]: "+f(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Mr.call(x,", ")+" }"}if(typeof e=="object"&&s){if(ST&&typeof e[ST]=="function"&&iv)return iv(e,{depth:u-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(uee(e)){var S=[];return hT&&hT.call(e,function(Z,G){S.push(f(G,e,!0)+" => "+f(Z,e))}),ET("Map",Dh.call(e),S,d)}if(hee(e)){var T=[];return pT&&pT.call(e,function(Z){T.push(f(Z,e))}),ET("Set",Fh.call(e),T,d)}if(dee(e))return qm("WeakMap");if(pee(e))return qm("WeakSet");if(fee(e))return qm("WeakRef");if(oee(e))return Ml(f(Number(e)));if(aee(e))return Ml(f(nv.call(e)));if(see(e))return Ml(XJ.call(e));if(iee(e))return Ml(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Ol)return"{ [object globalThis] }";if(!nee(e)&&!wT(e)){var w=Md(e,f),E=_T?_T(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",M=!E&&Xt&&Object(e)===e&&Xt in e?ex.call(To(e),8,-1):I?"Object":"",z=E||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",j=z+(M||I?"["+Mr.call(yT.call([],M||[],I||[]),": ")+"] ":"");return w.length===0?j+"{}":d?j+"{"+sv(w,d)+"}":j+"{ "+Mr.call(w,", ")+" }"}return String(e)};function qI(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function tee(t){return qi.call(String(t),/"/g,""")}function ov(t){return To(t)==="[object Array]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function nee(t){return To(t)==="[object Date]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function wT(t){return To(t)==="[object RegExp]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function ree(t){return To(t)==="[object Error]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function iee(t){return To(t)==="[object String]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function oee(t){return To(t)==="[object Number]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function see(t){return To(t)==="[object Boolean]"&&(!Xt||!(typeof t=="object"&&Xt in t))}function QI(t){if(tl)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!rv)return!1;try{return rv.call(t),!0}catch{}return!1}function aee(t){if(!t||typeof t!="object"||!nv)return!1;try{return nv.call(t),!0}catch{}return!1}var lee=Object.prototype.hasOwnProperty||function(t){return t in this};function Ui(t,e){return lee.call(t,e)}function To(t){return YJ.call(t)}function cee(t){if(t.name)return t.name;var e=qJ.call(ZJ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function JI(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return eM(ex.call(t,0,e.maxStringLength),e)+r}var i=qi.call(qi.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mee);return qI(i,"single",e)}function mee(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+QJ.call(e.toString(16))}function Ml(t){return"Object("+t+")"}function qm(t){return t+" { ? }"}function ET(t,e,n,r){var i=r?sv(n,r):Mr.call(n,", ");return t+" ("+e+") {"+i+"}"}function yee(t){for(var e=0;e=0)return!1;return!0}function vee(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Mr.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Mr.call(Array(e+1),n)}}function sv(t,e){if(t.length===0)return"";var n=` +`+e.prev+e.base;return n+Mr.call(t,","+n)+` +`+e.prev}function Md(t,e){var n=ov(t),r=[];if(n){r.length=t.length;for(var i=0;i1;){var n=e.pop(),r=n.obj[n.prop];if(jo(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===Lee.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Tr[c];continue}if(c<2048){a=a+(Tr[192|c>>6]+Tr[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Tr[224|c>>12]+Tr[128|c>>6&63]+Tr[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Tr[240|c>>18]+Tr[128|c>>12&63]+Tr[128|c>>6&63]+Tr[128|c&63]}return a},zee=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i"u"&&(_=0)}if(typeof l=="function"?y=l(n,y):y instanceof Date?y=d(y):r==="comma"&&ti(y)&&(y=Ef.maybeMap(y,function(oe){return oe instanceof Date?d(oe):oe})),y===null){if(o)return a&&!p?a(n,Vt.encoder,m,"key",f):n;y=""}if(Kee(y)||Ef.isBuffer(y)){if(a){var T=p?n:a(n,Vt.encoder,m,"key",f);return[h(T)+"="+h(a(y,Vt.encoder,m,"value",f))]}return[h(n)+"="+h(String(y))]}var w=[];if(typeof y>"u")return w;var E;if(r==="comma"&&ti(y))p&&a&&(y=Ef.maybeMap(y,a)),E=[{value:y.length>0?y.join(",")||null:void 0}];else if(ti(l))E=l;else{var I=Object.keys(y);E=c?I.sort(c):I}for(var M=i&&ti(y)&&y.length===1?n+"[]":n,z=0;z"u"?Vt.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Vt.charsetSentinel,delimiter:typeof e.delimiter>"u"?Vt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Vt.encode,encoder:typeof e.encoder=="function"?e.encoder:Vt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Vt.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Vt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Vt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Vt.strictNullHandling}},Zee=function(t,e){var n=t,r=Yee(e),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ti(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;e&&e.arrayFormat in TT?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var l=TT[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var u=rM(),d=0;d0?p+h:""},nl=nM,av=Object.prototype.hasOwnProperty,qee=Array.isArray,St={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:nl.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Qee=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},oM=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Jee="utf8=%26%2310003%3B",ete="utf8=%E2%9C%93",tte=function(e,n){var r={__proto__:null},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(p=qee(p)?[p]:p),av.call(r,h)?r[h]=nl.combine(r[h],p):r[h]=p}return r},nte=function(t,e,n,r){for(var i=r?e:oM(e,n),o=t.length-1;o>=0;--o){var s,a=t[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},rte=function(e,n,r,i){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!r.plainObjects&&av.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var d=0;r.depth>0&&(l=a.exec(o))!==null&&d"u"?St.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?St.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:St.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:St.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:St.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:St.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:St.comma,decoder:typeof e.decoder=="function"?e.decoder:St.decoder,delimiter:typeof e.delimiter=="string"||nl.isRegExp(e.delimiter)?e.delimiter:St.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:St.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:St.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:St.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:St.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:St.strictNullHandling}},ote=function(t,e){var n=ite(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?tte(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s{const e="https://d1nzvsko7rbono.cloudfront.net",{r:n,g:r,b:i,collectionID:o}=t,s=[n,r,i].join(","),u={"filter-lang":"cql2-json",context:"on",filter:{op:"and",args:[{op:"=",args:[{property:"collection"},o]},{op:"t_intersects",args:[{property:"datetime"},{interval:["2023-11-11T00:00:00Z"," 2023-11-11T23:59:59Z"]}]}]}},f=(await rT.post(`${e}/mosaic/register`,u).then(y=>y.data).catch(y=>{throw console.error("Error with mosaic registration:",y.response),y})).links.find(y=>y.rel==="tilejson").href,h={post_process:"swir",assets:s},p=ute.stringify(h,{arrayFormat:"repeat"}),m=await rT.get(f,{params:new URLSearchParams(p)}).then(y=>y.data),{name:v}=m;return v};class fte extends Np{constructor(e){super(),this.tile,this.handleTileChange_=this.handleTileChange_.bind(this),this.gutter_=e.gutter||0,this.helper_=e.helper,this.loaded=!1,this.ready=!1}setTile(e){if(e!==this.tile)if(this.tile&&this.tile.removeEventListener(ce.CHANGE,this.handleTileChange_),this.tile=e,this.loaded=e.getState()===F.LOADED,this.loaded)this.uploadTile();else{if(e instanceof Xp){const n=e.getImage();n instanceof Image&&!n.crossOrigin&&(n.crossOrigin="anonymous")}e.addEventListener(ce.CHANGE,this.handleTileChange_)}}uploadTile(){Ke()}setReady(){this.ready=!0,this.dispatchEvent(ce.CHANGE)}handleTileChange_(){this.tile.getState()===F.LOADED&&(this.loaded=!0,this.uploadTile())}disposeInternal(){this.tile.removeEventListener(ce.CHANGE,this.handleTileChange_)}}const hte=fte,ix=34962,ox=34963,pte=35040,sx=35044,gte=35048,mte=5121,yte=5123,vte=5125,sM=5126,RT=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function _te(t,e){e=Object.assign({preserveDrawingBuffer:!0,antialias:!JH},e);const n=RT.length;for(let r=0;r{this.uniforms_.push({value:e.uniforms[s],location:n.getUniformLocation(this.renderTargetProgram_,s)})})}getGL(){return this.gl_}init(e){const n=this.getGL(),r=[n.drawingBufferWidth*this.scaleRatio_,n.drawingBufferHeight*this.scaleRatio_];if(n.bindFramebuffer(n.FRAMEBUFFER,this.getFrameBuffer()),n.bindRenderbuffer(n.RENDERBUFFER,this.getDepthBuffer()),n.viewport(0,0,r[0],r[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==r[0]||this.renderTargetTextureSize_[1]!==r[1]){this.renderTargetTextureSize_=r;const i=0,o=n.RGBA,s=0,a=n.RGBA,l=n.UNSIGNED_BYTE,c=null;n.bindTexture(n.TEXTURE_2D,this.renderTargetTexture_),n.texImage2D(n.TEXTURE_2D,i,o,r[0],r[1],s,a,l,c),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,this.renderTargetTexture_,0),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,r[0],r[1]),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,this.depthBuffer_)}}apply(e,n,r,i){const o=this.getGL(),s=e.size;if(o.bindFramebuffer(o.FRAMEBUFFER,n?n.getFrameBuffer():null),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,this.renderTargetTexture_),!n){const l=Fe(o.canvas);if(!e.renderTargets[l]){const c=o.getContextAttributes();c&&c.preserveDrawingBuffer&&(o.clearColor(0,0,0,0),o.clearDepth(1),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT)),e.renderTargets[l]=!0}}o.disable(o.DEPTH_TEST),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA),o.viewport(0,0,o.drawingBufferWidth,o.drawingBufferHeight),o.bindBuffer(o.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),o.useProgram(this.renderTargetProgram_),o.enableVertexAttribArray(this.renderTargetAttribLocation_),o.vertexAttribPointer(this.renderTargetAttribLocation_,2,o.FLOAT,!1,0,0),o.uniform2f(this.renderTargetUniformLocation_,s[0],s[1]),o.uniform1i(this.renderTargetTextureLocation_,0);const a=e.layerStatesArray[e.layerIndex].opacity;o.uniform1f(this.renderTargetOpacityLocation_,a),this.applyUniforms(e),r&&r(o,e),o.drawArrays(o.TRIANGLES,0,6),i&&i(o,e)}getFrameBuffer(){return this.frameBuffer_}getDepthBuffer(){return this.depthBuffer_}applyUniforms(e){const n=this.getGL();let r,i=1;this.uniforms_.forEach(function(o){if(r=typeof o.value=="function"?o.value(e):o.value,r instanceof HTMLCanvasElement||r instanceof ImageData)o.texture||(o.texture=n.createTexture()),n.activeTexture(n[`TEXTURE${i}`]),n.bindTexture(n.TEXTURE_2D,o.texture),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),r instanceof ImageData?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,r.width,r.height,0,n.UNSIGNED_BYTE,new Uint8Array(r.data)):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),n.uniform1i(o.location,i++);else if(Array.isArray(r))switch(r.length){case 2:n.uniform2f(o.location,r[0],r[1]);return;case 3:n.uniform3f(o.location,r[0],r[1],r[2]);return;case 4:n.uniform4f(o.location,r[0],r[1],r[2],r[3]);return;default:return}else typeof r=="number"&&n.uniform1f(o.location,r)})}}const AT=Pte;function cM(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function uM(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}const Oi={PROJECTION_MATRIX:"u_projectionMatrix",SCREEN_TO_WORLD_MATRIX:"u_screenToWorldMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution",ROTATION:"u_rotation",VIEWPORT_SIZE_PX:"u_viewportSizePx",PIXEL_RATIO:"u_pixelRatio",HIT_DETECTION:"u_hitDetection"},Kl={UNSIGNED_BYTE:mte,UNSIGNED_SHORT:yte,UNSIGNED_INT:vte,FLOAT:sM},$h={};function kT(t){return"shared/"+t}let IT=0;function Ate(){const t="unique/"+IT;return IT+=1,t}function kte(t){let e=$h[t];if(!e){const n=document.createElement("canvas");n.width=1,n.height=1,n.style.position="absolute",n.style.left="0",e={users:0,context:_te(n)},$h[t]=e}return e.users+=1,e.context}function Ite(t){const e=$h[t];if(!e||(e.users-=1,e.users>0))return;const n=e.context,r=n.getExtension("WEBGL_lose_context");r&&r.loseContext();const i=n.canvas;i.width=1,i.height=1,delete $h[t]}class Mte extends Op{constructor(e){super(),e=e||{},this.boundHandleWebGLContextLost_=this.handleWebGLContextLost.bind(this),this.boundHandleWebGLContextRestored_=this.handleWebGLContextRestored.bind(this),this.canvasCacheKey_=e.canvasCacheKey?kT(e.canvasCacheKey):Ate(),this.gl_=kte(this.canvasCacheKey_),this.bufferCache_={},this.extensionCache_={},this.currentProgram_=null,this.needsToBeRecreated_=!1;const n=this.gl_.canvas;n.addEventListener(Dd.LOST,this.boundHandleWebGLContextLost_),n.addEventListener(Dd.RESTORED,this.boundHandleWebGLContextRestored_),this.offsetRotateMatrix_=Wr(),this.offsetScaleMatrix_=Wr(),this.tmpMat4_=cM(),this.uniformLocationsByProgram_={},this.attribLocationsByProgram_={},this.uniforms_=[],e.uniforms&&this.setUniforms(e.uniforms),this.postProcessPasses_=e.postProcesses?e.postProcesses.map(r=>new AT({webGlContext:this.gl_,scaleRatio:r.scaleRatio,vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,uniforms:r.uniforms})):[new AT({webGlContext:this.gl_})],this.shaderCompileErrors_=null,this.startTime_=Date.now()}setUniforms(e){this.uniforms_=[],this.addUniforms(e)}addUniforms(e){for(const n in e)this.uniforms_.push({name:n,value:e[n]})}canvasCacheKeyMatches(e){return this.canvasCacheKey_===kT(e)}getExtension(e){if(e in this.extensionCache_)return this.extensionCache_[e];const n=this.gl_.getExtension(e);return this.extensionCache_[e]=n,n}bindBuffer(e){const n=this.gl_,r=Fe(e);let i=this.bufferCache_[r];if(!i){const o=n.createBuffer();i={buffer:e,webGlBuffer:o},this.bufferCache_[r]=i}n.bindBuffer(e.getType(),i.webGlBuffer)}flushBufferData(e){const n=this.gl_;this.bindBuffer(e),n.bufferData(e.getType(),e.getArray(),e.getUsage())}deleteBuffer(e){const n=this.gl_,r=Fe(e),i=this.bufferCache_[r];i&&!n.isContextLost()&&n.deleteBuffer(i.webGlBuffer),delete this.bufferCache_[r]}disposeInternal(){const e=this.gl_.canvas;e.removeEventListener(Dd.LOST,this.boundHandleWebGLContextLost_),e.removeEventListener(Dd.RESTORED,this.boundHandleWebGLContextRestored_),Ite(this.canvasCacheKey_),delete this.gl_}prepareDraw(e,n,r){const i=this.gl_,o=this.getCanvas(),s=e.size,a=e.pixelRatio;(o.width!==s[0]*a||o.height!==s[1]*a)&&(o.width=s[0]*a,o.height=s[1]*a,o.style.width=s[0]+"px",o.style.height=s[1]+"px");for(let l=this.postProcessPasses_.length-1;l>=0;l--)this.postProcessPasses_[l].init(e);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.depthRange(0,1),i.clearDepth(1),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),r?(i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL)):i.disable(i.DEPTH_TEST)}bindTexture(e,n,r){const i=this.gl_;i.activeTexture(i.TEXTURE0+n),i.bindTexture(i.TEXTURE_2D,e),i.uniform1i(this.getUniformLocation(r),n)}prepareDrawToRenderTarget(e,n,r,i){const o=this.gl_,s=n.getSize();o.bindFramebuffer(o.FRAMEBUFFER,n.getFramebuffer()),o.bindRenderbuffer(o.RENDERBUFFER,n.getDepthbuffer()),o.viewport(0,0,s[0],s[1]),o.bindTexture(o.TEXTURE_2D,n.getTexture()),o.clearColor(0,0,0,0),o.depthRange(0,1),o.clearDepth(1),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.enable(o.BLEND),o.blendFunc(o.ONE,r?o.ZERO:o.ONE_MINUS_SRC_ALPHA),i?(o.enable(o.DEPTH_TEST),o.depthFunc(o.LEQUAL)):o.disable(o.DEPTH_TEST)}drawElements(e,n){const r=this.gl_;this.getExtension("OES_element_index_uint");const i=r.UNSIGNED_INT,o=4,s=n-e,a=e*o;r.drawElements(r.TRIANGLES,s,i,a)}finalizeDraw(e,n,r){for(let i=0,o=this.postProcessPasses_.length;i{if(r=typeof o.value=="function"?o.value(e):o.value,r instanceof HTMLCanvasElement||r instanceof HTMLImageElement||r instanceof ImageData)o.texture||(o.prevValue=void 0,o.texture=n.createTexture()),this.bindTexture(o.texture,i,o.name),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(!(r instanceof HTMLImageElement)||r.complete)&&o.prevValue!==r&&(o.prevValue=r,n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r)),i++;else if(Array.isArray(r)&&r.length===6)this.setUniformMatrixValue(o.name,uM(this.tmpMat4_,r));else if(Array.isArray(r)&&r.length<=4)switch(r.length){case 2:n.uniform2f(this.getUniformLocation(o.name),r[0],r[1]);return;case 3:n.uniform3f(this.getUniformLocation(o.name),r[0],r[1],r[2]);return;case 4:n.uniform4f(this.getUniformLocation(o.name),r[0],r[1],r[2],r[3]);return;default:return}else typeof r=="number"&&n.uniform1f(this.getUniformLocation(o.name),r)})}useProgram(e,n){this.gl_.useProgram(e),this.currentProgram_=e,this.applyFrameState(n),this.applyUniforms(n)}compileShader(e,n){const r=this.gl_,i=r.createShader(n);return r.shaderSource(i,e),r.compileShader(i),i}getProgram(e,n){const r=this.gl_,i=this.compileShader(e,r.FRAGMENT_SHADER),o=this.compileShader(n,r.VERTEX_SHADER),s=r.createProgram();if(r.attachShader(s,i),r.attachShader(s,o),r.linkProgram(s),!r.getShaderParameter(i,r.COMPILE_STATUS)){const a=`Fragment shader compilation failed: ${r.getShaderInfoLog(i)}`;throw new Error(a)}if(r.deleteShader(i),!r.getShaderParameter(o,r.COMPILE_STATUS)){const a=`Vertex shader compilation failed: ${r.getShaderInfoLog(o)}`;throw new Error(a)}if(r.deleteShader(o),!r.getProgramParameter(s,r.LINK_STATUS)){const a=`GL program linking failed: ${r.getProgramInfoLog(s)}`;throw new Error(a)}return s}getUniformLocation(e){const n=Fe(this.currentProgram_);return this.uniformLocationsByProgram_[n]===void 0&&(this.uniformLocationsByProgram_[n]={}),this.uniformLocationsByProgram_[n][e]===void 0&&(this.uniformLocationsByProgram_[n][e]=this.gl_.getUniformLocation(this.currentProgram_,e)),this.uniformLocationsByProgram_[n][e]}getAttributeLocation(e){const n=Fe(this.currentProgram_);return this.attribLocationsByProgram_[n]===void 0&&(this.attribLocationsByProgram_[n]={}),this.attribLocationsByProgram_[n][e]===void 0&&(this.attribLocationsByProgram_[n][e]=this.gl_.getAttribLocation(this.currentProgram_,e)),this.attribLocationsByProgram_[n][e]}makeProjectionTransform(e,n){const r=e.size,i=e.viewState.rotation,o=e.viewState.resolution,s=e.viewState.center;return ds(n,0,0,2/(o*r[0]),2/(o*r[1]),-i,-s[0],-s[1]),n}setUniformFloatValue(e,n){this.gl_.uniform1f(this.getUniformLocation(e),n)}setUniformFloatVec2(e,n){this.gl_.uniform2fv(this.getUniformLocation(e),n)}setUniformFloatVec4(e,n){this.gl_.uniform4fv(this.getUniformLocation(e),n)}setUniformMatrixValue(e,n){this.gl_.uniformMatrix4fv(this.getUniformLocation(e),!1,n)}enableAttributeArray_(e,n,r,i,o){const s=this.getAttributeLocation(e);s<0||(this.gl_.enableVertexAttribArray(s),this.gl_.vertexAttribPointer(s,n,r,!1,i,o))}enableAttributes(e){const n=Lte(e);let r=0;for(let i=0;i=m;--v){const y=c.getTileRangeForExtentAndZ(n,v,this.tempTileRange_),g=c.getResolution(v);for(let _=y.minX;_<=y.maxX;++_)for(let x=y.minY;x<=y.maxY;++x){const S=kh(v,_,x,this.tempTileCoord_),T=lv(l,S);let w,E;if(h.containsKey(T)&&(w=h.get(T),E=w.tile),(!w||w.tile.key!==l.getKey())&&(E=l.getTile(v,_,x,e.pixelRatio,s.projection)),LT(i,E))continue;if(!w)w=this.createTileRepresentation({tile:E,grid:c,helper:this.helper,gutter:u}),h.set(T,w);else if(this.isDrawableTile_(E))w.setTile(E);else{const M=E.getInterimTile();w.setTile(M)}OT(i,w,v);const I=E.getKey();f[I]=!0,E.getState()===F.IDLE&&(e.tileQueue.isKeyQueued(I)||e.tileQueue.enqueue([E,d,c.getTileCoordCenter(S),g]))}}}beforeTilesRender(e,n){this.helper.prepareDraw(this.frameState,!n,!0)}beforeTilesMaskRender(e){return!1}renderTile(e,n,r,i,o,s,a,l,c,u,d){}renderTileMask(e,n,r,i){}drawTile_(e,n,r,i,o,s,a){if(!n.ready)return;const c=n.tile.tileCoord,u=Hi(c),d=u in s?s[u]:1,f=a.getResolution(r),h=pn(a.getTileSize(r),this.tempSize_),p=a.getOrigin(r),m=a.getTileCoordExtent(c),v=d<1?-1:MT(r);d<1&&(e.animate=!0);const y=e.viewState,g=y.center[0],_=y.center[1],x=h[0]+2*i,S=h[1]+2*i,T=x/S,w=(g-p[0])/(h[0]*f),E=(p[1]-_)/(h[1]*f),I=y.resolution/f,M=c[1],z=c[2];n7(this.tileTransform_),aE(this.tileTransform_,2/(e.size[0]*I/x),-2/(e.size[1]*I/x)),r7(this.tileTransform_,y.rotation),aE(this.tileTransform_,1,1/T),i7(this.tileTransform_,(h[0]*(M-w)-i)/x,(h[1]*(z-E)-i)/S),this.renderTile(n,this.tileTransform_,e,o,f,h,p,m,v,i,d)}renderFrame(e){this.frameState=e,this.renderComplete=!0;const n=this.helper.getGL();this.preRender(n,e);const r=e.viewState,i=this.getLayer(),o=i.getRenderSource(),s=o.getTileGridForProjection(r.projection),a=o.getGutterForProjection(r.projection),l=n0(e,e.extent),c=s.getZForResolution(r.resolution,o.zDirection),u=$te(),d=i.getPreload();if(e.nextExtent){const T=s.getZForResolution(r.nextResolution,o.zDirection),w=n0(e,e.nextExtent);this.enqueueTiles(e,w,T,u,d)}this.enqueueTiles(e,l,c,u,0),d>0&&setTimeout(()=>{this.enqueueTiles(e,l,c-1,u,d-1)},0);const f={},h=Fe(this),p=e.time;let m=!1;for(const T of u.representationsByZ[c]){const w=T.tile;if((w instanceof Za||w instanceof R_)&&w.getState()===F.EMPTY)continue;const E=w.tileCoord;if(T.ready){const z=w.getAlpha(h,p);if(z===1){w.endTransition(h);continue}m=!0;const j=Hi(E);f[j]=z}if(this.renderComplete=!1,this.findAltTiles_(s,E,c+1,u))continue;const M=s.getMinZoom();for(let z=c-1;z>=M&&!this.findAltTiles_(s,E,z,u);--z);}const v=u.representationsByZ,y=Object.keys(v).map(Number).sort(BH);if(this.beforeTilesMaskRender(e))for(let T=0,w=y.length;Tn.dispose()),e.clear()}removeHelper(){this.helper&&this.clearCache(),super.removeHelper()}disposeInternal(){super.disposeInternal(),delete this.frameState}}const zte=Nte,le={...Dte,TILE_TEXTURE_ARRAY:"u_tileTextures",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY"},Tf={TEXTURE_COORD:"a_textureCoord"},Bte=[{name:Tf.TEXTURE_COORD,size:2,type:Kl.FLOAT}];class jte extends zte{constructor(e,n){super(e,n),this.program_,this.vertexShader_=n.vertexShader,this.fragmentShader_=n.fragmentShader,this.indices_=new aM(ox,sx),this.indices_.fromArray([0,1,3,1,2,3]),this.paletteTextures_=n.paletteTextures||[]}reset(e){super.reset(e),this.vertexShader_=e.vertexShader,this.fragmentShader_=e.fragmentShader,this.paletteTextures_=e.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))}afterHelperCreated(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)}createTileRepresentation(e){return new Tte(e)}beforeTilesRender(e,n){super.beforeTilesRender(e,n),this.helper.useProgram(this.program_,e)}renderTile(e,n,r,i,o,s,a,l,c,u,d){const f=this.helper.getGL();this.helper.bindBuffer(e.coords),this.helper.bindBuffer(this.indices_),this.helper.enableAttributes(Bte);let h=0;for(;h0&&(S=l,Zn(S,i,S)),this.helper.setUniformFloatVec4(le.RENDER_EXTENT,S),this.helper.setUniformFloatValue(le.RESOLUTION,p.resolution),this.helper.setUniformFloatValue(le.ZOOM,p.zoom),this.helper.setUniformFloatValue(le.TEXTURE_PIXEL_WIDTH,m),this.helper.setUniformFloatValue(le.TEXTURE_PIXEL_HEIGHT,v),this.helper.setUniformFloatValue(le.TEXTURE_RESOLUTION,o),this.helper.setUniformFloatValue(le.TEXTURE_ORIGIN_X,a[0]+_*s[0]*o-u*o),this.helper.setUniformFloatValue(le.TEXTURE_ORIGIN_Y,a[1]-x*s[1]*o+u*o),this.helper.drawElements(0,this.indices_.getSize())}getData(e){if(!this.helper.getGL())return null;const r=this.frameState;if(!r)return null;const i=this.getLayer(),o=Cn(r.pixelToCoordinateTransform,e.slice()),s=r.viewState,a=i.getExtent();if(a&&!tu(Zi(a,s.projection),o))return null;const l=i.getSources(Oy([o]),s.resolution);let c,u,d;for(c=l.length-1;c>=0;--c)if(u=l[c],u.getState()==="ready"){if(d=u.getTileGridForProjection(s.projection),u.getWrapX())break;const h=d.getExtent();if(!h||tu(h,o))break}if(c<0)return null;const f=this.tileRepresentationCache;for(let h=d.getZForResolution(s.resolution);h>=d.getMinZoom();--h){const p=d.getTileCoordForCoordAndZ(o,h),m=lv(u,p);if(!f.containsKey(m))continue;const v=f.get(m),y=v.tile;if((y instanceof Za||y instanceof R_)&&y.getState()===F.EMPTY)return null;if(!v.loaded)continue;const g=d.getOrigin(h),_=pn(d.getTileSize(h)),x=d.getResolution(h),S=(o[0]-g[0])/x-p[1]*_[0],T=(g[1]-o[1])/x-p[2]*_[1];return v.getPixelData(S,T)}return null}disposeInternal(){const e=this.helper;e&&(e.getGL().deleteProgram(this.program_),delete this.program_,e.deleteBuffer(this.indices_)),super.disposeInternal(),delete this.indices_}}const Ute=jte;let hl=0;const bs=0,ft=1<",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette"},Kte={[$.Get]:ae(([t,e])=>e!==void 0?Hte(e.value):cn,fe(1,2),Xte),[$.Var]:ae(([t])=>t.type,fe(1,1),Yte),[$.Id]:ae(K|dr,Ll,Zte),[$.Concat]:ae(dr,fe(2,1/0),we(cn)),[$.GeometryType]:ae(dr,Ll),[$.Resolution]:ae(K,Ll),[$.Zoom]:ae(K,Ll),[$.Time]:ae(K,Ll),[$.Any]:ae(ft,fe(2,1/0),we(ft)),[$.All]:ae(ft,fe(2,1/0),we(ft)),[$.Not]:ae(ft,fe(1,1),we(ft)),[$.Equal]:ae(ft,fe(2,2),we(cn),Mo),[$.NotEqual]:ae(ft,fe(2,2),we(cn),Mo),[$.GreaterThan]:ae(ft,fe(2,2),we(cn),Mo),[$.GreaterThanOrEqualTo]:ae(ft,fe(2,2),we(cn),Mo),[$.LessThan]:ae(ft,fe(2,2),we(cn),Mo),[$.LessThanOrEqualTo]:ae(ft,fe(2,2),we(cn),Mo),[$.Multiply]:ae(t=>{let e=K|Ht;for(let n=0;n{let e=cn;for(let n=2;n{let e=Ht|K;for(let n=3;n{let e=cn;for(let n=1;nt.length===3||t.length===4?rl|Ht:rl,fe(1,1/0),we(K)),[$.Color]:ae(Ht,fe(3,4),we(K)),[$.Band]:ae(K,fe(1,3),we(K)),[$.Palette]:ae(Ht,fe(2,2),nne)};function Xte(t,e){const n=Ie(t[1],e);if(!(n instanceof Xo))throw new Error("Expected a literal argument for get operation");if(typeof n.value!="string")throw new Error("Expected a string argument for get operation");if(e.properties.add(n.value),t.length===3){const r=Ie(t[2],e);return[n,r]}return[n]}function Yte(t,e,n,r){const i=t[1];if(typeof i!="string")throw new Error("Expected a string argument for var operation");if(e.variables.add(i),!("variables"in e.style)||e.style.variables[i]===void 0)return[new Xo(cn,i)];const o=e.style.variables[i],s=Ie(o,e);if(s.value=i,r&&!Hr(r,s.type))throw new Error(`The variable ${i} has type ${Dt(s.type)} but the following type was expected: ${Dt(r)}`);return[s]}function Zte(t,e){e.featureId=!0}function Ll(t,e){const n=t[0];if(t.length!==1)throw new Error(`Expected no arguments for ${n} operation`);return[]}function fe(t,e){return function(n,r){const i=n[0],o=n.length-1;if(t===e){if(o!==t){const s=t===1?"":"s";throw new Error(`Expected ${t} argument${s} for ${i}, got ${o}`)}}else if(oe){const s=e===1/0?`${t} or more`:`${t} to ${e}`;throw new Error(`Expected ${s} arguments for ${i}, got ${o}`)}}}function we(t){return function(e,n){const r=e[0],i=e.length-1,o=new Array(i);for(let s=0;s4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return`vec${t.length}(${t.map(tg).join(", ")})`}function ane(t){const e=Sh(t),n=e.length>3?e[3]:1;return pM([e[0]/255*n,e[1]/255*n,e[2]/255*n,n])}const r0={};let lne=0;function gM(t){return t in r0||(r0[t]=lne++),r0[t]}function cne(t){return tg(gM(t))}function mM(t){return"u_var_"+t}function une(){return{inFragmentShader:!1,variables:{},properties:{},functions:{},bandCount:0,style:{}}}const i0="getBandValue",yM="u_paletteTextures";function dne(t,e,n,r){const i=Ie(t,n,e);if($u(i.type,bs))throw new Error("No matching type was found");if(!Hr(e,i.type)){const o=Dt(e),s=Dt(i.type);throw new Error(`Expected expression to be of type ${o}, got ${s}`)}return lx(i,e,r)}function be(t){return(e,n,r)=>{const i=n.args.length,o=new Array(i);for(let s=0;s{const r=e.args[0].value;return r in t.properties||(t.properties[r]={name:r,type:e.type}),(t.inFragmentShader?"v_prop_":"a_prop_")+r},[$.GeometryType]:(t,e,n)=>{const r="geometryType",i=a=>{const l=a.getType();switch(l){case"Point":case"LineString":case"Polygon":return l;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return l.substring(5);case"Circle":return"Polygon";case"GeometryCollection":return i(a.getGeometries()[0])}};return r in t.properties||(t.properties[r]={name:r,type:dr,evaluator:a=>i(a.getGeometry())}),(t.inFragmentShader?"v_prop_":"a_prop_")+r},[$.Var]:(t,e)=>{const r=e.args[0].value;return r in t.variables||(t.variables[r]={name:r,type:e.type}),mM(r)},[$.Resolution]:()=>"u_resolution",[$.Zoom]:()=>"u_zoom",[$.Time]:()=>"u_time",[$.Any]:be(t=>`(${t.join(" || ")})`),[$.All]:be(t=>`(${t.join(" && ")})`),[$.Not]:be(([t])=>`(!${t})`),[$.Equal]:be(([t,e])=>`(${t} == ${e})`),[$.NotEqual]:be(([t,e])=>`(${t} != ${e})`),[$.GreaterThan]:be(([t,e])=>`(${t} > ${e})`),[$.GreaterThanOrEqualTo]:be(([t,e])=>`(${t} >= ${e})`),[$.LessThan]:be(([t,e])=>`(${t} < ${e})`),[$.LessThanOrEqualTo]:be(([t,e])=>`(${t} <= ${e})`),[$.Multiply]:be(t=>`(${t.join(" * ")})`),[$.Divide]:be(([t,e])=>`(${t} / ${e})`),[$.Add]:be(t=>`(${t.join(" + ")})`),[$.Subtract]:be(([t,e])=>`(${t} - ${e})`),[$.Clamp]:be(([t,e,n])=>`clamp(${t}, ${e}, ${n})`),[$.Mod]:be(([t,e])=>`mod(${t}, ${e})`),[$.Pow]:be(([t,e])=>`pow(${t}, ${e})`),[$.Abs]:be(([t])=>`abs(${t})`),[$.Floor]:be(([t])=>`floor(${t})`),[$.Ceil]:be(([t])=>`ceil(${t})`),[$.Round]:be(([t])=>`floor(${t} + 0.5)`),[$.Sin]:be(([t])=>`sin(${t})`),[$.Cos]:be(([t])=>`cos(${t})`),[$.Atan]:be(([t,e])=>e!==void 0?`atan(${t}, ${e})`:`atan(${t})`),[$.Sqrt]:be(([t])=>`sqrt(${t})`),[$.Match]:be(t=>{const e=t[0],n=t[t.length-1];let r=null;for(let i=t.length-3;i>=1;i-=2){const o=t[i],s=t[i+1];r=`(${e} == ${o} ? ${s} : ${r||n})`}return r}),[$.Between]:be(([t,e,n])=>`(${t} >= ${e} && ${t} <= ${n})`),[$.Interpolate]:be(([t,e,...n])=>{let r="";for(let i=0;i{const e=t[t.length-1];let n=null;for(let r=t.length-3;r>=0;r-=2){const i=t[r],o=t[r+1];n=`(${i} ? ${o} : ${n||e})`}return n}),[$.In]:be(([t,...e],n)=>{const r=sne("in",n),i=[];for(let o=0;o`vec${t.length}(${t.join(", ")})`),[$.Color]:be(t=>{const e=t.slice(0,3).map(r=>`${r} / 255.0`);return t.length===3?`vec4(${e.join(", ")}, 1.0)`:`(${t[3]} * vec4(${e.join(", ")}, 1.0))`}),[$.Band]:be(([t,e,n],r)=>{if(!(i0 in r.functions)){let i="";const o=r.bandCount||1;for(let s=0;s{const[n,...r]=e.args,i=r.length,o=new Uint8Array(i*4);for(let c=0;c0)return tg(t.value);if((t.type&ft)>0)return t.value.toString();if((t.type&dr)>0)return cne(t.value.toString());if((t.type&Ht)>0)return ane(t.value);if((t.type&rl)>0)return pM(t.value);throw new Error(`Unexpected expression ${t.value} (expected type ${Dt(e)})`)}function Us(t,e,n){const r=Wte();return r.style=t.style,dne(e,n,r,t)}function FT(t,e){const n=` + attribute vec2 ${Tf.TEXTURE_COORD}; + uniform mat4 ${le.TILE_TRANSFORM}; + uniform float ${le.TEXTURE_PIXEL_WIDTH}; + uniform float ${le.TEXTURE_PIXEL_HEIGHT}; + uniform float ${le.TEXTURE_RESOLUTION}; + uniform float ${le.TEXTURE_ORIGIN_X}; + uniform float ${le.TEXTURE_ORIGIN_Y}; + uniform float ${le.DEPTH}; + + varying vec2 v_textureCoord; + varying vec2 v_mapCoord; + + void main() { + v_textureCoord = ${Tf.TEXTURE_COORD}; + v_mapCoord = vec2( + ${le.TEXTURE_ORIGIN_X} + ${le.TEXTURE_RESOLUTION} * ${le.TEXTURE_PIXEL_WIDTH} * v_textureCoord[0], + ${le.TEXTURE_ORIGIN_Y} - ${le.TEXTURE_RESOLUTION} * ${le.TEXTURE_PIXEL_HEIGHT} * v_textureCoord[1] + ); + gl_Position = ${le.TILE_TRANSFORM} * vec4(${Tf.TEXTURE_COORD}, ${le.DEPTH}, 1.0); + } + `,r={...une(),inFragmentShader:!0,bandCount:e,style:t},i=[];if(t.color!==void 0){const d=Us(r,t.color,Ht);i.push(`color = ${d};`)}if(t.contrast!==void 0){const d=Us(r,t.contrast,K);i.push(`color.rgb = clamp((${d} + 1.0) * color.rgb - (${d} / 2.0), vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(t.exposure!==void 0){const d=Us(r,t.exposure,K);i.push(`color.rgb = clamp((${d} + 1.0) * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}if(t.saturation!==void 0){const d=Us(r,t.saturation,K);i.push(` + float saturation = ${d} + 1.0; + float sr = (1.0 - saturation) * 0.2126; + float sg = (1.0 - saturation) * 0.7152; + float sb = (1.0 - saturation) * 0.0722; + mat3 saturationMatrix = mat3( + sr + saturation, sr, sr, + sg, sg + saturation, sg, + sb, sb, sb + saturation + ); + color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0)); + `)}if(t.gamma!==void 0){const d=Us(r,t.gamma,K);i.push(`color.rgb = pow(color.rgb, vec3(1.0 / ${d}));`)}if(t.brightness!==void 0){const d=Us(r,t.brightness,K);i.push(`color.rgb = clamp(color.rgb + ${d}, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));`)}const o={},s=Object.keys(r.variables).length;if(s>1&&!t.variables)throw new Error(`Missing variables in style (expected ${r.variables})`);for(let d=0;d ${le.RENDER_EXTENT}[2] || + v_mapCoord[1] > ${le.RENDER_EXTENT}[3] + ) { + discard; + } + + vec4 color = texture2D(${le.TILE_TEXTURE_ARRAY}[0], v_textureCoord); + + ${i.join(` +`)} + + gl_FragColor = color; + gl_FragColor.rgb *= gl_FragColor.a; + gl_FragColor *= ${le.TRANSITION_ALPHA}; + }`;return{vertexShader:n,fragmentShader:u,uniforms:o,paletteTextures:r.paletteTextures}}class vM extends Yk{constructor(e){e=e?Object.assign({},e):{};const n=e.style||{};delete e.style;const r=e.cacheSize;delete e.cacheSize,super(e),this.sources_=e.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=n,this.cacheSize_=r,this.styleVariables_=this.style_.variables||{},this.addChangeListener(Ce.SOURCE,this.handleSourceUpdate_)}getSources(e,n){const r=this.getSource();return this.sources_?typeof this.sources_=="function"?this.sources_(e,n):this.sources_:r?[r]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){const e=this.getRenderSource();return e?e.getState():"undefined"}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache(),this.getSource()&&this.setStyle(this.style_)}getSourceBandCount_(){const e=Number.MAX_SAFE_INTEGER,n=this.getSources([-e,-e,e,e],e);return n&&n.length&&"bandCount"in n[0]?n[0].bandCount:4}createRenderer(){const e=FT(this.style_,this.getSourceBandCount_());return new Ute(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.cacheSize_,paletteTextures:e.paletteTextures})}renderSources(e,n){const r=this.getRenderer();let i;for(let o=0,s=n.length;o{c.getState()=="ready"&&(c.removeEventListener("change",d),this.changed())};c.addEventListener("change",d)}o=o&&u=="ready"}const s=this.renderSources(e,i);if(this.getRenderer().renderComplete&&o)return this.renderedResolution_=r.resolution,s;if(this.renderedResolution_>.5*r.resolution){const a=this.getSources(e.extent,this.renderedResolution_).filter(l=>!i.includes(l));if(a.length>0)return this.renderSources(e,a)}return s}setStyle(e){this.styleVariables_=e.variables||{},this.style_=e;const n=FT(this.style_,this.getSourceBandCount_());this.getRenderer().reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}}vM.prototype.dispose;const hne=vM,$T=async t=>{await dte(t);const{id:e}=t,n="https://kv9drwgv6l.execute-api.us-west-2.amazonaws.com/mosaic/tiles/e8fc0cdcadc40f9de03fa907de071a9e/WGS1984Quad/12/2342/1161@1x.tif?pixel_selection=first&assets=B07&assets=B05&assets=B04&unscale=false&resampling=nearest&post_process=swir",r="https://kv9drwgv6l.execute-api.us-west-2.amazonaws.com/mosaic/tiles/e8fc0cdcadc40f9de03fa907de071a9e/WGS1984Quad/12/2342/1163@1x.tif?pixel_selection=first&assets=B07&assets=B05&assets=B04&unscale=false&resampling=nearest",i=t.id==="hls_landsat_firms_swir"?n:r,o=()=>({color:["array",["/",["band",1],255],["/",["band",2],255],["/",["band",3],255],1]}),s=new Bq({sources:[{url:i}]});return new hne({source:s,className:e,id:e,style:o})},pne={id:"VIIRS_SNPP_CorrectedReflectance_TrueColor",name:"VIIRS_SNPP_CorrectedReflectance_TrueColor",title:"Corrected Reflectance (True Color)",type:"wmts",format:"image/jpeg",period:"daily",startDate:"2015-11-24T00:00:00Z",dateRanges:[{startDate:"2015-11-24T00:00:00Z",endDate:"2017-03-29T00:00:00Z",dateInterval:"1"},{startDate:"2017-04-02T00:00:00Z",endDate:"2020-12-25T00:00:00Z",dateInterval:"1"},{startDate:"2020-12-27T00:00:00Z",endDate:"2022-07-26T00:00:00Z",dateInterval:"1"},{startDate:"2022-08-23T00:00:00Z",endDate:"2022-10-24T00:00:00Z",dateInterval:"1"}],projections:{geographic:{source:"GIBS:geographic",matrixSet:"250m"},antarctic:{source:"GIBS:antarctic",matrixSet:"250m"},arctic:{source:"GIBS:arctic",matrixSet:"250m"}},conceptIds:[{shortName:"VNP02IMG_NRT",title:"VIIRS/NPP Imagery Resolution 6-Min L1B Swath 375m NRT",type:"NRT",value:"C2185504759-LANCEMODIS",version:"2"},{shortName:"VNP03IMG_NRT",title:"VIIRS/NPP Imagery Resolution Terrain-Corrected Geolocation 6-Min L1 Swath 375m NRT",type:"NRT",value:"C2185522599-LANCEMODIS",version:"2"},{shortName:"VNP02MOD_NRT",title:"VIIRS/NPP Moderate Resolution Bands L1B 6-Min Swath 750 m NRT",type:"NRT",value:"C2185497928-LANCEMODIS",version:"2"},{shortName:"VNP03MOD_NRT",title:"VIIRS/NPP Moderate Resolution Terrain-Corrected Geolocation 6-Min L1 Swath 750m NRT",type:"NRT",value:"C2185511251-LANCEMODIS",version:"2"}],dataCenter:["MODAPS SIPS"],daynight:["day"],layerPeriod:"Daily",ongoing:!0,orbitDirection:["ascending"],orbitTracks:["OrbitTracks_Suomi_NPP_Ascending"],subtitle:"Suomi NPP / VIIRS",description:"viirs/VIIRS_SNPP_CorrectedReflectance_TrueColor",tags:"natural color cr s-npp snpp",layergroup:"Corrected Reflectance",group:"baselayers",wrapadjacentdays:!0},gne={id:"Reference_Features_15m",type:"wmts",format:"image/png",projections:{geographic:{source:"GIBS:geographic",matrixSet:"15.625m",subtitle:"© OpenStreetMap contributors",tags:"borders reference osm"},arctic:{id:"Reference_Features",tags:"osm reference, country, countries, state, province",source:"GIBS:arctic",matrixSet:"250m"}},ongoing:!1,subtitle:"© OpenStreetMap contributors, Natural Earth",title:"Coastlines / Borders / Roads",description:"reference/Reference_Features_15m",tags:"osm reference, country, countries, state, province",group:"overlays",layergroup:"Reference",wrapX:!0},mne={id:"Reference_Labels_15m",type:"wmts",format:"image/png",projections:{geographic:{source:"GIBS:geographic",matrixSet:"15.625m"},arctic:{id:"Reference_Labels",tags:"osm reference, country, countries, state, province, cities, city",source:"GIBS:arctic",matrixSet:"250m"}},ongoing:!1,subtitle:"© OpenStreetMap contributors, Natural Earth",title:"Place Labels",description:"reference/Reference_Labels_15m",tags:"osm reference, country, countries, state, province, cities, city, towns, town, lakes, lake, parks, park, airports, airport",group:"overlays",layergroup:"Reference",noTransition:!0,wrapX:!0},yne={id:"hls_landsat_firms_swir",name:"hls_landsat_firms",title:"HLS Landsat FIRMS SWIR",r:"B07",g:"B05",b:"B04",collectionID:"HLSL30"},vne={id:"hls_landsat_firms_no_swir",name:"hls_landsat_firms",title:"HLS Landsat FIRMS NO SWIR",r:"B07",g:"B05",b:"B04",collectionID:"HLSL30"},_ne=()=>{const{map:t,setMap:e}=C.useContext(Tu),n=C.useRef();return C.useEffect(()=>{const r=Fm(pne),i=Fm(gne),o=Fm(mne),s=new WX({target:n.current,layers:[r,i,o],view:new Dr({center:[-77.0369,38.9072],zoom:12.5,projection:"EPSG:4326"})});return s.on("moveend",()=>{e(s)}),e(s),(async l=>{const c=await $T(yne),u=await $T(vne);l.addLayer(c),l.addLayer(u)})(s),()=>s.setTarget(void 0)},[]),k.jsx("div",{ref:n,style:{height:"100vh",width:"67%"}})};function xne(){return k.jsx(OW,{children:k.jsxs(po,{id:"app-container",children:[k.jsx($H,{}),k.jsx(_ne,{})]})})}const bne=gH({reducer:{mapState:IH}});Ry.createRoot(document.getElementById("root")).render(k.jsx(gn.StrictMode,{children:k.jsx(IW,{store:bne,children:k.jsx(c9,{children:k.jsx(xne,{})})})}));export{$ne as L,Nne as a,fs as g}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = ["assets/raw-FjKAlyiw.js","assets/basedecoder-ZA-T3ZBw.js","assets/lzw-NamZKYVt.js","assets/jpeg-rjh0axXg.js","assets/deflate-EZWV29Lt.js","assets/pako.esm-1A7OWKUb.js","assets/packbits-65YHJGuf.js","assets/lerc-gwbOzx28.js","assets/webimage-NiQ987z3.js"] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} \ No newline at end of file diff --git a/assets/jpeg-rjh0axXg.js b/assets/jpeg-rjh0axXg.js new file mode 100644 index 0000000..139578c --- /dev/null +++ b/assets/jpeg-rjh0axXg.js @@ -0,0 +1 @@ +import{B as re}from"./basedecoder-ZA-T3ZBw.js";const O=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),Y=4017,Z=799,$=3406,N=2276,Q=1567,W=3784,R=5793,K=2896;function ne(q,l){let o=0;const u=[];let T=16;for(;T>0&&!q[T-1];)--T;u.push({children:[],index:0});let w=u[0],C;for(let t=0;t0;)w=u.pop();for(w.index++,u.push(w);u.length<=t;)u.push(C={children:[],index:0}),w.children[w.index]=C.children,w=C;o++}t+10)return d--,i>>d&1;if(i=q[b++],i===255){const a=q[b++];if(a)throw new Error(`unexpected marker: ${(i<<8|a).toString(16)}`)}return d=7,i>>>7}function x(a){let f=a,p;for(;(p=m())!==null;){if(f=f[p],typeof f=="number")return f;if(typeof f!="object")throw new Error("invalid huffman sequence")}return null}function E(a){let f=a,p=0;for(;f>0;){const L=m();if(L===null)return;p=p<<1|L,--f}return p}function k(a){const f=E(a);return f>=1<>4;if(y===0){if(S<15)break;D+=16}else{D+=S;const I=O[D];f[I]=k(y),D++}}}function v(a,f){const p=x(a.huffmanTableDC),L=p===0?0:k(p)<0){n--;return}let p=w;const L=C;for(;p<=L;){const D=x(a.huffmanTableAC),P=D&15,y=D>>4;if(P===0){if(y<15){n=E(y)+(1<>4,I===0)D<15?(n=E(D)+(1<=65488&&z<=65495)b+=2;else break}return b-r}function ie(q,l){const o=[],{blocksPerLine:u,blocksPerColumn:T}=l,w=u<<3,C=new Int32Array(64),t=new Uint8Array(64);function h(F,c,r){const b=l.quantizationTable;let i,d,m,x,E,k,A,v,s;const n=r;let g;for(g=0;g<64;g++)n[g]=F[g]*b[g];for(g=0;g<8;++g){const e=8*g;if(n[1+e]===0&&n[2+e]===0&&n[3+e]===0&&n[4+e]===0&&n[5+e]===0&&n[6+e]===0&&n[7+e]===0){s=R*n[0+e]+512>>10,n[0+e]=s,n[1+e]=s,n[2+e]=s,n[3+e]=s,n[4+e]=s,n[5+e]=s,n[6+e]=s,n[7+e]=s;continue}i=R*n[0+e]+128>>8,d=R*n[4+e]+128>>8,m=n[2+e],x=n[6+e],E=K*(n[1+e]-n[7+e])+128>>8,v=K*(n[1+e]+n[7+e])+128>>8,k=n[3+e]<<4,A=n[5+e]<<4,s=i-d+1>>1,i=i+d+1>>1,d=s,s=m*W+x*Q+128>>8,m=m*Q-x*W+128>>8,x=s,s=E-A+1>>1,E=E+A+1>>1,A=s,s=v+k+1>>1,k=v-k+1>>1,v=s,s=i-x+1>>1,i=i+x+1>>1,x=s,s=d-m+1>>1,d=d+m+1>>1,m=s,s=E*N+v*$+2048>>12,E=E*$-v*N+2048>>12,v=s,s=k*Z+A*Y+2048>>12,k=k*Y-A*Z+2048>>12,A=s,n[0+e]=i+v,n[7+e]=i-v,n[1+e]=d+A,n[6+e]=d-A,n[2+e]=m+k,n[5+e]=m-k,n[3+e]=x+E,n[4+e]=x-E}for(g=0;g<8;++g){const e=g;if(n[1*8+e]===0&&n[2*8+e]===0&&n[3*8+e]===0&&n[4*8+e]===0&&n[5*8+e]===0&&n[6*8+e]===0&&n[7*8+e]===0){s=R*r[g+0]+8192>>14,n[0*8+e]=s,n[1*8+e]=s,n[2*8+e]=s,n[3*8+e]=s,n[4*8+e]=s,n[5*8+e]=s,n[6*8+e]=s,n[7*8+e]=s;continue}i=R*n[0*8+e]+2048>>12,d=R*n[4*8+e]+2048>>12,m=n[2*8+e],x=n[6*8+e],E=K*(n[1*8+e]-n[7*8+e])+2048>>12,v=K*(n[1*8+e]+n[7*8+e])+2048>>12,k=n[3*8+e],A=n[5*8+e],s=i-d+1>>1,i=i+d+1>>1,d=s,s=m*W+x*Q+2048>>12,m=m*Q-x*W+2048>>12,x=s,s=E-A+1>>1,E=E+A+1>>1,A=s,s=v+k+1>>1,k=v-k+1>>1,v=s,s=i-x+1>>1,i=i+x+1>>1,x=s,s=d-m+1>>1,d=d+m+1>>1,m=s,s=E*N+v*$+2048>>12,E=E*$-v*N+2048>>12,v=s,s=k*Z+A*Y+2048>>12,k=k*Y-A*Z+2048>>12,A=s,n[0*8+e]=i+v,n[7*8+e]=i-v,n[1*8+e]=d+A,n[6*8+e]=d-A,n[2*8+e]=m+k,n[5*8+e]=m-k,n[3*8+e]=x+E,n[4*8+e]=x-E}for(g=0;g<64;++g){const e=128+(n[g]+8>>4);e<0?c[g]=0:e>255?c[g]=255:c[g]=e}}for(let F=0;F>4)if(F>>4===1)for(let r=0;r<64;r++){const b=O[r];c[b]=u()}else throw new Error("DQT: invalid table spec");else for(let r=0;r<64;r++){const b=O[r];c[b]=l[o++]}this.quantizationTables[F&15]=c}break}case 65472:case 65473:case 65474:{u();const t={extended:C===65473,progressive:C===65474,precision:l[o++],scanLines:u(),samplesPerLine:u(),components:{},componentsOrder:[]},h=l[o++];let F;for(let c=0;c>4,b=l[o+1]&15,i=l[o+2];t.componentsOrder.push(F),t.components[F]={h:r,v:b,quantizationIdx:i},o+=3}w(t),this.frames.push(t);break}case 65476:{const t=u();for(let h=2;h>4?this.huffmanTablesAC[F&15]=ne(c,b):this.huffmanTablesDC[F&15]=ne(c,b)}break}case 65501:u(),this.resetInterval=u();break;case 65498:{u();const t=l[o++],h=[],F=this.frames[0];for(let d=0;d>4],m.huffmanTableAC=this.huffmanTablesAC[x&15],h.push(m)}const c=l[o++],r=l[o++],b=l[o++],i=ce(l,o,F,h,this.resetInterval,c,r,b>>4,b&15);o+=i;break}case 65535:l[o]!==255&&o--;break;default:if(l[o-3]===255&&l[o-2]>=192&&l[o-2]<=254){o-=3;break}throw new Error(`unknown JPEG marker ${C.toString(16)}`)}C=u()}}getResult(){const{frames:l}=this;if(this.frames.length===0)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(let c=0;c>3],q<<=l&7),h=0;h>3]),q&128?(F&&(F[l]=1),i=k.encoding<2?M[c++]:N,e=e>i?i:e,t[l++]=i):(F&&(F[l]=0),t[l++]=g),q<<=1;l+=y}else if(k.encoding<2)for(U=0;Ui?i:e,t[l++]=i;l+=y}else for(e=e>N?N:e,U=0;U0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var o=B.getInt16(0,!0),r=2,s=0;do{if(o>0)for(;o--;)C[s++]=B.getUint8(r++);else{var f=B.getUint8(r++);for(o=-o;o--;)C[s++]=f}o=B.getInt16(r,!0),r+=2}while(r0?1:0),F=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(t*F);for(var S=0,h=0;h3)throw"Invalid block encoding ("+w.encoding+")";if(w.encoding===2){a++;continue}if(n!==0&&n!==2){if(n>>=6,w.offsetType=n,n===2)w.offset=B.getInt8(1),G++;else if(n===1)w.offset=B.getInt16(1,!0),G+=2;else if(n===0)w.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(w.encoding===1)if(n=B.getUint8(G),G++,w.bitsPerPixel=n&63,n>>=6,w.numValidPixelsType=n,n===2)w.numValidPixels=B.getUint8(G),G++;else if(n===1)w.numValidPixels=B.getUint16(G,!0),G+=2;else if(n===0)w.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,w.encoding!==3){var l,y;if(w.encoding===0){var k=(g.pixels.numBytes-1)/4;if(k!==Math.floor(k))throw"uncompressed block has invalid length";l=new ArrayBuffer(k*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,k*4));var M=new Float32Array(l);w.rawData=M,a+=k*4}else if(w.encoding===1){var c=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),N=Math.ceil(c/4);l=new ArrayBuffer(N*4),y=new Uint8Array(l),y.set(new Uint8Array(I,a,c)),w.stuffedData=new Uint32Array(l),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,D,B,C){var o=(1<=a)e=i>>>f-a&o,f-=a;else{var S=a-f;e=(i&o)<>>f}B[s]=e=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=Q[f];else for(t=Math.ceil((B-g)/D),r=0;r=I?(f=e>>>s-I&C,s-=I):(i=I-s,f=(e&C)<>>s),A[r]=f=A?(s=f>>>r-A&D,r-=A):(o=A-r,s=(f&D)<>>r),e[C]=s=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=I?(e=i>>>f&C,s-=I,f+=I):(t=I-s,e=i>>>f&C,i=E[o++],s=32-t,e|=(i&(1<=A?(s=e>>>f&D,r-=A,f+=A):(o=A-r,s=e>>>f&D,e=E[B++],r=32-o,s|=(e&(1<=I?(C=o>>>B-I&Q,B-=I):(r=I-B,C=(o&Q)<>>B),A[D]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(o=r>>>C&Q,B-=I,C+=I):(s=I-B,o=r>>>C&Q,r=E[g++],B=32-s,o|=(r&(1<=359?359:Q;Q-=D;do A+=E[g++]<<8,I+=A+=E[g++];while(--D);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),D=g.getInt32(0,!0);Q.fileVersion=D,I+=4,D>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,D>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(D>=3&&(C=D>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),D=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),D=new DataView(E,I,B.numBytes);var r=D.getInt16(0,!0),s=2,f=0,e=0;do{if(r>0)for(;r--;)C[f++]=D.getUint8(s++);else for(e=D.getUint8(s++),r=-r;r--;)C[f++]=e;r=D.getInt16(s,!0),s+=2}while(s>3],i<<=t&7):i=C[t>>3],i&128&&(o[t]=1);A.pixels.resultMask=o,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,D=g.numDims,B=g.width*g.height,C=g.imageType,o=g.numValidPixel*L.getDataTypeSize(C)*D,r,s=A.pixels.resultMask;if(I===Uint8Array)r=new Uint8Array(E,Q,o);else{var f=new ArrayBuffer(o),e=new Uint8Array(f);e.set(new Uint8Array(E,Q,o)),r=new I(f)}if(r.length===B*D)a?A.pixels.resultPixels=L.swapDimensionOrder(r,B,D,I,!0):A.pixels.resultPixels=r;else{A.pixels.resultPixels=new I(B*D);var i=0,t=0,F=0,S=0;if(D>1){if(a){for(t=0;t=B)return!1;var C=new Uint32Array(B-D);L.decodeBits(E,A,C);var o=[],r,s,f,e;for(r=D;r0&&(o[s].second=G<>>32-e,32-U>=e?(U+=e,U===32&&(U=0,R++,G=h[R])):(U+=e-32,R++,G=h[R],o[s].second|=G>>>32-U));var w=0,n=0,l=new d;for(r=0;r=I?n=I:n=w;var y=[],k,M,c,N,q,m;for(r=D;r0)if(k=[e,s],e<=n)for(M=o[s].second<=0;N--)q=M>>>N&1,q?(m.right||(m.right=new d),m=m.right):(m.left||(m.left=new d),m=m.left),N===0&&!m.val&&(m.val=k[1]);return{decodeLut:y,numBitsLUTQick:n,numBitsLUT:w,tree:l,stuffedData:h,srcPtr:R,bitPos:U}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,D=A.headerInfo.height,B=A.headerInfo.width,C=B*D,o=this.readHuffmanTree(E,A),r=o.decodeLut,s=o.tree,f=o.stuffedData,e=o.srcPtr,i=o.bitPos,t=o.numBitsLUTQick,F=o.numBitsLUT,S=A.headerInfo.imageType===0?128:0,h,U,G,R=A.pixels.resultMask,w,n,l,y,k,M,c,N=0;i>0&&(e++,i=0);var q=f[e],m=A.encodeMode===1,O=new I(C*g),v=O,Y;if(g<2||m){for(Y=0;Y1&&(v=new I(O.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*D)for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0?G+=N:y>0?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,m?(k>0&&R[M-1]?G+=N:y>0&&R[M-B]?G+=v[M-B]:G+=N,G&=255,v[M]=G,N=G):v[M]=G}}else for(M=0,y=0;y>>32-t,n=w,32-i>>64-i-t,n=w),r[n])U=r[n][1],i+=r[n][0];else for(w=q<>>32-F,n=w,32-i>>64-i-F,n=w),h=s,c=0;c>>F-c-1&1,h=l?h.right:h.left,!(h.left||h.right)){U=h.val,i=i+c+1;break}i>=32&&(i-=32,e++,q=f[e]),G=U-S,v[M]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=O,g>1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(O,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,D=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,o=new DataView(E,A.ptr,C),r=o.getUint8(0);B++;var s=r>>6,f=s===0?4:3-s,e=(r&32)>0,i=r&31,t=0;if(f===1)t=o.getUint8(B),B++;else if(f===2)t=o.getUint16(B,!0),B+=2;else if(f===4)t=o.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var F=2*g.maxZError,S,h,U,G,R,w,n,l,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,l=o.getUint8(B),B++,G=Math.ceil((l-1)*i/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),A.ptr+=B,U.set(new Uint8Array(E,A.ptr,G)),n=new Uint32Array(h),A.ptr+=G,y=0;l-1>>>y;)y++;G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?w=u.unstuffLUT2(n,i,l-1,a,F,k):w=u.unstuffLUT(n,i,l-1,a,F,k),D>=3?u.unstuff2(S,I,y,t,w):u.unstuff(S,I,y,t,w)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(t*y/8),R=Math.ceil(G/4),h=new ArrayBuffer(R*4),U=new Uint8Array(h),U.set(new Uint8Array(E,A.ptr,G)),S=new Uint32Array(h),A.ptr+=G,D>=3?a==null?u.originalUnstuff2(S,I,y,t):u.unstuff2(S,I,y,t,!1,a,F,k):a==null?u.originalUnstuff(S,I,y,t):u.unstuff(S,I,y,t,!1,a,F,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,D=Q.height,B=g*D,C=Q.microBlockSize,o=Q.imageType,r=L.getDataTypeSize(o),s=Math.ceil(g/C),f=Math.ceil(D/C);A.pixels.numBlocksY=f,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,t=0,F=0,S=0,h=0,U=0,G=0,R=0,w=0,n=0,l=0,y=0,k=0,M=0,c=0,N,q,m,O,v,Y,P=new I(C*C),eA=D%C||C,aA=g%C||C,AA,b,$=Q.numDims,W,K=A.pixels.resultMask,H=A.pixels.resultPixels,rA=Q.fileVersion,CA=rA>=5?14:15,p,IA=Q.zMax,V;for(t=0;t1?(V=H,n=t*g*C+F*C,H=new I(A.pixels.resultPixels.buffer,B*W*r,B),IA=Q.maxValues[W]):V=null,U=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,U)),q={},c=0,G=N.getUint8(0),c++,p=Q.fileVersion>=5?G&4:0,R=G>>6&255,w=G>>2&CA,w!==(F*C>>3&CA)||p&&W===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(p)if(K)for(e=0;e1&&!a&&(A.pixels.resultPixels=L.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:L.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,D=E.headerInfo.height*E.headerInfo.width,B=0,C=0,o=0,r=E.pixels.resultMask,s=E.pixels.resultPixels;if(r)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,D=0,B=0,C=0,o=E;if(I>1)if(o=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+D;L.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)L.constructConstantSurface(Q,o);else if(D>=4&&L.checkMinMaxRanges(E,Q))L.constructConstantSurface(Q,o);else{var r=new DataView(E,Q.ptr,2),s=r.getUint8(0);if(Q.ptr++,s)L.readDataOneSweep(E,Q,B,o);else if(D>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var f=r.getUint8(1);if(Q.ptr++,Q.encodeMode=f,f>2||D<4&&f>1)throw"Invalid Huffman flag "+f;f?L.readHuffman(E,Q,B,o):L.readTiles(E,Q,B,o)}else L.readTiles(E,Q,B,o)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&L.isValidPixelValue(g.imageType,I)){var t=Q.pixels.resultMask;for(a=0;a1&&(C&&D.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&r++),a++,o.pixels.push(s.pixelData),o.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var f,e,i;if(I>1&&r>1){for(i=o.width*o.height,o.bandMasks=D,C=new Uint8Array(i),C.set(D[0]),f=1;fJ.arrayBuffer()).then(J=>WebAssembly.instantiate(J,BA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(EA,"base64"),BA).then(this._init),_)}_init(J){x=J.instance,BA.env.emscripten_notify_memory_growth(0)}decode(J,T=0){if(!x)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Z=J.byteLength,X=x.exports.malloc(Z);QA.set(J,X),T=T||Number(x.exports.ZSTD_findDecompressedSize(X,Z));const u=x.exports.malloc(T),L=x.exports.ZSTD_decompress(u,T,X,Z),d=QA.slice(u,u+L);return x.exports.free(X),x.exports.free(u),d}}const EA="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH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iABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYC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ACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAA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gwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEI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IAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCv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AABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",hA=new wA;class lA extends nA{constructor(J){super(),this.planarConfiguration=typeof J.PlanarConfiguration<"u"?J.PlanarConfiguration:1,this.samplesPerPixel=typeof J.SamplesPerPixel<"u"?J.SamplesPerPixel:1,this.addCompression=J.LercParameters[DA.AddCompression]}decodeBlock(J){switch(this.addCompression){case gA.None:break;case gA.Deflate:J=oA(new Uint8Array(J)).buffer;break;case gA.Zstandard:J=hA.decode(new Uint8Array(J)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return tA.decode(J,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}}export{lA as default,hA as zstd}; diff --git a/assets/lzw-NamZKYVt.js b/assets/lzw-NamZKYVt.js new file mode 100644 index 0000000..2d4b392 --- /dev/null +++ b/assets/lzw-NamZKYVt.js @@ -0,0 +1 @@ +import{B as b}from"./basedecoder-ZA-T3ZBw.js";const B=9,E=256,p=257,k=12;function x(c,o,r){const i=o%8,n=Math.floor(o/8),h=8-i,g=o+r-(n+1)*8;let l=8*(n+2)-(o+r);const w=(n+2)*8-o;if(l=Math.max(0,l),n>=c.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),p;let u=c[n]&2**(8-i)-1;u<<=r-h;let s=u;if(n+1>>l;f<<=Math.max(0,r-w),s+=f}if(g>8&&n+2>>f;s+=t}return s}function D(c,o){for(let r=o.length-1;r>=0;r--)c.push(o[r]);return c}function A(c){const o=new Uint16Array(4093),r=new Uint8Array(4093);for(let e=0;e<=257;e++)o[e]=4096,r[e]=e;let i=258,n=B,h=0;function g(){i=258,n=B}function l(e){const a=x(e,h,n);return h+=n,a}function w(e,a){return r[i]=a,o[i]=e,i++,i-1}function u(e){const a=[];for(let y=e;y!==4096;y=o[y])a.push(r[y]);return a}const s=[];g();const f=new Uint8Array(c);let t=l(f),d;for(;t!==p;){if(t===E){for(g(),t=l(f);t===E;)t=l(f);if(t===p)break;if(t>E)throw new Error(`corrupted code at scanline ${t}`);{const e=u(t);D(s,e),d=t}}else if(t=2**n&&(n===k?d=void 0:n++),t=l(f)}return new Uint8Array(s)}class m extends b{decodeBlock(o){return A(o).buffer}}export{m as default}; diff --git a/assets/packbits-65YHJGuf.js b/assets/packbits-65YHJGuf.js new file mode 100644 index 0000000..483bc38 --- /dev/null +++ b/assets/packbits-65YHJGuf.js @@ -0,0 +1 @@ +import{B as c}from"./basedecoder-ZA-T3ZBw.js";class l extends c{decodeBlock(s){const n=new DataView(s),r=[];for(let e=0;e=0;)e[i]=0}const Hi=0,li=1,Bi=2,Ki=3,Pi=258,ut=29,ze=256,xe=ze+1+ut,le=30,wt=19,oi=2*xe+1,Q=15,Xe=16,Xi=7,bt=256,fi=16,_i=17,hi=18,rt=new Uint8Array([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]),$e=new Uint8Array([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]),Yi=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),di=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gi=512,P=new Array((xe+2)*2);he(P);const be=new Array(le*2);he(be);const ke=new Array(Gi);he(ke);const ve=new Array(Pi-Ki+1);he(ve);const gt=new Array(ut);he(gt);const Fe=new Array(le);he(Fe);function Ye(e,i,t,n,r){this.static_tree=e,this.extra_bits=i,this.extra_base=t,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}let si,ci,ui;function Ge(e,i){this.dyn_tree=e,this.max_code=0,this.stat_desc=i}const wi=e=>e<256?ke[e]:ke[256+(e>>>7)],Ee=(e,i)=>{e.pending_buf[e.pending++]=i&255,e.pending_buf[e.pending++]=i>>>8&255},N=(e,i,t)=>{e.bi_valid>Xe-t?(e.bi_buf|=i<>Xe-e.bi_valid,e.bi_valid+=t-Xe):(e.bi_buf|=i<{N(e,t[i*2],t[i*2+1])},bi=(e,i)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--i>0);return t>>>1},ji=e=>{e.bi_valid===16?(Ee(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Wi=(e,i)=>{const t=i.dyn_tree,n=i.max_code,r=i.stat_desc.static_tree,a=i.stat_desc.has_stree,f=i.stat_desc.extra_bits,o=i.stat_desc.extra_base,c=i.stat_desc.max_length;let l,_,y,s,h,u,R=0;for(s=0;s<=Q;s++)e.bl_count[s]=0;for(t[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;lc&&(s=c,R++),t[_*2+1]=s,!(_>n)&&(e.bl_count[s]++,h=0,_>=o&&(h=f[_-o]),u=t[_*2],e.opt_len+=u*(s+h),a&&(e.static_len+=u*(r[_*2+1]+h)));if(R!==0){do{for(s=c-1;e.bl_count[s]===0;)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[c]--,R-=2}while(R>0);for(s=c;s!==0;s--)for(_=e.bl_count[s];_!==0;)y=e.heap[--l],!(y>n)&&(t[y*2+1]!==s&&(e.opt_len+=(s-t[y*2+1])*t[y*2],t[y*2+1]=s),_--)}},gi=(e,i,t)=>{const n=new Array(Q+1);let r=0,a,f;for(a=1;a<=Q;a++)r=r+t[a-1]<<1,n[a]=r;for(f=0;f<=i;f++){let o=e[f*2+1];o!==0&&(e[f*2]=bi(n[o]++,o))}},Vi=()=>{let e,i,t,n,r;const a=new Array(Q+1);for(t=0,n=0;n>=7;n{let i;for(i=0;i{e.bi_valid>8?Ee(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Et=(e,i,t,n)=>{const r=i*2,a=t*2;return e[r]{const n=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r{let n,r,a=0,f,o;if(e.sym_next!==0)do n=e.pending_buf[e.sym_buf+a++]&255,n+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],n===0?M(e,r,i):(f=ve[r],M(e,f+ze+1,i),o=rt[f],o!==0&&(r-=gt[f],N(e,r,o)),n--,f=wi(n),M(e,f,t),o=$e[f],o!==0&&(n-=Fe[f],N(e,n,o)));while(a{const t=i.dyn_tree,n=i.stat_desc.static_tree,r=i.stat_desc.has_stree,a=i.stat_desc.elems;let f,o,c=-1,l;for(e.heap_len=0,e.heap_max=oi,f=0;f>1;f>=1;f--)je(e,t,f);l=a;do f=e.heap[1],e.heap[1]=e.heap[e.heap_len--],je(e,t,1),o=e.heap[1],e.heap[--e.heap_max]=f,e.heap[--e.heap_max]=o,t[l*2]=t[f*2]+t[o*2],e.depth[l]=(e.depth[f]>=e.depth[o]?e.depth[f]:e.depth[o])+1,t[f*2+1]=t[o*2+1]=l,e.heap[1]=l++,je(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Wi(e,i),gi(t,c,e.bl_count)},mt=(e,i,t)=>{let n,r=-1,a,f=i[0*2+1],o=0,c=7,l=4;for(f===0&&(c=138,l=3),i[(t+1)*2+1]=65535,n=0;n<=t;n++)a=f,f=i[(n+1)*2+1],!(++o{let n,r=-1,a,f=i[0*2+1],o=0,c=7,l=4;for(f===0&&(c=138,l=3),n=0;n<=t;n++)if(a=f,f=i[(n+1)*2+1],!(++o{let i;for(mt(e,e.dyn_ltree,e.l_desc.max_code),mt(e,e.dyn_dtree,e.d_desc.max_code),lt(e,e.bl_desc),i=wt-1;i>=3&&e.bl_tree[di[i]*2+1]===0;i--);return e.opt_len+=3*(i+1)+5+5+4,i},Qi=(e,i,t,n)=>{let r;for(N(e,i-257,5),N(e,t-1,5),N(e,n-4,4),r=0;r{let i=4093624447,t;for(t=0;t<=31;t++,i>>>=1)if(i&1&&e.dyn_ltree[t*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(t=32;t{At||(Vi(),At=!0),e.l_desc=new Ge(e.dyn_ltree,si),e.d_desc=new Ge(e.dyn_dtree,ci),e.bl_desc=new Ge(e.bl_tree,ui),e.bi_buf=0,e.bi_valid=0,pi(e)},ki=(e,i,t,n)=>{N(e,(Hi<<1)+(n?1:0),3),xi(e),Ee(e,t),Ee(e,~t),t&&e.pending_buf.set(e.window.subarray(i,i+t),e.pending),e.pending+=t},tn=e=>{N(e,li<<1,3),M(e,bt,P),ji(e)},nn=(e,i,t,n)=>{let r,a,f=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=qi(e)),lt(e,e.l_desc),lt(e,e.d_desc),f=Ji(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&i!==-1?ki(e,i,t,n):e.strategy===4||a===r?(N(e,(li<<1)+(n?1:0),3),yt(e,P,be)):(N(e,(Bi<<1)+(n?1:0),3),Qi(e,e.l_desc.max_code+1,e.d_desc.max_code+1,f+1),yt(e,e.dyn_ltree,e.dyn_dtree)),pi(e),n&&xi(e)},an=(e,i,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=i,e.pending_buf[e.sym_buf+e.sym_next++]=i>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,i===0?e.dyn_ltree[t*2]++:(e.matches++,i--,e.dyn_ltree[(ve[t]+ze+1)*2]++,e.dyn_dtree[wi(i)*2]++),e.sym_next===e.sym_end);var rn=en,ln=ki,on=nn,fn=an,_n=tn,hn={_tr_init:rn,_tr_stored_block:ln,_tr_flush_block:on,_tr_tally:fn,_tr_align:_n};const dn=(e,i,t,n)=>{let r=e&65535|0,a=e>>>16&65535|0,f=0;for(;t!==0;){f=t>2e3?2e3:t,t-=f;do r=r+i[n++]|0,a=a+r|0;while(--f);r%=65521,a%=65521}return r|a<<16|0};var ye=dn;const sn=()=>{let e,i=[];for(var t=0;t<256;t++){e=t;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;i[t]=e}return i},cn=new Uint32Array(sn()),un=(e,i,t,n)=>{const r=cn,a=n+t;e^=-1;for(let f=n;f>>8^r[(e^i[f])&255];return e^-1};var Z=un,oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Te={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:wn,_tr_stored_block:ot,_tr_flush_block:bn,_tr_tally:j,_tr_align:gn}=hn,{Z_NO_FLUSH:W,Z_PARTIAL_FLUSH:pn,Z_FULL_FLUSH:xn,Z_FINISH:C,Z_BLOCK:zt,Z_OK:I,Z_STREAM_END:Tt,Z_STREAM_ERROR:H,Z_DATA_ERROR:kn,Z_BUF_ERROR:We,Z_DEFAULT_COMPRESSION:vn,Z_FILTERED:En,Z_HUFFMAN_ONLY:Oe,Z_RLE:yn,Z_FIXED:mn,Z_DEFAULT_STRATEGY:Sn,Z_UNKNOWN:An,Z_DEFLATED:Be}=Te,zn=9,Tn=15,Rn=8,Dn=29,Zn=256,ft=Zn+1+Dn,In=30,On=19,Nn=2*ft+1,Ln=15,k=3,G=258,B=G+k+1,Un=32,fe=42,pt=57,_t=69,ht=73,dt=91,st=103,q=113,ue=666,O=1,de=2,te=3,se=4,Cn=3,ee=(e,i)=>(e.msg=oe[i],i),Rt=e=>e*2-(e>4?9:0),Y=e=>{let i=e.length;for(;--i>=0;)e[i]=0},$n=e=>{let i,t,n,r=e.w_size;i=e.hash_size,n=i;do t=e.head[--n],e.head[n]=t>=r?t-r:0;while(--i);i=r,n=i;do t=e.prev[--n],e.prev[n]=t>=r?t-r:0;while(--i)};let Fn=(e,i,t)=>(i<{const i=e.state;let t=i.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(i.pending_buf.subarray(i.pending_out,i.pending_out+t),e.next_out),e.next_out+=t,i.pending_out+=t,e.total_out+=t,e.avail_out-=t,i.pending-=t,i.pending===0&&(i.pending_out=0))},U=(e,i)=>{bn(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,i),e.block_start=e.strstart,L(e.strm)},S=(e,i)=>{e.pending_buf[e.pending++]=i},ce=(e,i)=>{e.pending_buf[e.pending++]=i>>>8&255,e.pending_buf[e.pending++]=i&255},ct=(e,i,t,n)=>{let r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,i.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=ye(e.adler,i,r,t):e.state.wrap===2&&(e.adler=Z(e.adler,i,r,t)),e.next_in+=r,e.total_in+=r,r)},vi=(e,i)=>{let t=e.max_chain_length,n=e.strstart,r,a,f=e.prev_length,o=e.nice_match;const c=e.strstart>e.w_size-B?e.strstart-(e.w_size-B):0,l=e.window,_=e.w_mask,y=e.prev,s=e.strstart+G;let h=l[n+f-1],u=l[n+f];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do if(r=i,!(l[r+f]!==u||l[r+f-1]!==h||l[r]!==l[n]||l[++r]!==l[n+1])){n+=2,r++;do;while(l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&nf){if(e.match_start=i,f=a,a>=o)break;h=l[n+f-1],u=l[n+f]}}while((i=y[i&_])>c&&--t!==0);return f<=e.lookahead?f:e.lookahead},_e=e=>{const i=e.w_size;let t,n,r;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=i+(i-B)&&(e.window.set(e.window.subarray(i,i+i-n),0),e.match_start-=i,e.strstart-=i,e.block_start-=i,e.insert>e.strstart&&(e.insert=e.strstart),$n(e),n+=i),e.strm.avail_in===0)break;if(t=ct(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=k)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=V(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=V(e,e.ins_h,e.window[r+k-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,n,r,a,f=0,o=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>a&&(n=a),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,L(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(ct(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(f===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(ct(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||i===C)&&i!==W&&e.strm.avail_in===0&&r<=a)&&(n=r>a?a:r,f=i===C&&e.strm.avail_in===0&&n===r?1:0,ot(e,e.block_start,n,f),e.block_start+=n,L(e.strm)),f?te:O)},Ve=(e,i)=>{let t,n;for(;;){if(e.lookahead=k&&(e.ins_h=V(e,e.ins_h,e.window[e.strstart+k-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-B&&(e.match_length=vi(e,t)),e.match_length>=k)if(n=j(e,e.strstart-e.match_start,e.match_length-k),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=k){e.match_length--;do e.strstart++,e.ins_h=V(e,e.ins_h,e.window[e.strstart+k-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=V(e,e.ins_h,e.window[e.strstart+1]);else n=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(U(e,!1),e.strm.avail_out===0))return O}return e.insert=e.strstart{let t,n,r;for(;;){if(e.lookahead=k&&(e.ins_h=V(e,e.ins_h,e.window[e.strstart+k-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=k-1,t!==0&&e.prev_length4096)&&(e.match_length=k-1)),e.prev_length>=k&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-k,n=j(e,e.strstart-1-e.prev_match,e.prev_length-k),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=V(e,e.ins_h,e.window[e.strstart+k-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=k-1,e.strstart++,n&&(U(e,!1),e.strm.avail_out===0))return O}else if(e.match_available){if(n=j(e,0,e.window[e.strstart-1]),n&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=j(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,n,r,a;const f=e.window;for(;;){if(e.lookahead<=G){if(_e(e),e.lookahead<=G&&i===W)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=k&&e.strstart>0&&(r=e.strstart-1,n=f[r],n===f[++r]&&n===f[++r]&&n===f[++r])){a=e.strstart+G;do;while(n===f[++r]&&n===f[++r]&&n===f[++r]&&n===f[++r]&&n===f[++r]&&n===f[++r]&&n===f[++r]&&n===f[++r]&&re.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=k?(t=j(e,1,e.match_length-k),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(U(e,!1),e.strm.avail_out===0))return O}return e.insert=0,i===C?(U(e,!0),e.strm.avail_out===0?te:se):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?O:de},Hn=(e,i)=>{let t;for(;;){if(e.lookahead===0&&(_e(e),e.lookahead===0)){if(i===W)return O;break}if(e.match_length=0,t=j(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(U(e,!1),e.strm.avail_out===0))return O}return e.insert=0,i===C?(U(e,!0),e.strm.avail_out===0?te:se):e.sym_next&&(U(e,!1),e.strm.avail_out===0)?O:de};function F(e,i,t,n,r){this.good_length=e,this.max_lazy=i,this.nice_length=t,this.max_chain=n,this.func=r}const we=[new F(0,0,0,0,Ei),new F(4,4,8,4,Ve),new F(4,5,16,8,Ve),new F(4,6,32,32,Ve),new F(4,4,16,16,ae),new F(8,16,32,32,ae),new F(8,16,128,128,ae),new F(8,32,128,256,ae),new F(32,128,258,1024,ae),new F(32,258,258,4096,ae)],Bn=e=>{e.window_size=2*e.w_size,Y(e.head),e.max_lazy_match=we[e.level].max_lazy,e.good_match=we[e.level].good_length,e.nice_match=we[e.level].nice_length,e.max_chain_length=we[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0};function Kn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Be,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Nn*2),this.dyn_dtree=new Uint16Array((2*In+1)*2),this.bl_tree=new Uint16Array((2*On+1)*2),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Ln+1),this.heap=new Uint16Array(2*ft+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ft+1),Y(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Re=e=>{if(!e)return 1;const i=e.state;return!i||i.strm!==e||i.status!==fe&&i.status!==pt&&i.status!==_t&&i.status!==ht&&i.status!==dt&&i.status!==st&&i.status!==q&&i.status!==ue?1:0},yi=e=>{if(Re(e))return ee(e,H);e.total_in=e.total_out=0,e.data_type=An;const i=e.state;return i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap===2?pt:i.wrap?fe:q,e.adler=i.wrap===2?0:1,i.last_flush=-2,wn(i),I},mi=e=>{const i=yi(e);return i===I&&Bn(e.state),i},Pn=(e,i)=>Re(e)||e.state.wrap!==2?H:(e.state.gzhead=i,I),Si=(e,i,t,n,r,a)=>{if(!e)return H;let f=1;if(i===vn&&(i=6),n<0?(f=0,n=-n):n>15&&(f=2,n-=16),r<1||r>zn||t!==Be||n<8||n>15||i<0||i>9||a<0||a>mn||n===8&&f!==1)return ee(e,H);n===8&&(n=9);const o=new Kn;return e.state=o,o.strm=e,o.status=fe,o.wrap=f,o.gzhead=null,o.w_bits=n,o.w_size=1<Si(e,i,Be,Tn,Rn,Sn),Yn=(e,i)=>{if(Re(e)||i>zt||i<0)return e?ee(e,H):H;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===ue&&i!==C)return ee(e,e.avail_out===0?We:H);const n=t.last_flush;if(t.last_flush=i,t.pending!==0){if(L(e),e.avail_out===0)return t.last_flush=-1,I}else if(e.avail_in===0&&Rt(i)<=Rt(n)&&i!==C)return ee(e,We);if(t.status===ue&&e.avail_in!==0)return ee(e,We);if(t.status===fe&&t.wrap===0&&(t.status=q),t.status===fe){let r=Be+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=Oe||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=Un),r+=31-r%31,ce(t,r),t.strstart!==0&&(ce(t,e.adler>>>16),ce(t,e.adler&65535)),e.adler=1,t.status=q,L(e),t.pending!==0)return t.last_flush=-1,I}if(t.status===pt){if(e.adler=0,S(t,31),S(t,139),S(t,8),t.gzhead)S(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),S(t,t.gzhead.time&255),S(t,t.gzhead.time>>8&255),S(t,t.gzhead.time>>16&255),S(t,t.gzhead.time>>24&255),S(t,t.level===9?2:t.strategy>=Oe||t.level<2?4:0),S(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(S(t,t.gzhead.extra.length&255),S(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Z(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=_t;else if(S(t,0),S(t,0),S(t,0),S(t,0),S(t,0),S(t,t.level===9?2:t.strategy>=Oe||t.level<2?4:0),S(t,Cn),t.status=q,L(e),t.pending!==0)return t.last_flush=-1,I}if(t.status===_t){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let o=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+o),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=o,L(e),t.pending!==0)return t.last_flush=-1,I;r=0,a-=o}let f=new Uint8Array(t.gzhead.extra);t.pending_buf.set(f.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=ht}if(t.status===ht){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,I;r=0}t.gzindexr&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=dt}if(t.status===dt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r)),L(e),t.pending!==0)return t.last_flush=-1,I;r=0}t.gzindexr&&(e.adler=Z(e.adler,t.pending_buf,t.pending-r,r))}t.status=st}if(t.status===st){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(L(e),t.pending!==0))return t.last_flush=-1,I;S(t,e.adler&255),S(t,e.adler>>8&255),e.adler=0}if(t.status=q,L(e),t.pending!==0)return t.last_flush=-1,I}if(e.avail_in!==0||t.lookahead!==0||i!==W&&t.status!==ue){let r=t.level===0?Ei(t,i):t.strategy===Oe?Hn(t,i):t.strategy===yn?Mn(t,i):we[t.level].func(t,i);if((r===te||r===se)&&(t.status=ue),r===O||r===te)return e.avail_out===0&&(t.last_flush=-1),I;if(r===de&&(i===pn?gn(t):i!==zt&&(ot(t,0,0,!1),i===xn&&(Y(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),L(e),e.avail_out===0))return t.last_flush=-1,I}return i!==C?I:t.wrap<=0?Tt:(t.wrap===2?(S(t,e.adler&255),S(t,e.adler>>8&255),S(t,e.adler>>16&255),S(t,e.adler>>24&255),S(t,e.total_in&255),S(t,e.total_in>>8&255),S(t,e.total_in>>16&255),S(t,e.total_in>>24&255)):(ce(t,e.adler>>>16),ce(t,e.adler&65535)),L(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?I:Tt)},Gn=e=>{if(Re(e))return H;const i=e.state.status;return e.state=null,i===q?ee(e,kn):I},jn=(e,i)=>{let t=i.length;if(Re(e))return H;const n=e.state,r=n.wrap;if(r===2||r===1&&n.status!==fe||n.lookahead)return H;if(r===1&&(e.adler=ye(e.adler,i,t,0)),n.wrap=0,t>=n.w_size){r===0&&(Y(n.head),n.strstart=0,n.block_start=0,n.insert=0);let c=new Uint8Array(n.w_size);c.set(i.subarray(t-n.w_size,t),0),i=c,t=n.w_size}const a=e.avail_in,f=e.next_in,o=e.input;for(e.avail_in=t,e.next_in=0,e.input=i,_e(n);n.lookahead>=k;){let c=n.strstart,l=n.lookahead-(k-1);do n.ins_h=V(n,n.ins_h,n.window[c+k-1]),n.prev[c&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=c,c++;while(--l);n.strstart=c,n.lookahead=k-1,_e(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=k-1,n.match_available=0,e.next_in=f,e.input=o,e.avail_in=a,n.wrap=r,I};var Wn=Xn,Vn=Si,Jn=mi,Qn=yi,qn=Pn,ea=Yn,ta=Gn,ia=jn,na="pako deflate (from Nodeca project)",ge={deflateInit:Wn,deflateInit2:Vn,deflateReset:Jn,deflateResetKeep:Qn,deflateSetHeader:qn,deflate:ea,deflateEnd:ta,deflateSetDictionary:ia,deflateInfo:na};const aa=(e,i)=>Object.prototype.hasOwnProperty.call(e,i);var ra=function(e){const i=Array.prototype.slice.call(arguments,1);for(;i.length;){const t=i.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const n in t)aa(t,n)&&(e[n]=t[n])}}return e},la=e=>{let i=0;for(let n=0,r=e.length;n=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;me[254]=me[254]=1;var oa=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let i,t,n,r,a,f=e.length,o=0;for(r=0;r>>6,i[a++]=128|t&63):t<65536?(i[a++]=224|t>>>12,i[a++]=128|t>>>6&63,i[a++]=128|t&63):(i[a++]=240|t>>>18,i[a++]=128|t>>>12&63,i[a++]=128|t>>>6&63,i[a++]=128|t&63);return i};const fa=(e,i)=>{if(i<65534&&e.subarray&&Ai)return String.fromCharCode.apply(null,e.length===i?e:e.subarray(0,i));let t="";for(let n=0;n{const t=i||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,i));let n,r;const a=new Array(t*2);for(r=0,n=0;n4){a[r++]=65533,n+=o-1;continue}for(f&=o===2?31:o===3?15:7;o>1&&n1){a[r++]=65533;continue}f<65536?a[r++]=f:(f-=65536,a[r++]=55296|f>>10&1023,a[r++]=56320|f&1023)}return fa(a,r)},ha=(e,i)=>{i=i||e.length,i>e.length&&(i=e.length);let t=i-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?i:t+me[e[t]]>i?t:i},Se={string2buf:oa,buf2string:_a,utf8border:ha};function da(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zi=da;const Ti=Object.prototype.toString,{Z_NO_FLUSH:sa,Z_SYNC_FLUSH:ca,Z_FULL_FLUSH:ua,Z_FINISH:wa,Z_OK:Me,Z_STREAM_END:ba,Z_DEFAULT_COMPRESSION:ga,Z_DEFAULT_STRATEGY:pa,Z_DEFLATED:xa}=Te;function xt(e){this.options=Ke.assign({level:ga,method:xa,chunkSize:16384,windowBits:15,memLevel:8,strategy:pa},e||{});let i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zi,this.strm.avail_out=0;let t=ge.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(t!==Me)throw new Error(oe[t]);if(i.header&&ge.deflateSetHeader(this.strm,i.header),i.dictionary){let n;if(typeof i.dictionary=="string"?n=Se.string2buf(i.dictionary):Ti.call(i.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(i.dictionary):n=i.dictionary,t=ge.deflateSetDictionary(this.strm,n),t!==Me)throw new Error(oe[t]);this._dict_set=!0}}xt.prototype.push=function(e,i){const t=this.strm,n=this.options.chunkSize;let r,a;if(this.ended)return!1;for(i===~~i?a=i:a=i===!0?wa:sa,typeof e=="string"?t.input=Se.string2buf(e):Ti.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),(a===ca||a===ua)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=ge.deflate(t,a),r===ba)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=ge.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Me;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};xt.prototype.onData=function(e){this.chunks.push(e)};xt.prototype.onEnd=function(e){e===Me&&(this.result=Ke.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Ne=16209,ka=16191;var va=function(i,t){let n,r,a,f,o,c,l,_,y,s,h,u,R,v,g,A,p,d,m,D,w,z,E,b;const x=i.state;n=i.next_in,E=i.input,r=n+(i.avail_in-5),a=i.next_out,b=i.output,f=a-(t-i.avail_out),o=a+(i.avail_out-257),c=x.dmax,l=x.wsize,_=x.whave,y=x.wnext,s=x.window,h=x.hold,u=x.bits,R=x.lencode,v=x.distcode,g=(1<>>24,h>>>=d,u-=d,d=p>>>16&255,d===0)b[a++]=p&65535;else if(d&16){m=p&65535,d&=15,d&&(u>>=d,u-=d),u<15&&(h+=E[n++]<>>24,h>>>=d,u-=d,d=p>>>16&255,d&16){if(D=p&65535,d&=15,uc){i.msg="invalid distance too far back",x.mode=Ne;break e}if(h>>>=d,u-=d,d=a-f,D>d){if(d=D-d,d>_&&x.sane){i.msg="invalid distance too far back",x.mode=Ne;break e}if(w=0,z=s,y===0){if(w+=l-d,d2;)b[a++]=z[w++],b[a++]=z[w++],b[a++]=z[w++],m-=3;m&&(b[a++]=z[w++],m>1&&(b[a++]=z[w++]))}else{w=a-D;do b[a++]=b[w++],b[a++]=b[w++],b[a++]=b[w++],m-=3;while(m>2);m&&(b[a++]=b[w++],m>1&&(b[a++]=b[w++]))}}else if(d&64){i.msg="invalid distance code",x.mode=Ne;break e}else{p=v[(p&65535)+(h&(1<>3,n-=m,u-=m<<3,h&=(1<{const c=o.bits;let l=0,_=0,y=0,s=0,h=0,u=0,R=0,v=0,g=0,A=0,p,d,m,D,w,z=null,E;const b=new Uint16Array(re+1),x=new Uint16Array(re+1);let J=null,vt,Ze,Ie;for(l=0;l<=re;l++)b[l]=0;for(_=0;_=1&&b[s]===0;s--);if(h>s&&(h=s),s===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,o.bits=1,0;for(y=1;y0&&(e===It||s!==1))return-1;for(x[1]=0,l=1;lDt||e===Ot&&g>Zt)return 1;for(;;){vt=l-R,f[_]+1=E?(Ze=J[f[_]-E],Ie=z[f[_]-E]):(Ze=96,Ie=0),p=1<>R)+d]=vt<<24|Ze<<16|Ie|0;while(d!==0);for(p=1<>=1;if(p!==0?(A&=p-1,A+=p):A=0,_++,--b[l]===0){if(l===s)break;l=i[t+f[_]]}if(l>h&&(A&D)!==m){for(R===0&&(R=h),w+=y,u=l-R,v=1<Dt||e===Ot&&g>Zt)return 1;m=A&D,r[m]=h<<24|u<<16|w-a|0}}return A!==0&&(r[w+A]=l-R<<24|64<<16|0),o.bits=h,0};var pe=Aa;const za=0,Ri=1,Di=2,{Z_FINISH:Nt,Z_BLOCK:Ta,Z_TREES:Le,Z_OK:ie,Z_STREAM_END:Ra,Z_NEED_DICT:Da,Z_STREAM_ERROR:$,Z_DATA_ERROR:Zi,Z_MEM_ERROR:Ii,Z_BUF_ERROR:Za,Z_DEFLATED:Lt}=Te,Pe=16180,Ut=16181,Ct=16182,$t=16183,Ft=16184,Mt=16185,Ht=16186,Bt=16187,Kt=16188,Pt=16189,He=16190,K=16191,Qe=16192,Xt=16193,qe=16194,Yt=16195,Gt=16196,jt=16197,Wt=16198,Ue=16199,Ce=16200,Vt=16201,Jt=16202,Qt=16203,qt=16204,ei=16205,et=16206,ti=16207,ii=16208,T=16209,Oi=16210,Ni=16211,Ia=852,Oa=592,Na=15,La=Na,ni=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Ua(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ne=e=>{if(!e)return 1;const i=e.state;return!i||i.strm!==e||i.modeNi?1:0},Li=e=>{if(ne(e))return $;const i=e.state;return e.total_in=e.total_out=i.total=0,e.msg="",i.wrap&&(e.adler=i.wrap&1),i.mode=Pe,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(Ia),i.distcode=i.distdyn=new Int32Array(Oa),i.sane=1,i.back=-1,ie},Ui=e=>{if(ne(e))return $;const i=e.state;return i.wsize=0,i.whave=0,i.wnext=0,Li(e)},Ci=(e,i)=>{let t;if(ne(e))return $;const n=e.state;return i<0?(t=0,i=-i):(t=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?$:(n.window!==null&&n.wbits!==i&&(n.window=null),n.wrap=t,n.wbits=i,Ui(e))},$i=(e,i)=>{if(!e)return $;const t=new Ua;e.state=t,t.strm=e,t.window=null,t.mode=Pe;const n=Ci(e,i);return n!==ie&&(e.state=null),n},Ca=e=>$i(e,La);let ai=!0,tt,it;const $a=e=>{if(ai){tt=new Int32Array(512),it=new Int32Array(32);let i=0;for(;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(pe(Ri,e.lens,0,288,tt,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;pe(Di,e.lens,0,32,it,0,e.work,{bits:5}),ai=!1}e.lencode=tt,e.lenbits=9,e.distcode=it,e.distbits=5},Fi=(e,i,t,n)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<=a.wsize?(a.window.set(i.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>n&&(r=n),a.window.set(i.subarray(t-n,t-n+r),a.wnext),n-=r,n?(a.window.set(i.subarray(t-n,t),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave{let t,n,r,a,f,o,c,l,_,y,s,h,u,R,v=0,g,A,p,d,m,D,w,z;const E=new Uint8Array(4);let b,x;const J=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ne(e)||!e.output||!e.input&&e.avail_in!==0)return $;t=e.state,t.mode===K&&(t.mode=Qe),f=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,l=t.hold,_=t.bits,y=o,s=c,z=ie;e:for(;;)switch(t.mode){case Pe:if(t.wrap===0){t.mode=Qe;break}for(;_<16;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,E[0]=l&255,E[1]=l>>>8&255,t.check=Z(t.check,E,2,0),l=0,_=0,t.mode=Ut;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",t.mode=T;break}if((l&15)!==Lt){e.msg="unknown compression method",t.mode=T;break}if(l>>>=4,_-=4,w=(l&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=T;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=Z(t.check,E,2,0)),l=0,_=0,t.mode=Ct;case Ct:for(;_<32;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,t.check=Z(t.check,E,4,0)),l=0,_=0,t.mode=$t;case $t:for(;_<16;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=Z(t.check,E,2,0)),l=0,_=0,t.mode=Ft;case Ft:if(t.flags&1024){for(;_<16;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(E[0]=l&255,E[1]=l>>>8&255,t.check=Z(t.check,E,2,0)),l=0,_=0}else t.head&&(t.head.extra=null);t.mode=Mt;case Mt:if(t.flags&1024&&(h=t.length,h>o&&(h=o),h&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(n.subarray(a,a+h),w)),t.flags&512&&t.wrap&4&&(t.check=Z(t.check,n,h,a)),o-=h,a+=h,t.length-=h),t.length))break e;t.length=0,t.mode=Ht;case Ht:if(t.flags&2048){if(o===0)break e;h=0;do w=n[a+h++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&h>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=K;break;case Pt:for(;_<32;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}e.adler=t.check=ni(l),l=0,_=0,t.mode=He;case He:if(t.havedict===0)return e.next_out=f,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=_,Da;e.adler=t.check=1,t.mode=K;case K:if(i===Ta||i===Le)break e;case Qe:if(t.last){l>>>=_&7,_-=_&7,t.mode=et;break}for(;_<3;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}switch(t.last=l&1,l>>>=1,_-=1,l&3){case 0:t.mode=Xt;break;case 1:if($a(t),t.mode=Ue,i===Le){l>>>=2,_-=2;break e}break;case 2:t.mode=Gt;break;case 3:e.msg="invalid block type",t.mode=T}l>>>=2,_-=2;break;case Xt:for(l>>>=_&7,_-=_&7;_<32;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",t.mode=T;break}if(t.length=l&65535,l=0,_=0,t.mode=qe,i===Le)break e;case qe:t.mode=Yt;case Yt:if(h=t.length,h){if(h>o&&(h=o),h>c&&(h=c),h===0)break e;r.set(n.subarray(a,a+h),f),o-=h,a+=h,c-=h,f+=h,t.length-=h;break}t.mode=K;break;case Gt:for(;_<14;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(t.nlen=(l&31)+257,l>>>=5,_-=5,t.ndist=(l&31)+1,l>>>=5,_-=5,t.ncode=(l&15)+4,l>>>=4,_-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=T;break}t.have=0,t.mode=jt;case jt:for(;t.have>>=3,_-=3}for(;t.have<19;)t.lens[J[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,b={bits:t.lenbits},z=pe(za,t.lens,0,19,t.lencode,0,t.work,b),t.lenbits=b.bits,z){e.msg="invalid code lengths set",t.mode=T;break}t.have=0,t.mode=Wt;case Wt:for(;t.have>>24,A=v>>>16&255,p=v&65535,!(g<=_);){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(p<16)l>>>=g,_-=g,t.lens[t.have++]=p;else{if(p===16){for(x=g+2;_>>=g,_-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=T;break}w=t.lens[t.have-1],h=3+(l&3),l>>>=2,_-=2}else if(p===17){for(x=g+3;_>>=g,_-=g,w=0,h=3+(l&7),l>>>=3,_-=3}else{for(x=g+7;_>>=g,_-=g,w=0,h=11+(l&127),l>>>=7,_-=7}if(t.have+h>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=T;break}for(;h--;)t.lens[t.have++]=w}}if(t.mode===T)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=T;break}if(t.lenbits=9,b={bits:t.lenbits},z=pe(Ri,t.lens,0,t.nlen,t.lencode,0,t.work,b),t.lenbits=b.bits,z){e.msg="invalid literal/lengths set",t.mode=T;break}if(t.distbits=6,t.distcode=t.distdyn,b={bits:t.distbits},z=pe(Di,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,b),t.distbits=b.bits,z){e.msg="invalid distances set",t.mode=T;break}if(t.mode=Ue,i===Le)break e;case Ue:t.mode=Ce;case Ce:if(o>=6&&c>=258){e.next_out=f,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=_,va(e,s),f=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,l=t.hold,_=t.bits,t.mode===K&&(t.back=-1);break}for(t.back=0;v=t.lencode[l&(1<>>24,A=v>>>16&255,p=v&65535,!(g<=_);){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(A&&!(A&240)){for(d=g,m=A,D=p;v=t.lencode[D+((l&(1<>d)],g=v>>>24,A=v>>>16&255,p=v&65535,!(d+g<=_);){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}l>>>=d,_-=d,t.back+=d}if(l>>>=g,_-=g,t.back+=g,t.length=p,A===0){t.mode=ei;break}if(A&32){t.back=-1,t.mode=K;break}if(A&64){e.msg="invalid literal/length code",t.mode=T;break}t.extra=A&15,t.mode=Vt;case Vt:if(t.extra){for(x=t.extra;_>>=t.extra,_-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Jt;case Jt:for(;v=t.distcode[l&(1<>>24,A=v>>>16&255,p=v&65535,!(g<=_);){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(!(A&240)){for(d=g,m=A,D=p;v=t.distcode[D+((l&(1<>d)],g=v>>>24,A=v>>>16&255,p=v&65535,!(d+g<=_);){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}l>>>=d,_-=d,t.back+=d}if(l>>>=g,_-=g,t.back+=g,A&64){e.msg="invalid distance code",t.mode=T;break}t.offset=p,t.extra=A&15,t.mode=Qt;case Qt:if(t.extra){for(x=t.extra;_>>=t.extra,_-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=T;break}t.mode=qt;case qt:if(c===0)break e;if(h=s-c,t.offset>h){if(h=t.offset-h,h>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=T;break}h>t.wnext?(h-=t.wnext,u=t.wsize-h):u=t.wnext-h,h>t.length&&(h=t.length),R=t.window}else R=r,u=f-t.offset,h=t.length;h>c&&(h=c),c-=h,t.length-=h;do r[f++]=R[u++];while(--h);t.length===0&&(t.mode=Ce);break;case ei:if(c===0)break e;r[f++]=t.length,c--,t.mode=Ce;break;case et:if(t.wrap){for(;_<32;){if(o===0)break e;o--,l|=n[a++]<<_,_+=8}if(s-=c,e.total_out+=s,t.total+=s,t.wrap&4&&s&&(e.adler=t.check=t.flags?Z(t.check,r,s,f-s):ye(t.check,r,s,f-s)),s=c,t.wrap&4&&(t.flags?l:ni(l))!==t.check){e.msg="incorrect data check",t.mode=T;break}l=0,_=0}t.mode=ti;case ti:if(t.wrap&&t.flags){for(;_<32;){if(o===0)break e;o--,l+=n[a++]<<_,_+=8}if(t.wrap&4&&l!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=T;break}l=0,_=0}t.mode=ii;case ii:z=Ra;break e;case T:z=Zi;break e;case Oi:return Ii;case Ni:default:return $}return e.next_out=f,e.avail_out=c,e.next_in=a,e.avail_in=o,t.hold=l,t.bits=_,(t.wsize||s!==e.avail_out&&t.mode{if(ne(e))return $;let i=e.state;return i.window&&(i.window=null),e.state=null,ie},Ha=(e,i)=>{if(ne(e))return $;const t=e.state;return t.wrap&2?(t.head=i,i.done=!1,ie):$},Ba=(e,i)=>{const t=i.length;let n,r,a;return ne(e)||(n=e.state,n.wrap!==0&&n.mode!==He)?$:n.mode===He&&(r=1,r=ye(r,i,t,0),r!==n.check)?Zi:(a=Fi(e,i,t,t),a?(n.mode=Oi,Ii):(n.havedict=1,ie))};var Ka=Ui,Pa=Ci,Xa=Li,Ya=Ca,Ga=$i,ja=Fa,Wa=Ma,Va=Ha,Ja=Ba,Qa="pako inflate (from Nodeca project)",X={inflateReset:Ka,inflateReset2:Pa,inflateResetKeep:Xa,inflateInit:Ya,inflateInit2:Ga,inflate:ja,inflateEnd:Wa,inflateGetHeader:Va,inflateSetDictionary:Ja,inflateInfo:Qa};function qa(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var er=qa;const Mi=Object.prototype.toString,{Z_NO_FLUSH:tr,Z_FINISH:ir,Z_OK:Ae,Z_STREAM_END:nt,Z_NEED_DICT:at,Z_STREAM_ERROR:nr,Z_DATA_ERROR:ri,Z_MEM_ERROR:ar}=Te;function De(e){this.options=Ke.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(e&&e.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15||(i.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zi,this.strm.avail_out=0;let t=X.inflateInit2(this.strm,i.windowBits);if(t!==Ae)throw new Error(oe[t]);if(this.header=new er,X.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=Se.string2buf(i.dictionary):Mi.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(t=X.inflateSetDictionary(this.strm,i.dictionary),t!==Ae)))throw new Error(oe[t])}De.prototype.push=function(e,i){const t=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let a,f,o;if(this.ended)return!1;for(i===~~i?f=i:f=i===!0?ir:tr,Mi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(n),t.next_out=0,t.avail_out=n),a=X.inflate(t,f),a===at&&r&&(a=X.inflateSetDictionary(t,r),a===Ae?a=X.inflate(t,f):a===ri&&(a=at));t.avail_in>0&&a===nt&&t.state.wrap>0&&e[t.next_in]!==0;)X.inflateReset(t),a=X.inflate(t,f);switch(a){case nr:case ri:case at:case ar:return this.onEnd(a),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||a===nt))if(this.options.to==="string"){let c=Se.utf8border(t.output,t.next_out),l=t.next_out-c,_=Se.buf2string(t.output,c);t.next_out=l,t.avail_out=n-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(_)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ae&&o===0)){if(a===nt)return a=X.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};De.prototype.onData=function(e){this.chunks.push(e)};De.prototype.onEnd=function(e){e===Ae&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ke.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function kt(e,i){const t=new De(i);if(t.push(e),t.err)throw t.msg||oe[t.err];return t.result}function rr(e,i){return i=i||{},i.raw=!0,kt(e,i)}var lr=De,or=kt,fr=rr,_r=kt,hr=Te,dr={Inflate:lr,inflate:or,inflateRaw:fr,ungzip:_r,constants:hr};const{Inflate:cr,inflate:sr,inflateRaw:ur,ungzip:wr}=dr;var br=sr;export{br as i}; diff --git a/assets/raw-FjKAlyiw.js b/assets/raw-FjKAlyiw.js new file mode 100644 index 0000000..48ac12c --- /dev/null +++ b/assets/raw-FjKAlyiw.js @@ -0,0 +1 @@ +import{B as o}from"./basedecoder-ZA-T3ZBw.js";class d extends o{decodeBlock(e){return e}}export{d as default}; diff --git a/assets/webimage-NiQ987z3.js b/assets/webimage-NiQ987z3.js new file mode 100644 index 0000000..a6085b4 --- /dev/null +++ b/assets/webimage-NiQ987z3.js @@ -0,0 +1 @@ +import{B as r}from"./basedecoder-ZA-T3ZBw.js";class s extends r{constructor(){if(super(),typeof createImageBitmap>"u")throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if(typeof document>"u"&&typeof OffscreenCanvas>"u")throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available")}async decode(i,n){const o=new Blob([n]),e=await createImageBitmap(o);let t;typeof document<"u"?(t=document.createElement("canvas"),t.width=e.width,t.height=e.height):t=new OffscreenCanvas(e.width,e.height);const a=t.getContext("2d");return a.drawImage(e,0,0),a.getImageData(0,0,e.width,e.height).data.buffer}}export{s as default}; diff --git a/earth_icon.svg b/earth_icon.svg new file mode 100644 index 0000000..6b6d918 --- /dev/null +++ b/earth_icon.svg @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + earth + 2009-03-17T19:14:10 + + https://openclipart.org/detail/22544/earth-by-orru + + + orru + + + + + ball + blue + cartography + color + earth + geography + gif + jpg + map + planet + sphere + world + + + + + + + + + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..7ee771d --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Contrast Stretch Demo + + + + +
+ + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file