From 5ca96be1ef8aae0c3e1f9ac2b943192ebc2bd38b Mon Sep 17 00:00:00 2001 From: silvester-pari Date: Mon, 9 Dec 2024 10:11:38 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20EOX-A/EO?= =?UTF-8?q?xElements@40f09931aa76a9c934ac2abac104de92cd198193=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...or-F6OSRLHC-IG5Jqzyw.js => Color-F6OSRLHC-D_1FtZIF.js} | 2 +- ...HY34-DnsuvIpF.js => DocsRenderer-CFRXHY34-k_AT4g2A.js} | 2 +- assets/{iframe-6fMPdiq5.js => iframe-BDrD3q8C.js} | 4 ++-- assets/{index-DEhfps_P.js => index-BlccYh0h.js} | 8 ++++---- assets/{index-BW8DBsXs.js => index-DFJPSo8P.js} | 2 +- assets/{lerc-DZni-HPV.js => lerc-BKAdx0UG.js} | 2 +- assets/{preview-BdSPFxEd.js => preview-BTy071Hg.js} | 8 ++++---- assets/{preview-DwR6fZ7y.js => preview-DgrfuTz5.js} | 4 ++-- iframe.html | 2 +- project.json | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) rename assets/{Color-F6OSRLHC-IG5Jqzyw.js => Color-F6OSRLHC-D_1FtZIF.js} (99%) rename assets/{DocsRenderer-CFRXHY34-DnsuvIpF.js => DocsRenderer-CFRXHY34-k_AT4g2A.js} (93%) rename assets/{iframe-6fMPdiq5.js => iframe-BDrD3q8C.js} (96%) rename assets/{index-DEhfps_P.js => index-BlccYh0h.js} (99%) rename assets/{index-BW8DBsXs.js => index-DFJPSo8P.js} (96%) rename assets/{lerc-DZni-HPV.js => lerc-BKAdx0UG.js} (99%) rename assets/{preview-BdSPFxEd.js => preview-BTy071Hg.js} (99%) rename assets/{preview-DwR6fZ7y.js => preview-DgrfuTz5.js} (58%) diff --git a/assets/Color-F6OSRLHC-IG5Jqzyw.js b/assets/Color-F6OSRLHC-D_1FtZIF.js similarity index 99% rename from assets/Color-F6OSRLHC-IG5Jqzyw.js rename to assets/Color-F6OSRLHC-D_1FtZIF.js index cd0517cd8..269823190 100644 --- a/assets/Color-F6OSRLHC-IG5Jqzyw.js +++ b/assets/Color-F6OSRLHC-D_1FtZIF.js @@ -1 +1 @@ -import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./index-DEhfps_P.js";import{e as m,r as p}from"./jsx-runtime-DDll1Hf8.js";import"./iframe-6fMPdiq5.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={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]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},sr=rr;export{rr as ColorControl,sr as default}; +import{ae as ce,af as M,a2 as J,a0 as he,N as fe,ag as de,ah as ge,ai as be,aj as q}from"./index-BlccYh0h.js";import{e as m,r as p}from"./jsx-runtime-DDll1Hf8.js";import"./iframe-BDrD3q8C.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";var me=q({"../../node_modules/color-name/index.js"(n,l){l.exports={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]}}}),Q=q({"../../node_modules/color-convert/conversions.js"(n,l){var c=me(),h={};for(let e of Object.keys(c))h[c[e]]=e;var u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=u;for(let e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:r})}u.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(t,r,a),i=Math.max(t,r,a),s=i-o,f,g;i===o?f=0:t===i?f=(r-a)/s:r===i?f=2+(a-t)/s:a===i&&(f=4+(t-r)/s),f=Math.min(f*60,360),f<0&&(f+=360);let b=(o+i)/2;return i===o?g=0:b<=.5?g=s/(i+o):g=s/(2-i-o),[f,g*100,b*100]},u.rgb.hsv=function(e){let t,r,a,o,i,s=e[0]/255,f=e[1]/255,g=e[2]/255,b=Math.max(s,f,g),y=b-Math.min(s,f,g),v=function(w){return(b-w)/6/y+1/2};return y===0?(o=0,i=0):(i=y/b,t=v(s),r=v(f),a=v(g),s===b?o=a-r:f===b?o=1/3+t-a:g===b&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,b*100]},u.rgb.hwb=function(e){let t=e[0],r=e[1],a=e[2],o=u.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,a));return a=1-1/255*Math.max(t,Math.max(r,a)),[o,i*100,a*100]},u.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(1-t,1-r,1-a),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,f=(1-a-o)/(1-o)||0;return[i*100,s*100,f*100,o*100]};function d(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){let t=h[e];if(t)return t;let r=1/0,a;for(let o of Object.keys(c)){let i=c[o],s=d(e,i);s.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;let o=t*.4124+r*.3576+a*.1805,i=t*.2126+r*.7152+a*.0722,s=t*.0193+r*.1192+a*.9505;return[o*100,i*100,s*100]},u.rgb.lab=function(e){let t=u.rgb.xyz(e),r=t[0],a=t[1],o=t[2];r/=95.047,a/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*a-16,s=500*(r-a),f=200*(a-o);return[i,s,f]},u.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o,i,s;if(r===0)return s=a*255,[s,s,s];a<.5?o=a*(1+r):o=a+r-a*r;let f=2*a-o,g=[0,0,0];for(let b=0;b<3;b++)i=t+1/3*-(b-1),i<0&&i++,i>1&&i--,6*i<1?s=f+(o-f)*6*i:2*i<1?s=o:3*i<2?s=f+(o-f)*(2/3-i)*6:s=f,g[b]=s*255;return g},u.hsl.hsv=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=r,i=Math.max(a,.01);a*=2,r*=a<=1?a:2-a,o*=i<=1?i:2-i;let s=(a+r)/2,f=a===0?2*o/(i+o):2*r/(a+r);return[t,f*100,s*100]},u.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,a=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-r),f=255*a*(1-r*i),g=255*a*(1-r*(1-i));switch(a*=255,o){case 0:return[a,g,s];case 1:return[f,a,s];case 2:return[s,a,g];case 3:return[s,f,a];case 4:return[g,s,a];case 5:return[a,s,f]}},u.hsv.hsl=function(e){let t=e[0],r=e[1]/100,a=e[2]/100,o=Math.max(a,.01),i,s;s=(2-r)*a;let f=(2-r)*o;return i=r*o,i/=f<=1?f:2-f,i=i||0,s/=2,[t,i*100,s*100]},u.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100,o=r+a,i;o>1&&(r/=o,a/=o);let s=Math.floor(6*t),f=1-a;i=6*t-s,s&1&&(i=1-i);let g=r+i*(f-r),b,y,v;switch(s){default:case 6:case 0:b=f,y=g,v=r;break;case 1:b=g,y=f,v=r;break;case 2:b=r,y=f,v=g;break;case 3:b=r,y=g,v=f;break;case 4:b=g,y=r,v=f;break;case 5:b=f,y=r,v=g;break}return[b*255,y*255,v*255]},u.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,r*(1-o)+o),f=1-Math.min(1,a*(1-o)+o);return[i*255,s*255,f*255]},u.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,a=e[2]/100,o,i,s;return o=t*3.2406+r*-1.5372+a*-.4986,i=t*-.9689+r*1.8758+a*.0415,s=t*.0557+r*-.204+a*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]},u.xyz.lab=function(e){let t=e[0],r=e[1],a=e[2];t/=95.047,r/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*r-16,i=500*(t-r),s=200*(r-a);return[o,i,s]},u.lab.xyz=function(e){let t=e[0],r=e[1],a=e[2],o,i,s;i=(t+16)/116,o=r/500+i,s=i-a/200;let f=i**3,g=o**3,b=s**3;return i=f>.008856?f:(i-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,s=b>.008856?b:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]},u.lab.lch=function(e){let t=e[0],r=e[1],a=e[2],o;o=Math.atan2(a,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+a*a);return[t,i,o]},u.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]},u.rgb.ansi16=function(e,t=null){let[r,a,o]=e,i=t===null?u.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(a/255)<<1|Math.round(r/255));return i===2&&(s+=60),s},u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])},u.rgb.ansi256=function(e){let t=e[0],r=e[1],a=e[2];return t===r&&r===a?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(a/255*5)},u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,a=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[a,o,i]},u.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,a=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,a,o]},u.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t},u.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(f=>f+f).join(""));let a=parseInt(r,16),o=a>>16&255,i=a>>8&255,s=a&255;return[o,i,s]},u.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.max(Math.max(t,r),a),i=Math.min(Math.min(t,r),a),s=o-i,f,g;return s<1?f=i/(1-s):f=0,s<=0?g=0:o===t?g=(r-a)/s%6:o===r?g=2+(a-t)/s:g=4+(t-r)/s,g/=6,g%=1,[g*360,s*100,f*100]},u.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=r<.5?2*t*r:2*t*(1-r),o=0;return a<1&&(o=(r-.5*a)/(1-a)),[e[0],a*100,o*100]},u.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,a=t*r,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,a=e[2]/100;if(r===0)return[a*255,a*255,a*255];let o=[0,0,0],i=t%1*6,s=i%1,f=1-s,g=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=f,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=f,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=f}return g=(1-r)*a,[(r*o[0]+g)*255,(r*o[1]+g)*255,(r*o[2]+g)*255]},u.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t),o=0;return a>0&&(o=t/a),[e[0],o*100,a*100]},u.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,a=0;return r>0&&r<.5?a=t/(2*r):r>=.5&&r<1&&(a=t/(2*(1-r))),[e[0],a*100,r*100]},u.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,a=t+r*(1-t);return[e[0],(a-t)*100,(1-a)*100]},u.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,a=r-t,o=0;return a<1&&(o=(r-a)/(1-a)),[e[0],a*100,o*100]},u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},u.gray.hsl=function(e){return[0,0,e[0]]},u.gray.hsv=u.gray.hsl,u.gray.hwb=function(e){return[0,100,e[0]]},u.gray.cmyk=function(e){return[0,0,0,e[0]]},u.gray.lab=function(e){return[e[0],0,0]},u.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),ve=q({"../../node_modules/color-convert/route.js"(n,l){var c=Q();function h(){let t={},r=Object.keys(c);for(let a=r.length,o=0;o1&&(o=i),r(o))};return"conversion"in r&&(a.conversion=r.conversion),a}function t(r){let a=function(...o){let i=o[0];if(i==null)return i;i.length>1&&(o=i);let s=r(o);if(typeof s=="object")for(let f=s.length,g=0;g{u[r]={},Object.defineProperty(u[r],"channels",{value:c[r].channels}),Object.defineProperty(u[r],"labels",{value:c[r].labels});let a=h(r);Object.keys(a).forEach(o=>{let i=a[o];u[r][o]=t(i),u[r][o].raw=e(i)})}),l.exports=u}}),_=ce(pe());function C(){return(C=Object.assign||function(n){for(var l=1;l=0||(u[c]=n[c]);return u}function L(n){var l=p.useRef(n),c=p.useRef(function(h){l.current&&l.current(h)});return l.current=n,c.current}var N=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=1),n>c?c:n0:y.buttons>0)&&u.current?d(F(u.current,y,t.current)):b(!1)},g=function(){return b(!1)};function b(y){var v=r.current,w=B(u.current),E=y?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",f),E(v?"touchend":"mouseup",g)}return[function(y){var v=y.nativeEvent,w=u.current;if(w&&(W(v),!function(k,P){return P&&!O(k)}(v,r.current)&&w)){if(O(v)){r.current=!0;var E=v.changedTouches||[];E.length&&(t.current=E[0].identifier)}w.focus(),d(F(w,v,t.current)),b(!0)}},function(y){var v=y.which||y.keyCode;v<37||v>40||(y.preventDefault(),e({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[e,d]),o=a[0],i=a[1],s=a[2];return p.useEffect(function(){return s},[s]),m.createElement("div",C({},h,{onTouchStart:o,onMouseDown:o,className:"react-colorful__interactive",ref:u,onKeyDown:i,tabIndex:0,role:"slider"}))}),S=function(n){return n.filter(Boolean).join(" ")},T=function(n){var l=n.color,c=n.left,h=n.top,u=h===void 0?.5:h,d=S(["react-colorful__pointer",n.className]);return m.createElement("div",{className:d,style:{top:100*u+"%",left:100*c+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:l}}))},x=function(n,l,c){return l===void 0&&(l=0),c===void 0&&(c=Math.pow(10,l)),Math.round(c*n)/c},ye={grad:.9,turn:360,rad:360/(2*Math.PI)},xe=function(n){return re(K(n))},K=function(n){return n[0]==="#"&&(n=n.substring(1)),n.length<6?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?x(parseInt(n[3]+n[3],16)/255,2):1}:{r:parseInt(n.substring(0,2),16),g:parseInt(n.substring(2,4),16),b:parseInt(n.substring(4,6),16),a:n.length===8?x(parseInt(n.substring(6,8),16)/255,2):1}},we=function(n,l){return l===void 0&&(l="deg"),Number(n)*(ye[l]||1)},ke=function(n){var l=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?_e({h:we(l[1],l[2]),s:Number(l[3]),l:Number(l[4]),a:l[5]===void 0?1:Number(l[5])/(l[6]?100:1)}):{h:0,s:0,v:0,a:1}},_e=function(n){var l=n.s,c=n.l;return{h:n.h,s:(l*=(c<50?c:100-c)/100)>0?2*l/(c+l)*100:0,v:c+l,a:n.a}},Ee=function(n){return Ce(ee(n))},Z=function(n){var l=n.s,c=n.v,h=n.a,u=(200-l)*c/100;return{h:x(n.h),s:x(u>0&&u<200?l*c/100/(u<=100?u:200-u)*100:0),l:x(u/2),a:x(h,2)}},X=function(n){var l=Z(n);return"hsl("+l.h+", "+l.s+"%, "+l.l+"%)"},I=function(n){var l=Z(n);return"hsla("+l.h+", "+l.s+"%, "+l.l+"%, "+l.a+")"},ee=function(n){var l=n.h,c=n.s,h=n.v,u=n.a;l=l/360*6,c/=100,h/=100;var d=Math.floor(l),e=h*(1-c),t=h*(1-(l-d)*c),r=h*(1-(1-l+d)*c),a=d%6;return{r:x(255*[h,t,e,e,r,h][a]),g:x(255*[r,h,h,t,e,e][a]),b:x(255*[e,e,r,h,h,t][a]),a:x(u,2)}},Me=function(n){var l=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(n);return l?re({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:l[7]===void 0?1:Number(l[7])/(l[8]?100:1)}):{h:0,s:0,v:0,a:1}},j=function(n){var l=n.toString(16);return l.length<2?"0"+l:l},Ce=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=u<1?j(x(255*u)):"";return"#"+j(l)+j(c)+j(h)+d},re=function(n){var l=n.r,c=n.g,h=n.b,u=n.a,d=Math.max(l,c,h),e=d-Math.min(l,c,h),t=e?d===l?(c-h)/e:d===c?2+(h-l)/e:4+(l-c)/e:0;return{h:x(60*(t<0?t+6:t)),s:x(d?e/d*100:0),v:x(d/255*100),a:u}},te=m.memo(function(n){var l=n.hue,c=n.onChange,h=S(["react-colorful__hue",n.className]);return m.createElement("div",{className:h},m.createElement(G,{onMove:function(u){c({h:360*u.left})},onKey:function(u){c({h:N(l+360*u.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(l),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(T,{className:"react-colorful__hue-pointer",left:l/360,color:X({h:l,s:100,v:100,a:1})})))}),ne=m.memo(function(n){var l=n.hsva,c=n.onChange,h={backgroundColor:X({h:l.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:h},m.createElement(G,{onMove:function(u){c({s:100*u.left,v:100-100*u.top})},onKey:function(u){c({s:N(l.s+100*u.left,0,100),v:N(l.v-100*u.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(l.s)+"%, Brightness "+x(l.v)+"%"},m.createElement(T,{className:"react-colorful__saturation-pointer",top:1-l.v/100,left:l.s/100,color:X(l)})))}),ae=function(n,l){if(n===l)return!0;for(var c in n)if(n[c]!==l[c])return!1;return!0},oe=function(n,l){return n.replace(/\s/g,"")===l.replace(/\s/g,"")},$e=function(n,l){return n.toLowerCase()===l.toLowerCase()||ae(K(n),K(l))};function le(n,l,c){var h=L(c),u=p.useState(function(){return n.toHsva(l)}),d=u[0],e=u[1],t=p.useRef({color:l,hsva:d});p.useEffect(function(){if(!n.equal(l,t.current.color)){var a=n.toHsva(l);t.current={hsva:a,color:l},e(a)}},[l,n]),p.useEffect(function(){var a;ae(d,t.current.hsva)||n.equal(a=n.fromHsva(d),t.current.color)||(t.current={hsva:d,color:a},h(a))},[d,n,h]);var r=p.useCallback(function(a){e(function(o){return Object.assign({},o,a)})},[]);return[d,r]}var Ne=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},A=new Map,ie=function(n){Ne(function(){var l=n.current?n.current.ownerDocument:document;if(l!==void 0&&!A.has(l)){var c=l.createElement("style");c.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,A.set(l,c);var h=Oe();h&&c.setAttribute("nonce",h),l.head.appendChild(c)}},[])},Se=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o,className:"react-colorful__last-control"}))},je={defaultColor:"000",toHsva:xe,fromHsva:function(n){return Ee({h:n.h,s:n.s,v:n.v,a:1})},equal:$e},Re=function(n){return m.createElement(Se,C({},n,{colorModel:je}))},ze=function(n){var l=n.className,c=n.hsva,h=n.onChange,u={backgroundImage:"linear-gradient(90deg, "+I(Object.assign({},c,{a:0}))+", "+I(Object.assign({},c,{a:1}))+")"},d=S(["react-colorful__alpha",l]),e=x(100*c.a);return m.createElement("div",{className:d},m.createElement("div",{className:"react-colorful__alpha-gradient",style:u}),m.createElement(G,{onMove:function(t){h({a:t.left})},onKey:function(t){h({a:N(c.a+t.left)})},"aria-label":"Alpha","aria-valuetext":e+"%","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(T,{className:"react-colorful__alpha-pointer",left:c.a,color:I(c)})))},ue=function(n){var l=n.className,c=n.colorModel,h=n.color,u=h===void 0?c.defaultColor:h,d=n.onChange,e=V(n,["className","colorModel","color","onChange"]),t=p.useRef(null);ie(t);var r=le(c,u,d),a=r[0],o=r[1],i=S(["react-colorful",l]);return m.createElement("div",C({},e,{ref:t,className:i}),m.createElement(ne,{hsva:a,onChange:o}),m.createElement(te,{hue:a.h,onChange:o}),m.createElement(ze,{hsva:a,onChange:o,className:"react-colorful__last-control"}))},Ie={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ke,fromHsva:I,equal:oe},He=function(n){return m.createElement(ue,C({},n,{colorModel:Ie}))},qe={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Me,fromHsva:function(n){var l=ee(n);return"rgba("+l.r+", "+l.g+", "+l.b+", "+l.a+")"},equal:oe},Pe=function(n){return m.createElement(ue,C({},n,{colorModel:qe}))},Le=M.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Be=M(J)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ke=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Xe=M(he)(({theme:n})=>({fontFamily:n.typography.fonts.base})),De=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Ve=M.div(({theme:n,active:l})=>({width:16,height:16,boxShadow:l?`${n.appBorderColor} 0 0 0 1px inset, ${n.textMutedColor}50 0 0 0 4px`:`${n.appBorderColor} 0 0 0 1px inset`,borderRadius:n.appBorderRadius})),Ge=`url('data:image/svg+xml;charset=utf-8,')`,U=({value:n,style:l,...c})=>{let h=`linear-gradient(${n}, ${n}), ${Ge}, linear-gradient(#fff, #fff)`;return m.createElement(Ve,{...c,style:{...l,backgroundImage:h}})},Te=M(fe.Input)(({theme:n,readOnly:l})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:n.typography.fonts.base})),Fe=M(de)(({theme:n})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:n.input.color})),se=(n=>(n.RGB="rgb",n.HSL="hsl",n.HEX="hex",n))(se||{}),R=Object.values(se),We=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Ae=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ue=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,D=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Ye=/^\s*#?([0-9a-f]{3})\s*$/i,Je={hex:Re,rgb:Pe,hsl:He},z={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Y=n=>{let l=n==null?void 0:n.match(We);if(!l)return[0,0,0,1];let[,c,h,u,d=1]=l;return[c,h,u,d].map(Number)},$=n=>{if(!n)return;let l=!0;if(Ae.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.rgb.hsl([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.rgb.keyword([e,t,r]),colorSpace:"rgb",rgb:n,hsl:`hsla(${o}, ${i}%, ${s}%, ${a})`,hex:`#${_.default.rgb.hex([e,t,r]).toLowerCase()}`}}if(Ue.test(n)){let[e,t,r,a]=Y(n),[o,i,s]=_.default.hsl.rgb([e,t,r])||[0,0,0];return{valid:l,value:n,keyword:_.default.hsl.keyword([e,t,r]),colorSpace:"hsl",rgb:`rgba(${o}, ${i}, ${s}, ${a})`,hsl:n,hex:`#${_.default.hsl.hex([e,t,r]).toLowerCase()}`}}let c=n.replace("#",""),h=_.default.keyword.rgb(c)||_.default.hex.rgb(c),u=_.default.rgb.hsl(h),d=n;if(/[^#a-f0-9]/i.test(n)?d=c:D.test(n)&&(d=`#${c}`),d.startsWith("#"))l=D.test(d);else try{_.default.keyword.hex(d)}catch{l=!1}return{valid:l,value:d,keyword:_.default.rgb.keyword(h),colorSpace:"hex",rgb:`rgba(${h[0]}, ${h[1]}, ${h[2]}, 1)`,hsl:`hsla(${u[0]}, ${u[1]}%, ${u[2]}%, 1)`,hex:d}},Qe=(n,l,c)=>{if(!n||!(l!=null&&l.valid))return z[c];if(c!=="hex")return(l==null?void 0:l[c])||z[c];if(!l.hex.startsWith("#"))try{return`#${_.default.keyword.hex(l.hex)}`}catch{return z.hex}let h=l.hex.match(Ye);if(!h)return D.test(l.hex)?l.hex:z.hex;let[u,d,e]=h[1].split("");return`#${u}${u}${d}${d}${e}${e}`},Ze=(n,l)=>{let[c,h]=p.useState(n||""),[u,d]=p.useState(()=>$(c)),[e,t]=p.useState((u==null?void 0:u.colorSpace)||"hex");p.useEffect(()=>{let i=n||"",s=$(i);h(i),d(s),t((s==null?void 0:s.colorSpace)||"hex")},[n]);let r=p.useMemo(()=>Qe(c,u,e).toLowerCase(),[c,u,e]),a=p.useCallback(i=>{let s=$(i),f=(s==null?void 0:s.value)||i||"";h(f),f===""&&(d(void 0),l(void 0)),s&&(d(s),t(s.colorSpace),l(s.value))},[l]),o=p.useCallback(()=>{let i=R.indexOf(e)+1;i>=R.length&&(i=0),t(R[i]);let s=(u==null?void 0:u[R[i]])||"";h(s),l(s)},[u,e,l]);return{value:c,realValue:r,updateValue:a,color:u,colorSpace:e,cycleColorSpace:o}},H=n=>n.replace(/\s*/,"").toLowerCase(),er=(n,l,c)=>{let[h,u]=p.useState(l!=null&&l.valid?[l]:[]);p.useEffect(()=>{l===void 0&&u([])},[l]);let d=p.useMemo(()=>(n||[]).map(t=>typeof t=="string"?$(t):t.title?{...$(t.color),keyword:t.title}:$(t.color)).concat(h).filter(Boolean).slice(-27),[n,h]),e=p.useCallback(t=>{t!=null&&t.valid&&(d.some(r=>H(r[c])===H(t[c]))||u(r=>r.concat(t)))},[c,d]);return{presets:d,addPreset:e}},rr=({name:n,value:l,onChange:c,onFocus:h,onBlur:u,presetColors:d,startOpen:e=!1,argType:t})=>{var E;let r=p.useCallback(ge(c,200),[c]),{value:a,realValue:o,updateValue:i,color:s,colorSpace:f,cycleColorSpace:g}=Ze(l,r),{presets:b,addPreset:y}=er(d,s,f),v=Je[f],w=!!((E=t==null?void 0:t.table)!=null&&E.readonly);return m.createElement(Le,{"aria-readonly":w},m.createElement(Be,{startOpen:e,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>y(s),tooltip:m.createElement(Ke,null,m.createElement(v,{color:o==="transparent"?"#000000":o,onChange:i,onFocus:h,onBlur:u}),b.length>0&&m.createElement(De,null,b.map((k,P)=>m.createElement(J,{key:`${k.value}-${P}`,hasChrome:!1,tooltip:m.createElement(Xe,{note:k.keyword||k.value})},m.createElement(U,{value:k[f],active:s&&H(k[f])===H(s[f]),onClick:()=>i(k.value)})))))},m.createElement(U,{value:o,style:{margin:4}})),m.createElement(Te,{id:be(n),value:a,onChange:k=>i(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),a?m.createElement(Fe,{onClick:g}):null)},sr=rr;export{rr as ColorControl,sr as default}; diff --git a/assets/DocsRenderer-CFRXHY34-DnsuvIpF.js b/assets/DocsRenderer-CFRXHY34-k_AT4g2A.js similarity index 93% rename from assets/DocsRenderer-CFRXHY34-DnsuvIpF.js rename to assets/DocsRenderer-CFRXHY34-k_AT4g2A.js index 47c1025df..df85f5e9c 100644 --- a/assets/DocsRenderer-CFRXHY34-DnsuvIpF.js +++ b/assets/DocsRenderer-CFRXHY34-k_AT4g2A.js @@ -1,2 +1,2 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BogtSeel.js","./jsx-runtime-DDll1Hf8.js","./_commonjsHelpers-BosuxZz1.js"])))=>i.map(i=>d[i]); -import{_ as h}from"./iframe-6fMPdiq5.js";import{r as s,e as n}from"./jsx-runtime-DDll1Hf8.js";import{ak as E,al as d,am as v,an as R,ao as w}from"./index-DEhfps_P.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";var l,c=E;l=c.createRoot,c.hydrateRoot;var a=new Map;function _(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var x=async(e,t,r)=>{let o=await g(t,r);if(_()){o.render(e);return}let{promise:i,resolve:m}=Promise.withResolvers();return o.render(s.createElement(f,{callback:m},e)),i},y=(e,t)=>{let r=a.get(e);r&&(r.unmount(),a.delete(e))},g=async(e,t)=>{let r=a.get(e);return r||(r=l(e,t),a.set(e,r)),r},D={code:d,a:v,...R},C=class extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:n.createElement(n.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let o={...D,...t==null?void 0:t.components},i=w;return new Promise((m,p)=>{h(async()=>{const{MDXProvider:u}=await import("./index-BogtSeel.js");return{MDXProvider:u}},__vite__mapDeps([0,1,2]),import.meta.url).then(({MDXProvider:u})=>x(n.createElement(C,{showException:p,key:Math.random()},n.createElement(u,{components:o},n.createElement(i,{context:e,docsParameter:t}))),r)).then(()=>m())})},this.unmount=e=>{y(e)}}};export{S as DocsRenderer,D as defaultComponents}; +import{_ as h}from"./iframe-BDrD3q8C.js";import{r as s,e as n}from"./jsx-runtime-DDll1Hf8.js";import{ak as E,al as d,am as v,an as R,ao as w}from"./index-BlccYh0h.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";var l,c=E;l=c.createRoot,c.hydrateRoot;var a=new Map;function _(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var x=async(e,t,r)=>{let o=await g(t,r);if(_()){o.render(e);return}let{promise:i,resolve:m}=Promise.withResolvers();return o.render(s.createElement(f,{callback:m},e)),i},y=(e,t)=>{let r=a.get(e);r&&(r.unmount(),a.delete(e))},g=async(e,t)=>{let r=a.get(e);return r||(r=l(e,t),a.set(e,r)),r},D={code:d,a:v,...R},C=class extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:n.createElement(n.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let o={...D,...t==null?void 0:t.components},i=w;return new Promise((m,p)=>{h(async()=>{const{MDXProvider:u}=await import("./index-BogtSeel.js");return{MDXProvider:u}},__vite__mapDeps([0,1,2]),import.meta.url).then(({MDXProvider:u})=>x(n.createElement(C,{showException:p,key:Math.random()},n.createElement(u,{components:o},n.createElement(i,{context:e,docsParameter:t}))),r)).then(()=>m())})},this.unmount=e=>{y(e)}}};export{S as DocsRenderer,D as defaultComponents}; diff --git a/assets/iframe-6fMPdiq5.js b/assets/iframe-BDrD3q8C.js similarity index 96% rename from assets/iframe-6fMPdiq5.js rename to assets/iframe-BDrD3q8C.js index 0974132e8..d03ff2694 100644 --- a/assets/iframe-6fMPdiq5.js +++ b/assets/iframe-BDrD3q8C.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-CmBXmm5r.js","./jsx-runtime-DDll1Hf8.js","./_commonjsHelpers-BosuxZz1.js","./index-BogtSeel.js","./chart.stories-B_n0eSyC.js","./lit-element-Dh4_iwrW.js","./drawtools.stories-BdLbKxLz.js","./geosearch.stories-Db8oGlqR.js","./itemfilter.stories-BnzI9Hty.js","./index-D9BtBJM9.js","./jsonform.stories-BIrgH1uZ.js","./layercontrol.stories-C0AQOkIn.js","./directive-DUGPADuw.js","./layout.stories-S-lERfVa.js","./map.stories-BG3jACLp.js","./main-Dh1LOCw_.js","./stacinfo.stories-C616ffbU.js","./storytelling.stories-BaeBWdnw.js","./timecontrol.stories-BectQd4Q.js","./entry-preview-BErytJoa.js","./index-DrFu-skq.js","./entry-preview-docs-CdV_eFBr.js","./chunk-L4EGOTBX-BALMY2cf.js","./index-DANZ6Lwg.js","./tiny-invariant-CopsF_GD.js","./preview-D77C14du.js","./preview-DEMzn_yN.js","./preview-BWzBA1C2.js","./preview-DvomHhfz.js","./preview-BdSPFxEd.js","./index-DEhfps_P.js"])))=>i.map(i=>d[i]); -import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function n(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=n(t);fetch(t.href,o)}})();const R="modulepreload",y=function(r,_){return new URL(r,_).href},d={},e=function(_,n,c){let t=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),O=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));t=Promise.allSettled(n.map(l=>{if(l=y(l,c),l in d)return;d[l]=!0;const a=l.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const E=i[u];if(E.href===l&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":R,a||(m.as="script"),m.crossOrigin="",m.href=l,O&&m.setAttribute("nonce",O),document.head.appendChild(m),a)return new Promise((u,E)=>{m.addEventListener("load",u),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return t.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,p=T({page:"preview"});L.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./.storybook/About.mdx":async()=>e(()=>import("./About-CmBXmm5r.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./elements/chart/stories/chart.stories.js":async()=>e(()=>import("./chart.stories-B_n0eSyC.js"),__vite__mapDeps([4,5]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>e(()=>import("./drawtools.stories-BdLbKxLz.js"),__vite__mapDeps([6,5]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>e(()=>import("./geosearch.stories-Db8oGlqR.js"),__vite__mapDeps([7,5]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>e(()=>import("./itemfilter.stories-BnzI9Hty.js"),__vite__mapDeps([8,9,5]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>e(()=>import("./jsonform.stories-BIrgH1uZ.js"),__vite__mapDeps([10,5]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>e(()=>import("./layercontrol.stories-C0AQOkIn.js"),__vite__mapDeps([11,5,12]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>e(()=>import("./layout.stories-S-lERfVa.js"),__vite__mapDeps([13,5]),import.meta.url),"./elements/map/stories/map.stories.js":async()=>e(()=>import("./map.stories-BG3jACLp.js"),__vite__mapDeps([14,5,15]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>e(()=>import("./stacinfo.stories-C616ffbU.js"),__vite__mapDeps([16,5]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>e(()=>import("./storytelling.stories-BaeBWdnw.js"),__vite__mapDeps([17,5]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>e(()=>import("./timecontrol.stories-BectQd4Q.js"),__vite__mapDeps([18,5]),import.meta.url)};async function I(r){return P[r]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:h}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(r=[])=>{const _=await Promise.all([r[0]??e(()=>import("./entry-preview-BErytJoa.js").then(n=>n.e),__vite__mapDeps([19,5,20]),import.meta.url),r[1]??e(()=>import("./entry-preview-docs-CdV_eFBr.js"),__vite__mapDeps([21,22,19,5,20,23,2,24]),import.meta.url),r[2]??e(()=>import("./preview-DwR6fZ7y.js"),[],import.meta.url),r[3]??e(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??e(()=>import("./preview-D77C14du.js"),__vite__mapDeps([25,20]),import.meta.url),r[5]??e(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??e(()=>import("./preview-DEMzn_yN.js"),__vite__mapDeps([26,24]),import.meta.url),r[7]??e(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([27,20]),import.meta.url),r[8]??e(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??e(()=>import("./preview-DvomHhfz.js"),__vite__mapDeps([28,9]),import.meta.url),r[10]??e(()=>import("./preview-BdSPFxEd.js").then(n=>n.p),__vite__mapDeps([29,22,19,5,20,1,2,3,30,23,12,15]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{e as _}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./About-CmBXmm5r.js","./jsx-runtime-DDll1Hf8.js","./_commonjsHelpers-BosuxZz1.js","./index-BogtSeel.js","./chart.stories-B_n0eSyC.js","./lit-element-Dh4_iwrW.js","./drawtools.stories-BdLbKxLz.js","./geosearch.stories-Db8oGlqR.js","./itemfilter.stories-BnzI9Hty.js","./index-D9BtBJM9.js","./jsonform.stories-BIrgH1uZ.js","./layercontrol.stories-C0AQOkIn.js","./directive-DUGPADuw.js","./layout.stories-S-lERfVa.js","./map.stories-BG3jACLp.js","./main-Dh1LOCw_.js","./stacinfo.stories-C616ffbU.js","./storytelling.stories-BaeBWdnw.js","./timecontrol.stories-BectQd4Q.js","./entry-preview-BErytJoa.js","./index-DrFu-skq.js","./entry-preview-docs-CdV_eFBr.js","./chunk-L4EGOTBX-BALMY2cf.js","./index-DANZ6Lwg.js","./tiny-invariant-CopsF_GD.js","./preview-D77C14du.js","./preview-DEMzn_yN.js","./preview-BWzBA1C2.js","./preview-DvomHhfz.js","./preview-BTy071Hg.js","./index-BlccYh0h.js"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))c(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&c(i)}).observe(document,{childList:!0,subtree:!0});function n(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerPolicy&&(o.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?o.credentials="include":t.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function c(t){if(t.ep)return;t.ep=!0;const o=n(t);fetch(t.href,o)}})();const R="modulepreload",y=function(r,_){return new URL(r,_).href},d={},e=function(_,n,c){let t=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),O=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));t=Promise.allSettled(n.map(l=>{if(l=y(l,c),l in d)return;d[l]=!0;const a=l.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!c)for(let u=i.length-1;u>=0;u--){const E=i[u];if(E.href===l&&(!a||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const m=document.createElement("link");if(m.rel=a?"stylesheet":R,a||(m.as="script"),m.crossOrigin="",m.href=l,O&&m.setAttribute("nonce",O),document.head.appendChild(m),a)return new Promise((u,E)=>{m.addEventListener("load",u),m.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return t.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return _().catch(o)})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,p=T({page:"preview"});L.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./.storybook/About.mdx":async()=>e(()=>import("./About-CmBXmm5r.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./elements/chart/stories/chart.stories.js":async()=>e(()=>import("./chart.stories-B_n0eSyC.js"),__vite__mapDeps([4,5]),import.meta.url),"./elements/drawtools/stories/drawtools.stories.js":async()=>e(()=>import("./drawtools.stories-BdLbKxLz.js"),__vite__mapDeps([6,5]),import.meta.url),"./elements/geosearch/stories/geosearch.stories.js":async()=>e(()=>import("./geosearch.stories-Db8oGlqR.js"),__vite__mapDeps([7,5]),import.meta.url),"./elements/itemfilter/stories/itemfilter.stories.js":async()=>e(()=>import("./itemfilter.stories-BnzI9Hty.js"),__vite__mapDeps([8,9,5]),import.meta.url),"./elements/jsonform/stories/jsonform.stories.js":async()=>e(()=>import("./jsonform.stories-BIrgH1uZ.js"),__vite__mapDeps([10,5]),import.meta.url),"./elements/layercontrol/stories/layercontrol.stories.js":async()=>e(()=>import("./layercontrol.stories-C0AQOkIn.js"),__vite__mapDeps([11,5,12]),import.meta.url),"./elements/layout/stories/layout.stories.js":async()=>e(()=>import("./layout.stories-S-lERfVa.js"),__vite__mapDeps([13,5]),import.meta.url),"./elements/map/stories/map.stories.js":async()=>e(()=>import("./map.stories-BG3jACLp.js"),__vite__mapDeps([14,5,15]),import.meta.url),"./elements/stacinfo/stories/stacinfo.stories.js":async()=>e(()=>import("./stacinfo.stories-C616ffbU.js"),__vite__mapDeps([16,5]),import.meta.url),"./elements/storytelling/stories/storytelling.stories.js":async()=>e(()=>import("./storytelling.stories-BaeBWdnw.js"),__vite__mapDeps([17,5]),import.meta.url),"./elements/timecontrol/stories/timecontrol.stories.js":async()=>e(()=>import("./timecontrol.stories-BectQd4Q.js"),__vite__mapDeps([18,5]),import.meta.url)};async function I(r){return P[r]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:h}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(r=[])=>{const _=await Promise.all([r[0]??e(()=>import("./entry-preview-BErytJoa.js").then(n=>n.e),__vite__mapDeps([19,5,20]),import.meta.url),r[1]??e(()=>import("./entry-preview-docs-CdV_eFBr.js"),__vite__mapDeps([21,22,19,5,20,23,2,24]),import.meta.url),r[2]??e(()=>import("./preview-DgrfuTz5.js"),[],import.meta.url),r[3]??e(()=>import("./preview-aVwhiz9X.js"),[],import.meta.url),r[4]??e(()=>import("./preview-D77C14du.js"),__vite__mapDeps([25,20]),import.meta.url),r[5]??e(()=>import("./preview-DFmD0pui.js"),[],import.meta.url),r[6]??e(()=>import("./preview-DEMzn_yN.js"),__vite__mapDeps([26,24]),import.meta.url),r[7]??e(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([27,20]),import.meta.url),r[8]??e(()=>import("./preview-DGUiP6tS.js"),[],import.meta.url),r[9]??e(()=>import("./preview-DvomHhfz.js"),__vite__mapDeps([28,9]),import.meta.url),r[10]??e(()=>import("./preview-BTy071Hg.js").then(n=>n.p),__vite__mapDeps([29,22,19,5,20,1,2,3,30,23,12,15]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{e as _}; diff --git a/assets/index-DEhfps_P.js b/assets/index-BlccYh0h.js similarity index 99% rename from assets/index-DEhfps_P.js rename to assets/index-BlccYh0h.js index 35265a1a1..570598983 100644 --- a/assets/index-DEhfps_P.js +++ b/assets/index-BlccYh0h.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BW8DBsXs.js","./iframe-6fMPdiq5.js","./jsx-runtime-DDll1Hf8.js","./_commonjsHelpers-BosuxZz1.js","./index-DANZ6Lwg.js","./index-DrFu-skq.js","./Color-F6OSRLHC-IG5Jqzyw.js"])))=>i.map(i=>d[i]); -var xz=Object.defineProperty;var Cz=(e,t,r)=>t in e?xz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Da=(e,t,r)=>Cz(e,typeof t!="symbol"?t+"":t,r);import{_ as SE}from"./iframe-6fMPdiq5.js";import{r as s,e as b,j as re}from"./jsx-runtime-DDll1Hf8.js";import{g as Dz}from"./_commonjsHelpers-BosuxZz1.js";import{y as Ny,g as H1}from"./index-DANZ6Lwg.js";import{d as Sz}from"./index-DrFu-skq.js";var kz=Object.create,kE=Object.defineProperty,Az=Object.getOwnPropertyDescriptor,AE=Object.getOwnPropertyNames,_z=Object.getPrototypeOf,Fz=Object.prototype.hasOwnProperty,zu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ia=(e,t)=>function(){return t||(0,e[AE(e)[0]])((t={exports:{}}).exports,t),t.exports},Rz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AE(t))!Fz.call(e,o)&&o!==r&&kE(e,o,{get:()=>t[o],enumerable:!(n=Az(t,o))||n.enumerable});return e},z5=(e,t,r)=>(r=e!=null?kz(_z(e)):{},Rz(t||!e||!e.__esModule?kE(r,"default",{value:e,enumerable:!0}):r,e));function Iz(e,t,{signal:r,edges:n}={}){let o,a=null,l=n!=null&&n.includes("leading"),i=n==null||n.includes("trailing"),u=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},d=()=>{i&&u(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),o=void 0,a=null},v=()=>{h(),u()},g=function(...C){if(r!=null&&r.aborted)return;o=this,a=C;let w=p==null;m(),l&&w&&u()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function ate(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:l}=r,i=Array(2);o&&(i[0]="leading"),a&&(i[1]="trailing");let u,d=null,p=Iz(function(...f){u=e.apply(this,f),d=null},t,{signal:n,edges:i}),m=function(...f){if(l!=null){if(d===null)d=Date.now();else if(Date.now()-d>=l)return u=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),u}return p.apply(this,f),u},h=()=>(p.flush(),u);return m.cancel=p.cancel,m.flush=h,m}function zz(e){return Array.from(new Set(e))}function Tz(e,t){let r={},n=Object.entries(e);for(let o=0;o`control-${e.replace(/\s+/g,"-")}`,wd=e=>`set-${e.replace(/\s+/g,"-")}`,Hz=Object.create,T5=Object.defineProperty,jz=Object.getOwnPropertyDescriptor,Vz=Object.getOwnPropertyNames,Uz=Object.getPrototypeOf,Wz=Object.prototype.hasOwnProperty,I=(e,t)=>T5(e,"name",{value:t,configurable:!0}),Tu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),bd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vz(t))!Wz.call(e,o)&&o!==r&&T5(e,o,{get:()=>t[o],enumerable:!(n=jz(t,o))||n.enumerable});return e},B5=(e,t,r)=>(r=e!=null?Hz(Uz(e)):{},qz(t||!e||!e.__esModule?T5(r,"default",{value:e,enumerable:!0}):r,e)),Gz=bd(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,C=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===o||W===p||W===l||W===a||W===h||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===v||W.$$typeof===i||W.$$typeof===u||W.$$typeof===m||W.$$typeof===w||W.$$typeof===y||W.$$typeof===E||W.$$typeof===C)}I(x,"isValidElementType");function D(W){if(typeof W=="object"&&W!==null){var Gt=W.$$typeof;switch(Gt){case r:var Er=W.type;switch(Er){case d:case p:case o:case l:case a:case h:return Er;default:var yo=Er&&Er.$$typeof;switch(yo){case u:case m:case g:case v:case i:return yo;default:return Gt}}case n:return Gt}}}I(D,"typeOf");var S=d,k=p,A=u,_=i,R=r,z=m,L=o,$=g,N=v,M=n,j=l,q=a,B=h,P=!1;function H(W){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(W)||D(W)===d}I(H,"isAsyncMode");function G(W){return D(W)===p}I(G,"isConcurrentMode");function Z(W){return D(W)===u}I(Z,"isContextConsumer");function Q(W){return D(W)===i}I(Q,"isContextProvider");function le(W){return typeof W=="object"&&W!==null&&W.$$typeof===r}I(le,"isElement");function U(W){return D(W)===m}I(U,"isForwardRef");function X(W){return D(W)===o}I(X,"isFragment");function te(W){return D(W)===g}I(te,"isLazy");function Ae(W){return D(W)===v}I(Ae,"isMemo");function We(W){return D(W)===n}I(We,"isPortal");function br(W){return D(W)===l}I(br,"isProfiler");function bt(W){return D(W)===a}I(bt,"isStrictMode");function qt(W){return D(W)===h}I(qt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=R,e.ForwardRef=z,e.Fragment=L,e.Lazy=$,e.Memo=N,e.Portal=M,e.Profiler=j,e.StrictMode=q,e.Suspense=B,e.isAsyncMode=H,e.isConcurrentMode=G,e.isContextConsumer=Z,e.isContextProvider=Q,e.isElement=le,e.isForwardRef=U,e.isFragment=X,e.isLazy=te,e.isMemo=Ae,e.isPortal=We,e.isProfiler=br,e.isStrictMode=bt,e.isSuspense=qt,e.isValidElementType=x,e.typeOf=D})()}),Kz=bd((e,t)=>{t.exports=Gz()}),_E=bd((e,t)=>{var r=Kz(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[r.ForwardRef]=a,i[r.Memo]=l;function u(C){return r.isMemo(C)?l:i[C.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(C,w,y){if(typeof w!="string"){if(v){var E=f(w);E&&E!==v&&g(C,E,y)}var x=p(w);m&&(x=x.concat(m(w)));for(var D=u(C),S=u(w),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,o,a){function l(d,p){if(!o[d]){if(!n[d]){var m=typeof Tu=="function"&&Tu;if(!p&&m)return m(d,!0);if(i)return i(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return l(g||v)},f,f.exports,r,n,o,a)}return o[d].exports}I(l,"s");for(var i=typeof Tu=="function"&&Tu,u=0;u=0)return this.lastItem=this.list[i],this.list[i].val},a.prototype.set=function(l,i){var u;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=i,this):(u=this.indexOf(l),u>=0?(this.lastItem=this.list[u],this.list[u].val=i,this):(this.lastItem={key:l,val:i},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(l){var i;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),i=this.indexOf(l),i>=0)return this.size--,this.list.splice(i,1)[0]},a.prototype.has=function(l){var i;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(i=this.indexOf(l),i>=0?(this.lastItem=this.list[i],!0):!1)},a.prototype.forEach=function(l,i){var u;for(u=0;u0&&(y[w]={cacheItem:v,arg:arguments[w]},E?l(m,y):m.push(y),m.length>d&&i(m.shift())),f.wasMemoized=E,f.numArgs=w+1,C},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function l(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}I(i,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>d[i]); +var xz=Object.defineProperty;var Cz=(e,t,r)=>t in e?xz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Da=(e,t,r)=>Cz(e,typeof t!="symbol"?t+"":t,r);import{_ as SE}from"./iframe-BDrD3q8C.js";import{r as s,e as b,j as re}from"./jsx-runtime-DDll1Hf8.js";import{g as Dz}from"./_commonjsHelpers-BosuxZz1.js";import{y as Ny,g as H1}from"./index-DANZ6Lwg.js";import{d as Sz}from"./index-DrFu-skq.js";var kz=Object.create,kE=Object.defineProperty,Az=Object.getOwnPropertyDescriptor,AE=Object.getOwnPropertyNames,_z=Object.getPrototypeOf,Fz=Object.prototype.hasOwnProperty,zu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ia=(e,t)=>function(){return t||(0,e[AE(e)[0]])((t={exports:{}}).exports,t),t.exports},Rz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AE(t))!Fz.call(e,o)&&o!==r&&kE(e,o,{get:()=>t[o],enumerable:!(n=Az(t,o))||n.enumerable});return e},z5=(e,t,r)=>(r=e!=null?kz(_z(e)):{},Rz(t||!e||!e.__esModule?kE(r,"default",{value:e,enumerable:!0}):r,e));function Iz(e,t,{signal:r,edges:n}={}){let o,a=null,l=n!=null&&n.includes("leading"),i=n==null||n.includes("trailing"),u=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},d=()=>{i&&u(),f()},p=null,m=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},t)},h=()=>{p!==null&&(clearTimeout(p),p=null)},f=()=>{h(),o=void 0,a=null},v=()=>{h(),u()},g=function(...C){if(r!=null&&r.aborted)return;o=this,a=C;let w=p==null;m(),l&&w&&u()};return g.schedule=m,g.cancel=f,g.flush=v,r==null||r.addEventListener("abort",f,{once:!0}),g}function ate(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:l}=r,i=Array(2);o&&(i[0]="leading"),a&&(i[1]="trailing");let u,d=null,p=Iz(function(...f){u=e.apply(this,f),d=null},t,{signal:n,edges:i}),m=function(...f){if(l!=null){if(d===null)d=Date.now();else if(Date.now()-d>=l)return u=e.apply(this,f),d=Date.now(),p.cancel(),p.schedule(),u}return p.apply(this,f),u},h=()=>(p.flush(),u);return m.cancel=p.cancel,m.flush=h,m}function zz(e){return Array.from(new Set(e))}function Tz(e,t){let r={},n=Object.entries(e);for(let o=0;o`control-${e.replace(/\s+/g,"-")}`,wd=e=>`set-${e.replace(/\s+/g,"-")}`,Hz=Object.create,T5=Object.defineProperty,jz=Object.getOwnPropertyDescriptor,Vz=Object.getOwnPropertyNames,Uz=Object.getPrototypeOf,Wz=Object.prototype.hasOwnProperty,I=(e,t)=>T5(e,"name",{value:t,configurable:!0}),Tu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),bd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Vz(t))!Wz.call(e,o)&&o!==r&&T5(e,o,{get:()=>t[o],enumerable:!(n=jz(t,o))||n.enumerable});return e},B5=(e,t,r)=>(r=e!=null?Hz(Uz(e)):{},qz(t||!e||!e.__esModule?T5(r,"default",{value:e,enumerable:!0}):r,e)),Gz=bd(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,C=t?Symbol.for("react.block"):60121,w=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===o||W===p||W===l||W===a||W===h||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===v||W.$$typeof===i||W.$$typeof===u||W.$$typeof===m||W.$$typeof===w||W.$$typeof===y||W.$$typeof===E||W.$$typeof===C)}I(x,"isValidElementType");function D(W){if(typeof W=="object"&&W!==null){var Gt=W.$$typeof;switch(Gt){case r:var Er=W.type;switch(Er){case d:case p:case o:case l:case a:case h:return Er;default:var yo=Er&&Er.$$typeof;switch(yo){case u:case m:case g:case v:case i:return yo;default:return Gt}}case n:return Gt}}}I(D,"typeOf");var S=d,k=p,A=u,_=i,R=r,z=m,L=o,$=g,N=v,M=n,j=l,q=a,B=h,P=!1;function H(W){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(W)||D(W)===d}I(H,"isAsyncMode");function G(W){return D(W)===p}I(G,"isConcurrentMode");function Z(W){return D(W)===u}I(Z,"isContextConsumer");function Q(W){return D(W)===i}I(Q,"isContextProvider");function le(W){return typeof W=="object"&&W!==null&&W.$$typeof===r}I(le,"isElement");function U(W){return D(W)===m}I(U,"isForwardRef");function X(W){return D(W)===o}I(X,"isFragment");function te(W){return D(W)===g}I(te,"isLazy");function Ae(W){return D(W)===v}I(Ae,"isMemo");function We(W){return D(W)===n}I(We,"isPortal");function br(W){return D(W)===l}I(br,"isProfiler");function bt(W){return D(W)===a}I(bt,"isStrictMode");function qt(W){return D(W)===h}I(qt,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=R,e.ForwardRef=z,e.Fragment=L,e.Lazy=$,e.Memo=N,e.Portal=M,e.Profiler=j,e.StrictMode=q,e.Suspense=B,e.isAsyncMode=H,e.isConcurrentMode=G,e.isContextConsumer=Z,e.isContextProvider=Q,e.isElement=le,e.isForwardRef=U,e.isFragment=X,e.isLazy=te,e.isMemo=Ae,e.isPortal=We,e.isProfiler=br,e.isStrictMode=bt,e.isSuspense=qt,e.isValidElementType=x,e.typeOf=D})()}),Kz=bd((e,t)=>{t.exports=Gz()}),_E=bd((e,t)=>{var r=Kz(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[r.ForwardRef]=a,i[r.Memo]=l;function u(C){return r.isMemo(C)?l:i[C.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;function g(C,w,y){if(typeof w!="string"){if(v){var E=f(w);E&&E!==v&&g(C,E,y)}var x=p(w);m&&(x=x.concat(m(w)));for(var D=u(C),S=u(w),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,o,a){function l(d,p){if(!o[d]){if(!n[d]){var m=typeof Tu=="function"&&Tu;if(!p&&m)return m(d,!0);if(i)return i(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[d]={exports:{}};n[d][0].call(f.exports,function(v){var g=n[d][1][v];return l(g||v)},f,f.exports,r,n,o,a)}return o[d].exports}I(l,"s");for(var i=typeof Tu=="function"&&Tu,u=0;u=0)return this.lastItem=this.list[i],this.list[i].val},a.prototype.set=function(l,i){var u;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=i,this):(u=this.indexOf(l),u>=0?(this.lastItem=this.list[u],this.list[u].val=i,this):(this.lastItem={key:l,val:i},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(l){var i;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),i=this.indexOf(l),i>=0)return this.size--,this.list.splice(i,1)[0]},a.prototype.has=function(l){var i;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(i=this.indexOf(l),i>=0?(this.lastItem=this.list[i],!0):!1)},a.prototype.forEach=function(l,i){var u;for(u=0;u0&&(y[w]={cacheItem:v,arg:arguments[w]},E?l(m,y):m.push(y),m.length>d&&i(m.shift())),f.wasMemoized=E,f.numArgs=w+1,C},"memoizerific");return f.limit=d,f.wasMemoized=!1,f.cache=p,f.lru=m,f}};function l(d,p){var m=d.length,h=p.length,f,v,g;for(v=0;v=0&&(m=d[f],h=m.cacheItem.get(m.arg),!h||!h.size);f--)m.cacheItem.delete(m.arg)}I(i,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Oe(ql,--yt):0,bl--,De===10&&(bl=1,Cd--),De}I(OE,"prev");function pt(){return De=yt2||El(De)>3?"":" "}I(ME,"whitespace");function PE(e,t){for(;--t&&pt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return Gl(e,Qi()+(t<6&&lr()==32&&pt()==32))}I(PE,"escaping");function l0(e){for(;pt();)switch(De){case e:return yt;case 34:case 39:e!==34&&e!==39&&l0(De);break;case 40:e===41&&l0(e);break;case 92:pt();break}return yt}I(l0,"delimiter");function NE(e,t){for(;pt()&&e+De!==57&&!(e+De===84&&lr()===47););return"/*"+Gl(t,yt-1)+"*"+Ed(e===47?e:pt())}I(NE,"commenter");function HE(e){for(;!El(lr());)pt();return Gl(e,yt)}I(HE,"identifier");function jE(e){return j5(ts("",null,null,null,[""],e=H5(e),0,[0],e))}I(jE,"compile");function ts(e,t,r,n,o,a,l,i,u){for(var d=0,p=0,m=l,h=0,f=0,v=0,g=1,C=1,w=1,y=0,E="",x=o,D=a,S=n,k=E;C;)switch(v=y,y=pt()){case 40:if(v!=108&&Oe(k,m-1)==58){a0(k+=ae(es(y),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=es(y);break;case 9:case 10:case 13:case 32:k+=ME(v);break;case 92:k+=PE(Qi()-1,7);continue;case 47:switch(lr()){case 42:case 47:$i(VE(NE(pt(),Qi()),t,r),u);break;default:k+="/"}break;case 123*g:i[d++]=tr(k)*w;case 125*g:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+p:w==-1&&(k=ae(k,/\f/g,"")),f>0&&tr(k)-m&&$i(f>32?Wh(k+";",n,r,m-1):Wh(ae(k," ","")+";",n,r,m-2),u);break;case 59:k+=";";default:if($i(S=Uh(k,t,r,d,p,o,i,E,x=[],D=[],m),a),y===123)if(p===0)ts(k,t,S,S,x,a,m,i,D);else switch(h===99&&Oe(k,3)===110?100:h){case 100:case 108:case 109:case 115:ts(e,S,S,n&&$i(Uh(e,S,S,0,0,o,i,E,o,x=[],m),D),o,D,m,i,n?x:D);break;default:ts(k,S,S,S,[""],D,0,i,D)}}d=p=f=0,g=w=1,E=k="",m=l;break;case 58:m=1+tr(k),f=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&OE()==125)continue}switch(k+=Ed(y),y*g){case 38:w=p>0?1:(k+="\f",-1);break;case 44:i[d++]=(tr(k)-1)*w,w=1;break;case 64:lr()===45&&(k+=es(pt())),h=lr(),p=m=tr(E=k+=HE(Qi())),y++;break;case 45:v===45&&tr(k)==2&&(g=0)}}return a}I(ts,"parse");function Uh(e,t,r,n,o,a,l,i,u,d,p){for(var m=o-1,h=o===0?a:[""],f=xd(h),v=0,g=0,C=0;v0?h[w]+" "+y:ae(y,/&\f/g,h[w])))&&(u[C++]=E);return tu(e,t,r,o===0?M5:i,u,d,p)}I(Uh,"ruleset");function VE(e,t,r){return tu(e,t,r,O5,Ed($E()),wl(e,2,-2),0)}I(VE,"comment");function Wh(e,t,r,n){return tu(e,t,r,P5,wl(e,0,n),wl(e,n+1,-1),n)}I(Wh,"declaration");function Uo(e,t){for(var r="",n=xd(e),o=0;o-1},"isIgnoringComment"),uT=I(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!t.parent,l=a?t.parent.children:n,i=l.length-1;i>=0;i--){var u=l[i];if(u.line=0;r--)if(!qE(t[r]))return!0;return!1},"isPrependedWithRegularRules"),Uy=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),dT=I(function(e,t,r){qE(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Uy(e)):cT(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Uy(e)))},"incorrectImportAlarm");function V5(e,t){switch(zE(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+o0+e+Je+e+e;case 6828:case 4268:return ie+e+Je+e+e;case 6165:return ie+e+Je+"flex-"+e+e;case 5187:return ie+e+ae(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return ie+e+Je+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return ie+e+Je+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+Je+ae(e,"shrink","negative")+e;case 5292:return ie+e+Je+ae(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+ae(e,"-grow","")+ie+e+Je+ae(e,"grow","positive")+e;case 4554:return ie+ae(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tr(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+o0+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~a0(e,"stretch")?V5(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,tr(e)-3-(~a0(e,"!important")&&10))){case 107:return ae(e,":",":"+ie)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Oe(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return ie+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Je+e+e}return e}I(V5,"prefix");var pT=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case P5:e.return=V5(e.value,e.length);break;case IE:return Uo([Ba(e,{value:ae(e.value,"@","@"+ie)})],n);case M5:if(e.length)return BE(e.props,function(o){switch(TE(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Uo([Ba(e,{props:[ae(o,/:(read-\w+)/,":"+o0+"$1")]})],n);case"::placeholder":return Uo([Ba(e,{props:[ae(o,/:(plac\w+)/,":"+ie+"input-$1")]}),Ba(e,{props:[ae(o,/:(plac\w+)/,":"+o0+"$1")]}),Ba(e,{props:[ae(o,/:(plac\w+)/,Je+"input-$1")]})],n)}return""})}},"prefixer"),fT=[pT],hT=I(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=e.stylisPlugins||fT;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o={},a,l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),C=1;C=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}I(GE,"murmur2");var yT={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},Wy=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". @@ -700,7 +700,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function NG(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),l=1;l=0&&o<1?(i=a,u=l):o>=1&&o<2?(i=l,u=a):o>=2&&o<3?(u=a,d=l):o>=3&&o<4?(u=l,d=a):o>=4&&o<5?(i=l,d=a):o>=5&&o<6&&(i=a,d=l);var p=r-a/2,m=i+p,h=u+p,f=d+p;return n(m,h,f)}var J8={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function jG(e){if(typeof e!="string")return e;var t=e.toLowerCase();return J8[t]?"#"+J8[t]:e}var VG=/^#[a-fA-F0-9]{6}$/,UG=/^#[a-fA-F0-9]{8}$/,WG=/^#[a-fA-F0-9]{3}$/,qG=/^#[a-fA-F0-9]{4}$/,Bh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,GG=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,KG=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,YG=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function I1(e){if(typeof e!="string")throw new Mr(3);var t=jG(e);if(t.match(VG))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(UG)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(WG))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(qG)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Bh.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=GG.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var l=KG.exec(t);if(l){var i=parseInt(""+l[1],10),u=parseInt(""+l[2],10)/100,d=parseInt(""+l[3],10)/100,p="rgb("+Qs(i,u,d)+")",m=Bh.exec(p);if(!m)throw new Mr(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=YG.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,C="rgb("+Qs(f,v,g)+")",w=Bh.exec(C);if(!w)throw new Mr(4,t,C);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Mr(5)}function ZG(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),l=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,u=o-a,d=l>.5?u/(2-o-a):u/(o+a);switch(o){case t:i=(r-n)/u+(r=1?yd(e,t,r):"rgba("+Qs(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?yd(e.hue,e.saturation,e.lightness):"rgba("+Qs(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Mr(2)}function x5(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return E5("#"+Io(e)+Io(t)+Io(r));if(typeof e=="object"&&t===void 0&&r===void 0)return E5("#"+Io(e.red)+Io(e.green)+Io(e.blue));throw new Mr(6)}function un(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=I1(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?x5(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?x5(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Mr(7)}var tK=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},rK=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},nK=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},oK=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function yI(e){if(typeof e!="object")throw new Mr(8);if(rK(e))return un(e);if(tK(e))return x5(e);if(oK(e))return eK(e);if(nK(e))return QG(e);throw new Mr(8)}function wI(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):wI(e,t,n)}}function z1(e){return wI(e,e.length,[])}function T1(e,t,r){return Math.max(e,Math.min(t,r))}function aK(e,t){if(t==="transparent")return t;var r=vI(t);return yI(Ul({},r,{lightness:T1(0,1,r.lightness-parseFloat(e))}))}var lK=z1(aK),Ir=lK;function iK(e,t){if(t==="transparent")return t;var r=vI(t);return yI(Ul({},r,{lightness:T1(0,1,r.lightness+parseFloat(e))}))}var sK=z1(iK),zo=sK;function uK(e,t){if(t==="transparent")return t;var r=I1(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ul({},r,{alpha:T1(0,1,(n*100+parseFloat(e)*100)/100)});return un(o)}var cK=z1(uK),xc=cK;function dK(e,t){if(t==="transparent")return t;var r=I1(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ul({},r,{alpha:T1(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return un(o)}var pK=z1(dK),fe=pK,fK=F.div(be,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:fe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),bI=e=>b.createElement(fK,{...e,className:"docblock-emptyblock sb-unstyled"}),hK=F(hy)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),mK=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Cc=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Yh}`]:{margin:0}})),gK=()=>b.createElement(mK,null,b.createElement(Cc,null),b.createElement(Cc,{style:{width:"80%"}}),b.createElement(Cc,{style:{width:"30%"}}),b.createElement(Cc,{style:{width:"80%"}})),EI=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...l})=>{let{typography:i}=QE();if(e)return b.createElement(gK,null);if(t)return b.createElement(bI,null,t);let u=b.createElement(hK,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let d=o?Gh.dark:Gh.light;return b.createElement(ex,{theme:Kh({...d,fontCode:i.fonts.mono,fontBase:i.fonts.base})},u)},_e=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sy=600,vK=F.h1(be,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sy}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),yK=F.h2(be,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sy}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:fe(.25,e.color.defaultText)})),wK=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?fe(.1,e.color.defaultText):fe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[_e("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[_e("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[_e("div")]:t,[_e("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[_e("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[_e("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[_e("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[_e("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[_e("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[_e("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[_e("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[_e("img")]:{maxWidth:"100%"},[_e("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[_e("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[_e("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[_e("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[_e("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[_e("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[_e("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),bK=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sy}px)`]:{}})),EK=({children:e,toc:t})=>b.createElement(bK,{className:"sbdocs sbdocs-wrapper"},b.createElement(wK,{className:"sbdocs sbdocs-content"},e),t),B1=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:xK}=globalThis,CK=class extends s.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=xK.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return b.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xI=s.createContext({scale:1}),{PREVIEW_URL:DK}=globalThis,SK=DK||"iframe.html",C5=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,kK=e=>{let t=s.useRef(),[r,n]=s.useState(!0),[o,a]=s.useState(),{story:l,height:i,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return s.useEffect(()=>{if(!(l&&t.current))return()=>{};let m=t.current,h=p(l,m,{showMain:()=>{},showError:({title:f,description:v})=>a(new Error(`${f} - ${v}`)),showException:f=>a(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[u,p,l]),o?b.createElement("pre",null,b.createElement(MW,{error:o})):b.createElement(b.Fragment,null,i?b.createElement("style",null,`#${C5(e)} { min-height: ${i}; transform: translateZ(0); overflow: auto }`):null,r&&b.createElement(CI,null),b.createElement("div",{ref:t,id:`${C5(e)}-inner`,"data-name":l.name}))},AK=({story:e,height:t="500px"})=>b.createElement("div",{style:{width:"100%",height:t}},b.createElement(xI.Consumer,null,({scale:r})=>b.createElement(CK,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:iG(SK,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),_K=F.strong(({theme:e})=>({color:e.color.orange})),FK=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?b.createElement(_K,null,"This story mounts inside of play. Set"," ",b.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):b.createElement("div",{id:C5(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?b.createElement(kK,{...e}):b.createElement(AK,{...e}))},CI=()=>b.createElement(lG,null),RK=F(Cy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),IK=F.div({display:"flex",alignItems:"center",gap:4}),zK=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),TK=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>b.createElement(RK,{...a},b.createElement(IK,{key:"left"},e?[1,2,3].map(l=>b.createElement(zK,{key:l})):b.createElement(b.Fragment,null,b.createElement(Yo,{key:"zoomin",onClick:l=>{l.preventDefault(),n(.8)},title:"Zoom in"},b.createElement(dG,null)),b.createElement(Yo,{key:"zoomout",onClick:l=>{l.preventDefault(),n(1.25)},title:"Zoom out"},b.createElement(pG,null)),b.createElement(Yo,{key:"zoomreset",onClick:l=>{l.preventDefault(),o()},title:"Reset zoom"},b.createElement(fG,null))))),BK=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Q8=F(EI)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ir(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ir(.05,e.background.content)}})),LK=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...B1(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),$K=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:b.createElement(Q8,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:b.createElement(Q8,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function OK(e){if(s.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var MK=F(TK)({position:"absolute",top:0,left:0,right:0,height:40}),PK=F.div({overflow:"hidden",position:"relative"}),DI=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:l=!1,additionalActions:i,className:u,layout:d="padded",...p})=>{let[m,h]=s.useState(l),{source:f,actionItem:v}=$K(o,m,h),[g,C]=s.useState(1),w=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),y=o?[v]:[],[E,x]=s.useState(i?[...i]:[]),D=[...y,...E],{window:S}=globalThis,k=s.useCallback(async _=>{let{createCopyToClipboardFunction:R}=await SE(()=>import("./index-BW8DBsXs.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);R()},[]),A=_=>{let R=S.getSelection();R&&R.type==="Range"||(_.preventDefault(),E.filter(z=>z.title==="Copied").length===0&&k(f.props.code).then(()=>{x([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>x(E.filter(z=>z.title!=="Copied")),1500)}))};return b.createElement(LK,{withSource:o,withToolbar:a,...p,className:w.join(" ")},a&&b.createElement(MK,{isLoading:e,border:!0,zoom:_=>C(g*_),resetZoom:()=>C(1),storyId:OK(n),baseUrl:"./iframe.html"}),b.createElement(xI.Provider,{value:{scale:g}},b.createElement(PK,{className:"docs-story",onCopyCapture:o&&A},b.createElement(BK,{isColumn:t||!Array.isArray(n),columns:r,layout:d},b.createElement(RW.Element,{scale:g},Array.isArray(n)?n.map((_,R)=>b.createElement("div",{key:R},_)):b.createElement("div",null,n))),b.createElement(X2,{actionItems:D}))),o&&m&&f)};F(DI)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),nE={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},HK=["style","script"],jK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,VK=/mailto:/i,UK=/\n{2,}$/,SI=/^(\s*>[\s\S]*?)(?=\n{2,})/,WK=/^ *> ?/gm,qK=/^ {2,}\n/,GK=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,kI=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,AI=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,KK=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,YK=/^(?:\n *)*\n/,ZK=/\r\n?/g,XK=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,JK=/^\[\^([^\]]+)]/,QK=/\f/g,eY=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,tY=/^\s*?\[(x|\s)\]/,_I=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,FI=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,RI=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,D5=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,rY=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,II=/^)/,nY=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,S5=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oY=/^\{.*\}$/,aY=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,lY=/^<([^ >]+@[^ >]+)>/,iY=/^<([^ >]+:\/[^ >]+)>/,sY=/-([a-z])?/gi,zI=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,uY=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,cY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pY=/(\[|\])/g,fY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hY=/\t/g,mY=/^ *\| */,gY=/(^ *\||\| *$)/g,vY=/ *$/,yY=/^ *:-+: *$/,wY=/^ *:-+ *$/,bY=/^ *-+: *$/,L1="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",EY=new RegExp(`^([*_])\\1${L1}\\1\\1(?!\\1)`),xY=new RegExp(`^([*_])${L1}\\1(?!\\1|\\w)`),CY=new RegExp(`^==${L1}==`),DY=new RegExp(`^~~${L1}~~`),SY=/^\\([^0-9A-Za-z\s])/,kY=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,AY=/^\n+/,_Y=/^([ \t]*)/,FY=/\\([^\\])/g,oE=/ *\n+$/,RY=/(?:^|\n)( *)$/,ky="(?:\\d+\\.)",Ay="(?:[*+-])";function TI(e){return"( *)("+(e===1?ky:Ay)+") +"}var BI=TI(1),LI=TI(2);function $I(e){return new RegExp("^"+(e===1?BI:LI))}var IY=$I(1),zY=$I(2);function OI(e){return new RegExp("^"+(e===1?BI:LI)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ky:Ay)+" )[^\\n]*)*(\\n|$)","gm")}var MI=OI(1),PI=OI(2);function NI(e){let t=e===1?ky:Ay;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var HI=NI(1),jI=NI(2);function aE(e,t){let r=t===1,n=r?HI:jI,o=r?MI:PI,a=r?IY:zY;return{match(l,i,u){let d=RY.exec(u);return d&&(i.list||!i.inline&&!i.simple)?n.exec(l=d[1]+l):null},order:1,parse(l,i,u){let d=r?+l[2]:void 0,p=l[0].replace(UK,` +`};function NG(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),l=1;l=0&&o<1?(i=a,u=l):o>=1&&o<2?(i=l,u=a):o>=2&&o<3?(u=a,d=l):o>=3&&o<4?(u=l,d=a):o>=4&&o<5?(i=l,d=a):o>=5&&o<6&&(i=a,d=l);var p=r-a/2,m=i+p,h=u+p,f=d+p;return n(m,h,f)}var J8={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function jG(e){if(typeof e!="string")return e;var t=e.toLowerCase();return J8[t]?"#"+J8[t]:e}var VG=/^#[a-fA-F0-9]{6}$/,UG=/^#[a-fA-F0-9]{8}$/,WG=/^#[a-fA-F0-9]{3}$/,qG=/^#[a-fA-F0-9]{4}$/,Bh=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,GG=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,KG=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,YG=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function I1(e){if(typeof e!="string")throw new Mr(3);var t=jG(e);if(t.match(VG))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(UG)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(WG))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(qG)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Bh.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=GG.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var l=KG.exec(t);if(l){var i=parseInt(""+l[1],10),u=parseInt(""+l[2],10)/100,d=parseInt(""+l[3],10)/100,p="rgb("+Qs(i,u,d)+")",m=Bh.exec(p);if(!m)throw new Mr(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var h=YG.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,C="rgb("+Qs(f,v,g)+")",w=Bh.exec(C);if(!w)throw new Mr(4,t,C);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Mr(5)}function ZG(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),l=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var i,u=o-a,d=l>.5?u/(2-o-a):u/(o+a);switch(o){case t:i=(r-n)/u+(r=1?yd(e,t,r):"rgba("+Qs(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?yd(e.hue,e.saturation,e.lightness):"rgba("+Qs(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Mr(2)}function x5(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return E5("#"+Io(e)+Io(t)+Io(r));if(typeof e=="object"&&t===void 0&&r===void 0)return E5("#"+Io(e.red)+Io(e.green)+Io(e.blue));throw new Mr(6)}function un(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=I1(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?x5(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?x5(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Mr(7)}var tK=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},rK=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},nK=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},oK=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function yI(e){if(typeof e!="object")throw new Mr(8);if(rK(e))return un(e);if(tK(e))return x5(e);if(oK(e))return eK(e);if(nK(e))return QG(e);throw new Mr(8)}function wI(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):wI(e,t,n)}}function z1(e){return wI(e,e.length,[])}function T1(e,t,r){return Math.max(e,Math.min(t,r))}function aK(e,t){if(t==="transparent")return t;var r=vI(t);return yI(Ul({},r,{lightness:T1(0,1,r.lightness-parseFloat(e))}))}var lK=z1(aK),Ir=lK;function iK(e,t){if(t==="transparent")return t;var r=vI(t);return yI(Ul({},r,{lightness:T1(0,1,r.lightness+parseFloat(e))}))}var sK=z1(iK),zo=sK;function uK(e,t){if(t==="transparent")return t;var r=I1(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ul({},r,{alpha:T1(0,1,(n*100+parseFloat(e)*100)/100)});return un(o)}var cK=z1(uK),xc=cK;function dK(e,t){if(t==="transparent")return t;var r=I1(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ul({},r,{alpha:T1(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return un(o)}var pK=z1(dK),fe=pK,fK=F.div(be,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:fe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),bI=e=>b.createElement(fK,{...e,className:"docblock-emptyblock sb-unstyled"}),hK=F(hy)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),mK=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Cc=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Yh}`]:{margin:0}})),gK=()=>b.createElement(mK,null,b.createElement(Cc,null),b.createElement(Cc,{style:{width:"80%"}}),b.createElement(Cc,{style:{width:"30%"}}),b.createElement(Cc,{style:{width:"80%"}})),EI=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...l})=>{let{typography:i}=QE();if(e)return b.createElement(gK,null);if(t)return b.createElement(bI,null,t);let u=b.createElement(hK,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let d=o?Gh.dark:Gh.light;return b.createElement(ex,{theme:Kh({...d,fontCode:i.fonts.mono,fontBase:i.fonts.base})},u)},_e=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Sy=600,vK=F.h1(be,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Sy}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),yK=F.h2(be,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Sy}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:fe(.25,e.color.defaultText)})),wK=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?fe(.1,e.color.defaultText):fe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[_e("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[_e("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[_e("div")]:t,[_e("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[_e("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[_e("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[_e("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[_e("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[_e("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[_e("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[_e("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[_e("img")]:{maxWidth:"100%"},[_e("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[_e("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[_e("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[_e("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[_e("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[_e("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[_e("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),bK=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Sy}px)`]:{}})),EK=({children:e,toc:t})=>b.createElement(bK,{className:"sbdocs sbdocs-wrapper"},b.createElement(wK,{className:"sbdocs sbdocs-content"},e),t),B1=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),{window:xK}=globalThis,CK=class extends s.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=xK.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return b.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xI=s.createContext({scale:1}),{PREVIEW_URL:DK}=globalThis,SK=DK||"iframe.html",C5=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,kK=e=>{let t=s.useRef(),[r,n]=s.useState(!0),[o,a]=s.useState(),{story:l,height:i,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return s.useEffect(()=>{if(!(l&&t.current))return()=>{};let m=t.current,h=p(l,m,{showMain:()=>{},showError:({title:f,description:v})=>a(new Error(`${f} - ${v}`)),showException:f=>a(f)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>h())}},[u,p,l]),o?b.createElement("pre",null,b.createElement(MW,{error:o})):b.createElement(b.Fragment,null,i?b.createElement("style",null,`#${C5(e)} { min-height: ${i}; transform: translateZ(0); overflow: auto }`):null,r&&b.createElement(CI,null),b.createElement("div",{ref:t,id:`${C5(e)}-inner`,"data-name":l.name}))},AK=({story:e,height:t="500px"})=>b.createElement("div",{style:{width:"100%",height:t}},b.createElement(xI.Consumer,null,({scale:r})=>b.createElement(CK,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:iG(SK,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),_K=F.strong(({theme:e})=>({color:e.color.orange})),FK=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?b.createElement(_K,null,"This story mounts inside of play. Set"," ",b.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):b.createElement("div",{id:C5(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?b.createElement(kK,{...e}):b.createElement(AK,{...e}))},CI=()=>b.createElement(lG,null),RK=F(Cy)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),IK=F.div({display:"flex",alignItems:"center",gap:4}),zK=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),TK=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>b.createElement(RK,{...a},b.createElement(IK,{key:"left"},e?[1,2,3].map(l=>b.createElement(zK,{key:l})):b.createElement(b.Fragment,null,b.createElement(Yo,{key:"zoomin",onClick:l=>{l.preventDefault(),n(.8)},title:"Zoom in"},b.createElement(dG,null)),b.createElement(Yo,{key:"zoomout",onClick:l=>{l.preventDefault(),n(1.25)},title:"Zoom out"},b.createElement(pG,null)),b.createElement(Yo,{key:"zoomreset",onClick:l=>{l.preventDefault(),o()},title:"Reset zoom"},b.createElement(fG,null))))),BK=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Q8=F(EI)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ir(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ir(.05,e.background.content)}})),LK=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...B1(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),$K=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:b.createElement(Q8,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:b.createElement(Q8,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function OK(e){if(s.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var MK=F(TK)({position:"absolute",top:0,left:0,right:0,height:40}),PK=F.div({overflow:"hidden",position:"relative"}),DI=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:l=!1,additionalActions:i,className:u,layout:d="padded",...p})=>{let[m,h]=s.useState(l),{source:f,actionItem:v}=$K(o,m,h),[g,C]=s.useState(1),w=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),y=o?[v]:[],[E,x]=s.useState(i?[...i]:[]),D=[...y,...E],{window:S}=globalThis,k=s.useCallback(async _=>{let{createCopyToClipboardFunction:R}=await SE(()=>import("./index-DFJPSo8P.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);R()},[]),A=_=>{let R=S.getSelection();R&&R.type==="Range"||(_.preventDefault(),E.filter(z=>z.title==="Copied").length===0&&k(f.props.code).then(()=>{x([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>x(E.filter(z=>z.title!=="Copied")),1500)}))};return b.createElement(LK,{withSource:o,withToolbar:a,...p,className:w.join(" ")},a&&b.createElement(MK,{isLoading:e,border:!0,zoom:_=>C(g*_),resetZoom:()=>C(1),storyId:OK(n),baseUrl:"./iframe.html"}),b.createElement(xI.Provider,{value:{scale:g}},b.createElement(PK,{className:"docs-story",onCopyCapture:o&&A},b.createElement(BK,{isColumn:t||!Array.isArray(n),columns:r,layout:d},b.createElement(RW.Element,{scale:g},Array.isArray(n)?n.map((_,R)=>b.createElement("div",{key:R},_)):b.createElement("div",null,n))),b.createElement(X2,{actionItems:D}))),o&&m&&f)};F(DI)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),nE={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},HK=["style","script"],jK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,VK=/mailto:/i,UK=/\n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"]*)")?/,cY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,dY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pY=/(\[|\])/g,fY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hY=/\t/g,mY=/^ *\| */,gY=/(^ *\||\| *$)/g,vY=/ *$/,yY=/^ *:-+: *$/,wY=/^ *:-+ *$/,bY=/^ *-+: *$/,L1="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",EY=new RegExp(`^([*_])\\1${L1}\\1\\1(?!\\1)`),xY=new RegExp(`^([*_])${L1}\\1(?!\\1|\\w)`),CY=new RegExp(`^==${L1}==`),DY=new RegExp(`^~~${L1}~~`),SY=/^\\([^0-9A-Za-z\s])/,kY=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,AY=/^\n+/,_Y=/^([ \t]*)/,FY=/\\([^\\])/g,oE=/ *\n+$/,RY=/(?:^|\n)( *)$/,ky="(?:\\d+\\.)",Ay="(?:[*+-])";function TI(e){return"( *)("+(e===1?ky:Ay)+") +"}var BI=TI(1),LI=TI(2);function $I(e){return new RegExp("^"+(e===1?BI:LI))}var IY=$I(1),zY=$I(2);function OI(e){return new RegExp("^"+(e===1?BI:LI)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ky:Ay)+" )[^\\n]*)*(\\n|$)","gm")}var MI=OI(1),PI=OI(2);function NI(e){let t=e===1?ky:Ay;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var HI=NI(1),jI=NI(2);function aE(e,t){let r=t===1,n=r?HI:jI,o=r?MI:PI,a=r?IY:zY;return{match(l,i,u){let d=RY.exec(u);return d&&(i.list||!i.inline&&!i.simple)?n.exec(l=d[1]+l):null},order:1,parse(l,i,u){let d=r?+l[2]:void 0,p=l[0].replace(UK,` `).match(o),m=!1;return{items:p.map(function(h,f){let v=a.exec(h)[0].length,g=new RegExp("^ {1,"+v+"}","gm"),C=h.replace(g,"").replace(a,""),w=f===p.length-1,y=C.indexOf(` `)!==-1||w&&m;m=y;let E=u.inline,x=u.list,D;u.list=!0,y?(u.inline=!1,D=C.replace(oE,` @@ -731,7 +731,7 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${Ir(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${zo(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${zo(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${un(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),rz=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),HZ=F(rz)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),jZ=F.div({display:"flex",alignItems:"center",width:"100%"});function VZ(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var UZ=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:l,onFocus:i,argType:u})=>{var f;let d=v=>{r(eZ(v.target.value))},p=t!==void 0,m=s.useMemo(()=>VZ(a),[a]),h=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return b.createElement(jZ,{"aria-readonly":h},b.createElement(rz,null,n),b.createElement(NZ,{id:mr(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:o,step:a,onFocus:i,onBlur:l}),b.createElement(HZ,{numberOFDecimalsPlaces:m,max:o},p?t.toFixed(m):"--"," / ",o))},WZ=F.label({display:"flex"}),qZ=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),GZ=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:l})=>{var f;let i=v=>{r(v.target.value)},u=!!((f=l==null?void 0:l.table)!=null&&f.readonly),[d,p]=s.useState(!1),m=s.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return b.createElement(wa,{variant:"outline",size:"medium",disabled:u,id:wd(e),onClick:m},"Set string");let h=typeof t=="string";return b.createElement(WZ,null,b.createElement(_u.Textarea,{id:mr(e),maxLength:a,onChange:i,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),a&&b.createElement(qZ,{isMaxed:(t==null?void 0:t.length)===a},(t==null?void 0:t.length)??0," / ",a))},KZ=F(_u.Input)({padding:10});function YZ(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ZZ=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var u;let a=s.useRef(null),l=(u=o==null?void 0:o.control)==null?void 0:u.readOnly;function i(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),YZ(n)}return s.useEffect(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),b.createElement(KZ,{ref:a,id:mr(t),type:"file",name:t,multiple:!0,disabled:l,onChange:i,accept:r,size:"flex"})},XZ=s.lazy(()=>SE(()=>import("./Color-F6OSRLHC-IG5Jqzyw.js"),__vite__mapDeps([6,2,3,1,4,5]),import.meta.url)),JZ=e=>b.createElement(s.Suspense,{fallback:b.createElement("div",null)},b.createElement(XZ,{...e})),QZ={array:mE,object:mE,boolean:qY,color:JZ,date:JY,number:rZ,check:Ta,"inline-check":Ta,radio:Ta,"inline-radio":Ta,select:Ta,"multi-select":Ta,range:UZ,text:GZ,file:ZZ},gE=()=>b.createElement(b.Fragment,null,"-"),eX=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:o,control:a}=e,[l,i]=s.useState(!1),[u,d]=s.useState({value:t});s.useEffect(()=>{l||d({value:t})},[l,t]);let p=s.useCallback(C=>(d({value:C}),r({[o]:C}),C),[r,o]),m=s.useCallback(()=>i(!1),[]),h=s.useCallback(()=>i(!0),[]);if(!a||a.disable){let C=(a==null?void 0:a.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&C?b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):b.createElement(gE,null)}let f={name:o,argType:e,value:u.value,onChange:p,onBlur:m,onFocus:h},v=QZ[a.type]||gE;return b.createElement(v,{...f,...a,controlType:a.type})},tX=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:go({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),rX=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:b.createElement(b.Fragment,null,b.createElement(tX,null,b.createElement("tbody",null,n&&b.createElement("tr",{key:"deprecated"},b.createElement("td",{colSpan:2},b.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>b.createElement("tr",{key:a.name},b.createElement("td",null,b.createElement("code",null,a.name)),b.createElement("td",null,a.description))),o&&b.createElement("tr",{key:"returns"},b.createElement("td",null,b.createElement("code",null,"Returns")),b.createElement("td",null,e.returns.description)))))},nX=z5(mI()),_5=8,vE=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),oX=F.span(go,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),aX=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),lX=F.div(go,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),iX=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),sX=F(xG)({marginLeft:4}),uX=F(hI)({marginLeft:4}),cX=()=>b.createElement("span",null,"-"),nz=({text:e,simple:t})=>b.createElement(oX,{simple:t},e),dX=(0,nX.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),pX=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return zz(t)},yE=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,_5)),r.map(n=>b.createElement(nz,{key:n,text:n===""?'""':n}))},fX=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=s.useState(!1),[l,i]=s.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return b.createElement(nz,{text:u});let d=pX(u),p=d.length;return p>_5?b.createElement(vE,{isExpanded:l},yE(d,l),b.createElement(aX,{onClick:()=>i(!l)},l?"Show less...":`Show ${p-_5} more...`)):b.createElement(vE,null,yE(d))}return b.createElement(cq,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:d=>{a(d)},tooltip:b.createElement(iX,{width:dX(n)},b.createElement(hy,{language:"jsx",format:!1},n))},b.createElement(lX,{className:"sbdocs-expandable"},b.createElement("span",null,u),o?b.createElement(sX,null):b.createElement(uX,null)))},Hh=({value:e,initialExpandedArgs:t})=>e==null?b.createElement(cX,null):b.createElement(fX,{value:e,initialExpandedArgs:t}),hX=F.span({fontWeight:"bold"}),mX=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),gX=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...go({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),vX=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?fe(.1,e.color.defaultText):fe(.2,e.color.defaultText),marginTop:t?4:0})),yX=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?fe(.1,e.color.defaultText):fe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),wX=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),bX=e=>e&&{summary:typeof e=="string"?e:e.name},Dc=e=>{var g;let[t,r]=s.useState(!1),{row:n,updateArgs:o,compact:a,expandable:l,initialExpandedArgs:i}=e,{name:u,description:d}=n,p=n.table||{},m=p.type||bX(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return b.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},b.createElement(wX,{expandable:l},b.createElement(hX,null,u),f?b.createElement(mX,{title:"Required"},"*"):null),a?null:b.createElement("td",null,v&&b.createElement(gX,null,b.createElement(UI,null,d)),p.jsDocTags!=null?b.createElement(b.Fragment,null,b.createElement(yX,{hasDescription:v},b.createElement(Hh,{value:m,initialExpandedArgs:i})),b.createElement(rX,{tags:p.jsDocTags})):b.createElement(vX,{hasDescription:v},b.createElement(Hh,{value:m,initialExpandedArgs:i}))),a?null:b.createElement("td",null,b.createElement(Hh,{value:h,initialExpandedArgs:i})),o?b.createElement("td",null,b.createElement(eX,{...e,isHovered:t})):null)},EX=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),xX=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),CX=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),DX=({inAddonPanel:e})=>{let[t,r]=s.useState(!0);return s.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:b.createElement(EX,{inAddonPanel:e},b.createElement(iI,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:b.createElement(b.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:b.createElement(xX,null,e&&b.createElement(b.Fragment,null,b.createElement(yl,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},b.createElement(gG,null)," Watch 5m video"),b.createElement(CX,null),b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(y5,null)," Read docs")),!e&&b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(y5,null)," Learn how to set that up"))}))},SX=F(bG)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?fe(.25,e.color.defaultText):fe(.3,e.color.defaultText),border:"none",display:"inline-block"})),kX=F(EG)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?fe(.25,e.color.defaultText):fe(.3,e.color.defaultText),border:"none",display:"inline-block"})),AX=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),_X=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),FX=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),RX=F.td(()=>({position:"relative"})),IX=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${zo(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),wE=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),jh=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,l]=s.useState(n),i=e==="subsection"?FX:_X,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${a?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return b.createElement(b.Fragment,null,b.createElement(IX,{title:p},b.createElement(i,{colSpan:1},b.createElement(wE,{onClick:m=>l(!a),tabIndex:0},p),b.createElement(AX,null,a?b.createElement(SX,null):b.createElement(kX,null),t)),b.createElement(RX,{colSpan:o-1},b.createElement(wE,{onClick:m=>l(!a),tabIndex:-1,style:{outline:"none"}},p),a?null:d)),a?r:null)},Sc=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ze=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Fe=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Xe=[2,4,2,2],zX=()=>b.createElement(b.Fragment,null,b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"})))),TX=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?fe(.25,e.color.defaultText):fe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),BX=F(Yo)(({theme:e})=>({margin:"-4px -12px -4px 0"})),LX=F.span({display:"flex",justifyContent:"space-between"}),$X={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},OX=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,l])=>{let{category:i,subcategory:u}=(l==null?void 0:l.table)||{};if(i){let d=r.sections[i]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:a,...l});else{let p=d.subsections[u]||[];p.push({key:a,...l}),d.subsections[u]=p}r.sections[i]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:a,...l}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:a,...l})});let n=$X[t],o=a=>n?Object.keys(a).reduce((l,i)=>({...l,[i]:a[i].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,l)=>({...a,[l]:{ungrouped:r.sections[l].ungrouped.sort(n),subsections:o(r.sections[l].subsections)}}),{})}},MX=(e,t,r)=>{try{return Y$(e,t,r)}catch(n){return SG.warn(n.message),!1}},F5=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:l="none",isLoading:i}=e;if("error"in e){let{error:y}=e;return b.createElement(bI,null,y," ",b.createElement(yl,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},b.createElement(y5,null)," Read the docs"))}if(i)return b.createElement(zX,null);let{rows:u,args:d,globals:p}="rows"in e&&e,m=OX(Tz(u||{},y=>{var E;return!((E=y==null?void 0:y.table)!=null&&E.disable)&&MX(y,d||{},p||{})}),l),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return b.createElement(DX,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let C=Object.keys(m.sections).length>0,w={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return b.createElement(CF,null,b.createElement(TX,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},b.createElement("thead",{className:"docblock-argstable-head"},b.createElement("tr",null,b.createElement("th",null,b.createElement("span",null,"Name")),n?null:b.createElement("th",null,b.createElement("span",null,"Description")),n?null:b.createElement("th",null,b.createElement("span",null,"Default")),t?b.createElement("th",null,b.createElement(LX,null,"Control"," ",!i&&r&&b.createElement(BX,{onClick:()=>r(),title:"Reset controls"},b.createElement(CG,{"aria-hidden":!0})))):null)),b.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(y=>b.createElement(Dc,{key:y.key,row:y,arg:d&&d[y.key],...w})),Object.entries(m.ungroupedSubsections).map(([y,E])=>b.createElement(jh,{key:y,label:y,level:"subsection",colSpan:g},E.map(x=>b.createElement(Dc,{key:x.key,row:x,arg:d&&d[x.key],expandable:C,...w})))),Object.entries(m.sections).map(([y,E])=>b.createElement(jh,{key:y,label:y,level:"section",colSpan:g},E.ungrouped.map(x=>b.createElement(Dc,{key:x.key,row:x,arg:d&&d[x.key],...w})),Object.entries(E.subsections).map(([x,D])=>b.createElement(jh,{key:x,label:x,level:"subsection",colSpan:g},D.map(S=>b.createElement(Dc,{key:S.key,row:S,arg:d&&d[S.key],expandable:C,...w})))))))))},PX=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?b.createElement(F5,{...r[0][1],...t}):b.createElement(qq,null,r.map((n,o)=>{let[a,l]=n,i=`prop_table_div_${a}`,u="div",d=o===0?t:{sort:t.sort};return b.createElement(u,{key:i,id:i,title:a},({active:p})=>p?b.createElement(F5,{key:`prop_table_${a}`,...l,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(be,({theme:e})=>({...B1(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?fe(.2,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...B1(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...B1(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var NX=e=>`anchor--${e}`,oz=({storyId:e,children:t})=>b.createElement("div",{id:NX(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=s.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var wr=globalThis?globalThis.__DOCS_CONTEXT__:s.createContext(null),ba=(e,t)=>s.useContext(wr).resolveOf(e,t),HX=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),jX=e=>{if(e)return typeof e=="string"?e.includes("-")?HX(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function VX(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var UX=Object.create,az=Object.defineProperty,WX=Object.getOwnPropertyDescriptor,lz=Object.getOwnPropertyNames,qX=Object.getPrototypeOf,GX=Object.prototype.hasOwnProperty,Wt=(e,t)=>function(){return t||(0,e[lz(e)[0]])((t={exports:{}}).exports,t),t.exports},KX=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lz(t))!GX.call(e,o)&&o!==r&&az(e,o,{get:()=>t[o],enumerable:!(n=WX(t,o))||n.enumerable});return e},Ry=(e,t,r)=>(r=e!=null?UX(qX(e)):{},KX(!e||!e.__esModule?az(r,"default",{value:e,enumerable:!0}):r,e)),YX=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],ZX=["detail"];function XX(e){let t=YX.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&ZX.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var JX=z5(mI(),1),iz=Wt({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,n);if(i.value!==a||i.enumerable!==!0)return!1}return!0}}}),sz=Wt({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=iz();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),QX=Wt({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(l){var i=this;if(typeof i!="function"||o.call(i)!==a)throw new TypeError(r+i);for(var u=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=i.apply(this,u.concat(n.call(arguments)));return Object(g)===g?g:this}else return i.apply(l,u.concat(n.call(arguments)))},m=Math.max(0,i.length-u.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function L($){var N;if($==="%AsyncFunction%")N=l("async function () {}");else if($==="%GeneratorFunction%")N=l("function* () {}");else if($==="%AsyncGeneratorFunction%")N=l("async function* () {}");else if($==="%AsyncGenerator%"){var M=L("%AsyncGeneratorFunction%");M&&(N=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var j=L("%AsyncGenerator%");j&&(N=m(j.prototype))}return v[$]=N,N},C={"%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"]},w=Iy(),y=eJ(),E=w.call(Function.call,Array.prototype.concat),x=w.call(Function.apply,Array.prototype.splice),D=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),k=w.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,R=function(L){var $=S(L,0,1),N=S(L,-1);if($==="%"&&N!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&$!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var M=[];return D(L,A,function(j,q,B,P){M[M.length]=B?D(P,_,"$1"):q||j}),M},z=function(L,$){var N=L,M;if(y(C,N)&&(M=C[N],N="%"+M[0]+"%"),y(v,N)){var j=v[N];if(j===h&&(j=g(N)),typeof j>"u"&&!$)throw new a("intrinsic "+L+" exists, but is not available. Please file an issue!");return{alias:M,name:N,value:j}}throw new n("intrinsic "+L+" does not exist!")};t.exports=function(L,$){if(typeof L!="string"||L.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new a('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,L)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=R(L),M=N.length>0?N[0]:"",j=z("%"+M+"%",$),q=j.name,B=j.value,P=!1,H=j.alias;H&&(M=H[0],x(N,E([0,1],H)));for(var G=1,Z=!0;G=N.length){var X=i(B,Q);Z=!!X,Z&&"get"in X&&!("originalValue"in X.get)?B=X.get:B=B[Q]}else Z=y(B,Q),B=B[Q];Z&&!P&&(v[q]=B)}}return B}}}),tJ=Wt({"node_modules/call-bind/index.js"(e,t){var r=Iy(),n=uz(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||r.call(a,o),i=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=function(m){var h=l(r,a,arguments);if(i&&u){var f=i(h,"length");f.configurable&&u(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return l(r,o,arguments)};u?u(t.exports,"apply",{value:p}):t.exports.apply=p}}),rJ=Wt({"node_modules/call-bind/callBound.js"(e,t){var r=uz(),n=tJ(),o=n(r("String.prototype.indexOf"));t.exports=function(a,l){var i=r(a,!!l);return typeof i=="function"&&o(a,".prototype.")>-1?n(i):i}}}),nJ=Wt({"node_modules/has-tostringtag/shams.js"(e,t){var r=iz();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),oJ=Wt({"node_modules/is-regex/index.js"(e,t){var r=rJ(),n=nJ()(),o,a,l,i;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),l={},u=function(){throw l},i={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(i[Symbol.toPrimitive]=u));var u,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&o(f,"value");if(!v)return!1;try{a(h,i)}catch(g){return g===l}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),aJ=Wt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),lJ=Wt({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=sz()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,l=function(i){return typeof i.valueOf()!="symbol"?!1:a.test(o.call(i))},t.exports=function(i){if(typeof i=="symbol")return!0;if(r.call(i)!=="[object Symbol]")return!1;try{return l(i)}catch{return!1}}):t.exports=function(i){return!1};var o,a,l}}),iJ=Ry(oJ()),sJ=Ry(aJ()),uJ=Ry(lJ());function cJ(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var dJ=typeof global=="object"&&global&&global.Object===Object&&global,pJ=dJ,fJ=typeof self=="object"&&self&&self.Object===Object&&self,hJ=pJ||fJ||Function("return this")(),zy=hJ,mJ=zy.Symbol,Wl=mJ,cz=Object.prototype,gJ=cz.hasOwnProperty,vJ=cz.toString,Li=Wl?Wl.toStringTag:void 0;function yJ(e){var t=gJ.call(e,Li),r=e[Li];try{e[Li]=void 0;var n=!0}catch{}var o=vJ.call(e);return n&&(t?e[Li]=r:delete e[Li]),o}var wJ=yJ,bJ=Object.prototype,EJ=bJ.toString;function xJ(e){return EJ.call(e)}var CJ=xJ,DJ="[object Null]",SJ="[object Undefined]",bE=Wl?Wl.toStringTag:void 0;function kJ(e){return e==null?e===void 0?SJ:DJ:bE&&bE in Object(e)?wJ(e):CJ(e)}var AJ=kJ,EE=Wl?Wl.prototype:void 0;EE&&EE.toString;function _J(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dz=_J,FJ="[object AsyncFunction]",RJ="[object Function]",IJ="[object GeneratorFunction]",zJ="[object Proxy]";function TJ(e){if(!dz(e))return!1;var t=AJ(e);return t==RJ||t==IJ||t==FJ||t==zJ}var BJ=TJ,LJ=zy["__core-js_shared__"],Vh=LJ,xE=function(){var e=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $J(e){return!!xE&&xE in e}var OJ=$J,MJ=Function.prototype,PJ=MJ.toString;function NJ(e){if(e!=null){try{return PJ.call(e)}catch{}try{return e+""}catch{}}return""}var HJ=NJ,jJ=/[\\^$.*+?()[\]{}|]/g,VJ=/^\[object .+?Constructor\]$/,UJ=Function.prototype,WJ=Object.prototype,qJ=UJ.toString,GJ=WJ.hasOwnProperty,KJ=RegExp("^"+qJ.call(GJ).replace(jJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YJ(e){if(!dz(e)||OJ(e))return!1;var t=BJ(e)?KJ:VJ;return t.test(HJ(e))}var ZJ=YJ;function XJ(e,t){return e==null?void 0:e[t]}var JJ=XJ;function QJ(e,t){var r=JJ(e,t);return ZJ(r)?r:void 0}var pz=QJ;function eQ(e,t){return e===t||e!==e&&t!==t}var tQ=eQ,rQ=pz(Object,"create"),eu=rQ;function nQ(){this.__data__=eu?eu(null):{},this.size=0}var oQ=nQ;function aQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var lQ=aQ,iQ="__lodash_hash_undefined__",sQ=Object.prototype,uQ=sQ.hasOwnProperty;function cQ(e){var t=this.__data__;if(eu){var r=t[e];return r===iQ?void 0:r}return uQ.call(t,e)?t[e]:void 0}var dQ=cQ,pQ=Object.prototype,fQ=pQ.hasOwnProperty;function hQ(e){var t=this.__data__;return eu?t[e]!==void 0:fQ.call(t,e)}var mQ=hQ,gQ="__lodash_hash_undefined__";function vQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eu&&t===void 0?gQ:t,this}var yQ=vQ;function ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var FQ=_Q;function RQ(e,t){var r=this.__data__,n=O1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var IQ=RQ;function oi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;l({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),jZ=F.div({display:"flex",alignItems:"center",width:"100%"});function VZ(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var UZ=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:l,onFocus:i,argType:u})=>{var f;let d=v=>{r(eZ(v.target.value))},p=t!==void 0,m=s.useMemo(()=>VZ(a),[a]),h=!!((f=u==null?void 0:u.table)!=null&&f.readonly);return b.createElement(jZ,{"aria-readonly":h},b.createElement(rz,null,n),b.createElement(NZ,{id:mr(e),type:"range",disabled:h,onChange:d,name:e,value:t,min:n,max:o,step:a,onFocus:i,onBlur:l}),b.createElement(HZ,{numberOFDecimalsPlaces:m,max:o},p?t.toFixed(m):"--"," / ",o))},WZ=F.label({display:"flex"}),qZ=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),GZ=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:l})=>{var f;let i=v=>{r(v.target.value)},u=!!((f=l==null?void 0:l.table)!=null&&f.readonly),[d,p]=s.useState(!1),m=s.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return b.createElement(wa,{variant:"outline",size:"medium",disabled:u,id:wd(e),onClick:m},"Set string");let h=typeof t=="string";return b.createElement(WZ,null,b.createElement(_u.Textarea,{id:mr(e),maxLength:a,onChange:i,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),a&&b.createElement(qZ,{isMaxed:(t==null?void 0:t.length)===a},(t==null?void 0:t.length)??0," / ",a))},KZ=F(_u.Input)({padding:10});function YZ(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ZZ=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var u;let a=s.useRef(null),l=(u=o==null?void 0:o.control)==null?void 0:u.readOnly;function i(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),YZ(n)}return s.useEffect(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),b.createElement(KZ,{ref:a,id:mr(t),type:"file",name:t,multiple:!0,disabled:l,onChange:i,accept:r,size:"flex"})},XZ=s.lazy(()=>SE(()=>import("./Color-F6OSRLHC-D_1FtZIF.js"),__vite__mapDeps([6,2,3,1,4,5]),import.meta.url)),JZ=e=>b.createElement(s.Suspense,{fallback:b.createElement("div",null)},b.createElement(XZ,{...e})),QZ={array:mE,object:mE,boolean:qY,color:JZ,date:JY,number:rZ,check:Ta,"inline-check":Ta,radio:Ta,"inline-radio":Ta,select:Ta,"multi-select":Ta,range:UZ,text:GZ,file:ZZ},gE=()=>b.createElement(b.Fragment,null,"-"),eX=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:o,control:a}=e,[l,i]=s.useState(!1),[u,d]=s.useState({value:t});s.useEffect(()=>{l||d({value:t})},[l,t]);let p=s.useCallback(C=>(d({value:C}),r({[o]:C}),C),[r,o]),m=s.useCallback(()=>i(!1),[]),h=s.useCallback(()=>i(!0),[]);if(!a||a.disable){let C=(a==null?void 0:a.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&C?b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):b.createElement(gE,null)}let f={name:o,argType:e,value:u.value,onChange:p,onBlur:m,onFocus:h},v=QZ[a.type]||gE;return b.createElement(v,{...f,...a,controlType:a.type})},tX=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:go({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),rX=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:b.createElement(b.Fragment,null,b.createElement(tX,null,b.createElement("tbody",null,n&&b.createElement("tr",{key:"deprecated"},b.createElement("td",{colSpan:2},b.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>b.createElement("tr",{key:a.name},b.createElement("td",null,b.createElement("code",null,a.name)),b.createElement("td",null,a.description))),o&&b.createElement("tr",{key:"returns"},b.createElement("td",null,b.createElement("code",null,"Returns")),b.createElement("td",null,e.returns.description)))))},nX=z5(mI()),_5=8,vE=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),oX=F.span(go,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),aX=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),lX=F.div(go,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),iX=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),sX=F(xG)({marginLeft:4}),uX=F(hI)({marginLeft:4}),cX=()=>b.createElement("span",null,"-"),nz=({text:e,simple:t})=>b.createElement(oX,{simple:t},e),dX=(0,nX.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),pX=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return zz(t)},yE=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,_5)),r.map(n=>b.createElement(nz,{key:n,text:n===""?'""':n}))},fX=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=s.useState(!1),[l,i]=s.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return b.createElement(nz,{text:u});let d=pX(u),p=d.length;return p>_5?b.createElement(vE,{isExpanded:l},yE(d,l),b.createElement(aX,{onClick:()=>i(!l)},l?"Show less...":`Show ${p-_5} more...`)):b.createElement(vE,null,yE(d))}return b.createElement(cq,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:d=>{a(d)},tooltip:b.createElement(iX,{width:dX(n)},b.createElement(hy,{language:"jsx",format:!1},n))},b.createElement(lX,{className:"sbdocs-expandable"},b.createElement("span",null,u),o?b.createElement(sX,null):b.createElement(uX,null)))},Hh=({value:e,initialExpandedArgs:t})=>e==null?b.createElement(cX,null):b.createElement(fX,{value:e,initialExpandedArgs:t}),hX=F.span({fontWeight:"bold"}),mX=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),gX=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...go({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),vX=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?fe(.1,e.color.defaultText):fe(.2,e.color.defaultText),marginTop:t?4:0})),yX=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?fe(.1,e.color.defaultText):fe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),wX=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),bX=e=>e&&{summary:typeof e=="string"?e:e.name},Dc=e=>{var g;let[t,r]=s.useState(!1),{row:n,updateArgs:o,compact:a,expandable:l,initialExpandedArgs:i}=e,{name:u,description:d}=n,p=n.table||{},m=p.type||bX(n.type),h=p.defaultValue||n.defaultValue,f=(g=n.type)==null?void 0:g.required,v=d!=null&&d!=="";return b.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},b.createElement(wX,{expandable:l},b.createElement(hX,null,u),f?b.createElement(mX,{title:"Required"},"*"):null),a?null:b.createElement("td",null,v&&b.createElement(gX,null,b.createElement(UI,null,d)),p.jsDocTags!=null?b.createElement(b.Fragment,null,b.createElement(yX,{hasDescription:v},b.createElement(Hh,{value:m,initialExpandedArgs:i})),b.createElement(rX,{tags:p.jsDocTags})):b.createElement(vX,{hasDescription:v},b.createElement(Hh,{value:m,initialExpandedArgs:i}))),a?null:b.createElement("td",null,b.createElement(Hh,{value:h,initialExpandedArgs:i})),o?b.createElement("td",null,b.createElement(eX,{...e,isHovered:t})):null)},EX=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),xX=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),CX=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),DX=({inAddonPanel:e})=>{let[t,r]=s.useState(!0);return s.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:b.createElement(EX,{inAddonPanel:e},b.createElement(iI,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:b.createElement(b.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:b.createElement(xX,null,e&&b.createElement(b.Fragment,null,b.createElement(yl,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},b.createElement(gG,null)," Watch 5m video"),b.createElement(CX,null),b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(y5,null)," Read docs")),!e&&b.createElement(yl,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},b.createElement(y5,null)," Learn how to set that up"))}))},SX=F(bG)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?fe(.25,e.color.defaultText):fe(.3,e.color.defaultText),border:"none",display:"inline-block"})),kX=F(EG)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?fe(.25,e.color.defaultText):fe(.3,e.color.defaultText),border:"none",display:"inline-block"})),AX=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),_X=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),FX=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),RX=F.td(()=>({position:"relative"})),IX=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${zo(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),wE=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),jh=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,l]=s.useState(n),i=e==="subsection"?FX:_X,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${a?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return b.createElement(b.Fragment,null,b.createElement(IX,{title:p},b.createElement(i,{colSpan:1},b.createElement(wE,{onClick:m=>l(!a),tabIndex:0},p),b.createElement(AX,null,a?b.createElement(SX,null):b.createElement(kX,null),t)),b.createElement(RX,{colSpan:o-1},b.createElement(wE,{onClick:m=>l(!a),tabIndex:-1,style:{outline:"none"}},p),a?null:d)),a?r:null)},Sc=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ze=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Fe=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Xe=[2,4,2,2],zX=()=>b.createElement(b.Fragment,null,b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"}))),b.createElement(Sc,null,b.createElement(Ze,{numColumn:Xe[0]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[1]},b.createElement(Fe,{width:"80%"}),b.createElement(Fe,{width:"30%"})),b.createElement(Ze,{numColumn:Xe[2]},b.createElement(Fe,{width:"60%"})),b.createElement(Ze,{numColumn:Xe[3]},b.createElement(Fe,{width:"60%"})))),TX=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?fe(.25,e.color.defaultText):fe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),BX=F(Yo)(({theme:e})=>({margin:"-4px -12px -4px 0"})),LX=F.span({display:"flex",justifyContent:"space-between"}),$X={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},OX=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,l])=>{let{category:i,subcategory:u}=(l==null?void 0:l.table)||{};if(i){let d=r.sections[i]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:a,...l});else{let p=d.subsections[u]||[];p.push({key:a,...l}),d.subsections[u]=p}r.sections[i]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:a,...l}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:a,...l})});let n=$X[t],o=a=>n?Object.keys(a).reduce((l,i)=>({...l,[i]:a[i].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,l)=>({...a,[l]:{ungrouped:r.sections[l].ungrouped.sort(n),subsections:o(r.sections[l].subsections)}}),{})}},MX=(e,t,r)=>{try{return Y$(e,t,r)}catch(n){return SG.warn(n.message),!1}},F5=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:l="none",isLoading:i}=e;if("error"in e){let{error:y}=e;return b.createElement(bI,null,y," ",b.createElement(yl,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},b.createElement(y5,null)," Read the docs"))}if(i)return b.createElement(zX,null);let{rows:u,args:d,globals:p}="rows"in e&&e,m=OX(Tz(u||{},y=>{var E;return!((E=y==null?void 0:y.table)!=null&&E.disable)&&MX(y,d||{},p||{})}),l),h=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(h&&f&&v)return b.createElement(DX,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let C=Object.keys(m.sections).length>0,w={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return b.createElement(CF,null,b.createElement(TX,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},b.createElement("thead",{className:"docblock-argstable-head"},b.createElement("tr",null,b.createElement("th",null,b.createElement("span",null,"Name")),n?null:b.createElement("th",null,b.createElement("span",null,"Description")),n?null:b.createElement("th",null,b.createElement("span",null,"Default")),t?b.createElement("th",null,b.createElement(LX,null,"Control"," ",!i&&r&&b.createElement(BX,{onClick:()=>r(),title:"Reset controls"},b.createElement(CG,{"aria-hidden":!0})))):null)),b.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(y=>b.createElement(Dc,{key:y.key,row:y,arg:d&&d[y.key],...w})),Object.entries(m.ungroupedSubsections).map(([y,E])=>b.createElement(jh,{key:y,label:y,level:"subsection",colSpan:g},E.map(x=>b.createElement(Dc,{key:x.key,row:x,arg:d&&d[x.key],expandable:C,...w})))),Object.entries(m.sections).map(([y,E])=>b.createElement(jh,{key:y,label:y,level:"section",colSpan:g},E.ungrouped.map(x=>b.createElement(Dc,{key:x.key,row:x,arg:d&&d[x.key],...w})),Object.entries(E.subsections).map(([x,D])=>b.createElement(jh,{key:x,label:x,level:"subsection",colSpan:g},D.map(S=>b.createElement(Dc,{key:S.key,row:S,arg:d&&d[S.key],expandable:C,...w})))))))))},PX=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?b.createElement(F5,{...r[0][1],...t}):b.createElement(qq,null,r.map((n,o)=>{let[a,l]=n,i=`prop_table_div_${a}`,u="div",d=o===0?t:{sort:t.sort};return b.createElement(u,{key:i,id:i,title:a},({active:p})=>p?b.createElement(F5,{key:`prop_table_${a}`,...l,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(be,({theme:e})=>({...B1(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?fe(.2,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...B1(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?fe(.4,e.color.defaultText):fe(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...B1(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var NX=e=>`anchor--${e}`,oz=({storyId:e,children:t})=>b.createElement("div",{id:NX(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=s.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var wr=globalThis?globalThis.__DOCS_CONTEXT__:s.createContext(null),ba=(e,t)=>s.useContext(wr).resolveOf(e,t),HX=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),jX=e=>{if(e)return typeof e=="string"?e.includes("-")?HX(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function VX(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var UX=Object.create,az=Object.defineProperty,WX=Object.getOwnPropertyDescriptor,lz=Object.getOwnPropertyNames,qX=Object.getPrototypeOf,GX=Object.prototype.hasOwnProperty,Wt=(e,t)=>function(){return t||(0,e[lz(e)[0]])((t={exports:{}}).exports,t),t.exports},KX=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lz(t))!GX.call(e,o)&&o!==r&&az(e,o,{get:()=>t[o],enumerable:!(n=WX(t,o))||n.enumerable});return e},Ry=(e,t,r)=>(r=e!=null?UX(qX(e)):{},KX(!e||!e.__esModule?az(r,"default",{value:e,enumerable:!0}):r,e)),YX=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],ZX=["detail"];function XX(e){let t=YX.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&ZX.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var JX=z5(mI(),1),iz=Wt({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,n);if(i.value!==a||i.enumerable!==!0)return!1}return!0}}}),sz=Wt({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=iz();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),QX=Wt({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(l){var i=this;if(typeof i!="function"||o.call(i)!==a)throw new TypeError(r+i);for(var u=n.call(arguments,1),d,p=function(){if(this instanceof d){var g=i.apply(this,u.concat(n.call(arguments)));return Object(g)===g?g:this}else return i.apply(l,u.concat(n.call(arguments)))},m=Math.max(0,i.length-u.length),h=[],f=0;f"u"?r:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function L($){var N;if($==="%AsyncFunction%")N=l("async function () {}");else if($==="%GeneratorFunction%")N=l("function* () {}");else if($==="%AsyncGeneratorFunction%")N=l("async function* () {}");else if($==="%AsyncGenerator%"){var M=L("%AsyncGeneratorFunction%");M&&(N=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var j=L("%AsyncGenerator%");j&&(N=m(j.prototype))}return v[$]=N,N},C={"%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"]},w=Iy(),y=eJ(),E=w.call(Function.call,Array.prototype.concat),x=w.call(Function.apply,Array.prototype.splice),D=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),k=w.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,R=function(L){var $=S(L,0,1),N=S(L,-1);if($==="%"&&N!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&$!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var M=[];return D(L,A,function(j,q,B,P){M[M.length]=B?D(P,_,"$1"):q||j}),M},z=function(L,$){var N=L,M;if(y(C,N)&&(M=C[N],N="%"+M[0]+"%"),y(v,N)){var j=v[N];if(j===h&&(j=g(N)),typeof j>"u"&&!$)throw new a("intrinsic "+L+" exists, but is not available. Please file an issue!");return{alias:M,name:N,value:j}}throw new n("intrinsic "+L+" does not exist!")};t.exports=function(L,$){if(typeof L!="string"||L.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new a('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,L)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=R(L),M=N.length>0?N[0]:"",j=z("%"+M+"%",$),q=j.name,B=j.value,P=!1,H=j.alias;H&&(M=H[0],x(N,E([0,1],H)));for(var G=1,Z=!0;G=N.length){var X=i(B,Q);Z=!!X,Z&&"get"in X&&!("originalValue"in X.get)?B=X.get:B=B[Q]}else Z=y(B,Q),B=B[Q];Z&&!P&&(v[q]=B)}}return B}}}),tJ=Wt({"node_modules/call-bind/index.js"(e,t){var r=Iy(),n=uz(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||r.call(a,o),i=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=function(m){var h=l(r,a,arguments);if(i&&u){var f=i(h,"length");f.configurable&&u(h,"length",{value:1+d(0,m.length-(arguments.length-1))})}return h};var p=function(){return l(r,o,arguments)};u?u(t.exports,"apply",{value:p}):t.exports.apply=p}}),rJ=Wt({"node_modules/call-bind/callBound.js"(e,t){var r=uz(),n=tJ(),o=n(r("String.prototype.indexOf"));t.exports=function(a,l){var i=r(a,!!l);return typeof i=="function"&&o(a,".prototype.")>-1?n(i):i}}}),nJ=Wt({"node_modules/has-tostringtag/shams.js"(e,t){var r=iz();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),oJ=Wt({"node_modules/is-regex/index.js"(e,t){var r=rJ(),n=nJ()(),o,a,l,i;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),l={},u=function(){throw l},i={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(i[Symbol.toPrimitive]=u));var u,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=p(h,"lastIndex"),v=f&&o(f,"value");if(!v)return!1;try{a(h,i)}catch(g){return g===l}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),aJ=Wt({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),lJ=Wt({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=sz()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,l=function(i){return typeof i.valueOf()!="symbol"?!1:a.test(o.call(i))},t.exports=function(i){if(typeof i=="symbol")return!0;if(r.call(i)!=="[object Symbol]")return!1;try{return l(i)}catch{return!1}}):t.exports=function(i){return!1};var o,a,l}}),iJ=Ry(oJ()),sJ=Ry(aJ()),uJ=Ry(lJ());function cJ(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var dJ=typeof global=="object"&&global&&global.Object===Object&&global,pJ=dJ,fJ=typeof self=="object"&&self&&self.Object===Object&&self,hJ=pJ||fJ||Function("return this")(),zy=hJ,mJ=zy.Symbol,Wl=mJ,cz=Object.prototype,gJ=cz.hasOwnProperty,vJ=cz.toString,Li=Wl?Wl.toStringTag:void 0;function yJ(e){var t=gJ.call(e,Li),r=e[Li];try{e[Li]=void 0;var n=!0}catch{}var o=vJ.call(e);return n&&(t?e[Li]=r:delete e[Li]),o}var wJ=yJ,bJ=Object.prototype,EJ=bJ.toString;function xJ(e){return EJ.call(e)}var CJ=xJ,DJ="[object Null]",SJ="[object Undefined]",bE=Wl?Wl.toStringTag:void 0;function kJ(e){return e==null?e===void 0?SJ:DJ:bE&&bE in Object(e)?wJ(e):CJ(e)}var AJ=kJ,EE=Wl?Wl.prototype:void 0;EE&&EE.toString;function _J(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dz=_J,FJ="[object AsyncFunction]",RJ="[object Function]",IJ="[object GeneratorFunction]",zJ="[object Proxy]";function TJ(e){if(!dz(e))return!1;var t=AJ(e);return t==RJ||t==IJ||t==FJ||t==zJ}var BJ=TJ,LJ=zy["__core-js_shared__"],Vh=LJ,xE=function(){var e=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $J(e){return!!xE&&xE in e}var OJ=$J,MJ=Function.prototype,PJ=MJ.toString;function NJ(e){if(e!=null){try{return PJ.call(e)}catch{}try{return e+""}catch{}}return""}var HJ=NJ,jJ=/[\\^$.*+?()[\]{}|]/g,VJ=/^\[object .+?Constructor\]$/,UJ=Function.prototype,WJ=Object.prototype,qJ=UJ.toString,GJ=WJ.hasOwnProperty,KJ=RegExp("^"+qJ.call(GJ).replace(jJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YJ(e){if(!dz(e)||OJ(e))return!1;var t=BJ(e)?KJ:VJ;return t.test(HJ(e))}var ZJ=YJ;function XJ(e,t){return e==null?void 0:e[t]}var JJ=XJ;function QJ(e,t){var r=JJ(e,t);return ZJ(r)?r:void 0}var pz=QJ;function eQ(e,t){return e===t||e!==e&&t!==t}var tQ=eQ,rQ=pz(Object,"create"),eu=rQ;function nQ(){this.__data__=eu?eu(null):{},this.size=0}var oQ=nQ;function aQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var lQ=aQ,iQ="__lodash_hash_undefined__",sQ=Object.prototype,uQ=sQ.hasOwnProperty;function cQ(e){var t=this.__data__;if(eu){var r=t[e];return r===iQ?void 0:r}return uQ.call(t,e)?t[e]:void 0}var dQ=cQ,pQ=Object.prototype,fQ=pQ.hasOwnProperty;function hQ(e){var t=this.__data__;return eu?t[e]!==void 0:fQ.call(t,e)}var mQ=hQ,gQ="__lodash_hash_undefined__";function vQ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eu&&t===void 0?gQ:t,this}var yQ=vQ;function ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var FQ=_Q;function RQ(e,t){var r=this.__data__,n=O1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var IQ=RQ;function oi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;lree(e).replace(/\n\s*/g,"").trim()),oee=function(e,t){let r=t.slice(0,t.indexOf("{")),n=t.slice(t.indexOf("{"));if(r.includes("=>")||r.includes("function"))return t;let o=r;return o=o.replace(e,"function"),o+n},aee=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function hz(e){if(!tee(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=XX(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var lee=function(e){let t,r,n,o;return function(a,l){try{if(a==="")return o=[],t=new Map([[l,"[]"]]),r=new Map,n=[],l;let i=r.get(this)||this;for(;n.length&&i!==n[0];)n.shift(),o.pop();if(typeof l=="boolean")return l;if(l===void 0)return e.allowUndefined?"_undefined_":void 0;if(l===null)return null;if(typeof l=="number")return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if(typeof l=="bigint")return`_bigint_${l.toString()}`;if(typeof l=="string")return aee.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,iJ.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,sJ.default)(l)){if(!e.allowFunction)return;let{name:d}=l,p=l.toString();return p.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${d}|${(()=>{}).toString()}`:`_function_${d}|${nee(oee(a,p))}`}if((0,uJ.default)(l)){if(!e.allowSymbol)return;let d=Symbol.keyFor(l);return d!==void 0?`_gsymbol_${d}`:`_symbol_${l.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(o)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&!e.allowClass)return;let u=t.get(l);if(!u){let d=Array.isArray(l)?l:hz(l);if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&e.allowClass)try{Object.assign(d,{"_constructor-name_":l.constructor.name})}catch{}return o.push(a),n.unshift(d),t.set(l,JSON.stringify(o)),l!==d&&r.set(l,d),d}return`_duplicate_${u}`}catch{return}}},iee={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},see=(e,t={})=>{let r={...iee,...t};return JSON.stringify(hz(e),lee(r),t.space)};function mz(e){return see(e,{allowFunction:!1})}var gz=s.createContext({sources:{}}),vz="--unknown--",uee=({children:e,channel:t})=>{let[r,n]=s.useState({});return s.useEffect(()=>{let o=(a,l=null,i=!1)=>{let{id:u,args:d=void 0,source:p,format:m}=typeof a=="string"?{id:a,source:l,format:i}:a,h=d?mz(d):vz;n(f=>({...f,[u]:{...f[u],[h]:{code:p,format:m}}}))};return t.on(Ny,o),()=>t.off(Ny,o)},[]),b.createElement(gz.Provider,{value:{sources:r}},e)},cee=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[mz(t)])||(o==null?void 0:o[vz])||{code:""}},dee=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:o}=t.parameters,a=((u=t.parameters.docs)==null?void 0:u.source)||{},l=r||a.type||H1.AUTO;if(a.code!==void 0)return a.code;let i=l===H1.DYNAMIC||l===H1.AUTO&&e&&o?e:a.originalSource||"";return((d=n??a.transform)==null?void 0:d(i,t))||i},pee=(e,t,r)=>{var f,v,g,C;let n,{of:o}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(o)n=t.resolveOf(o,["story"]).story;else try{n=t.storyById()}catch{}let a=((v=(f=n==null?void 0:n.parameters)==null?void 0:f.docs)==null?void 0:v.source)||{},{code:l}=e,i=e.format??a.format,u=e.language??a.language??"jsx",d=e.dark??a.dark??!1;if(!l&&!n)return{error:"Oh no! The source is not available."};if(l)return{code:l,format:i,language:u,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,h=cee(n.id,m,r);return i=h.format??((C=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:C.format)??!1,{code:dee({snippet:h.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:i,language:u,dark:d}};function fee(e,t){let r=hee([e],t);return r&&r[0]}function hee(e,t){let[r,n]=s.useState({});return s.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(l=>l[o]===a?l:{...l,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return null}})}var mee=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},gee=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let i=e.height??a.height,u=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:i,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let l=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},vee=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=s.useContext(wr),r=mee(e,t),n=fee(r,t);if(!n)return b.createElement(CI,null);let o=gee(e,n,t);return o?b.createElement(FK,{...o}):null},yee=e=>{var h,f,v,g,C,w,y,E,x,D;let t=s.useContext(wr),r=s.useContext(gz),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=ba(n||"story",["story"]),l=pee({...o,...n&&{of:n}},t,r),i=e.layout??a.parameters.layout??((f=(h=a.parameters.docs)==null?void 0:h.canvas)==null?void 0:f.layout)??"padded",u=e.withToolbar??((g=(v=a.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,d=e.additionalActions??((w=(C=a.parameters.docs)==null?void 0:C.canvas)==null?void 0:w.additionalActions),p=e.sourceState??((E=(y=a.parameters.docs)==null?void 0:y.canvas)==null?void 0:E.sourceState)??"hidden",m=e.className??((D=(x=a.parameters.docs)==null?void 0:x.canvas)==null?void 0:D.className);return b.createElement(DI,{withSource:p==="none"?void 0:l,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:m,layout:i},b.createElement(vee,{of:n||a.moduleExport,meta:e.meta,...e.story}))},wee=(e,t)=>{let r=bee(e,t);if(!r)throw new Error("No result when story was defined");return r},bee=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=s.useState(r.args);s.useEffect(()=>{let u=d=>{d.storyId===n&&a(d.args)};return t.channel.on(Z8,u),()=>t.channel.off(Z8,u)},[n,t.channel]);let l=s.useCallback(u=>t.channel.emit(kG,{storyId:n,updatedArgs:u}),[n,t.channel]),i=s.useCallback(u=>t.channel.emit(AG,{storyId:n,argNames:u}),[n,t.channel]);return e&&[o,l,i]},Eee=(e,t)=>{let r=t.getStoryContext(e),[n,o]=s.useState(r.globals);return s.useEffect(()=>{let a=l=>{o(l.globals)};return t.channel.on(X8,a),()=>t.channel.off(X8,a)},[t.channel]),[n]};function xee(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var Cee=e=>{var x;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=s.useContext(wr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:l,subcomponents:i}=n,u=((x=o.docs)==null?void 0:x.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,m=e.sort??u.sort,[h,f,v]=wee(n,r),[g]=Eee(n,r),C=Y8(a,d,p);if(!(i&&Object.keys(i).length>0))return Object.keys(C).length>0||Object.keys(h).length>0?b.createElement(F5,{rows:C,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v}):null;let w=jX(l),y=Object.fromEntries(Object.entries(i).map(([D,S])=>[D,{rows:Y8(xee(S,o),d,p),sort:m}])),E={[w]:{rows:C,sort:m},...y};return b.createElement(PX,{tabs:E,sort:m,args:h,globals:g,updateArgs:f,resetArgs:v})},{document:yz}=globalThis,Dee=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return b.createElement(DF,null,t);let n=e&&e.split("-");return b.createElement(EI,{language:n&&n[1]||"text",format:!1,code:t,...r})};function By(e,t){e.channel.emit(_G,t)}var R5=uG.a,See=({hash:e,children:t})=>{let r=s.useContext(wr);return b.createElement(R5,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);yz.getElementById(o)&&By(r,e)}},t)},kee=e=>{let{href:t,target:r,children:n,...o}=e,a=s.useContext(wr);return!t||r==="_blank"||/^https?:\/\//.test(t)?b.createElement(R5,{...e}):t.startsWith("#")?b.createElement(See,{hash:t},n):b.createElement(R5,{href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),By(a,l.currentTarget.getAttribute("href")))},target:r,...o},n)},wz=["h1","h2","h3","h4","h5","h6"],Aee=wz.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),_ee=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Fee=({as:e,id:t,children:r,...n})=>{let o=s.useContext(wr),a=Aee[e],l=`#${t}`;return b.createElement(a,{id:t,...n},b.createElement(_ee,{"aria-hidden":"true",href:l,tabIndex:-1,target:"_self",onClick:i=>{yz.getElementById(t)&&By(o,l)}},b.createElement(wG,null)),r)},Ly=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return b.createElement(Fee,{as:t,id:r,...o},n);let a=t,{as:l,...i}=e;return b.createElement(a,{...me(i,t)})},Ree=wz.reduce((e,t)=>({...e,[t]:r=>b.createElement(Ly,{as:t,...r})}),{}),Iee=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Sz`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' diff --git a/assets/index-BW8DBsXs.js b/assets/index-DFJPSo8P.js similarity index 96% rename from assets/index-BW8DBsXs.js rename to assets/index-DFJPSo8P.js index 65cda0237..5504c5862 100644 --- a/assets/index-BW8DBsXs.js +++ b/assets/index-DFJPSo8P.js @@ -1 +1 @@ -import{m as i,a as l,G as m,K as c,P as T,g as b,L as d,b as S,v as B,w as L,c as C,E as H,$ as u,y as g,d as y,N as I,e as h,D as k,x as P,C as W,f as A,S as F,R as x,I as D,h as R,i as f,A as v,F as E,j as M,k as N,l as q,W as w,n as O,T as U,t as Z,o as j,p as z,q as G,r as J,s as K,u as Q,z as V,B as X,H as Y,J as _,M as $,V as aa,O as sa,Q as oa,U as ta,X as ea,Y as ra,Z as na,_ as pa,a0 as ia,a1 as la,a2 as ma,a3 as ca,a4 as Ta,a5 as ba,a6 as da,a7 as Sa,a8 as Ba,a9 as La,aa as Ca,ab as Ha,ac as ua,ad as ga}from"./index-DEhfps_P.js";import"./iframe-6fMPdiq5.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DDll1Hf8.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";export{i as A,l as ActionBar,m as AddonPanel,c as Badge,T as Bar,b as Blockquote,d as Button,S as ClipboardCode,B as Code,L as DL,C as Div,H as DocumentWrapper,u as EmptyTabContent,g as ErrorFormatter,y as FlexBar,I as Form,h as H1,k as H2,P as H3,W as H4,A as H5,F as H6,x as HR,D as IconButton,R as IconButtonSkeleton,f as Icons,v as Img,E as LI,M as Link,N as ListItem,q as Loader,w as Modal,O as OL,U as P,Z as Placeholder,j as Pre,z as ResetWrapper,G as ScrollArea,J as Separator,K as Spaced,Q as Span,V as StorybookIcon,X as StorybookLogo,Y as Symbols,_ as SyntaxHighlighter,$ as TT,aa as TabBar,sa as TabButton,oa as TabWrapper,ta as Table,ea as Tabs,ra as TabsState,na as TooltipLinkList,pa as TooltipMessage,ia as TooltipNote,la as UL,ma as WithTooltip,ca as WithTooltipPure,Ta as Zoom,ba as codeCommon,da as components,Sa as createCopyToClipboardFunction,Ba as getStoryHref,La as icons,Ca as interleaveSeparators,Ha as nameSpaceClassNames,ua as resetComponents,ga as withReset}; +import{m as i,a as l,G as m,K as c,P as T,g as b,L as d,b as S,v as B,w as L,c as C,E as H,$ as u,y as g,d as y,N as I,e as h,D as k,x as P,C as W,f as A,S as F,R as x,I as D,h as R,i as f,A as v,F as E,j as M,k as N,l as q,W as w,n as O,T as U,t as Z,o as j,p as z,q as G,r as J,s as K,u as Q,z as V,B as X,H as Y,J as _,M as $,V as aa,O as sa,Q as oa,U as ta,X as ea,Y as ra,Z as na,_ as pa,a0 as ia,a1 as la,a2 as ma,a3 as ca,a4 as Ta,a5 as ba,a6 as da,a7 as Sa,a8 as Ba,a9 as La,aa as Ca,ab as Ha,ac as ua,ad as ga}from"./index-BlccYh0h.js";import"./iframe-BDrD3q8C.js";import"../sb-preview/runtime.js";import"./jsx-runtime-DDll1Hf8.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DANZ6Lwg.js";import"./index-DrFu-skq.js";export{i as A,l as ActionBar,m as AddonPanel,c as Badge,T as Bar,b as Blockquote,d as Button,S as ClipboardCode,B as Code,L as DL,C as Div,H as DocumentWrapper,u as EmptyTabContent,g as ErrorFormatter,y as FlexBar,I as Form,h as H1,k as H2,P as H3,W as H4,A as H5,F as H6,x as HR,D as IconButton,R as IconButtonSkeleton,f as Icons,v as Img,E as LI,M as Link,N as ListItem,q as Loader,w as Modal,O as OL,U as P,Z as Placeholder,j as Pre,z as ResetWrapper,G as ScrollArea,J as Separator,K as Spaced,Q as Span,V as StorybookIcon,X as StorybookLogo,Y as Symbols,_ as SyntaxHighlighter,$ as TT,aa as TabBar,sa as TabButton,oa as TabWrapper,ta as Table,ea as Tabs,ra as TabsState,na as TooltipLinkList,pa as TooltipMessage,ia as TooltipNote,la as UL,ma as WithTooltip,ca as WithTooltipPure,Ta as Zoom,ba as codeCommon,da as components,Sa as createCopyToClipboardFunction,Ba as getStoryHref,La as icons,Ca as interleaveSeparators,Ha as nameSpaceClassNames,ua as resetComponents,ga as withReset}; diff --git a/assets/lerc-DZni-HPV.js b/assets/lerc-BKAdx0UG.js similarity index 99% rename from assets/lerc-DZni-HPV.js rename to assets/lerc-BKAdx0UG.js index 1ab039df8..1a8bc60eb 100644 --- a/assets/lerc-DZni-HPV.js +++ b/assets/lerc-BKAdx0UG.js @@ -1 +1 @@ -import{i as oA}from"./pako.esm-CPws4d4z.js";import{g as sA}from"./_commonjsHelpers-BosuxZz1.js";import{B as DA}from"./basedecoder-DvumDe3Y.js";import{L as nA,a as gA}from"./preview-BdSPFxEd.js";import"./chunk-L4EGOTBX-BALMY2cf.js";import"./entry-preview-BErytJoa.js";import"./lit-element-Dh4_iwrW.js";import"./index-DrFu-skq.js";import"./jsx-runtime-DDll1Hf8.js";import"./index-BogtSeel.js";import"./index-DEhfps_P.js";import"./iframe-6fMPdiq5.js";import"../sb-preview/runtime.js";import"./index-DANZ6Lwg.js";import"./directive-DUGPADuw.js";import"./main-Dh1LOCw_.js";var iA={exports:{}};(function(j){/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */(function(){var J=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),D=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=L(g,a.pixelType||Float32Array,a.encodedMaskData,D,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:D};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=d(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=z(g))),C};var L=function(I,a,Q,g,D){var B=0,C=I.pixels.numBlocksX,o=I.pixels.numBlocksY,r=Math.floor(I.width/C),s=Math.floor(I.height/o),f=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var t,F;t=new a(I.width*I.height),D&&Q&&(F=new Uint8Array(I.width*I.height));for(var S=new Float32Array(r*s),h,U,G=0;G<=o;G++){var R=G!==o?s:I.height%o;if(R!==0)for(var w=0;w<=C;w++){var n=w!==C?r:I.width%C;if(n!==0){var l=G*I.width*s+w*r,y=I.width-n,k=I.pixels.blocks[B],M,c,N;k.encoding<2?(k.encoding===0?M=k.rawData:(A(k.stuffedData,k.bitsPerPixel,k.numValidPixels,k.offset,f,S,I.pixels.maxValue),M=S),c=0):k.encoding===2?N=0:N=k.offset;var q;if(Q)for(U=0;U>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/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgA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ACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgAL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Q0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACI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ARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgA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B0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/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 dA extends DA{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[nA.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{dA as default,hA as zstd}; +import{i as oA}from"./pako.esm-CPws4d4z.js";import{g as sA}from"./_commonjsHelpers-BosuxZz1.js";import{B as DA}from"./basedecoder-DvumDe3Y.js";import{L as nA,a as gA}from"./preview-BTy071Hg.js";import"./chunk-L4EGOTBX-BALMY2cf.js";import"./entry-preview-BErytJoa.js";import"./lit-element-Dh4_iwrW.js";import"./index-DrFu-skq.js";import"./jsx-runtime-DDll1Hf8.js";import"./index-BogtSeel.js";import"./index-BlccYh0h.js";import"./iframe-BDrD3q8C.js";import"../sb-preview/runtime.js";import"./index-DANZ6Lwg.js";import"./directive-DUGPADuw.js";import"./main-Dh1LOCw_.js";var iA={exports:{}};(function(j){/* Copyright 2015-2021 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */(function(){var J=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),D=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=L(g,a.pixelType||Float32Array,a.encodedMaskData,D,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:D};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=d(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=z(g))),C};var L=function(I,a,Q,g,D){var B=0,C=I.pixels.numBlocksX,o=I.pixels.numBlocksY,r=Math.floor(I.width/C),s=Math.floor(I.height/o),f=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var t,F;t=new a(I.width*I.height),D&&Q&&(F=new Uint8Array(I.width*I.height));for(var S=new Float32Array(r*s),h,U,G=0;G<=o;G++){var R=G!==o?s:I.height%o;if(R!==0)for(var w=0;w<=C;w++){var n=w!==C?r:I.width%C;if(n!==0){var l=G*I.width*s+w*r,y=I.width-n,k=I.pixels.blocks[B],M,c,N;k.encoding<2?(k.encoding===0?M=k.rawData:(A(k.stuffedData,k.bitsPerPixel,k.numValidPixels,k.offset,f,S,I.pixels.maxValue),M=S),c=0):k.encoding===2?N=0:N=k.offset;var q;if(Q)for(U=0;U>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/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAE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3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BA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BBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACA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EQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmoh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CGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCf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IAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0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A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",hA=new wA;class dA extends DA{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[nA.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{dA as default,hA as zstd}; diff --git a/assets/preview-BdSPFxEd.js b/assets/preview-BTy071Hg.js similarity index 99% rename from assets/preview-BdSPFxEd.js rename to assets/preview-BTy071Hg.js index 89202713a..2a1521c9a 100644 --- a/assets/preview-BdSPFxEd.js +++ b/assets/preview-BTy071Hg.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./raw-Dt1HMqYc.js","./basedecoder-DvumDe3Y.js","./lzw-DpvbRwG5.js","./jpeg-CdeCw_eT.js","./deflate-CUkHh1nh.js","./pako.esm-CPws4d4z.js","./packbits-DQnG8s9w.js","./lerc-DZni-HPV.js","./_commonjsHelpers-BosuxZz1.js","./chunk-L4EGOTBX-BALMY2cf.js","./entry-preview-BErytJoa.js","./lit-element-Dh4_iwrW.js","./index-DrFu-skq.js","./jsx-runtime-DDll1Hf8.js","./index-BogtSeel.js","./index-DEhfps_P.js","./iframe-6fMPdiq5.js","./index-DANZ6Lwg.js","./directive-DUGPADuw.js","./main-Dh1LOCw_.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); -var ije=Object.defineProperty;var xbe=t=>{throw TypeError(t)};var sje=(t,e,n)=>e in t?ije(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var sn=(t,e,n)=>sje(t,typeof e!="symbol"?e+"":e,n),HR=(t,e,n)=>e.has(t)||xbe("Cannot "+n);var Wt=(t,e,n)=>(HR(t,e,"read from private field"),n?n.call(t):e.get(t)),gn=(t,e,n)=>e.has(t)?xbe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),bs=(t,e,n,r)=>(HR(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),yn=(t,e,n)=>(HR(t,e,"access private method"),n);import{s as oje}from"./chunk-L4EGOTBX-BALMY2cf.js";import{m as q$,p as aje,v as rg,r as aw,M as GR,f as lje}from"./entry-preview-BErytJoa.js";import{j as Eu}from"./jsx-runtime-DDll1Hf8.js";import{useMDXComponents as QSe}from"./index-BogtSeel.js";import{ap as uje,aq as cje,ar as dje,as as fje,at as hje,au as pje,av as mje}from"./index-DEhfps_P.js";import{r as ei,x as tt,E as oi,T as hb,i as H$,b as Iy}from"./lit-element-Dh4_iwrW.js";import{c as H_,n as gje,d as yje,I as GA,R as eAe,r as bje,g as vje,h as xje,j as wje,C as _je,k as Eje,m as wbe,u as _be,v as G$,w as _g,x as D5,y as Lu,z as L5,A as V$,B as Cje,D as Sje,E as Aje,F as kje,i as Tje,G as Dje,H as Lje,J as Rje,K as Fje,L as Oje,M as Mje,N as W$,O as Ije,p as Y$,P as Ebe,Q as tAe,S as X$,T as G_,U as VT,V as n0,W as $je,X as Pje,Y as Nje,Z as nAe,_ as WT,$ as YT,a0 as Bje,a1 as jje,a2 as zje,a3 as Uje,a4 as Cbe,a5 as qje,a6 as Hje,a7 as Gje,f as Vje,a8 as Wje,l as Yje,a9 as Xje,aa as Zje,ab as Kje,ac as Jje,s as rAe,ad as Qje,ae as eze,af as tze,ag as nze,q as rze,t as ize,o as iAe,ah as sze,ai as oze,aj as VA,ak as aze,al as lze,e as tE,a as XT,b as up}from"./directive-DUGPADuw.js";import{m as sAe,g as uze,C as cze,a as Ti,b as WA,s as dze,S as V_,V as Z$,d as Sbe,c as v_,T as Abe,F as R5,R as Eg,e as nE,f as fze,w as hze,h as pze,i as r0,j as YA,k as K$,l as Mp,n as dA,o as cu,p as Yb,P as xc,q as tu,r as XA,t as Ds,u as W_,v as pb,L as $d,I as oAe,x as Cg,J as mze,y as gze,z as jo,A as yze,B as F5,D as bze,M as qv,E as ZT,G as rE,H as iE,X as KT,K as Tn,N as Mn,O as Ot,Q as J$,U as ZA,W as vze,Y as xze,Z as Ip,_ as KA,$ as aAe,a0 as or,a1 as Ge,a2 as Er,a3 as $i,a4 as nu,a5 as Hv,a6 as _p,a7 as Y_,a8 as lAe,a9 as Kt,aa as JA,ab as QA,ac as je,ad as Rt,ae as JT,af as Os,ag as Ta,ah as ek,ai as uAe,aj as ig,ak as wze,al as Q$,am as cAe,an as If,ao as Pd,ap as bi,aq as _ze,ar as Eze,as as Hp,at as kbe,au as wc,av as gd,aw as Cze,ax as e6,ay as QT,az as Sze,aA as dAe,aB as Aze,aC as kze,aD as no,aE as fAe,aF as _c,aG as t6,aH as Tze,aI as Dze,aJ as O5,aK as VR,aL as Lze,aM as n6,aN as Rze,aO as WC,aP as YC,aQ as Xb,aR as r6,aS as hAe,aT as X_,aU as pAe,aV as Fze,aW as Oze,aX as Ru,aY as Fs,aZ as i6,a_ as kc,a$ as s6,b0 as mAe,b1 as Tbe,b2 as i0,b3 as Dbe,b4 as rb,b5 as Mze,b6 as M5,b7 as gAe,b8 as Ize,b9 as Lbe,ba as $ze,bb as o6,bc as Pze,bd as yAe,be as Z_,bf as Nze,bg as Bze,bh as Ri,bi as bAe,bj as tk,bk as ru,bl as Gp,bm as Gv,bn as jze,bo as yr,bp as zze,bq as Uze,br as qze,bs as vAe,bt as Vp,bu as Hze,bv as Gze,bw as Vze,bx as xAe,by as Wze,bz as nk,bA as a6,bB as rk,bC as wAe,bD as bh,bE as sE,bF as oE,bG as l6,bH as u6,bI as Zb,bJ as Yze,bK as Xze,bL as Zze,bM as eD,bN as Kze,bO as Jze,bP as Qze,bQ as WR,bR as K_,bS as tD,bT as eUe,bU as tUe,bV as Rbe,bW as Fbe,bX as Obe,bY as nUe,bZ as rUe,b_ as I5,b$ as _Ae,c0 as iUe,c1 as Vv,c2 as EAe,c3 as Mbe,c4 as ik,c5 as Ibe,c6 as O0,c7 as c6,c8 as sUe,c9 as oUe,ca as nD,cb as aUe,cc as d6,cd as CAe,ce as lUe,cf as uUe,cg as cUe,ch as dUe,ci as SAe,cj as fUe,ck as hUe,cl as pUe,cm as mUe,cn as gUe,co as AAe,cp as yUe,cq as kAe,cr as bUe,cs as J_,ct as $5,cu as vUe,cv as xUe,cw as TAe,cx as DAe,cy as wUe,cz as _Ue}from"./main-Dh1LOCw_.js";import{g as ua,c as Pr,a as LAe}from"./_commonjsHelpers-BosuxZz1.js";import{_ as dm}from"./iframe-6fMPdiq5.js";const $be={duration:750},Pbe={type:"FeatureCollection",features:[]};function EUe(t,e){let n=0,r,i=0,s=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,s+=r*(o-i));else{let o=-1;for(let a of t)(a=e(a,++o,t))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,s+=r*(a-i))}if(n>1)return s/(n-1)}function CUe(t,e){const n=EUe(t,e);return n&&Math.sqrt(n)}class rl{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const n=this._partials;let r=0;for(let i=0;i0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,s=i-(o-r),!s););n>0&&(s<0&&e[n-1]<0||s>0&&e[n-1]>0)&&(i=s*2,r=o+i,i==r-o&&(o=r))}return o}}function SUe(t,e){return Array.from(e,n=>t[n])}function AUe(t=H_){if(t===H_)return RAe;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function RAe(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function Ug(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function P5(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function FAe(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?RAe:AUe(i);r>n;){if(r-n>600){const l=r-n+1,u=e-n+1,d=Math.log(l),c=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(e-u*c/l+f)),p=Math.min(r,Math.floor(e+(l-u)*c/l+f));FAe(t,e,h,p,i)}const s=t[e];let o=n,a=r;for(lw(t,n,e),i(t[r],s)>0&&lw(t,n,r);o0;)--a}i(t[n],s)===0?lw(t,n,a):(++a,lw(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function lw(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function N5(t,e,n){if(t=Float64Array.from(gje(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return P5(t);if(e>=1)return Ug(t);var r,i=(r-1)*e,s=Math.floor(i),o=Ug(FAe(t,s).subarray(0,s+1)),a=P5(t.subarray(s+1));return o+(a-o)*(i-s)}}function OAe(t,e,n=yje){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,s=Math.floor(i),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(i-s)}}function kUe(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let s of t)(s=e(s,++i,t))!=null&&(s=+s)>=s&&(++n,r+=s)}if(n)return r/n}function MAe(t,e){return N5(t,.5,e)}function*TUe(t){for(const e of t)yield*e}function IAe(t){return Array.from(TUe(t))}function Jl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(i);++r180?d+=360:d-u>180&&(u+=360),f.push({i:c.push(i(c)+"rotate(",null,r)-2,x:_g(u,d)})):d&&c.push(i(c)+"rotate("+d+r)}function a(u,d,c,f){u!==d?f.push({i:c.push(i(c)+"skewX(",null,r)-2,x:_g(u,d)}):d&&c.push(i(c)+"skewX("+d+r)}function l(u,d,c,f,h,p){if(u!==c||d!==f){var g=h.push(i(h)+"scale(",null,",",null,")");p.push({i:g-4,x:_g(u,c)},{i:g-2,x:_g(d,f)})}else(c!==1||f!==1)&&h.push(i(h)+"scale("+c+","+f+")")}return function(u,d){var c=[],f=[];return u=t(u),d=t(d),s(u.translateX,u.translateY,d.translateX,d.translateY,c,f),o(u.rotate,d.rotate,c,f),a(u.skewX,d.skewX,c,f),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,c,f),u=d=null,function(h){for(var p=-1,g=f.length,y;++p0?n[a-1]:t[0],a(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),e(s,a),t(s);while(uwo(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(YR.setTime(+s),XR.setTime(+o),t(YR),t(XR),Math.floor(n(YR,XR))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Kb=wo(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Kb.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?wo(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Kb);Kb.range;const qf=1e3,Fu=qf*60,Hf=Fu*60,ah=Hf*24,p6=ah*7,qbe=ah*30,ZR=ah*365,Gf=wo(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*qf)},(t,e)=>(e-t)/qf,t=>t.getUTCSeconds());Gf.range;const iD=wo(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qf)},(t,e)=>{t.setTime(+t+e*Fu)},(t,e)=>(e-t)/Fu,t=>t.getMinutes());iD.range;const sD=wo(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Fu)},(t,e)=>(e-t)/Fu,t=>t.getUTCMinutes());sD.range;const oD=wo(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qf-t.getMinutes()*Fu)},(t,e)=>{t.setTime(+t+e*Hf)},(t,e)=>(e-t)/Hf,t=>t.getHours());oD.range;const aD=wo(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Hf)},(t,e)=>(e-t)/Hf,t=>t.getUTCHours());aD.range;const Jf=wo(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Fu)/ah,t=>t.getDate()-1);Jf.range;const $p=wo(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ah,t=>t.getUTCDate()-1);$p.range;const HAe=wo(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ah,t=>Math.floor(t/ah));HAe.range;function M0(t){return wo(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Fu)/p6)}const Wv=M0(0),sk=M0(1),ZUe=M0(2),KUe=M0(3),Jb=M0(4),JUe=M0(5),QUe=M0(6);Wv.range;sk.range;ZUe.range;KUe.range;Jb.range;JUe.range;QUe.range;function I0(t){return wo(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/p6)}const Yv=I0(0),ok=I0(1),eqe=I0(2),tqe=I0(3),Qb=I0(4),nqe=I0(5),rqe=I0(6);Yv.range;ok.range;eqe.range;tqe.range;Qb.range;nqe.range;rqe.range;const e2=wo(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());e2.range;const t2=wo(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());t2.range;const Nd=wo(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Nd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wo(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Nd.range;const Bd=wo(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Bd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wo(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Bd.range;function GAe(t,e,n,r,i,s){const o=[[Gf,1,qf],[Gf,5,5*qf],[Gf,15,15*qf],[Gf,30,30*qf],[s,1,Fu],[s,5,5*Fu],[s,15,15*Fu],[s,30,30*Fu],[i,1,Hf],[i,3,3*Hf],[i,6,6*Hf],[i,12,12*Hf],[r,1,ah],[r,2,2*ah],[n,1,p6],[e,1,qbe],[e,3,3*qbe],[t,1,ZR]];function a(u,d,c){const f=dy).right(o,f);if(h===o.length)return t.every(n0(u/ZR,d/ZR,c));if(h===0)return Kb.every(Math.max(n0(u,d,c),1));const[p,g]=o[f/o[h-1][2]53)return null;"w"in Pe||(Pe.w=1),"Z"in Pe?(gt=JR(uw(Pe.y,0,1)),ln=gt.getUTCDay(),gt=ln>4||ln===0?ok.ceil(gt):ok(gt),gt=$p.offset(gt,(Pe.V-1)*7),Pe.y=gt.getUTCFullYear(),Pe.m=gt.getUTCMonth(),Pe.d=gt.getUTCDate()+(Pe.w+6)%7):(gt=KR(uw(Pe.y,0,1)),ln=gt.getDay(),gt=ln>4||ln===0?sk.ceil(gt):sk(gt),gt=Jf.offset(gt,(Pe.V-1)*7),Pe.y=gt.getFullYear(),Pe.m=gt.getMonth(),Pe.d=gt.getDate()+(Pe.w+6)%7)}else("W"in Pe||"U"in Pe)&&("w"in Pe||(Pe.w="u"in Pe?Pe.u%7:"W"in Pe?1:0),ln="Z"in Pe?JR(uw(Pe.y,0,1)).getUTCDay():KR(uw(Pe.y,0,1)).getDay(),Pe.m=0,Pe.d="W"in Pe?(Pe.w+6)%7+Pe.W*7-(ln+5)%7:Pe.w+Pe.U*7-(ln+6)%7);return"Z"in Pe?(Pe.H+=Pe.Z/100|0,Pe.M+=Pe.Z%100,JR(Pe)):KR(Pe)}}function k(_e,Be,qe,Pe){for(var Dt=0,gt=Be.length,ln=qe.length,en,Vn;Dt=ln)return-1;if(en=Be.charCodeAt(Dt++),en===37){if(en=Be.charAt(Dt++),Vn=A[en in Hbe?Be.charAt(Dt++):en],!Vn||(Pe=Vn(_e,qe,Pe))<0)return-1}else if(en!=qe.charCodeAt(Pe++))return-1}return Pe}function R(_e,Be,qe){var Pe=u.exec(Be.slice(qe));return Pe?(_e.p=d.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function O(_e,Be,qe){var Pe=h.exec(Be.slice(qe));return Pe?(_e.w=p.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function N(_e,Be,qe){var Pe=c.exec(Be.slice(qe));return Pe?(_e.w=f.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function K(_e,Be,qe){var Pe=v.exec(Be.slice(qe));return Pe?(_e.m=x.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function L(_e,Be,qe){var Pe=g.exec(Be.slice(qe));return Pe?(_e.m=y.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function I(_e,Be,qe){return k(_e,e,Be,qe)}function $(_e,Be,qe){return k(_e,n,Be,qe)}function z(_e,Be,qe){return k(_e,r,Be,qe)}function U(_e){return o[_e.getDay()]}function X(_e){return s[_e.getDay()]}function Y(_e){return l[_e.getMonth()]}function J(_e){return a[_e.getMonth()]}function ae(_e){return i[+(_e.getHours()>=12)]}function Q(_e){return 1+~~(_e.getMonth()/3)}function B(_e){return o[_e.getUTCDay()]}function pe(_e){return s[_e.getUTCDay()]}function he(_e){return l[_e.getUTCMonth()]}function ze(_e){return a[_e.getUTCMonth()]}function it(_e){return i[+(_e.getUTCHours()>=12)]}function Je(_e){return 1+~~(_e.getUTCMonth()/3)}return{format:function(_e){var Be=D(_e+="",w);return Be.toString=function(){return _e},Be},parse:function(_e){var Be=T(_e+="",!1);return Be.toString=function(){return _e},Be},utcFormat:function(_e){var Be=D(_e+="",C);return Be.toString=function(){return _e},Be},utcParse:function(_e){var Be=T(_e+="",!0);return Be.toString=function(){return _e},Be}}}var Hbe={"-":"",_:" ",0:"0"},Uo=/^\s*\d+/,lqe=/^%/,uqe=/[\\^$*+?|[\]().{}]/g;function di(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function dqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function fqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function hqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function pqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function mqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Gbe(t,e,n){var r=Uo.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Vbe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gqe(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function yqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function bqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wbe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function vqe(t,e,n){var r=Uo.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ybe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function xqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function wqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function _qe(t,e,n){var r=Uo.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Eqe(t,e,n){var r=Uo.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cqe(t,e,n){var r=lqe.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Sqe(t,e,n){var r=Uo.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Aqe(t,e,n){var r=Uo.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xbe(t,e){return di(t.getDate(),e,2)}function kqe(t,e){return di(t.getHours(),e,2)}function Tqe(t,e){return di(t.getHours()%12||12,e,2)}function Dqe(t,e){return di(1+Jf.count(Nd(t),t),e,3)}function WAe(t,e){return di(t.getMilliseconds(),e,3)}function Lqe(t,e){return WAe(t,e)+"000"}function Rqe(t,e){return di(t.getMonth()+1,e,2)}function Fqe(t,e){return di(t.getMinutes(),e,2)}function Oqe(t,e){return di(t.getSeconds(),e,2)}function Mqe(t){var e=t.getDay();return e===0?7:e}function Iqe(t,e){return di(Wv.count(Nd(t)-1,t),e,2)}function YAe(t){var e=t.getDay();return e>=4||e===0?Jb(t):Jb.ceil(t)}function $qe(t,e){return t=YAe(t),di(Jb.count(Nd(t),t)+(Nd(t).getDay()===4),e,2)}function Pqe(t){return t.getDay()}function Nqe(t,e){return di(sk.count(Nd(t)-1,t),e,2)}function Bqe(t,e){return di(t.getFullYear()%100,e,2)}function jqe(t,e){return t=YAe(t),di(t.getFullYear()%100,e,2)}function zqe(t,e){return di(t.getFullYear()%1e4,e,4)}function Uqe(t,e){var n=t.getDay();return t=n>=4||n===0?Jb(t):Jb.ceil(t),di(t.getFullYear()%1e4,e,4)}function qqe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+di(e/60|0,"0",2)+di(e%60,"0",2)}function Zbe(t,e){return di(t.getUTCDate(),e,2)}function Hqe(t,e){return di(t.getUTCHours(),e,2)}function Gqe(t,e){return di(t.getUTCHours()%12||12,e,2)}function Vqe(t,e){return di(1+$p.count(Bd(t),t),e,3)}function XAe(t,e){return di(t.getUTCMilliseconds(),e,3)}function Wqe(t,e){return XAe(t,e)+"000"}function Yqe(t,e){return di(t.getUTCMonth()+1,e,2)}function Xqe(t,e){return di(t.getUTCMinutes(),e,2)}function Zqe(t,e){return di(t.getUTCSeconds(),e,2)}function Kqe(t){var e=t.getUTCDay();return e===0?7:e}function Jqe(t,e){return di(Yv.count(Bd(t)-1,t),e,2)}function ZAe(t){var e=t.getUTCDay();return e>=4||e===0?Qb(t):Qb.ceil(t)}function Qqe(t,e){return t=ZAe(t),di(Qb.count(Bd(t),t)+(Bd(t).getUTCDay()===4),e,2)}function eHe(t){return t.getUTCDay()}function tHe(t,e){return di(ok.count(Bd(t)-1,t),e,2)}function nHe(t,e){return di(t.getUTCFullYear()%100,e,2)}function rHe(t,e){return t=ZAe(t),di(t.getUTCFullYear()%100,e,2)}function iHe(t,e){return di(t.getUTCFullYear()%1e4,e,4)}function sHe(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Qb(t):Qb.ceil(t),di(t.getUTCFullYear()%1e4,e,4)}function oHe(){return"+0000"}function Kbe(){return"%"}function Jbe(t){return+t}function Qbe(t){return Math.floor(+t/1e3)}var $y,m6,KAe,g6,JAe;aHe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function aHe(t){return $y=VAe(t),m6=$y.format,KAe=$y.parse,g6=$y.utcFormat,JAe=$y.utcParse,$y}function lHe(t){return new Date(t)}function uHe(t){return t instanceof Date?+t:+new Date(+t)}function y6(t,e,n,r,i,s,o,a,l,u){var d=$je(),c=d.invert,f=d.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),x=u("%b %d"),w=u("%B"),C=u("%Y");function A(D){return(l(D)0&&d.length>0;)g=d.pop(),i=l.pop(),o=u.pop(),x=g.toString(),x in c||(r.push(o[0],o[1]),c[x]=!0),y=d.pop(),s=l.pop(),a=u.pop(),v=(g+y)/2,h=t(v),p=e(h),dze(p[0],p[1],o[0],o[1],a[0],a[1]){const i=r.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(i),this.lonLabelStyleBase_},this.latLabelStyleBase_=new v_({text:e.latLabelStyle!==void 0?e.latLabelStyle.clone():new Abe({font:"12px Calibri,sans-serif",textAlign:"right",fill:new R5({color:"rgba(0,0,0,1)"}),stroke:new V_({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=r=>{const i=r.get("graticule_label");return this.latLabelStyleBase_.getText().setText(i),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(Eg.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=e.intervals!==void 0?e.intervals:yHe,this.setSource(new nE({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new fze,overlaps:!1,useSpatialIndex:!1,wrapX:e.wrapX})),this.featurePool_=[],this.lineStyle_=new v_({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(e,n){let r=e.slice();return this.projection_&&this.getSource().getWrapX()&&hze(r,this.projection_),this.loadedExtent_&&(pze(this.loadedExtent_,r,n)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]}loaderFunction(e,n,r){this.loadedExtent_=e;const i=this.getSource(),s=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=r0(s,e);if(this.renderedExtent_&&YA(this.renderedExtent_,o)&&this.renderedResolution_===n||(this.renderedExtent_=o,this.renderedResolution_=n,K$(o)))return;const a=Mp(o),l=n*n/4;(!this.projection_||!dA(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(o,a,n,l);let d=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(d+=this.meridians_.length),this.parallelsLabels_&&(d+=this.parallels_.length);let c;for(;d>this.featurePool_.length;)c=new cu,this.featurePool_.push(c);const f=i.getFeaturesCollection();f.clear();let h=0,p,g;for(p=0,g=this.meridians_.length;pMath.PI/2;d=d!==p}const h=hHe(e);for(let p=l;p<=u;++p){let g=this.meridians_.length+this.parallels_.length,y,v,x,w;if(this.meridiansLabels_)for(v=0,x=this.meridiansLabels_.length;v=l?(e[0]=a[0],e[2]=a[2]):o=!0);const u=[Ds(n[0],this.minX_,this.maxX_),Ds(n[1],this.minY_,this.maxY_)],d=this.toLonLatTransform_(u);isNaN(d[1])&&(d[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=Ds(d[0],this.minLon_,this.maxLon_),f=Ds(d[1],this.minLat_,this.maxLat_);const h=this.maxLines_;let p,g,y,v,x=e;o||(x=[Ds(e[0],this.minX_,this.maxX_),Ds(e[1],this.minY_,this.maxY_),Ds(e[2],this.minX_,this.maxX_),Ds(e[3],this.minY_,this.maxY_)]);const w=W_(x,this.toLonLatTransform_,void 0,8);let C=w[3],A=w[2],D=w[1],T=w[0];if(o||(pb(x,this.bottomLeft_)&&(T=this.minLon_,D=this.minLat_),pb(x,this.bottomRight_)&&(A=this.maxLon_,D=this.minLat_),pb(x,this.topLeft_)&&(T=this.minLon_,C=this.maxLat_),pb(x,this.topRight_)&&(A=this.maxLon_,C=this.maxLat_),C=Ds(C,f,this.maxLat_),A=Ds(A,c,this.maxLon_),D=Ds(D,this.minLat_,f),T=Ds(T,this.minLon_,c)),c=Math.floor(c/s)*s,v=Ds(c,this.minLon_,this.maxLon_),g=this.addMeridian_(v,D,C,i,e,0),p=0,o)for(;(v-=s)>=T&&p++i[o]&&(s=o,o=1);const a=Math.max(n[1],i[s]),l=Math.min(n[3],i[o]),u=Ds(n[1]+Math.abs(n[1]-n[3])*this.lonLabelPosition_,a,l),c=[i[s-1]+(i[o-1]-i[s-1])*(u-i[s])/(i[o]-i[s]),u],f=this.meridiansLabels_[r].geom;return f.setCoordinates(c),f}getMeridians(){return this.meridians_}getParallel_(e,n,r,i,s){const o=mHe(e,n,r,this.projection_,i);let a=this.parallels_[s];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new $d(o,"XY"),a}getParallelPoint_(e,n,r){const i=e.getFlatCoordinates();let s=0,o=i.length-2;i[s]>i[o]&&(s=o,o=0);const a=Math.max(n[0],i[s]),l=Math.min(n[2],i[o]),u=Ds(n[0]+Math.abs(n[0]-n[2])*this.latLabelPosition_,a,l),d=i[s+1]+(i[o+1]-i[s+1])*(u-i[s])/(i[o]-i[s]),c=[u,d],f=this.parallelsLabels_[r].geom;return f.setCoordinates(c),f}getParallels(){return this.parallels_}updateProjectionInfo_(e){const n=Ti("EPSG:4326"),r=e.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];const i=WA(e,n);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=e}};class v6 extends oAe{constructor(e,n,r,i,s){const o=s!==void 0?Cg.IDLE:Cg.LOADED;super(e,n,r,o),this.loader_=s!==void 0?s:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(e){e?(this.error_=e,this.state=Cg.ERROR):this.state=Cg.LOADED,this.changed()}load(){this.state==Cg.IDLE&&(this.state=Cg.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const vHe={Point:EHe,LineString:CHe,Polygon:THe,MultiPoint:AHe,MultiLineString:SHe,MultiPolygon:kHe},xHe={Point:DHe,LineString:LHe,Polygon:RHe,MultiPoint:OHe,MultiLineString:FHe,MultiPolygon:MHe};class wHe extends mze{constructor(e){e=e||{},super(),this.geometryName_=e.geometryName}readFeatureFromObject(e,n,r){const i=e,s=eve(i.geometry,n),o=new cu;if(this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(s),i.attributes){o.setProperties(i.attributes,!0);const a=i.attributes[r];a!==void 0&&o.setId(a)}return o}readFeaturesFromObject(e,n){if(n=n||{},e.features){const r=e,i=[],s=r.features;for(let o=0,a=s.length;o=0;s--){const u=r[s][0];if(XA(new F5(u).getExtent(),new F5(a).getExtent())){r[s].push(a),l=!0;break}}l||r.push([a.reverse()])}return r}function EHe(t){let e;return t.m!==void 0&&t.z!==void 0?e=new xc([t.x,t.y,t.z,t.m],"XYZM"):t.z!==void 0?e=new xc([t.x,t.y,t.z],"XYZ"):t.m!==void 0?e=new xc([t.x,t.y,t.m],"XYM"):e=new xc([t.x,t.y]),e}function CHe(t){const e=Xv(t);return new $d(t.paths[0],e)}function SHe(t){const e=Xv(t);return new qv(t.paths,e)}function Xv(t){let e="XY";return t.hasZ===!0&&t.hasM===!0?e="XYZM":t.hasZ===!0?e="XYZ":t.hasM===!0&&(e="XYM"),e}function AHe(t){const e=Xv(t);return new ZT(t.points,e)}function kHe(t){const e=Xv(t);return new rE(t.rings,e)}function THe(t){const e=Xv(t);return new iE(t.rings,e)}function DHe(t,e){const n=t.getCoordinates();let r;const i=t.getLayout();if(i==="XYZ")r={x:n[0],y:n[1],z:n[2]};else if(i==="XYM")r={x:n[0],y:n[1],m:n[2]};else if(i==="XYZM")r={x:n[0],y:n[1],z:n[2],m:n[3]};else if(i==="XY")r={x:n[0],y:n[1]};else throw new Error("Invalid geometry layout");return r}function aE(t){const e=t.getLayout();return{hasZ:e==="XYZ"||e==="XYZM",hasM:e==="XYM"||e==="XYZM"}}function LHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:[t.getCoordinates()]}}function RHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,rings:t.getCoordinates(!1)}}function FHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:t.getCoordinates()}}function OHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,points:t.getCoordinates()}}function MHe(t,e){const n=aE(t),r=t.getCoordinates(!1),i=[];for(let s=0;s=0;o--)i.push(r[s][o]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}function tve(t,e){const n=xHe[t.getType()];return n(jo(t,!0,e),e)}const Qf="http://www.opengis.net/gml",IHe=/^\s*$/;class cn extends KT{constructor(e){super(),e=e||{},this.featureType=e.featureType,this.featureNS=e.featureNS,this.srsName=e.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:Tn(this.readFeaturesInternal),featureMembers:Mn(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(e,n){const r=e.localName;let i=null;if(r=="FeatureCollection")i=Ot([],this.FEATURE_COLLECTION_PARSERS,e,n,this);else if(r=="featureMembers"||r=="featureMember"||r=="member"){const s=n[0];let o=s.featureType,a=s.featureNS;const l="p",u="p0";if(!o&&e.childNodes){o=[],a={};for(let f=0,h=e.childNodes.length;f0&&!(u instanceof vze)){u={_content_:u};for(let f=0;f1,r=n&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=n&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],s=n&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:t.imageInfo.sizes===void 0?void 0:t.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:t.imageInfo.tiles===void 0?void 0:[t.imageInfo.tiles.map(function(o){return o.width})[0],t.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:t.imageInfo.tiles===void 0?void 0:t.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:[...e.supports,...r],formats:[...e.formats,...i],qualities:[...e.qualities,...s]}}function IGe(t){const e=t.getComplianceLevelSupportedFeatures(),n=t.imageInfo.extraFormats===void 0?e.formats:[...e.formats,...t.imageInfo.extraFormats],r=t.imageInfo.preferredFormats!==void 0&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter(function(i){return["jpg","png","gif"].includes(i)}).reduce(function(i,s){return i===void 0&&n.includes(s)?s:i},void 0):void 0;return{url:t.imageInfo.id,sizes:t.imageInfo.sizes===void 0?void 0:t.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:t.imageInfo.tiles===void 0?void 0:[t.imageInfo.tiles.map(function(i){return i.width})[0],t.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:t.imageInfo.tiles===void 0?void 0:t.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:t.imageInfo.extraFeatures===void 0?e.supports:[...e.supports,...t.imageInfo.extraFeatures],formats:n,qualities:t.imageInfo.extraQualities===void 0?e.qualities:[...e.qualities,...t.imageInfo.extraQualities],preferredFormat:r}}const cD={};cD[Qs.VERSION1]=OGe;cD[Qs.VERSION2]=MGe;cD[Qs.VERSION3]=IGe;class $Ge{constructor(e){this.setImageInfo(e)}setImageInfo(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e}getImageApiVersion(){if(this.imageInfo===void 0)return;let e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(let n=0;n0&&typeof this.imageInfo.profile[0]=="string"&&nve.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}}getComplianceLevelFromProfile(e){const n=this.getComplianceLevelEntryFromProfile(e);if(n===void 0)return;const r=n.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}getComplianceLevelSupportedFeatures(){if(this.imageInfo===void 0)return;const e=this.getImageApiVersion(),n=this.getComplianceLevelFromProfile(e);return n===void 0?s0.none.none:s0[e][n]}getTileSourceOptions(e){const n=e||{},r=this.getImageApiVersion();if(r===void 0)return;const i=r===void 0?void 0:cD[r](this);if(i!==void 0)return{url:i.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:n.format!==void 0&&i.formats.includes(n.format)?n.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:n.quality&&i.qualities.includes(n.quality)?n.quality:i.qualities.includes("native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(s,o){return o-s}):void 0,tileSize:i.tileSize}}}class A6{read(e){if(!e)return null;if(typeof e=="string"){const n=JA(e);return this.readFromDocument(n)}return QA(e)?this.readFromDocument(e):this.readFromNode(e)}readFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFromNode(n);return null}readFromNode(e){If()}}const PGe="http://www.w3.org/1999/xlink";function Zv(t){return t.getAttributeNS(PGe,"href")}const jl=[null,"http://www.opengis.net/ows/1.1"],NGe=Kt(jl,{ServiceIdentification:je(lVe),ServiceProvider:je(cVe),OperationsMetadata:je(oVe)});class oke extends A6{constructor(){super()}readFromNode(e){const n=Ot({},NGe,e,[]);return n||null}}const BGe=Kt(jl,{DeliveryPoint:je(Rt),City:je(Rt),AdministrativeArea:je(Rt),PostalCode:je(Rt),Country:je(Rt),ElectronicMailAddress:je(Rt)}),jGe=Kt(jl,{Value:bi(dVe)}),zGe=Kt(jl,{AllowedValues:je(QGe)}),UGe=Kt(jl,{Phone:je(aVe),Address:je(JGe)}),qGe=Kt(jl,{HTTP:je(iVe)}),HGe=Kt(jl,{Get:bi(rVe),Post:void 0}),GGe=Kt(jl,{DCP:je(nVe)}),VGe=Kt(jl,{Operation:sVe}),WGe=Kt(jl,{Voice:je(Rt),Facsimile:je(Rt)}),YGe=Kt(jl,{Constraint:bi(eVe)}),XGe=Kt(jl,{IndividualName:je(Rt),PositionName:je(Rt),ContactInfo:je(tVe)}),ZGe=Kt(jl,{Abstract:je(Rt),AccessConstraints:je(Rt),Fees:je(Rt),Title:je(Rt),ServiceTypeVersion:je(Rt),ServiceType:je(Rt)}),KGe=Kt(jl,{ProviderName:je(Rt),ProviderSite:je(Zv),ServiceContact:je(uVe)});function JGe(t,e){return Ot({},BGe,t,e)}function QGe(t,e){return Ot({},jGe,t,e)}function eVe(t,e){const n=t.getAttribute("name");if(n)return Ot({name:n},zGe,t,e)}function tVe(t,e){return Ot({},UGe,t,e)}function nVe(t,e){return Ot({},qGe,t,e)}function rVe(t,e){const n=Zv(t);if(n)return Ot({href:n},YGe,t,e)}function iVe(t,e){return Ot({},HGe,t,e)}function sVe(t,e){const n=t.getAttribute("name"),r=Ot({},GGe,t,e);if(!r)return;const i=e[e.length-1];i[n]=r}function oVe(t,e){return Ot({},VGe,t,e)}function aVe(t,e){return Ot({},WGe,t,e)}function lVe(t,e){return Ot({},ZGe,t,e)}function uVe(t,e){return Ot({},XGe,t,e)}function cVe(t,e){return Ot({},KGe,t,e)}function dVe(t,e){return Rt(t)}function rve(t,e,n,r,i,s){i!==void 0?(i=i,s=s!==void 0?s:0):(i=[],s=0);let o=e;for(;o>1):i>>1}return e}function vVe(t){let e="";for(let n=0,r=t.length;n=32;)e=(32|t&31)+63,n+=String.fromCharCode(e),t>>=5;return e=t+63,n+=String.fromCharCode(e),n}class Qr extends xt{constructor(e){e=e||{},super(e),this.schemaLocation=e.schemaLocation?e.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}writeGeometryElement(e,n,r){const i=r[r.length-1];r[r.length-1]=Object.assign({multiCurve:!0,multiSurface:!0},i),super.writeGeometryElement(e,n,r)}}Qr.prototype.namespace="http://www.opengis.net/gml/3.2";Qr.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:Mn(xt.prototype.readFlatPos),posList:Mn(xt.prototype.readFlatPosList),coordinates:Mn(br.prototype.readFlatCoordinates)}};Qr.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:xt.prototype.interiorParser,exterior:xt.prototype.exteriorParser}};Qr.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Mn(cn.prototype.readPoint),MultiPoint:Mn(cn.prototype.readMultiPoint),LineString:Mn(cn.prototype.readLineString),MultiLineString:Mn(cn.prototype.readMultiLineString),LinearRing:Mn(cn.prototype.readLinearRing),Polygon:Mn(cn.prototype.readPolygon),MultiPolygon:Mn(cn.prototype.readMultiPolygon),Surface:Mn(Qr.prototype.readSurface),MultiSurface:Mn(xt.prototype.readMultiSurface),Curve:Mn(Qr.prototype.readCurve),MultiCurve:Mn(xt.prototype.readMultiCurve),Envelope:Mn(Qr.prototype.readEnvelope)}};Qr.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:Tn(xt.prototype.curveMemberParser),curveMembers:Tn(xt.prototype.curveMemberParser)}};Qr.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Tn(xt.prototype.surfaceMemberParser),surfaceMembers:Tn(xt.prototype.surfaceMemberParser)}};Qr.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Tn(cn.prototype.readLineString),Curve:Tn(xt.prototype.readCurve)}};Qr.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Tn(cn.prototype.readPolygon),Surface:Tn(xt.prototype.readSurface)}};Qr.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:Mn(xt.prototype.readPatch)}};Qr.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:Mn(xt.prototype.readSegment)}};Qr.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Tn(xt.prototype.readFlatPosList),upperCorner:Tn(xt.prototype.readFlatPosList)}};Qr.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:Mn(xt.prototype.readPolygonPatch)}};Qr.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:lAe(xt.prototype.readLineStringSegment)}};Qr.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:Tn(cn.prototype.pointMemberParser),pointMembers:Tn(cn.prototype.pointMemberParser)}};Qr.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Tn(cn.prototype.lineStringMemberParser),lineStringMembers:Tn(cn.prototype.lineStringMemberParser)}};Qr.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:Tn(cn.prototype.polygonMemberParser),polygonMembers:Tn(cn.prototype.polygonMemberParser)}};Qr.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Tn(cn.prototype.readFlatCoordinatesFromNode)}};Qr.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Tn(cn.prototype.readLineString)}};Qr.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Tn(cn.prototype.readPolygon)}};Qr.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:Mn(cn.prototype.readFlatLinearRing),Ring:Mn(Qr.prototype.readFlatCurveRing)}};Qr.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:Ge(xt.prototype.writeRing),interior:Ge(xt.prototype.writeRing)}};Qr.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Ge(Er),upperCorner:Ge(Er)}};Qr.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Ge(xt.prototype.writeSurfaceOrPolygonMember),polygonMember:Ge(xt.prototype.writeSurfaceOrPolygonMember)}};Qr.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:Ge(xt.prototype.writePointMember)}};Qr.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Ge(xt.prototype.writeLineStringOrCurveMember),curveMember:Ge(xt.prototype.writeLineStringOrCurveMember)}};Qr.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:Ge(xt.prototype.writeCurveOrLineString),MultiCurve:Ge(xt.prototype.writeMultiCurveOrLineString),Point:Ge(Qr.prototype.writePoint),MultiPoint:Ge(xt.prototype.writeMultiPoint),LineString:Ge(xt.prototype.writeCurveOrLineString),MultiLineString:Ge(xt.prototype.writeMultiCurveOrLineString),LinearRing:Ge(xt.prototype.writeLinearRing),Polygon:Ge(xt.prototype.writeSurfaceOrPolygon),MultiPolygon:Ge(xt.prototype.writeMultiSurfaceOrPolygon),Surface:Ge(xt.prototype.writeSurfaceOrPolygon),MultiSurface:Ge(xt.prototype.writeMultiSurfaceOrPolygon),Envelope:Ge(xt.prototype.writeEnvelope)}};let ake=class{constructor(e){this.tagName_=e}getTagName(){return this.tagName_}};class _Ve extends ake{constructor(e,n){super(e),this.conditions=n,Pd(this.conditions.length>=2,"At least 2 conditions are required")}}let EVe=class extends _Ve{constructor(e){super("And",Array.prototype.slice.call(arguments))}};class CVe extends ake{constructor(e,n,r){if(super("BBOX"),this.geometryName=e,this.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=r}}function SVe(t){const e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(EVe,e))}function AVe(t,e,n){return new CVe(t,e,n)}const ive={"http://www.opengis.net/gml":{boundedBy:je(cn.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:Tn(cn.prototype.readFeaturesInternal)}},kVe={"http://www.opengis.net/wfs":{totalInserted:je(Os),totalUpdated:je(Os),totalDeleted:je(Os)},"http://www.opengis.net/wfs/2.0":{totalInserted:je(Os),totalUpdated:je(Os),totalDeleted:je(Os)}},TVe={"http://www.opengis.net/wfs":{TransactionSummary:je(ove,"transactionSummary"),InsertResults:je(lve,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:je(ove,"transactionSummary"),InsertResults:je(lve,"insertIds")}},DVe={"http://www.opengis.net/wfs":{PropertyName:Ge(Er)},"http://www.opengis.net/wfs/2.0":{PropertyName:Ge(Er)}},lke={"http://www.opengis.net/wfs":{Insert:Ge(uve),Update:Ge(dve),Delete:Ge(cve),Property:Ge(fve),Native:Ge(hve)},"http://www.opengis.net/wfs/2.0":{Insert:Ge(uve),Update:Ge(dve),Delete:Ge(cve),Property:Ge(fve),Native:Ge(hve)}},uke="feature",k6="http://www.w3.org/2000/xmlns/",T6={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},z5={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},D6={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},sve={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},L6={"2.0.0":Qr,"1.1.0":xt,"1.0.0":br},LVe="1.1.0";class RVe extends KT{constructor(e){super(),e=e||{},this.version_=e.version?e.version:LVe,this.featureType_=e.featureType,this.featureNS_=e.featureNS,this.gmlFormat_=e.gmlFormat?e.gmlFormat:new L6[this.version_],this.schemaLocation_=e.schemaLocation?e.schemaLocation:sve[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(e){this.featureType_=e}readFeaturesFromNode(e,n){const r={node:e};Object.assign(r,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(r,this.getReadOptions(e,n||{}));const i=[r];let s;this.version_==="2.0.0"?s=ive:s=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=Ot([],s,e,i,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(e){if(e){if(typeof e=="string"){const n=JA(e);return this.readTransactionResponseFromDocument(n)}return QA(e)?this.readTransactionResponseFromDocument(e):this.readTransactionResponseFromNode(e)}}readFeatureCollectionMetadata(e){if(e){if(typeof e=="string"){const n=JA(e);return this.readFeatureCollectionMetadataFromDocument(n)}return QA(e)?this.readFeatureCollectionMetadataFromDocument(e):this.readFeatureCollectionMetadataFromNode(e)}}readFeatureCollectionMetadataFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)}readFeatureCollectionMetadataFromNode(e){const n={},r=_p(e.getAttribute("numberOfFeatures"));return n.numberOfFeatures=r,Ot(n,ive,e,[],this.gmlFormat_)}readTransactionResponseFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)}readTransactionResponseFromNode(e){return Ot({},TVe,e,[])}writeGetFeature(e){const n=or(z5[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),e.handle&&n.setAttribute("handle",e.handle),e.outputFormat&&n.setAttribute("outputFormat",e.outputFormat),e.maxFeatures!==void 0&&n.setAttribute("maxFeatures",String(e.maxFeatures)),e.resultType&&n.setAttribute("resultType",e.resultType),e.startIndex!==void 0&&n.setAttribute("startIndex",String(e.startIndex)),e.count!==void 0&&n.setAttribute("count",String(e.count)),e.viewParams!==void 0&&n.setAttribute("viewParams",e.viewParams),n.setAttributeNS(Y_,"xsi:schemaLocation",this.schemaLocation_);const r={node:n};if(Object.assign(r,{version:this.version_,srsName:e.srsName,featureNS:e.featureNS?e.featureNS:this.featureNS_,featurePrefix:e.featurePrefix,propertyNames:e.propertyNames?e.propertyNames:[]}),Pd(Array.isArray(e.featureTypes),"`options.featureTypes` must be an Array"),typeof e.featureTypes[0]=="string"){let i=e.filter;e.bbox&&(Pd(e.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),i=this.combineBboxAndFilter(e.geometryName,e.bbox,e.srsName,i)),Object.assign(r,{geometryName:e.geometryName,filter:i}),Eve(n,e.featureTypes,[r])}else e.featureTypes.forEach(i=>{const s=this.combineBboxAndFilter(i.geometryName,i.bbox,e.srsName,e.filter);Object.assign(r,{geometryName:i.geometryName,filter:s}),Eve(n,[i.name],[r])});return n}combineBboxAndFilter(e,n,r,i){const s=AVe(e,n,r);return i?SVe(i,s):s}writeTransaction(e,n,r,i){const s=[],o=i.version?i.version:this.version_,a=or(z5[o],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",o);let l;i&&(l=i.gmlOptions?i.gmlOptions:{},i.handle&&a.setAttribute("handle",i.handle)),a.setAttributeNS(Y_,"xsi:schemaLocation",sve[o]);const u=FVe(a,l,o,i);return e&&KC("Insert",e,s,u),n&&KC("Update",n,s,u),r&&KC("Delete",r,s,u),i.nativeElements&&KC("Native",i.nativeElements,s,u),a}readProjectionFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null}readProjectionFromNode(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild){e=e.firstElementChild.firstElementChild;for(let n=e.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){const r=[{}];return this.gmlFormat_.readGeometryElement(n,r),Ti(r.pop().srsName)}}return null}}function FVe(t,e,n,r){const i=r.featurePrefix?r.featurePrefix:uke;let s;return n==="1.0.0"?s=2:n==="1.1.0"?s=3:n==="2.0.0"&&(s=3.2),Object.assign({node:t},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:s,hasZ:r.hasZ,srsName:r.srsName},e)}function KC(t,e,n,r){$i(r,lke,nu(t),e,n)}function ove(t,e){return Ot({},kVe,t,e)}const OVe={"http://www.opengis.net/ogc":{FeatureId:Tn(function(t,e){return t.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:Tn(function(t,e){return t.getAttribute("fid")})}};function ave(t,e){Ip(OVe,t,e)}const MVe={"http://www.opengis.net/wfs":{Feature:ave},"http://www.opengis.net/wfs/2.0":{Feature:ave}};function lve(t,e){return Ot([],MVe,t,e)}function uve(t,e,n){const r=n[n.length-1],i=r.featureType,s=r.featureNS,o=r.gmlVersion,a=or(s,i);t.appendChild(a),o===2?br.prototype.writeFeatureElement(a,e,n):o===3?xt.prototype.writeFeatureElement(a,e,n):Qr.prototype.writeFeatureElement(a,e,n)}function cke(t,e,n){const i=n[n.length-1].version,s=T6[i],o=or(s,"Filter"),a=or(s,"FeatureId");o.appendChild(a),a.setAttribute("fid",e),t.appendChild(o)}function R6(t,e){t=t||uke;const n=t+":";return e.startsWith(n)?e:n+e}function cve(t,e,n){const r=n[n.length-1];Pd(e.getId()!==void 0,"Features must have an id set");const i=r.featureType,s=r.featurePrefix,o=r.featureNS,a=R6(s,i);t.setAttribute("typeName",a),t.setAttributeNS(k6,"xmlns:"+s,o);const l=e.getId();l!==void 0&&cke(t,l,n)}function dve(t,e,n){const r=n[n.length-1];Pd(e.getId()!==void 0,"Features must have an id set");const i=r.version,s=r.featureType,o=r.featurePrefix,a=r.featureNS,l=R6(o,s),u=e.getGeometryName();t.setAttribute("typeName",l),t.setAttributeNS(k6,"xmlns:"+o,a);const d=e.getId();if(d!==void 0){const c=e.getKeys(),f=[];for(let h=0,p=c.length;h0,i=this.readUint32(r),s=Math.floor((i&268435455)/1e3),o=!!(i&2147483648)||s===1||s===3,a=!!(i&1073741824)||s===2||s===3,l=!!(i&536870912),u=(i&268435455)%1e3,d=["XY",o?"Z":"",a?"M":""].join(""),c=l?this.readUint32(r):null;if(e!==void 0&&e!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==r)throw new Error("Inconsistent endian");if(this.layout_!==d)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=r,this.hasZ_=o,this.hasM_=a,this.layout_=d,this.srid_=c,this.initialized_=!0;return u}readWkbPayload(e){switch(e){case Si.POINT:return this.readPoint();case Si.LINE_STRING:return this.readLineString();case Si.POLYGON:case Si.TRIANGLE:return this.readPolygon();case Si.MULTI_POINT:return this.readMultiPoint();case Si.MULTI_LINE_STRING:return this.readMultiLineString();case Si.MULTI_POLYGON:case Si.POLYHEDRAL_SURFACE:case Si.TIN:return this.readMultiPolygon();case Si.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}}readWkbBlock(e){return this.readWkbPayload(this.readWkbHeader(e))}readWkbCollection(e,n){const r=this.readUint32(),i=[];for(let s=0;s({[i]:e[s]})));for(const i of this.layout_)this.writeDouble(i in r?r[i]:this.nodata_[i])}writeLineString(e,n){this.writeUint32(e.length);for(let r=0;ri===s?i:i==="XYZM"?s:s==="XYZM"?i:"XY";if(e instanceof kbe)return r(e.getLayout(),n);if(e instanceof Hp){const i=e.getGeometriesArray();for(let s=0;ss+o[0],0),n=new ArrayBuffer(e),r=new DataView(n);let i=0;return this.writeQueue_.forEach(s=>{switch(s[0]){case 1:r.setUint8(i,s[1]);break;case 4:r.setUint32(i,s[1],this.isLittleEndian_);break;case 8:r.setFloat64(i,s[1],this.isLittleEndian_);break}i+=s[0]}),n}}class NVe extends cAe{constructor(e){super(),e=e||{},this.splitCollection=!!e.splitCollection,this.viewCache_=null,this.hex_=e.hex!==!1,this.littleEndian_=e.littleEndian!==!1,this.ewkb_=e.ewkb!==!1,this.layout_=e.geometryLayout,this.nodataZ_=e.nodataZ||0,this.nodataM_=e.nodataM||0,this.srid_=e.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(e,n){return new cu({geometry:this.readGeometry(e,n)})}readFeatures(e,n){let r=[];const i=this.readGeometry(e,n);return this.splitCollection&&i instanceof Hp?r=i.getGeometriesArray():r=[i],r.map(s=>new cu({geometry:s}))}readGeometry(e,n){const r=Sve(e);if(!r)return null;const s=new Cve(r).readGeometry();return this.viewCache_=r,n=this.getReadOptions(e,n),this.viewCache_=null,jo(s,!1,n)}readProjection(e){const n=this.viewCache_||Sve(e);if(!n)return;const r=new Cve(n);return r.readWkbHeader(),r.getSrid()&&Ti("EPSG:"+r.getSrid())||void 0}writeFeature(e,n){return this.writeGeometry(e.getGeometry(),n)}writeFeatures(e,n){return this.writeGeometry(new Hp(e.map(r=>r.getGeometry())),n)}writeGeometry(e,n){n=this.adaptOptions(n);const r=new PVe({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){const o=n.dataProjection&&Ti(n.dataProjection);if(o){const a=o.getCode();a.startsWith("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry(jo(e,!0,n),i);const s=r.getBuffer();return this.hex_?BVe(s):s}}function BVe(t){const e=new Uint8Array(t);return Array.from(e.values()).map(n=>(n<16?"0":"")+Number(n).toString(16).toUpperCase()).join("")}function jVe(t){const e=new Uint8Array(t.length/2);for(let n=0;n="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,n){return n=n!==void 0?n:!1,e>="0"&&e<="9"||e=="."&&!n}isWhiteSpace_(e){return e==" "||e==" "||e=="\r"||e==` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./raw-Dt1HMqYc.js","./basedecoder-DvumDe3Y.js","./lzw-DpvbRwG5.js","./jpeg-CdeCw_eT.js","./deflate-CUkHh1nh.js","./pako.esm-CPws4d4z.js","./packbits-DQnG8s9w.js","./lerc-BKAdx0UG.js","./_commonjsHelpers-BosuxZz1.js","./chunk-L4EGOTBX-BALMY2cf.js","./entry-preview-BErytJoa.js","./lit-element-Dh4_iwrW.js","./index-DrFu-skq.js","./jsx-runtime-DDll1Hf8.js","./index-BogtSeel.js","./index-BlccYh0h.js","./iframe-BDrD3q8C.js","./index-DANZ6Lwg.js","./directive-DUGPADuw.js","./main-Dh1LOCw_.js","./webimage-BcnuJlio.js"])))=>i.map(i=>d[i]); +var ije=Object.defineProperty;var xbe=t=>{throw TypeError(t)};var sje=(t,e,n)=>e in t?ije(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var sn=(t,e,n)=>sje(t,typeof e!="symbol"?e+"":e,n),HR=(t,e,n)=>e.has(t)||xbe("Cannot "+n);var Wt=(t,e,n)=>(HR(t,e,"read from private field"),n?n.call(t):e.get(t)),gn=(t,e,n)=>e.has(t)?xbe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),bs=(t,e,n,r)=>(HR(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),yn=(t,e,n)=>(HR(t,e,"access private method"),n);import{s as oje}from"./chunk-L4EGOTBX-BALMY2cf.js";import{m as q$,p as aje,v as rg,r as aw,M as GR,f as lje}from"./entry-preview-BErytJoa.js";import{j as Eu}from"./jsx-runtime-DDll1Hf8.js";import{useMDXComponents as QSe}from"./index-BogtSeel.js";import{ap as uje,aq as cje,ar as dje,as as fje,at as hje,au as pje,av as mje}from"./index-BlccYh0h.js";import{r as ei,x as tt,E as oi,T as hb,i as H$,b as Iy}from"./lit-element-Dh4_iwrW.js";import{c as H_,n as gje,d as yje,I as GA,R as eAe,r as bje,g as vje,h as xje,j as wje,C as _je,k as Eje,m as wbe,u as _be,v as G$,w as _g,x as D5,y as Lu,z as L5,A as V$,B as Cje,D as Sje,E as Aje,F as kje,i as Tje,G as Dje,H as Lje,J as Rje,K as Fje,L as Oje,M as Mje,N as W$,O as Ije,p as Y$,P as Ebe,Q as tAe,S as X$,T as G_,U as VT,V as n0,W as $je,X as Pje,Y as Nje,Z as nAe,_ as WT,$ as YT,a0 as Bje,a1 as jje,a2 as zje,a3 as Uje,a4 as Cbe,a5 as qje,a6 as Hje,a7 as Gje,f as Vje,a8 as Wje,l as Yje,a9 as Xje,aa as Zje,ab as Kje,ac as Jje,s as rAe,ad as Qje,ae as eze,af as tze,ag as nze,q as rze,t as ize,o as iAe,ah as sze,ai as oze,aj as VA,ak as aze,al as lze,e as tE,a as XT,b as up}from"./directive-DUGPADuw.js";import{m as sAe,g as uze,C as cze,a as Ti,b as WA,s as dze,S as V_,V as Z$,d as Sbe,c as v_,T as Abe,F as R5,R as Eg,e as nE,f as fze,w as hze,h as pze,i as r0,j as YA,k as K$,l as Mp,n as dA,o as cu,p as Yb,P as xc,q as tu,r as XA,t as Ds,u as W_,v as pb,L as $d,I as oAe,x as Cg,J as mze,y as gze,z as jo,A as yze,B as F5,D as bze,M as qv,E as ZT,G as rE,H as iE,X as KT,K as Tn,N as Mn,O as Ot,Q as J$,U as ZA,W as vze,Y as xze,Z as Ip,_ as KA,$ as aAe,a0 as or,a1 as Ge,a2 as Er,a3 as $i,a4 as nu,a5 as Hv,a6 as _p,a7 as Y_,a8 as lAe,a9 as Kt,aa as JA,ab as QA,ac as je,ad as Rt,ae as JT,af as Os,ag as Ta,ah as ek,ai as uAe,aj as ig,ak as wze,al as Q$,am as cAe,an as If,ao as Pd,ap as bi,aq as _ze,ar as Eze,as as Hp,at as kbe,au as wc,av as gd,aw as Cze,ax as e6,ay as QT,az as Sze,aA as dAe,aB as Aze,aC as kze,aD as no,aE as fAe,aF as _c,aG as t6,aH as Tze,aI as Dze,aJ as O5,aK as VR,aL as Lze,aM as n6,aN as Rze,aO as WC,aP as YC,aQ as Xb,aR as r6,aS as hAe,aT as X_,aU as pAe,aV as Fze,aW as Oze,aX as Ru,aY as Fs,aZ as i6,a_ as kc,a$ as s6,b0 as mAe,b1 as Tbe,b2 as i0,b3 as Dbe,b4 as rb,b5 as Mze,b6 as M5,b7 as gAe,b8 as Ize,b9 as Lbe,ba as $ze,bb as o6,bc as Pze,bd as yAe,be as Z_,bf as Nze,bg as Bze,bh as Ri,bi as bAe,bj as tk,bk as ru,bl as Gp,bm as Gv,bn as jze,bo as yr,bp as zze,bq as Uze,br as qze,bs as vAe,bt as Vp,bu as Hze,bv as Gze,bw as Vze,bx as xAe,by as Wze,bz as nk,bA as a6,bB as rk,bC as wAe,bD as bh,bE as sE,bF as oE,bG as l6,bH as u6,bI as Zb,bJ as Yze,bK as Xze,bL as Zze,bM as eD,bN as Kze,bO as Jze,bP as Qze,bQ as WR,bR as K_,bS as tD,bT as eUe,bU as tUe,bV as Rbe,bW as Fbe,bX as Obe,bY as nUe,bZ as rUe,b_ as I5,b$ as _Ae,c0 as iUe,c1 as Vv,c2 as EAe,c3 as Mbe,c4 as ik,c5 as Ibe,c6 as O0,c7 as c6,c8 as sUe,c9 as oUe,ca as nD,cb as aUe,cc as d6,cd as CAe,ce as lUe,cf as uUe,cg as cUe,ch as dUe,ci as SAe,cj as fUe,ck as hUe,cl as pUe,cm as mUe,cn as gUe,co as AAe,cp as yUe,cq as kAe,cr as bUe,cs as J_,ct as $5,cu as vUe,cv as xUe,cw as TAe,cx as DAe,cy as wUe,cz as _Ue}from"./main-Dh1LOCw_.js";import{g as ua,c as Pr,a as LAe}from"./_commonjsHelpers-BosuxZz1.js";import{_ as dm}from"./iframe-BDrD3q8C.js";const $be={duration:750},Pbe={type:"FeatureCollection",features:[]};function EUe(t,e){let n=0,r,i=0,s=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,s+=r*(o-i));else{let o=-1;for(let a of t)(a=e(a,++o,t))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,s+=r*(a-i))}if(n>1)return s/(n-1)}function CUe(t,e){const n=EUe(t,e);return n&&Math.sqrt(n)}class rl{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const n=this._partials;let r=0;for(let i=0;i0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,s=i-(o-r),!s););n>0&&(s<0&&e[n-1]<0||s>0&&e[n-1]>0)&&(i=s*2,r=o+i,i==r-o&&(o=r))}return o}}function SUe(t,e){return Array.from(e,n=>t[n])}function AUe(t=H_){if(t===H_)return RAe;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function RAe(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function Ug(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function P5(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function FAe(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?RAe:AUe(i);r>n;){if(r-n>600){const l=r-n+1,u=e-n+1,d=Math.log(l),c=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(e-u*c/l+f)),p=Math.min(r,Math.floor(e+(l-u)*c/l+f));FAe(t,e,h,p,i)}const s=t[e];let o=n,a=r;for(lw(t,n,e),i(t[r],s)>0&&lw(t,n,r);o0;)--a}i(t[n],s)===0?lw(t,n,a):(++a,lw(t,a,r)),a<=e&&(n=a+1),e<=a&&(r=a-1)}return t}function lw(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function N5(t,e,n){if(t=Float64Array.from(gje(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return P5(t);if(e>=1)return Ug(t);var r,i=(r-1)*e,s=Math.floor(i),o=Ug(FAe(t,s).subarray(0,s+1)),a=P5(t.subarray(s+1));return o+(a-o)*(i-s)}}function OAe(t,e,n=yje){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,s=Math.floor(i),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(i-s)}}function kUe(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let s of t)(s=e(s,++i,t))!=null&&(s=+s)>=s&&(++n,r+=s)}if(n)return r/n}function MAe(t,e){return N5(t,.5,e)}function*TUe(t){for(const e of t)yield*e}function IAe(t){return Array.from(TUe(t))}function Jl(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(i);++r180?d+=360:d-u>180&&(u+=360),f.push({i:c.push(i(c)+"rotate(",null,r)-2,x:_g(u,d)})):d&&c.push(i(c)+"rotate("+d+r)}function a(u,d,c,f){u!==d?f.push({i:c.push(i(c)+"skewX(",null,r)-2,x:_g(u,d)}):d&&c.push(i(c)+"skewX("+d+r)}function l(u,d,c,f,h,p){if(u!==c||d!==f){var g=h.push(i(h)+"scale(",null,",",null,")");p.push({i:g-4,x:_g(u,c)},{i:g-2,x:_g(d,f)})}else(c!==1||f!==1)&&h.push(i(h)+"scale("+c+","+f+")")}return function(u,d){var c=[],f=[];return u=t(u),d=t(d),s(u.translateX,u.translateY,d.translateX,d.translateY,c,f),o(u.rotate,d.rotate,c,f),a(u.skewX,d.skewX,c,f),l(u.scaleX,u.scaleY,d.scaleX,d.scaleY,c,f),u=d=null,function(h){for(var p=-1,g=f.length,y;++p0?n[a-1]:t[0],a(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),e(s,a),t(s);while(uwo(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(YR.setTime(+s),XR.setTime(+o),t(YR),t(XR),Math.floor(n(YR,XR))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Kb=wo(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Kb.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?wo(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Kb);Kb.range;const qf=1e3,Fu=qf*60,Hf=Fu*60,ah=Hf*24,p6=ah*7,qbe=ah*30,ZR=ah*365,Gf=wo(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*qf)},(t,e)=>(e-t)/qf,t=>t.getUTCSeconds());Gf.range;const iD=wo(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qf)},(t,e)=>{t.setTime(+t+e*Fu)},(t,e)=>(e-t)/Fu,t=>t.getMinutes());iD.range;const sD=wo(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Fu)},(t,e)=>(e-t)/Fu,t=>t.getUTCMinutes());sD.range;const oD=wo(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qf-t.getMinutes()*Fu)},(t,e)=>{t.setTime(+t+e*Hf)},(t,e)=>(e-t)/Hf,t=>t.getHours());oD.range;const aD=wo(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Hf)},(t,e)=>(e-t)/Hf,t=>t.getUTCHours());aD.range;const Jf=wo(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Fu)/ah,t=>t.getDate()-1);Jf.range;const $p=wo(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ah,t=>t.getUTCDate()-1);$p.range;const HAe=wo(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/ah,t=>Math.floor(t/ah));HAe.range;function M0(t){return wo(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Fu)/p6)}const Wv=M0(0),sk=M0(1),ZUe=M0(2),KUe=M0(3),Jb=M0(4),JUe=M0(5),QUe=M0(6);Wv.range;sk.range;ZUe.range;KUe.range;Jb.range;JUe.range;QUe.range;function I0(t){return wo(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/p6)}const Yv=I0(0),ok=I0(1),eqe=I0(2),tqe=I0(3),Qb=I0(4),nqe=I0(5),rqe=I0(6);Yv.range;ok.range;eqe.range;tqe.range;Qb.range;nqe.range;rqe.range;const e2=wo(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());e2.range;const t2=wo(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());t2.range;const Nd=wo(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Nd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wo(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Nd.range;const Bd=wo(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Bd.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:wo(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Bd.range;function GAe(t,e,n,r,i,s){const o=[[Gf,1,qf],[Gf,5,5*qf],[Gf,15,15*qf],[Gf,30,30*qf],[s,1,Fu],[s,5,5*Fu],[s,15,15*Fu],[s,30,30*Fu],[i,1,Hf],[i,3,3*Hf],[i,6,6*Hf],[i,12,12*Hf],[r,1,ah],[r,2,2*ah],[n,1,p6],[e,1,qbe],[e,3,3*qbe],[t,1,ZR]];function a(u,d,c){const f=dy).right(o,f);if(h===o.length)return t.every(n0(u/ZR,d/ZR,c));if(h===0)return Kb.every(Math.max(n0(u,d,c),1));const[p,g]=o[f/o[h-1][2]53)return null;"w"in Pe||(Pe.w=1),"Z"in Pe?(gt=JR(uw(Pe.y,0,1)),ln=gt.getUTCDay(),gt=ln>4||ln===0?ok.ceil(gt):ok(gt),gt=$p.offset(gt,(Pe.V-1)*7),Pe.y=gt.getUTCFullYear(),Pe.m=gt.getUTCMonth(),Pe.d=gt.getUTCDate()+(Pe.w+6)%7):(gt=KR(uw(Pe.y,0,1)),ln=gt.getDay(),gt=ln>4||ln===0?sk.ceil(gt):sk(gt),gt=Jf.offset(gt,(Pe.V-1)*7),Pe.y=gt.getFullYear(),Pe.m=gt.getMonth(),Pe.d=gt.getDate()+(Pe.w+6)%7)}else("W"in Pe||"U"in Pe)&&("w"in Pe||(Pe.w="u"in Pe?Pe.u%7:"W"in Pe?1:0),ln="Z"in Pe?JR(uw(Pe.y,0,1)).getUTCDay():KR(uw(Pe.y,0,1)).getDay(),Pe.m=0,Pe.d="W"in Pe?(Pe.w+6)%7+Pe.W*7-(ln+5)%7:Pe.w+Pe.U*7-(ln+6)%7);return"Z"in Pe?(Pe.H+=Pe.Z/100|0,Pe.M+=Pe.Z%100,JR(Pe)):KR(Pe)}}function k(_e,Be,qe,Pe){for(var Dt=0,gt=Be.length,ln=qe.length,en,Vn;Dt=ln)return-1;if(en=Be.charCodeAt(Dt++),en===37){if(en=Be.charAt(Dt++),Vn=A[en in Hbe?Be.charAt(Dt++):en],!Vn||(Pe=Vn(_e,qe,Pe))<0)return-1}else if(en!=qe.charCodeAt(Pe++))return-1}return Pe}function R(_e,Be,qe){var Pe=u.exec(Be.slice(qe));return Pe?(_e.p=d.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function O(_e,Be,qe){var Pe=h.exec(Be.slice(qe));return Pe?(_e.w=p.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function N(_e,Be,qe){var Pe=c.exec(Be.slice(qe));return Pe?(_e.w=f.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function K(_e,Be,qe){var Pe=v.exec(Be.slice(qe));return Pe?(_e.m=x.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function L(_e,Be,qe){var Pe=g.exec(Be.slice(qe));return Pe?(_e.m=y.get(Pe[0].toLowerCase()),qe+Pe[0].length):-1}function I(_e,Be,qe){return k(_e,e,Be,qe)}function $(_e,Be,qe){return k(_e,n,Be,qe)}function z(_e,Be,qe){return k(_e,r,Be,qe)}function U(_e){return o[_e.getDay()]}function X(_e){return s[_e.getDay()]}function Y(_e){return l[_e.getMonth()]}function J(_e){return a[_e.getMonth()]}function ae(_e){return i[+(_e.getHours()>=12)]}function Q(_e){return 1+~~(_e.getMonth()/3)}function B(_e){return o[_e.getUTCDay()]}function pe(_e){return s[_e.getUTCDay()]}function he(_e){return l[_e.getUTCMonth()]}function ze(_e){return a[_e.getUTCMonth()]}function it(_e){return i[+(_e.getUTCHours()>=12)]}function Je(_e){return 1+~~(_e.getUTCMonth()/3)}return{format:function(_e){var Be=D(_e+="",w);return Be.toString=function(){return _e},Be},parse:function(_e){var Be=T(_e+="",!1);return Be.toString=function(){return _e},Be},utcFormat:function(_e){var Be=D(_e+="",C);return Be.toString=function(){return _e},Be},utcParse:function(_e){var Be=T(_e+="",!0);return Be.toString=function(){return _e},Be}}}var Hbe={"-":"",_:" ",0:"0"},Uo=/^\s*\d+/,lqe=/^%/,uqe=/[\\^$*+?|[\]().{}]/g;function di(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s[e.toLowerCase(),n]))}function dqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function fqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function hqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function pqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function mqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Gbe(t,e,n){var r=Uo.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Vbe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function gqe(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function yqe(t,e,n){var r=Uo.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function bqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wbe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function vqe(t,e,n){var r=Uo.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ybe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function xqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function wqe(t,e,n){var r=Uo.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function _qe(t,e,n){var r=Uo.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Eqe(t,e,n){var r=Uo.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cqe(t,e,n){var r=lqe.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Sqe(t,e,n){var r=Uo.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Aqe(t,e,n){var r=Uo.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xbe(t,e){return di(t.getDate(),e,2)}function kqe(t,e){return di(t.getHours(),e,2)}function Tqe(t,e){return di(t.getHours()%12||12,e,2)}function Dqe(t,e){return di(1+Jf.count(Nd(t),t),e,3)}function WAe(t,e){return di(t.getMilliseconds(),e,3)}function Lqe(t,e){return WAe(t,e)+"000"}function Rqe(t,e){return di(t.getMonth()+1,e,2)}function Fqe(t,e){return di(t.getMinutes(),e,2)}function Oqe(t,e){return di(t.getSeconds(),e,2)}function Mqe(t){var e=t.getDay();return e===0?7:e}function Iqe(t,e){return di(Wv.count(Nd(t)-1,t),e,2)}function YAe(t){var e=t.getDay();return e>=4||e===0?Jb(t):Jb.ceil(t)}function $qe(t,e){return t=YAe(t),di(Jb.count(Nd(t),t)+(Nd(t).getDay()===4),e,2)}function Pqe(t){return t.getDay()}function Nqe(t,e){return di(sk.count(Nd(t)-1,t),e,2)}function Bqe(t,e){return di(t.getFullYear()%100,e,2)}function jqe(t,e){return t=YAe(t),di(t.getFullYear()%100,e,2)}function zqe(t,e){return di(t.getFullYear()%1e4,e,4)}function Uqe(t,e){var n=t.getDay();return t=n>=4||n===0?Jb(t):Jb.ceil(t),di(t.getFullYear()%1e4,e,4)}function qqe(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+di(e/60|0,"0",2)+di(e%60,"0",2)}function Zbe(t,e){return di(t.getUTCDate(),e,2)}function Hqe(t,e){return di(t.getUTCHours(),e,2)}function Gqe(t,e){return di(t.getUTCHours()%12||12,e,2)}function Vqe(t,e){return di(1+$p.count(Bd(t),t),e,3)}function XAe(t,e){return di(t.getUTCMilliseconds(),e,3)}function Wqe(t,e){return XAe(t,e)+"000"}function Yqe(t,e){return di(t.getUTCMonth()+1,e,2)}function Xqe(t,e){return di(t.getUTCMinutes(),e,2)}function Zqe(t,e){return di(t.getUTCSeconds(),e,2)}function Kqe(t){var e=t.getUTCDay();return e===0?7:e}function Jqe(t,e){return di(Yv.count(Bd(t)-1,t),e,2)}function ZAe(t){var e=t.getUTCDay();return e>=4||e===0?Qb(t):Qb.ceil(t)}function Qqe(t,e){return t=ZAe(t),di(Qb.count(Bd(t),t)+(Bd(t).getUTCDay()===4),e,2)}function eHe(t){return t.getUTCDay()}function tHe(t,e){return di(ok.count(Bd(t)-1,t),e,2)}function nHe(t,e){return di(t.getUTCFullYear()%100,e,2)}function rHe(t,e){return t=ZAe(t),di(t.getUTCFullYear()%100,e,2)}function iHe(t,e){return di(t.getUTCFullYear()%1e4,e,4)}function sHe(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Qb(t):Qb.ceil(t),di(t.getUTCFullYear()%1e4,e,4)}function oHe(){return"+0000"}function Kbe(){return"%"}function Jbe(t){return+t}function Qbe(t){return Math.floor(+t/1e3)}var $y,m6,KAe,g6,JAe;aHe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function aHe(t){return $y=VAe(t),m6=$y.format,KAe=$y.parse,g6=$y.utcFormat,JAe=$y.utcParse,$y}function lHe(t){return new Date(t)}function uHe(t){return t instanceof Date?+t:+new Date(+t)}function y6(t,e,n,r,i,s,o,a,l,u){var d=$je(),c=d.invert,f=d.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),x=u("%b %d"),w=u("%B"),C=u("%Y");function A(D){return(l(D)0&&d.length>0;)g=d.pop(),i=l.pop(),o=u.pop(),x=g.toString(),x in c||(r.push(o[0],o[1]),c[x]=!0),y=d.pop(),s=l.pop(),a=u.pop(),v=(g+y)/2,h=t(v),p=e(h),dze(p[0],p[1],o[0],o[1],a[0],a[1]){const i=r.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(i),this.lonLabelStyleBase_},this.latLabelStyleBase_=new v_({text:e.latLabelStyle!==void 0?e.latLabelStyle.clone():new Abe({font:"12px Calibri,sans-serif",textAlign:"right",fill:new R5({color:"rgba(0,0,0,1)"}),stroke:new V_({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=r=>{const i=r.get("graticule_label");return this.latLabelStyleBase_.getText().setText(i),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(Eg.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=e.intervals!==void 0?e.intervals:yHe,this.setSource(new nE({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new fze,overlaps:!1,useSpatialIndex:!1,wrapX:e.wrapX})),this.featurePool_=[],this.lineStyle_=new v_({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(e,n){let r=e.slice();return this.projection_&&this.getSource().getWrapX()&&hze(r,this.projection_),this.loadedExtent_&&(pze(this.loadedExtent_,r,n)?r=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[r]}loaderFunction(e,n,r){this.loadedExtent_=e;const i=this.getSource(),s=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=r0(s,e);if(this.renderedExtent_&&YA(this.renderedExtent_,o)&&this.renderedResolution_===n||(this.renderedExtent_=o,this.renderedResolution_=n,K$(o)))return;const a=Mp(o),l=n*n/4;(!this.projection_||!dA(this.projection_,r))&&this.updateProjectionInfo_(r),this.createGraticule_(o,a,n,l);let d=this.meridians_.length+this.parallels_.length;this.meridiansLabels_&&(d+=this.meridians_.length),this.parallelsLabels_&&(d+=this.parallels_.length);let c;for(;d>this.featurePool_.length;)c=new cu,this.featurePool_.push(c);const f=i.getFeaturesCollection();f.clear();let h=0,p,g;for(p=0,g=this.meridians_.length;pMath.PI/2;d=d!==p}const h=hHe(e);for(let p=l;p<=u;++p){let g=this.meridians_.length+this.parallels_.length,y,v,x,w;if(this.meridiansLabels_)for(v=0,x=this.meridiansLabels_.length;v=l?(e[0]=a[0],e[2]=a[2]):o=!0);const u=[Ds(n[0],this.minX_,this.maxX_),Ds(n[1],this.minY_,this.maxY_)],d=this.toLonLatTransform_(u);isNaN(d[1])&&(d[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=Ds(d[0],this.minLon_,this.maxLon_),f=Ds(d[1],this.minLat_,this.maxLat_);const h=this.maxLines_;let p,g,y,v,x=e;o||(x=[Ds(e[0],this.minX_,this.maxX_),Ds(e[1],this.minY_,this.maxY_),Ds(e[2],this.minX_,this.maxX_),Ds(e[3],this.minY_,this.maxY_)]);const w=W_(x,this.toLonLatTransform_,void 0,8);let C=w[3],A=w[2],D=w[1],T=w[0];if(o||(pb(x,this.bottomLeft_)&&(T=this.minLon_,D=this.minLat_),pb(x,this.bottomRight_)&&(A=this.maxLon_,D=this.minLat_),pb(x,this.topLeft_)&&(T=this.minLon_,C=this.maxLat_),pb(x,this.topRight_)&&(A=this.maxLon_,C=this.maxLat_),C=Ds(C,f,this.maxLat_),A=Ds(A,c,this.maxLon_),D=Ds(D,this.minLat_,f),T=Ds(T,this.minLon_,c)),c=Math.floor(c/s)*s,v=Ds(c,this.minLon_,this.maxLon_),g=this.addMeridian_(v,D,C,i,e,0),p=0,o)for(;(v-=s)>=T&&p++i[o]&&(s=o,o=1);const a=Math.max(n[1],i[s]),l=Math.min(n[3],i[o]),u=Ds(n[1]+Math.abs(n[1]-n[3])*this.lonLabelPosition_,a,l),c=[i[s-1]+(i[o-1]-i[s-1])*(u-i[s])/(i[o]-i[s]),u],f=this.meridiansLabels_[r].geom;return f.setCoordinates(c),f}getMeridians(){return this.meridians_}getParallel_(e,n,r,i,s){const o=mHe(e,n,r,this.projection_,i);let a=this.parallels_[s];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new $d(o,"XY"),a}getParallelPoint_(e,n,r){const i=e.getFlatCoordinates();let s=0,o=i.length-2;i[s]>i[o]&&(s=o,o=0);const a=Math.max(n[0],i[s]),l=Math.min(n[2],i[o]),u=Ds(n[0]+Math.abs(n[0]-n[2])*this.latLabelPosition_,a,l),d=i[s+1]+(i[o+1]-i[s+1])*(u-i[s])/(i[o]-i[s]),c=[u,d],f=this.parallelsLabels_[r].geom;return f.setCoordinates(c),f}getParallels(){return this.parallels_}updateProjectionInfo_(e){const n=Ti("EPSG:4326"),r=e.getWorldExtent();this.maxLat_=r[3],this.maxLon_=r[2],this.minLat_=r[1],this.minLon_=r[0];const i=WA(e,n);if(this.minLon_=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=e}};class v6 extends oAe{constructor(e,n,r,i,s){const o=s!==void 0?Cg.IDLE:Cg.LOADED;super(e,n,r,o),this.loader_=s!==void 0?s:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(e){e?(this.error_=e,this.state=Cg.ERROR):this.state=Cg.LOADED,this.changed()}load(){this.state==Cg.IDLE&&(this.state=Cg.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const vHe={Point:EHe,LineString:CHe,Polygon:THe,MultiPoint:AHe,MultiLineString:SHe,MultiPolygon:kHe},xHe={Point:DHe,LineString:LHe,Polygon:RHe,MultiPoint:OHe,MultiLineString:FHe,MultiPolygon:MHe};class wHe extends mze{constructor(e){e=e||{},super(),this.geometryName_=e.geometryName}readFeatureFromObject(e,n,r){const i=e,s=eve(i.geometry,n),o=new cu;if(this.geometryName_&&o.setGeometryName(this.geometryName_),o.setGeometry(s),i.attributes){o.setProperties(i.attributes,!0);const a=i.attributes[r];a!==void 0&&o.setId(a)}return o}readFeaturesFromObject(e,n){if(n=n||{},e.features){const r=e,i=[],s=r.features;for(let o=0,a=s.length;o=0;s--){const u=r[s][0];if(XA(new F5(u).getExtent(),new F5(a).getExtent())){r[s].push(a),l=!0;break}}l||r.push([a.reverse()])}return r}function EHe(t){let e;return t.m!==void 0&&t.z!==void 0?e=new xc([t.x,t.y,t.z,t.m],"XYZM"):t.z!==void 0?e=new xc([t.x,t.y,t.z],"XYZ"):t.m!==void 0?e=new xc([t.x,t.y,t.m],"XYM"):e=new xc([t.x,t.y]),e}function CHe(t){const e=Xv(t);return new $d(t.paths[0],e)}function SHe(t){const e=Xv(t);return new qv(t.paths,e)}function Xv(t){let e="XY";return t.hasZ===!0&&t.hasM===!0?e="XYZM":t.hasZ===!0?e="XYZ":t.hasM===!0&&(e="XYM"),e}function AHe(t){const e=Xv(t);return new ZT(t.points,e)}function kHe(t){const e=Xv(t);return new rE(t.rings,e)}function THe(t){const e=Xv(t);return new iE(t.rings,e)}function DHe(t,e){const n=t.getCoordinates();let r;const i=t.getLayout();if(i==="XYZ")r={x:n[0],y:n[1],z:n[2]};else if(i==="XYM")r={x:n[0],y:n[1],m:n[2]};else if(i==="XYZM")r={x:n[0],y:n[1],z:n[2],m:n[3]};else if(i==="XY")r={x:n[0],y:n[1]};else throw new Error("Invalid geometry layout");return r}function aE(t){const e=t.getLayout();return{hasZ:e==="XYZ"||e==="XYZM",hasM:e==="XYM"||e==="XYZM"}}function LHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:[t.getCoordinates()]}}function RHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,rings:t.getCoordinates(!1)}}function FHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,paths:t.getCoordinates()}}function OHe(t,e){const n=aE(t);return{hasZ:n.hasZ,hasM:n.hasM,points:t.getCoordinates()}}function MHe(t,e){const n=aE(t),r=t.getCoordinates(!1),i=[];for(let s=0;s=0;o--)i.push(r[s][o]);return{hasZ:n.hasZ,hasM:n.hasM,rings:i}}function tve(t,e){const n=xHe[t.getType()];return n(jo(t,!0,e),e)}const Qf="http://www.opengis.net/gml",IHe=/^\s*$/;class cn extends KT{constructor(e){super(),e=e||{},this.featureType=e.featureType,this.featureNS=e.featureNS,this.srsName=e.srsName,this.schemaLocation="",this.FEATURE_COLLECTION_PARSERS={},this.FEATURE_COLLECTION_PARSERS[this.namespace]={featureMember:Tn(this.readFeaturesInternal),featureMembers:Mn(this.readFeaturesInternal)},this.supportedMediaTypes=["application/gml+xml"]}readFeaturesInternal(e,n){const r=e.localName;let i=null;if(r=="FeatureCollection")i=Ot([],this.FEATURE_COLLECTION_PARSERS,e,n,this);else if(r=="featureMembers"||r=="featureMember"||r=="member"){const s=n[0];let o=s.featureType,a=s.featureNS;const l="p",u="p0";if(!o&&e.childNodes){o=[],a={};for(let f=0,h=e.childNodes.length;f0&&!(u instanceof vze)){u={_content_:u};for(let f=0;f1,r=n&&t.imageInfo.profile[1].supports?t.imageInfo.profile[1].supports:[],i=n&&t.imageInfo.profile[1].formats?t.imageInfo.profile[1].formats:[],s=n&&t.imageInfo.profile[1].qualities?t.imageInfo.profile[1].qualities:[];return{url:t.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:t.imageInfo.sizes===void 0?void 0:t.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:t.imageInfo.tiles===void 0?void 0:[t.imageInfo.tiles.map(function(o){return o.width})[0],t.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:t.imageInfo.tiles===void 0?void 0:t.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:[...e.supports,...r],formats:[...e.formats,...i],qualities:[...e.qualities,...s]}}function IGe(t){const e=t.getComplianceLevelSupportedFeatures(),n=t.imageInfo.extraFormats===void 0?e.formats:[...e.formats,...t.imageInfo.extraFormats],r=t.imageInfo.preferredFormats!==void 0&&Array.isArray(t.imageInfo.preferredFormats)&&t.imageInfo.preferredFormats.length>0?t.imageInfo.preferredFormats.filter(function(i){return["jpg","png","gif"].includes(i)}).reduce(function(i,s){return i===void 0&&n.includes(s)?s:i},void 0):void 0;return{url:t.imageInfo.id,sizes:t.imageInfo.sizes===void 0?void 0:t.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:t.imageInfo.tiles===void 0?void 0:[t.imageInfo.tiles.map(function(i){return i.width})[0],t.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:t.imageInfo.tiles===void 0?void 0:t.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:t.imageInfo.extraFeatures===void 0?e.supports:[...e.supports,...t.imageInfo.extraFeatures],formats:n,qualities:t.imageInfo.extraQualities===void 0?e.qualities:[...e.qualities,...t.imageInfo.extraQualities],preferredFormat:r}}const cD={};cD[Qs.VERSION1]=OGe;cD[Qs.VERSION2]=MGe;cD[Qs.VERSION3]=IGe;class $Ge{constructor(e){this.setImageInfo(e)}setImageInfo(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e}getImageApiVersion(){if(this.imageInfo===void 0)return;let e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(let n=0;n0&&typeof this.imageInfo.profile[0]=="string"&&nve.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}}getComplianceLevelFromProfile(e){const n=this.getComplianceLevelEntryFromProfile(e);if(n===void 0)return;const r=n.match(/level[0-2](?:\.json)?$/g);return Array.isArray(r)?r[0].replace(".json",""):void 0}getComplianceLevelSupportedFeatures(){if(this.imageInfo===void 0)return;const e=this.getImageApiVersion(),n=this.getComplianceLevelFromProfile(e);return n===void 0?s0.none.none:s0[e][n]}getTileSourceOptions(e){const n=e||{},r=this.getImageApiVersion();if(r===void 0)return;const i=r===void 0?void 0:cD[r](this);if(i!==void 0)return{url:i.url,version:r,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:n.format!==void 0&&i.formats.includes(n.format)?n.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:n.quality&&i.qualities.includes(n.quality)?n.quality:i.qualities.includes("native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(s,o){return o-s}):void 0,tileSize:i.tileSize}}}class A6{read(e){if(!e)return null;if(typeof e=="string"){const n=JA(e);return this.readFromDocument(n)}return QA(e)?this.readFromDocument(e):this.readFromNode(e)}readFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFromNode(n);return null}readFromNode(e){If()}}const PGe="http://www.w3.org/1999/xlink";function Zv(t){return t.getAttributeNS(PGe,"href")}const jl=[null,"http://www.opengis.net/ows/1.1"],NGe=Kt(jl,{ServiceIdentification:je(lVe),ServiceProvider:je(cVe),OperationsMetadata:je(oVe)});class oke extends A6{constructor(){super()}readFromNode(e){const n=Ot({},NGe,e,[]);return n||null}}const BGe=Kt(jl,{DeliveryPoint:je(Rt),City:je(Rt),AdministrativeArea:je(Rt),PostalCode:je(Rt),Country:je(Rt),ElectronicMailAddress:je(Rt)}),jGe=Kt(jl,{Value:bi(dVe)}),zGe=Kt(jl,{AllowedValues:je(QGe)}),UGe=Kt(jl,{Phone:je(aVe),Address:je(JGe)}),qGe=Kt(jl,{HTTP:je(iVe)}),HGe=Kt(jl,{Get:bi(rVe),Post:void 0}),GGe=Kt(jl,{DCP:je(nVe)}),VGe=Kt(jl,{Operation:sVe}),WGe=Kt(jl,{Voice:je(Rt),Facsimile:je(Rt)}),YGe=Kt(jl,{Constraint:bi(eVe)}),XGe=Kt(jl,{IndividualName:je(Rt),PositionName:je(Rt),ContactInfo:je(tVe)}),ZGe=Kt(jl,{Abstract:je(Rt),AccessConstraints:je(Rt),Fees:je(Rt),Title:je(Rt),ServiceTypeVersion:je(Rt),ServiceType:je(Rt)}),KGe=Kt(jl,{ProviderName:je(Rt),ProviderSite:je(Zv),ServiceContact:je(uVe)});function JGe(t,e){return Ot({},BGe,t,e)}function QGe(t,e){return Ot({},jGe,t,e)}function eVe(t,e){const n=t.getAttribute("name");if(n)return Ot({name:n},zGe,t,e)}function tVe(t,e){return Ot({},UGe,t,e)}function nVe(t,e){return Ot({},qGe,t,e)}function rVe(t,e){const n=Zv(t);if(n)return Ot({href:n},YGe,t,e)}function iVe(t,e){return Ot({},HGe,t,e)}function sVe(t,e){const n=t.getAttribute("name"),r=Ot({},GGe,t,e);if(!r)return;const i=e[e.length-1];i[n]=r}function oVe(t,e){return Ot({},VGe,t,e)}function aVe(t,e){return Ot({},WGe,t,e)}function lVe(t,e){return Ot({},ZGe,t,e)}function uVe(t,e){return Ot({},XGe,t,e)}function cVe(t,e){return Ot({},KGe,t,e)}function dVe(t,e){return Rt(t)}function rve(t,e,n,r,i,s){i!==void 0?(i=i,s=s!==void 0?s:0):(i=[],s=0);let o=e;for(;o>1):i>>1}return e}function vVe(t){let e="";for(let n=0,r=t.length;n=32;)e=(32|t&31)+63,n+=String.fromCharCode(e),t>>=5;return e=t+63,n+=String.fromCharCode(e),n}class Qr extends xt{constructor(e){e=e||{},super(e),this.schemaLocation=e.schemaLocation?e.schemaLocation:this.namespace+" http://schemas.opengis.net/gml/3.2.1/gml.xsd"}writeGeometryElement(e,n,r){const i=r[r.length-1];r[r.length-1]=Object.assign({multiCurve:!0,multiSurface:!0},i),super.writeGeometryElement(e,n,r)}}Qr.prototype.namespace="http://www.opengis.net/gml/3.2";Qr.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS={"http://www.opengis.net/gml/3.2":{pos:Mn(xt.prototype.readFlatPos),posList:Mn(xt.prototype.readFlatPosList),coordinates:Mn(br.prototype.readFlatCoordinates)}};Qr.prototype.FLAT_LINEAR_RINGS_PARSERS={"http://www.opengis.net/gml/3.2":{interior:xt.prototype.interiorParser,exterior:xt.prototype.exteriorParser}};Qr.prototype.GEOMETRY_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Mn(cn.prototype.readPoint),MultiPoint:Mn(cn.prototype.readMultiPoint),LineString:Mn(cn.prototype.readLineString),MultiLineString:Mn(cn.prototype.readMultiLineString),LinearRing:Mn(cn.prototype.readLinearRing),Polygon:Mn(cn.prototype.readPolygon),MultiPolygon:Mn(cn.prototype.readMultiPolygon),Surface:Mn(Qr.prototype.readSurface),MultiSurface:Mn(xt.prototype.readMultiSurface),Curve:Mn(Qr.prototype.readCurve),MultiCurve:Mn(xt.prototype.readMultiCurve),Envelope:Mn(Qr.prototype.readEnvelope)}};Qr.prototype.MULTICURVE_PARSERS={"http://www.opengis.net/gml/3.2":{curveMember:Tn(xt.prototype.curveMemberParser),curveMembers:Tn(xt.prototype.curveMemberParser)}};Qr.prototype.MULTISURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Tn(xt.prototype.surfaceMemberParser),surfaceMembers:Tn(xt.prototype.surfaceMemberParser)}};Qr.prototype.CURVEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Tn(cn.prototype.readLineString),Curve:Tn(xt.prototype.readCurve)}};Qr.prototype.SURFACEMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Tn(cn.prototype.readPolygon),Surface:Tn(xt.prototype.readSurface)}};Qr.prototype.SURFACE_PARSERS={"http://www.opengis.net/gml/3.2":{patches:Mn(xt.prototype.readPatch)}};Qr.prototype.CURVE_PARSERS={"http://www.opengis.net/gml/3.2":{segments:Mn(xt.prototype.readSegment)}};Qr.prototype.ENVELOPE_PARSERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Tn(xt.prototype.readFlatPosList),upperCorner:Tn(xt.prototype.readFlatPosList)}};Qr.prototype.PATCHES_PARSERS={"http://www.opengis.net/gml/3.2":{PolygonPatch:Mn(xt.prototype.readPolygonPatch)}};Qr.prototype.SEGMENTS_PARSERS={"http://www.opengis.net/gml/3.2":{LineStringSegment:lAe(xt.prototype.readLineStringSegment)}};Qr.prototype.MULTIPOINT_PARSERS={"http://www.opengis.net/gml/3.2":{pointMember:Tn(cn.prototype.pointMemberParser),pointMembers:Tn(cn.prototype.pointMemberParser)}};Qr.prototype.MULTILINESTRING_PARSERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Tn(cn.prototype.lineStringMemberParser),lineStringMembers:Tn(cn.prototype.lineStringMemberParser)}};Qr.prototype.MULTIPOLYGON_PARSERS={"http://www.opengis.net/gml/3.2":{polygonMember:Tn(cn.prototype.polygonMemberParser),polygonMembers:Tn(cn.prototype.polygonMemberParser)}};Qr.prototype.POINTMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Point:Tn(cn.prototype.readFlatCoordinatesFromNode)}};Qr.prototype.LINESTRINGMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{LineString:Tn(cn.prototype.readLineString)}};Qr.prototype.POLYGONMEMBER_PARSERS={"http://www.opengis.net/gml/3.2":{Polygon:Tn(cn.prototype.readPolygon)}};Qr.prototype.RING_PARSERS={"http://www.opengis.net/gml/3.2":{LinearRing:Mn(cn.prototype.readFlatLinearRing),Ring:Mn(Qr.prototype.readFlatCurveRing)}};Qr.prototype.RING_SERIALIZERS={"http://www.opengis.net/gml/3.2":{exterior:Ge(xt.prototype.writeRing),interior:Ge(xt.prototype.writeRing)}};Qr.prototype.ENVELOPE_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lowerCorner:Ge(Er),upperCorner:Ge(Er)}};Qr.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{surfaceMember:Ge(xt.prototype.writeSurfaceOrPolygonMember),polygonMember:Ge(xt.prototype.writeSurfaceOrPolygonMember)}};Qr.prototype.POINTMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{pointMember:Ge(xt.prototype.writePointMember)}};Qr.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS={"http://www.opengis.net/gml/3.2":{lineStringMember:Ge(xt.prototype.writeLineStringOrCurveMember),curveMember:Ge(xt.prototype.writeLineStringOrCurveMember)}};Qr.prototype.GEOMETRY_SERIALIZERS={"http://www.opengis.net/gml/3.2":{Curve:Ge(xt.prototype.writeCurveOrLineString),MultiCurve:Ge(xt.prototype.writeMultiCurveOrLineString),Point:Ge(Qr.prototype.writePoint),MultiPoint:Ge(xt.prototype.writeMultiPoint),LineString:Ge(xt.prototype.writeCurveOrLineString),MultiLineString:Ge(xt.prototype.writeMultiCurveOrLineString),LinearRing:Ge(xt.prototype.writeLinearRing),Polygon:Ge(xt.prototype.writeSurfaceOrPolygon),MultiPolygon:Ge(xt.prototype.writeMultiSurfaceOrPolygon),Surface:Ge(xt.prototype.writeSurfaceOrPolygon),MultiSurface:Ge(xt.prototype.writeMultiSurfaceOrPolygon),Envelope:Ge(xt.prototype.writeEnvelope)}};let ake=class{constructor(e){this.tagName_=e}getTagName(){return this.tagName_}};class _Ve extends ake{constructor(e,n){super(e),this.conditions=n,Pd(this.conditions.length>=2,"At least 2 conditions are required")}}let EVe=class extends _Ve{constructor(e){super("And",Array.prototype.slice.call(arguments))}};class CVe extends ake{constructor(e,n,r){if(super("BBOX"),this.geometryName=e,this.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");this.srsName=r}}function SVe(t){const e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(EVe,e))}function AVe(t,e,n){return new CVe(t,e,n)}const ive={"http://www.opengis.net/gml":{boundedBy:je(cn.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:Tn(cn.prototype.readFeaturesInternal)}},kVe={"http://www.opengis.net/wfs":{totalInserted:je(Os),totalUpdated:je(Os),totalDeleted:je(Os)},"http://www.opengis.net/wfs/2.0":{totalInserted:je(Os),totalUpdated:je(Os),totalDeleted:je(Os)}},TVe={"http://www.opengis.net/wfs":{TransactionSummary:je(ove,"transactionSummary"),InsertResults:je(lve,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:je(ove,"transactionSummary"),InsertResults:je(lve,"insertIds")}},DVe={"http://www.opengis.net/wfs":{PropertyName:Ge(Er)},"http://www.opengis.net/wfs/2.0":{PropertyName:Ge(Er)}},lke={"http://www.opengis.net/wfs":{Insert:Ge(uve),Update:Ge(dve),Delete:Ge(cve),Property:Ge(fve),Native:Ge(hve)},"http://www.opengis.net/wfs/2.0":{Insert:Ge(uve),Update:Ge(dve),Delete:Ge(cve),Property:Ge(fve),Native:Ge(hve)}},uke="feature",k6="http://www.w3.org/2000/xmlns/",T6={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},z5={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},D6={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},sve={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},L6={"2.0.0":Qr,"1.1.0":xt,"1.0.0":br},LVe="1.1.0";class RVe extends KT{constructor(e){super(),e=e||{},this.version_=e.version?e.version:LVe,this.featureType_=e.featureType,this.featureNS_=e.featureNS,this.gmlFormat_=e.gmlFormat?e.gmlFormat:new L6[this.version_],this.schemaLocation_=e.schemaLocation?e.schemaLocation:sve[this.version_]}getFeatureType(){return this.featureType_}setFeatureType(e){this.featureType_=e}readFeaturesFromNode(e,n){const r={node:e};Object.assign(r,{featureType:this.featureType_,featureNS:this.featureNS_}),Object.assign(r,this.getReadOptions(e,n||{}));const i=[r];let s;this.version_==="2.0.0"?s=ive:s=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;let o=Ot([],s,e,i,this.gmlFormat_);return o||(o=[]),o}readTransactionResponse(e){if(e){if(typeof e=="string"){const n=JA(e);return this.readTransactionResponseFromDocument(n)}return QA(e)?this.readTransactionResponseFromDocument(e):this.readTransactionResponseFromNode(e)}}readFeatureCollectionMetadata(e){if(e){if(typeof e=="string"){const n=JA(e);return this.readFeatureCollectionMetadataFromDocument(n)}return QA(e)?this.readFeatureCollectionMetadataFromDocument(e):this.readFeatureCollectionMetadataFromNode(e)}}readFeatureCollectionMetadataFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)}readFeatureCollectionMetadataFromNode(e){const n={},r=_p(e.getAttribute("numberOfFeatures"));return n.numberOfFeatures=r,Ot(n,ive,e,[],this.gmlFormat_)}readTransactionResponseFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)}readTransactionResponseFromNode(e){return Ot({},TVe,e,[])}writeGetFeature(e){const n=or(z5[this.version_],"GetFeature");n.setAttribute("service","WFS"),n.setAttribute("version",this.version_),e.handle&&n.setAttribute("handle",e.handle),e.outputFormat&&n.setAttribute("outputFormat",e.outputFormat),e.maxFeatures!==void 0&&n.setAttribute("maxFeatures",String(e.maxFeatures)),e.resultType&&n.setAttribute("resultType",e.resultType),e.startIndex!==void 0&&n.setAttribute("startIndex",String(e.startIndex)),e.count!==void 0&&n.setAttribute("count",String(e.count)),e.viewParams!==void 0&&n.setAttribute("viewParams",e.viewParams),n.setAttributeNS(Y_,"xsi:schemaLocation",this.schemaLocation_);const r={node:n};if(Object.assign(r,{version:this.version_,srsName:e.srsName,featureNS:e.featureNS?e.featureNS:this.featureNS_,featurePrefix:e.featurePrefix,propertyNames:e.propertyNames?e.propertyNames:[]}),Pd(Array.isArray(e.featureTypes),"`options.featureTypes` must be an Array"),typeof e.featureTypes[0]=="string"){let i=e.filter;e.bbox&&(Pd(e.geometryName,"`options.geometryName` must also be provided when `options.bbox` is set"),i=this.combineBboxAndFilter(e.geometryName,e.bbox,e.srsName,i)),Object.assign(r,{geometryName:e.geometryName,filter:i}),Eve(n,e.featureTypes,[r])}else e.featureTypes.forEach(i=>{const s=this.combineBboxAndFilter(i.geometryName,i.bbox,e.srsName,e.filter);Object.assign(r,{geometryName:i.geometryName,filter:s}),Eve(n,[i.name],[r])});return n}combineBboxAndFilter(e,n,r,i){const s=AVe(e,n,r);return i?SVe(i,s):s}writeTransaction(e,n,r,i){const s=[],o=i.version?i.version:this.version_,a=or(z5[o],"Transaction");a.setAttribute("service","WFS"),a.setAttribute("version",o);let l;i&&(l=i.gmlOptions?i.gmlOptions:{},i.handle&&a.setAttribute("handle",i.handle)),a.setAttributeNS(Y_,"xsi:schemaLocation",sve[o]);const u=FVe(a,l,o,i);return e&&KC("Insert",e,s,u),n&&KC("Update",n,s,u),r&&KC("Delete",r,s,u),i.nativeElements&&KC("Native",i.nativeElements,s,u),a}readProjectionFromDocument(e){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null}readProjectionFromNode(e){if(e.firstElementChild&&e.firstElementChild.firstElementChild){e=e.firstElementChild.firstElementChild;for(let n=e.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){const r=[{}];return this.gmlFormat_.readGeometryElement(n,r),Ti(r.pop().srsName)}}return null}}function FVe(t,e,n,r){const i=r.featurePrefix?r.featurePrefix:uke;let s;return n==="1.0.0"?s=2:n==="1.1.0"?s=3:n==="2.0.0"&&(s=3.2),Object.assign({node:t},{version:n,featureNS:r.featureNS,featureType:r.featureType,featurePrefix:i,gmlVersion:s,hasZ:r.hasZ,srsName:r.srsName},e)}function KC(t,e,n,r){$i(r,lke,nu(t),e,n)}function ove(t,e){return Ot({},kVe,t,e)}const OVe={"http://www.opengis.net/ogc":{FeatureId:Tn(function(t,e){return t.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:Tn(function(t,e){return t.getAttribute("fid")})}};function ave(t,e){Ip(OVe,t,e)}const MVe={"http://www.opengis.net/wfs":{Feature:ave},"http://www.opengis.net/wfs/2.0":{Feature:ave}};function lve(t,e){return Ot([],MVe,t,e)}function uve(t,e,n){const r=n[n.length-1],i=r.featureType,s=r.featureNS,o=r.gmlVersion,a=or(s,i);t.appendChild(a),o===2?br.prototype.writeFeatureElement(a,e,n):o===3?xt.prototype.writeFeatureElement(a,e,n):Qr.prototype.writeFeatureElement(a,e,n)}function cke(t,e,n){const i=n[n.length-1].version,s=T6[i],o=or(s,"Filter"),a=or(s,"FeatureId");o.appendChild(a),a.setAttribute("fid",e),t.appendChild(o)}function R6(t,e){t=t||uke;const n=t+":";return e.startsWith(n)?e:n+e}function cve(t,e,n){const r=n[n.length-1];Pd(e.getId()!==void 0,"Features must have an id set");const i=r.featureType,s=r.featurePrefix,o=r.featureNS,a=R6(s,i);t.setAttribute("typeName",a),t.setAttributeNS(k6,"xmlns:"+s,o);const l=e.getId();l!==void 0&&cke(t,l,n)}function dve(t,e,n){const r=n[n.length-1];Pd(e.getId()!==void 0,"Features must have an id set");const i=r.version,s=r.featureType,o=r.featurePrefix,a=r.featureNS,l=R6(o,s),u=e.getGeometryName();t.setAttribute("typeName",l),t.setAttributeNS(k6,"xmlns:"+o,a);const d=e.getId();if(d!==void 0){const c=e.getKeys(),f=[];for(let h=0,p=c.length;h0,i=this.readUint32(r),s=Math.floor((i&268435455)/1e3),o=!!(i&2147483648)||s===1||s===3,a=!!(i&1073741824)||s===2||s===3,l=!!(i&536870912),u=(i&268435455)%1e3,d=["XY",o?"Z":"",a?"M":""].join(""),c=l?this.readUint32(r):null;if(e!==void 0&&e!==u)throw new Error("Unexpected WKB geometry type "+u);if(this.initialized_){if(this.isLittleEndian_!==r)throw new Error("Inconsistent endian");if(this.layout_!==d)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=r,this.hasZ_=o,this.hasM_=a,this.layout_=d,this.srid_=c,this.initialized_=!0;return u}readWkbPayload(e){switch(e){case Si.POINT:return this.readPoint();case Si.LINE_STRING:return this.readLineString();case Si.POLYGON:case Si.TRIANGLE:return this.readPolygon();case Si.MULTI_POINT:return this.readMultiPoint();case Si.MULTI_LINE_STRING:return this.readMultiLineString();case Si.MULTI_POLYGON:case Si.POLYHEDRAL_SURFACE:case Si.TIN:return this.readMultiPolygon();case Si.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}}readWkbBlock(e){return this.readWkbPayload(this.readWkbHeader(e))}readWkbCollection(e,n){const r=this.readUint32(),i=[];for(let s=0;s({[i]:e[s]})));for(const i of this.layout_)this.writeDouble(i in r?r[i]:this.nodata_[i])}writeLineString(e,n){this.writeUint32(e.length);for(let r=0;ri===s?i:i==="XYZM"?s:s==="XYZM"?i:"XY";if(e instanceof kbe)return r(e.getLayout(),n);if(e instanceof Hp){const i=e.getGeometriesArray();for(let s=0;ss+o[0],0),n=new ArrayBuffer(e),r=new DataView(n);let i=0;return this.writeQueue_.forEach(s=>{switch(s[0]){case 1:r.setUint8(i,s[1]);break;case 4:r.setUint32(i,s[1],this.isLittleEndian_);break;case 8:r.setFloat64(i,s[1],this.isLittleEndian_);break}i+=s[0]}),n}}class NVe extends cAe{constructor(e){super(),e=e||{},this.splitCollection=!!e.splitCollection,this.viewCache_=null,this.hex_=e.hex!==!1,this.littleEndian_=e.littleEndian!==!1,this.ewkb_=e.ewkb!==!1,this.layout_=e.geometryLayout,this.nodataZ_=e.nodataZ||0,this.nodataM_=e.nodataM||0,this.srid_=e.srid}getType(){return this.hex_?"text":"arraybuffer"}readFeature(e,n){return new cu({geometry:this.readGeometry(e,n)})}readFeatures(e,n){let r=[];const i=this.readGeometry(e,n);return this.splitCollection&&i instanceof Hp?r=i.getGeometriesArray():r=[i],r.map(s=>new cu({geometry:s}))}readGeometry(e,n){const r=Sve(e);if(!r)return null;const s=new Cve(r).readGeometry();return this.viewCache_=r,n=this.getReadOptions(e,n),this.viewCache_=null,jo(s,!1,n)}readProjection(e){const n=this.viewCache_||Sve(e);if(!n)return;const r=new Cve(n);return r.readWkbHeader(),r.getSrid()&&Ti("EPSG:"+r.getSrid())||void 0}writeFeature(e,n){return this.writeGeometry(e.getGeometry(),n)}writeFeatures(e,n){return this.writeGeometry(new Hp(e.map(r=>r.getGeometry())),n)}writeGeometry(e,n){n=this.adaptOptions(n);const r=new PVe({layout:this.layout_,littleEndian:this.littleEndian_,ewkb:this.ewkb_,nodata:{Z:this.nodataZ_,M:this.nodataM_}});let i=Number.isInteger(this.srid_)?Number(this.srid_):null;if(this.srid_!==!1&&!Number.isInteger(this.srid_)){const o=n.dataProjection&&Ti(n.dataProjection);if(o){const a=o.getCode();a.startsWith("EPSG:")&&(i=Number(a.substring(5)))}}r.writeGeometry(jo(e,!0,n),i);const s=r.getBuffer();return this.hex_?BVe(s):s}}function BVe(t){const e=new Uint8Array(t);return Array.from(e.values()).map(n=>(n<16?"0":"")+Number(n).toString(16).toUpperCase()).join("")}function jVe(t){const e=new Uint8Array(t.length/2);for(let n=0;n="a"&&e<="z"||e>="A"&&e<="Z"}isNumeric_(e,n){return n=n!==void 0?n:!1,e>="0"&&e<="9"||e=="."&&!n}isWhiteSpace_(e){return e==" "||e==" "||e=="\r"||e==` `}nextChar_(){return this.wkt.charAt(++this.index_)}nextToken(){const e=this.nextChar_(),n=this.index_;let r=e,i;if(e=="(")i=yi.LEFT_PAREN;else if(e==",")i=yi.COMMA;else if(e==")")i=yi.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")i=yi.NUMBER,r=this.readNumber_();else if(this.isAlpha_(e))i=yi.TEXT,r=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")i=yi.EOF;else throw new Error("Unexpected character: "+e)}return{position:n,value:r,type:i}}readNumber_(){let e;const n=this.index_;let r=!1,i=!1;do e=="."?r=!0:(e=="e"||e=="E")&&(i=!0),e=this.nextChar_();while(this.isNumeric_(e,r)||!i&&(e=="e"||e=="E")||i&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(n,this.index_--))}readText_(){let e;const n=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(n,this.index_--).toUpperCase()}}class GVe{constructor(e){this.lexer_=e,this.token_={position:0,type:yi.START},this.layout_="XY"}consume_(){this.token_=this.lexer_.nextToken()}isTokenType(e){return this.token_.type==e}match(e){const n=this.isTokenType(e);return n&&this.consume_(),n}parse(){return this.consume_(),this.parseGeometry_()}parseGeometryLayout_(){let e="XY";const n=this.token_;if(this.isTokenType(yi.TEXT)){const r=n.value;r===fke?e="XYZ":r===hke?e="XYM":r===UVe&&(e="XYZM"),e!=="XY"&&this.consume_()}return e}parseGeometryCollectionText_(){if(this.match(yi.LEFT_PAREN)){const e=[];do e.push(this.parseGeometry_());while(this.match(yi.COMMA));if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePointText_(){if(this.match(yi.LEFT_PAREN)){const e=this.parsePoint_();if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseLineStringText_(){if(this.match(yi.LEFT_PAREN)){const e=this.parsePointList_();if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePolygonText_(){if(this.match(yi.LEFT_PAREN)){const e=this.parseLineStringTextList_();if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPointText_(){if(this.match(yi.LEFT_PAREN)){let e;if(this.token_.type==yi.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiLineStringText_(){if(this.match(yi.LEFT_PAREN)){const e=this.parseLineStringTextList_();if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parseMultiPolygonText_(){if(this.match(yi.LEFT_PAREN)){const e=this.parsePolygonTextList_();if(this.match(yi.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())}parsePoint_(){const e=[],n=this.layout_.length;for(let r=0;r0&&(i+=" "+s)}return r.length===0?i+" "+dke:i+"("+r+")"}const io=[null,"http://www.opengis.net/wms"];function Jv(t){return Cze(t[0].version,"1.3")>=0}const JVe=Kt(io,{Service:je(wWe),Capability:je(xWe)}),bke={Request:je(LWe),Exception:je(SWe),Layer:je(AWe)},QVe=Kt(io,{...bke,UserDefinedSymbolization:je(bWe)}),eWe=Kt(io,bke);class tWe extends A6{constructor(){super(),this.version=void 0}readFromNode(e){this.version=e.getAttribute("version").trim();const n=Ot({version:this.version},JVe,e,[]);return n||null}}const vke={Name:je(Rt),Title:je(Rt),Abstract:je(Rt),KeywordList:je(Ske),OnlineResource:je(Zv),ContactInformation:je(_We),Fees:je(Rt),AccessConstraints:je(Rt)},nWe=Kt(io,vke),rWe=Kt(io,{...vke,LayerLimit:je(Os),MaxWidth:je(Os),MaxHeight:je(Os)}),iWe=Kt(io,{ContactPersonPrimary:je(EWe),ContactPosition:je(Rt),ContactAddress:je(CWe),ContactVoiceTelephone:je(Rt),ContactFacsimileTelephone:je(Rt),ContactElectronicMailAddress:je(Rt)}),sWe=Kt(io,{ContactPerson:je(Rt),ContactOrganization:je(Rt)}),oWe=Kt(io,{AddressType:je(Rt),Address:je(Rt),City:je(Rt),StateOrProvince:je(Rt),PostCode:je(Rt),Country:je(Rt)}),aWe=Kt(io,{Format:Tn(Rt)}),xke={Name:je(Rt),Title:je(Rt),Abstract:je(Rt),KeywordList:je(Ske),BoundingBox:bi(Eke),Dimension:bi(kWe),Attribution:je(yWe),AuthorityURL:bi(OWe),Identifier:bi(Rt),MetadataURL:bi(MWe),DataURL:bi(lh),FeatureListURL:bi(lh),Style:bi(IWe),Layer:bi(hD)},wke=Kt(io,{...xke,SRS:bi(Rt),Extent:je(TWe),ScaleHint:bi(DWe),LatLonBoundingBox:je((t,e)=>Eke(t,e,!1)),Layer:bi(hD)}),_ke=Kt(io,{...xke,CRS:bi(Rt),EX_GeographicBoundingBox:je(vWe),MinScaleDenominator:je(Ta),MaxScaleDenominator:je(Ta),Layer:bi(hD)}),lWe=Kt(io,{Title:je(Rt),OnlineResource:je(Zv),LogoURL:je(Cke)}),uWe=Kt(io,{westBoundLongitude:je(Ta),eastBoundLongitude:je(Ta),southBoundLatitude:je(Ta),northBoundLatitude:je(Ta)}),cWe=Kt(io,{GetCapabilities:je(QR),GetMap:je(QR),GetFeatureInfo:je(QR)}),dWe=Kt(io,{Format:bi(Rt),DCPType:bi(RWe)}),fWe=Kt(io,{HTTP:je(FWe)}),hWe=Kt(io,{Get:je(lh),Post:je(lh)}),pWe=Kt(io,{Name:je(Rt),Title:je(Rt),Abstract:je(Rt),LegendURL:bi(Cke),StyleSheetURL:je(lh),StyleURL:je(lh)}),mWe=Kt(io,{Format:je(Rt),OnlineResource:je(Zv)}),gWe=Kt(io,{Keyword:Tn(Rt)});function yWe(t,e){return Ot({},lWe,t,e)}function bWe(t,e){return{SupportSLD:!!wc(t.getAttribute("UserDefinedSymbolization")),UserLayer:!!wc(t.getAttribute("UserLayer")),UserStyle:!!wc(t.getAttribute("UserStyle")),RemoteWFS:!!wc(t.getAttribute("RemoteWFS"))}}function Eke(t,e,n=!0){const r=[gd(t.getAttribute("minx")),gd(t.getAttribute("miny")),gd(t.getAttribute("maxx")),gd(t.getAttribute("maxy"))],i=[gd(t.getAttribute("resx")),gd(t.getAttribute("resy"))],s={extent:r,res:i};return n&&(Jv(e)?s.crs=t.getAttribute("CRS"):s.srs=t.getAttribute("SRS")),s}function vWe(t,e){const n=Ot({},uWe,t,e);if(!n)return;const r=n.westBoundLongitude,i=n.southBoundLatitude,s=n.eastBoundLongitude,o=n.northBoundLatitude;if(!(r===void 0||i===void 0||s===void 0||o===void 0))return[r,i,s,o]}function xWe(t,e){return Ot({},Jv(e)?eWe:QVe,t,e)}function wWe(t,e){return Ot({},Jv(e)?rWe:nWe,t,e)}function _We(t,e){return Ot({},iWe,t,e)}function EWe(t,e){return Ot({},sWe,t,e)}function CWe(t,e){return Ot({},oWe,t,e)}function SWe(t,e){return Ot([],aWe,t,e)}function AWe(t,e){const n=Ot({},Jv(e)?_ke:wke,t,e);return n.Layer===void 0?Object.assign(n,hD(t,e)):n}function hD(t,e){const n=Jv(e),r=e[e.length-1],i=Ot({},n?_ke:wke,t,e);if(!i)return;let s=wc(t.getAttribute("queryable"));s===void 0&&(s=r.queryable),i.queryable=s!==void 0?s:!1;let o=_p(t.getAttribute("cascaded"));o===void 0&&(o=r.cascaded),i.cascaded=o;let a=wc(t.getAttribute("opaque"));a===void 0&&(a=r.opaque),i.opaque=a!==void 0?a:!1;let l=wc(t.getAttribute("noSubsets"));l===void 0&&(l=r.noSubsets),i.noSubsets=l!==void 0?l:!1;let u=gd(t.getAttribute("fixedWidth"));u||(u=r.fixedWidth),i.fixedWidth=u;let d=gd(t.getAttribute("fixedHeight"));d||(d=r.fixedHeight),i.fixedHeight=d;const c=["Style","AuthorityURL"];n?c.push("CRS"):c.push("SRS","Dimension"),c.forEach(function(h){if(h in r){const p=i[h]||[];i[h]=p.concat(r[h])}});const f=["BoundingBox","Attribution"];return n?f.push("Dimension","EX_GeographicBoundingBox","MinScaleDenominator","MaxScaleDenominator"):f.push("LatLonBoundingBox","ScaleHint","Extent"),f.forEach(function(h){if(!(h in i)){const p=r[h];i[h]=p}}),i}function kWe(t,e){const n={name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol")};return Jv(e)&&Object.assign(n,{default:t.getAttribute("default"),multipleValues:wc(t.getAttribute("multipleValues")),nearestValue:wc(t.getAttribute("nearestValue")),current:wc(t.getAttribute("current")),values:Rt(t)}),n}function TWe(t,e){return{name:t.getAttribute("name"),default:t.getAttribute("default"),nearestValue:wc(t.getAttribute("nearestValue"))}}function DWe(t,e){return{min:gd(t.getAttribute("min")),max:gd(t.getAttribute("max"))}}function lh(t,e){return Ot({},mWe,t,e)}function LWe(t,e){return Ot({},cWe,t,e)}function RWe(t,e){return Ot({},fWe,t,e)}function FWe(t,e){return Ot({},hWe,t,e)}function QR(t,e){return Ot({},dWe,t,e)}function Cke(t,e){const n=lh(t,e);if(n){const r=[_p(t.getAttribute("width")),_p(t.getAttribute("height"))];return n.size=r,n}}function OWe(t,e){const n=lh(t,e);if(n)return n.name=t.getAttribute("name"),n}function MWe(t,e){const n=lh(t,e);if(n)return n.type=t.getAttribute("type"),n}function IWe(t,e){return Ot({},pWe,t,e)}function Ske(t,e){return Ot([],gWe,t,e)}const $We="_feature",PWe="_layer";class NWe extends KT{constructor(e){super(),e=e||{},this.featureNS_="http://mapserver.gis.umn.edu/mapserver",this.gmlFormat_=new br,this.layers_=e.layers?e.layers:null}getLayers(){return this.layers_}setLayers(e){this.layers_=e}readFeatures_(e,n){e.setAttribute("namespaceURI",this.featureNS_);const r=e.localName;let i=[];if(e.childNodes.length===0)return i;if(r=="msGMLOutput")for(let s=0,o=e.childNodes.length;s{e.getState()==="ready"&&(e.removeEventListener("change",n),this.setStyle(this.style_))};e.addEventListener("change",n)}else 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=Pve(this.style_,this.getSourceBandCount_());return new IYe(this,{vertexShader:e.vertexShader,fragmentShader:e.fragmentShader,uniforms:e.uniforms,cacheSize:this.getCacheSize(),paletteTextures:e.paletteTextures})}renderSources(e,n){const r=this.getRenderer();let i;for(let s=0,o=n.length;s{u.getState()=="ready"&&(u.removeEventListener("change",c),this.changed())};u.addEventListener("change",c)}s=s&&d=="ready"}const o=this.renderSources(e,i);if(this.getRenderer().renderComplete&&s)return this.renderedResolution_=r.resolution,o;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 o}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){const n=Pve(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()}}hk.prototype.dispose;const nXe=Object.freeze(Object.defineProperty({__proto__:null,Graticule:bHe,Group:nk,Heatmap:HYe,Image:a6,Layer:xAe,Tile:rk,Vector:Z$,VectorImage:WYe,VectorTile:wAe,WebGLPoints:tXe,WebGLTile:hk},Symbol.toStringTag,{value:"Module"}));function rXe(t){const e=t[0],n=new Array(e);let r=1<>=1;return n.join("")}const iXe='Terms of Use';class sXe extends bh{constructor(e){const n=e.hidpi!==void 0?e.hidpi:!1;super({cacheSize:e.cacheSize,crossOrigin:"anonymous",interpolate:e.interpolate,projection:Ti("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,tilePixelRatio:n?2:1,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.hidpi_=n,this.culture_=e.culture!==void 0?e.culture:"en-us",this.maxZoom_=e.maxZoom!==void 0?e.maxZoom:-1,this.apiKey_=e.key,this.imagerySet_=e.imagerySet,this.placeholderTiles_=e.placeholderTiles;const r="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_;fetch(r).then(i=>i.json()).then(i=>this.handleImageryMetadataResponse(i))}getApiKey(){return this.apiKey_}getImagerySet(){return this.imagerySet_}handleImageryMetadataResponse(e){if(e.statusCode!=200||e.statusDescription!="OK"||e.authenticationResultCode!="ValidCredentials"||e.resourceSets.length!=1||e.resourceSets[0].resources.length!=1){this.setState("error");return}const n=e.resourceSets[0].resources[0],r=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,i=this.getProjection(),s=sE(i),o=this.hidpi_?2:1,a=n.imageWidth==n.imageHeight?n.imageWidth/o:[n.imageWidth/o,n.imageHeight/o],l=oE({extent:s,minZoom:n.zoomMin,maxZoom:r,tileSize:a});this.tileGrid=l;const u=this.culture_,d=this.hidpi_,c=this.placeholderTiles_;if(this.tileUrlFunction=l6(n.imageUrlSubdomains.map(function(f){const h=[0,0,0],p=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(g,y,v){if(!g)return;M5(g[0],g[1],g[2],h);const x=new URL(p.replace("{quadkey}",rXe(h))),w=x.searchParams;return d&&(w.set("dpi","d1"),w.set("device","mobile")),c===!0?w.delete("n"):c===!1&&w.set("n","z"),x.toString()}})),n.imageryProviders){const f=u6(Ti("EPSG:4326"),this.getProjection());this.setAttributions(h=>{const p=[],g=h.viewState,y=this.getTileGrid(),v=y.getZForResolution(g.resolution,this.zDirection),w=y.getTileCoordForCoordAndZ(g.center,v)[0];return n.imageryProviders.map(function(C){let A=!1;const D=C.coverageAreas;for(let T=0,k=D.length;T=R.zoomMin&&w<=R.zoomMax){const O=R.bbox,N=[O[1],O[0],O[3],O[2]],K=W_(N,f);if(Yb(K,h.extent)){A=!0;break}}}A&&p.push(C.attribution)}),p.push(iXe),p})}this.setState("ready")}}class oXe extends Zb{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,maxZoom:e.maxZoom!==void 0?e.maxZoom:18,minZoom:e.minZoom,projection:e.projection,transition:e.transition,wrapX:e.wrapX,zDirection:e.zDirection}),this.account_=e.account,this.mapId_=e.map||"",this.config_=e.config||{},this.templateCache_={},this.initializeMap_()}getConfig(){return this.config_}updateConfig(e){Object.assign(this.config_,e),this.initializeMap_()}setConfig(e){this.config_=e||{},this.initializeMap_()}initializeMap_(){const e=JSON.stringify(this.config_);if(this.templateCache_[e]){this.applyTemplate_(this.templateCache_[e]);return}let n="https://"+this.account_+".carto.com/api/v1/map";this.mapId_&&(n+="/named/"+this.mapId_);const r=new XMLHttpRequest;r.addEventListener("load",this.handleInitResponse_.bind(this,e)),r.addEventListener("error",this.handleInitError_.bind(this)),r.open("POST",n),r.setRequestHeader("Content-type","application/json"),r.send(JSON.stringify(this.config_))}handleInitResponse_(e,n){const r=n.target;if(!r.status||r.status>=200&&r.status<300){let i;try{i=JSON.parse(r.responseText)}catch{this.setState("error");return}this.applyTemplate_(i),this.templateCache_[e]=i,this.setState("ready")}else this.setState("error")}handleInitError_(e){this.setState("error")}applyTemplate_(e){const n="https://"+e.cdn_url.https+"/"+this.account_+"/api/v1/map/"+e.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(n)}}class aXe extends nE{constructor(e){e=e||{},super({attributions:e.attributions,wrapX:e.wrapX}),this.resolution=void 0,this.distance=e.distance!==void 0?e.distance:20,this.minDistance=e.minDistance||0,this.interpolationRatio=0,this.features=[],this.geometryFunction=e.geometryFunction||function(n){const r=n.getGeometry();return Pd(!r||r.getType()==="Point","The default `geometryFunction` can only handle `Point` or null geometries"),r},this.createCustomCluster_=e.createCluster,this.source=null,this.boundRefresh_=this.refresh.bind(this),this.updateDistance(this.distance,this.minDistance),this.setSource(e.source||null)}clear(e){this.features.length=0,super.clear(e)}getDistance(){return this.distance}getSource(){return this.source}loadFeatures(e,n,r){var i;(i=this.source)==null||i.loadFeatures(e,n,r),n!==this.resolution&&(this.resolution=n,this.refresh())}setDistance(e){this.updateDistance(e,this.minDistance)}setMinDistance(e){this.updateDistance(this.distance,e)}getMinDistance(){return this.minDistance}setSource(e){this.source&&this.source.removeEventListener(Ru.CHANGE,this.boundRefresh_),this.source=e,e&&e.addEventListener(Ru.CHANGE,this.boundRefresh_),this.refresh()}refresh(){this.clear(),this.cluster(),this.addFeatures(this.features)}updateDistance(e,n){const r=e===0?0:Math.min(n,e)/e,i=e!==this.distance||this.interpolationRatio!==r;this.distance=e,this.minDistance=n,this.interpolationRatio=r,i&&this.refresh()}cluster(){if(this.resolution===void 0||!this.source)return;const e=n6(),n=this.distance*this.resolution,r=this.source.getFeatures(),i={};for(let s=0,o=r.length;s=0;--a){const l=this.geometryFunction(e[a]);l?Xze(r,l.getCoordinates()):e.splice(a,1)}Zze(r,1/e.length);const i=Mp(n),s=this.interpolationRatio,o=new xc([r[0]*(1-s)+i[0]*s,r[1]*(1-s)+i[1]*s]);return this.createCustomCluster_?this.createCustomCluster_(o,e):new cu({geometry:o,features:e})}}class yD extends eD{constructor(e){const n=e.projection===void 0?"EPSG:3857":e.projection;let r=e.tileGrid;r===void 0&&n&&(r=oE({extent:sE(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,state:e.state,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate,key:e.key}),this.gutter_=e.gutter!==void 0?e.gutter:0,this.tileSize_=e.tileSize?kc(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.crossOrigin_=e.crossOrigin||"anonymous"}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?kc(n.getTileSize(e)):[256,256]}getGutterForProjection(e){const n=this.getProjection();return!n||dA(n,e)?this.gutter_:0}setLoader(e){this.loader_=e}getReprojTile_(e,n,r,i,s){const o=this.getTileGrid(),a=Math.max.apply(null,o.getResolutions().map((p,g)=>{const y=kc(o.getTileSize(g)),v=this.getTileSize(g);return Math.max(v[0]/y[0],v[1]/y[1])})),l=this.getTileGridForProjection(s),u=this.getTileGridForProjection(i),d=[e,n,r],c=this.getTileCoordForTileUrlFunction(d,i),f=Object.assign({sourceProj:s,sourceTileGrid:l,targetProj:i,targetTileGrid:u,tileCoord:d,wrappedTileCoord:c,pixelRatio:a,gutter:this.getGutterForProjection(s),getTileFunction:(p,g,y,v)=>this.getTile(p,g,y,v,s)},this.tileOptions),h=new o6(f);return h.key=this.getKey(),h}getTile(e,n,r,i,s){const o=this.getProjection();if(o&&s&&!dA(o,s))return this.getReprojTile_(e,n,r,s,o);const a=this.getTileSize(e),l=this.loader_,u=new AbortController,d={signal:u.signal,crossOrigin:this.crossOrigin_},c=this.getTileCoordForTileUrlFunction([e,n,r]);if(!c)return null;const f=c[0],h=c[1],p=c[2];function g(){return Qze(function(){return l(f,h,p,d)})}const y=Object.assign({tileCoord:[e,n,r],loader:g,size:a,controller:u},this.tileOptions),v=new mAe(y);return v.key=this.getKey(),v.addEventListener(Ru.CHANGE,this.handleTileChange_),v}handleTileChange_(e){const n=e.target,r=no(n),i=n.getState();let s;i==Fs.LOADING?(this.tileLoadingKeys_[r]=!0,s=WR.TILELOADSTART):r in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[r],s=i==Fs.ERROR?WR.TILELOADERROR:i==Fs.LOADED?WR.TILELOADEND:void 0),s&&this.dispatchEvent(new Kze(s,n))}getTileGridForProjection(e){const n=this.getProjection();if(this.tileGrid&&(!n||dA(n,e)))return this.tileGrid;const r=no(e);return r in this.tileGridForProjection_||(this.tileGridForProjection_[r]=Jze(e)),this.tileGridForProjection_[r]}setTileGridForProjection(e,n){const r=Ti(e);if(r){const i=no(r);i in this.tileGridForProjection_||(this.tileGridForProjection_[i]=n)}}}function ca(t){return(e,...n)=>lXe(t,e,n)}function e1(t,e){return ca(Nke(t,e).get)}const{apply:lXe,construct:YHt,defineProperty:XHt,get:ZHt,getOwnPropertyDescriptor:Nke,getPrototypeOf:z6,has:KHt,ownKeys:uXe,set:JHt,setPrototypeOf:QHt}=Reflect,{iterator:uE,species:eGt,toStringTag:cXe,for:tGt}=Symbol,dXe=Object,{create:U6,defineProperty:fXe,freeze:nGt,is:rGt}=dXe,hXe=Array,pXe=hXe.prototype,Bke=pXe[uE],mXe=ca(Bke),jke=ArrayBuffer,gXe=jke.prototype;e1(gXe,"byteLength");const Nve=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:null;Nve&&e1(Nve.prototype,"byteLength");const zke=z6(Uint8Array);zke.from;const ll=zke.prototype;ll[uE];ca(ll.keys);ca(ll.values);ca(ll.entries);ca(ll.set);ca(ll.reverse);ca(ll.fill);ca(ll.copyWithin);ca(ll.sort);ca(ll.slice);ca(ll.subarray);e1(ll,"buffer");e1(ll,"byteOffset");e1(ll,"length");e1(ll,cXe);const yXe=Uint8Array,Uke=Uint16Array,q6=Uint32Array,bXe=Float32Array,n2=z6([][uE]()),qke=ca(n2.next),vXe=ca(function*(){}().next),xXe=z6(n2),wXe=DataView.prototype,_Xe=ca(wXe.getUint16),H6=WeakMap,Hke=H6.prototype,Gke=ca(Hke.get),EXe=ca(Hke.set),Vke=new H6,CXe=U6(null,{next:{value:function(){const e=Gke(Vke,this);return qke(e)}},[uE]:{value:function(){return this}}});function SXe(t){if(t[uE]===Bke&&n2.next===qke)return t;const e=U6(CXe);return EXe(Vke,e,mXe(t)),e}const AXe=new H6,kXe=U6(xXe,{next:{value:function(){const e=Gke(AXe,this);return vXe(e)},writable:!0,configurable:!0}});for(const t of uXe(n2))t!=="next"&&fXe(kXe,t,Nke(n2,t));const Wke=new jke(4),TXe=new bXe(Wke),DXe=new q6(Wke),ad=new Uke(512),ld=new yXe(512);for(let t=0;t<256;++t){const e=t-127;e<-24?(ad[t]=0,ad[t|256]=32768,ld[t]=24,ld[t|256]=24):e<-14?(ad[t]=1024>>-e-14,ad[t|256]=1024>>-e-14|32768,ld[t]=-e-1,ld[t|256]=-e-1):e<=15?(ad[t]=e+15<<10,ad[t|256]=e+15<<10|32768,ld[t]=13,ld[t|256]=13):e<128?(ad[t]=31744,ad[t|256]=64512,ld[t]=24,ld[t|256]=24):(ad[t]=31744,ad[t|256]=64512,ld[t]=13,ld[t|256]=13)}const G6=new q6(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,G6[t]=e|n}for(let t=1024;t<2048;++t)G6[t]=939524096+(t-1024<<13);const t1=new q6(64);for(let t=1;t<31;++t)t1[t]=t<<23;t1[31]=1199570944;t1[32]=2147483648;for(let t=33;t<63;++t)t1[t]=2147483648+(t-32<<23);t1[63]=3347054592;const Yke=new Uke(64);for(let t=1;t<64;++t)t!==32&&(Yke[t]=1024);function LXe(t){const e=t>>10;return DXe[0]=G6[Yke[e]+(t&1023)]+t1[e],TXe[0]}function Xke(t,e,...n){return LXe(_Xe(t,e,...SXe(n)))}var V6={exports:{}};function Zke(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,s=i.slice(0,i.indexOf(">")+1),o=['"',"'"];for(let a=0;a/]`,s);if(r&&console.log("[xml-utils] start:",o),o===-1)return;const a=t.slice(o+e.length);let l=sF(a,"^[^<]*[ /]>",0);const u=l!==-1&&a[l-1]==="/";if(r&&console.log("[xml-utils] selfClosing:",u),u===!1)if(i){let h=0,p=1,g=0;for(;(l=sF(a,"[ /]"+e+">",h))!==-1;){const y=a.substring(h,l+1);if(p+=Bve(y,"<"+e+`[ - >]`),g+=Bve(y,""),g>=p)break;h=l}}else l=sF(a,"[ /]"+e+">",0);const d=o+e.length+l+1;if(r&&console.log("[xml-utils] end:",d),d===-1)return;const c=t.slice(o,d);let f;return u?f=null:f=c.slice(c.indexOf(">")+1,c.lastIndexOf("<")),{inner:f,outer:c,start:o,end:d}}Y6.exports=e3e;Y6.exports.default=e3e;var $Xe=Y6.exports;const PXe=$Xe;function t3e(t,e,n){const r=[],i=n&&n.debug||!1,s=n&&typeof n.nested=="boolean"?n.nested:!0;let o=n&&n.startIndex||0,a;for(;a=PXe(t,e,{debug:i,startIndex:o});)s?o=a.start+1+e.length:o=a.end,r.push(a);return i&&console.log("findTagsByName found",r.length,"tags"),r}W6.exports=t3e;W6.exports.default=t3e;var NXe=W6.exports;const BXe=ua(NXe),x_={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"},dd={};for(const t in x_)x_.hasOwnProperty(t)&&(dd[x_[t]]=parseInt(t,10));const jXe=[dd.BitsPerSample,dd.ExtraSamples,dd.SampleFormat,dd.StripByteCounts,dd.StripOffsets,dd.StripRowCounts,dd.TileByteCounts,dd.TileOffsets,dd.SubIFDs],oF={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"},mr={};for(const t in oF)oF.hasOwnProperty(t)&&(mr[oF[t]]=parseInt(t,10));const vl={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},zXe={Unspecified:0,Assocalpha:1,Unassalpha:2},iGt={Version:0,AddCompression:1},sGt={None:0,Deflate:1,Zstandard:2},UXe={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 qXe(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3);let s;for(let o=0,a=0;o>24,l=t[i+2]<<24>>24;let u=(o+16)/116,d=a/500+u,c=u-l/200,f,h,p;d=YXe*(d*d*d>.008856?d*d*d:(d-16/116)/7.787),u=XXe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),c=ZXe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),f=d*3.2406+u*-1.5372+c*-.4986,h=d*-.9689+u*1.8758+c*.0415,p=d*.0557+u*-.204+c*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[s]=Math.max(0,Math.min(1,f))*255,r[s+1]=Math.max(0,Math.min(1,h))*255,r[s+2]=Math.max(0,Math.min(1,p))*255}return r}const n3e=new Map;function fm(t,e){Array.isArray(t)||(t=[t]),t.forEach(n=>n3e.set(n,e))}async function r3e(t){const e=n3e.get(t.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${t.Compression}`);const n=await e();return new n(t)}fm([void 0,1],()=>dm(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default));fm(5,()=>dm(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(t=>t.default));fm(6,()=>{throw new Error("old style JPEG compression is not supported.")});fm(7,()=>dm(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(t=>t.default));fm([8,32946],()=>dm(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(t=>t.default));fm(32773,()=>dm(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(t=>t.default));fm(34887,()=>dm(()=>import("./lerc-DZni-HPV.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url).then(async t=>(await t.zstd.init(),t)).then(t=>t.default));fm(50001,()=>dm(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([20,1]),import.meta.url).then(t=>t.default));function bD(t,e,n,r=1){return new(Object.getPrototypeOf(t)).constructor(e*n*r)}function JXe(t,e,n,r,i){const s=e/r,o=n/i;return t.map(a=>{const l=bD(a,r,i);for(let u=0;u{const l=bD(a,r,i);for(let u=0;u>8-i-D&c;else if(D+i<=16)d[C]=a.getUint16(A)>>16-i-D&c;else if(D+i<=24){const T=a.getUint16(A)<<8|a.getUint8(A+2);d[C]=T>>24-i-D&c}else d[C]=a.getUint32(A)>>32-i-D&c}}}}return d.buffer}class i3e{constructor(e,n,r,i,s,o){this.fileDirectory=e,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=s?{}: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=o}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,s){return Xke(this,i,s)};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 G5(r,i,n)}async getTileOrStrip(e,n,r,i,s){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:u}=this;this.planarConfiguration===1?l=n*o+e:this.planarConfiguration===2&&(l=r*o*a+n*o+e);let d,c;this.isTiled?(d=this.fileDirectory.TileOffsets[l],c=this.fileDirectory.TileByteCounts[l]):(d=this.fileDirectory.StripOffsets[l],c=this.fileDirectory.StripByteCounts[l]);const f=(await this.source.fetch([{offset:d,length:c}],s))[0];let h;return u===null||!u[l]?(h=(async()=>{let p=await i.decode(this.fileDirectory,f);const g=this.getSampleFormat(),y=this.getBitsPerSample();return sZe(g,y)&&(p=oZe(p,g,this.planarConfiguration,this.getSamplesPerPixel(),y,this.getTileWidth(),this.getBlockHeight(n))),p})(),u!==null&&(u[l]=h)):h=u[l],{x:e,y:n,sample:r,data:await h}}async _readRaster(e,n,r,i,s,o,a,l,u){const d=this.getTileWidth(),c=this.getTileHeight(),f=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(e[0]/d),0),g=Math.min(Math.ceil(e[2]/d),Math.ceil(f/d)),y=Math.max(Math.floor(e[1]/c),0),v=Math.min(Math.ceil(e[3]/c),Math.ceil(h/c)),x=e[2]-e[0];let w=this.getBytesPerPixel();const C=[],A=[];for(let k=0;k{const z=$.data,U=new DataView(z),X=this.getBlockHeight($.y),Y=$.y*c,J=$.x*d,ae=Y+X,Q=($.x+1)*d,B=A[K],pe=Math.min(X,X-(ae-e[3]),h-Y),he=Math.min(d,d-(Q-e[2]),f-J);for(let ze=Math.max(0,e[1]-Y);zed[2]||d[1]>d[3])throw new Error("Invalid subsets");const c=d[2]-d[0],f=d[3]-d[1],h=c*f,p=this.getSamplesPerPixel();if(!n||!n.length)for(let x=0;x=p)return Promise.reject(new RangeError(`Invalid sample index '${n[x]}'.`));let g;if(r){const x=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,w=Math.max.apply(null,this.fileDirectory.BitsPerSample);g=G5(x,w,h*n.length),l&&g.fill(l)}else{g=[];for(let x=0;xu[2]||u[1]>u[3])throw new Error("Invalid subsets");const d=this.fileDirectory.PhotometricInterpretation;if(d===vl.RGB){let v=[0,1,2];if(this.fileDirectory.ExtraSamples!==zXe.Unspecified&&a){v=[];for(let x=0;xiF(s,"sample")===void 0):i=i.filter(s=>Number(iF(s,"sample"))===e);for(let s=0;s[a+i*y+s*v,c+l*y+u*v]),p=h.map(y=>y[0]),g=h.map(y=>y[1]);return[Math.min(...p),Math.min(...g),Math.max(...p),Math.max(...g)]}else{const i=this.getOrigin(),s=this.getResolution(),o=i[0],a=i[1],l=o+s[0]*r,u=a+s[1]*n;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class aZe{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 s;if(n){if(s=r+2**32*i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*r+i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}getInt64(e,n){let r=0;const i=(this._dataView.getUint8(e+(n?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(e+(n?o:7-o));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),r+=a*256**o}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 Xke(this._dataView,e,n)}getFloat32(e,n){return this._dataView.getFloat32(e,n)}getFloat64(e,n){return this._dataView.getFloat64(e,n)}}class lZe{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 s=0;s<8;s++){let o=this._dataView.getUint8(e+(this._littleEndian?s:7-s));r&&(i?o!==0&&(o=~(o-1)&255,i=!1):o=~o&255),n+=o*256**s}return r&&(n=-n),n}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const uZe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class cZe{constructor(e=uZe,n){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=n?Promise.resolve(n):new Promise(r=>{dm(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).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 s=this.messageId++,o=a=>{a.data.id===s&&(i.idle=!0,r(a.data.decoded),i.worker.removeEventListener("message",o))};i.worker.addEventListener("message",o),i.worker.postMessage({fileDirectory:e,buffer:n,id:s},[n])})}destroy(){this.workers&&(this.workers.forEach(e=>{e.worker.terminate()}),this.workers=null)}}const jve=`\r + >]`),g+=Bve(y,""),g>=p)break;h=l}}else l=sF(a,"[ /]"+e+">",0);const d=o+e.length+l+1;if(r&&console.log("[xml-utils] end:",d),d===-1)return;const c=t.slice(o,d);let f;return u?f=null:f=c.slice(c.indexOf(">")+1,c.lastIndexOf("<")),{inner:f,outer:c,start:o,end:d}}Y6.exports=e3e;Y6.exports.default=e3e;var $Xe=Y6.exports;const PXe=$Xe;function t3e(t,e,n){const r=[],i=n&&n.debug||!1,s=n&&typeof n.nested=="boolean"?n.nested:!0;let o=n&&n.startIndex||0,a;for(;a=PXe(t,e,{debug:i,startIndex:o});)s?o=a.start+1+e.length:o=a.end,r.push(a);return i&&console.log("findTagsByName found",r.length,"tags"),r}W6.exports=t3e;W6.exports.default=t3e;var NXe=W6.exports;const BXe=ua(NXe),x_={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"},dd={};for(const t in x_)x_.hasOwnProperty(t)&&(dd[x_[t]]=parseInt(t,10));const jXe=[dd.BitsPerSample,dd.ExtraSamples,dd.SampleFormat,dd.StripByteCounts,dd.StripOffsets,dd.StripRowCounts,dd.TileByteCounts,dd.TileOffsets,dd.SubIFDs],oF={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"},mr={};for(const t in oF)oF.hasOwnProperty(t)&&(mr[oF[t]]=parseInt(t,10));const vl={WhiteIsZero:0,BlackIsZero:1,RGB:2,Palette:3,TransparencyMask:4,CMYK:5,YCbCr:6,CIELab:8,ICCLab:9},zXe={Unspecified:0,Assocalpha:1,Unassalpha:2},iGt={Version:0,AddCompression:1},sGt={None:0,Deflate:1,Zstandard:2},UXe={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 qXe(t,e){const{width:n,height:r}=t,i=new Uint8Array(n*r*3);let s;for(let o=0,a=0;o>24,l=t[i+2]<<24>>24;let u=(o+16)/116,d=a/500+u,c=u-l/200,f,h,p;d=YXe*(d*d*d>.008856?d*d*d:(d-16/116)/7.787),u=XXe*(u*u*u>.008856?u*u*u:(u-16/116)/7.787),c=ZXe*(c*c*c>.008856?c*c*c:(c-16/116)/7.787),f=d*3.2406+u*-1.5372+c*-.4986,h=d*-.9689+u*1.8758+c*.0415,p=d*.0557+u*-.204+c*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[s]=Math.max(0,Math.min(1,f))*255,r[s+1]=Math.max(0,Math.min(1,h))*255,r[s+2]=Math.max(0,Math.min(1,p))*255}return r}const n3e=new Map;function fm(t,e){Array.isArray(t)||(t=[t]),t.forEach(n=>n3e.set(n,e))}async function r3e(t){const e=n3e.get(t.Compression);if(!e)throw new Error(`Unknown compression method identifier: ${t.Compression}`);const n=await e();return new n(t)}fm([void 0,1],()=>dm(()=>import("./raw-Dt1HMqYc.js"),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default));fm(5,()=>dm(()=>import("./lzw-DpvbRwG5.js"),__vite__mapDeps([2,1]),import.meta.url).then(t=>t.default));fm(6,()=>{throw new Error("old style JPEG compression is not supported.")});fm(7,()=>dm(()=>import("./jpeg-CdeCw_eT.js"),__vite__mapDeps([3,1]),import.meta.url).then(t=>t.default));fm([8,32946],()=>dm(()=>import("./deflate-CUkHh1nh.js"),__vite__mapDeps([4,5,1]),import.meta.url).then(t=>t.default));fm(32773,()=>dm(()=>import("./packbits-DQnG8s9w.js"),__vite__mapDeps([6,1]),import.meta.url).then(t=>t.default));fm(34887,()=>dm(()=>import("./lerc-BKAdx0UG.js"),__vite__mapDeps([7,5,8,1,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url).then(async t=>(await t.zstd.init(),t)).then(t=>t.default));fm(50001,()=>dm(()=>import("./webimage-BcnuJlio.js"),__vite__mapDeps([20,1]),import.meta.url).then(t=>t.default));function bD(t,e,n,r=1){return new(Object.getPrototypeOf(t)).constructor(e*n*r)}function JXe(t,e,n,r,i){const s=e/r,o=n/i;return t.map(a=>{const l=bD(a,r,i);for(let u=0;u{const l=bD(a,r,i);for(let u=0;u>8-i-D&c;else if(D+i<=16)d[C]=a.getUint16(A)>>16-i-D&c;else if(D+i<=24){const T=a.getUint16(A)<<8|a.getUint8(A+2);d[C]=T>>24-i-D&c}else d[C]=a.getUint32(A)>>32-i-D&c}}}}return d.buffer}class i3e{constructor(e,n,r,i,s,o){this.fileDirectory=e,this.geoKeys=n,this.dataView=r,this.littleEndian=i,this.tiles=s?{}: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=o}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,s){return Xke(this,i,s)};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 G5(r,i,n)}async getTileOrStrip(e,n,r,i,s){const o=Math.ceil(this.getWidth()/this.getTileWidth()),a=Math.ceil(this.getHeight()/this.getTileHeight());let l;const{tiles:u}=this;this.planarConfiguration===1?l=n*o+e:this.planarConfiguration===2&&(l=r*o*a+n*o+e);let d,c;this.isTiled?(d=this.fileDirectory.TileOffsets[l],c=this.fileDirectory.TileByteCounts[l]):(d=this.fileDirectory.StripOffsets[l],c=this.fileDirectory.StripByteCounts[l]);const f=(await this.source.fetch([{offset:d,length:c}],s))[0];let h;return u===null||!u[l]?(h=(async()=>{let p=await i.decode(this.fileDirectory,f);const g=this.getSampleFormat(),y=this.getBitsPerSample();return sZe(g,y)&&(p=oZe(p,g,this.planarConfiguration,this.getSamplesPerPixel(),y,this.getTileWidth(),this.getBlockHeight(n))),p})(),u!==null&&(u[l]=h)):h=u[l],{x:e,y:n,sample:r,data:await h}}async _readRaster(e,n,r,i,s,o,a,l,u){const d=this.getTileWidth(),c=this.getTileHeight(),f=this.getWidth(),h=this.getHeight(),p=Math.max(Math.floor(e[0]/d),0),g=Math.min(Math.ceil(e[2]/d),Math.ceil(f/d)),y=Math.max(Math.floor(e[1]/c),0),v=Math.min(Math.ceil(e[3]/c),Math.ceil(h/c)),x=e[2]-e[0];let w=this.getBytesPerPixel();const C=[],A=[];for(let k=0;k{const z=$.data,U=new DataView(z),X=this.getBlockHeight($.y),Y=$.y*c,J=$.x*d,ae=Y+X,Q=($.x+1)*d,B=A[K],pe=Math.min(X,X-(ae-e[3]),h-Y),he=Math.min(d,d-(Q-e[2]),f-J);for(let ze=Math.max(0,e[1]-Y);zed[2]||d[1]>d[3])throw new Error("Invalid subsets");const c=d[2]-d[0],f=d[3]-d[1],h=c*f,p=this.getSamplesPerPixel();if(!n||!n.length)for(let x=0;x=p)return Promise.reject(new RangeError(`Invalid sample index '${n[x]}'.`));let g;if(r){const x=this.fileDirectory.SampleFormat?Math.max.apply(null,this.fileDirectory.SampleFormat):1,w=Math.max.apply(null,this.fileDirectory.BitsPerSample);g=G5(x,w,h*n.length),l&&g.fill(l)}else{g=[];for(let x=0;xu[2]||u[1]>u[3])throw new Error("Invalid subsets");const d=this.fileDirectory.PhotometricInterpretation;if(d===vl.RGB){let v=[0,1,2];if(this.fileDirectory.ExtraSamples!==zXe.Unspecified&&a){v=[];for(let x=0;xiF(s,"sample")===void 0):i=i.filter(s=>Number(iF(s,"sample"))===e);for(let s=0;s[a+i*y+s*v,c+l*y+u*v]),p=h.map(y=>y[0]),g=h.map(y=>y[1]);return[Math.min(...p),Math.min(...g),Math.max(...p),Math.max(...g)]}else{const i=this.getOrigin(),s=this.getResolution(),o=i[0],a=i[1],l=o+s[0]*r,u=a+s[1]*n;return[Math.min(o,l),Math.min(a,u),Math.max(o,l),Math.max(a,u)]}}}class aZe{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 s;if(n){if(s=r+2**32*i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}if(s=2**32*r+i,!Number.isSafeInteger(s))throw new Error(`${s} exceeds MAX_SAFE_INTEGER. Precision may be lost. Please report if you get this message to https://github.com/geotiffjs/geotiff.js/issues`);return s}getInt64(e,n){let r=0;const i=(this._dataView.getUint8(e+(n?7:0))&128)>0;let s=!0;for(let o=0;o<8;o++){let a=this._dataView.getUint8(e+(n?o:7-o));i&&(s?a!==0&&(a=~(a-1)&255,s=!1):a=~a&255),r+=a*256**o}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 Xke(this._dataView,e,n)}getFloat32(e,n){return this._dataView.getFloat32(e,n)}getFloat64(e,n){return this._dataView.getFloat64(e,n)}}class lZe{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 s=0;s<8;s++){let o=this._dataView.getUint8(e+(this._littleEndian?s:7-s));r&&(i?o!==0&&(o=~(o-1)&255,i=!1):o=~o&255),n+=o*256**s}return r&&(n=-n),n}readOffset(e){return this._bigTiff?this.readUint64(e):this.readUint32(e)}}const uZe=typeof navigator<"u"&&navigator.hardwareConcurrency||2;class cZe{constructor(e=uZe,n){this.workers=null,this._awaitingDecoder=null,this.size=e,this.messageId=0,e&&(this._awaitingDecoder=n?Promise.resolve(n):new Promise(r=>{dm(()=>import("./decoder-CaSv2t6h.js"),[],import.meta.url).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 s=this.messageId++,o=a=>{a.data.id===s&&(i.idle=!0,r(a.data.decoded),i.worker.removeEventListener("message",o))};i.worker.addEventListener("message",o),i.worker.postMessage({fileDirectory:e,buffer:n,id:s},[n])})}destroy(){this.workers&&(this.workers.forEach(e=>{e.worker.terminate()}),this.workers=null)}}const jve=`\r \r `;function s3e(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 dZe(t){const e=t.split(`\r `).map(n=>{const r=n.split(":").map(i=>i.trim());return r[0]=r[0].toLowerCase(),r});return s3e(e)}function fZe(t){const[e,...n]=t.split(";").map(i=>i.trim()),r=n.map(i=>i.split("="));return{type:e,params:s3e(r)}}function V5(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 hZe(t,e){let n=null;const r=new TextDecoder("ascii"),i=[],s=`--${e}`,o=`${s}--`;for(let a=0;a<10;++a)r.decode(new Uint8Array(t,a,s.length))===s&&(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 pZe 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,s]=r;this._deleteIfExpired(i,s)===!1&&(yield[i,s.value])}e=[...this.oldCache];for(let n=e.length-1;n>=0;--n){const r=e[n],[i,s]=r;this.cache.has(i)||this._deleteIfExpired(i,s)===!1&&(yield[i,s.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 mZe(t){return new Promise(e=>setTimeout(e,t))}function gZe(t,e){const n=Array.isArray(t)?t:Array.from(t),r=Array.isArray(e)?e:Array.from(e);return n.map((i,s)=>[i,r[s]])}class ev extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,ev),this.name="AbortError"}}class yZe extends Error{constructor(e,n){super(n),this.errors=e,this.message=n,this.name="AggregateError"}}const bZe=yZe;class vZe{constructor(e,n,r=null){this.offset=e,this.length=n,this.data=r}get top(){return this.offset+this.length}}class zve{constructor(e,n,r){this.offset=e,this.length=n,this.blockIds=r}}class xZe extends J6{constructor(e,{blockSize:n=65536,cacheSize:r=100}={}){super(),this.source=e,this.blockSize=n,this.blockCache=new pZe({maxSize:r,onEviction:(i,s)=>{this.evictedBlocks.set(i,s)}}),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=[],s=[];this.evictedBlocks.clear();for(const{offset:f,length:h}of e){let p=f+h;const{fileSize:g}=this;g!==null&&(p=Math.min(p,g));const y=Math.floor(f/this.blockSize)*this.blockSize;for(let v=y;vthis.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 ev("Request was aborted");const u=s.map(f=>this.blockCache.get(f)||this.evictedBlocks.get(f)),d=u.filter(f=>!f);if(d.length)throw new bZe(d,"Request failed");const c=new Map(gZe(s,u));return this.readSliceData(e,c)}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=o*this.blockSize,u=l-a.offset,d=Math.min(u+this.blockSize,a.data.byteLength),c=a.data.slice(u,d),f=new vZe(l,c.byteLength,c,o);this.blockCache.set(o,f),this.abortedBlockIds.delete(o)}catch(a){if(a.name==="AbortError")a.signal=e,this.blockCache.delete(o),this.abortedBlockIds.add(o);else throw a}finally{this.blockRequests.delete(o)}})())}this.blockIdsToFetch.clear()}}groupBlocks(e){const n=Array.from(e).sort((o,a)=>o-a);if(n.length===0)return[];let r=[],i=null;const s=[];for(const o of n)i===null||i+1===o?(r.push(o),i=o):(s.push(new zve(r[0]*this.blockSize,r.length*this.blockSize,r)),r=[o],i=o);return s.push(new zve(r[0]*this.blockSize,r.length*this.blockSize,r)),s}readSliceData(e,n){return e.map(r=>{let i=r.offset+r.length;this.fileSize!==null&&(i=Math.min(this.fileSize,i));const s=Math.floor(r.offset/this.blockSize),o=Math.floor(i/this.blockSize),a=new ArrayBuffer(r.length),l=new Uint8Array(a);for(let u=s;u<=o;++u){const d=n.get(u),c=d.offset-r.offset,f=d.top-i;let h=0,p=0,g;c<0?h=-c:c>0&&(p=c),f<0?g=d.length-h:g=i-d.offset-h;const y=new Uint8Array(d.data,h,g);l.set(y,p)}return a})}}class Q6{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 eP{constructor(e){this.url=e}async request({headers:e,signal:n}={}){throw new Error("request is not implemented")}}class wZe extends Q6{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 _Ze extends eP{constructor(e,n){super(e),this.credentials=n}async request({headers:e,signal:n}={}){const r=await fetch(this.url,{headers:e,credentials:this.credentials,signal:n});return new wZe(r)}}class EZe extends Q6{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 CZe extends eP{constructRequest(e,n){return new Promise((r,i)=>{const s=new XMLHttpRequest;s.open("GET",this.url),s.responseType="arraybuffer";for(const[o,a]of Object.entries(e))s.setRequestHeader(o,a);s.onload=()=>{const o=s.response;r(new EZe(s,o))},s.onerror=i,s.onabort=()=>i(new ev("Request aborted")),s.send(),n&&(n.aborted&&s.abort(),n.addEventListener("abort",()=>s.abort()))})}async request({headers:e,signal:n}={}){return await this.constructRequest(e,n)}}const aF={};class SZe extends Q6{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 AZe extends eP{constructor(e){super(e),this.parsedUrl=aF.parse(this.url),this.httpApi=(this.parsedUrl.protocol==="http:",aF)}constructRequest(e,n){return new Promise((r,i)=>{const s=this.httpApi.get({...this.parsedUrl,headers:e},o=>{const a=new Promise(l=>{const u=[];o.on("data",d=>{u.push(d)}),o.on("end",()=>{const d=Buffer.concat(u).buffer;l(d)}),o.on("error",i)});r(new SZe(o,a))});s.on("error",i),n&&(n.aborted&&s.destroy(new ev("Request aborted")),n.addEventListener("abort",()=>s.destroy(new ev("Request aborted"))))})}async request({headers:e,signal:n}={}){return await this.constructRequest(e,n)}}class tP extends J6{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:s})=>`${i}-${i+s}`).join(",")}`},signal:n});if(r.ok)if(r.status===206){const{type:i,params:s}=fZe(r.getHeader("content-type"));if(i==="multipart/byteranges"){const c=hZe(await r.getData(),s.boundary);return this._fileSize=c[0].fileSize||null,c}const o=await r.getData(),{start:a,end:l,total:u}=V5(r.getHeader("content-range"));this._fileSize=u||null;const d=[{data:o,offset:a,length:l-a}];if(e.length>1){const c=await Promise.all(e.slice(1).map(f=>this.fetchSlice(f,n)));return d.concat(c)}return d}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,s=await this.client.request({headers:{...this.headers,Range:`bytes=${r}-${r+i}`},signal:n});if(s.ok)if(s.status===206){const o=await s.getData(),{total:a}=V5(s.getHeader("content-range"));return this._fileSize=a||null,{data:o,offset:r,length:i}}else{if(!this.allowFullFile)throw new Error("Server responded with full file");const o=await s.getData();return this._fileSize=o.byteLength,{data:o,offset:0,length:o.byteLength}}else throw new Error("Error fetching data.")}get fileSize(){return this._fileSize}}function nP(t,{blockSize:e,cacheSize:n}){return e===null?t:new xZe(t,{blockSize:e,cacheSize:n})}function kZe(t,{headers:e={},credentials:n,maxRanges:r=0,allowFullFile:i=!1,...s}={}){const o=new _Ze(t,n),a=new tP(o,e,r,i);return nP(a,s)}function TZe(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const s=new CZe(t),o=new tP(s,e,n,r);return nP(o,i)}function DZe(t,{headers:e={},maxRanges:n=0,allowFullFile:r=!1,...i}={}){const s=new AZe(t),o=new tP(s,e,n,r);return nP(o,i)}function W5(t,{forceXHR:e=!1,...n}={}){return typeof fetch=="function"&&!e?kZe(t,n):typeof XMLHttpRequest<"u"?TZe(t,n):DZe(t,n)}class LZe extends J6{constructor(e){super(),this.file=e}async fetchSlice(e,n){return new Promise((r,i)=>{const s=this.file.slice(e.offset,e.offset+e.length),o=new FileReader;o.onload=a=>r(a.target.result),o.onerror=i,o.onabort=i,o.readAsArrayBuffer(s),n&&n.addEventListener("abort",()=>o.abort())})}}function RZe(t){return new LZe(t)}function Y5(t){switch(t){case mr.BYTE:case mr.ASCII:case mr.SBYTE:case mr.UNDEFINED:return 1;case mr.SHORT:case mr.SSHORT:return 2;case mr.LONG:case mr.SLONG:case mr.FLOAT:case mr.IFD:return 4;case mr.RATIONAL:case mr.SRATIONAL:case mr.DOUBLE:case mr.LONG8:case mr.SLONG8:case mr.IFD8:return 8;default:throw new RangeError(`Invalid field type: ${t}`)}}function FZe(t){const e=t.GeoKeyDirectory;if(!e)return null;const n={};for(let r=4;r<=e[3]*4;r+=4){const i=UXe[e[r]],s=e[r+1]?x_[e[r+1]]:null,o=e[r+2],a=e[r+3];let l=null;if(!s)l=a;else{if(l=t[s],typeof l>"u"||l===null)throw new Error(`Could not get value of geoKey '${i}'.`);typeof l=="string"?l=l.substring(a,a+o-1):l.subarray&&(l=l.subarray(a,a+o),o===1&&(l=l[0]))}n[i]=l}return n}function By(t,e,n,r){let i=null,s=null;const o=Y5(e);switch(e){case mr.BYTE:case mr.ASCII:case mr.UNDEFINED:i=new Uint8Array(n),s=t.readUint8;break;case mr.SBYTE:i=new Int8Array(n),s=t.readInt8;break;case mr.SHORT:i=new Uint16Array(n),s=t.readUint16;break;case mr.SSHORT:i=new Int16Array(n),s=t.readInt16;break;case mr.LONG:case mr.IFD:i=new Uint32Array(n),s=t.readUint32;break;case mr.SLONG:i=new Int32Array(n),s=t.readInt32;break;case mr.LONG8:case mr.IFD8:i=new Array(n),s=t.readUint64;break;case mr.SLONG8:i=new Array(n),s=t.readInt64;break;case mr.RATIONAL:i=new Uint32Array(n*2),s=t.readUint32;break;case mr.SRATIONAL:i=new Int32Array(n*2),s=t.readInt32;break;case mr.FLOAT:i=new Float32Array(n),s=t.readFloat32;break;case mr.DOUBLE:i=new Float64Array(n),s=t.readFloat64;break;default:throw new RangeError(`Invalid field type: ${e}`)}if(e===mr.RATIONAL||e===mr.SRATIONAL)for(let a=0;ap.getWidth()-g.getWidth());for(let p=0;py||o&&o>v)break}}let f=n;if(a){const[h,p]=l.getOrigin(),[g,y]=u.getResolution(l);f=[Math.round((a[0]-h)/g),Math.round((a[1]-p)/y),Math.round((a[2]-h)/g),Math.round((a[3]-p)/y)],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 u.readRasters({...e,window:f})}}class tv extends o3e{constructor(e,n,r,i,s={}){super(),this.source=e,this.littleEndian=n,this.bigTiff=r,this.firstIFDOffset=i,this.cache=s.cache||!1,this.ifdRequests=[],this.ghostValues=null}async getSlice(e,n){const r=this.bigTiff?4048:1024;return new lZe((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 s=this.bigTiff?i.readUint64(e):i.readUint16(e),o=s*n+(this.bigTiff?16:6);i.covers(e,o)||(i=await this.getSlice(e,o));const a={};let l=e+(this.bigTiff?8:2);for(let c=0;c{const n=await this.ifdRequests[e-1];if(n.nextIFDByteOffset===0)throw new tS(e);return this.parseFileDirectoryAt(n.nextIFDByteOffset)})(),this.ifdRequests[e]}async getImage(e=0){const n=await this.requestIFD(e);return new i3e(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 tS)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===By(i,mr.ASCII,n.length,e)){const o=By(i,mr.ASCII,r,e).split(` @@ -1071,7 +1071,7 @@ ${a}`)}return u}(t,"",0)}function zl(t,e,n){return t.fields=e||[],t.fname=n,t}fu color: white; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Econtent-copy%3C/title%3E%3Cpath d='M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z' fill='white' /%3E%3C/svg%3E") } -`,vAt=t=>{(()=>{t.emitDrawnFeatures(),t.multipleFeatures||(t.draw.setActive(!1),t.selectionEvents.removeSelectionEvent(),t.currentlyDrawing=!1)})(),t.requestUpdate()},xAt=t=>{const e=()=>{t.drawLayer.set("isDrawingEnabled",!0),t.draw.setActive(!0),t.selectionEvents.addSelectionEvent()},n=()=>{t.currentlyDrawing=!0,t.requestUpdate()};e(),n()},Q2e=(t,e)=>{var s;const r=J_(t.for),i=r.map;return t.drawLayer=r.addOrUpdateLayer({zIndex:100,type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:e},source:{type:"Vector"},interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:t.type,modify:t.allowModify,stopClick:!0}},{type:"select",options:{id:"selectHover",condition:"pointermove",style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}},{type:"select",options:{id:"selectClick",condition:"click",panIn:!0,style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}}]}),t.draw=r.interactions.drawInteraction,t.modify=r.interactions.drawInteractionmodify,ZI(t,r,t.layerId),(s=t.modify)==null||s.on("modifyend",()=>t.onModifyEnd()),r.addEventListener("addfeatures",()=>vAt(t)),{EoxMap:r,OlMap:i}},wAt=t=>{const e=()=>{t.drawnFeatures=[],t.draw.setActive(!1),t.selectionEvents.removeSelectionEvent(),t.drawLayer.getSource().clear(),t.geoJSON=null},n=()=>{t.emitDrawnFeatures(),t.currentlyDrawing=!1,t.requestUpdate()};e(),n()},_At=(t,e)=>{setTimeout(()=>{const r=t.drawLayer.getSource().getFeatures(),i=t.eoxMap.projection||"EPSG:3857",s=t.projection;t.drawnFeatures=s?r.map(a=>{a=a.clone();const l=a.getGeometry().transform(i,s);return a.setGeometry(l),a}):r;let o;switch(t.format){case"geojson":o=gAt(t.drawnFeatures);break;case"wkt":o=yAt(t.drawnFeatures);break;case"feature":o=t.drawnFeatures;break;default:o=t.drawnFeatures;break}t.updateGeoJSON(),t.requestUpdate(),e(o)},0)},EAt=t=>{const e=i=>{(i==null?void 0:i.detail.id)!=="SelectLayerClickInteraction"||!i.detail.feature||(t.drawLayer.getSource().addFeature(i.detail.feature),t.eoxMap.dispatchEvent(new CustomEvent("addfeatures",{detail:i.detail})))};return{addSelectionEvent:()=>{t.layerId&&(t.eoxMap.selectInteractions.SelectLayerHoverInteraction.setActive(!0),t.eoxMap.addEventListener("select",e))},removeSelectionEvent:()=>{var s;const i=(s=t.eoxMap.selectInteractions)==null?void 0:s.SelectLayerHoverInteraction;i&&(i.selectedFids=[],i.setActive(!1)),t.eoxMap.removeEventListener("select",e)}}},ZI=(t,e,n)=>{if(!n||!e)return;const r=JSON.parse(JSON.stringify(e.getLayerById(n).get("_jsonDefinition")))||null;if(!r){console.error(`Layer with id ${n} not found`);return}const i={type:"select",active:!1,options:{id:"SelectLayerHoverInteraction",condition:"pointermove",active:!1,style:{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"#3399CC","stroke-width":2.5}}},s={type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",multi:t.multipleFeatures,modify:t.allowModify,active:!1,style:{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"rgba(0, 0, 0,0.0)"}}};r.interactions=[i,s],e.addOrUpdateLayer(r);const o=t.draw;t.draw=e.selectInteractions.SelectLayerClickInteraction,o.setActive(!1),e.selectInteractions.SelectLayerClickInteraction.setActive(!1),e.selectInteractions.SelectLayerHoverInteraction.setActive(!1)},CAt=(t,e,n,r)=>{if(e){if(n){r&&n!==r&&eEe(t,e),ZI(t,e,n);return}if(!n&&r){eEe(t,e);return}}};function eEe(t,e){e&&(t.discardDrawing(),t.selectionEvents.removeSelectionEvent(),t.draw=e.interactions.drawInteraction,e.selectInteractions.SelectLayerClickInteraction.remove(),e.selectInteractions.SelectLayerHoverInteraction.remove())}const mR=':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24);}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';function SAt(t,e){function n(s){s.preventDefault(),s.stopPropagation()}function r(s){s.srcElement.style.opacity="0.4"}function i(s){s.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(s=>{e.addEventListener(s,n,!1),["dragenter","dragover"].includes(s)?e.addEventListener(s,r,!1):e.addEventListener(s,i,!1)}),e.addEventListener("drop",s=>s$e(s,t),!1)}function AAt(t){t.preventDefault(),t.stopPropagation()}function s$e(t,e){AAt(t);const n=t.dataTransfer?t.dataTransfer.files:t.target.files;Array.from(n).forEach(r=>kAt(r,e))}function kAt(t,e){const n=new FileReader;n.readAsText(t),n.onloadend=function(){typeof n.result=="string"&&e.handleFeatureChange(n.result)}}var zb,Ub,X2,qb;class TAt extends ei{constructor(){super();gn(this,zb);gn(this,Ub);gn(this,X2);gn(this,qb);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.layerId="",this.drawnFeatures=[],this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.projection="EPSG:4326",this.type="Polygon",this.selectionEvents=null,this.format="feature",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},layerId:{attribute:"layer-id",type:String},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},projection:{type:String},noShadow:{type:Boolean},format:{type:String},type:{type:String},unstyled:{type:Boolean}}}set layerId(n){CAt(this,this.eoxMap,n,Wt(this,qb)),bs(this,qb,n)}get layerId(){return Wt(this,qb)}startDrawing(){xAt(this)}discardDrawing(){wAt(this)}handleFeatureChange(n,r=!1){this.eoxMap.parseTextToFeature(n||JSON.stringify(Pbe),this.drawLayer,this.eoxMap,r)}handleFilesChange(n){s$e(n,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){bs(this,X2,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||Pbe,void 0,2))}emitDrawnFeatures(){_At(this,r=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:r}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:n,OlMap:r}=Q2e(this,this.multipleFeatures);this.eoxMap=n,bs(this,Ub,r),this.selectionEvents=EAt(this),this.importFeatures&&SAt(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(n){if(n.has("for")){const{EoxMap:r,OlMap:i}=Q2e(this,this.multipleFeatures);this.eoxMap=r,bs(this,Ub,i)}}get eoxMap(){return Wt(this,zb)}set eoxMap(n){const r=Wt(this,zb);bs(this,zb,n),this.requestUpdate("eoxMap",r)}render(){var n;return tt` +`,vAt=t=>{(()=>{t.emitDrawnFeatures(),t.multipleFeatures||(t.draw.setActive(!1),t.selectionEvents.removeSelectionEvent(),t.currentlyDrawing=!1)})(),t.requestUpdate()},xAt=t=>{const e=()=>{t.drawLayer.set("isDrawingEnabled",!0),t.draw.setActive(!0),t.selectionEvents.addSelectionEvent()},n=()=>{t.currentlyDrawing=!0,t.requestUpdate()};e(),n()},Q2e=(t,e)=>{var s;const r=J_(t.for),i=r.map;return t.drawLayer=r.addOrUpdateLayer({zIndex:100,type:"Vector",properties:{id:"drawLayer",layerControlHide:!0,isDrawingEnabled:!1,multipleFeatures:e},source:{type:"Vector"},interactions:[{type:"draw",options:{active:!1,id:"drawInteraction",type:t.type,modify:t.allowModify,stopClick:!0}},{type:"select",options:{id:"selectHover",condition:"pointermove",style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}},{type:"select",options:{id:"selectClick",condition:"click",panIn:!0,style:{"fill-color":"rgba(51, 153, 204,0.5)","stroke-color":"#3399CC","stroke-width":2.5}}}]}),t.draw=r.interactions.drawInteraction,t.modify=r.interactions.drawInteractionmodify,ZI(t,r,t.layerId),(s=t.modify)==null||s.on("modifyend",()=>t.onModifyEnd()),r.addEventListener("addfeatures",()=>vAt(t)),{EoxMap:r,OlMap:i}},wAt=t=>{const e=()=>{t.drawnFeatures=[],t.draw.setActive(!1),t.selectionEvents.removeSelectionEvent(),t.drawLayer.getSource().clear(),t.geoJSON=null},n=()=>{t.emitDrawnFeatures(),t.currentlyDrawing=!1,t.requestUpdate()};e(),n()},_At=(t,e)=>{setTimeout(()=>{const r=t.drawLayer.getSource().getFeatures(),i=t.eoxMap.projection||"EPSG:3857",s=t.projection;t.drawnFeatures=s?r.map(a=>{a=a.clone();const l=a.getGeometry().transform(i,s);return a.setGeometry(l),a}):r;let o;switch(t.format){case"geojson":o=gAt(t.drawnFeatures);break;case"wkt":o=yAt(t.drawnFeatures);break;case"feature":o=t.drawnFeatures;break;default:o=t.drawnFeatures;break}t.updateGeoJSON(),t.requestUpdate(),e(o)},0)},EAt=t=>{const e=i=>{(i==null?void 0:i.detail.id)!=="SelectLayerClickInteraction"||!i.detail.feature||(t.drawLayer.getSource().addFeature(i.detail.feature),t.eoxMap.dispatchEvent(new CustomEvent("addfeatures",{detail:i.detail})))};return{addSelectionEvent:()=>{t.layerId&&(t.eoxMap.selectInteractions.SelectLayerHoverInteraction.setActive(!0),t.eoxMap.addEventListener("select",e))},removeSelectionEvent:()=>{var s;const i=(s=t.eoxMap.selectInteractions)==null?void 0:s.SelectLayerHoverInteraction;i&&(i.selectedFids=[],i.setActive(!1)),t.eoxMap.removeEventListener("select",e)}}},ZI=(t,e,n)=>{if(!n||!e)return;const r=JSON.parse(JSON.stringify(e.getLayerById(n).get("_jsonDefinition")))||null;if(!r){console.error(`Layer with id ${n} not found`);return}const i={type:"select",active:!1,options:{id:"SelectLayerHoverInteraction",condition:"pointermove",active:!1,style:{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"#3399CC","stroke-width":2.5}}},s={type:"select",options:{id:"SelectLayerClickInteraction",condition:"click",multi:t.multipleFeatures,modify:t.allowModify,active:!1,style:{"fill-color":"rgba(0, 0, 0,0.0)","stroke-color":"rgba(0, 0, 0,0.0)"}}};r.interactions=[i,s],e.addOrUpdateLayer(r);const o=t.draw;t.draw=e.selectInteractions.SelectLayerClickInteraction,o.setActive(!1),e.selectInteractions.SelectLayerClickInteraction.setActive(!1),e.selectInteractions.SelectLayerHoverInteraction.setActive(!1)},CAt=(t,e,n,r)=>{if(e){if(n){r&&n!==r&&eEe(t,e),ZI(t,e,n);return}if(!n&&r){eEe(t,e);return}}};function eEe(t,e){e&&(t.discardDrawing(),t.selectionEvents.removeSelectionEvent(),t.draw=e.interactions.drawInteraction,e.selectInteractions.SelectLayerClickInteraction.remove(),e.selectInteractions.SelectLayerHoverInteraction.remove())}const mR=':root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24);}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}';function SAt(t,e){function n(s){s.preventDefault(),s.stopPropagation()}function r(s){s.srcElement.style.opacity="0.4"}function i(s){s.srcElement.style.opacity="1"}["dragenter","dragover","dragleave","drop"].forEach(s=>{e.addEventListener(s,n,!1),["dragenter","dragover"].includes(s)?e.addEventListener(s,r,!1):e.addEventListener(s,i,!1)}),e.addEventListener("drop",s=>s$e(s,t),!1)}function AAt(t){t.preventDefault(),t.stopPropagation()}function s$e(t,e){AAt(t);const n=t.dataTransfer?t.dataTransfer.files:t.target.files;Array.from(n).forEach(r=>kAt(r,e))}function kAt(t,e){const n=new FileReader;n.readAsText(t),n.onloadend=function(){typeof n.result=="string"&&e.handleFeatureChange(n.result)}}var zb,Ub,X2,qb;class TAt extends ei{constructor(){super();gn(this,zb);gn(this,Ub);gn(this,X2);gn(this,qb);this.allowModify=!1,this.for="eox-map",this.currentlyDrawing=!1,this.draw=null,this.drawLayer=null,this.layerId="",this.drawnFeatures=[],this.modify=null,this.multipleFeatures=!1,this.importFeatures=!1,this.showEditor=!1,this.showList=!1,this.projection="EPSG:4326",this.type="Polygon",this.selectionEvents=null,this.format="feature",this.unstyled=!1,this.noShadow=!1}static get properties(){return{allowModify:{attribute:"allow-modify",type:Boolean},for:{type:String},currentlyDrawing:{attribute:!1,state:!0,type:Boolean},draw:{attribute:!1,state:!0},drawLayer:{attribute:!1,state:!0},layerId:{attribute:"layer-id",type:String},drawnFeatures:{attribute:!1,state:!0,type:Array},modify:{attribute:!1,state:!0},multipleFeatures:{attribute:"multiple-features",type:Boolean},importFeatures:{attribute:"import-features",type:Boolean},showEditor:{attribute:"show-editor",type:Boolean},showList:{attribute:"show-list",type:Boolean},projection:{type:String},noShadow:{type:Boolean},format:{type:String},type:{type:String},unstyled:{type:Boolean}}}set layerId(n){CAt(this,this.eoxMap,n,Wt(this,qb)),bs(this,qb,n)}get layerId(){return Wt(this,qb)}startDrawing(){xAt(this)}discardDrawing(){wAt(this)}handleFeatureChange(n,r=!1){this.eoxMap.parseTextToFeature(n||JSON.stringify(Pbe),this.drawLayer,this.eoxMap,r)}handleFilesChange(n){s$e(n,this)}onModifyEnd(){this.emitDrawnFeatures()}updateGeoJSON(){bs(this,X2,JSON.stringify(this.eoxMap.parseFeature(this.drawnFeatures)||Pbe,void 0,2))}emitDrawnFeatures(){_At(this,r=>{this.dispatchEvent(new CustomEvent("drawupdate",{detail:r}))})}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){const{EoxMap:n,OlMap:r}=Q2e(this,this.multipleFeatures);this.eoxMap=n,bs(this,Ub,r),this.selectionEvents=EAt(this),this.importFeatures&&SAt(this,this.eoxMap),this.updateGeoJSON(),this.requestUpdate()}updated(n){if(n.has("for")){const{EoxMap:r,OlMap:i}=Q2e(this,this.multipleFeatures);this.eoxMap=r,bs(this,Ub,i)}}get eoxMap(){return Wt(this,zb)}set eoxMap(n){const r=Wt(this,zb);bs(this,zb,n),this.requestUpdate("eoxMap",r)}disconnectedCallback(){var n;(n=this.eoxMap)==null||n.map.removeLayer(this.drawLayer),super.disconnectedCallback()}render(){var n;return tt` - + diff --git a/project.json b/project.json index f49eaeb10..93c0e4fbd 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1733738714268,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.13.7","@cypress/mount-utils":"4.1.1","cypress":"13.16.0","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.14.2"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"storybookVersion":"8.4.5","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.4.5"},"@storybook/addon-interactions":{"version":"8.4.5"},"@storybook/blocks":{"version":"8.4.5"},"@storybook/csf-tools":{"version":"8.4.5"},"@storybook/test":{"version":"8.4.5"},"@storybook/theming":{"version":"8.4.5"},"@storybook/web-components":{"version":"8.4.5"},"@storybook/web-components-vite":{"version":"8.4.5"},"storybook":{"version":"8.4.5"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}} \ No newline at end of file +{"generatedAt":1733739080258,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@cypress/code-coverage":"3.13.7","@cypress/mount-utils":"4.1.1","cypress":"13.16.0","cypress-fail-on-console-error":"5.1.1","cypress-lit":null,"cypress-network-idle":"1.14.2"},"monorepo":"Workspaces","packageManager":{"type":"npm","version":"10.8.2"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":0,"storybookVersion":"8.4.5","storybookVersionSpecifier":"^8.0.0","language":"javascript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.4.5"},"@storybook/addon-interactions":{"version":"8.4.5"},"@storybook/blocks":{"version":"8.4.5"},"@storybook/csf-tools":{"version":"8.4.5"},"@storybook/test":{"version":"8.4.5"},"@storybook/theming":{"version":"8.4.5"},"@storybook/web-components":{"version":"8.4.5"},"@storybook/web-components-vite":{"version":"8.4.5"},"storybook":{"version":"8.4.5"}},"addons":{"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null}}} \ No newline at end of file