MCPcopy Index your code
hub / github.com/plotly/plotly.py / js

Function js

js/lib/mimeExtension.js:1994–1994  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1992`),ce=le.length,q=Math.round(I*B),Z=B,ee=B*2,V=0,oe=ce*q+ee;z.height<oe&&(z.height=oe),F.fillStyle="#000",F.fillRect(0,0,z.width,z.height),F.fillStyle="#fff";var ie,j,Q,re,ue,_e=0,we="";function Re(){if(we!==""){var fe=F.measureText(we).width;F.fillText(we,Z+Q,ee+re),Q+=fe}}function ze(){return""+Math.round(ue)+"px "}function Xe(fe,Be){var Qe=""+F.font;if(U.subscripts===!0){var at=fe.indexOf(M),$e=Be.indexOf(M),It=at>-1?parseInt(fe[1+at]):0,Pt=$e>-1?parseInt(Be[1+$e]):0;It!==Pt&&(Qe=Qe.replace(ze(),"?px "),ue*=Math.pow(.75,Pt-It),Qe=Qe.replace("?px ",ze())),re+=.25*q*(Pt-It)}if(U.superscripts===!0){var Vt=fe.indexOf(_),Wt=Be.indexOf(_),Cr=Vt>-1?parseInt(fe[1+Vt]):0,yr=Wt>-1?parseInt(Be[1+Wt]):0;Cr!==yr&&(Qe=Qe.replace(ze(),"?px "),ue*=Math.pow(.75,yr-Cr),Qe=Qe.replace("?px ",ze())),re-=.25*q*(yr-Cr)}if(U.bolds===!0){var qr=fe.indexOf(m)>-1,Mr=Be.indexOf(m)>-1;!qr&&Mr&&(Dr?Qe=Qe.replace("italic ","italic bold "):Qe="bold "+Qe),qr&&!Mr&&(Qe=Qe.replace("bold ",""))}if(U.italics===!0){var Dr=fe.indexOf(T)>-1,xt=Be.indexOf(T)>-1;!Dr&&xt&&(Qe="italic "+Qe),Dr&&!xt&&(Qe=Qe.replace("italic ",""))}F.font=Qe}for(ie=0;ie<ce;++ie){var tt=le[ie]+`
1993`;for(Q=0,re=ie*q,ue=B,we="",j=0;j<tt.length;++j){var it=j+_e<J.length?J[j+_e]:J[J.length-1];O===it?we+=tt[j]:(Re(),we=tt[j],it!==void 0&&(Xe(O,it),O=it))}Re(),_e+=tt.length;var et=Math.round(Q+2*Z)|0;V<et&&(V=et)}var nt=V,Ae=ee+q*ce,me=i(F.getImageData(0,0,nt,Ae).data,[Ae,nt,4]);return me.pick(-1,-1,0).transpose(1,0)}function y(z,F){var N=o(z,128);return F?n(N.cells,N.positions,.25):{edges:N.cells,positions:N.positions}}function f(z,F,N,B){var I=y(z,B),U=v(I.positions,F,N),O=I.edges,X=F.orientation==="ccw";if(a(U,O),F.polygons||F.polygon||F.polyline){for(var J=h(O,U),se=new Array(J.length),le=0;le<J.length;++le){for(var ce=J[le],q=new Array(ce.length),Z=0;Z<ce.length;++Z){for(var ee=ce[Z],V=new Array(ee.length),oe=0;oe<ee.length;++oe)V[oe]=U[ee[oe]].slice();X&&V.reverse(),q[Z]=V}se[le]=q}return se}else return F.triangles||F.triangulate||F.triangle?{cells:s(U,O,{delaunay:!1,exterior:!1,interior:!0}),positions:U}:{edges:O,positions:U}}function R(z,F,N){try{return f(z,F,N,!0)}catch{}try{return f(z,F,N,!1)}catch{}return F.polygons||F.polyline||F.polygon?[]:F.triangles||F.triangulate||F.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function L(z,F,N,B){var I=64,U=1.25,O={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};B&&(B.size&&B.size>0&&(I=B.size),B.lineSpacing&&B.lineSpacing>0&&(U=B.lineSpacing),B.styletags&&B.styletags.breaklines&&(O.breaklines=!!B.styletags.breaklines),B.styletags&&B.styletags.bolds&&(O.bolds=!!B.styletags.bolds),B.styletags&&B.styletags.italics&&(O.italics=!!B.styletags.italics),B.styletags&&B.styletags.subscripts&&(O.subscripts=!!B.styletags.subscripts),B.styletags&&B.styletags.superscripts&&(O.superscripts=!!B.styletags.superscripts)),N.font=[B.fontStyle,B.fontVariant,B.fontWeight,I+"px",B.font].filter(function(J){return J}).join(" "),N.textAlign="start",N.textBaseline="alphabetic",N.direction="ltr";var X=u(F,N,z,I,U,O);return R(X,B,I)}},7721:function(e,t,r){"use strict";var o=r(5716);e.exports=i;function i(n){return o(n[0])*o(n[1])}},7765:function(e,t,r){"use strict";e.exports=l;var o=r(9618),i=r(1888),n=r(446),a=r(1570);function s(_){for(var w=_.length,A=0,M=0;M<w;++M)A=Math.max(A,_[M].length)|0;return A-1}function h(_,w){for(var A=_.length,M=i.mallocUint8(A),g=0;g<A;++g)M[g]=_[g]<w|0;return M}function c(_,w){for(var A=_.length,M=w*(w+1)/2*A|0,g=i.mallocUint32(M*2),b=0,v=0;v<A;++v)for(var u=_[v],w=u.length,y=0;y<w;++y)for(var f=0;f<y;++f){var R=u[f],L=u[y];g[b++]=Math.min(R,L)|0,g[b++]=Math.max(R,L)|0}var z=b/2|0;n(o(g,[z,2]));for(var F=2,v=2;v<b;v+=2)g[v-2]===g[v]&&g[v-1]===g[v+1]||(g[F++]=g[v],g[F++]=g[v+1]);return o(g,[F/2|0,2])}function m(_,w,A,M){for(var g=_.data,b=_.shape[0],v=i.mallocDouble(b),u=0,y=0;y<b;++y){var f=g[2*y],R=g[2*y+1];if(A[f]!==A[R]){var L=w[f],z=w[R];g[2*u]=f,g[2*u+1]=R,v[u++]=(z-M)/(z-L)}}return _.shape[0]=u,o(v,[u])}function d(_,w){var A=i.mallocInt32(w*2),M=_.shape[0],g=_.data;A[0]=0;for(var b=0,v=0;v<M;++v){var u=g[2*v];if(u!==b){for(A[2*b+1]=v;++b<u;)A[2*b]=v,A[2*b+1]=v;A[2*b]=v}}for(A[2*b+1]=M;++b<w;)A[2*b]=A[2*b+1]=M;return A}function T(_){for(var w=_.shape[0]|0,A=_.data,M=new Array(w),g=0;g<w;++g)M[g]=[A[2*g],A[2*g+1]];return M}function l(_,w,A,M){A=A||0,typeof M>"u"&&(M=s(_));var g=_.length;if(g===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var b=h(w,+A),v=c(_,M),u=m(v,w,b,+A),y=d(v,w.length|0),f=a(M)(_,v.data,y,b),R=T(v),L=[].slice.call(u.data,0,u.shape[0]);return i.free(b),i.free(v.data),i.free(u.data),i.free(y),{cells:f,vertexIds:R,vertexWeights:L}}},7766:function(e,t,r){"use strict";var o=r(9618),i=r(5298),n=r(1888);e.exports=u;var a=null,s=null,h=null;function c(y){a=[y.LINEAR,y.NEAREST_MIPMAP_LINEAR,y.LINEAR_MIPMAP_NEAREST,y.LINEAR_MIPMAP_NEAREST],s=[y.NEAREST,y.LINEAR,y.NEAREST_MIPMAP_NEAREST,y.NEAREST_MIPMAP_LINEAR,y.LINEAR_MIPMAP_NEAREST,y.LINEAR_MIPMAP_LINEAR],h=[y.REPEAT,y.CLAMP_TO_EDGE,y.MIRRORED_REPEAT]}function m(y){return typeof HTMLCanvasElement<"u"&&y instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&y instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&y instanceof HTMLVideoElement||typeof ImageData<"u"&&y instanceof ImageData}var d=function(y,f){i.muls(y,f,255)};function T(y,f,R){var L=y.gl,z=L.getParameter(L.MAX_TEXTURE_SIZE);if(f<0||f>z||R<0||R>z)throw new Error("gl-texture2d: Invalid texture size");return y._shape=[f,R],y.bind(),L.texImage2D(L.TEXTURE_2D,0,y.format,f,R,0,y.format,y.type,null),y._mipLevels=[0],y}function l(y,f,R,L,z,F){this.gl=y,this.handle=f,this.format=z,this.type=F,this._shape=[R,L],this._mipLevels=[0],this._magFilter=y.NEAREST,this._minFilter=y.NEAREST,this._wrapS=y.CLAMP_TO_EDGE,this._wrapT=y.CLAMP_TO_EDGE,this._anisoSamples=1;var N=this,B=[this._wrapS,this._wrapT];Object.defineProperties(B,[{get:function(){return N._wrapS},set:function(U){return N.wrapS=U}},{get:function(){return N._wrapT},set:function(U){return N.wrapT=U}}]),this._wrapVector=B;var I=[this._shape[0],this._shape[1]];Object.defineProperties(I,[{get:function(){return N._shape[0]},set:function(U){return N.width=U}},{get:function(){return N._shape[1]},set:function(U){return N.height=U}}]),this._shapeVector=I}var _=l.prototype;Object.defineProperties(_,{minFilter:{get:function(){return this._minFilter},set:function(y){this.bind();var f=this.gl;if(this.type===f.FLOAT&&a.indexOf(y)>=0&&(f.getExtension("OES_texture_float_linear")||(y=f.NEAREST)),s.indexOf(y)<0)throw new Error("gl-texture2d: Unknown filter mode "+y);return f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,y),this._minFilter=y}},magFilter:{get:function(){return this._magFilter},set:function(y){this.bind();var f=this.gl;if(this.type===f.FLOAT&&a.indexOf(y)>=0&&(f.getExtension("OES_texture_float_linear")||(y=f.NEAREST)),s.indexOf(y)<0)throw new Error("gl-texture2d: Unknown filter mode "+y);return f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,y),this._magFilter=y}},mipSamples:{get:function(){return this._anisoSamples},set:function(y){var f=this._anisoSamples;if(this._anisoSamples=Math.max(y,1)|0,f!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(y){if(this.bind(),h.indexOf(y)<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,y),this._wrapS=y}},wrapT:{get:function(){return this._wrapT},set:function(y){if(this.bind(),h.indexOf(y)<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,y),this._wrapT=y}},wrap:{get:function(){return this._wrapVector},set:function(y){if(Array.isArray(y)||(y=[y,y]),y.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var f=0;f<2;++f)if(h.indexOf(y[f])<0)throw new Error("gl-texture2d: Unknown wrap mode "+y);this._wrapS=y[0],this._wrapT=y[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),y}},shape:{get:function(){return this._shapeVector},set:function(y){if(!Array.isArray(y))y=[y|0,y|0];else if(y.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,y[0]|0,y[1]|0),[y[0]|0,y[1]|0]}},width:{get:function(){return this._shape[0]},set:function(y){return y=y|0,T(this,y,this._shape[1]),y}},height:{get:function(){return this._shape[1]},set:function(y){return y=y|0,T(this,this._shape[0],y),y}}}),_.bind=function(y){var f=this.gl;return y!==void 0&&f.activeTexture(f.TEXTURE0+(y|0)),f.bindTexture(f.TEXTURE_2D,this.handle),y!==void 0?y|0:f.getParameter(f.ACTIVE_TEXTURE)-f.TEXTURE0},_.dispose=function(){this.gl.deleteTexture(this.handle)},_.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var y=Math.min(this._shape[0],this._shape[1]),f=0;y>0;++f,y>>>=1)this._mipLevels.indexOf(f)<0&&this._mipLevels.push(f)},_.setPixels=function(y,f,R,L){var z=this.gl;this.bind(),Array.isArray(f)?(L=R,R=f[1]|0,f=f[0]|0):(f=f||0,R=R||0),L=L||0;var F=m(y)?y:y.raw;if(F){var N=this._mipLevels.indexOf(L)<0;N?(z.texImage2D(z.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(L)):z.texSubImage2D(z.TEXTURE_2D,L,f,R,this.format,this.type,F)}else if(y.shape&&y.stride&&y.data){if(y.shape.length<2||f+y.shape[1]>this._shape[1]>>>L||R+y.shape[0]>this._shape[0]>>>L||f<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(z,f,R,L,this.format,this.type,this._mipLevels,y)}else throw new Error("gl-texture2d: Unsupported data type")};function w(y,f){return y.length===3?f[2]===1&&f[1]===y[0]*y[2]&&f[0]===y[2]:f[0]===1&&f[1]===y[0]}function A(y,f,R,L,z,F,N,B){var I=B.dtype,U=B.shape.slice();if(U.length<2||U.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,X=0,J=w(U,B.stride.slice());I==="float32"?O=y.FLOAT:I==="float64"?(O=y.FLOAT,J=!1,I="float32"):I==="uint8"?O=y.UNSIGNED_BYTE:(O=y.UNSIGNED_BYTE,J=!1,I="uint8");var se=1;if(U.length===2)X=y.LUMINANCE,U=[U[0],U[1],1],B=o(B.data,U,[B.stride[0],B.stride[1],1],B.offset);else if(U.length===3){if(U[2]===1)X=y.ALPHA;else if(U[2]===2)X=y.LUMINANCE_ALPHA;else if(U[2]===3)X=y.RGB;else if(U[2]===4)X=y.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");se=U[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((X===y.LUMINANCE||X===y.ALPHA)&&(z===y.LUMINANCE||z===y.ALPHA)&&(X=z),X!==z)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var le=B.size,ce=N.indexOf(L)<0;if(ce&&N.push(L),O===F&&J)B.offset===0&&B.data.length===le?ce?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,B.data):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,B.data):ce?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,B.data.subarray(B.offset,B.offset+le)):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,B.data.subarray(B.offset,B.offset+le));else{var q;F===y.FLOAT?q=n.mallocFloat32(le):q=n.mallocUint8(le);var Z=o(q,U,[U[2],U[2]*U[0],1]);O===y.FLOAT&&F===y.UNSIGNED_BYTE?d(Z,B):i.assign(Z,B),ce?y.texImage2D(y.TEXTURE_2D,L,z,U[0],U[1],0,z,F,q.subarray(0,le)):y.texSubImage2D(y.TEXTURE_2D,L,f,R,U[0],U[1],z,F,q.subarray(0,le)),F===y.FLOAT?n.freeFloat32(q):n.freeUint8(q)}}function M(y){var f=y.createTexture();return y.bindTexture(y.TEXTURE_2D,f),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,y.NEAREST),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,y.NEAREST),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_S,y.CLAMP_TO_EDGE),y.texParameteri(y.TEXTURE_2D,y.TEXTURE_WRAP_T,y.CLAMP_TO_EDGE),f}function g(y,f,R,L,z){var F=y.getParameter(y.MAX_TEXTURE_SIZE);if(f<0||f>F||R<0||R>F)throw new Error("gl-texture2d: Invalid texture shape");if(z===y.FLOAT&&!y.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var N=M(y);return y.texImage2D(y.TEXTURE_2D,0,L,f,R,0,L,z,null),new l(y,N,f,R,L,z)}function b(y,f,R,L,z,F){var N=M(y);return y.texImage2D(y.TEXTURE_2D,0,z,z,F,f),new l(y,N,R,L,z,F)}function v(y,f){var R=f.dtype,L=f.shape.slice(),z=y.getParameter(y.MAX_TEXTURE_SIZE);if(L[0]<0||L[0]>z||L[1]<0||L[1]>z)throw new Error("gl-texture2d: Invalid texture size");var F=w(L,f.stride.slice()),N=0;R==="float32"?N=y.FLOAT:R==="float64"?(N=y.FLOAT,F=!1,R="float32"):R==="uint8"?N=y.UNSIGNED_BYTE:(N=y.UNSIGNED_BYTE,F=!1,R="uint8");var B=0;if(L.length===2)B=y.LUMINANCE,L=[L[0],L[1],1],f=o(f.data,L,[f.stride[0],f.stride[1],1],f.offset);else if(L.length===3)if(L[2]===1)B=y.ALPHA;else if(L[2]===2)B=y.LUMINANCE_ALPHA;else if(L[2]===3)B=y.RGB;else if(L[2]===4)B=y.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");N===y.FLOAT&&!y.getExtension("OES_texture_float")&&(N=y.UNSIGNED_BYTE,F=!1);var I,U,O=f.size;if(F)f.offset===0&&f.data.length===O?I=f.data:I=f.data.subarray(f.offset,f.offset+O);else{var X=[L[2],L[2]*L[0],1];U=n.malloc(O,R);var J=o(U,L,X,0);(R==="float32"||R==="float64")&&N===y.UNSIGNED_BYTE?d(J,f):i.assign(J,f),I=U.subarray(0,O)}var se=M(y);return y.texImage2D(y.TEXTURE_2D,0,B,L[0],L[1],0,B,N,I),F||n.free(U),new l(y,se,L[0],L[1],B,N)}function u(y){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(a||c(y),typeof arguments[1]=="number")return g(y,arguments[1],arguments[2],arguments[3]||y.RGBA,arguments[4]||y.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return g(y,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||y.RGBA,arguments[3]||y.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var f=arguments[1],R=m(f)?f:f.raw;if(R)return b(y,R,f.width|0,f.height|0,arguments[2]||y.RGBA,arguments[3]||y.UNSIGNED_BYTE);if(f.shape&&f.data&&f.stride)return v(y,f)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},7790:function(){},7815:function(e,t,r){"use strict";var o=r(2931),i=r(9970),n=["xyz","xzy","yxz","yzx","zxy","zyx"],a=function(A,M,g,b){for(var v=A.points,u=A.velocities,y=A.divergences,f=[],R=[],L=[],z=[],F=[],N=[],B=0,I=0,U=i.create(),O=i.create(),X=8,J=0;J<v.length;J++){var se=v[J],le=u[J],ce=y[J];M===0&&(ce=g*.05),I=o.length(le)/b,U=i.create(),o.copy(U,le),U[3]=ce;for(var q=0;q<X;q++)F[q]=[se[0],se[1],se[2],q];if(z.length>0)for(var q=0;q<X;q++){var Z=(q+1)%X;f.push(z[q],F[q],F[Z],F[Z],z[Z],z[q]),L.push(O,U,U,U,O,O),N.push(B,I,I,I,B,B);var ee=f.length;R.push([ee-6,ee-5,ee-4],[ee-3,ee-2,ee-1])}var V=z;z=F,F=V;var oe=O;O=U,U=oe;var ie=B;B=I,I=ie}return{positions:f,cells:R,vectors:L,vertexIntensity:N}},s=function(A,M,g,b){for(var v=0,u=0;u<A.length;u++)for(var y=A[u].velocities,f=0;f<y.length;f++)v=Math.max(v,o.length(y[f]));for(var R=A.map(function(J){return a(J,g,b,v)}),L=[],z=[],F=[],N=[],u=0;u<R.length;u++){var B=R[u],I=L.length;L=L.concat(B.positions),F=F.concat(B.vectors),N=N.concat(B.vertexIntensity);for(var f=0;f<B.cells.length;f++){var U=B.cells[f],O=[];z.push(O);for(var X=0;X<U.length;X++)O.push(U[X]+I)}}return{positions:L,cells:z,vectors:F,vertexIntensity:N,colormap:M}},h=function(A,M){var g=A.length,b;for(b=0;b<g;b++){var v=A[b];if(v===M)return b;if(v>M)return b-1}return b},c=function(A,M,g){return A<M?M:A>g?g:A},m=function(A,M,g){var b=M.vectors,v=M.meshgrid,u=A[0],y=A[1],f=A[2],R=v[0].length,L=v[1].length,z=v[2].length,F=h(v[0],u),N=h(v[1],y),B=h(v[2],f),I=F+1,U=N+1,O=B+1;if(F=c(F,0,R-1),I=c(I,0,R-1),N=c(N,0,L-1),U=c(U,0,L-1),B=c(B,0,z-1),O=c(O,0,z-1),F<0||N<0||B<0||I>R-1||U>L-1||O>z-1)return o.create();var X=v[0][F],J=v[0][I],se=v[1][N],le=v[1][U],ce=v[2][B],q=v[2][O],Z=(u-X)/(J-X),ee=(y-se)/(le-se),V=(f-ce)/(q-ce);isFinite(Z)||(Z=.5),isFinite(ee)||(ee=.5),isFinite(V)||(V=.5);var oe,ie,j,Q,re,ue;switch(g.reversedX&&(F=R-1-F,I=R-1-I),g.reversedY&&(N=L-1-N,U=L-1-U),g.reversedZ&&(B=z-1-B,O=z-1-O),g.filled){case 5:re=B,ue=O,j=N*z,Q=U*z,oe=F*z*L,ie=I*z*L;break;case 4:re=B,ue=O,oe=F*z,ie=I*z,j=N*z*R,Q=U*z*R;break;case 3:j=N,Q=U,re=B*L,ue=O*L,oe=F*L*z,ie=I*L*z;break;case 2:j=N,Q=U,oe=F*L,ie=I*L,re=B*L*R,ue=O*L*R;break;case 1:oe=F,ie=I,re=B*R,ue=O*R,j=N*R*z,Q=U*R*z;break;default:oe=F,ie=I,j=N*R,Q=U*R,re=B*R*L,ue=O*R*L;break}var _e=b[oe+j+re],we=b[oe+j+ue],Re=b[oe+Q+re],ze=b[oe+Q+ue],Xe=b[ie+j+re],tt=b[ie+j+ue],it=b[ie+Q+re],et=b[ie+Q+ue],nt=o.create(),Ae=o.create(),me=o.create(),fe=o.create();o.lerp(nt,_e,Xe,Z),o.lerp(Ae,we,tt,Z),o.lerp(me,Re,it,Z),o.lerp(fe,ze,et,Z);var Be=o.create(),Qe=o.create();o.lerp(Be,nt,me,ee),o.lerp(Qe,Ae,fe,ee);var at=o.create();return o.lerp(at,Be,Qe,V),at},d=function(A,M){var g=M[0],b=M[1],v=M[2];return A[0]=g<0?-g:g,A[1]=b<0?-b:b,A[2]=v<0?-v:v,A},T=function(A){var M=1/0;A.sort(function(u,y){return u-y});for(var g=A.length,b=1;b<g;b++){var v=Math.abs(A[b]-A[b-1]);v<M&&(M=v)}return M},l=function(A){for(var M=[],g=[],b=[],v={},u={},y={},f=A.length,R=0;R<f;R++){var L=A[R],z=L[0],F=L[1],N=L[2];v[z]||(M.push(z),v[z]=!0),u[F]||(g.push(F),u[F]=!0),y[N]||(b.push(N),y[N]=!0)}var B=T(M),I=T(g),U=T(b),O=Math.min(B,I,U);return isFinite(O)?O:1};e.exports=function(A,M){var g=A.startingPositions,b=A.maxLength||1e3,v=A.tubeSize||1,u=A.absoluteTubeSize,y=A.gridFill||"+x+y+z",f={};y.indexOf("-x")!==-1&&(f.reversedX=!0),y.indexOf("-y")!==-1&&(f.reversedY=!0),y.indexOf("-z")!==-1&&(f.reversedZ=!0),f.filled=n.indexOf(y.replace(/-/g,"").replace(/\+/g,""));var R=A.getVelocity||function(tt){return m(tt,A,f)},L=A.getDivergence||function(tt,it){var et=o.create(),nt=1e-4;o.add(et,tt,[nt,0,0]);var Ae=R(et);o.subtract(Ae,Ae,it),o.scale(Ae,Ae,1/nt),o.add(et,tt,[0,nt,0]);var me=R(et);o.subtract(me,me,it),o.scale(me,me,1/nt),o.add(et,tt,[0,0,nt]);var fe=R(et);return o.subtract(fe,fe,it),o.scale(fe,fe,1/nt),o.add(et,Ae,me),o.add(et,et,fe),et},z=[],F=M[0][0],N=M[0][1],B=M[0][2],I=M[1][0],U=M[1][1],O=M[1][2],X=function(tt){var it=tt[0],et=tt[1],nt=tt[2];return!(it<F||it>I||et<N||et>U||nt<B||nt>O)},J=o.distance(M[0],M[1]),se=10*J/b,le=se*se,ce=1,q=0,Z=g.length;Z>1&&(ce=l(g));for(var ee=0;ee<Z;ee++){var V=o.create();o.copy(V,g[ee]);var oe=[V],ie=[],j=R(V),Q=V;ie.push(j);var re=[],ue=L(V,j),_e=o.length(ue);isFinite(_e)&&_e>q&&(q=_e),re.push(_e),z.push({points:oe,velocities:ie,divergences:re});for(var we=0;we<b*100&&oe.length<b&&X(V);){we++;var Re=o.clone(j),ze=o.squaredLength(Re);if(ze===0)break;if(ze>le&&o.scale(Re,Re,se/Math.sqrt(ze)),o.add(Re,Re,V),j=R(Re),o.squaredDistance(Q,Re)-le>-1e-4*le){oe.push(Re),Q=Re,ie.push(j);var ue=L(Re,j),_e=o.length(ue);isFinite(_e)&&_e>q&&(q=_e),re.push(_e)}V=Re}}var Xe=s(z,A.colormap,q,ce);return u?Xe.tubeScale=u:(q===0&&(q=1),Xe.tubeScale=v*.5*ce/q),Xe};var _=r(6740),w=r(6405).createMesh;e.exports.createTubeMesh=function(A,M){return w(A,M,{shaders:_,traceType:"streamtube"})}},7827:function(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},7842:function(e,t,r){"use strict";var o=r(6330),i=r(1533),n=r(2651),a=r(6768),s=r(869),h=r(8697);e.exports=c;function c(m,d){if(o(m))return d?h(m,c(d)):[m[0].clone(),m[1].clone()];var T=0,l,_;if(i(m))l=m.clone();else if(typeof m=="string")l=a(m);else{if(m===0)return[n(0),n(1)];if(m===Math.floor(m))l=n(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),T-=256;l=n(m)}}if(o(d))l.mul(d[1]),_=d[0].clone();else if(i(d))_=d.clone();else if(typeof d=="string")_=a(d);else if(!d)_=n(1);else if(d===Math.floor(d))_=n(d);else{for(;d!==Math.floor(d);)d=d*Math.pow(2,256),T+=256;_=n(d)}return T>0?l=l.ushln(T):T<0&&(_=_.ushln(-T)),s(l,_)}},7894:function(e){e.exports=t;function t(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7932:function(e,t,r){var o=r(620);e.exports=o.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},7960:function(e){e.exports=t;function t(r,o){var i=o[0]-r[0],n=o[1]-r[1],a=o[2]-r[2],s=o[3]-r[3];return i*i+n*n+a*a+s*s}},8105:function(e){"use strict";e.exports=r;var t={"lo===p0":o,"lo<p0":i,"lo<=p0":n,"hi<=p0":a,"lo<p0&&p0<=hi":h,"lo<=p0&&p0<=hi":s,"!(lo>=p0)&&!(p1>=hi)":c};function r(m){return t[m]}function o(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+u];if(R===A)if(v===f)v+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[v],w[v++]=F}}return v}function i(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+u];if(R<A)if(v===f)v+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[v],w[v++]=F}}return v}function n(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+y];if(R<=A)if(v===f)v+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[v],w[v++]=F}}return v}function a(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+y];if(R<=A)if(v===f)v+=1,b+=M;else{for(var L=0;M>L;++L){var z=_[g+L];_[g+L]=_[b],_[b++]=z}var F=w[f];w[f]=w[v],w[v++]=F}}return v}function s(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+u],L=_[g+y];if(R<=A&&A<=L)if(v===f)v+=1,b+=M;else{for(var z=0;M>z;++z){var F=_[g+z];_[g+z]=_[b],_[b++]=F}var N=w[f];w[f]=w[v],w[v++]=N}}return v}function h(m,d,T,l,_,w,A){for(var M=2*m,g=M*T,b=g,v=T,u=d,y=m+d,f=T;l>f;++f,g+=M){var R=_[g+u],L=_[g+y];if(R<A&&A<=L)if(v===f)v+=1,b+=M;else{for(var z=0;M>z;++z){var F=_[g+z];_[g+z]=_[b],_[b++]=F}var N=w[f];w[f]=w[v],w[v++]=N}}return v}function c(m,d,T,l,_,w,A,M){for(var g=2*m,b=g*T,v=b,u=T,y=d,f=m+d,R=T;l>R;++R,b+=g){var L=_[b+y],z=_[b+f];if(!(L>=A)&&!(M>=z))if(u===R)u+=1,v+=g;else{for(var F=0;g>F;++F){var N=_[b+F];_[b+F]=_[v],_[v++]=N}var B=w[R];w[R]=w[u],w[u++]=B}}return u}},8107:function(e){e.exports=t;function t(r,o,i){return r[0]=Math.min(o[0],i[0]),r[1]=Math.min(o[1],i[1]),r[2]=Math.min(o[2],i[2]),r}},8116:function(e,t,r){"use strict";var o=r(7518),i=r(870);function n(s){this.bindVertexArrayOES=s.bindVertexArray.bind(s),this.createVertexArrayOES=s.createVertexArray.bind(s),this.deleteVertexArrayOES=s.deleteVertexArray.bind(s)}function a(s,h,c,m){var d=s.createVertexArray?new n(s):s.getExtension("OES_vertex_array_object"),T;return d?T=o(s,d):T=i(s),T.update(h,c,m),T}e.exports=a},8192:function(e,t,r){e.exports=a;var o=r(2825),i=r(3536),n=r(244);function a(s,h){var c=o(s[0],s[1],s[2]),m=o(h[0],h[1],h[2]);i(c,c),i(m,m);var d=n(c,m);return d>1?0:Math.acos(d)}},8210:function(e){"use strict";e.exports=r;function t(o,i){var n=o+i,a=n-o,s=n-a,h=i-a,c=o-s,m=c+h;return m?[m,n]:[n]}function r(o,i){var n=o.length|0,a=i.length|0;if(n===1&&a===1)return t(o[0],i[0]);var s=n+a,h=new Array(s),c=0,m=0,d=0,T=Math.abs,l=o[m],_=T(l),w=i[d],A=T(w),M,g;_<A?(g=l,m+=1,m<n&&(l=o[m],_=T(l))):(g=w,d+=1,d<a&&(w=i[d],A=T(w))),m<n&&_<A||d>=a?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,d+=1,d<a&&(w=i[d],A=T(w)));for(var b=M+g,v=b-M,u=g-v,y=u,f=b,R,L,z,F,N;m<n&&d<a;)_<A?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,d+=1,d<a&&(w=i[d],A=T(w))),g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R;for(;m<n;)M=l,g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,m+=1,m<n&&(l=o[m]);for(;d<a;)M=w,g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,d+=1,d<a&&(w=i[d]);return y&&(h[c++]=y),f&&(h[c++]=f),c||(h[c++]=0),h.length=c,h}},8277:function(e){"use strict";function t(){return function(s,h,c,m,d){var T=s[0],l=s[1],_=s[2],w=c[0],A=c[1],M=c[2],g=[0,0,0];m|=0;var b=0,v=0,u=0,y=M,f=A-_*M,R=w-l*A;for(u=0;u<T;++u){for(v=0;v<l;++v){for(b=0;b<_;++b){{var L=d,z;for(z=0;z<g.length-1;++z)L=L[g[z]];h[m]=L[g[g.length-1]]}m+=y,++g[2]}m+=f,g[2]-=_,++g[1]}m+=R,g[1]-=l,++g[0]}}}function r(){return t()}var o=r;function i(s){var h={};return function(m,d){var T=m.dtype,l=m.order,_=[T,l.join()].join(),w=h[_];return w||(h[_]=w=s([T,l])),w(m.shape.slice(0),m.data,m.stride,m.offset|0,d)}}function n(s){return i(o.bind(void 0,s))}function a(s){return n({funcName:s.funcName})}e.exports=a({funcName:"convert"})},8284:function(e){e.exports=t;function t(r,o){var i={identity:o},n=r.valueOf;return Object.defineProperty(r,"valueOf",{value:function(a){return a!==o?n.apply(this,arguments):i},writable:!0}),i}},8406:function(e,t){var r=1e-6,o=1e-6;t.vertexNormals=function(i,n,a){for(var s=n.length,h=new Array(s),c=a===void 0?r:a,m=0;m<s;++m)h[m]=[0,0,0];for(var m=0;m<i.length;++m)for(var d=i[m],T=0,l=d[d.length-1],_=d[0],w=0;w<d.length;++w){T=l,l=_,_=d[(w+1)%d.length];for(var A=n[T],M=n[l],g=n[_],b=new Array(3),v=0,u=new Array(3),y=0,f=0;f<3;++f)b[f]=A[f]-M[f],v+=b[f]*b[f],u[f]=g[f]-M[f],y+=u[f]*u[f];if(v*y>c)for(var R=h[l],L=1/Math.sqrt(v*y),f=0;f<3;++f){var z=(f+1)%3,F=(f+2)%3;R[f]+=L*(u[z]*b[F]-u[F]*b[z])}}for(var m=0;m<s;++m){for(var R=h[m],N=0,f=0;f<3;++f)N+=R[f]*R[f];if(N>c)for(var L=1/Math.sqrt(N),f=0;f<3;++f)R[f]*=L;else for(var f=0;f<3;++f)R[f]=0}return h},t.faceNormals=function(i,n,a){for(var s=i.length,h=new Array(s),c=a===void 0?o:a,m=0;m<s;++m){for(var d=i[m],T=new Array(3),l=0;l<3;++l)T[l]=n[d[l]];for(var _=new Array(3),w=new Array(3),l=0;l<3;++l)_[l]=T[1][l]-T[0][l],w[l]=T[2][l]-T[0][l];for(var A=new Array(3),M=0,l=0;l<3;++l){var g=(l+1)%3,b=(l+2)%3;A[l]=_[g]*w[b]-_[b]*w[g],M+=A[l]*A[l]}M>c?M=1/Math.sqrt(M):M=0;for(var l=0;l<3;++l)A[l]*=M;h[m]=A}return h}},8418:function(e,t,r){"use strict";var o=r(5219),i=r(2762),n=r(8116),a=r(1888),s=r(6760),h=r(1283),c=r(9366),m=r(5964),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,l=DataView;function _(V){return T.isView(V)&&!(V instanceof l)}function w(V){return Array.isArray(V)||_(V)}e.exports=ee;function A(V,oe){var ie=V[0],j=V[1],Q=V[2],re=V[3];return V[0]=oe[0]*ie+oe[4]*j+oe[8]*Q+oe[12]*re,V[1]=oe[1]*ie+oe[5]*j+oe[9]*Q+oe[13]*re,V[2]=oe[2]*ie+oe[6]*j+oe[10]*Q+oe[14]*re,V[3]=oe[3]*ie+oe[7]*j+oe[11]*Q+oe[15]*re,V}function M(V,oe,ie,j){return A(j,j,ie),A(j,j,oe),A(j,j,V)}function g(V,oe){this.index=V,this.dataCoordinate=this.position=oe}function b(V){return V===!0||V>1?1:V}function v(V,oe,ie,j,Q,re,ue,_e,we,Re,ze,Xe){this.gl=V,this.pixelRatio=1,this.shader=oe,this.orthoShader=ie,this.projectShader=j,this.pointBuffer=Q,this.colorBuffer=re,this.glyphBuffer=ue,this.idBuffer=_e,this.vao=we,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Re,this.pickOrthoShader=ze,this.pickProjectShader=Xe,this.points=[],this._selectResult=new g(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var u=v.prototype;u.pickSlots=1,u.setPickBase=function(V){this.pickId=V},u.isTransparent=function(){if(this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&this.projectHasAlpha)return!0;return!1},u.isOpaque=function(){if(!this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&!this.projectHasAlpha)return!0;return!1};var y=[0,0],f=[0,0,0],R=[0,0,0],L=[0,0,0,1],z=[0,0,0,1],F=d.slice(),N=[0,0,0],B=[[0,0,0],[0,0,0]];function I(V){return V[0]=V[1]=V[2]=0,V}function U(V,oe){return V[0]=oe[0],V[1]=oe[1],V[2]=oe[2],V[3]=1,V}function O(V,oe,ie,j){return V[0]=oe[0],V[1]=oe[1],V[2]=oe[2],V[ie]=j,V}function X(V){for(var oe=B,ie=0;ie<2;++ie)for(var j=0;j<3;++j)oe[ie][j]=Math.max(Math.min(V[ie][j],1e8),-1e8);return oe}function J(V,oe,ie,j){var Q=oe.axesProject,re=oe.gl,ue=V.uniforms,_e=ie.model||d,we=ie.view||d,Re=ie.projection||d,ze=oe.axesBounds,Xe=X(oe.clipBounds),tt;oe.axes&&oe.axes.lastCubeProps?tt=oe.axes.lastCubeProps.axis:tt=[1,1,1],y[0]=2/re.drawingBufferWidth,y[1]=2/re.drawingBufferHeight,V.bind(),ue.view=we,ue.projection=Re,ue.screenSize=y,ue.highlightId=oe.highlightId,ue.highlightScale=oe.highlightScale,ue.clipBounds=Xe,ue.pickGroup=oe.pickId/255,ue.pixelRatio=j;for(var it=0;it<3;++it)if(Q[it]){ue.scale=oe.projectScale[it],ue.opacity=oe.projectOpacity[it];for(var et=F,nt=0;nt<16;++nt)et[nt]=0;for(var nt=0;nt<4;++nt)et[5*nt]=1;et[5*it]=0,tt[it]<0?et[12+it]=ze[0][it]:et[12+it]=ze[1][it],s(et,_e,et),ue.model=et;var Ae=(it+1)%3,me=(it+2)%3,fe=I(f),Be=I(R);fe[Ae]=1,Be[me]=1;var Qe=M(Re,we,_e,U(L,fe)),at=M(Re,we,_e,U(z,Be));if(Math.abs(Qe[1])>Math.abs(at[1])){var $e=Qe;Qe=at,at=$e,$e=fe,fe=Be,Be=$e;var It=Ae;Ae=me,me=It}Qe[0]<0&&(fe[Ae]=-1),at[1]>0&&(Be[me]=-1);for(var Pt=0,Vt=0,nt=0;nt<4;++nt)Pt+=Math.pow(_e[4*Ae+nt],2),Vt+=Math.pow(_e[4*me+nt],2);fe[Ae]/=Math.sqrt(Pt),Be[me]/=Math.sqrt(Vt),ue.axes[0]=fe,ue.axes[1]=Be,ue.fragClipBounds[0]=O(N,Xe[0],it,-1e8),ue.fragClipBounds[1]=O(N,Xe[1],it,1e8),oe.vao.bind(),oe.vao.draw(re.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(re.lineWidth(oe.lineWidth*j),oe.vao.draw(re.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}var se=[-1e8,-1e8,-1e8],le=[1e8,1e8,1e8],ce=[se,le];function q(V,oe,ie,j,Q,re,ue){var _e=ie.gl;if((re===ie.projectHasAlpha||ue)&&J(oe,ie,j,Q),re===ie.hasAlpha||ue){V.bind();var we=V.uniforms;we.model=j.model||d,we.view=j.view||d,we.projection=j.projection||d,y[0]=2/_e.drawingBufferWidth,y[1]=2/_e.drawingBufferHeight,we.screenSize=y,we.highlightId=ie.highlightId,we.highlightScale=ie.highlightScale,we.fragClipBounds=ce,we.clipBounds=ie.axes.bounds,we.opacity=ie.opacity,we.pickGroup=ie.pickId/255,we.pixelRatio=Q,ie.vao.bind(),ie.vao.draw(_e.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(_e.lineWidth(ie.lineWidth*Q),ie.vao.draw(_e.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}u.draw=function(V){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,V,this.pixelRatio,!1,!1)},u.drawTransparent=function(V){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,V,this.pixelRatio,!0,!1)},u.drawPick=function(V){var oe=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(oe,this.pickProjectShader,this,V,1,!0,!0)},u.pick=function(V){if(!V||V.id!==this.pickId)return null;var oe=V.value[2]+(V.value[1]<<8)+(V.value[0]<<16);if(oe>=this.pointCount||oe<0)return null;var ie=this.points[oe],j=this._selectResult;j.index=oe;for(var Q=0;Q<3;++Q)j.position[Q]=j.dataCoordinate[Q]=ie[Q];return j},u.highlight=function(V){if(!V)this.highlightId=[1,1,1,1];else{var oe=V.index,ie=oe&255,j=oe>>8&255,Q=oe>>16&255;this.highlightId=[ie/255,j/255,Q/255,0]}};function Z(V,oe,ie,j){var Q;w(V)?oe<V.length?Q=V[oe]:Q=void 0:Q=V,Q=m(Q);var re=!0;o(Q)&&(Q="\u25BC",re=!1),ie||(ie={});var ue=ie.family;w(ue)&&(ue=ue[oe]),ue||(ue="normal");var _e=ie.weight;w(_e)&&(_e=_e[oe]),_e||(_e="normal");var we=ie.style;w(we)&&(we=we[oe]),we||(we="normal");var Re=ie.variant;w(Re)&&(Re=Re[oe]),Re||(Re="normal");var ze=c(Q,{family:ue,weight:_e,style:we,variant:Re},j),ze=c(Q,ie,j);return{mesh:ze[0],lines:ze[1],bounds:ze[2],visible:re}}u.update=function(V){if(V=V||{},"perspective"in V&&(this.useOrtho=!V.perspective),"orthographic"in V&&(this.useOrtho=!!V.orthographic),"lineWidth"in V&&(this.lineWidth=V.lineWidth),"project"in V)if(w(V.project))this.axesProject=V.project;else{var oe=!!V.project;this.axesProject=[oe,oe,oe]}if("projectScale"in V)if(w(V.projectScale))this.projectScale=V.projectScale.slice();else{var ie=+V.projectScale;this.projectScale=[ie,ie,ie]}if(this.projectHasAlpha=!1,"projectOpacity"in V){if(w(V.projectOpacity))this.projectOpacity=V.projectOpacity.slice();else{var ie=+V.projectOpacity;this.projectOpacity=[ie,ie,ie]}for(var j=0;j<3;++j)this.projectOpacity[j]=b(this.projectOpacity[j]),this.projectOpacity[j]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in V&&(this.opacity=b(V.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var Q=V.position,re={family:V.font||"normal",style:V.fontStyle||"normal",weight:V.fontWeight||"normal",variant:V.fontVariant||"normal"},ue=V.alignment||[0,0],_e,we;if(ue.length===2)_e=ue[0],we=ue[1];else{_e=[],we=[];for(var j=0;j<ue.length;++j)_e[j]=ue[j][0],we[j]=ue[j][1]}var Re=[1/0,1/0,1/0],ze=[-1/0,-1/0,-1/0],Xe=V.glyph,tt=V.color,it=V.size,et=V.angle,nt=V.lineColor,Ae=-1,me=0,fe=0,Be=0;if(Q.length){Be=Q.length;e:for(var j=0;j<Be;++j){for(var Qe=Q[j],at=0;at<3;++at)if(isNaN(Qe[at])||!isFinite(Qe[at]))continue e;var $e=Z(Xe,j,re,this.pixelRatio),It=$e.mesh,Pt=$e.lines,Vt=$e.bounds;me+=It.cells.length*3,fe+=Pt.edges.length*2}}var Wt=me+fe,Cr=a.mallocFloat(3*Wt),yr=a.mallocFloat(4*Wt),qr=a.mallocFloat(2*Wt),Mr=a.mallocUint32(Wt);if(Wt>0){var Dr=0,xt=me,Ne=[0,0,0,1],Ye=[0,0,0,1],be=w(tt)&&w(tt[0]),Ie=w(nt)&&w(nt[0]);e:for(var j=0;j<Be;++j){Ae+=1;for(var Qe=Q[j],at=0;at<3;++at){if(isNaN(Qe[at])||!isFinite(Qe[at]))continue e;ze[at]=Math.max(ze[at],Qe[at]),Re[at]=Math.min(Re[at],Qe[at])}var $e=Z(Xe,j,re,this.pixelRatio),It=$e.mesh,Pt=$e.lines,Vt=$e.bounds,qe=$e.visible;if(!qe)Ne=[1,1,1,0];else if(w(tt)){var ke;if(be?j<tt.length?ke=tt[j]:ke=[0,0,0,0]:ke=tt,ke.length===3){for(var at=0;at<3;++at)Ne[at]=ke[at];Ne[3]=1}else if(ke.length===4){for(var at=0;at<4;++at)Ne[at]=ke[at];!this.hasAlpha&&ke[3]<1&&(this.hasAlpha=!0)}}else Ne[0]=Ne[1]=Ne[2]=0,Ne[3]=1;if(!qe)Ye=[1,1,1,0];else if(w(nt)){var ke;if(Ie?j<nt.length?ke=nt[j]:ke=[0,0,0,0]:ke=nt,ke.length===3){for(var at=0;at<3;++at)Ye[at]=ke[at];Ye[at]=1}else if(ke.length===4){for(var at=0;at<4;++at)Ye[at]=ke[at];!this.hasAlpha&&ke[3]<1&&(this.hasAlpha=!0)}}else Ye[0]=Ye[1]=Ye[2]=0,Ye[3]=1;var Me=.5;qe?w(it)?j<it.length?Me=+it[j]:Me=12:it?Me=+it:this.useOrtho&&(Me=12):Me=0;var Le=0;w(et)?j<et.length?Le=+et[j]:Le=0:et&&(Le=+et);for(var ut=Math.cos(Le),lt=Math.sin(Le),Qe=Q[j],at=0;at<3;++at)ze[at]=Math.max(ze[at],Qe[at]),Re[at]=Math.min(Re[at],Qe[at]);var gt=_e,kt=we,gt=0;w(_e)?j<_e.length?gt=_e[j]:gt=0:_e&&(gt=_e);var kt=0;w(we)?j<we.length?kt=we[j]:kt=0:we&&(kt=we),gt*=gt>0?1-Vt[0][0]:gt<0?1+Vt[1][0]:1,kt*=kt>0?1-Vt[0][1]:kt<0?1+Vt[1][1]:1;for(var nr=[gt,kt],Vi=It.cells||[],Ui=It.positions||[],at=0;at<Vi.length;++at)for(var ir=Vi[at],tr=0;tr<3;++tr){for(var Ir=0;Ir<3;++Ir)Cr[3*Dr+Ir]=Qe[Ir];for(var Ir=0;Ir<4;++Ir)yr[4*Dr+Ir]=Ne[Ir];Mr[Dr]=Ae;var vi=Ui[ir[tr]];qr[2*Dr]=Me*(ut*vi[0]-lt*vi[1]+nr[0]),qr[2*Dr+1]=Me*(lt*vi[0]+ut*vi[1]+nr[1]),Dr+=1}for(var Vi=Pt.edges,Ui=Pt.positions,at=0;at<Vi.length;++at)for(var ir=Vi[at],tr=0;tr<2;++tr){for(var Ir=0;Ir<3;++Ir)Cr[3*xt+Ir]=Qe[Ir];for(var Ir=0;Ir<4;++Ir)yr[4*xt+Ir]=Ye[Ir];Mr[xt]=Ae;var vi=Ui[ir[tr]];qr[2*xt]=Me*(ut*vi[0]-lt*vi[1]+nr[0]),qr[2*xt+1]=Me*(lt*vi[0]+ut*vi[1]+nr[1]),xt+=1}}}this.bounds=[Re,ze],this.points=Q,this.pointCount=Q.length,this.vertexCount=me,this.lineVertexCount=fe,this.pointBuffer.update(Cr),this.colorBuffer.update(yr),this.glyphBuffer.update(qr),this.idBuffer.update(Mr),a.free(Cr),a.free(yr),a.free(qr),a.free(Mr)},u.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function ee(V){var oe=V.gl,ie=h.createPerspective(oe),j=h.createOrtho(oe),Q=h.createProject(oe),re=h.createPickPerspective(oe),ue=h.createPickOrtho(oe),_e=h.createPickProject(oe),we=i(oe),Re=i(oe),ze=i(oe),Xe=i(oe),tt=n(oe,[{buffer:we,size:3,type:oe.FLOAT},{buffer:Re,size:4,type:oe.FLOAT},{buffer:ze,size:2,type:oe.FLOAT},{buffer:Xe,size:4,type:oe.UNSIGNED_BYTE,normalized:!0}]),it=new v(oe,ie,j,Q,we,Re,ze,Xe,tt,re,ue,_e);return it.update(V),it}},8489:function(e){e.exports=t;function t(r,o,i,n){return r[0]=o[0]+i[0]*n,r[1]=o[1]+i[1]*n,r[2]=o[2]+i[2]*n,r}},8507:function(e){e.exports=o;var t=Math.min;function r(i,n){return i-n}function o(i,n){var a=i.length,s=i.length-n.length;if(s)return s;switch(a){case 0:return 0;case 1:return i[0]-n[0];case 2:return i[0]+i[1]-n[0]-n[1]||t(i[0],i[1])-t(n[0],n[1]);case 3:var h=i[0]+i[1],c=n[0]+n[1];if(s=h+i[2]-(c+n[2]),s)return s;var m=t(i[0],i[1]),d=t(n[0],n[1]);return t(m,i[2])-t(d,n[2])||t(m+i[2],h)-t(d+n[2],c);case 4:var T=i[0],l=i[1],_=i[2],w=i[3],A=n[0],M=n[1],g=n[2],b=n[3];return T+l+_+w-(A+M+g+b)||t(T,l,_,w)-t(A,M,g,b,A)||t(T+l,T+_,T+w,l+_,l+w,_+w)-t(A+M,A+g,A+b,M+g,M+b,g+b)||t(T+l+_,T+l+w,T+_+w,l+_+w)-t(A+M+g,A+M+b,A+g+b,M+g+b);default:for(var v=i.slice().sort(r),u=n.slice().sort(r),y=0;y<a;++y)if(s=v[y]-u[y],s)return s;return 0}}},8512:function(e,t,r){"use strict";var o=r(665);e.exports=i;function i(n,a,s){typeof n=="function"&&(s=!!a,a=n,n=window);var h=o("ex",n),c=function(m){s&&m.preventDefault();var d=m.deltaX||0,T=m.deltaY||0,l=m.deltaZ||0,_=m.deltaMode,w=1;switch(_){case 1:w=h;break;case 2:w=window.innerHeight;break}if(d*=w,T*=w,l*=w,d||T||l)return a(d,T,l,m)};return n.addEventListener("wheel",c),c}},8545:function(e){"use strict";e.exports=r;function t(o,i){var n=o+i,a=n-o,s=n-a,h=i-a,c=o-s,m=c+h;return m?[m,n]:[n]}function r(o,i){var n=o.length|0,a=i.length|0;if(n===1&&a===1)return t(o[0],-i[0]);var s=n+a,h=new Array(s),c=0,m=0,d=0,T=Math.abs,l=o[m],_=T(l),w=-i[d],A=T(w),M,g;_<A?(g=l,m+=1,m<n&&(l=o[m],_=T(l))):(g=w,d+=1,d<a&&(w=-i[d],A=T(w))),m<n&&_<A||d>=a?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,d+=1,d<a&&(w=-i[d],A=T(w)));for(var b=M+g,v=b-M,u=g-v,y=u,f=b,R,L,z,F,N;m<n&&d<a;)_<A?(M=l,m+=1,m<n&&(l=o[m],_=T(l))):(M=w,d+=1,d<a&&(w=-i[d],A=T(w))),g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R;for(;m<n;)M=l,g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,m+=1,m<n&&(l=o[m]);for(;d<a;)M=w,g=y,b=M+g,v=b-M,u=g-v,u&&(h[c++]=u),R=f+b,L=R-f,z=R-L,F=b-L,N=f-z,y=N+F,f=R,d+=1,d<a&&(w=-i[d]);return y&&(h[c++]=y),f&&(h[c++]=f),c||(h[c++]=0),h.length=c,h}},8572:function(e){"use strict";e.exports=function(r){return r<0?-1:r>0?1:0}},8648:function(e,t,r){e.exports=r(783)},8692:function(e){e.exports=t;function t(r,o,i,n){var a=i[0],s=i[1],h=o[0]-a,c=o[1]-s,m=Math.sin(n),d=Math.cos(n);return r[0]=a+h*d-c*m,r[1]=s+h*m+c*d,r[2]=o[2],r}},8697:function(e,t,r){"use strict";var o=r(869);e.exports=i;function i(n,a){return o(n[0].mul(a[1]),n[1].mul(a[0]))}},8731:function(e,t,r){"use strict";e.exports=c;var o=r(8866);function i(m,d,T,l,_,w){this._gl=m,this._wrapper=d,this._index=T,this._locations=l,this._dimension=_,this._constFunc=w}var n=i.prototype;n.pointer=function(d,T,l,_){var w=this,A=w._gl,M=w._locations[w._index];A.vertexAttribPointer(M,w._dimension,d||A.FLOAT,!!T,l||0,_||0),A.enableVertexAttribArray(M)},n.set=function(m,d,T,l){return this._constFunc(this._locations[this._index],m,d,T,l)},Object.defineProperty(n,"location",{get:function(){return this._locations[this._index]},set:function(m){return m!==this._locations[this._index]&&(this._locations[this._index]=m|0,this._wrapper.program=null),m|0}});var a=[function(m,d,T){return T.length===void 0?m.vertexAttrib1f(d,T):m.vertexAttrib1fv(d,T)},function(m,d,T,l){return T.length===void 0?m.vertexAttrib2f(d,T,l):m.vertexAttrib2fv(d,T)},function(m,d,T,l,_){return T.length===void 0?m.vertexAttrib3f(d,T,l,_):m.vertexAttrib3fv(d,T)},function(m,d,T,l,_,w){return T.length===void 0?m.vertexAttrib4f(d,T,l,_,w):m.vertexAttrib4fv(d,T)}];function s(m,d,T,l,_,w,A){var M=a[_],g=new i(m,d,T,l,_,M);Object.defineProperty(w,A,{set:function(b){return m.disableVertexAttribArray(l[T]),M(m,l[T],b),b},get:function(){return g},enumerable:!0})}function h(m,d,T,l,_,w,A){for(var M=new Array(_),g=new Array(_),b=0;b<_;++b)s(m,d,T[b],l,_,M,b),g[b]=M[b];Object.defineProperty(M,"location",{set:function(y){if(Array.isArray(y))for(var f=0;f<_;++f)g[f].location=y[f];else for(var f=0;f<_;++f)g[f].location=y+f;return y},get:function(){for(var y=new Array(_),f=0;f<_;++f)y[f]=l[T[f]];return y},enumerable:!0}),M.pointer=function(y,f,R,L){y=y||m.FLOAT,f=!!f,R=R||_*_,L=L||0;for(var z=0;z<_;++z){var F=l[T[z]];m.vertexAttribPointer(F,_,y,f,R,L+z*_),m.enableVertexAttribArray(F)}};var v=new Array(_),u=m["vertexAttrib"+_+"fv"];Object.defineProperty(w,A,{set:function(y){for(var f=0;f<_;++f){var R=l[T[f]];if(m.disableVertexAttribArray(R),Array.isArray(y[0]))u.call(m,R,y[f]);else{for(var L=0;L<_;++L)v[L]=y[_*f+L];u.call(m,R,v)}}return y},get:function(){return M},enumerable:!0})}function c(m,d,T,l){for(var _={},w=0,A=T.length;w<A;++w){var M=T[w],g=M.name,b=M.type,v=M.locations;switch(b){case"bool":case"int":case"float":s(m,d,v[0],l,1,_,g);break;default:if(b.indexOf("vec")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new o("","Invalid data type for attribute "+g+": "+b);s(m,d,v[0],l,u,_,g)}else if(b.indexOf("mat")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new o("","Invalid data type for attribute "+g+": "+b);h(m,d,v,l,u,_,g)}else throw new o("","Unknown data type for attribute "+g+": "+b);break}}return _}},8828:function(e,t){"use strict";"use restrict";var r=32;t.INT_BITS=r,t.INT_MAX=2147483647,t.INT_MIN=-1<<r-1,t.sign=function(n){return(n>0)-(n<0)},t.abs=function(n){var a=n>>r-1;return(n^a)-a},t.min=function(n,a){return a^(n^a)&-(n<a)},t.max=function(n,a){return n^(n^a)&-(n<a)},t.isPow2=function(n){return!(n&n-1)&&!!n},t.log2=function(n){var a,s;return a=(n>65535)<<4,n>>>=a,s=(n>255)<<3,n>>>=s,a|=s,s=(n>15)<<2,n>>>=s,a|=s,s=(n>3)<<1,n>>>=s,a|=s,a|n>>1},t.log10=function(n){return n>=1e9?9:n>=1e8?8:n>=1e7?7:n>=1e6?6:n>=1e5?5:n>=1e4?4:n>=1e3?3:n>=100?2:n>=10?1:0},t.popCount=function(n){return n=n-(n>>>1&1431655765),n=(n&858993459)+(n>>>2&858993459),(n+(n>>>4)&252645135)*16843009>>>24};function o(n){var a=32;return n&=-n,n&&a--,n&65535&&(a-=16),n&16711935&&(a-=8),n&252645135&&(a-=4),n&858993459&&(a-=2),n&1431655765&&(a-=1),a}t.countTrailingZeros=o,t.nextPow2=function(n){return n+=n===0,--n,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n+1},t.prevPow2=function(n){return n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n-(n>>>1)},t.parity=function(n){return n^=n>>>16,n^=n>>>8,n^=n>>>4,n&=15,27030>>>n&1};var i=new Array(256);(function(n){for(var a=0;a<256;++a){var s=a,h=a,c=7;for(s>>>=1;s;s>>>=1)h<<=1,h|=s&1,--c;n[a]=h<<c&255}})(i),t.reverse=function(n){return i[n&255]<<24|i[n>>>8&255]<<16|i[n>>>16&255]<<8|i[n>>>24&255]},t.interleave2=function(n,a){return n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,a&=65535,a=(a|a<<8)&16711935,a=(a|a<<4)&252645135,a=(a|a<<2)&858993459,a=(a|a<<1)&1431655765,n|a<<1},t.deinterleave2=function(n,a){return n=n>>>a&1431655765,n=(n|n>>>1)&858993459,n=(n|n>>>2)&252645135,n=(n|n>>>4)&16711935,n=(n|n>>>16)&65535,n<<16>>16},t.interleave3=function(n,a,s){return n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,a&=1023,a=(a|a<<16)&4278190335,a=(a|a<<8)&251719695,a=(a|a<<4)&3272356035,a=(a|a<<2)&1227133513,n|=a<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,n|s<<2},t.deinterleave3=function(n,a){return n=n>>>a&1227133513,n=(n|n>>>2)&3272356035,n=(n|n>>>4)&251719695,n=(n|n>>>8)&4278190335,n=(n|n>>>16)&1023,n<<22>>22},t.nextCombination=function(n){var a=n|n-1;return a+1|(~a&-~a)-1>>>o(n)+1}},8866:function(e){function t(r,o,i){this.shortMessage=o||"",this.longMessage=i||"",this.rawError=r||"",this.message="gl-shader: "+(o||r||"")+(i?`
1994`+i:""),this.stack=new Error().stack}t.prototype=new Error,t.prototype.name="GLError",t.prototype.constructor=t,e.exports=t},8902:function(e,t,r){"use strict";var o=r(2478),i=r(3250)[3],n=0,a=1,s=2;e.exports=A;function h(M,g,b,v,u){this.a=M,this.b=g,this.idx=b,this.lowerIds=v,this.upperIds=u}function c(M,g,b,v){this.a=M,this.b=g,this.type=b,this.idx=v}function m(M,g){var b=M.a[0]-g.a[0]||M.a[1]-g.a[1]||M.type-g.type;return b||M.type!==n&&(b=i(M.a,M.b,g.b),b)?b:M.idx-g.idx}function d(M,g){return i(M.a,M.b,g)}function T(M,g,b,v,u){for(var y=o.lt(g,v,d),f=o.gt(g,v,d),R=y;R<f;++R){for(var L=g[R],z=L.lowerIds,N=z.length;N>1&&i(b[z[N-2]],b[z[N-1]],v)>0;)M.push([z[N-1],z[N-2],u]),N-=1;z.length=N,z.push(u);for(var F=L.upperIds,N=F.length;N>1&&i(b[F[N-2]],b[F[N-1]],v)<0;)M.push([F[N-2],F[N-1],u]),N-=1;F.length=N,F.push(u)}}function l(M,g){var b;return M.a[0]<g.a[0]?b=i(M.a,M.b,g.a):b=i(g.b,g.a,M.a),b||(g.b[0]<M.b[0]?b=i(M.a,M.b,g.b):b=i(g.b,g.a,M.b),b||M.idx-g.idx)}function _(M,g,b){var v=o.le(M,b,l),u=M[v],y=u.upperIds,f=y[y.length-1];u.upperIds=[f],M.splice(v+1,0,new h(b.a,b.b,b.idx,[f],y))}function w(M,g,b){var v=b.a;b.a=b.b,b.b=v;var u=o.eq(M,b,l),y=M[u],f=M[u-1];f.upperIds=y.upperIds,M.splice(u,1)}function A(M,g){for(var b=M.length,v=g.length,u=[],y=0;y<b;++y)u.push(new c(M[y],null,n,y));for(var y=0;y<v;++y){var f=g[y],R=M[f[0]],L=M[f[1]];R[0]<L[0]?u.push(new c(R,L,s,y),new c(L,R,a,y)):R[0]>L[0]&&u.push(new c(L,R,s,y),new c(R,L,a,y))}u.sort(m);for(var z=u[0].a[0]-(1+Math.abs(u[0].a[0]))*Math.pow(2,-52),F=[new h([z,1],[z,0],-1,[],[],[],[])],N=[],y=0,B=u.length;y<B;++y){var I=u[y],U=I.type;U===n?T(N,F,M,I.a,I.idx):U===s?_(F,M,I):w(F,M,I)}return N}},8954:function(e,t,r){"use strict";e.exports=l;var o=r(3250),i=r(6803).Fw;function n(_,w,A){this.vertices=_,this.adjacent=w,this.boundary=A,this.lastVisited=-1}n.prototype.flip=function(){var _=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=_;var w=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=w};function a(_,w,A){this.vertices=_,this.cell=w,this.index=A}function s(_,w){return i(_.vertices,w.vertices)}function h(_){return function(){var w=this.tuple;return _.apply(this,w)}}function c(_){var w=o[_+1];return w||(w=o),h(w)}var m=[];function d(_,w,A){this.dimension=_,this.vertices=w,this.simplices=A,this.interior=A.filter(function(b){return!b.boundary}),this.tuple=new Array(_+1);for(var M=0;M<=_;++M)this.tuple[M]=this.vertices[M];var g=m[_];g||(g=m[_]=c(_)),this.orient=g}var T=d.prototype;T.handleBoundaryDegeneracy=function(_,w){var A=this.dimension,M=this.vertices.length-1,g=this.tuple,b=this.vertices,v=[_];for(_.lastVisited=-M;v.length>0;){_=v.pop();for(var u=_.adjacent,y=0;y<=A;++y){var f=u[y];if(!(!f.boundary||f.lastVisited<=-M)){for(var R=f.vertices,L=0;L<=A;++L){var z=R[L];z<0?g[L]=w:g[L]=b[z]}var F=this.orient();if(F>0)return f;f.lastVisited=-M,F===0&&v.push(f)}}}return null},T.walk=function(_,w){var A=this.vertices.length-1,M=this.dimension,g=this.vertices,b=this.tuple,v=w?this.interior.length*Math.random()|0:this.interior.length-1,u=this.interior[v];e:for(;!u.boundary;){for(var y=u.vertices,f=u.adjacent,R=0;R<=M;++R)b[R]=g[y[R]];u.lastVisited=A;for(var R=0;R<=M;++R){var L=f[R];if(!(L.lastVisited>=A)){var z=b[R];b[R]=_;var F=this.orient();if(b[R]=z,F<0){u=L;continue e}else L.boundary?L.lastVisited=-A:L.lastVisited=A}}return}return u},T.addPeaks=function(_,w){var A=this.vertices.length-1,M=this.dimension,g=this.vertices,b=this.tuple,v=this.interior,u=this.simplices,y=[w];w.lastVisited=A,w.vertices[w.vertices.indexOf(-1)]=A,w.boundary=!1,v.push(w);for(var f=[];y.length>0;){var w=y.pop(),R=w.vertices,L=w.adjacent,z=R.indexOf(A);if(!(z<0)){for(var F=0;F<=M;++F)if(F!==z){var N=L[F];if(!(!N.boundary||N.lastVisited>=A)){var B=N.vertices;if(N.lastVisited!==-A){for(var I=0,U=0;U<=M;++U)B[U]<0?(I=U,b[U]=_):b[U]=g[B[U]];var O=this.orient();if(O>0){B[I]=A,N.boundary=!1,v.push(N),y.push(N),N.lastVisited=A;continue}else N.lastVisited=-A}var X=N.adjacent,J=R.slice(),se=L.slice(),le=new n(J,se,!0);u.push(le);var ce=X.indexOf(w);if(!(ce<0)){X[ce]=le,se[z]=N,J[F]=-1,se[F]=w,L[F]=le,le.flip();for(var U=0;U<=M;++U){var q=J[U];if(!(q<0||q===A)){for(var Z=new Array(M-1),ee=0,V=0;V<=M;++V){var oe=J[V];oe<0||V===U||(Z[ee++]=oe)}f.push(new a(Z,le,U))}}}}}}}f.sort(s);for(var F=0;F+1<f.length;F+=2){var ie=f[F],j=f[F+1],Q=ie.index,re=j.index;Q<0||re<0||(ie.cell.adjacent[ie.index]=j.cell,j.cell.adjacent[j.index]=ie.cell)}},T.insert=function(_,w){var A=this.vertices;A.push(_);var M=this.walk(_,w);if(M){for(var g=this.dimension,b=this.tuple,v=0;v<=g;++v){var u=M.vertices[v];u<0?b[v]=_:b[v]=A[u]}var y=this.orient(b);y<0||y===0&&(M=this.handleBoundaryDegeneracy(M,_),!M)||this.addPeaks(_,M)}},T.boundary=function(){for(var _=this.dimension,w=[],A=this.simplices,M=A.length,g=0;g<M;++g){var b=A[g];if(b.boundary){for(var v=new Array(_),u=b.vertices,y=0,f=0,R=0;R<=_;++R)u[R]>=0?v[y++]=u[R]:f=R&1;if(f===(_&1)){var L=v[0];v[0]=v[1],v[1]=L}w.push(v)}}return w};function l(_,w){var A=_.length;if(A===0)throw new Error("Must have at least d+1 points");var M=_[0].length;if(A<=M)throw new Error("Must input at least d+1 points");var g=_.slice(0,M+1),b=o.apply(void 0,g);if(b===0)throw new Error("Input not in general position");for(var v=new Array(M+1),u=0;u<=M;++u)v[u]=u;b<0&&(v[0]=1,v[1]=0);for(var y=new n(v,new Array(M+1),!1),f=y.adjacent,R=new Array(M+2),u=0;u<=M;++u){for(var L=v.slice(),z=0;z<=M;++z)z===u&&(L[z]=-1);var F=L[0];L[0]=L[1],L[1]=F;var N=new n(L,new Array(M+1),!0);f[u]=N,R[u]=N}R[M+1]=y;for(var u=0;u<=M;++u)for(var L=f[u].vertices,B=f[u].adjacent,z=0;z<=M;++z){var I=L[z];if(I<0){B[z]=y;continue}for(var U=0;U<=M;++U)f[U].vertices.indexOf(I)<0&&(B[z]=f[U])}for(var O=new d(M,g,R),X=!!w,u=M+1;u<A;++u)O.insert(_[u],X);return O.boundary()}},8987:function(e,t,r){"use strict";var o=r(7842),i=r(6504);e.exports=n;function n(a,s){for(var h=o(s),c=a.length,m=new Array(c),d=0;d<c;++d)m[d]=i(a[d],h);return m}},9060:function(e,t,r){"use strict";var o=r(9405),i=r(2762),n=r(8116),a=r(7766),s=r(6760),h=r(7608),c=r(9618),m=r(6729),d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(b,v,u,y,f,R,L,z,F,N,B){this.gl=b,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=v,this.dirty=!0,this.triShader=u,this.pickShader=y,this.trianglePositions=f,this.triangleVectors=R,this.triangleColors=z,this.triangleUVs=F,this.triangleIds=L,this.triangleVAO=N,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=B,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=d,this._view=d,this._projection=d,this._resolution=[1,1]}var l=T.prototype;l.isOpaque=function(){return this.opacity>=1},l.isTransparent=function(){return this.opacity<1},l.pickSlots=1,l.setPickBase=function(b){this.pickId=b};function _(b){for(var v=m({colormap:b,nshades:256,format:"rgba"}),u=new Uint8Array(256*4),y=0;y<256;++y){for(var f=v[y],R=0;R<3;++R)u[4*y+R]=f[R];u[4*y+3]=f[3]*255}return c(u,[256,256,4],[4,0,1])}function w(b){for(var v=b.length,u=new Array(v),y=0;y<v;++y)u[y]=b[y][2];return u}l.update=function(b){b=b||{};var v=this.gl;this.dirty=!0,"lightPosition"in b&&(this.lightPosition=b.lightPosition),"opacity"in b&&(this.opacity=b.opacity),"ambient"in b&&(this.ambientLight=b.ambient),"diffuse"in b&&(this.diffuseLight=b.diffuse),"specular"in b&&(this.specularLight=b.specular),"roughness"in b&&(this.roughness=b.roughness),"fresnel"in b&&(this.fresnel=b.fresnel),b.tubeScale!==void 0&&(this.tubeScale=b.tubeScale),b.vectorScale!==void 0&&(this.vectorScale=b.vectorScale),b.coneScale!==void 0&&(this.coneScale=b.coneScale),b.coneOffset!==void 0&&(this.coneOffset=b.coneOffset),b.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=v.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=v.LINEAR,this.texture.setPixels(_(b.colormap)),this.texture.generateMipmap());var u=b.cells,y=b.positions,f=b.vectors;if(!(!y||!u||!f)){var R=[],L=[],z=[],F=[],N=[];this.cells=u,this.positions=y,this.vectors=f;var B=b.meshColor||[1,1,1,1],I=b.vertexIntensity,U=1/0,O=-1/0;if(I)if(b.vertexIntensityBounds)U=+b.vertexIntensityBounds[0],O=+b.vertexIntensityBounds[1];else for(var X=0;X<I.length;++X){var J=I[X];U=Math.min(U,J),O=Math.max(O,J)}else for(var X=0;X<y.length;++X){var J=y[X][2];U=Math.min(U,J),O=Math.max(O,J)}I?this.intensity=I:this.intensity=w(y),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var X=0;X<y.length;++X)for(var se=y[X],le=0;le<3;++le)isNaN(se[le])||!isFinite(se[le])||(this.bounds[0][le]=Math.min(this.bounds[0][le],se[le]),this.bounds[1][le]=Math.max(this.bounds[1][le],se[le]));var ce=0;e:for(var X=0;X<u.length;++X){var q=u[X];switch(q.length){case 3:for(var le=0;le<3;++le)for(var Z=q[le],se=y[Z],ee=0;ee<3;++ee)if(isNaN(se[ee])||!isFinite(se[ee]))continue e;for(var le=0;le<3;++le){var Z=q[2-le],se=y[Z];R.push(se[0],se[1],se[2],se[3]);var V=f[Z];L.push(V[0],V[1],V[2],V[3]||0);var oe=B;oe.length===3?z.push(oe[0],oe[1],oe[2],1):z.push(oe[0],oe[1],oe[2],oe[3]);var ie;I?ie=[(I[Z]-U)/(O-U),0]:ie=[(se[2]-U)/(O-U),0],F.push(ie[0],ie[1]),N.push(X)}ce+=1;break;default:break}}this.triangleCount=ce,this.trianglePositions.update(R),this.triangleVectors.update(L),this.triangleColors.update(z),this.triangleUVs.update(F),this.triangleIds.update(new Uint32Array(N))}},l.drawTransparent=l.draw=function(b){b=b||{};for(var v=this.gl,u=b.model||d,y=b.view||d,f=b.projection||d,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],L=0;L<3;++L)R[0][L]=Math.max(R[0][L],this.clipBounds[0][L]),R[1][L]=Math.min(R[1][L],this.clipBounds[1][L]);var z={model:u,view:y,projection:f,inverseModel:d.slice(),clipBounds:R,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};z.inverseModel=h(z.inverseModel,z.model),v.disable(v.CULL_FACE),this.texture.bind(0);var F=new Array(16);s(F,z.view,z.model),s(F,z.projection,F),h(F,F);for(var L=0;L<3;++L)z.eyePosition[L]=F[12+L]/F[15];for(var N=F[15],L=0;L<3;++L)N+=this.lightPosition[L]*F[4*L+3];for(var L=0;L<3;++L){for(var B=F[12+L],I=0;I<3;++I)B+=F[4*I+L]*this.lightPosition[I];z.lightPosition[L]=B/N}if(this.triangleCount>0){var U=this.triShader;U.bind(),U.uniforms=z,this.triangleVAO.bind(),v.drawArrays(v.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},l.drawPick=function(b){b=b||{};for(var v=this.gl,u=b.model||d,y=b.view||d,f=b.projection||d,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],L=0;L<3;++L)R[0][L]=Math.max(R[0][L],this.clipBounds[0][L]),R[1][L]=Math.min(R[1][L],this.clipBounds[1][L]);this._model=[].slice.call(u),this._view=[].slice.call(y),this._projection=[].slice.call(f),this._resolution=[v.drawingBufferWidth,v.drawingBufferHeight];var z={model:u,view:y,projection:f,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=z,this.triangleCount>0&&(this.triangleVAO.bind(),v.drawArrays(v.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},l.pick=function(b){if(!b||b.id!==this.pickId)return null;var v=b.value[0]+256*b.value[1]+65536*b.value[2],u=this.cells[v],y=this.positions[u[1]].slice(0,3),f={position:y,dataCoordinate:y,index:Math.floor(u[1]/48)};return this.traceType==="cone"?f.index=Math.floor(u[1]/48):this.traceType==="streamtube"&&(f.intensity=this.intensity[u[1]],f.velocity=this.vectors[u[1]].slice(0,3),f.divergence=this.vectors[u[1]][3],f.index=v),f},l.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(b,v){var u=o(b,v.meshShader.vertex,v.meshShader.fragment,null,v.meshShader.attributes);return u.attributes.position.location=0,u.attributes.color.location=2,u.attributes.uv.location=3,u.attributes.vector.location=4,u}function M(b,v){var u=o(b,v.pickShader.vertex,v.pickShader.fragment,null,v.pickShader.attributes);return u.attributes.position.location=0,u.attributes.id.location=1,u.attributes.vector.location=4,u}function g(b,v,u){var y=u.shaders;arguments.length===1&&(v=b,b=v.gl);var f=A(b,y),R=M(b,y),L=a(b,c(new Uint8Array([255,255,255,255]),[1,1,4]));L.generateMipmap(),L.minFilter=b.LINEAR_MIPMAP_LINEAR,L.magFilter=b.LINEAR;var z=i(b),F=i(b),N=i(b),B=i(b),I=i(b),U=n(b,[{buffer:z,type:b.FLOAT,size:4},{buffer:I,type:b.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:N,type:b.FLOAT,size:4},{buffer:B,type:b.FLOAT,size:2},{buffer:F,type:b.FLOAT,size:4}]),O=new T(b,L,f,R,z,F,I,N,B,U,u.traceType||"cone");return O.update(v),O}e.exports=g},9127:function(e,t,r){"use strict";e.exports=n;var o=r(6204),i=r(5771);function n(a){return i(o(a))}},9131:function(e,t,r){var o=r(5177),i=r(9288);e.exports=n;function n(a,s){return s=s||1,a[0]=Math.random(),a[1]=Math.random(),a[2]=Math.random(),a[3]=Math.random(),o(a,a),i(a,a,s),a}},9165:function(e,t,r){"use strict";e.exports=T;var o=r(2762),i=r(8116),n=r(3436),a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(l,_,w,A){this.gl=l,this.shader=A,this.buffer=_,this.vao=w,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=s.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(l){var _=this.gl,w=this.shader.uniforms;this.shader.bind();var A=w.view=l.view||a,M=w.projection=l.projection||a;w.model=l.model||a,w.clipBounds=this.clipBounds,w.opacity=this.opacity;var g=A[12],b=A[13],v=A[14],u=A[15],y=l._ortho||!1,f=y?2:1,R=f*this.pixelRatio*(M[3]*g+M[7]*b+M[11]*v+M[15]*u)/_.drawingBufferHeight;this.vao.bind();for(var L=0;L<3;++L)_.lineWidth(this.lineWidth[L]*this.pixelRatio),w.capSize=this.capSize[L]*R,this.lineCount[L]&&_.drawArrays(_.LINES,this.lineOffset[L],this.lineCount[L]);this.vao.unbind()};function c(l,_){for(var w=0;w<3;++w)l[0][w]=Math.min(l[0][w],_[w]),l[1][w]=Math.max(l[1][w],_[w])}var m=function(){for(var l=new Array(3),_=0;_<3;++_){for(var w=[],A=1;A<=2;++A)for(var M=-1;M<=1;M+=2){var g=(A+_)%3,b=[0,0,0];b[g]=M,w.push(b)}l[_]=w}return l}();function d(l,_,w,A){for(var M=m[A],g=0;g<M.length;++g){var b=M[g];l.push(_[0],_[1],_[2],w[0],w[1],w[2],w[3],b[0],b[1],b[2])}return M.length}h.update=function(l){l=l||{},"lineWidth"in l&&(this.lineWidth=l.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in l&&(this.capSize=l.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in l&&(this.opacity=+l.opacity,this.opacity<1&&(this.hasAlpha=!0));var _=l.color||[[0,0,0],[0,0,0],[0,0,0]],w=l.position,A=l.error;if(Array.isArray(_[0])||(_=[_,_,_]),w&&A){var M=[],g=w.length,b=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var v=0;v<3;++v){this.lineOffset[v]=b;e:for(var u=0;u<g;++u){for(var y=w[u],f=0;f<3;++f)if(isNaN(y[f])||!isFinite(y[f]))continue e;var R=A[u],L=_[v];if(Array.isArray(L[0])&&(L=_[u]),L.length===3?L=[L[0],L[1],L[2],1]:L.length===4&&(L=[L[0],L[1],L[2],L[3]],!this.hasAlpha&&L[3]<1&&(this.hasAlpha=!0)),!(isNaN(R[0][v])||isNaN(R[1][v]))){if(R[0][v]<0){var z=y.slice();z[v]+=R[0][v],M.push(y[0],y[1],y[2],L[0],L[1],L[2],L[3],0,0,0,z[0],z[1],z[2],L[0],L[1],L[2],L[3],0,0,0),c(this.bounds,z),b+=2+d(M,z,L,v)}if(R[1][v]>0){var z=y.slice();z[v]+=R[1][v],M.push(y[0],y[1],y[2],L[0],L[1],L[2],L[3],0,0,0,z[0],z[1],z[2],L[0],L[1],L[2],L[3],0,0,0),c(this.bounds,z),b+=2+d(M,z,L,v)}}}this.lineCount[v]=b-this.lineOffset[v]}this.buffer.update(M)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(l){var _=l.gl,w=o(_),A=i(_,[{buffer:w,type:_.FLOAT,size:3,offset:0,stride:40},{buffer:w,type:_.FLOAT,size:4,offset:12,stride:40},{buffer:w,type:_.FLOAT,size:3,offset:28,stride:40}]),M=n(_);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var g=new s(_,w,A,M);return g.update(l),g}},9215:function(e,t,r){"use strict";e.exports=c;var o=r(4769),i=r(2478);function n(m,d,T){return Math.min(d,Math.max(m,T))}function a(m,d,T){this.dimension=m.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var l=0;l<this.dimension;++l)this.bounds[0][l]=-1/0,this.bounds[1][l]=1/0;this._state=m.slice().reverse(),this._velocity=d.slice().reverse(),this._time=[T],this._scratch=[m.slice(),m.slice(),m.slice(),m.slice(),m.slice()]}var s=a.prototype;s.flush=function(m){var d=i.gt(this._time,m)-1;d<=0||(this._time.splice(0,d),this._state.splice(0,d*this.dimension),this._velocity.splice(0,d*this.dimension))},s.curve=function(m){var d=this._time,T=d.length,l=i.le(d,m),_=this._scratch[0],w=this._state,A=this._velocity,M=this.dimension,g=this.bounds;if(l<0)for(var b=M-1,v=0;v<M;++v,--b)_[v]=w[b];else if(l>=T-1)for(var b=w.length-1,u=m-d[T-1],v=0;v<M;++v,--b)_[v]=w[b]+u*A[b];else{for(var b=M*(l+1)-1,y=d[l],f=d[l+1],R=f-y||1,L=this._scratch[1],z=this._scratch[2],F=this._scratch[3],N=this._scratch[4],B=!0,v=0;v<M;++v,--b)L[v]=w[b],F[v]=A[b]*R,z[v]=w[b+M],N[v]=A[b+M]*R,B=B&&L[v]===z[v]&&F[v]===N[v]&&F[v]===0;if(B)for(var v=0;v<M;++v)_[v]=L[v];else o(L,F,z,N,(m-y)/R,_)}for(var I=g[0],U=g[1],v=0;v<M;++v)_[v]=n(I[v],U[v],_[v]);return _},s.dcurve=function(m){var d=this._time,T=d.length,l=i.le(d,m),_=this._scratch[0],w=this._state,A=this._velocity,M=this.dimension;if(l>=T-1)for(var g=w.length-1,b=m-d[T-1],v=0;v<M;++v,--g)_[v]=A[g];else{for(var g=M*(l+1)-1,u=d[l],y=d[l+1],f=y-u||1,R=this._scratch[1],L=this._scratch[2],z=this._scratch[3],F=this._scratch[4],N=!0,v=0;v<M;++v,--g)R[v]=w[g],z[v]=A[g]*f,L[v]=w[g+M],F[v]=A[g+M]*f,N=N&&R[v]===L[v]&&z[v]===F[v]&&z[v]===0;if(N)for(var v=0;v<M;++v)_[v]=0;else{o.derivative(R,z,L,F,(m-u)/f,_);for(var v=0;v<M;++v)_[v]/=f}}return _},s.lastT=function(){var m=this._time;return m[m.length-1]},s.stable=function(){for(var m=this._velocity,d=m.length,T=this.dimension-1;T>=0;--T)if(m[--d])return!1;return!0},s.jump=function(m){var d=this.lastT(),T=this.dimension;if(!(m<d||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=this.bounds,M=A[0],g=A[1];this._time.push(d,m);for(var b=0;b<2;++b)for(var v=0;v<T;++v)l.push(l[w++]),_.push(0);this._time.push(m);for(var v=T;v>0;--v)l.push(n(M[v-1],g[v-1],arguments[v])),_.push(0)}},s.push=function(m){var d=this.lastT(),T=this.dimension;if(!(m<d||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=m-d,M=this.bounds,g=M[0],b=M[1],v=A>1e-6?1/A:0;this._time.push(m);for(var u=T;u>0;--u){var y=n(g[u-1],b[u-1],arguments[u]);l.push(y),_.push((y-l[w++])*v)}}},s.set=function(m){var d=this.dimension;if(!(m<this.lastT()||arguments.length!==d+1)){var T=this._state,l=this._velocity,_=this.bounds,w=_[0],A=_[1];this._time.push(m);for(var M=d;M>0;--M)T.push(n(w[M-1],A[M-1],arguments[M])),l.push(0)}},s.move=function(m){var d=this.lastT(),T=this.dimension;if(!(m<=d||arguments.length!==T+1)){var l=this._state,_=this._velocity,w=l.length-this.dimension,A=this.bounds,M=A[0],g=A[1],b=m-d,v=b>1e-6?1/b:0;this._time.push(m);for(var u=T;u>0;--u){var y=arguments[u];l.push(n(M[u-1],g[u-1],l[w++]+y)),_.push(y*v)}}},s.idle=function(m){var d=this.lastT();if(!(m<d)){var T=this.dimension,l=this._state,_=this._velocity,w=l.length-T,A=this.bounds,M=A[0],g=A[1],b=m-d;this._time.push(m);for(var v=T-1;v>=0;--v)l.push(n(M[v],g[v],l[w]+b*_[w])),_.push(0),w+=1}};function h(m){for(var d=new Array(m),T=0;T<m;++T)d[T]=0;return d}function c(m,d,T){switch(arguments.length){case 0:return new a([0],[0],0);case 1:if(typeof m=="number"){var l=h(m);return new a(l,l,0)}else return new a(m,h(m.length),0);case 2:if(typeof d=="number"){var l=h(m.length);return new a(m,l,+d)}else T=0;case 3:if(m.length!==d.length)throw new Error("state and velocity lengths must match");return new a(m,d,T)}}},9216:function(e){"use strict";e.exports=i,e.exports.isMobile=i,e.exports.default=i;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,o=/android|ipad|playbook|silk/i;function i(n){n||(n={});var a=n.ua;if(!a&&typeof navigator<"u"&&(a=navigator.userAgent),a&&a.headers&&typeof a.headers["user-agent"]=="string"&&(a=a.headers["user-agent"]),typeof a!="string")return!1;var s=t.test(a)&&!r.test(a)||!!n.tablet&&o.test(a);return!s&&n.tablet&&n.featureDetect&&navigator&&navigator.maxTouchPoints>1&&a.indexOf("Macintosh")!==-1&&a.indexOf("Safari")!==-1&&(s=!0),s}},9226:function(e){e.exports=t;function t(r,o){return r[0]=Math.ceil(o[0]),r[1]=Math.ceil(o[1]),r[2]=Math.ceil(o[2]),r}},9265:function(e){e.exports=t;function t(r,o){return r[0]===o[0]&&r[1]===o[1]&&r[2]===o[2]}},9288:function(e){e.exports=t;function t(r,o,i){return r[0]=o[0]*i,r[1]=o[1]*i,r[2]=o[2]*i,r[3]=o[3]*i,r}},9346:function(e){"use strict";var t=new Float64Array(4),r=new Float64Array(4),o=new Float64Array(4);function i(n,a,s,h,c){t.length<h.length&&(t=new Float64Array(h.length),r=new Float64Array(h.length),o=new Float64Array(h.length));for(var m=0;m<h.length;++m)t[m]=n[m]-h[m],r[m]=a[m]-n[m],o[m]=s[m]-n[m];for(var d=0,T=0,l=0,_=0,w=0,A=0,m=0;m<h.length;++m){var M=r[m],g=o[m],b=t[m];d+=M*M,T+=M*g,l+=g*g,_+=b*M,w+=b*g,A+=b*b}var v=Math.abs(d*l-T*T),u=T*w-l*_,y=T*_-d*w,f;if(u+y<=v)if(u<0)y<0&&_<0?(y=0,-_>=d?(u=1,f=d+2*_+A):(u=-_/d,f=_*u+A)):(u=0,w>=0?(y=0,f=A):-w>=l?(y=1,f=l+2*w+A):(y=-w/l,f=w*y+A));else if(y<0)y=0,_>=0?(u=0,f=A):-_>=d?(u=1,f=d+2*_+A):(u=-_/d,f=_*u+A);else{var R=1/v;u*=R,y*=R,f=u*(d*u+T*y+2*_)+y*(T*u+l*y+2*w)+A}else{var L,z,F,N;u<0?(L=T+_,z=l+w,z>L?(F=z-L,N=d-2*T+l,F>=N?(u=1,y=0,f=d+2*_+A):(u=F/N,y=1-u,f=u*(d*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)):(u=0,z<=0?(y=1,f=l+2*w+A):w>=0?(y=0,f=A):(y=-w/l,f=w*y+A))):y<0?(L=T+w,z=d+_,z>L?(F=z-L,N=d-2*T+l,F>=N?(y=1,u=0,f=l+2*w+A):(y=F/N,u=1-y,f=u*(d*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)):(y=0,z<=0?(u=1,f=d+2*_+A):_>=0?(u=0,f=A):(u=-_/d,f=_*u+A))):(F=l+w-T-_,F<=0?(u=0,y=1,f=l+2*w+A):(N=d-2*T+l,F>=N?(u=1,y=0,f=d+2*_+A):(u=F/N,y=1-u,f=u*(d*u+T*y+2*_)+y*(T*u+l*y+2*w)+A)))}for(var B=1-u-y,m=0;m<h.length;++m)c[m]=B*n[m]+u*a[m]+y*s[m];return f<0?0:f}e.exports=i},9362:function(e){"use strict";e.exports=t;function t(r,o,i){var n=r+o,a=n-r,s=n-a,h=o-a,c=r-s;return i?(i[0]=c+h,i[1]=n,i):[c+h,n]}},9366:function(e,t,r){"use strict";var o=r(4359);e.exports=n;var i={};function n(a,s,h){var c=[s.style,s.weight,s.variant,s.family].join("_"),m=i[c];if(m||(m=i[c]={}),a in m)return m[a];var d={textAlign:"center",textBaseline:"middle",lineHeight:1,font:s.family,fontStyle:s.style,fontWeight:s.weight,fontVariant:s.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};d.triangles=!0;var T=o(a,d);d.triangles=!1;var l=o(a,d),_,w;if(h&&h!==1){for(_=0;_<T.positions.length;++_)for(w=0;w<T.positions[_].length;++w)T.positions[_][w]/=h;for(_=0;_<l.positions.length;++_)for(w=0;w<l.positions[_].length;++w)l.positions[_][w]/=h}var A=[[1/0,1/0],[-1/0,-1/0]],M=l.positions.length;for(_=0;_<M;++_){var g=l.positions[_];for(w=0;w<2;++w)A[0][w]=Math.min(A[0][w],g[w]),A[1][w]=Math.max(A[1][w],g[w])}return m[a]=[T,l,A]}},9405:function(e,t,r){"use strict";var o=r(3327),i=r(8731),n=r(216),a=r(5091),s=r(2145),h=r(8866);function c(l){this.gl=l,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var m=c.prototype;m.bind=function(){this.program||this._relink();var l,_=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),w=this.gl.lastAttribCount;if(_>w)for(l=w;l<_;l++)this.gl.enableVertexAttribArray(l);else if(w>_)for(l=_;l<w;l++)this.gl.disableVertexAttribArray(l);this.gl.lastAttribCount=_,this.gl.useProgram(this.program)},m.dispose=function(){for(var l=this.gl.lastAttribCount,_=0;_<l;_++)this.gl.disableVertexAttribArray(_);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null};function d(l,_){return l.name<_.name?-1:1}m.update=function(l,_,w,A){if(!_||arguments.length===1){var M=l;l=M.vertex,_=M.fragment,w=M.uniforms,A=M.attributes}var g=this,b=g.gl,v=g._vref;g._vref=a.shader(b,b.VERTEX_SHADER,l),v&&v.dispose(),g.vertShader=g._vref.shader;var u=this._fref;if(g._fref=a.shader(b,b.FRAGMENT_SHADER,_),u&&u.dispose(),g.fragShader=g._fref.shader,!w||!A){var y=b.createProgram();if(b.attachShader(y,g.fragShader),b.attachShader(y,g.vertShader),b.linkProgram(y),!b.getProgramParameter(y,b.LINK_STATUS)){var f=b.getProgramInfoLog(y);throw new h(f,"Error linking program:"+f)}w=w||s.uniforms(b,y),A=A||s.attributes(b,y),b.deleteProgram(y)}A=A.slice(),A.sort(d);var R=[],L=[],z=[],F;for(F=0;F<A.length;++F){var N=A[F];if(N.type.indexOf("mat")>=0){for(var B=N.type.charAt(N.type.length-1)|0,I=new Array(B),U=0;U<B;++U)I[U]=z.length,L.push(N.name+"["+U+"]"),typeof N.location=="number"?z.push(N.location+U):Array.isArray(N.location)&&N.location.length===B&&typeof N.location[U]=="number"?z.push(N.location[U]|0):z.push(-1);R.push({name:N.name,type:N.type,locations:I})}else R.push({name:N.name,type:N.type,locations:[z.length]}),L.push(N.name),typeof N.location=="number"?z.push(N.location|0):z.push(-1)}var O=0;for(F=0;F<z.length;++F)if(z[F]<0){for(;z.indexOf(O)>=0;)O+=1;z[F]=O}var X=new Array(w.length);function J(){g.program=a.program(b,g._vref,g._fref,L,z);for(var se=0;se<w.length;++se)X[se]=b.getUniformLocation(g.program,w[se].name)}J(),g._relink=J,g.types={uniforms:n(w),attributes:n(A)},g.attributes=i(b,g,R,z),Object.defineProperty(g,"uniforms",o(b,g,w,X))};function T(l,_,w,A,M){var g=new c(l);return g.update(_,w,A,M),g}e.exports=T},9499:function(e,t,r){"use strict";e.exports=oe;var o=r(8828),i=r(2762),n=r(8116),a=r(7766),s=r(1888),h=r(6729),c=r(5298),m=r(9994),d=r(9618),T=r(3711),l=r(6760),_=r(7608),w=r(2478),A=r(6199),M=r(990),g=M.createShader,b=M.createContourShader,v=M.createPickShader,u=M.createPickContourShader,y=4*10,f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],L=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ie=0;ie<3;++ie){var j=L[ie],Q=(ie+1)%3,re=(ie+2)%3;j[Q+0]=1,j[re+3]=1,j[ie+6]=1}})();function z(ie,j,Q,re,ue){this.position=ie,this.index=j,this.uv=Q,this.level=re,this.dataCoordinate=ue}var F=256;function N(ie,j,Q,re,ue,_e,we,Re,ze,Xe,tt,it,et,nt,Ae){this.gl=ie,this.shape=j,this.bounds=Q,this.objectOffset=Ae,this.intensityBounds=[],this._shader=re,this._pickShader=ue,this._coordinateBuffer=_e,this._vao=we,this._colorMap=Re,this._contourShader=ze,this._contourPickShader=Xe,this._contourBuffer=tt,this._contourVAO=it,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new z([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=et,this._dynamicVAO=nt,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[d(s.mallocFloat(1024),[0,0]),d(s.mallocFloat(1024),[0,0]),d(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var B=N.prototype;B.genColormap=function(ie,j){var Q=!1,re=m([h({colormap:ie,nshades:F,format:"rgba"}).map(function(ue,_e){var we=j?I(_e/255,j):ue[3];return we<1&&(Q=!0),[ue[0],ue[1],ue[2],255*we]})]);return c.divseq(re,255),this.hasAlphaScale=Q,re},B.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},B.isOpaque=function(){return!this.isTransparent()},B.pickSlots=1,B.setPickBase=function(ie){this.pickId=ie};function I(ie,j){if(!j||!j.length)return 1;for(var Q=0;Q<j.length;++Q){if(j.length<2)return 1;if(j[Q][0]===ie)return j[Q][1];if(j[Q][0]>ie&&Q>0){var re=(j[Q][0]-ie)/(j[Q][0]-j[Q-1][0]);return j[Q][1]*(1-re)+re*j[Q-1][1]}}return 1}var U=[0,0,0],O={showSurface:!1,showContour:!1,projections:[f.slice(),f.slice(),f.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function X(ie,j){var Q,re,ue,_e=j.axes&&j.axes.lastCubeProps.axis||U,we=j.showSurface,Re=j.showContour;for(Q=0;Q<3;++Q)for(we=we||j.surfaceProject[Q],re=0;re<3;++re)Re=Re||j.contourProject[Q][re];for(Q=0;Q<3;++Q){var ze=O.projections[Q];for(re=0;re<16;++re)ze[re]=0;for(re=0;re<4;++re)ze[5*re]=1;ze[5*Q]=0,ze[12+Q]=j.axesBounds[+(_e[Q]>0)][Q],l(ze,ie.model,ze);var Xe=O.clipBounds[Q];for(ue=0;ue<2;++ue)for(re=0;re<3;++re)Xe[ue][re]=ie.clipBounds[ue][re];Xe[0][Q]=-1e8,Xe[1][Q]=1e8}return O.showSurface=we,O.showContour=Re,O}var J={model:f,view:f,projection:f,inverseModel:f.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},se=f.slice(),le=[1,0,0,0,1,0,0,0,1];function ce(ie,j){ie=ie||{};var Q=this.gl;Q.disable(Q.CULL_FACE),this._colorMap.bind(0);var re=J;re.model=ie.model||f,re.view=ie.view||f,re.projection=ie.projection||f,re.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],re.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],re.objectOffset=this.objectOffset,re.contourColor=this.contourColor[0],re.inverseModel=_(re.inverseModel,re.model);for(var ue=0;ue<2;++ue)for(var _e=re.clipBounds[ue],we=0;we<3;++we)_e[we]=Math.min(Math.max(this.clipBounds[ue][we],-1e8),1e8);re.kambient=this.ambientLight,re.kdiffuse=this.diffuseLight,re.kspecular=this.specularLight,re.roughness=this.roughness,re.fresnel=this.fresnel,re.opacity=this.opacity,re.height=0,re.permutation=le,re.vertexColor=this.vertexColor;var Re=se;for(l(Re,re.view,re.model),l(Re,re.projection,Re),_(Re,Re),ue=0;ue<3;++ue)re.eyePosition[ue]=Re[12+ue]/Re[15];var ze=Re[15];for(ue=0;ue<3;++ue)ze+=this.lightPosition[ue]*Re[4*ue+3];for(ue=0;ue<3;++ue){var Xe=Re[12+ue];for(we=0;we<3;++we)Xe+=Re[4*we+ue]*this.lightPosition[we];re.lightPosition[ue]=Xe/ze}var tt=X(re,this);if(tt.showSurface){for(this._shader.bind(),this._shader.uniforms=re,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Q.TRIANGLES,this._vertexCount),ue=0;ue<3;++ue)!this.surfaceProject[ue]||!this.vertexCount||(this._shader.uniforms.model=tt.projections[ue],this._shader.uniforms.clipBounds=tt.clipBounds[ue],this._vao.draw(Q.TRIANGLES,this._vertexCount));this._vao.unbind()}if(tt.showContour){var it=this._contourShader;re.kambient=1,re.kdiffuse=0,re.kspecular=0,re.opacity=1,it.bind(),it.uniforms=re;var et=this._contourVAO;for(et.bind(),ue=0;ue<3;++ue)for(it.uniforms.permutation=L[ue],Q.lineWidth(this.contourWidth[ue]*this.pixelRatio),we=0;we<this.contourLevels[ue].length;++we)we===this.highlightLevel[ue]?(it.uniforms.contourColor=this.highlightColor[ue],it.uniforms.contourTint=this.highlightTint[ue]):(we===0||we-1===this.highlightLevel[ue])&&(it.uniforms.contourColor=this.contourColor[ue],it.uniforms.contourTint=this.contourTint[ue]),this._contourCounts[ue][we]&&(it.uniforms.height=this.contourLevels[ue][we],et.draw(Q.LINES,this._contourCounts[ue][we],this._contourOffsets[ue][we]));for(ue=0;ue<3;++ue)for(it.uniforms.model=tt.projections[ue],it.uniforms.clipBounds=tt.clipBounds[ue],we=0;we<3;++we)if(this.contourProject[ue][we]){it.uniforms.permutation=L[we],Q.lineWidth(this.contourWidth[we]*this.pixelRatio);for(var nt=0;nt<this.contourLevels[we].length;++nt)nt===this.highlightLevel[we]?(it.uniforms.contourColor=this.highlightColor[we],it.uniforms.contourTint=this.highlightTint[we]):(nt===0||nt-1===this.highlightLevel[we])&&(it.uniforms.contourColor=this.contourColor[we],it.uniforms.contourTint=this.contourTint[we]),this._contourCounts[we][nt]&&(it.uniforms.height=this.contourLevels[we][nt],et.draw(Q.LINES,this._contourCounts[we][nt],this._contourOffsets[we][nt]))}for(et.unbind(),et=this._dynamicVAO,et.bind(),ue=0;ue<3;++ue)if(this._dynamicCounts[ue]!==0)for(it.uniforms.model=re.model,it.uniforms.clipBounds=re.clipBounds,it.uniforms.permutation=L[ue],Q.lineWidth(this.dynamicWidth[ue]*this.pixelRatio),it.uniforms.contourColor=this.dynamicColor[ue],it.uniforms.contourTint=this.dynamicTint[ue],it.uniforms.height=this.dynamicLevel[ue],et.draw(Q.LINES,this._dynamicCounts[ue],this._dynamicOffsets[ue]),we=0;we<3;++we)this.contourProject[we][ue]&&(it.uniforms.model=tt.projections[we],it.uniforms.clipBounds=tt.clipBounds[we],et.draw(Q.LINES,this._dynamicCounts[ue],this._dynamicOffsets[ue]));et.unbind()}}B.draw=function(ie){return ce.call(this,ie,!1)},B.drawTransparent=function(ie){return ce.call(this,ie,!0)};var q={model:f,view:f,projection:f,inverseModel:f,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};B.drawPick=function(ie){ie=ie||{};var j=this.gl;j.disable(j.CULL_FACE);var Q=q;Q.model=ie.model||f,Q.view=ie.view||f,Q.projection=ie.projection||f,Q.shape=this._field[2].shape,Q.pickId=this.pickId/255,Q.lowerBound=this.bounds[0],Q.upperBound=this.bounds[1],Q.objectOffset=this.objectOffset,Q.permutation=le;for(var re=0;re<2;++re)for(var ue=Q.clipBounds[re],_e=0;_e<3;++_e)ue[_e]=Math.min(Math.max(this.clipBounds[re][_e],-1e8),1e8);var we=X(Q,this);if(we.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=Q,this._vao.bind(),this._vao.draw(j.TRIANGLES,this._vertexCount),re=0;re<3;++re)this.surfaceProject[re]&&(this._pickShader.uniforms.model=we.projections[re],this._pickShader.uniforms.clipBounds=we.clipBounds[re],this._vao.draw(j.TRIANGLES,this._vertexCount));this._vao.unbind()}if(we.showContour){var Re=this._contourPickShader;Re.bind(),Re.uniforms=Q;var ze=this._contourVAO;for(ze.bind(),_e=0;_e<3;++_e)for(j.lineWidth(this.contourWidth[_e]*this.pixelRatio),Re.uniforms.permutation=L[_e],re=0;re<this.contourLevels[_e].length;++re)this._contourCounts[_e][re]&&(Re.uniforms.height=this.contourLevels[_e][re],ze.draw(j.LINES,this._contourCounts[_e][re],this._contourOffsets[_e][re]));for(re=0;re<3;++re)for(Re.uniforms.model=we.projections[re],Re.uniforms.clipBounds=we.clipBounds[re],_e=0;_e<3;++_e)if(this.contourProject[re][_e]){Re.uniforms.permutation=L[_e],j.lineWidth(this.contourWidth[_e]*this.pixelRatio);for(var Xe=0;Xe<this.contourLevels[_e].length;++Xe)this._contourCounts[_e][Xe]&&(Re.uniforms.height=this.contourLevels[_e][Xe],ze.draw(j.LINES,this._contourCounts[_e][Xe],this._contourOffsets[_e][Xe]))}ze.unbind()}},B.pick=function(ie){if(!ie||ie.id!==this.pickId)return null;var j=this._field[2].shape,Q=this._pickResult,re=j[0]*(ie.value[0]+(ie.value[2]>>4)/16)/255,ue=Math.floor(re),_e=re-ue,we=j[1]*(ie.value[1]+(ie.value[2]&15)/16)/255,Re=Math.floor(we),ze=we-Re;ue+=1,Re+=1;var Xe=Q.position;Xe[0]=Xe[1]=Xe[2]=0;for(var tt=0;tt<2;++tt)for(var it=tt?_e:1-_e,et=0;et<2;++et)for(var nt=et?ze:1-ze,Ae=ue+tt,me=Re+et,fe=it*nt,Be=0;Be<3;++Be)Xe[Be]+=this._field[Be].get(Ae,me)*fe;for(var Qe=this._pickResult.level,at=0;at<3;++at)if(Qe[at]=w.le(this.contourLevels[at],Xe[at]),Qe[at]<0)this.contourLevels[at].length>0&&(Qe[at]=0);else if(Qe[at]<this.contourLevels[at].length-1){var $e=this.contourLevels[at][Qe[at]],It=this.contourLevels[at][Qe[at]+1];Math.abs($e-Xe[at])>Math.abs(It-Xe[at])&&(Qe[at]+=1)}for(Q.index[0]=_e<.5?ue:ue+1,Q.index[1]=ze<.5?Re:Re+1,Q.uv[0]=re/j[0],Q.uv[1]=we/j[1],Be=0;Be<3;++Be)Q.dataCoordinate[Be]=this._field[Be].get(Q.index[0],Q.index[1]);return Q},B.padField=function(ie,j){var Q=j.shape.slice(),re=ie.shape.slice();c.assign(ie.lo(1,1).hi(Q[0],Q[1]),j),c.assign(ie.lo(1).hi(Q[0],1),j.hi(Q[0],1)),c.assign(ie.lo(1,re[1]-1).hi(Q[0],1),j.lo(0,Q[1]-1).hi(Q[0],1)),c.assign(ie.lo(0,1).hi(1,Q[1]),j.hi(1)),c.assign(ie.lo(re[0]-1,1).hi(1,Q[1]),j.lo(Q[0]-1)),ie.set(0,0,j.get(0,0)),ie.set(0,re[1]-1,j.get(0,Q[1]-1)),ie.set(re[0]-1,0,j.get(Q[0]-1,0)),ie.set(re[0]-1,re[1]-1,j.get(Q[0]-1,Q[1]-1))};function Z(ie,j){return Array.isArray(ie)?[j(ie[0]),j(ie[1]),j(ie[2])]:[j(ie),j(ie),j(ie)]}function ee(ie){return Array.isArray(ie)?ie.length===3?[ie[0],ie[1],ie[2],1]:[ie[0],ie[1],ie[2],ie[3]]:[0,0,0,1]}function V(ie){if(Array.isArray(ie)){if(Array.isArray(ie))return[ee(ie[0]),ee(ie[1]),ee(ie[2])];var j=ee(ie);return[j.slice(),j.slice(),j.slice()]}}B.update=function(ie){ie=ie||{},this.objectOffset=ie.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ie&&(this.contourWidth=Z(ie.contourWidth,Number)),"showContour"in ie&&(this.showContour=Z(ie.showContour,Boolean)),"showSurface"in ie&&(this.showSurface=!!ie.showSurface),"contourTint"in ie&&(this.contourTint=Z(ie.contourTint,Boolean)),"contourColor"in ie&&(this.contourColor=V(ie.contourColor)),"contourProject"in ie&&(this.contourProject=Z(ie.contourProject,function(xa){return Z(xa,Boolean)})),"surfaceProject"in ie&&(this.surfaceProject=ie.surfaceProject),"dynamicColor"in ie&&(this.dynamicColor=V(ie.dynamicColor)),"dynamicTint"in ie&&(this.dynamicTint=Z(ie.dynamicTint,Number)),"dynamicWidth"in ie&&(this.dynamicWidth=Z(ie.dynamicWidth,Number)),"opacity"in ie&&(this.opacity=ie.opacity),"opacityscale"in ie&&(this.opacityscale=ie.opacityscale),"colorBounds"in ie&&(this.colorBounds=ie.colorBounds),"vertexColor"in ie&&(this.vertexColor=ie.vertexColor?1:0),"colormap"in ie&&this._colorMap.setPixels(this.genColormap(ie.colormap,this.opacityscale));var j=ie.field||ie.coords&&ie.coords[2]||null,Q=!1;if(j||(this._field[2].shape[0]||this._field[2].shape[2]?j=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):j=this._field[2].hi(0,0)),"field"in ie||"coords"in ie){var re=(j.shape[0]+2)*(j.shape[1]+2);re>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(o.nextPow2(re))),this._field[2]=d(this._field[2].data,[j.shape[0]+2,j.shape[1]+2]),this.padField(this._field[2],j),this.shape=j.shape.slice();for(var ue=this.shape,_e=0;_e<2;++_e)this._field[2].size>this._field[_e].data.length&&(s.freeFloat(this._field[_e].data),this._field[_e].data=s.mallocFloat(this._field[2].size)),this._field[_e]=d(this._field[_e].data,[ue[0]+2,ue[1]+2]);if(ie.coords){var we=ie.coords;if(!Array.isArray(we)||we.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(_e=0;_e<2;++_e){var Re=we[_e];for(et=0;et<2;++et)if(Re.shape[et]!==ue[et])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[_e],Re)}}else if(ie.ticks){var ze=ie.ticks;if(!Array.isArray(ze)||ze.length!==2)throw new Error("gl-surface: invalid ticks");for(_e=0;_e<2;++_e){var Xe=ze[_e];if((Array.isArray(Xe)||Xe.length)&&(Xe=d(Xe)),Xe.shape[0]!==ue[_e])throw new Error("gl-surface: invalid tick length");var tt=d(Xe.data,ue);tt.stride[_e]=Xe.stride[0],tt.stride[_e^1]=0,this.padField(this._field[_e],tt)}}else{for(_e=0;_e<2;++_e){var it=[0,0];it[_e]=1,this._field[_e]=d(this._field[_e].data,[ue[0]+2,ue[1]+2],it,0)}this._field[0].set(0,0,0);for(var et=0;et<ue[0];++et)this._field[0].set(et+1,0,et);for(this._field[0].set(ue[0]+1,0,ue[0]-1),this._field[1].set(0,0,0),et=0;et<ue[1];++et)this._field[1].set(0,et+1,et);this._field[1].set(0,ue[1]+1,ue[1]-1)}var nt=this._field,Ae=d(s.mallocFloat(nt[2].size*3*2),[3,ue[0]+2,ue[1]+2,2]);for(_e=0;_e<3;++_e)A(Ae.pick(_e),nt[_e],"mirror");var me=d(s.mallocFloat(nt[2].size*3),[ue[0]+2,ue[1]+2,3]);for(_e=0;_e<ue[0]+2;++_e)for(et=0;et<ue[1]+2;++et){var fe=Ae.get(0,_e,et,0),Be=Ae.get(0,_e,et,1),Qe=Ae.get(1,_e,et,0),at=Ae.get(1,_e,et,1),$e=Ae.get(2,_e,et,0),It=Ae.get(2,_e,et,1),Pt=Qe*It-at*$e,Vt=$e*Be-It*fe,Wt=fe*at-Be*Qe,Cr=Math.sqrt(Pt*Pt+Vt*Vt+Wt*Wt);Cr<1e-8?(Cr=Math.max(Math.abs(Pt),Math.abs(Vt),Math.abs(Wt)),Cr<1e-8?(Wt=1,Vt=Pt=0,Cr=1):Cr=1/Cr):Cr=1/Math.sqrt(Cr),me.set(_e,et,0,Pt*Cr),me.set(_e,et,1,Vt*Cr),me.set(_e,et,2,Wt*Cr)}s.free(Ae.data);var yr=[1/0,1/0,1/0],qr=[-1/0,-1/0,-1/0],Mr=1/0,Dr=-1/0,xt=(ue[0]-1)*(ue[1]-1)*6,Ne=s.mallocFloat(o.nextPow2(10*xt)),Ye=0,be=0;for(_e=0;_e<ue[0]-1;++_e)e:for(et=0;et<ue[1]-1;++et){for(var Ie=0;Ie<2;++Ie)for(var qe=0;qe<2;++qe)for(var ke=0;ke<3;++ke){var Me=this._field[ke].get(1+_e+Ie,1+et+qe);if(isNaN(Me)||!isFinite(Me))continue e}for(ke=0;ke<6;++ke){var Le=_e+R[ke][0],ut=et+R[ke][1],lt=this._field[0].get(Le+1,ut+1),gt=this._field[1].get(Le+1,ut+1);Me=this._field[2].get(Le+1,ut+1),Pt=me.get(Le+1,ut+1,0),Vt=me.get(Le+1,ut+1,1),Wt=me.get(Le+1,ut+1,2),ie.intensity&&(kt=ie.intensity.get(Le,ut));var kt=ie.intensity?ie.intensity.get(Le,ut):Me+this.objectOffset[2];Ne[Ye++]=Le,Ne[Ye++]=ut,Ne[Ye++]=lt,Ne[Ye++]=gt,Ne[Ye++]=Me,Ne[Ye++]=0,Ne[Ye++]=kt,Ne[Ye++]=Pt,Ne[Ye++]=Vt,Ne[Ye++]=Wt,yr[0]=Math.min(yr[0],lt+this.objectOffset[0]),yr[1]=Math.min(yr[1],gt+this.objectOffset[1]),yr[2]=Math.min(yr[2],Me+this.objectOffset[2]),Mr=Math.min(Mr,kt),qr[0]=Math.max(qr[0],lt+this.objectOffset[0]),qr[1]=Math.max(qr[1],gt+this.objectOffset[1]),qr[2]=Math.max(qr[2],Me+this.objectOffset[2]),Dr=Math.max(Dr,kt),be+=1}}for(ie.intensityBounds&&(Mr=+ie.intensityBounds[0],Dr=+ie.intensityBounds[1]),_e=6;_e<Ye;_e+=10)Ne[_e]=(Ne[_e]-Mr)/(Dr-Mr);this._vertexCount=be,this._coordinateBuffer.update(Ne.subarray(0,Ye)),s.freeFloat(Ne),s.free(me.data),this.bounds=[yr,qr],this.intensity=ie.intensity||this._field[2],(this.intensityBounds[0]!==Mr||this.intensityBounds[1]!==Dr)&&(Q=!0),this.intensityBounds=[Mr,Dr]}if("levels"in ie){var nr=ie.levels;for(Array.isArray(nr[0])?nr=nr.slice():nr=[[],[],nr],_e=0;_e<3;++_e)nr[_e]=nr[_e].slice(),nr[_e].sort(function(xa,ji){return xa-ji});for(_e=0;_e<3;++_e)for(et=0;et<nr[_e].length;++et)nr[_e][et]-=this.objectOffset[_e];e:for(_e=0;_e<3;++_e){if(nr[_e].length!==this.contourLevels[_e].length){Q=!0;break}for(et=0;et<nr[_e].length;++et)if(nr[_e][et]!==this.contourLevels[_e][et]){Q=!0;break e}}this.contourLevels=nr}if(Q){nt=this._field,ue=this.shape;for(var ir=[],tr=0;tr<3;++tr){var Ir=this.contourLevels[tr],vi=[],Vi=[],Ui=[0,0,0];for(_e=0;_e<Ir.length;++_e){var Ki=T(this._field[tr],Ir[_e]);vi.push(ir.length/5|0),be=0;e:for(et=0;et<Ki.cells.length;++et){var ea=Ki.cells[et];for(ke=0;ke<2;++ke){var Bi=Ki.positions[ea[ke]],_a=Bi[0],Ca=Math.floor(_a)|0,Kt=_a-Ca,zt=Bi[1],Zt=Math.floor(zt)|0,Jt=zt-Zt,Br=!1;t:for(var ri=0;ri<3;++ri){Ui[ri]=0;var ii=(tr+ri+1)%3;for(Ie=0;Ie<2;++Ie){var di=Ie?Kt:1-Kt;for(Le=Math.min(Math.max(Ca+Ie,0),ue[0])|0,qe=0;qe<2;++qe){var Wi=qe?Jt:1-Jt;if(ut=Math.min(Math.max(Zt+qe,0),ue[1])|0,ri<2?Me=this._field[ii].get(Le,ut):Me=(this.intensity.get(Le,ut)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Me)||isNaN(Me)){Br=!0;break t}var oa=di*Wi;Ui[ri]+=oa*Me}}}if(!Br)ir.push(Ui[0],Ui[1],Bi[0],Bi[1],Ui[2]),be+=1;else{if(ke>0){for(var ra=0;ra<5;++ra)ir.pop();be-=1}continue e}}}Vi.push(be)}this._contourOffsets[tr]=vi,this._contourCounts[tr]=Vi}var ca=s.mallocFloat(ir.length);for(_e=0;_e<ir.length;++_e)ca[_e]=ir[_e];this._contourBuffer.update(ca),s.freeFloat(ca)}},B.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var ie=0;ie<3;++ie)s.freeFloat(this._field[ie].data)},B.highlight=function(ie){var j;if(!ie){this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],this.highlightLevel=[-1,-1,-1];return}for(j=0;j<3;++j)this.enableHighlight[j]?this.highlightLevel[j]=ie.level[j]:this.highlightLevel[j]=-1;var Q;for(this.snapToData?Q=ie.dataCoordinate:Q=ie.position,j=0;j<3;++j)Q[j]-=this.objectOffset[j];if(!((!this.enableDynamic[0]||Q[0]===this.dynamicLevel[0])&&(!this.enableDynamic[1]||Q[1]===this.dynamicLevel[1])&&(!this.enableDynamic[2]||Q[2]===this.dynamicLevel[2]))){for(var re=0,ue=this.shape,_e=s.mallocFloat(12*ue[0]*ue[1]),we=0;we<3;++we){if(!this.enableDynamic[we]){this.dynamicLevel[we]=NaN,this._dynamicCounts[we]=0;continue}this.dynamicLevel[we]=Q[we];var Re=(we+1)%3,ze=(we+2)%3,Xe=this._field[we],tt=this._field[Re],it=this._field[ze],et=T(Xe,Q[we]),nt=et.cells,Ae=et.positions;for(this._dynamicOffsets[we]=re,j=0;j<nt.length;++j)for(var me=nt[j],fe=0;fe<2;++fe){var Be=Ae[me[fe]],Qe=+Be[0],at=Qe|0,$e=Math.min(at+1,ue[0])|0,It=Qe-at,Pt=1-It,Vt=+Be[1],Wt=Vt|0,Cr=Math.min(Wt+1,ue[1])|0,yr=Vt-Wt,qr=1-yr,Mr=Pt*qr,Dr=Pt*yr,xt=It*qr,Ne=It*yr,Ye=Mr*tt.get(at,Wt)+Dr*tt.get(at,Cr)+xt*tt.get($e,Wt)+Ne*tt.get($e,Cr),be=Mr*it.get(at,Wt)+Dr*it.get(at,Cr)+xt*it.get($e,Wt)+Ne*it.get($e,Cr);if(isNaN(Ye)||isNaN(be)){fe&&(re-=1);break}_e[2*re+0]=Ye,_e[2*re+1]=be,re+=1}this._dynamicCounts[we]=re-this._dynamicOffsets[we]}this._dynamicBuffer.update(_e.subarray(0,2*re)),s.freeFloat(_e)}};function oe(ie){var j=ie.gl,Q=g(j),re=v(j),ue=b(j),_e=u(j),we=i(j),Re=n(j,[{buffer:we,size:4,stride:y,offset:0},{buffer:we,size:3,stride:y,offset:16},{buffer:we,size:3,stride:y,offset:28}]),ze=i(j),Xe=n(j,[{buffer:ze,size:4,stride:20,offset:0},{buffer:ze,size:1,stride:20,offset:16}]),tt=i(j),it=n(j,[{buffer:tt,size:2,type:j.FLOAT}]),et=a(j,1,F,j.RGBA,j.UNSIGNED_BYTE);et.minFilter=j.LINEAR,et.magFilter=j.LINEAR;var nt=new N(j,[0,0],[[0,0,0],[0,0,0]],Q,re,we,Re,et,ue,_e,ze,Xe,tt,it,[0,0,0]),Ae={levels:[[],[],[]]};for(var me in ie)Ae[me]=ie[me];return Ae.colormap=Ae.colormap||"jet",nt.update(Ae),nt}},9507:function(e){e.exports=!0},9618:function(e,t,r){var o=r(7163),i=typeof Float64Array<"u";function n(T,l){return T[0]-l[0]}function a(){var T=this.stride,l=new Array(T.length),_;for(_=0;_<l.length;++_)l[_]=[Math.abs(T[_]),_];l.sort(n);var w=new Array(l.length);for(_=0;_<w.length;++_)w[_]=l[_][1];return w}var s={T:function(T){function l(w){this.data=w}var _=l.prototype;return _.dtype=T,_.index=function(){return-1},_.size=0,_.dimension=-1,_.shape=_.stride=_.order=[],_.lo=_.hi=_.transpose=_.step=function(){return new l(this.data)},_.get=_.set=function(){},_.pick=function(){return null},function(A){return new l(A)}},0:function(T,l){function _(A,M){this.data=A,this.offset=M}var w=_.prototype;return w.dtype=T,w.index=function(){return this.offset},w.dimension=0,w.size=1,w.shape=w.stride=w.order=[],w.lo=w.hi=w.transpose=w.step=function(){return new _(this.data,this.offset)},w.pick=function(){return l(this.data)},w.valueOf=w.get=function(){return T==="generic"?this.data.get(this.offset):this.data[this.offset]},w.set=function(M){return T==="generic"?this.data.set(this.offset,M):this.data[this.offset]=M},function(M,g,b,v){return new _(M,v)}},1:function(T,l,_){function w(M,g,b,v){this.data=M,this.shape=[g],this.stride=[b],this.offset=v|0}var A=w.prototype;return A.dtype=T,A.dimension=1,Object.defineProperty(A,"size",{get:function(){return this.shape[0]}}),A.order=[0],A.set=function(g,b){return T==="generic"?this.data.set(this.offset+this.stride[0]*g,b):this.data[this.offset+this.stride[0]*g]=b},A.get=function(g){return T==="generic"?this.data.get(this.offset+this.stride[0]*g):this.data[this.offset+this.stride[0]*g]},A.index=function(g){return this.offset+this.stride[0]*g},A.hi=function(g){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,this.stride[0],this.offset)},A.lo=function(g){var b=this.offset,v=0,u=this.shape[0],y=this.stride[0];return typeof g=="number"&&g>=0&&(v=g|0,b+=y*v,u-=v),new w(this.data,u,y,b)},A.step=function(g){var b=this.shape[0],v=this.stride[0],u=this.offset,y=0,f=Math.ceil;return typeof g=="number"&&(y=g|0,y<0?(u+=v*(b-1),b=f(-b/y)):b=f(b/y),v*=y),new w(this.data,b,v,u)},A.transpose=function(g){g=g===void 0?0:g|0;var b=this.shape,v=this.stride;return new w(this.data,b[g],v[g],this.offset)},A.pick=function(g){var b=[],v=[],u=this.offset;typeof g=="number"&&g>=0?u=u+this.stride[0]*g|0:(b.push(this.shape[0]),v.push(this.stride[0]));var y=l[b.length+1];return y(this.data,b,v,u)},function(g,b,v,u){return new w(g,b[0],v[0],u)}},2:function(T,l,_){function w(M,g,b,v,u,y){this.data=M,this.shape=[g,b],this.stride=[v,u],this.offset=y|0}var A=w.prototype;return A.dtype=T,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(g,b,v){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b,v):this.data[this.offset+this.stride[0]*g+this.stride[1]*b]=v},A.get=function(g,b){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b):this.data[this.offset+this.stride[0]*g+this.stride[1]*b]},A.index=function(g,b){return this.offset+this.stride[0]*g+this.stride[1]*b},A.hi=function(g,b){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(g,b){var v=this.offset,u=0,y=this.shape[0],f=this.shape[1],R=this.stride[0],L=this.stride[1];return typeof g=="number"&&g>=0&&(u=g|0,v+=R*u,y-=u),typeof b=="number"&&b>=0&&(u=b|0,v+=L*u,f-=u),new w(this.data,y,f,R,L,v)},A.step=function(g,b){var v=this.shape[0],u=this.shape[1],y=this.stride[0],f=this.stride[1],R=this.offset,L=0,z=Math.ceil;return typeof g=="number"&&(L=g|0,L<0?(R+=y*(v-1),v=z(-v/L)):v=z(v/L),y*=L),typeof b=="number"&&(L=b|0,L<0?(R+=f*(u-1),u=z(-u/L)):u=z(u/L),f*=L),new w(this.data,v,u,y,f,R)},A.transpose=function(g,b){g=g===void 0?0:g|0,b=b===void 0?1:b|0;var v=this.shape,u=this.stride;return new w(this.data,v[g],v[b],u[g],u[b],this.offset)},A.pick=function(g,b){var v=[],u=[],y=this.offset;typeof g=="number"&&g>=0?y=y+this.stride[0]*g|0:(v.push(this.shape[0]),u.push(this.stride[0])),typeof b=="number"&&b>=0?y=y+this.stride[1]*b|0:(v.push(this.shape[1]),u.push(this.stride[1]));var f=l[v.length+1];return f(this.data,v,u,y)},function(g,b,v,u){return new w(g,b[0],b[1],v[0],v[1],u)}},3:function(T,l,_){function w(M,g,b,v,u,y,f,R){this.data=M,this.shape=[g,b,v],this.stride=[u,y,f],this.offset=R|0}var A=w.prototype;return A.dtype=T,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var g=Math.abs(this.stride[0]),b=Math.abs(this.stride[1]),v=Math.abs(this.stride[2]);return g>b?b>v?[2,1,0]:g>v?[1,2,0]:[1,0,2]:g>v?[2,0,1]:v>b?[0,1,2]:[0,2,1]}}),A.set=function(g,b,v,u){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v,u):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v]=u},A.get=function(g,b,v){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v]},A.index=function(g,b,v){return this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v},A.hi=function(g,b,v){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof v!="number"||v<0?this.shape[2]:v|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(g,b,v){var u=this.offset,y=0,f=this.shape[0],R=this.shape[1],L=this.shape[2],z=this.stride[0],F=this.stride[1],N=this.stride[2];return typeof g=="number"&&g>=0&&(y=g|0,u+=z*y,f-=y),typeof b=="number"&&b>=0&&(y=b|0,u+=F*y,R-=y),typeof v=="number"&&v>=0&&(y=v|0,u+=N*y,L-=y),new w(this.data,f,R,L,z,F,N,u)},A.step=function(g,b,v){var u=this.shape[0],y=this.shape[1],f=this.shape[2],R=this.stride[0],L=this.stride[1],z=this.stride[2],F=this.offset,N=0,B=Math.ceil;return typeof g=="number"&&(N=g|0,N<0?(F+=R*(u-1),u=B(-u/N)):u=B(u/N),R*=N),typeof b=="number"&&(N=b|0,N<0?(F+=L*(y-1),y=B(-y/N)):y=B(y/N),L*=N),typeof v=="number"&&(N=v|0,N<0?(F+=z*(f-1),f=B(-f/N)):f=B(f/N),z*=N),new w(this.data,u,y,f,R,L,z,F)},A.transpose=function(g,b,v){g=g===void 0?0:g|0,b=b===void 0?1:b|0,v=v===void 0?2:v|0;var u=this.shape,y=this.stride;return new w(this.data,u[g],u[b],u[v],y[g],y[b],y[v],this.offset)},A.pick=function(g,b,v){var u=[],y=[],f=this.offset;typeof g=="number"&&g>=0?f=f+this.stride[0]*g|0:(u.push(this.shape[0]),y.push(this.stride[0])),typeof b=="number"&&b>=0?f=f+this.stride[1]*b|0:(u.push(this.shape[1]),y.push(this.stride[1])),typeof v=="number"&&v>=0?f=f+this.stride[2]*v|0:(u.push(this.shape[2]),y.push(this.stride[2]));var R=l[u.length+1];return R(this.data,u,y,f)},function(g,b,v,u){return new w(g,b[0],b[1],b[2],v[0],v[1],v[2],u)}},4:function(T,l,_){function w(M,g,b,v,u,y,f,R,L,z){this.data=M,this.shape=[g,b,v,u],this.stride=[y,f,R,L],this.offset=z|0}var A=w.prototype;return A.dtype=T,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:_}),A.set=function(g,b,v,u,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v+this.stride[3]*u,y):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v+this.stride[3]*u]=y},A.get=function(g,b,v,u){return T==="generic"?this.data.get(this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v+this.stride[3]*u):this.data[this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v+this.stride[3]*u]},A.index=function(g,b,v,u){return this.offset+this.stride[0]*g+this.stride[1]*b+this.stride[2]*v+this.stride[3]*u},A.hi=function(g,b,v,u){return new w(this.data,typeof g!="number"||g<0?this.shape[0]:g|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof v!="number"||v<0?this.shape[2]:v|0,typeof u!="number"||u<0?this.shape[3]:u|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(g,b,v,u){var y=this.offset,f=0,R=this.shape[0],L=this.shape[1],z=this.shape[2],F=this.shape[3],N=this.stride[0],B=this.stride[1],I=this.stride[2],U=this.stride[3];return typeof g=="number"&&g>=0&&(f=g|0,y+=N*f,R-=f),typeof b=="number"&&b>=0&&(f=b|0,y+=B*f,L-=f),typeof v=="number"&&v>=0&&(f=v|0,y+=I*f,z-=f),typeof u=="number"&&u>=0&&(f=u|0,y+=U*f,F-=f),new w(this.data,R,L,z,F,N,B,I,U,y)},A.step=function(g,b,v,u){var y=this.shape[0],f=this.shape[1],R=this.shape[2],L=this.shape[3],z=this.stride[0],F=this.stride[1],N=this.stride[2],B=this.stride[3],I=this.offset,U=0,O=Math.ceil;return typeof g=="number"&&(U=g|0,U<0?(I+=z*(y-1),y=O(-y/U)):y=O(y/U),z*=U),typeof b=="number"&&(U=b|0,U<0?(I+=F*(f-1),f=O(-f/U)):f=O(f/U),F*=U),typeof v=="number"&&(U=v|0,U<0?(I+=N*(R-1),R=O(-R/U)):R=O(R/U),N*=U),typeof u=="number"&&(U=u|0,U<0?(I+=B*(L-1),L=O(-L/U)):L=O(L/U),B*=U),new w(this.data,y,f,R,L,z,F,N,B,I)},A.transpose=function(g,b,v,u){g=g===void 0?0:g|0,b=b===void 0?1:b|0,v=v===void 0?2:v|0,u=u===void 0?3:u|0;var y=this.shape,f=this.stride;return new w(this.data,y[g],y[b],y[v],y[u],f[g],f[b],f[v],f[u],this.offset)},A.pick=function(g,b,v,u){var y=[],f=[],R=this.offset;typeof g=="number"&&g>=0?R=R+this.stride[0]*g|0:(y.push(this.shape[0]),f.push(this.stride[0])),typeof b=="number"&&b>=0?R=R+this.stride[1]*b|0:(y.push(this.shape[1]),f.push(this.stride[1])),typeof v=="number"&&v>=0?R=R+this.stride[2]*v|0:(y.push(this.shape[2]),f.push(this.stride[2])),typeof u=="number"&&u>=0?R=R+this.stride[3]*u|0:(y.push(this.shape[3]),f.push(this.stride[3]));var L=l[y.length+1];return L(this.data,y,f,R)},function(g,b,v,u){return new w(g,b[0],b[1],b[2],b[3],v[0],v[1],v[2],v[3],u)}},5:function(l,_,w){function A(g,b,v,u,y,f,R,L,z,F,N,B){this.data=g,this.shape=[b,v,u,y,f],this.stride=[R,L,z,F,N],this.offset=B|0}var M=A.prototype;return M.dtype=l,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:w}),M.set=function(b,v,u,y,f,R){return l==="generic"?this.data.set(this.offset+this.stride[0]*b+this.stride[1]*v+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f,R):this.data[this.offset+this.stride[0]*b+this.stride[1]*v+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f]=R},M.get=function(b,v,u,y,f){return l==="generic"?this.data.get(this.offset+this.stride[0]*b+this.stride[1]*v+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f):this.data[this.offset+this.stride[0]*b+this.stride[1]*v+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f]},M.index=function(b,v,u,y,f){return this.offset+this.stride[0]*b+this.stride[1]*v+this.stride[2]*u+this.stride[3]*y+this.stride[4]*f},M.hi=function(b,v,u,y,f){return new A(this.data,typeof b!="number"||b<0?this.shape[0]:b|0,typeof v!="number"||v<0?this.shape[1]:v|0,typeof u!="number"||u<0?this.shape[2]:u|0,typeof y!="number"||y<0?this.shape[3]:y|0,typeof f!="number"||f<0?this.shape[4]:f|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(b,v,u,y,f){var R=this.offset,L=0,z=this.shape[0],F=this.shape[1],N=this.shape[2],B=this.shape[3],I=this.shape[4],U=this.stride[0],O=this.stride[1],X=this.stride[2],J=this.stride[3],se=this.stride[4];return typeof b=="number"&&b>=0&&(L=b|0,R+=U*L,z-=L),typeof v=="number"&&v>=0&&(L=v|0,R+=O*L,F-=L),typeof u=="number"&&u>=0&&(L=u|0,R+=X*L,N-=L),typeof y=="number"&&y>=0&&(L=y|0,R+=J*L,B-=L),typeof f=="number"&&f>=0&&(L=f|0,R+=se*L,I-=L),new A(this.data,z,F,N,B,I,U,O,X,J,se,R)},M.step=function(b,v,u,y,f){var R=this.shape[0],L=this.shape[1],z=this.shape[2],F=this.shape[3],N=this.shape[4],B=this.stride[0],I=this.stride[1],U=this.stride[2],O=this.stride[3],X=this.stride[4],J=this.offset,se=0,le=Math.ceil;return typeof b=="number"&&(se=b|0,se<0?(J+=B*(R-1),R=le(-R/se)):R=le(R/se),B*=se),typeof v=="number"&&(se=v|0,se<0?(J+=I*(L-1),L=le(-L/se)):L=le(L/se),I*=se),typeof u=="number"&&(se=u|0,se<0?(J+=U*(z-1),z=le(-z/se)):z=le(z/se),U*=se),typeof y=="number"&&(se=y|0,se<0?(J+=O*(F-1),F=le(-F/se)):F=le(F/se),O*=se),typeof f=="number"&&(se=f|0,se<0?(J+=X*(N-1),N=le(-N/se)):N=le(N/se),X*=se),new A(this.data,R,L,z,F,N,B,I,U,O,X,J)},M.transpose=function(b,v,u,y,f){b=b===void 0?0:b|0,v=v===void 0?1:v|0,u=u===void 0?2:u|0,y=y===void 0?3:y|0,f=f===void 0?4:f|0;var R=this.shape,L=this.stride;return new A(this.data,R[b],R[v],R[u],R[y],R[f],L[b],L[v],L[u],L[y],L[f],this.offset)},M.pick=function(b,v,u,y,f){var R=[],L=[],z=this.offset;typeof b=="number"&&b>=0?z=z+this.stride[0]*b|0:(R.push(this.shape[0]),L.push(this.stride[0])),typeof v=="number"&&v>=0?z=z+this.stride[1]*v|0:(R.push(this.shape[1]),L.push(this.stride[1])),typeof u=="number"&&u>=0?z=z+this.stride[2]*u|0:(R.push(this.shape[2]),L.push(this.stride[2])),typeof y=="number"&&y>=0?z=z+this.stride[3]*y|0:(R.push(this.shape[3]),L.push(this.stride[3])),typeof f=="number"&&f>=0?z=z+this.stride[4]*f|0:(R.push(this.shape[4]),L.push(this.stride[4]));var F=_[R.length+1];return F(this.data,R,L,z)},function(b,v,u,y){return new A(b,v[0],v[1],v[2],v[3],v[4],u[0],u[1],u[2],u[3],u[4],y)}}};function h(T,l){var _=l===-1?"T":String(l),w=s[_];return l===-1?w(T):l===0?w(T,m[T][0]):w(T,m[T],a)}function c(T){if(o(T))return"buffer";if(i)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function d(T,l,_,w){if(T===void 0){var u=m.array[0];return u([])}else typeof T=="number"&&(T=[T]);l===void 0&&(l=[T.length]);var A=l.length;if(_===void 0){_=new Array(A);for(var M=A-1,g=1;M>=0;--M)_[M]=g,g*=l[M]}if(w===void 0){w=0;for(var M=0;M<A;++M)_[M]<0&&(w-=(l[M]-1)*_[M])}for(var b=c(T),v=m[b];v.length<=A+1;)v.push(h(b,v.length-1));var u=v[A+1];return u(T,l,_,w)}e.exports=d},9921:function(e){e.exports=t;function t(r){var o=r[0],i=r[1],n=r[2],a=r[3],s=r[4],h=r[5],c=r[6],m=r[7],d=r[8],T=r[9],l=r[10],_=r[11],w=r[12],A=r[13],M=r[14],g=r[15],b=o*h-i*s,v=o*c-n*s,u=o*m-a*s,y=i*c-n*h,f=i*m-a*h,R=n*m-a*c,L=d*A-T*w,z=d*M-l*w,F=d*g-_*w,N=T*M-l*A,B=T*g-_*A,I=l*g-_*M;return b*I-v*B+u*N+y*F-f*z+R*L}},9922:function(e,t,r){e.exports=i;var o=r(2613);function i(n,a){var s=n[0],h=n[1],c=n[2],m=a[0],d=a[1],T=a[2];return Math.abs(s-m)<=o*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(h-d)<=o*Math.max(1,Math.abs(h),Math.abs(d))&&Math.abs(c-T)<=o*Math.max(1,Math.abs(c),Math.abs(T))}},9970:function(e,t,r){e.exports={create:r(7536),clone:r(2335),fromValues:r(3390),copy:r(2933),set:r(4578),add:r(4361),subtract:r(6860),multiply:r(3576),divide:r(1373),min:r(2334),max:r(160),scale:r(9288),scaleAndAdd:r(4844),distance:r(4691),squaredDistance:r(7960),length:r(6808),squaredLength:r(483),negate:r(1498),inverse:r(4494),normalize:r(5177),dot:r(3750),lerp:r(2573),random:r(9131),transformMat4:r(5352),transformQuat:r(4041)}},9977:function(e,t,r){"use strict";e.exports=l;var o=r(9215),i=r(6582),n=r(7399),a=r(7608),s=r(4081);function h(_,w,A){return Math.sqrt(Math.pow(_,2)+Math.pow(w,2)+Math.pow(A,2))}function c(_,w,A,M){return Math.sqrt(Math.pow(_,2)+Math.pow(w,2)+Math.pow(A,2)+Math.pow(M,2))}function m(_,w){var A=w[0],M=w[1],g=w[2],b=w[3],v=c(A,M,g,b);v>1e-6?(_[0]=A/v,_[1]=M/v,_[2]=g/v,_[3]=b/v):(_[0]=_[1]=_[2]=0,_[3]=1)}function d(_,w,A){this.radius=o([A]),this.center=o(w),this.rotation=o(_),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=d.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(_){this.radius.curve(_),this.center.curve(_),this.rotation.curve(_);var w=this.computedRotation;m(w,w);var A=this.computedMatrix;n(A,w);var M=this.computedCenter,g=this.computedEye,b=this.computedUp,v=Math.exp(this.computedRadius[0]);g[0]=M[0]+v*A[2],g[1]=M[1]+v*A[6],g[2]=M[2]+v*A[10],b[0]=A[1],b[1]=A[5],b[2]=A[9];for(var u=0;u<3;++u){for(var y=0,f=0;f<3;++f)y+=A[u+4*f]*g[f];A[12+u]=-y}},T.getMatrix=function(_,w){this.recalcMatrix(_);var A=this.computedMatrix;if(w){for(var M=0;M<16;++M)w[M]=A[M];return w}return A},T.idle=function(_){this.center.idle(_),this.radius.idle(_),this.rotation.idle(_)},T.flush=function(_){this.center.flush(_),this.radius.flush(_),this.rotation.flush(_)},T.pan=function(_,w,A,M){w=w||0,A=A||0,M=M||0,this.recalcMatrix(_);var g=this.computedMatrix,b=g[1],v=g[5],u=g[9],y=h(b,v,u);b/=y,v/=y,u/=y;var f=g[0],R=g[4],L=g[8],z=f*b+R*v+L*u;f-=b*z,R-=v*z,L-=u*z;var F=h(f,R,L);f/=F,R/=F,L/=F;var N=g[2],B=g[6],I=g[10],U=N*b+B*v+I*u,O=N*f+B*R+I*L;N-=U*b+O*f,B-=U*v+O*R,I-=U*u+O*L;var X=h(N,B,I);N/=X,B/=X,I/=X;var J=f*w+b*A,se=R*w+v*A,le=L*w+u*A;this.center.move(_,J,se,le);var ce=Math.exp(this.computedRadius[0]);ce=Math.max(1e-4,ce+M),this.radius.set(_,Math.log(ce))},T.rotate=function(_,w,A,M){this.recalcMatrix(_),w=w||0,A=A||0;var g=this.computedMatrix,b=g[0],v=g[4],u=g[8],y=g[1],f=g[5],R=g[9],L=g[2],z=g[6],F=g[10],N=w*b+A*y,B=w*v+A*f,I=w*u+A*R,U=-(z*I-F*B),O=-(F*N-L*I),X=-(L*B-z*N),J=Math.sqrt(Math.max(0,1-Math.pow(U,2)-Math.pow(O,2)-Math.pow(X,2))),se=c(U,O,X,J);se>1e-6?(U/=se,O/=se,X/=se,J/=se):(U=O=X=0,J=1);var le=this.computedRotation,ce=le[0],q=le[1],Z=le[2],ee=le[3],V=ce*J+ee*U+q*X-Z*O,oe=q*J+ee*O+Z*U-ce*X,ie=Z*J+ee*X+ce*O-q*U,j=ee*J-ce*U-q*O-Z*X;if(M){U=L,O=z,X=F;var Q=Math.sin(M)/h(U,O,X);U*=Q,O*=Q,X*=Q,J=Math.cos(w),V=V*J+j*U+oe*X-ie*O,oe=oe*J+j*O+ie*U-V*X,ie=ie*J+j*X+V*O-oe*U,j=j*J-V*U-oe*O-ie*X}var re=c(V,oe,ie,j);re>1e-6?(V/=re,oe/=re,ie/=re,j/=re):(V=oe=ie=0,j=1),this.rotation.set(_,V,oe,ie,j)},T.lookAt=function(_,w,A,M){this.recalcMatrix(_),A=A||this.computedCenter,w=w||this.computedEye,M=M||this.computedUp;var g=this.computedMatrix;i(g,w,A,M);var b=this.computedRotation;s(b,g[0],g[1],g[2],g[4],g[5],g[6],g[8],g[9],g[10]),m(b,b),this.rotation.set(_,b[0],b[1],b[2],b[3]);for(var v=0,u=0;u<3;++u)v+=Math.pow(A[u]-w[u],2);this.radius.set(_,.5*Math.log(Math.max(v,1e-6))),this.center.set(_,A[0],A[1],A[2])},T.translate=function(_,w,A,M){this.center.move(_,w||0,A||0,M||0)},T.setMatrix=function(_,w){var A=this.computedRotation;s(A,w[0],w[1],w[2],w[4],w[5],w[6],w[8],w[9],w[10]),m(A,A),this.rotation.set(_,A[0],A[1],A[2],A[3]);var M=this.computedMatrix;a(M,w);var g=M[15];if(Math.abs(g)>1e-6){var b=M[12]/g,v=M[13]/g,u=M[14]/g;this.recalcMatrix(_);var y=Math.exp(this.computedRadius[0]);this.center.set(_,b-M[2]*y,v-M[6]*y,u-M[10]*y),this.radius.idle(_)}else this.center.idle(_),this.radius.idle(_)},T.setDistance=function(_,w){w>0&&this.radius.set(_,Math.log(w))},T.setDistanceLimits=function(_,w){_>0?_=Math.log(_):_=-1/0,w>0?w=Math.log(w):w=1/0,w=Math.max(w,_),this.radius.bounds[0][0]=_,this.radius.bounds[1][0]=w},T.getDistanceLimits=function(_){var w=this.radius.bounds;return _?(_[0]=Math.exp(w[0][0]),_[1]=Math.exp(w[1][0]),_):[Math.exp(w[0][0]),Math.exp(w[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(_){var w=this.lastT(),A=_.center;A&&this.center.set(w,A[0],A[1],A[2]);var M=_.rotation;M&&this.rotation.set(w,M[0],M[1],M[2],M[3]);var g=_.distance;g&&g>0&&this.radius.set(w,Math.log(g)),this.setDistanceLimits(_.zoomMin,_.zoomMax)};function l(_){_=_||{};var w=_.center||[0,0,0],A=_.rotation||[0,0,0,1],M=_.radius||1;w=[].slice.call(w,0,3),A=[].slice.call(A,0,4),m(A,A);var g=new d(A,w,Math.log(M));return g.setDistanceLimits(_.zoomMin,_.zoomMax),("eye"in _||"up"in _)&&g.lookAt(0,_.eye,_.center,_.up),g}},9994:function(e,t,r){"use strict";var o=r(9618),i=r(8277);e.exports=function(a,s){for(var h=[],c=a,m=1;Array.isArray(c);)h.push(c.length),m*=c.length,c=c[0];return h.length===0?o():(s||(s=o(new Float64Array(m),h)),i(s,a),s)}}},x={};function S(e){var t=x[e];if(t!==void 0)return t.exports;var r=x[e]={id:e,loaded:!1,exports:{}};return p[e].call(r.exports,r,r.exports,S),r.loaded=!0,r.exports}(function(){S.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){S.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}();var E=S(1964);H.exports=E})()}}),t5=De({"node_modules/color-name/index.js"(Y,H){"use strict";H.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]}}}),pI=De({"node_modules/color-normalize/node_modules/color-parse/index.js"(Y,H){"use strict";var p=t5();H.exports=S;var x={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function S(E){var e,t=[],r=1,o;if(typeof E=="string")if(E=E.toLowerCase(),p[E])t=p[E].slice(),o="rgb";else if(E==="transparent")r=0,o="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(E)){var i=E.slice(1),n=i.length,a=n<=4;r=1,a?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],n===4&&(r=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],n===8&&(r=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),o="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(E)){var s=e[1],h=s==="rgb",i=s.replace(/a$/,"");o=i;var n=i==="cmyk"?4:i==="gray"?1:3;t=e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d,T){if(/%$/.test(d))return T===n?parseFloat(d)/100:i==="rgb"?parseFloat(d)*255/100:parseFloat(d);if(i[T]==="h"){if(/deg$/.test(d))return parseFloat(d);if(x[d]!==void 0)return x[d]}return parseFloat(d)}),s===i&&t.push(1),r=h||t[n]===void 0?1:t[n],t=t.slice(0,n)}else E.length>10&&/[0-9](?:\s|\/)/.test(E)&&(t=E.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),o=E.match(/([a-z])/ig).join("").toLowerCase());else isNaN(E)?Array.isArray(E)||E.length?(t=[E[0],E[1],E[2]],o="rgb",r=E.length===4?E[3]:1):E instanceof Object&&(E.r!=null||E.red!=null||E.R!=null?(o="rgb",t=[E.r||E.red||E.R||0,E.g||E.green||E.G||0,E.b||E.blue||E.B||0]):(o="hsl",t=[E.h||E.hue||E.H||0,E.s||E.saturation||E.S||0,E.l||E.lightness||E.L||E.b||E.brightness]),r=E.a||E.alpha||E.opacity||1,E.opacity!=null&&(r/=100)):(o="rgb",t=[E>>>16,(E&65280)>>>8,E&255]);return{space:o,values:t,alpha:r}}}}),mI=De({"node_modules/color-normalize/node_modules/color-rgba/index.js"(Y,H){"use strict";var p=pI();H.exports=function(E){Array.isArray(E)&&E.raw&&(E=String.raw.apply(null,arguments));var e,t,r,o=p(E);if(!o.space)return[];var i=[0,0,0],n=o.space[0]==="h"?[360,100,100]:[255,255,255];return e=Array(3),e[0]=Math.min(Math.max(o.values[0],i[0]),n[0]),e[1]=Math.min(Math.max(o.values[1],i[1]),n[1]),e[2]=Math.min(Math.max(o.values[2],i[2]),n[2]),o.space[0]==="h"&&(e=x(e)),e.push(Math.min(Math.max(o.alpha,0),1)),e};function x(S){var E=S[0]/360,e=S[1]/100,t=S[2]/100,r,o,i,n,a,s=0;if(e===0)return a=t*255,[a,a,a];for(o=t<.5?t*(1+e):t+e-t*e,r=2*t-o,n=[0,0,0];s<3;)i=E+1/3*-(s-1),i<0?i++:i>1&&i--,a=6*i<1?r+(o-r)*6*i:2*i<1?o:3*i<2?r+(o-r)*(2/3-i)*6:r,n[s++]=a*255;return n}}}),Jy=De({"node_modules/clamp/index.js"(Y,H){H.exports=p;function p(x,S,E){return S<E?x<S?S:x>E?E:x:x<E?E:x>S?S:x}}}),tb=De({"node_modules/dtype/index.js"(Y,H){H.exports=function(p){switch(p){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}}}),a0=De({"node_modules/color-normalize/index.js"(Y,H){"use strict";var p=mI(),x=Jy(),S=tb();H.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var o=S(r),i=new o(4),n=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=p(t),t[0]/=255,t[1]/=255,t[2]/=255),E(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,n&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(n?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=x(Math.floor(t[0]*255),0,255),i[1]=x(Math.floor(t[1]*255),0,255),i[2]=x(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:x(Math.floor(t[3]*255),0,255)),i)};function E(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}}}),pp=De({"src/lib/str2rgbarray.js"(Y,H){"use strict";var p=a0();function x(S){return S?p(S):[0,0,0,1]}H.exports=x}}),mp=De({"src/lib/gl_format_color.js"(Y,H){"use strict";var p=vn(),x=wu(),S=a0(),E=oc(),e=Pf().defaultLine,t=vl().isArrayOrTypedArray,r=S(e),o=1;function i(c,m){var d=c;return d[3]*=m,d}function n(c){if(p(c))return r;var m=S(c);return m.length?m:r}function a(c){return p(c)?c:o}function s(c,m,d){var T=c.color;T&&T._inputArray&&(T=T._inputArray);var l=t(T),_=t(m),w=E.extractOpts(c),A=[],M,g,b,v,u;if(w.colorscale!==void 0?M=E.makeColorScaleFuncFromTrace(c):M=n,l?g=function(f,R){return f[R]===void 0?r:S(M(f[R]))}:g=n,_?b=function(f,R){return f[R]===void 0?o:a(f[R])}:b=a,l||_)for(var y=0;y<d;y++)v=g(T,y),u=b(m,y),A[y]=i(v,u);else A=i(S(T),m);return A}function h(c){var m=E.extractOpts(c),d=m.colorscale;return m.reversescale&&(d=E.flipScale(m.colorscale)),d.map(function(T){var l=T[0],_=x(T[1]),w=_.toRgb();return{index:l,rgb:[w.r,w.g,w.b,w.a]}})}H.exports={formatColor:s,parseColorScale:h}}}),r5=De({"src/constants/gl3d_dashes.js"(Y,H){"use strict";H.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}}}),rb=De({"src/constants/gl3d_markers.js"(Y,H){"use strict";H.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}}}),gI=De({"src/traces/scatter3d/calc_errors.js"(Y,H){"use strict";var p=Mo();function x(e,t,r,o){if(!t||!t.visible)return null;for(var i=p.getComponentMethod("errorbars","makeComputeError")(t),n=new Array(e.length),a=0;a<e.length;a++){var s=i(+e[a],a);if(o.type==="log"){var h=o.c2l(e[a]),c=e[a]-s[0],m=e[a]+s[1];if(n[a]=[(o.c2l(c,!0)-h)*r,(o.c2l(m,!0)-h)*r],c>0){var d=o.c2l(c);o._lowerLogErrorBound||(o._lowerLogErrorBound=d),o._lowerErrorBound=Math.min(o._lowerLogErrorBound,d)}}else n[a]=[-s[0]*r,s[1]*r]}return n}function S(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}function E(e,t,r){var o=[x(e.x,e.error_x,t[0],r.xaxis),x(e.y,e.error_y,t[1],r.yaxis),x(e.z,e.error_z,t[2],r.zaxis)],i=S(o);if(i===0)return null;for(var n=new Array(i),a=0;a<i;a++){for(var s=[[0,0,0],[0,0,0]],h=0;h<3;h++)if(o[h])for(var c=0;c<2;c++)s[c][h]=o[h][a][c];n[a]=s}return n}H.exports=E}}),yI=De({"src/traces/scatter3d/convert.js"(Y,H){"use strict";var p=Dh().gl_line3d,x=Dh().gl_scatter3d,S=Dh().gl_error3d,E=Dh().gl_mesh3d,e=Dh().delaunay_triangulate,t=ui(),r=pp(),o=mp().formatColor,i=Km(),n=r5(),a=rb(),s=us(),h=Ad().appendArrayPointValue,c=gI();function m(R,L){this.scene=R,this.uid=L,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var d=m.prototype;d.handlePick=function(R){if(R.object&&(R.object===this.linePlot||R.object===this.delaunayMesh||R.object===this.textMarkers||R.object===this.scatterPlot)){var L=R.index=R.data.index;return R.object.highlight&&R.object.highlight(null),this.scatterPlot&&(R.object=this.scatterPlot,this.scatterPlot.highlight(R.data)),R.textLabel="",this.textLabels&&(t.isArrayOrTypedArray(this.textLabels)?(this.textLabels[L]||this.textLabels[L]===0)&&(R.textLabel=this.textLabels[L]):R.textLabel=this.textLabels),R.traceCoordinate=[this.data.x[L],this.data.y[L],this.data.z[L]],!0}};function T(R,L,z){var F=(z+1)%3,N=(z+2)%3,B=[],I=[],U;for(U=0;U<R.length;++U){var O=R[U];isNaN(O[F])||!isFinite(O[F])||isNaN(O[N])||!isFinite(O[N])||(B.push([O[F],O[N]]),I.push(U))}var X=e(B);for(U=0;U<X.length;++U)for(var J=X[U],se=0;se<J.length;++se)J[se]=I[J[se]];return{positions:R,cells:X,meshColor:L}}function l(R){for(var L=[0,0,0],z=[[0,0,0],[0,0,0],[0,0,0]],F=[1,1,1],N=0;N<3;N++){var B=R[N];B&&B.copy_zstyle!==!1&&R[2].visible!==!1&&(B=R[2]),!(!B||!B.visible)&&(L[N]=B.width/2,z[N]=r(B.color),F[N]=B.thickness)}return{capSize:L,color:z,lineWidth:F}}function _(R){return R==null?0:R.indexOf("left")>-1?-1:R.indexOf("right")>-1?1:0}function w(R){return R==null?0:R.indexOf("top")>-1?-1:R.indexOf("bottom")>-1?1:0}function A(R){var L=0,z=0,F=[L,z];if(Array.isArray(R))for(var N=0;N<R.length;N++)F[N]=[L,z],R[N]&&(F[N][0]=_(R[N]),F[N][1]=w(R[N]));else F[0]=_(R),F[1]=w(R);return F}function M(R,L){return L(R*4)}function g(R){return a[R]}function b(R,L,z,F,N){var B=null;if(t.isArrayOrTypedArray(R)){B=[];for(var I=0;I<L;I++)R[I]===void 0?B[I]=F:B[I]=z(R[I],N)}else B=z(R,t.identity);return B}function v(R,L){var z=[],F=R.fullSceneLayout,N=R.dataScale,B=F.xaxis,I=F.yaxis,U=F.zaxis,O=L.marker,X=L.line,J=L.x||[],se=L.y||[],le=L.z||[],ce=J.length,q=L.xcalendar,Z=L.ycalendar,ee=L.zcalendar,V,oe,ie,j,Q,re;for(Q=0;Q<ce;Q++)V=B.d2l(J[Q],0,q)*N[0],oe=I.d2l(se[Q],0,Z)*N[1],ie=U.d2l(le[Q],0,ee)*N[2],z[Q]=[V,oe,ie];if(Array.isArray(L.text))re=L.text;else if(t.isTypedArray(L.text))re=Array.from(L.text);else if(L.text!==void 0)for(re=new Array(ce),Q=0;Q<ce;Q++)re[Q]=L.text;function ue(Qe,at){var $e=F[Qe];return s.tickText($e,$e.d2l(at),!0).text}var _e=L.texttemplate;if(_e){var we=R.fullLayout,Re=we._d3locale,ze=Array.isArray(_e),Xe=ze?Math.min(_e.length,ce):ce,tt=ze?function(Qe){return _e[Qe]}:function(){return _e};for(re=new Array(Xe),Q=0;Q<Xe;Q++){var it={x:J[Q],y:se[Q],z:le[Q]},et={xLabel:ue("xaxis",J[Q]),yLabel:ue("yaxis",se[Q]),zLabel:ue("zaxis",le[Q])},nt={};h(nt,L,Q),re[Q]=t.texttemplateString({data:[nt,it,L._meta],fallback:L.texttemplatefallback,labels:et,locale:Re,template:tt(Q)})}}if(j={position:z,mode:L.mode,text:re},"line"in L&&(j.lineColor=o(X,1,ce),j.lineWidth=X.width,j.lineDashes=X.dash),"marker"in L){var Ae=i(L);j.scatterColor=o(O,1,ce),j.scatterSize=b(O.size,ce,M,20,Ae),j.scatterMarker=b(O.symbol,ce,g,"\u25CF"),j.scatterLineWidth=O.line.width,j.scatterLineColor=o(O.line,1,ce),j.scatterAngle=0}"textposition"in L&&(j.textOffset=A(L.textposition),j.textColor=o(L.textfont,1,ce),j.textSize=b(L.textfont.size,ce,t.identity,12),j.textFontFamily=L.textfont.family,j.textFontWeight=L.textfont.weight,j.textFontStyle=L.textfont.style,j.textFontVariant=L.textfont.variant,j.textAngle=0);var me=["x","y","z"];for(j.project=[!1,!1,!1],j.projectScale=[1,1,1],j.projectOpacity=[1,1,1],Q=0;Q<3;++Q){var fe=L.projection[me[Q]];(j.project[Q]=fe.show)&&(j.projectOpacity[Q]=fe.opacity,j.projectScale[Q]=fe.scale)}j.errorBounds=c(L,N,F);var Be=l([L.error_x,L.error_y,L.error_z]);return j.errorColor=Be.color,j.errorLineWidth=Be.lineWidth,j.errorCapSize=Be.capSize,j.delaunayAxis=L.surfaceaxis,j.delaunayColor=r(L.surfacecolor),j}function u(R){if(t.isArrayOrTypedArray(R)){var L=R[0];return t.isArrayOrTypedArray(L)&&(R=L),"rgb("+R.slice(0,3).map(function(z){return Math.round(z*255)})+")"}return null}function y(R){return t.isArrayOrTypedArray(R)?R.length===4&&typeof R[0]=="number"?u(R):R.map(u):null}d.update=function(R){var L=this.scene.glplot.gl,z,F,N,B,I=n.solid;this.data=R;var U=v(this.scene,R);"mode"in U&&(this.mode=U.mode),"lineDashes"in U&&U.lineDashes in n&&(I=n[U.lineDashes]),this.color=y(U.scatterColor)||y(U.lineColor),this.dataPoints=U.position,z={gl:this.scene.glplot.gl,position:U.position,color:U.lineColor,lineWidth:U.lineWidth||1,dashes:I[0],dashScale:I[1],opacity:R.opacity,connectGaps:R.connectgaps},this.mode.indexOf("lines")!==-1?this.linePlot?this.linePlot.update(z):(this.linePlot=p(z),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var O=R.opacity;if(R.marker&&R.marker.opacity!==void 0&&(O*=R.marker.opacity),F={gl:this.scene.glplot.gl,position:U.position,color:U.scatterColor,size:U.scatterSize,glyph:U.scatterMarker,opacity:O,orthographic:!0,lineWidth:U.scatterLineWidth,lineColor:U.scatterLineColor,project:U.project,projectScale:U.projectScale,projectOpacity:U.projectOpacity},this.mode.indexOf("markers")!==-1?this.scatterPlot?this.scatterPlot.update(F):(this.scatterPlot=x(F),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),B={gl:this.scene.glplot.gl,position:U.position,glyph:U.text,color:U.textColor,size:U.textSize,angle:U.textAngle,alignment:U.textOffset,font:U.textFontFamily,fontWeight:U.textFontWeight,fontStyle:U.textFontStyle,fontVariant:U.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:R.opacity},this.textLabels=R.hovertext||R.text,this.mode.indexOf("text")!==-1?this.textMarkers?this.textMarkers.update(B):(this.textMarkers=x(B),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),N={gl:this.scene.glplot.gl,position:U.position,color:U.errorColor,error:U.errorBounds,lineWidth:U.errorLineWidth,capSize:U.errorCapSize,opacity:R.opacity},this.errorBars?U.errorBounds?this.errorBars.update(N):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):U.errorBounds&&(this.errorBars=S(N),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),U.delaunayAxis>=0){var X=T(U.position,U.delaunayColor,U.delaunayAxis);X.opacity=R.opacity,this.delaunayMesh?this.delaunayMesh.update(X):(X.gl=L,this.delaunayMesh=E(X),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},d.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function f(R,L){var z=new m(R,L.uid);return z.update(L),z}H.exports=f}}),i5=De({"src/traces/scatter3d/attributes.js"(Y,H){"use strict";var p=lf(),x=qu(),S=zu(),E=of().axisHoverFormat,{hovertemplateAttrs:e,texttemplateAttrs:t,templatefallbackAttrs:r}=ou(),o=Yl(),i=r5(),n=rb(),a=Xo().extendFlat,s=gc().overrideAll,h=jp(),c=p.line,m=p.marker,d=m.line,T=a({width:c.width,dash:{valType:"enumerated",values:h(i),dflt:"solid"}},S("line"));function l(w){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var _=H.exports=s({x:p.x,y:p.y,z:{valType:"data_array"},text:a({},p.text,{}),texttemplate:t(),texttemplatefallback:r({editType:"calc"}),hovertext:a({},p.hovertext,{}),hovertemplate:e(),hovertemplatefallback:r(),xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z"),mode:a({},p.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:l("x"),y:l("y"),z:l("z")},connectgaps:p.connectgaps,line:T,marker:a({symbol:{valType:"enumerated",values:h(n),dflt:"circle",arrayOk:!0},size:a({},m.size,{dflt:8}),sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode,opacity:a({},m.opacity,{arrayOk:!1}),colorbar:m.colorbar,line:a({width:a({},d.width,{arrayOk:!1})},S("marker.line"))},S("marker")),textposition:a({},p.textposition,{dflt:"top center"}),textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:o.opacity,hoverinfo:a({},o.hoverinfo)},"calc","nested");_.x.editType=_.y.editType=_.z.editType="calc+clearAxisTypes"}}),_I=De({"src/traces/scatter3d/defaults.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=Hu(),E=Od(),e=Wd(),t=Xd(),r=i5();H.exports=function(n,a,s,h){function c(M,g){return x.coerce(n,a,r,M,g)}var m=o(n,a,c,h);if(!m){a.visible=!1;return}c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("xhoverformat"),c("yhoverformat"),c("zhoverformat"),c("mode"),S.hasMarkers(a)&&E(n,a,s,h,c,{noAngle:!0,noLineDash:!0,noSelect:!0}),S.hasLines(a)&&(c("connectgaps"),e(n,a,s,h,c)),S.hasText(a)&&(c("texttemplate"),c("texttemplatefallback"),t(n,a,h,c,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var d=(a.line||{}).color,T=(a.marker||{}).color;c("surfaceaxis")>=0&&c("surfacecolor",d||T);for(var l=["x","y","z"],_=0;_<3;++_){var w="projection."+l[_];c(w+".show")&&(c(w+".opacity"),c(w+".scale"))}var A=p.getComponentMethod("errorbars","supplyDefaults");A(n,a,d||T||s,{axis:"z"}),A(n,a,d||T||s,{axis:"y",inherit:"z"}),A(n,a,d||T||s,{axis:"x",inherit:"z"})};function o(i,n,a,s){var h=0,c=a("x"),m=a("y"),d=a("z"),T=p.getComponentMethod("calendars","handleTraceDefaults");return T(i,n,["x","y","z"],s),c&&m&&d&&(h=Math.min(c.length,m.length,d.length),n._length=n._xlength=n._ylength=n._zlength=h),h}}}),xI=De({"src/traces/scatter3d/calc.js"(Y,H){"use strict";var p=Fv(),x=Yd();H.exports=function(E,e){var t=[{x:!1,y:!1,trace:e,t:{}}];return p(t,e),x(E,e),t}}}),bI=De({"node_modules/get-canvas-context/index.js"(Y,H){H.exports=p;function p(x,S){if(typeof x!="string")throw new TypeError("must specify type string");if(S=S||{},typeof document>"u"&&!S.canvas)return null;var E=S.canvas||document.createElement("canvas");typeof S.width=="number"&&(E.width=S.width),typeof S.height=="number"&&(E.height=S.height);var e=S,t;try{var r=[x];x.indexOf("webgl")===0&&r.push("experimental-"+x);for(var o=0;o<r.length;o++)if(t=E.getContext(r[o],e),t)return t}catch{t=null}return t||null}}}),wI=De({"node_modules/webgl-context/index.js"(Y,H){var p=bI();H.exports=function(S){return p("webgl",S)}}}),a5=De({"src/lib/show_no_webgl_msg.js"(Y,H){"use strict";var p=vo(),x=function(){};H.exports=function(E){for(var e in E)typeof E[e]=="function"&&(E[e]=x);E.destroy=function(){E.container.parentNode.removeChild(E.container)};var t=document.createElement("div");t.className="no-webgl",t.style.cursor="pointer",t.style.fontSize="24px",t.style.color=p.defaults[0],t.style.position="absolute",t.style.left=t.style.top="0px",t.style.width=t.style.height="100%",t.style["background-color"]=p.lightLine,t.style["z-index"]=30;var r=document.createElement("p");return r.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",r.style.position="relative",r.style.top="50%",r.style.left="50%",r.style.height="30%",r.style.width="50%",r.style.margin="-15% 0 0 -25%",t.appendChild(r),E.container.appendChild(t),E.container.style.background="#FFFFFF",E.container.onclick=function(){window.open("https://get.webgl.org")},!1}}}),TI=De({"src/plots/gl3d/layout/convert.js"(Y,H){"use strict";var p=pp(),x=ui(),S=["xaxis","yaxis","zaxis"];function E(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var e=E.prototype;e.merge=function(r,o){for(var i=this,n=0;n<3;++n){var a=o[S[n]];if(!a.visible){i.tickEnable[n]=!1,i.labelEnable[n]=!1,i.lineEnable[n]=!1,i.lineTickEnable[n]=!1,i.gridEnable[n]=!1,i.zeroEnable[n]=!1,i.backgroundEnable[n]=!1;continue}i.labels[n]=r._meta?x.templateString(a.title.text,r._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(i.labelColor[n]=p(a.title.font.color)),a.title.font.family&&(i.labelFont[n]=a.title.font.family),a.title.font.size&&(i.labelSize[n]=a.title.font.size),a.title.font.weight&&(i.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(i.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(i.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(i.lineEnable[n]=a.showline),"linecolor"in a&&(i.lineColor[n]=p(a.linecolor)),"linewidth"in a&&(i.lineWidth[n]=a.linewidth),"showgrid"in a&&(i.gridEnable[n]=a.showgrid),"gridcolor"in a&&(i.gridColor[n]=p(a.gridcolor)),"gridwidth"in a&&(i.gridWidth[n]=a.gridwidth),a.type==="log"?i.zeroEnable[n]=!1:"zeroline"in a&&(i.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(i.zeroLineColor[n]=p(a.zerolinecolor)),"zerolinewidth"in a&&(i.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?i.lineTickEnable[n]=!0:i.lineTickEnable[n]=!1,"ticklen"in a&&(i.lineTickLength[n]=i._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(i.lineTickColor[n]=p(a.tickcolor)),"tickwidth"in a&&(i.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(i.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(i.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(i.tickColor[n]=p(a.tickfont.color)),a.tickfont.family&&(i.tickFont[n]=a.tickfont.family),a.tickfont.size&&(i.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(i.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(i.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(i.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(i.lineTickMirror[n]=!0,i.lineMirror[n]=!0):a.mirror===!0?(i.lineTickMirror[n]=!1,i.lineMirror[n]=!0):(i.lineTickMirror[n]=!1,i.lineMirror[n]=!1):i.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(i.backgroundEnable[n]=!0,i.backgroundColor[n]=p(a.backgroundcolor)):i.backgroundEnable[n]=!1}};function t(r,o){var i=new E;return i.merge(r,o),i}H.exports=t}}),AI=De({"src/plots/gl3d/layout/spikes.js"(Y,H){"use strict";var p=pp(),x=["xaxis","yaxis","zaxis"];function S(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var E=S.prototype;E.merge=function(t){for(var r=0;r<3;++r){var o=t[x[r]];if(!o.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=o.showspikes,this.colors[r]=p(o.spikecolor),this.drawSides[r]=o.spikesides,this.lineWidth[r]=o.spikethickness}};function e(t){var r=new S;return r.merge(t),r}H.exports=e}}),SI=De({"src/plots/gl3d/layout/tick_marks.js"(Y,H){"use strict";H.exports=t;var p=us(),x=ui(),S=["xaxis","yaxis","zaxis"],E=[0,0,0];function e(r){for(var o=new Array(3),i=0;i<3;++i){for(var n=r[i],a=new Array(n.length),s=0;s<n.length;++s)a[s]=n[s].x;o[i]=a}return o}function t(r){for(var o=r.axesOptions,i=r.glplot.axesPixels,n=r.fullSceneLayout,a=[[],[],[]],s=0;s<3;++s){var h=n[S[s]];if(h._length=(i[s].hi-i[s].lo)*i[s].pixelsPerDataUnit/r.dataScale[s],Math.abs(h._length)===1/0||isNaN(h._length))a[s]=[];else{h._input_range=h.range.slice(),h.range[0]=i[s].lo/r.dataScale[s],h.range[1]=i[s].hi/r.dataScale[s],h._m=1/(r.dataScale[s]*i[s].pixelsPerDataUnit),h.range[0]===h.range[1]&&(h.range[0]-=1,h.range[1]+=1);var c=h.tickmode;if(h.tickmode==="auto"){h.tickmode="linear";var m=h.nticks||x.constrain(h._length/40,4,9);p.autoTicks(h,Math.abs(h.range[1]-h.range[0])/m)}for(var d=p.calcTicks(h,{msUTC:!0}),T=0;T<d.length;++T)d[T].x=d[T].x*r.dataScale[s],h.type==="date"&&(d[T].text=d[T].text.replace(/\<br\>/g," "));a[s]=d,h.tickmode=c}}o.ticks=a;for(var s=0;s<3;++s){E[s]=.5*(r.glplot.bounds[0][s]+r.glplot.bounds[1][s]);for(var T=0;T<2;++T)o.bounds[T][s]=r.glplot.bounds[T][s]}r.contourLevels=e(a)}}}),MI=De({"src/plots/gl3d/scene.js"(Y,H){"use strict";var p=Dh().gl_plot3d,x=p.createCamera,S=p.createScene,E=wI(),e=T_(),t=Mo(),r=ui(),o=r.preserveDrawingBuffer(),i=us(),n=sf(),a=pp(),s=a5(),h=b2(),c=TI(),m=AI(),d=SI(),T=fv().applyAutorangeOptions,l,_,w=!1;function A(z,F){var N=document.createElement("div"),B=z.container;this.graphDiv=z.graphDiv;var I=document.createElementNS("http://www.w3.org/2000/svg","svg");I.style.position="absolute",I.style.top=I.style.left="0px",I.style.width=I.style.height="100%",I.style["z-index"]=20,I.style["pointer-events"]="none",N.appendChild(I),this.svgContainer=I,N.id=z.id,N.style.position="absolute",N.style.top=N.style.left="0px",N.style.width=N.style.height="100%",B.appendChild(N),this.fullLayout=F,this.id=z.id||"scene",this.fullSceneLayout=F[this.id],this.plotArgs=[[],{},{}],this.axesOptions=c(F,F[this.id]),this.spikeOptions=m(F[this.id]),this.container=N,this.staticMode=!!z.staticPlot,this.pixelRatio=this.pixelRatio||z.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=t.getComponentMethod("annotations3d","convert"),this.drawAnnotations=t.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=A.prototype;M.prepareOptions=function(){var z=this,F={canvas:z.canvas,gl:z.gl,glOptions:{preserveDrawingBuffer:o,premultipliedAlpha:!0,antialias:!0},container:z.container,axes:z.axesOptions,spikes:z.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:z.camera,pixelRatio:z.pixelRatio};if(z.staticMode){if(!_&&(l=document.createElement("canvas"),_=E({canvas:l,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!_))throw new Error("error creating static canvas/context for image server");F.gl=_,F.canvas=l}return F};var g=!0;M.tryCreatePlot=function(){var z=this,F=z.prepareOptions(),N=!0;try{z.glplot=S(F)}catch{if(z.staticMode||!g||o)N=!1;else{r.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{o=F.glOptions.preserveDrawingBuffer=!0,z.glplot=S(F)}catch{o=F.glOptions.preserveDrawingBuffer=!1,N=!1}}}return g=!1,N},M.initializeGLCamera=function(){var z=this,F=z.fullSceneLayout.camera,N=F.projection.type==="orthographic";z.camera=x(z.container,{center:[F.center.x,F.center.y,F.center.z],eye:[F.eye.x,F.eye.y,F.eye.z],up:[F.up.x,F.up.y,F.up.z],_ortho:N,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var z=this;z.initializeGLCamera();var F=z.tryCreatePlot();if(!F)return s(z);z.traces={},z.make4thDimension();var N=z.graphDiv,B=N.layout,I=function(){var O={};return z.isCameraChanged(B)&&(O[z.id+".camera"]=z.getCamera()),z.isAspectChanged(B)&&(O[z.id+".aspectratio"]=z.glplot.getAspectratio(),B[z.id].aspectmode!=="manual"&&(z.fullSceneLayout.aspectmode=B[z.id].aspectmode=O[z.id+".aspectmode"]="manual")),O},U=function(O){if(O.fullSceneLayout.dragmode!==!1){var X=I();O.saveLayout(B),O.graphDiv.emit("plotly_relayout",X)}};return z.glplot.canvas&&(z.glplot.canvas.addEventListener("mouseup",function(){U(z)}),z.glplot.canvas.addEventListener("touchstart",function(){w=!0}),z.glplot.canvas.addEventListener("wheel",function(O){if(N._context._scrollZoom.gl3d){if(z.camera._ortho){var X=O.deltaX>O.deltaY?1.1:.9090909090909091,J=z.glplot.getAspectratio();z.glplot.setAspectratio({x:X*J.x,y:X*J.y,z:X*J.z})}U(z)}},e?{passive:!1}:!1),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var O=I();z.graphDiv.emit("plotly_relayouting",O)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(O){N&&N.emit&&N.emit("plotly_webglcontextlost",{event:O,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},M.render=function(){var z=this,F=z.graphDiv,N,B=z.svgContainer,I=z.container.getBoundingClientRect();F._fullLayout._calcInverseTransform(F);var U=F._fullLayout._invScaleX,O=F._fullLayout._invScaleY,X=I.width*U,J=I.height*O;B.setAttributeNS(null,"viewBox","0 0 "+X+" "+J),B.setAttributeNS(null,"width",X),B.setAttributeNS(null,"height",J),d(z),z.glplot.axes.update(z.axesOptions);for(var se=Object.keys(z.traces),le=null,ce=z.glplot.selection,q=0;q<se.length;++q)N=z.traces[se[q]],N.data.hoverinfo!=="skip"&&N.handlePick(ce)&&(le=N),N.setContourLevels&&N.setContourLevels();function Z(Xe,tt,it){var et=z.fullSceneLayout[Xe+"axis"];return et.type!=="log"&&(tt=et.d2l(tt)),i.hoverLabelText(et,tt,it)}if(le!==null){var ee=h(z.glplot.cameraParams,ce.dataCoordinate);N=le.data;var V=F._fullData[N.index],oe=ce.index,ie={xLabel:Z("x",ce.traceCoordinate[0],N.xhoverformat),yLabel:Z("y",ce.traceCoordinate[1],N.yhoverformat),zLabel:Z("z",ce.traceCoordinate[2],N.zhoverformat)},j=n.castHoverinfo(V,z.fullLayout,oe),Q=(j||"").split("+"),re=j&&j==="all";!V.hovertemplate&&!re&&(Q.indexOf("x")===-1&&(ie.xLabel=void 0),Q.indexOf("y")===-1&&(ie.yLabel=void 0),Q.indexOf("z")===-1&&(ie.zLabel=void 0),Q.indexOf("text")===-1&&(ce.textLabel=void 0),Q.indexOf("name")===-1&&(le.name=void 0));var ue,_e=[];N.type==="cone"||N.type==="streamtube"?(ie.uLabel=Z("x",ce.traceCoordinate[3],N.uhoverformat),(re||Q.indexOf("u")!==-1)&&_e.push("u: "+ie.uLabel),ie.vLabel=Z("y",ce.traceCoordinate[4],N.vhoverformat),(re||Q.indexOf("v")!==-1)&&_e.push("v: "+ie.vLabel),ie.wLabel=Z("z",ce.traceCoordinate[5],N.whoverformat),(re||Q.indexOf("w")!==-1)&&_e.push("w: "+ie.wLabel),ie.normLabel=ce.traceCoordinate[6].toPrecision(3),(re||Q.indexOf("norm")!==-1)&&_e.push("norm: "+ie.normLabel),N.type==="streamtube"&&(ie.divergenceLabel=ce.traceCoordinate[7].toPrecision(3),(re||Q.indexOf("divergence")!==-1)&&_e.push("divergence: "+ie.divergenceLabel)),ce.textLabel&&_e.push(ce.textLabel),ue=_e.join("<br>")):N.type==="isosurface"||N.type==="volume"?(ie.valueLabel=i.hoverLabelText(z._mockAxis,z._mockAxis.d2l(ce.traceCoordinate[3]),N.valuehoverformat),_e.push("value: "+ie.valueLabel),ce.textLabel&&_e.push(ce.textLabel),ue=_e.join("<br>")):ue=ce.textLabel;var we={x:ce.traceCoordinate[0],y:ce.traceCoordinate[1],z:ce.traceCoordinate[2],data:V._input,fullData:V,curveNumber:V.index,pointNumber:oe};n.appendArrayPointValue(we,V,oe),N._module.eventData&&(we=V._module.eventData(we,ce,V,{},oe));var Re={points:[we]};if(z.fullSceneLayout.hovermode){var ze=[];n.loneHover({trace:V,x:(.5+.5*ee[0]/ee[3])*X,y:(.5-.5*ee[1]/ee[3])*J,xLabel:ie.xLabel,yLabel:ie.yLabel,zLabel:ie.zLabel,text:ue,name:le.name,color:n.castHoverOption(V,oe,"bgcolor")||le.color,borderColor:n.castHoverOption(V,oe,"bordercolor"),fontFamily:n.castHoverOption(V,oe,"font.family"),fontSize:n.castHoverOption(V,oe,"font.size"),fontColor:n.castHoverOption(V,oe,"font.color"),nameLength:n.castHoverOption(V,oe,"namelength"),textAlign:n.castHoverOption(V,oe,"align"),hovertemplate:r.castOption(V,oe,"hovertemplate"),hovertemplateLabels:r.extendFlat({},we,ie),eventData:[we]},{container:B,gd:F,inOut_bbox:ze}),we.bbox=ze[0]}ce.distance<5&&(ce.buttons||w)?F.emit("plotly_click",Re):F.emit("plotly_hover",Re),this.oldEventData=Re}else n.loneUnhover(B),this.oldEventData&&F.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;z.drawAnnotations(z)},M.recoverContext=function(){var z=this;z.glplot.dispose();var F=function(){if(z.glplot.gl.isContextLost()){requestAnimationFrame(F);return}if(!z.initializeGLPlot()){r.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}z.plot.apply(z,z.plotArgs)};requestAnimationFrame(F)};var b=["xaxis","yaxis","zaxis"];function v(z,F,N){for(var B=z.fullSceneLayout,I=0;I<3;I++){var U=b[I],O=U.charAt(0),X=B[U],J=F[O],se=F[O+"calendar"],le=F["_"+O+"length"];if(!r.isArrayOrTypedArray(J))N[0][I]=Math.min(N[0][I],0),N[1][I]=Math.max(N[1][I],le-1);else for(var ce,q=0;q<(le||J.length);q++)if(r.isArrayOrTypedArray(J[q]))for(var Z=0;Z<J[q].length;++Z)ce=X.d2l(J[q][Z],0,se),!isNaN(ce)&&isFinite(ce)&&(N[0][I]=Math.min(N[0][I],ce),N[1][I]=Math.max(N[1][I],ce));else ce=X.d2l(J[q],0,se),!isNaN(ce)&&isFinite(ce)&&(N[0][I]=Math.min(N[0][I],ce),N[1][I]=Math.max(N[1][I],ce))}}function u(z,F){for(var N=z.fullSceneLayout,B=N.annotations||[],I=0;I<3;I++)for(var U=b[I],O=U.charAt(0),X=N[U],J=0;J<B.length;J++){var se=B[J];if(se.visible){var le=X.r2l(se[O]);!isNaN(le)&&isFinite(le)&&(F[0][I]=Math.min(F[0][I],le),F[1][I]=Math.max(F[1][I],le))}}}M.plot=function(z,F,N){var B=this;if(B.plotArgs=[z,F,N],!B.glplot.contextLost){var I,U,O,X,J,se,le=F[B.id],ce=N[B.id];B.fullLayout=F,B.fullSceneLayout=le,B.axesOptions.merge(F,le),B.spikeOptions.merge(le),B.setViewport(le),B.updateFx(le.dragmode,le.hovermode),B.camera.enableWheel=B.graphDiv._context._scrollZoom.gl3d,B.glplot.setClearColor(a(le.bgcolor)),B.setConvert(J),z?Array.isArray(z)||(z=[z]):z=[];var q=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(O=0;O<z.length;++O)I=z[O],!(I.visible!==!0||I._length===0)&&v(this,I,q);u(this,q);var Z=[1,1,1];for(X=0;X<3;++X)q[1][X]===q[0][X]?Z[X]=1:Z[X]=1/(q[1][X]-q[0][X]);for(B.dataScale=Z,B.convertAnnotations(this),O=0;O<z.length;++O)I=z[O],!(I.visible!==!0||I._length===0)&&(U=B.traces[I.uid],U?U.data.type===I.type?U.update(I):(U.dispose(),U=I._module.plot(this,I),B.traces[I.uid]=U):(U=I._module.plot(this,I),B.traces[I.uid]=U),U.name=I.name);var ee=Object.keys(B.traces);e:for(O=0;O<ee.length;++O){for(X=0;X<z.length;++X)if(z[X].uid===ee[O]&&z[X].visible===!0&&z[X]._length!==0)continue e;U=B.traces[ee[O]],U.dispose(),delete B.traces[ee[O]]}B.glplot.objects.sort(function($e,It){return $e._trace.data.index-It._trace.data.index});var V=[[0,0,0],[0,0,0]],oe=[],ie={};for(O=0;O<3;++O){J=le[b[O]],se=J.type,se in ie?(ie[se].acc*=Z[O],ie[se].count+=1):ie[se]={acc:Z[O],count:1};var j;if(J.autorange){V[0][O]=1/0,V[1][O]=-1/0;var Q=B.glplot.objects,re=B.fullSceneLayout.annotations||[],ue=J._name.charAt(0);for(X=0;X<Q.length;X++){var _e=Q[X],we=_e.bounds,Re=_e._trace.data._pad||0;_e.constructor.name==="ErrorBars"&&J._lowerLogErrorBound?V[0][O]=Math.min(V[0][O],J._lowerLogErrorBound):V[0][O]=Math.min(V[0][O],we[0][O]/Z[O]-Re),V[1][O]=Math.max(V[1][O],we[1][O]/Z[O]+Re)}for(X=0;X<re.length;X++){var ze=re[X];if(ze.visible){var Xe=J.r2l(ze[ue]);V[0][O]=Math.min(V[0][O],Xe),V[1][O]=Math.max(V[1][O],Xe)}}if("rangemode"in J&&J.rangemode==="tozero"&&(V[0][O]=Math.min(V[0][O],0),V[1][O]=Math.max(V[1][O],0)),V[0][O]>V[1][O])V[0][O]=-1,V[1][O]=1;else{var tt=V[1][O]-V[0][O];V[0][O]-=tt/32,V[1][O]+=tt/32}if(j=[V[0][O],V[1][O]],j=T(j,J),V[0][O]=j[0],V[1][O]=j[1],J.isReversed()){var it=V[0][O];V[0][O]=V[1][O],V[1][O]=it}}else j=J.range,V[0][O]=J.r2l(j[0]),V[1][O]=J.r2l(j[1]);V[0][O]===V[1][O]&&(V[0][O]-=1,V[1][O]+=1),oe[O]=V[1][O]-V[0][O],J.range=[V[0][O],V[1][O]],J.limitRange(),B.glplot.setBounds(O,{min:J.range[0]*Z[O],max:J.range[1]*Z[O]})}var et,nt=le.aspectmode;if(nt==="cube")et=[1,1,1];else if(nt==="manual"){var Ae=le.aspectratio;et=[Ae.x,Ae.y,Ae.z]}else if(nt==="auto"||nt==="data"){var me=[1,1,1];for(O=0;O<3;++O){J=le[b[O]],se=J.type;var fe=ie[se];me[O]=Math.pow(fe.acc,1/fe.count)/Z[O]}nt==="data"||Math.max.apply(null,me)/Math.min.apply(null,me)<=4?et=me:et=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");le.aspectratio.x=ce.aspectratio.x=et[0],le.aspectratio.y=ce.aspectratio.y=et[1],le.aspectratio.z=ce.aspectratio.z=et[2],B.glplot.setAspectratio(le.aspectratio),B.viewInitial.aspectratio||(B.viewInitial.aspectratio={x:le.aspectratio.x,y:le.aspectratio.y,z:le.aspectratio.z}),B.viewInitial.aspectmode||(B.viewInitial.aspectmode=le.aspectmode);var Be=le.domain||null,Qe=F._size||null;if(Be&&Qe){var at=B.container.style;at.position="absolute",at.left=Qe.l+Be.x[0]*Qe.w+"px",at.top=Qe.t+(1-Be.y[1])*Qe.h+"px",at.width=Qe.w*(Be.x[1]-Be.x[0])+"px",at.height=Qe.h*(Be.y[1]-Be.y[0])+"px"}B.glplot.redraw()}},M.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)};function y(z){return[[z.eye.x,z.eye.y,z.eye.z],[z.center.x,z.center.y,z.center.z],[z.up.x,z.up.y,z.up.z]]}function f(z){return{up:{x:z.up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var z=this;return z.camera.view.recalcMatrix(z.camera.view.lastT()),f(z.camera)},M.setViewport=function(z){var F=this,N=z.camera;F.camera.lookAt.apply(this,y(N)),F.glplot.setAspectratio(z.aspectratio);var B=N.projection.type==="orthographic",I=F.camera._ortho;B!==I&&(F.glplot.redraw(),F.glplot.clearRGBA(),F.glplot.dispose(),F.initializeGLPlot())},M.isCameraChanged=function(z){var F=this,N=F.getCamera(),B=r.nestedProperty(z,F.id+".camera"),I=B.get();function U(se,le,ce,q){var Z=["up","center","eye"],ee=["x","y","z"];return le[Z[ce]]&&se[Z[ce]][ee[q]]===le[Z[ce]][ee[q]]}var O=!1;if(I===void 0)O=!0;else{for(var X=0;X<3;X++)for(var J=0;J<3;J++)if(!U(N,I,X,J)){O=!0;break}(!I.projection||N.projection&&N.projection.type!==I.projection.type)&&(O=!0)}return O},M.isAspectChanged=function(z){var F=this,N=F.glplot.getAspectratio(),B=r.nestedProperty(z,F.id+".aspectratio"),I=B.get();return I===void 0||I.x!==N.x||I.y!==N.y||I.z!==N.z},M.saveLayout=function(z){var F=this,N=F.fullLayout,B,I,U,O,X,J,se=F.isCameraChanged(z),le=F.isAspectChanged(z),ce=se||le;if(ce){var q={};if(se&&(B=F.getCamera(),I=r.nestedProperty(z,F.id+".camera"),U=I.get(),q[F.id+".camera"]=U),le&&(O=F.glplot.getAspectratio(),X=r.nestedProperty(z,F.id+".aspectratio"),J=X.get(),q[F.id+".aspectratio"]=J),t.call("_storeDirectGUIEdit",z,N._preGUI,q),se){I.set(B);var Z=r.nestedProperty(N,F.id+".camera");Z.set(B)}if(le){X.set(O);var ee=r.nestedProperty(N,F.id+".aspectratio");ee.set(O),F.glplot.redraw()}}return ce},M.updateFx=function(z,F){var N=this,B=N.camera;if(B)if(z==="orbit")B.mode="orbit",B.keyBindingMode="rotate";else if(z==="turntable"){B.up=[0,0,1],B.mode="turntable",B.keyBindingMode="rotate";var I=N.graphDiv,U=I._fullLayout,O=N.fullSceneLayout.camera,X=O.up.x,J=O.up.y,se=O.up.z;if(se/Math.sqrt(X*X+J*J+se*se)<.999){var le=N.id+".camera.up",ce={x:0,y:0,z:1},q={};q[le]=ce;var Z=I.layout;t.call("_storeDirectGUIEdit",Z,U._preGUI,q),O.up=ce,r.nestedProperty(Z,le).set(ce)}}else B.keyBindingMode=z;N.fullSceneLayout.hovermode=F};function R(z,F,N){for(var B=0,I=N-1;B<I;++B,--I)for(var U=0;U<F;++U)for(var O=0;O<4;++O){var X=4*(F*B+U)+O,J=4*(F*I+U)+O,se=z[X];z[X]=z[J],z[J]=se}}function L(z,F,N){for(var B=0;B<N;++B)for(var I=0;I<F;++I){var U=4*(F*B+I),O=z[U+3];if(O>0)for(var X=255/O,J=0;J<3;++J)z[U+J]=Math.min(X*z[U+J],255)}}M.toImage=function(z){var F=this;z||(z="png"),F.staticMode&&F.container.appendChild(l),F.glplot.redraw();var N=F.glplot.gl,B=N.drawingBufferWidth,I=N.drawingBufferHeight;N.bindFramebuffer(N.FRAMEBUFFER,null);var U=new Uint8Array(B*I*4);N.readPixels(0,0,B,I,N.RGBA,N.UNSIGNED_BYTE,U),R(U,B,I),L(U,B,I);var O=document.createElement("canvas");O.width=B,O.height=I;var X=O.getContext("2d",{willReadFrequently:!0}),J=X.createImageData(B,I);J.data.set(U),X.putImageData(J,0,0);var se;switch(z){case"jpeg":se=O.toDataURL("image/jpeg");break;case"webp":se=O.toDataURL("image/webp");break;default:se=O.toDataURL("image/png")}return F.staticMode&&F.container.removeChild(l),se},M.setConvert=function(){for(var z=this,F=0;F<3;F++){var N=z.fullSceneLayout[b[F]];i.setConvert(N,z.fullLayout),N.setScale=r.noop}},M.make4thDimension=function(){var z=this,F=z.graphDiv,N=F._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},i.setConvert(z._mockAxis,N)},H.exports=A}}),EI=De({"src/plots/gl3d/layout/attributes.js"(Y,H){"use strict";H.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}}}),n5=De({"src/plots/gl3d/layout/axis_attributes.js"(Y,H){"use strict";var p=vo(),x=Ih(),S=Xo().extendFlat,E=gc().overrideAll;H.exports=E({visible:x.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:p.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:x.color,categoryorder:x.categoryorder,categoryarray:x.categoryarray,title:{text:x.title.text,font:x.title.font},type:S({},x.type,{values:["-","linear","log","date","category"]}),autotypenumbers:x.autotypenumbers,autorange:x.autorange,autorangeoptions:{minallowed:x.autorangeoptions.minallowed,maxallowed:x.autorangeoptions.maxallowed,clipmin:x.autorangeoptions.clipmin,clipmax:x.autorangeoptions.clipmax,include:x.autorangeoptions.include,editType:"plot"},rangemode:x.rangemode,minallowed:x.minallowed,maxallowed:x.maxallowed,range:S({},x.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:x.minor.tickmode,nticks:x.nticks,tick0:x.tick0,dtick:x.dtick,tickvals:x.tickvals,ticktext:x.ticktext,ticks:x.ticks,mirror:x.mirror,ticklen:x.ticklen,tickwidth:x.tickwidth,tickcolor:x.tickcolor,showticklabels:x.showticklabels,labelalias:x.labelalias,tickfont:x.tickfont,tickangle:x.tickangle,tickprefix:x.tickprefix,showtickprefix:x.showtickprefix,ticksuffix:x.ticksuffix,showticksuffix:x.showticksuffix,showexponent:x.showexponent,exponentformat:x.exponentformat,minexponent:x.minexponent,separatethousands:x.separatethousands,tickformat:x.tickformat,tickformatstops:x.tickformatstops,hoverformat:x.hoverformat,showline:x.showline,linecolor:x.linecolor,linewidth:x.linewidth,showgrid:x.showgrid,gridcolor:S({},x.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:x.gridwidth,zeroline:x.zeroline,zerolinecolor:x.zerolinecolor,zerolinewidth:x.zerolinewidth},"plot","from-root")}}),o5=De({"src/plots/gl3d/layout/layout_attributes.js"(Y,H){"use strict";var p=n5(),x=Ec().attributes,S=Xo().extendFlat,E=ui().counterRegex;function e(t,r,o){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:o,editType:"camera"},editType:"camera"}}H.exports={_arrayAttrRegexps:[E("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:S(e(0,0,1),{}),center:S(e(0,0,0),{}),eye:S(e(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:x({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:p,yaxis:p,zaxis:p,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}}}),kI=De({"src/plots/gl3d/layout/axis_defaults.js"(Y,H){"use strict";var p=wu().mix,x=ui(),S=Gl(),E=n5(),e=_2(),t=yy(),r=["xaxis","yaxis","zaxis"],o=100*136/187;H.exports=function(n,a,s){var h,c;function m(l,_){return x.coerce(h,c,E,l,_)}for(var d=0;d<r.length;d++){var T=r[d];h=n[T]||{},c=S.newContainer(a,T),c._id=T[0]+s.scene,c._name=T,e(h,c,m,s),t(h,c,m,{font:s.font,letter:T[0],data:s.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:s.bgColor,calendar:s.calendar},s.fullLayout),m("gridcolor",p(c.color,s.bgColor,o).toRgbString()),m("title.text",T[0]),c.setScale=x.noop,m("showspikes")&&(m("spikesides"),m("spikethickness"),m("spikecolor",c.color)),m("showaxeslabels"),m("showbackground")&&m("backgroundcolor")}}}}),CI=De({"src/plots/gl3d/layout/defaults.js"(Y,H){"use strict";var p=ui(),x=vo(),S=Mo(),E=Kp(),e=kI(),t=o5(),r=Lh().getSubplotData,o="gl3d";H.exports=function(a,s,h){var c=s._basePlotModules.length>1;function m(d){if(!c){var T=p.validate(a[d],t[d]);if(T)return a[d]}}E(a,s,h,{type:o,attributes:t,handleDefaults:i,fullLayout:s,font:s.font,fullData:h,getDfltFromLayout:m,autotypenumbersDflt:s.autotypenumbers,paper_bgcolor:s.paper_bgcolor,calendar:s.calendar})};function i(n,a,s,h){for(var c=s("bgcolor"),m=x.combine(c,h.paper_bgcolor),d=["up","center","eye"],T=0;T<d.length;T++)s("camera."+d[T]+".x"),s("camera."+d[T]+".y"),s("camera."+d[T]+".z");s("camera.projection.type");var l=!!s("aspectratio.x")&&!!s("aspectratio.y")&&!!s("aspectratio.z"),_=l?"manual":"auto",w=s("aspectmode",_);l||(n.aspectratio=a.aspectratio={x:1,y:1,z:1},w==="manual"&&(a.aspectmode="auto"),n.aspectmode=a.aspectmode);var A=r(h.fullData,o,h.id);e(n,a,{font:h.font,scene:h.id,data:A,bgColor:m,calendar:h.calendar,autotypenumbersDflt:h.autotypenumbersDflt,fullLayout:h.fullLayout}),S.getComponentMethod("annotations3d","handleDefaults")(n,a,h);var M=h.getDfltFromLayout("dragmode");if(M!==!1&&!M)if(M="orbit",n.camera&&n.camera.up){var g=n.camera.up.x,b=n.camera.up.y,v=n.camera.up.z;v!==0&&(!g||!b||!v||v/Math.sqrt(g*g+b*b+v*v)>.999)&&(M="turntable")}else M="turntable";s("dragmode",M),s("hovermode",h.getDfltFromLayout("hovermode"))}}}),n0=De({"src/plots/gl3d/index.js"(Y){"use strict";var H=gc().overrideAll,p=Rv(),x=MI(),S=Lh().getSubplotData,E=ui(),e=Bd(),t="gl3d",r="scene";Y.name=t,Y.attr=r,Y.idRoot=r,Y.idRegex=Y.attrRegex=E.counterRegex("scene"),Y.attributes=EI(),Y.layoutAttributes=o5(),Y.baseLayoutAttrOverrides=H({hoverlabel:p.hoverlabel},"plot","nested"),Y.supplyLayoutDefaults=CI(),Y.plot=function(i){for(var n=i._fullLayout,a=i._fullData,s=n._subplots[t],h=0;h<s.length;h++){var c=s[h],m=S(a,t,c),d=n[c],T=d.camera,l=d._scene;l||(l=new x({id:c,graphDiv:i,container:i.querySelector(".gl-container"),staticPlot:i._context.staticPlot,plotGlPixelRatio:i._context.plotGlPixelRatio,camera:T},n),d._scene=l),l.viewInitial||(l.viewInitial={up:{x:T.up.x,y:T.up.y,z:T.up.z},eye:{x:T.eye.x,y:T.eye.y,z:T.eye.z},center:{x:T.center.x,y:T.center.y,z:T.center.z}}),l.plot(m,n,i.layout)}},Y.clean=function(o,i,n,a){for(var s=a._subplots[t]||[],h=0;h<s.length;h++){var c=s[h];!i[c]&&a[c]._scene&&(a[c]._scene.destroy(),a._infolayer&&a._infolayer.selectAll(".annotation-"+c).remove())}},Y.toSVG=function(o){for(var i=o._fullLayout,n=i._subplots[t],a=i._size,s=0;s<n.length;s++){var h=i[n[s]],c=h.domain,m=h._scene,d=m.toImage("png"),T=i._glimages.append("svg:image");T.attr({xmlns:e.svg,"xlink:href":d,x:a.l+a.w*c.x[0],y:a.t+a.h*(1-c.y[1]),width:a.w*(c.x[1]-c.x[0]),height:a.h*(c.y[1]-c.y[0]),preserveAspectRatio:"none"}),m.destroy()}},Y.cleanId=function(i){if(i.match(/^scene[0-9]*$/)){var n=i.slice(5);return n==="1"&&(n=""),r+n}},Y.updateFx=function(o){for(var i=o._fullLayout,n=i._subplots[t],a=0;a<n.length;a++){var s=i[n[a]]._scene;s.updateFx(i.dragmode,i.hovermode)}}}}),LI=De({"src/traces/scatter3d/index.js"(Y,H){"use strict";H.exports={plot:yI(),attributes:i5(),markerSymbols:rb(),supplyDefaults:_I(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:xI(),moduleType:"trace",name:"scatter3d",basePlotModule:n0(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}}}),II=De({"lib/scatter3d.js"(Y,H){"use strict";H.exports=LI()}}),Qy=De({"src/traces/surface/attributes.js"(Y,H){"use strict";var p=vo(),x=zu(),S=of().axisHoverFormat,{hovertemplateAttrs:E,templatefallbackAttrs:e}=ou(),t=Yl(),r=Xo().extendFlat,o=gc().overrideAll;function i(s){return{valType:"boolean",dflt:!1}}function n(s){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:i("x"),y:i("y"),z:i("z")},color:{valType:"color",dflt:p.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:p.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var a=H.exports=o(r({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:E(),hovertemplatefallback:e(),xhoverformat:S("x"),yhoverformat:S("y"),zhoverformat:S("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},x("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:n("x"),y:n("y"),z:n("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:r({},t.hoverinfo),showlegend:r({},t.showlegend,{dflt:!1})}),"calc","nested");a.x.editType=a.y.editType=a.z.editType="calc+clearAxisTypes"}}),s5=De({"src/traces/surface/defaults.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=dh(),E=Qy(),e=.1;function t(n,a){for(var s=[],h=32,c=0;c<h;c++){var m=c/(h-1),d=a+(1-a)*(1-Math.pow(Math.sin(n*m*Math.PI),2));s.push([m,Math.max(0,Math.min(1,d))])}return s}function r(n){var a=0;if(!Array.isArray(n)||n.length<2||!n[0]||!n[n.length-1]||+n[0][0]!=0||+n[n.length-1][0]!=1)return!1;for(var s=0;s<n.length;s++){var h=n[s];if(h.length!==2||+h[0]<a)return!1;a=+h[0]}return!0}function o(n,a,s,h){var c,m;function d(u,y){return x.coerce(n,a,E,u,y)}var T=d("x"),l=d("y"),_=d("z");if(!_||!_.length||T&&T.length<1||l&&l.length<1){a.visible=!1;return}a._xlength=Array.isArray(T)&&x.isArrayOrTypedArray(T[0])?_.length:_[0].length,a._ylength=_.length;var w=p.getComponentMethod("calendars","handleTraceDefaults");w(n,a,["x","y","z"],h),d("text"),d("hovertext"),d("hovertemplate"),d("hovertemplatefallback"),d("xhoverformat"),d("yhoverformat"),d("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(u){d(u)});var A=d("surfacecolor"),M=["x","y","z"];for(c=0;c<3;++c){var g="contours."+M[c],b=d(g+".show"),v=d(g+".highlight");if(b||v)for(m=0;m<3;++m)d(g+".project."+M[m]);b&&(d(g+".color"),d(g+".width"),d(g+".usecolormap")),v&&(d(g+".highlightcolor"),d(g+".highlightwidth")),d(g+".start"),d(g+".end"),d(g+".size")}S(n,a,h,d,{prefix:"",cLetter:"c"}),i(n,a,h,d),a._length=null}function i(n,a,s,h){var c=h("opacityscale");c==="max"?a.opacityscale=[[0,e],[1,1]]:c==="min"?a.opacityscale=[[0,1],[1,e]]:c==="extremes"?a.opacityscale=t(1,e):r(c)||(a.opacityscale=void 0)}H.exports={supplyDefaults:o,opacityscaleDefaults:i}}}),PI=De({"src/traces/surface/calc.js"(Y,H){"use strict";var p=Jh();H.exports=function(S,E){E.surfacecolor?p(S,E,{vals:E.surfacecolor,containerStr:"",cLetter:"c"}):p(S,E,{vals:E.z,containerStr:"",cLetter:"c"})}}}),RI=De({"src/traces/surface/convert.js"(Y,H){"use strict";var p=Dh().gl_surface3d,x=Dh().ndarray,S=Dh().ndarray_linear_interpolate.d2,E=J_(),e=Q_(),t=ui().isArrayOrTypedArray,r=mp().parseColorScale,o=pp(),i=oc().extractOpts;function n(y,f,R){this.scene=y,this.uid=R,this.surface=f,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var a=n.prototype;a.getXat=function(y,f,R,L){var z=t(this.data.x)?t(this.data.x[0])?this.data.x[f][y]:this.data.x[y]:y;return R===void 0?z:L.d2l(z,0,R)},a.getYat=function(y,f,R,L){var z=t(this.data.y)?t(this.data.y[0])?this.data.y[f][y]:this.data.y[f]:f;return R===void 0?z:L.d2l(z,0,R)},a.getZat=function(y,f,R,L){var z=this.data.z[f][y];return z===null&&this.data.connectgaps&&this.data._interpolatedZ&&(z=this.data._interpolatedZ[f][y]),R===void 0?z:L.d2l(z,0,R)},a.handlePick=function(y){if(y.object===this.surface){var f=(y.data.index[0]-1)/this.dataScaleX-1,R=(y.data.index[1]-1)/this.dataScaleY-1,L=Math.max(Math.min(Math.round(f),this.data.z[0].length-1),0),z=Math.max(Math.min(Math.round(R),this.data._ylength-1),0);y.index=[L,z],y.traceCoordinate=[this.getXat(L,z),this.getYat(L,z),this.getZat(L,z)],y.dataCoordinate=[this.getXat(L,z,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(L,z,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(L,z,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var F=0;F<3;F++){var N=y.dataCoordinate[F];N!=null&&(y.dataCoordinate[F]*=this.scene.dataScale[F])}var B=this.data.hovertext||this.data.text;return t(B)&&B[z]&&B[z][L]!==void 0?y.textLabel=B[z][L]:B?y.textLabel=B:y.textLabel="",y.data.dataCoordinate=y.dataCoordinate.slice(),this.surface.highlight(y.data),this.scene.glplot.spikes.position=y.dataCoordinate,!0}};function s(y){var f=y[0].rgb,R=y[y.length-1].rgb;return f[0]===R[0]&&f[1]===R[1]&&f[2]===R[2]&&f[3]===R[3]}var h=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function c(y,f){if(y<f)return 0;for(var R=0;Math.floor(y%f)===0;)y/=f,R++;return R}function m(y){for(var f=[],R=0;R<h.length;R++){var L=h[R];f.push(c(y,L))}return f}function d(y){for(var f=m(y),R=y,L=0;L<h.length;L++)if(f[L]>0){R=h[L];break}return R}function T(y,f){if(!(y<1||f<1)){for(var R=m(y),L=m(f),z=1,F=0;F<h.length;F++)z*=Math.pow(h[F],Math.max(R[F],L[F]));return z}}function l(y){if(y.length!==0){for(var f=1,R=0;R<y.length;R++)f=T(f,y[R]);return f}}a.calcXnums=function(y){var f,R=[];for(f=1;f<y;f++){var L=this.getXat(f-1,0),z=this.getXat(f,0);z!==L&&L!==void 0&&L!==null&&z!==void 0&&z!==null?R[f-1]=Math.abs(z-L):R[f-1]=0}var F=0;for(f=1;f<y;f++)F+=R[f-1];for(f=1;f<y;f++)R[f-1]===0?R[f-1]=1:R[f-1]=Math.round(F/R[f-1]);return R},a.calcYnums=function(y){var f,R=[];for(f=1;f<y;f++){var L=this.getYat(0,f-1),z=this.getYat(0,f);z!==L&&L!==void 0&&L!==null&&z!==void 0&&z!==null?R[f-1]=Math.abs(z-L):R[f-1]=0}var F=0;for(f=1;f<y;f++)F+=R[f-1];for(f=1;f<y;f++)R[f-1]===0?R[f-1]=1:R[f-1]=Math.round(F/R[f-1]);return R};var _=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],w=_[9],A=_[13];a.estimateScale=function(y,f){for(var R=f===0?this.calcXnums(y):this.calcYnums(y),L=1+l(R);L<w;)L*=2;for(;L>A;)L--,L/=d(L),L++,L<w&&(L=A);var z=Math.round(L/y);return z>1?z:1};function M(y,f,R){var L=R[8]+R[2]*f[0]+R[5]*f[1];return y[0]=(R[6]+R[0]*f[0]+R[3]*f[1])/L,y[1]=(R[7]+R[1]*f[0]+R[4]*f[1])/L,y}function g(y,f,R){return b(y,f,M,R),y}function b(y,f,R,L){for(var z=[0,0],F=y.shape[0],N=y.shape[1],B=0;B<F;B++)for(var I=0;I<N;I++)R(z,[B,I],L),y.set(B,I,S(f,z[0],z[1]));return y}a.refineCoords=function(y){for(var f=this.dataScaleX,R=this.dataScaleY,L=y[0].shape[0],z=y[0].shape[1],F=Math.floor(y[0].shape[0]*f+1)|0,N=Math.floor(y[0].shape[1]*R+1)|0,B=1+L+1,I=1+z+1,U=x(new Float32Array(B*I),[B,I]),O=[1/f,0,0,0,1/R,0,0,0,1],X=0;X<y.length;++X){this.surface.padField(U,y[X]);var J=x(new Float32Array(F*N),[F,N]);g(J,U,O),y[X]=J}};function v(y,f){for(var R=!1,L=0;L<y.length;L++)if(f===y[L]){R=!0;break}R===!1&&y.push(f)}a.setContourLevels=function(){var y=[[],[],[]],f=[!1,!1,!1],R=!1,L,z,F;for(L=0;L<3;++L)if(this.showContour[L]&&(R=!0,this.contourSize[L]>0&&this.contourStart[L]!==null&&this.contourEnd[L]!==null&&this.contourEnd[L]>this.contourStart[L]))for(f[L]=!0,z=this.contourStart[L];z<this.contourEnd[L];z+=this.contourSize[L])F=z*this.scene.dataScale[L],v(y[L],F);if(R){var N=[[],[],[]];for(L=0;L<3;++L)this.showContour[L]&&(N[L]=f[L]?y[L]:this.scene.contourLevels[L]);this.surface.update({levels:N})}},a.update=function(y){var f=this.scene,R=f.fullSceneLayout,L=this.surface,z=r(y),F=f.dataScale,N=y.z[0].length,B=y._ylength,I=f.contourLevels;this.data=y;var U,O,X,J,se=[];for(U=0;U<3;U++)for(se[U]=[],O=0;O<N;O++)se[U][O]=[];for(O=0;O<N;O++)for(X=0;X<B;X++)se[0][O][X]=this.getXat(O,X,y.xcalendar,R.xaxis),se[1][O][X]=this.getYat(O,X,y.ycalendar,R.yaxis),se[2][O][X]=this.getZat(O,X,y.zcalendar,R.zaxis);if(y.connectgaps)for(y._emptypoints=e(se[2]),E(se[2],y._emptypoints),y._interpolatedZ=[],O=0;O<N;O++)for(y._interpolatedZ[O]=[],X=0;X<B;X++)y._interpolatedZ[O][X]=se[2][O][X];for(U=0;U<3;U++)for(O=0;O<N;O++)for(X=0;X<B;X++)J=se[U][O][X],J==null?se[U][O][X]=NaN:J=se[U][O][X]*=F[U];for(U=0;U<3;U++)for(O=0;O<N;O++)for(X=0;X<B;X++)J=se[U][O][X],J!=null&&(this.minValues[U]>J&&(this.minValues[U]=J),this.maxValues[U]<J&&(this.maxValues[U]=J));for(U=0;U<3;U++)this.objectOffset[U]=.5*(this.minValues[U]+this.maxValues[U]);for(U=0;U<3;U++)for(O=0;O<N;O++)for(X=0;X<B;X++)J=se[U][O][X],J!=null&&(se[U][O][X]-=this.objectOffset[U]);var le=[x(new Float32Array(N*B),[N,B]),x(new Float32Array(N*B),[N,B]),x(new Float32Array(N*B),[N,B])];for(U=0;U<3;U++)for(O=0;O<N;O++)for(X=0;X<B;X++)le[U].set(O,X,se[U][O][X]);se=[];var ce={colormap:z,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!y.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:y.opacityscale,opacity:y.opacity},q=i(y);if(ce.intensityBounds=[q.min,q.max],y.surfacecolor){var Z=x(new Float32Array(N*B),[N,B]);for(O=0;O<N;O++)for(X=0;X<B;X++)Z.set(O,X,y.surfacecolor[X][O]);le.push(Z)}else ce.intensityBounds[0]*=F[2],ce.intensityBounds[1]*=F[2];(A<le[0].shape[0]||A<le[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(le[0].shape[0],0),this.dataScaleY=this.estimateScale(le[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(le)),y.surfacecolor&&(ce.intensity=le.pop());var ee=[!0,!0,!0],V=["x","y","z"];for(U=0;U<3;++U){var oe=y.contours[V[U]];ee[U]=oe.highlight,ce.showContour[U]=oe.show||oe.highlight,ce.showContour[U]&&(ce.contourProject[U]=[oe.project.x,oe.project.y,oe.project.z],oe.show?(this.showContour[U]=!0,ce.levels[U]=I[U],L.highlightColor[U]=ce.contourColor[U]=o(oe.color),oe.usecolormap?L.highlightTint[U]=ce.contourTint[U]=0:L.highlightTint[U]=ce.contourTint[U]=1,ce.contourWidth[U]=oe.width,this.contourStart[U]=oe.start,this.contourEnd[U]=oe.end,this.contourSize[U]=oe.size):(this.showContour[U]=!1,this.contourStart[U]=null,this.contourEnd[U]=null,this.contourSize[U]=0),oe.highlight&&(ce.dynamicColor[U]=o(oe.highlightcolor),ce.dynamicWidth[U]=oe.highlightwidth))}s(z)&&(ce.vertexColor=!0),ce.objectOffset=this.objectOffset,ce.coords=le,L.update(ce),L.visible=y.visible,L.enableDynamic=ee,L.enableHighlight=ee,L.snapToData=!0,"lighting"in y&&(L.ambientLight=y.lighting.ambient,L.diffuseLight=y.lighting.diffuse,L.specularLight=y.lighting.specular,L.roughness=y.lighting.roughness,L.fresnel=y.lighting.fresnel),"lightposition"in y&&(L.lightPosition=[y.lightposition.x,y.lightposition.y,y.lightposition.z])},a.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function u(y,f){var R=y.glplot.gl,L=p({gl:R}),z=new n(y,L,f.uid);return L._trace=z,z.update(f),y.glplot.add(L),z}H.exports=u}}),DI=De({"src/traces/surface/index.js"(Y,H){"use strict";H.exports={attributes:Qy(),supplyDefaults:s5().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:PI(),plot:RI(),moduleType:"trace",name:"surface",basePlotModule:n0(),categories:["gl3d","2dMap","showLegend"],meta:{}}}}),zI=De({"lib/surface.js"(Y,H){"use strict";H.exports=DI()}}),xg=De({"src/traces/mesh3d/attributes.js"(Y,H){"use strict";var p=zu(),x=of().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=ou(),e=Qy(),t=Yl(),r=Xo().extendFlat;H.exports=r({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:S({editType:"calc"}),hovertemplatefallback:E({editType:"calc"}),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},p("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:e.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:r({},e.contours.x.show,{}),color:e.contours.x.color,width:e.contours.x.width,editType:"calc"},lightposition:{x:r({},e.lightposition.x,{dflt:1e5}),y:r({},e.lightposition.y,{dflt:1e5}),z:r({},e.lightposition.z,{dflt:0}),editType:"calc"},lighting:r({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},e.lighting),hoverinfo:r({},t.hoverinfo,{editType:"calc"}),showlegend:r({},t.showlegend,{dflt:!1})})}}),ib=De({"src/traces/isosurface/attributes.js"(Y,H){"use strict";var p=zu(),x=of().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=ou(),e=xg(),t=Yl(),r=Xo().extendFlat,o=gc().overrideAll;function i(s){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function n(s){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var a=H.exports=o(r({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:i("x"),y:i("y"),z:i("z")},caps:{x:n("x"),y:n("y"),z:n("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:S(),hovertemplatefallback:E(),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),valuehoverformat:x("value",1),showlegend:r({},t.showlegend,{dflt:!1})},p("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:e.opacity,lightposition:e.lightposition,lighting:e.lighting,flatshading:e.flatshading,contour:e.contour,hoverinfo:r({},t.hoverinfo)}),"calc","nested");a.flatshading.dflt=!0,a.lighting.facenormalsepsilon.dflt=0,a.x.editType=a.y.editType=a.z.editType=a.value.editType="calc+clearAxisTypes"}}),l5=De({"src/traces/isosurface/defaults.js"(Y,H){"use strict";var p=ui(),x=Mo(),S=ib(),E=dh();function e(r,o,i,n){function a(s,h){return p.coerce(r,o,S,s,h)}t(r,o,i,n,a)}function t(r,o,i,n,a){var s=a("isomin"),h=a("isomax");h!=null&&s!==void 0&&s!==null&&s>h&&(o.isomin=null,o.isomax=null);var c=a("x"),m=a("y"),d=a("z"),T=a("value");if(!c||!c.length||!m||!m.length||!d||!d.length||!T||!T.length){o.visible=!1;return}var l=x.getComponentMethod("calendars","handleTraceDefaults");l(r,o,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(M){a(M+"hoverformat");var g="caps."+M,b=a(g+".show");b&&a(g+".fill");var v="slices."+M,u=a(v+".show");u&&(a(v+".fill"),a(v+".locations"))});var _=a("spaceframe.show");_&&a("spaceframe.fill");var w=a("surface.show");w&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var A=a("contour.show");A&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(M){a(M)}),E(r,o,n,a,{prefix:"",cLetter:"c"}),o._length=null}H.exports={supplyDefaults:e,supplyIsoDefaults:t}}}),ab=De({"src/traces/streamtube/calc.js"(Y,H){"use strict";var p=ui(),x=Jh();function S(r,o){o._len=Math.min(o.u.length,o.v.length,o.w.length,o.x.length,o.y.length,o.z.length),o._u=t(o.u,o._len),o._v=t(o.v,o._len),o._w=t(o.w,o._len),o._x=t(o.x,o._len),o._y=t(o.y,o._len),o._z=t(o.z,o._len);var i=E(o);o._gridFill=i.fill,o._Xs=i.Xs,o._Ys=i.Ys,o._Zs=i.Zs,o._len=i.len;var n=0,a,s,h;o.starts&&(a=t(o.starts.x||[]),s=t(o.starts.y||[]),h=t(o.starts.z||[]),n=Math.min(a.length,s.length,h.length)),o._startsX=a||[],o._startsY=s||[],o._startsZ=h||[];var c=0,m=1/0,d;for(d=0;d<o._len;d++){var T=o._u[d],l=o._v[d],_=o._w[d],w=Math.sqrt(T*T+l*l+_*_);c=Math.max(c,w),m=Math.min(m,w)}for(x(r,o,{vals:[m,c],containerStr:"",cLetter:"c"}),d=0;d<n;d++){var A=a[d];i.xMax=Math.max(i.xMax,A),i.xMin=Math.min(i.xMin,A);var M=s[d];i.yMax=Math.max(i.yMax,M),i.yMin=Math.min(i.yMin,M);var g=h[d];i.zMax=Math.max(i.zMax,g),i.zMin=Math.min(i.zMin,g)}o._slen=n,o._normMax=c,o._xbnds=[i.xMin,i.xMax],o._ybnds=[i.yMin,i.yMax],o._zbnds=[i.zMin,i.zMax]}function E(r){var o=r._x,i=r._y,n=r._z,a=r._len,s,h,c,m=-1/0,d=1/0,T=-1/0,l=1/0,_=-1/0,w=1/0,A="",M,g,b,v,u,y,f,R,L;for(a&&(v=o[0],y=i[0],R=n[0]),a>1&&(u=o[a-1],f=i[a-1],L=n[a-1]),s=0;s<a;s++)m=Math.max(m,o[s]),d=Math.min(d,o[s]),T=Math.max(T,i[s]),l=Math.min(l,i[s]),_=Math.max(_,n[s]),w=Math.min(w,n[s]),!M&&o[s]!==v&&(M=!0,A+="x"),!g&&i[s]!==y&&(g=!0,A+="y"),!b&&n[s]!==R&&(b=!0,A+="z");M||(A+="x"),g||(A+="y"),b||(A+="z");var z=e(r._x),F=e(r._y),N=e(r._z);A=A.replace("x",(v>u?"-":"+")+"x"),A=A.replace("y",(y>f?"-":"+")+"y"),A=A.replace("z",(R>L?"-":"+")+"z");var B=function(){a=0,z=[],F=[],N=[]};(!a||a<z.length*F.length*N.length)&&B();var I=function(_e){return _e==="x"?o:_e==="y"?i:n},U=function(_e){return _e==="x"?z:_e==="y"?F:N},O=function(_e){return _e[a-1]<_e[0]?-1:1},X=I(A[1]),J=I(A[3]),se=I(A[5]),le=U(A[1]).length,ce=U(A[3]).length,q=U(A[5]).length,Z=!1,ee=function(_e,we,Re){return le*(ce*_e+we)+Re},V=O(I(A[1])),oe=O(I(A[3])),ie=O(I(A[5]));for(s=0;s<q-1;s++){for(h=0;h<ce-1;h++){for(c=0;c<le-1;c++){var j=ee(s,h,c),Q=ee(s,h,c+1),re=ee(s,h+1,c),ue=ee(s+1,h,c);if((!(X[j]*V<X[Q]*V)||!(J[j]*oe<J[re]*oe)||!(se[j]*ie<se[ue]*ie))&&(Z=!0),Z)break}if(Z)break}if(Z)break}return Z&&(p.warn("Encountered arbitrary coordinates! Unable to input data grid."),B()),{xMin:d,yMin:l,zMin:w,xMax:m,yMax:T,zMax:_,Xs:z,Ys:F,Zs:N,len:a,fill:A}}function e(r){return p.distinctVals(r).vals}function t(r,o){if(o===void 0&&(o=r.length),p.isTypedArray(r))return r.subarray(0,o);for(var i=[],n=0;n<o;n++)i[n]=+r[n];return i}H.exports={calc:S,filter:t,processGrid:E}}}),u5=De({"src/traces/isosurface/calc.js"(Y,H){"use strict";var p=Jh(),x=ab().processGrid,S=ab().filter;H.exports=function(e,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=S(t.x,t._len),t._y=S(t.y,t._len),t._z=S(t.z,t._len),t._value=S(t.value,t._len);var r=x(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;for(var o=1/0,i=-1/0,n=0;n<t._len;n++){var a=t._value[n];o=Math.min(o,a),i=Math.max(i,a)}t._minValues=o,t._maxValues=i,t._vMin=t.isomin===void 0||t.isomin===null?o:t.isomin,t._vMax=t.isomax===void 0||t.isomax===null?i:t.isomax,p(e,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}}}),bg=De({"src/plots/gl3d/zip3.js"(Y,H){"use strict";H.exports=function(x,S,E,e){e=e||x.length;for(var t=new Array(e),r=0;r<e;r++)t[r]=[x[r],S[r],E[r]];return t}}}),nb=De({"src/traces/isosurface/convert.js"(Y,H){"use strict";var p=Dh().gl_mesh3d,x=mp().parseColorScale,S=ui().isArrayOrTypedArray,E=pp(),e=oc().extractOpts,t=bg(),r=function(h,c){for(var m=c.length-1;m>0;m--){var d=Math.min(c[m],c[m-1]),T=Math.max(c[m],c[m-1]);if(T>d&&d<h&&h<=T)return{id:m,distRatio:(T-h)/(T-d)}}return{id:0,distRatio:0}};function o(h,c,m){this.scene=h,this.uid=m,this.mesh=c,this.name="",this.data=null,this.showContour=!1}var i=o.prototype;i.handlePick=function(h){if(h.object===this.mesh){var c=h.data.index,m=this.data._meshX[c],d=this.data._meshY[c],T=this.data._meshZ[c],l=this.data._Ys.length,_=this.data._Zs.length,w=r(m,this.data._Xs).id,A=r(d,this.data._Ys).id,M=r(T,this.data._Zs).id,g=h.index=M+_*A+_*l*w;h.traceCoordinate=[this.data._meshX[g],this.data._meshY[g],this.data._meshZ[g],this.data._value[g]];var b=this.data.hovertext||this.data.text;return S(b)&&b[g]!==void 0?h.textLabel=b[g]:b&&(h.textLabel=b),!0}},i.update=function(h){var c=this.scene,m=c.fullSceneLayout;this.data=a(h);function d(A,M,g,b){return M.map(function(v){return A.d2l(v,0,b)*g})}var T=t(d(m.xaxis,h._meshX,c.dataScale[0],h.xcalendar),d(m.yaxis,h._meshY,c.dataScale[1],h.ycalendar),d(m.zaxis,h._meshZ,c.dataScale[2],h.zcalendar)),l=t(h._meshI,h._meshJ,h._meshK),_={positions:T,cells:l,lightPosition:[h.lightposition.x,h.lightposition.y,h.lightposition.z],ambient:h.lighting.ambient,diffuse:h.lighting.diffuse,specular:h.lighting.specular,roughness:h.lighting.roughness,fresnel:h.lighting.fresnel,vertexNormalsEpsilon:h.lighting.vertexnormalsepsilon,faceNormalsEpsilon:h.lighting.facenormalsepsilon,opacity:h.opacity,contourEnable:h.contour.show,contourColor:E(h.contour.color).slice(0,3),contourWidth:h.contour.width,useFacetNormals:h.flatshading},w=e(h);_.vertexIntensity=h._meshIntensity,_.vertexIntensityBounds=[w.min,w.max],_.colormap=x(h),this.mesh.update(_)},i.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var n=["xyz","xzy","yxz","yzx","zxy","zyx"];function a(h){h._meshI=[],h._meshJ=[],h._meshK=[];var c=h.surface.show,m=h.spaceframe.show,d=h.surface.fill,T=h.spaceframe.fill,l=!1,_=!1,w=0,A,M,g=h._Xs,b=h._Ys,v=h._Zs,u=g.length,y=b.length,f=v.length,R=n.indexOf(h._gridFill.replace(/-/g,"").replace(/\+/g,"")),L=function(xt,Ne,Ye){switch(R){case 5:return Ye+f*Ne+f*y*xt;case 4:return Ye+f*xt+f*u*Ne;case 3:return Ne+y*Ye+y*f*xt;case 2:return Ne+y*xt+y*u*Ye;case 1:return xt+u*Ye+u*f*Ne;default:return xt+u*Ne+u*y*Ye}},z=h._minValues,F=h._maxValues,N=h._vMin,B=h._vMax,I,U,O,X;function J(xt,Ne,Ye){for(var be=X.length,Ie=M;Ie<be;Ie++)if(xt===I[Ie]&&Ne===U[Ie]&&Ye===O[Ie])return Ie;return-1}function se(){M=A}function le(){I=[],U=[],O=[],X=[],A=0,se()}function ce(xt,Ne,Ye,be){return I.push(xt),U.push(Ne),O.push(Ye),X.push(be),A++,A-1}function q(xt,Ne,Ye){return h._meshI.push(xt),h._meshJ.push(Ne),h._meshK.push(Ye),w++,w-1}function Z(xt,Ne,Ye){for(var be=[],Ie=0;Ie<xt.length;Ie++)be[Ie]=(xt[Ie]+Ne[Ie]+Ye[Ie])/3;return be}function ee(xt,Ne,Ye){for(var be=[],Ie=0;Ie<xt.length;Ie++)be[Ie]=xt[Ie]*(1-Ye)+Ye*Ne[Ie];return be}var V;function oe(xt){V=xt}function ie(xt,Ne){var Ye=xt[0],be=xt[1],Ie=xt[2],qe=Z(Ye,be,Ie),ke=Math.sqrt(1-V),Me=ee(qe,Ye,ke),Le=ee(qe,be,ke),ut=ee(qe,Ie,ke),lt=Ne[0],gt=Ne[1],kt=Ne[2];return{xyzv:[[Ye,be,Le],[Le,Me,Ye],[be,Ie,ut],[ut,Le,be],[Ie,Ye,Me],[Me,ut,Ie]],abc:[[lt,gt,-1],[-1,-1,lt],[gt,kt,-1],[-1,-1,gt],[kt,lt,-1],[-1,-1,kt]]}}function j(xt,Ne){return xt==="all"||xt===null?!0:xt.indexOf(Ne)>-1}function Q(xt,Ne){return xt===null?Ne:xt}function re(xt,Ne,Ye){se();var be=[Ne],Ie=[Ye];if(V>=1)be=[Ne],Ie=[Ye];else if(V>0){var qe=ie(Ne,Ye);be=qe.xyzv,Ie=qe.abc}for(var ke=0;ke<be.length;ke++){Ne=be[ke],Ye=Ie[ke];for(var Me=[],Le=0;Le<3;Le++){var ut=Ne[Le][0],lt=Ne[Le][1],gt=Ne[Le][2],kt=Ne[Le][3],nr=Ye[Le]>-1?Ye[Le]:J(ut,lt,gt);nr>-1?Me[Le]=nr:Me[Le]=ce(ut,lt,gt,Q(xt,kt))}q(Me[0],Me[1],Me[2])}}function ue(xt,Ne,Ye){var be=function(Ie,qe,ke){re(xt,[Ne[Ie],Ne[qe],Ne[ke]],[Ye[Ie],Ye[qe],Ye[ke]])};be(0,1,2),be(2,3,0)}function _e(xt,Ne,Ye){var be=function(Ie,qe,ke){re(xt,[Ne[Ie],Ne[qe],Ne[ke]],[Ye[Ie],Ye[qe],Ye[ke]])};be(0,1,2),be(3,0,1),be(2,3,0),be(1,2,3)}function we(xt,Ne,Ye,be){var Ie=xt[3];Ie<Ye&&(Ie=Ye),Ie>be&&(Ie=be);for(var qe=(xt[3]-Ie)/(xt[3]-Ne[3]+1e-9),ke=[],Me=0;Me<4;Me++)ke[Me]=(1-qe)*xt[Me]+qe*Ne[Me];return ke}function Re(xt,Ne,Ye){return xt>=Ne&&xt<=Ye}function ze(xt){var Ne=.001*(B-N);return xt>=N-Ne&&xt<=B+Ne}function Xe(xt){for(var Ne=[],Ye=0;Ye<4;Ye++){var be=xt[Ye];Ne.push([h._x[be],h._y[be],h._z[be],h._value[be]])}return Ne}var tt=3;function it(xt,Ne,Ye,be,Ie,qe){qe||(qe=1),Ye=[-1,-1,-1];var ke=!1,Me=[Re(Ne[0][3],be,Ie),Re(Ne[1][3],be,Ie),Re(Ne[2][3],be,Ie)];if(!Me[0]&&!Me[1]&&!Me[2])return!1;var Le=function(lt,gt,kt){return ze(gt[0][3])&&ze(gt[1][3])&&ze(gt[2][3])?(re(lt,gt,kt),!0):qe<tt?it(lt,gt,kt,N,B,++qe):!1};if(Me[0]&&Me[1]&&Me[2])return Le(xt,Ne,Ye)||ke;var ut=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(lt){if(Me[lt[0]]&&Me[lt[1]]&&!Me[lt[2]]){var gt=Ne[lt[0]],kt=Ne[lt[1]],nr=Ne[lt[2]],ir=we(nr,gt,be,Ie),tr=we(nr,kt,be,Ie);ke=Le(xt,[tr,ir,gt],[-1,-1,Ye[lt[0]]])||ke,ke=Le(xt,[gt,kt,tr],[Ye[lt[0]],Ye[lt[1]],-1])||ke,ut=!0}}),ut||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(lt){if(Me[lt[0]]&&!Me[lt[1]]&&!Me[lt[2]]){var gt=Ne[lt[0]],kt=Ne[lt[1]],nr=Ne[lt[2]],ir=we(kt,gt,be,Ie),tr=we(nr,gt,be,Ie);ke=Le(xt,[tr,ir,gt],[-1,-1,Ye[lt[0]]])||ke,ut=!0}}),ke}function et(xt,Ne,Ye,be){var Ie=!1,qe=Xe(Ne),ke=[Re(qe[0][3],Ye,be),Re(qe[1][3],Ye,be),Re(qe[2][3],Ye,be),Re(qe[3][3],Ye,be)];if(!ke[0]&&!ke[1]&&!ke[2]&&!ke[3])return Ie;if(ke[0]&&ke[1]&&ke[2]&&ke[3])return _&&(Ie=_e(xt,qe,Ne)||Ie),Ie;var Me=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Le){if(ke[Le[0]]&&ke[Le[1]]&&ke[Le[2]]&&!ke[Le[3]]){var ut=qe[Le[0]],lt=qe[Le[1]],gt=qe[Le[2]],kt=qe[Le[3]];if(_)Ie=re(xt,[ut,lt,gt],[Ne[Le[0]],Ne[Le[1]],Ne[Le[2]]])||Ie;else{var nr=we(kt,ut,Ye,be),ir=we(kt,lt,Ye,be),tr=we(kt,gt,Ye,be);Ie=re(null,[nr,ir,tr],[-1,-1,-1])||Ie}Me=!0}}),Me||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Le){if(ke[Le[0]]&&ke[Le[1]]&&!ke[Le[2]]&&!ke[Le[3]]){var ut=qe[Le[0]],lt=qe[Le[1]],gt=qe[Le[2]],kt=qe[Le[3]],nr=we(gt,ut,Ye,be),ir=we(gt,lt,Ye,be),tr=we(kt,lt,Ye,be),Ir=we(kt,ut,Ye,be);_?(Ie=re(xt,[ut,Ir,nr],[Ne[Le[0]],-1,-1])||Ie,Ie=re(xt,[lt,ir,tr],[Ne[Le[1]],-1,-1])||Ie):Ie=ue(null,[nr,ir,tr,Ir],[-1,-1,-1,-1])||Ie,Me=!0}}),Me)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Le){if(ke[Le[0]]&&!ke[Le[1]]&&!ke[Le[2]]&&!ke[Le[3]]){var ut=qe[Le[0]],lt=qe[Le[1]],gt=qe[Le[2]],kt=qe[Le[3]],nr=we(lt,ut,Ye,be),ir=we(gt,ut,Ye,be),tr=we(kt,ut,Ye,be);_?(Ie=re(xt,[ut,nr,ir],[Ne[Le[0]],-1,-1])||Ie,Ie=re(xt,[ut,ir,tr],[Ne[Le[0]],-1,-1])||Ie,Ie=re(xt,[ut,tr,nr],[Ne[Le[0]],-1,-1])||Ie):Ie=re(null,[nr,ir,tr],[-1,-1,-1])||Ie,Me=!0}}),Ie}function nt(xt,Ne,Ye,be,Ie,qe,ke,Me,Le,ut,lt){var gt=!1;return l&&(j(xt,"A")&&(gt=et(null,[Ne,Ye,be,qe],ut,lt)||gt),j(xt,"B")&&(gt=et(null,[Ye,be,Ie,Le],ut,lt)||gt),j(xt,"C")&&(gt=et(null,[Ye,qe,ke,Le],ut,lt)||gt),j(xt,"D")&&(gt=et(null,[be,qe,Me,Le],ut,lt)||gt),j(xt,"E")&&(gt=et(null,[Ye,be,qe,Le],ut,lt)||gt)),_&&(gt=et(xt,[Ye,be,qe,Le],ut,lt)||gt),gt}function Ae(xt,Ne,Ye,be,Ie,qe,ke,Me){return[Me[0]===!0?!0:it(xt,Xe([Ne,Ye,be]),[Ne,Ye,be],qe,ke),Me[1]===!0?!0:it(xt,Xe([be,Ie,Ne]),[be,Ie,Ne],qe,ke)]}function me(xt,Ne,Ye,be,Ie,qe,ke,Me,Le){return Me?Ae(xt,Ne,Ye,Ie,be,qe,ke,Le):Ae(xt,Ye,Ie,be,Ne,qe,ke,Le)}function fe(xt,Ne,Ye,be,Ie,qe,ke){var Me=!1,Le,ut,lt,gt,kt=function(){Me=it(xt,[Le,ut,lt],[-1,-1,-1],Ie,qe)||Me,Me=it(xt,[lt,gt,Le],[-1,-1,-1],Ie,qe)||Me},nr=ke[0],ir=ke[1],tr=ke[2];return nr&&(Le=ee(Xe([L(Ne,Ye-0,be-0)])[0],Xe([L(Ne-1,Ye-0,be-0)])[0],nr),ut=ee(Xe([L(Ne,Ye-0,be-1)])[0],Xe([L(Ne-1,Ye-0,be-1)])[0],nr),lt=ee(Xe([L(Ne,Ye-1,be-1)])[0],Xe([L(Ne-1,Ye-1,be-1)])[0],nr),gt=ee(Xe([L(Ne,Ye-1,be-0)])[0],Xe([L(Ne-1,Ye-1,be-0)])[0],nr),kt()),ir&&(Le=ee(Xe([L(Ne-0,Ye,be-0)])[0],Xe([L(Ne-0,Ye-1,be-0)])[0],ir),ut=ee(Xe([L(Ne-0,Ye,be-1)])[0],Xe([L(Ne-0,Ye-1,be-1)])[0],ir),lt=ee(Xe([L(Ne-1,Ye,be-1)])[0],Xe([L(Ne-1,Ye-1,be-1)])[0],ir),gt=ee(Xe([L(Ne-1,Ye,be-0)])[0],Xe([L(Ne-1,Ye-1,be-0)])[0],ir),kt()),tr&&(Le=ee(Xe([L(Ne-0,Ye-0,be)])[0],Xe([L(Ne-0,Ye-0,be-1)])[0],tr),ut=ee(Xe([L(Ne-0,Ye-1,be)])[0],Xe([L(Ne-0,Ye-1,be-1)])[0],tr),lt=ee(Xe([L(Ne-1,Ye-1,be)])[0],Xe([L(Ne-1,Ye-1,be-1)])[0],tr),gt=ee(Xe([L(Ne-1,Ye-0,be)])[0],Xe([L(Ne-1,Ye-0,be-1)])[0],tr),kt()),Me}function Be(xt,Ne,Ye,be,Ie,qe,ke,Me,Le,ut,lt,gt){var kt=xt;return gt?(l&&xt==="even"&&(kt=null),nt(kt,Ne,Ye,be,Ie,qe,ke,Me,Le,ut,lt)):(l&&xt==="odd"&&(kt=null),nt(kt,Le,Me,ke,qe,Ie,be,Ye,Ne,ut,lt))}function Qe(xt,Ne,Ye,be,Ie){for(var qe=[],ke=0,Me=0;Me<Ne.length;Me++)for(var Le=Ne[Me],ut=1;ut<f;ut++)for(var lt=1;lt<y;lt++)qe.push(me(xt,L(Le,lt-1,ut-1),L(Le,lt-1,ut),L(Le,lt,ut-1),L(Le,lt,ut),Ye,be,(Le+lt+ut)%2,Ie&&Ie[ke]?Ie[ke]:[])),ke++;return qe}function at(xt,Ne,Ye,be,Ie){for(var qe=[],ke=0,Me=0;Me<Ne.length;Me++)for(var Le=Ne[Me],ut=1;ut<u;ut++)for(var lt=1;lt<f;lt++)qe.push(me(xt,L(ut-1,Le,lt-1),L(ut,Le,lt-1),L(ut-1,Le,lt),L(ut,Le,lt),Ye,be,(ut+Le+lt)%2,Ie&&Ie[ke]?Ie[ke]:[])),ke++;return qe}function $e(xt,Ne,Ye,be,Ie){for(var qe=[],ke=0,Me=0;Me<Ne.length;Me++)for(var Le=Ne[Me],ut=1;ut<y;ut++)for(var lt=1;lt<u;lt++)qe.push(me(xt,L(lt-1,ut-1,Le),L(lt-1,ut,Le),L(lt,ut-1,Le),L(lt,ut,Le),Ye,be,(lt+ut+Le)%2,Ie&&Ie[ke]?Ie[ke]:[])),ke++;return qe}function It(xt,Ne,Ye){for(var be=1;be<f;be++)for(var Ie=1;Ie<y;Ie++)for(var qe=1;qe<u;qe++)Be(xt,L(qe-1,Ie-1,be-1),L(qe-1,Ie-1,be),L(qe-1,Ie,be-1),L(qe-1,Ie,be),L(qe,Ie-1,be-1),L(qe,Ie-1,be),L(qe,Ie,be-1),L(qe,Ie,be),Ne,Ye,(qe+Ie+be)%2)}function Pt(xt,Ne,Ye){_=!0,It(xt,Ne,Ye),_=!1}function Vt(xt,Ne,Ye){l=!0,It(xt,Ne,Ye),l=!1}function Wt(xt,Ne,Ye,be,Ie,qe){for(var ke=[],Me=0,Le=0;Le<Ne.length;Le++)for(var ut=Ne[Le],lt=1;lt<f;lt++)for(var gt=1;gt<y;gt++)ke.push(fe(xt,ut,gt,lt,Ye,be,Ie[Le],qe&&qe[Me]?qe[Me]:[])),Me++;return ke}function Cr(xt,Ne,Ye,be,Ie,qe){for(var ke=[],Me=0,Le=0;Le<Ne.length;Le++)for(var ut=Ne[Le],lt=1;lt<u;lt++)for(var gt=1;gt<f;gt++)ke.push(fe(xt,lt,ut,gt,Ye,be,Ie[Le],qe&&qe[Me]?qe[Me]:[])),Me++;return ke}function yr(xt,Ne,Ye,be,Ie,qe){for(var ke=[],Me=0,Le=0;Le<Ne.length;Le++)for(var ut=Ne[Le],lt=1;lt<y;lt++)for(var gt=1;gt<u;gt++)ke.push(fe(xt,gt,lt,ut,Ye,be,Ie[Le],qe&&qe[Me]?qe[Me]:[])),Me++;return ke}function qr(xt,Ne){for(var Ye=[],be=xt;be<Ne;be++)Ye.push(be);return Ye}function Mr(){for(var xt=0;xt<u;xt++)for(var Ne=0;Ne<y;Ne++)for(var Ye=0;Ye<f;Ye++){var be=L(xt,Ne,Ye);ce(h._x[be],h._y[be],h._z[be],h._value[be])}}function Dr(){le(),Mr();var xt=null;if(m&&T&&(oe(T),Pt(xt,N,B)),c&&d){oe(d);for(var Ne=h.surface.pattern,Ye=h.surface.count,be=0;be<Ye;be++){var Ie=Ye===1?.5:be/(Ye-1),qe=(1-Ie)*N+Ie*B,ke=Math.abs(qe-z),Me=Math.abs(qe-F),Le=ke>Me?[z,qe]:[qe,F];Vt(Ne,Le[0],Le[1])}}var ut=[[Math.min(N,F),Math.max(N,F)],[Math.min(z,B),Math.max(z,B)]];["x","y","z"].forEach(function(lt){for(var gt=[],kt=0;kt<ut.length;kt++){var nr=0,ir=ut[kt][0],tr=ut[kt][1],Ir=h.slices[lt];if(Ir.show&&Ir.fill){oe(Ir.fill);var vi=[],Vi=[],Ui=[];if(Ir.locations.length)for(var Ki=0;Ki<Ir.locations.length;Ki++){var ea=r(Ir.locations[Ki],lt==="x"?g:lt==="y"?b:v);ea.distRatio===0?vi.push(ea.id):ea.id>0&&(Vi.push(ea.id),lt==="x"?Ui.push([ea.distRatio,0,0]):lt==="y"?Ui.push([0,ea.distRatio,0]):Ui.push([0,0,ea.distRatio]))}else lt==="x"?vi=qr(1,u-1):lt==="y"?vi=qr(1,y-1):vi=qr(1,f-1);Vi.length>0&&(lt==="x"?gt[nr]=Wt(xt,Vi,ir,tr,Ui,gt[nr]):lt==="y"?gt[nr]=Cr(xt,Vi,ir,tr,Ui,gt[nr]):gt[nr]=yr(xt,Vi,ir,tr,Ui,gt[nr]),nr++),vi.length>0&&(lt==="x"?gt[nr]=Qe(xt,vi,ir,tr,gt[nr]):lt==="y"?gt[nr]=at(xt,vi,ir,tr,gt[nr]):gt[nr]=$e(xt,vi,ir,tr,gt[nr]),nr++)}var Bi=h.caps[lt];Bi.show&&Bi.fill&&(oe(Bi.fill),lt==="x"?gt[nr]=Qe(xt,[0,u-1],ir,tr,gt[nr]):lt==="y"?gt[nr]=at(xt,[0,y-1],ir,tr,gt[nr]):gt[nr]=$e(xt,[0,f-1],ir,tr,gt[nr]),nr++)}}),w===0&&le(),h._meshX=I,h._meshY=U,h._meshZ=O,h._meshIntensity=X,h._Xs=g,h._Ys=b,h._Zs=v}return Dr(),h}function s(h,c){var m=h.glplot.gl,d=p({gl:m}),T=new o(h,d,c.uid);return d._trace=T,T.update(c),h.glplot.add(d),T}H.exports={findNearestOnAxis:r,generateIsoMeshes:a,createIsosurfaceTrace:s}}}),FI=De({"src/traces/isosurface/index.js"(Y,H){"use strict";H.exports={attributes:ib(),supplyDefaults:l5().supplyDefaults,calc:u5(),colorbar:{min:"cmin",max:"cmax"},plot:nb().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:n0(),categories:["gl3d","showLegend"],meta:{}}}}),BI=De({"lib/isosurface.js"(Y,H){"use strict";H.exports=FI()}}),c5=De({"src/traces/volume/attributes.js"(Y,H){"use strict";var p=zu(),x=ib(),S=Qy(),E=Yl(),e=Xo().extendFlat,t=gc().overrideAll,r=H.exports=t(e({x:x.x,y:x.y,z:x.z,value:x.value,isomin:x.isomin,isomax:x.isomax,surface:x.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:x.slices,caps:x.caps,text:x.text,hovertext:x.hovertext,xhoverformat:x.xhoverformat,yhoverformat:x.yhoverformat,zhoverformat:x.zhoverformat,valuehoverformat:x.valuehoverformat,hovertemplate:x.hovertemplate,hovertemplatefallback:x.hovertemplatefallback},p("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:x.colorbar,opacity:x.opacity,opacityscale:S.opacityscale,lightposition:x.lightposition,lighting:x.lighting,flatshading:x.flatshading,contour:x.contour,hoverinfo:e({},E.hoverinfo),showlegend:e({},E.showlegend,{dflt:!1})}),"calc","nested");r.x.editType=r.y.editType=r.z.editType=r.value.editType="calc+clearAxisTypes"}}),OI=De({"src/traces/volume/defaults.js"(Y,H){"use strict";var p=ui(),x=c5(),S=l5().supplyIsoDefaults,E=s5().opacityscaleDefaults;H.exports=function(t,r,o,i){function n(a,s){return p.coerce(t,r,x,a,s)}S(t,r,o,i,n),E(t,r,i,n)}}}),NI=De({"src/traces/volume/convert.js"(Y,H){"use strict";var p=Dh().gl_mesh3d,x=mp().parseColorScale,S=ui().isArrayOrTypedArray,E=pp(),e=oc().extractOpts,t=bg(),r=nb().findNearestOnAxis,o=nb().generateIsoMeshes;function i(s,h,c){this.scene=s,this.uid=c,this.mesh=h,this.name="",this.data=null,this.showContour=!1}var n=i.prototype;n.handlePick=function(s){if(s.object===this.mesh){var h=s.data.index,c=this.data._meshX[h],m=this.data._meshY[h],d=this.data._meshZ[h],T=this.data._Ys.length,l=this.data._Zs.length,_=r(c,this.data._Xs).id,w=r(m,this.data._Ys).id,A=r(d,this.data._Zs).id,M=s.index=A+l*w+l*T*_;s.traceCoordinate=[this.data._meshX[M],this.data._meshY[M],this.data._meshZ[M],this.data._value[M]];var g=this.data.hovertext||this.data.text;return S(g)&&g[M]!==void 0?s.textLabel=g[M]:g&&(s.textLabel=g),!0}},n.update=function(s){var h=this.scene,c=h.fullSceneLayout;this.data=o(s);function m(w,A,M,g){return A.map(function(b){return w.d2l(b,0,g)*M})}var d=t(m(c.xaxis,s._meshX,h.dataScale[0],s.xcalendar),m(c.yaxis,s._meshY,h.dataScale[1],s.ycalendar),m(c.zaxis,s._meshZ,h.dataScale[2],s.zcalendar)),T=t(s._meshI,s._meshJ,s._meshK),l={positions:d,cells:T,lightPosition:[s.lightposition.x,s.lightposition.y,s.lightposition.z],ambient:s.lighting.ambient,diffuse:s.lighting.diffuse,specular:s.lighting.specular,roughness:s.lighting.roughness,fresnel:s.lighting.fresnel,vertexNormalsEpsilon:s.lighting.vertexnormalsepsilon,faceNormalsEpsilon:s.lighting.facenormalsepsilon,opacity:s.opacity,opacityscale:s.opacityscale,contourEnable:s.contour.show,contourColor:E(s.contour.color).slice(0,3),contourWidth:s.contour.width,useFacetNormals:s.flatshading},_=e(s);l.vertexIntensity=s._meshIntensity,l.vertexIntensityBounds=[_.min,_.max],l.colormap=x(s),this.mesh.update(l)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function a(s,h){var c=s.glplot.gl,m=p({gl:c}),d=new i(s,m,h.uid);return m._trace=d,d.update(h),s.glplot.add(m),d}H.exports=a}}),UI=De({"src/traces/volume/index.js"(Y,H){"use strict";H.exports={attributes:c5(),supplyDefaults:OI(),calc:u5(),colorbar:{min:"cmin",max:"cmax"},plot:NI(),moduleType:"trace",name:"volume",basePlotModule:n0(),categories:["gl3d","showLegend"],meta:{}}}}),jI=De({"lib/volume.js"(Y,H){"use strict";H.exports=UI()}}),VI=De({"src/traces/mesh3d/defaults.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=dh(),E=xg();H.exports=function(t,r,o,i){function n(m,d){return x.coerce(t,r,E,m,d)}function a(m){var d=m.map(function(T){var l=n(T);return l&&x.isArrayOrTypedArray(l)?l:null});return d.every(function(T){return T&&T.length===d[0].length})&&d}var s=a(["x","y","z"]);if(!s){r.visible=!1;return}if(a(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var h=p.getComponentMethod("calendars","handleTraceDefaults");h(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(m){n(m)});var c=n("contour.show");c&&(n("contour.color"),n("contour.width")),"intensity"in t?(n("intensity"),n("intensitymode"),S(t,r,i,n,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?n("facecolor"):"vertexcolor"in t?n("vertexcolor"):n("color",o)),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),n("xhoverformat"),n("yhoverformat"),n("zhoverformat"),r._length=null}}}),qI=De({"src/traces/mesh3d/calc.js"(Y,H){"use strict";var p=Jh();H.exports=function(S,E){E.intensity&&p(S,E,{vals:E.intensity,containerStr:"",cLetter:"c"})}}}),HI=De({"src/traces/mesh3d/convert.js"(Y,H){"use strict";var p=Dh().gl_mesh3d,x=Dh().delaunay_triangulate,S=Dh().alpha_shape,E=Dh().convex_hull,e=mp().parseColorScale,t=ui().isArrayOrTypedArray,r=pp(),o=oc().extractOpts,i=bg();function n(l,_,w){this.scene=l,this.uid=w,this.mesh=_,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var a=n.prototype;a.handlePick=function(l){if(l.object===this.mesh){var _=l.index=l.data.index;l.data._cellCenter?l.traceCoordinate=l.data.dataCoordinate:l.traceCoordinate=[this.data.x[_],this.data.y[_],this.data.z[_]];var w=this.data.hovertext||this.data.text;return t(w)&&w[_]!==void 0?l.textLabel=w[_]:w&&(l.textLabel=w),!0}};function s(l){for(var _=[],w=l.length,A=0;A<w;A++)_[A]=r(l[A]);return _}function h(l,_,w,A){for(var M=[],g=_.length,b=0;b<g;b++)M[b]=l.d2l(_[b],0,A)*w;return M}function c(l){for(var _=[],w=l.length,A=0;A<w;A++)_[A]=Math.round(l[A]);return _}function m(l,_){for(var w=["x","y","z"].indexOf(l),A=[],M=_.length,g=0;g<M;g++)A[g]=[_[g][(w+1)%3],_[g][(w+2)%3]];return x(A)}function d(l,_){for(var w=l.length,A=0;A<w;A++)if(l[A]<=-.5||l[A]>=_-.5)return!1;return!0}a.update=function(l){var _=this.scene,w=_.fullSceneLayout;this.data=l;var A=l.x.length,M=i(h(w.xaxis,l.x,_.dataScale[0],l.xcalendar),h(w.yaxis,l.y,_.dataScale[1],l.ycalendar),h(w.zaxis,l.z,_.dataScale[2],l.zcalendar)),g;if(l.i&&l.j&&l.k){if(l.i.length!==l.j.length||l.j.length!==l.k.length||!d(l.i,A)||!d(l.j,A)||!d(l.k,A))return;g=i(c(l.i),c(l.j),c(l.k))}else l.alphahull===0?g=E(M):l.alphahull>0?g=S(l.alphahull,M):g=m(l.delaunayaxis,M);var b={positions:M,cells:g,lightPosition:[l.lightposition.x,l.lightposition.y,l.lightposition.z],ambient:l.lighting.ambient,diffuse:l.lighting.diffuse,specular:l.lighting.specular,roughness:l.lighting.roughness,fresnel:l.lighting.fresnel,vertexNormalsEpsilon:l.lighting.vertexnormalsepsilon,faceNormalsEpsilon:l.lighting.facenormalsepsilon,opacity:l.opacity,contourEnable:l.contour.show,contourColor:r(l.contour.color).slice(0,3),contourWidth:l.contour.width,useFacetNormals:l.flatshading};if(l.intensity){var v=o(l);this.color="#fff";var u=l.intensitymode;b[u+"Intensity"]=l.intensity,b[u+"IntensityBounds"]=[v.min,v.max],b.colormap=e(l)}else l.vertexcolor?(this.color=l.vertexcolor[0],b.vertexColors=s(l.vertexcolor)):l.facecolor?(this.color=l.facecolor[0],b.cellColors=s(l.facecolor)):(this.color=l.color,b.meshColor=r(l.color));this.mesh.update(b)},a.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(l,_){var w=l.glplot.gl,A=p({gl:w}),M=new n(l,A,_.uid);return A._trace=M,M.update(_),l.glplot.add(A),M}H.exports=T}}),GI=De({"src/traces/mesh3d/index.js"(Y,H){"use strict";H.exports={attributes:xg(),supplyDefaults:VI(),calc:qI(),colorbar:{min:"cmin",max:"cmax"},plot:HI(),moduleType:"trace",name:"mesh3d",basePlotModule:n0(),categories:["gl3d","showLegend"],meta:{}}}}),WI=De({"lib/mesh3d.js"(Y,H){"use strict";H.exports=GI()}}),f5=De({"src/traces/cone/attributes.js"(Y,H){"use strict";var p=zu(),x=of().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=ou(),e=xg(),t=Yl(),r=Xo().extendFlat,o={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:S({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:E({editType:"calc"}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:r({},t.showlegend,{dflt:!1})};r(o,p("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var i=["opacity","lightposition","lighting"];i.forEach(function(n){o[n]=e[n]}),o.hoverinfo=r({},t.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),H.exports=o}}),XI=De({"src/traces/cone/defaults.js"(Y,H){"use strict";var p=ui(),x=dh(),S=f5();H.exports=function(e,t,r,o){function i(T,l){return p.coerce(e,t,S,T,l)}var n=i("u"),a=i("v"),s=i("w"),h=i("x"),c=i("y"),m=i("z");if(!n||!n.length||!a||!a.length||!s||!s.length||!h||!h.length||!c||!c.length||!m||!m.length){t.visible=!1;return}var d=i("sizemode");i("sizeref",d==="raw"?1:.5),i("anchor"),i("lighting.ambient"),i("lighting.diffuse"),i("lighting.specular"),i("lighting.roughness"),i("lighting.fresnel"),i("lightposition.x"),i("lightposition.y"),i("lightposition.z"),x(e,t,o,i,{prefix:"",cLetter:"c"}),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("uhoverformat"),i("vhoverformat"),i("whoverformat"),i("xhoverformat"),i("yhoverformat"),i("zhoverformat"),t._length=null}}}),YI=De({"src/traces/cone/calc.js"(Y,H){"use strict";var p=Jh();H.exports=function(S,E){for(var e=E.u,t=E.v,r=E.w,o=Math.min(E.x.length,E.y.length,E.z.length,e.length,t.length,r.length),i=-1/0,n=1/0,a=0;a<o;a++){var s=e[a],h=t[a],c=r[a],m=Math.sqrt(s*s+h*h+c*c);i=Math.max(i,m),n=Math.min(n,m)}E._len=o,E._normMax=i,p(S,E,{vals:[n,i],containerStr:"",cLetter:"c"})}}}),ZI=De({"src/traces/cone/convert.js"(Y,H){"use strict";var p=Dh().gl_cone3d,x=Dh().gl_cone3d.createConeMesh,S=ui().simpleMap,E=mp().parseColorScale,e=oc().extractOpts,t=ui().isArrayOrTypedArray,r=bg();function o(m,d){this.scene=m,this.uid=d,this.mesh=null,this.data=null}var i=o.prototype;i.handlePick=function(m){if(m.object===this.mesh){var d=m.index=m.data.index,T=this.data.x[d],l=this.data.y[d],_=this.data.z[d],w=this.data.u[d],A=this.data.v[d],M=this.data.w[d];m.traceCoordinate=[T,l,_,w,A,M,Math.sqrt(w*w+A*A+M*M)];var g=this.data.hovertext||this.data.text;return t(g)&&g[d]!==void 0?m.textLabel=g[d]:g&&(m.textLabel=g),!0}};var n={xaxis:0,yaxis:1,zaxis:2},a={tip:1,tail:0,cm:.25,center:.5},s={tip:1,tail:1,cm:.75,center:.5};function h(m,d){var T=m.fullSceneLayout,l=m.dataScale,_={};function w(v,u){var y=T[u],f=l[n[u]];return S(v,function(R){return y.d2l(R)*f})}_.vectors=r(w(d.u,"xaxis"),w(d.v,"yaxis"),w(d.w,"zaxis"),d._len),_.positions=r(w(d.x,"xaxis"),w(d.y,"yaxis"),w(d.z,"zaxis"),d._len);var A=e(d);_.colormap=E(d),_.vertexIntensityBounds=[A.min/d._normMax,A.max/d._normMax],_.coneOffset=a[d.anchor];var M=d.sizemode;M==="scaled"?_.coneSize=d.sizeref||.5:M==="absolute"?_.coneSize=d.sizeref&&d._normMax?d.sizeref/d._normMax:.5:M==="raw"&&(_.coneSize=d.sizeref),_.coneSizemode=M;var g=p(_),b=d.lightposition;return g.lightPosition=[b.x,b.y,b.z],g.ambient=d.lighting.ambient,g.diffuse=d.lighting.diffuse,g.specular=d.lighting.specular,g.roughness=d.lighting.roughness,g.fresnel=d.lighting.fresnel,g.opacity=d.opacity,d._pad=s[d.anchor]*g.vectorScale*g.coneScale*d._normMax,g}i.update=function(m){this.data=m;var d=h(this.scene,m);this.mesh.update(d)},i.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function c(m,d){var T=m.glplot.gl,l=h(m,d),_=x(T,l),w=new o(m,d.uid);return w.mesh=_,w.data=d,_._trace=w,m.glplot.add(_),w}H.exports=c}}),KI=De({"src/traces/cone/index.js"(Y,H){"use strict";H.exports={moduleType:"trace",name:"cone",basePlotModule:n0(),categories:["gl3d","showLegend"],attributes:f5(),supplyDefaults:XI(),colorbar:{min:"cmin",max:"cmax"},calc:YI(),plot:ZI(),eventData:function(p,x){return p.norm=x.traceCoordinate[6],p},meta:{}}}}),$I=De({"lib/cone.js"(Y,H){"use strict";H.exports=KI()}}),h5=De({"src/traces/streamtube/attributes.js"(Y,H){"use strict";var p=zu(),x=of().axisHoverFormat,{hovertemplateAttrs:S,templatefallbackAttrs:E}=ou(),e=xg(),t=Yl(),r=Xo().extendFlat,o={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:S({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:E({editType:"calc"}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:r({},t.showlegend,{dflt:!1})};r(o,p("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var i=["opacity","lightposition","lighting"];i.forEach(function(n){o[n]=e[n]}),o.hoverinfo=r({},t.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),H.exports=o}}),JI=De({"src/traces/streamtube/defaults.js"(Y,H){"use strict";var p=ui(),x=dh(),S=h5();H.exports=function(e,t,r,o){function i(d,T){return p.coerce(e,t,S,d,T)}var n=i("u"),a=i("v"),s=i("w"),h=i("x"),c=i("y"),m=i("z");if(!n||!n.length||!a||!a.length||!s||!s.length||!h||!h.length||!c||!c.length||!m||!m.length){t.visible=!1;return}i("starts.x"),i("starts.y"),i("starts.z"),i("maxdisplayed"),i("sizeref"),i("lighting.ambient"),i("lighting.diffuse"),i("lighting.specular"),i("lighting.roughness"),i("lighting.fresnel"),i("lightposition.x"),i("lightposition.y"),i("lightposition.z"),x(e,t,o,i,{prefix:"",cLetter:"c"}),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("uhoverformat"),i("vhoverformat"),i("whoverformat"),i("xhoverformat"),i("yhoverformat"),i("zhoverformat"),t._length=null}}}),QI=De({"src/traces/streamtube/convert.js"(Y,H){"use strict";var p=Dh().gl_streamtube3d,x=p.createTubeMesh,S=ui(),E=mp().parseColorScale,e=oc().extractOpts,t=bg(),r={xaxis:0,yaxis:1,zaxis:2};function o(c,m){this.scene=c,this.uid=m,this.mesh=null,this.data=null}var i=o.prototype;i.handlePick=function(c){var m=this.scene.fullSceneLayout,d=this.scene.dataScale;function T(w,A){var M=m[A],g=d[r[A]];return M.l2c(w)/g}if(c.object===this.mesh){var l=c.data.position,_=c.data.velocity;return c.traceCoordinate=[T(l[0],"xaxis"),T(l[1],"yaxis"),T(l[2],"zaxis"),T(_[0],"xaxis"),T(_[1],"yaxis"),T(_[2],"zaxis"),c.data.intensity*this.data._normMax,c.data.divergence],c.textLabel=this.data.hovertext||this.data.text,!0}};function n(c){var m=c.length,d;return m>2?d=c.slice(1,m-1):m===2?d=[(c[0]+c[1])/2]:d=c,d}function a(c){var m=c.length;return m===1?[.5,.5]:[c[1]-c[0],c[m-1]-c[m-2]]}function s(c,m){var d=c.fullSceneLayout,T=c.dataScale,l=m._len,_={};function w(ce,q){var Z=d[q],ee=T[r[q]];return S.simpleMap(ce,function(V){return Z.d2l(V)*ee})}if(_.vectors=t(w(m._u,"xaxis"),w(m._v,"yaxis"),w(m._w,"zaxis"),l),!l)return{positions:[],cells:[]};var A=w(m._Xs,"xaxis"),M=w(m._Ys,"yaxis"),g=w(m._Zs,"zaxis");_.meshgrid=[A,M,g],_.gridFill=m._gridFill;var b=m._slen;if(b)_.startingPositions=t(w(m._startsX,"xaxis"),w(m._startsY,"yaxis"),w(m._startsZ,"zaxis"));else{for(var v=M[0],u=n(A),y=n(g),f=new Array(u.length*y.length),R=0,L=0;L<u.length;L++)for(var z=0;z<y.length;z++)f[R++]=[u[L],v,y[z]];_.startingPositions=f}_.colormap=E(m),_.tubeSize=m.sizeref,_.maxLength=m.maxdisplayed;var F=w(m._xbnds,"xaxis"),N=w(m._ybnds,"yaxis"),B=w(m._zbnds,"zaxis"),I=a(A),U=a(M),O=a(g),X=[[F[0]-I[0],N[0]-U[0],B[0]-O[0]],[F[1]+I[1],N[1]+U[1],B[1]+O[1]]],J=p(_,X),se=e(m);J.vertexIntensityBounds=[se.min/m._normMax,se.max/m._normMax];var le=m.lightposition;return J.lightPosition=[le.x,le.y,le.z],J.ambient=m.lighting.ambient,J.diffuse=m.lighting.diffuse,J.specular=m.lighting.specular,J.roughness=m.lighting.roughness,J.fresnel=m.lighting.fresnel,J.opacity=m.opacity,m._pad=J.tubeScale*m.sizeref*2,J}i.update=function(c){this.data=c;var m=s(this.scene,c);this.mesh.update(m)},i.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function h(c,m){var d=c.glplot.gl,T=s(c,m),l=x(d,T),_=new o(c,m.uid);return _.mesh=l,_.data=m,l._trace=_,c.glplot.add(l),_}H.exports=h}}),eP=De({"src/traces/streamtube/index.js"(Y,H){"use strict";H.exports={moduleType:"trace",name:"streamtube",basePlotModule:n0(),categories:["gl3d","showLegend"],attributes:h5(),supplyDefaults:JI(),colorbar:{min:"cmin",max:"cmax"},calc:ab().calc,plot:QI(),eventData:function(p,x){return p.tubex=p.x,p.tubey=p.y,p.tubez=p.z,p.tubeu=x.traceCoordinate[3],p.tubev=x.traceCoordinate[4],p.tubew=x.traceCoordinate[5],p.norm=x.traceCoordinate[6],p.divergence=x.traceCoordinate[7],delete p.x,delete p.y,delete p.z,p},meta:{}}}}),tP=De({"lib/streamtube.js"(Y,H){"use strict";H.exports=eP()}}),om=De({"src/traces/scattergeo/attributes.js"(Y,H){"use strict";var{hovertemplateAttrs:p,texttemplateAttrs:x,templatefallbackAttrs:S}=ou(),E=vv(),e=lf(),t=Yl(),r=zu(),o=Ch().dash,i=Xo().extendFlat,n=gc().overrideAll,a=e.marker,s=e.line,h=a.line,c=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");H.exports=n({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:i({},e.mode,{dflt:"markers"}),text:i({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:S({editType:"plot"}),hovertext:i({},e.hovertext,{}),textfont:e.textfont,textposition:e.textposition,line:{color:s.color,width:s.width,dash:o},connectgaps:e.connectgaps,marker:i({symbol:a.symbol,opacity:a.opacity,angle:a.angle,angleref:i({},a.angleref,{values:["previous","up","north"]}),standoff:a.standoff,size:a.size,sizeref:a.sizeref,sizemin:a.sizemin,sizemode:a.sizemode,colorbar:a.colorbar,line:i({width:h.width,dash:h.dash},r("marker.line")),gradient:a.gradient},r("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:E(),selected:e.selected,unselected:e.unselected,hoverinfo:i({},t.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:p(),hovertemplatefallback:S()},"calc","nested")}}),rP=De({"src/traces/scattergeo/defaults.js"(Y,H){"use strict";var p=ui(),x=Hu(),S=Od(),E=Wd(),e=Xd(),t=mv(),r=om(),o=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");H.exports=function(n,a,s,h){function c(M,g){return p.coerce(n,a,r,M,g)}var m=c("locations"),d;if(m&&m.length){var T=c("geojson"),l;(typeof T=="string"&&T!==""||p.isPlainObject(T))&&(l="geojson-id");var _=c("locationmode",l);_==="country names"&&p.warn(o),_==="geojson-id"&&c("featureidkey"),d=m.length}else{var w=c("lon")||[],A=c("lat")||[];d=Math.min(w.length,A.length)}if(!d){a.visible=!1;return}a._length=d,c("text"),c("hovertext"),c("hovertemplate"),c("hovertemplatefallback"),c("mode"),x.hasMarkers(a)&&S(n,a,s,h,c,{gradient:!0}),x.hasLines(a)&&(E(n,a,s,h,c),c("connectgaps")),x.hasText(a)&&(c("texttemplate"),c("texttemplatefallback"),e(n,a,h,c)),c("fill"),a.fill!=="none"&&t(n,a,s,c),p.coerceSelectionMarkerOpacity(a,c)}}}),iP=De({"src/traces/scattergeo/format_labels.js"(Y,H){"use strict";var p=us();H.exports=function(S,E,e){var t={},r=e[E.geo]._subplot,o=r.mockAxis,i=S.lonlat;return t.lonLabel=p.tickText(o,o.c2l(i[0]),!0).text,t.latLabel=p.tickText(o,o.c2l(i[1]),!0).text,t}}}),ob=De({"src/traces/scattergeo/calc.js"(Y,H){"use strict";var p=vn(),x=zn().BADNUM,S=Yd(),E=Fv(),e=Zd(),t=ui().isArrayOrTypedArray,r=ui()._;function o(i){return i&&typeof i=="string"}H.exports=function(n,a){var s=t(a.locations),h=s?a.locations.length:a._length,c=new Array(h),m;a.geojson?m=function(A){return o(A)||p(A)}:m=o;for(var d=0;d<h;d++){var T=c[d]={};if(s){var l=a.locations[d];T.loc=m(l)?l:null}else{var _=a.lon[d],w=a.lat[d];p(_)&&p(w)?T.lonlat=[+_,+w]:T.lonlat=[x,x]}}return E(c,a),S(n,a),e(c,a),h&&(c[0].t={labels:{lat:r(n,"lat:")+" ",lon:r(n,"lon:")+" "}}),c}}}),e1=De({"src/plots/geo/constants.js"(Y){"use strict";Y.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Y.axesNames=["lonaxis","lataxis"],Y.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Y.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},Y.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},Y.clipPad=.001,Y.precision=.1,Y.landColor="#F0DC82",Y.waterColor="#3399FF",Y.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},Y.sphereSVG={type:"Sphere"},Y.fillLayers={ocean:1,land:1,lakes:1},Y.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Y.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Y.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],Y.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}}}),d5=De({"node_modules/topojson-client/dist/topojson-client.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y):(p=p||self,x(p.topojson=p.topojson||{}))})(Y,function(p){"use strict";function x(w){return w}function S(w){if(w==null)return x;var A,M,g=w.scale[0],b=w.scale[1],v=w.translate[0],u=w.translate[1];return function(y,f){f||(A=M=0);var R=2,L=y.length,z=new Array(L);for(z[0]=(A+=y[0])*g+v,z[1]=(M+=y[1])*b+u;R<L;)z[R]=y[R],++R;return z}}function E(w){var A=S(w.transform),M,g=1/0,b=g,v=-g,u=-g;function y(R){R=A(R),R[0]<g&&(g=R[0]),R[0]>v&&(v=R[0]),R[1]<b&&(b=R[1]),R[1]>u&&(u=R[1])}function f(R){switch(R.type){case"GeometryCollection":R.geometries.forEach(f);break;case"Point":y(R.coordinates);break;case"MultiPoint":R.coordinates.forEach(y);break}}w.arcs.forEach(function(R){for(var L=-1,z=R.length,F;++L<z;)F=A(R[L],L),F[0]<g&&(g=F[0]),F[0]>v&&(v=F[0]),F[1]<b&&(b=F[1]),F[1]>u&&(u=F[1])});for(M in w.objects)f(w.objects[M]);return[g,b,v,u]}function e(w,A){for(var M,g=w.length,b=g-A;b<--g;)M=w[b],w[b++]=w[g],w[g]=M}function t(w,A){return typeof A=="string"&&(A=w.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(M){return r(w,M)})}:r(w,A)}function r(w,A){var M=A.id,g=A.bbox,b=A.properties==null?{}:A.properties,v=o(w,A);return M==null&&g==null?{type:"Feature",properties:b,geometry:v}:g==null?{type:"Feature",id:M,properties:b,geometry:v}:{type:"Feature",id:M,bbox:g,properties:b,geometry:v}}function o(w,A){var M=S(w.transform),g=w.arcs;function b(L,z){z.length&&z.pop();for(var F=g[L<0?~L:L],N=0,B=F.length;N<B;++N)z.push(M(F[N],N));L<0&&e(z,B)}function v(L){return M(L)}function u(L){for(var z=[],F=0,N=L.length;F<N;++F)b(L[F],z);return z.length<2&&z.push(z[0]),z}function y(L){for(var z=u(L);z.length<4;)z.push(z[0]);return z}function f(L){return L.map(y)}function R(L){var z=L.type,F;switch(z){case"GeometryCollection":return{type:z,geometries:L.geometries.map(R)};case"Point":F=v(L.coordinates);break;case"MultiPoint":F=L.coordinates.map(v);break;case"LineString":F=u(L.arcs);break;case"MultiLineString":F=L.arcs.map(u);break;case"Polygon":F=f(L.arcs);break;case"MultiPolygon":F=L.arcs.map(f);break;default:return null}return{type:z,coordinates:F}}return R(A)}function i(w,A){var M={},g={},b={},v=[],u=-1;A.forEach(function(R,L){var z=w.arcs[R<0?~R:R],F;z.length<3&&!z[1][0]&&!z[1][1]&&(F=A[++u],A[u]=R,A[L]=F)}),A.forEach(function(R){var L=y(R),z=L[0],F=L[1],N,B;if(N=b[z])if(delete b[N.end],N.push(R),N.end=F,B=g[F]){delete g[B.start];var I=B===N?N:N.concat(B);g[I.start=N.start]=b[I.end=B.end]=I}else g[N.start]=b[N.end]=N;else if(N=g[F])if(delete g[N.start],N.unshift(R),N.start=z,B=b[z]){delete b[B.end];var U=B===N?N:B.concat(N);g[U.start=B.start]=b[U.end=N.end]=U}else g[N.start]=b[N.end]=N;else N=[R],g[N.start=z]=b[N.end=F]=N});function y(R){var L=w.arcs[R<0?~R:R],z=L[0],F;return w.transform?(F=[0,0],L.forEach(function(N){F[0]+=N[0],F[1]+=N[1]})):F=L[L.length-1],R<0?[F,z]:[z,F]}function f(R,L){for(var z in R){var F=R[z];delete L[F.start],delete F.start,delete F.end,F.forEach(function(N){M[N<0?~N:N]=1}),v.push(F)}}return f(b,g),f(g,b),A.forEach(function(R){M[R<0?~R:R]||v.push([R])}),v}function n(w){return o(w,a.apply(this,arguments))}function a(w,A,M){var g,b,v;if(arguments.length>1)g=s(w,A,M);else for(b=0,g=new Array(v=w.arcs.length);b<v;++b)g[b]=b;return{type:"MultiLineString",arcs:i(w,g)}}function s(w,A,M){var g=[],b=[],v;function u(z){var F=z<0?~z:z;(b[F]||(b[F]=[])).push({i:z,g:v})}function y(z){z.forEach(u)}function f(z){z.forEach(y)}function R(z){z.forEach(f)}function L(z){switch(v=z,z.type){case"GeometryCollection":z.geometries.forEach(L);break;case"LineString":y(z.arcs);break;case"MultiLineString":case"Polygon":f(z.arcs);break;case"MultiPolygon":R(z.arcs);break}}return L(A),b.forEach(M==null?function(z){g.push(z[0].i)}:function(z){M(z[0].g,z[z.length-1].g)&&g.push(z[0].i)}),g}function h(w){for(var A=-1,M=w.length,g,b=w[M-1],v=0;++A<M;)g=b,b=w[A],v+=g[0]*b[1]-g[1]*b[0];return Math.abs(v)}function c(w){return o(w,m.apply(this,arguments))}function m(w,A){var M={},g=[],b=[];A.forEach(v);function v(f){switch(f.type){case"GeometryCollection":f.geometries.forEach(v);break;case"Polygon":u(f.arcs);break;case"MultiPolygon":f.arcs.forEach(u);break}}function u(f){f.forEach(function(R){R.forEach(function(L){(M[L=L<0?~L:L]||(M[L]=[])).push(f)})}),g.push(f)}function y(f){return h(o(w,{type:"Polygon",arcs:[f]}).coordinates[0])}return g.forEach(function(f){if(!f._){var R=[],L=[f];for(f._=1,b.push(R);f=L.pop();)R.push(f),f.forEach(function(z){z.forEach(function(F){M[F<0?~F:F].forEach(function(N){N._||(N._=1,L.push(N))})})})}}),g.forEach(function(f){delete f._}),{type:"MultiPolygon",arcs:b.map(function(f){var R=[],L;if(f.forEach(function(I){I.forEach(function(U){U.forEach(function(O){M[O<0?~O:O].length<2&&R.push(O)})})}),R=i(w,R),(L=R.length)>1)for(var z=1,F=y(R[0]),N,B;z<L;++z)(N=y(R[z]))>F&&(B=R[0],R[0]=R[z],R[z]=B,F=N);return R}).filter(function(f){return f.length>0})}}function d(w,A){for(var M=0,g=w.length;M<g;){var b=M+g>>>1;w[b]<A?M=b+1:g=b}return M}function T(w){var A={},M=w.map(function(){return[]});function g(I,U){I.forEach(function(O){O<0&&(O=~O);var X=A[O];X?X.push(U):A[O]=[U]})}function b(I,U){I.forEach(function(O){g(O,U)})}function v(I,U){I.type==="GeometryCollection"?I.geometries.forEach(function(O){v(O,U)}):I.type in u&&u[I.type](I.arcs,U)}var u={LineString:g,MultiLineString:b,Polygon:b,MultiPolygon:function(I,U){I.forEach(function(O){b(O,U)})}};w.forEach(v);for(var y in A)for(var f=A[y],R=f.length,L=0;L<R;++L)for(var z=L+1;z<R;++z){var F=f[L],N=f[z],B;(B=M[F])[y=d(B,N)]!==N&&B.splice(y,0,N),(B=M[N])[y=d(B,F)]!==F&&B.splice(y,0,F)}return M}function l(w){if(w==null)return x;var A,M,g=w.scale[0],b=w.scale[1],v=w.translate[0],u=w.translate[1];return function(y,f){f||(A=M=0);var R=2,L=y.length,z=new Array(L),F=Math.round((y[0]-v)/g),N=Math.round((y[1]-u)/b);for(z[0]=F-A,A=F,z[1]=N-M,M=N;R<L;)z[R]=y[R],++R;return z}}function _(w,A){if(w.transform)throw new Error("already quantized");if(!A||!A.scale){if(!((u=Math.floor(A))>=2))throw new Error("n must be \u22652");f=w.bbox||E(w);var M=f[0],g=f[1],b=f[2],v=f[3],u;A={scale:[b-M?(b-M)/(u-1):1,v-g?(v-g)/(u-1):1],translate:[M,g]}}else f=w.bbox;var y=l(A),f,R,L=w.objects,z={};function F(I){return y(I)}function N(I){var U;switch(I.type){case"GeometryCollection":U={type:"GeometryCollection",geometries:I.geometries.map(N)};break;case"Point":U={type:"Point",coordinates:F(I.coordinates)};break;case"MultiPoint":U={type:"MultiPoint",coordinates:I.coordinates.map(F)};break;default:return I}return I.id!=null&&(U.id=I.id),I.bbox!=null&&(U.bbox=I.bbox),I.properties!=null&&(U.properties=I.properties),U}function B(I){var U=0,O=1,X=I.length,J,se=new Array(X);for(se[0]=y(I[0],0);++U<X;)((J=y(I[U],U))[0]||J[1])&&(se[O++]=J);return O===1&&(se[O++]=[0,0]),se.length=O,se}for(R in L)z[R]=N(L[R]);return{type:"Topology",bbox:f,transform:A,objects:z,arcs:w.arcs.map(B)}}p.bbox=E,p.feature=t,p.merge=c,p.mergeArcs=m,p.mesh=n,p.meshArcs=a,p.neighbors=T,p.quantize=_,p.transform=S,p.untransform=l,Object.defineProperty(p,"__esModule",{value:!0})})}}),sb=De({"src/lib/topojson_utils.js"(Y,H){"use strict";var p=H.exports={},x=e1().locationmodeToLayer,S=d5().feature;p.getTopojsonName=function(E){return[E.scope.replace(/ /g,"-"),"_",E.resolution.toString(),"m"].join("")},p.getTopojsonPath=function(E,e){return E+=E.endsWith("/")?"":"/",`${E}${e}.json`},p.getTopojsonFeatures=function(E,e){var t=x[E.locationmode],r=e.objects[t];return S(e,r).features}}}),o0=De({"src/lib/geojson_utils.js"(Y){"use strict";var H=zn().BADNUM;Y.calcTraceToLineCoords=function(p){for(var x=p[0].trace,S=x.connectgaps,E=[],e=[],t=0;t<p.length;t++){var r=p[t],o=r.lonlat;o[0]!==H?e.push(o):!S&&e.length>0&&(E.push(e),e=[])}return e.length>0&&E.push(e),E},Y.makeLine=function(p){return p.length===1?{type:"LineString",coordinates:p[0]}:{type:"MultiLineString",coordinates:p}},Y.makePolygon=function(p){if(p.length===1)return{type:"Polygon",coordinates:p};for(var x=new Array(p.length),S=0;S<p.length;S++)x[S]=[p[S]];return{type:"MultiPolygon",coordinates:x}},Y.makeBlank=function(){return{type:"Point",coordinates:[]}}}}),aP=De({"node_modules/country-regex/index.js"(Y,H){H.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}}}),lb=De({"node_modules/@turf/helpers/dist/cjs/index.cjs"(Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var H=63710088e-1,p={centimeters:H*100,centimetres:H*100,degrees:360/(2*Math.PI),feet:H*3.28084,inches:H*39.37,kilometers:H/1e3,kilometres:H/1e3,meters:H,metres:H,miles:H/1609.344,millimeters:H*1e3,millimetres:H*1e3,nauticalmiles:H/1852,radians:1,yards:H*1.0936},x={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function S(L,z,F={}){let N={type:"Feature"};return(F.id===0||F.id)&&(N.id=F.id),F.bbox&&(N.bbox=F.bbox),N.properties=z||{},N.geometry=L,N}function E(L,z,F={}){switch(L){case"Point":return e(z).geometry;case"LineString":return i(z).geometry;case"Polygon":return r(z).geometry;case"MultiPoint":return h(z).geometry;case"MultiLineString":return s(z).geometry;case"MultiPolygon":return c(z).geometry;default:throw new Error(L+" is invalid")}}function e(L,z,F={}){if(!L)throw new Error("coordinates is required");if(!Array.isArray(L))throw new Error("coordinates must be an Array");if(L.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!u(L[0])||!u(L[1]))throw new Error("coordinates must contain numbers");return S({type:"Point",coordinates:L},z,F)}function t(L,z,F={}){return a(L.map(N=>e(N,z)),F)}function r(L,z,F={}){for(let B of L){if(B.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(B[B.length-1].length!==B[0].length)throw new Error("First and last Position are not equivalent.");for(let I=0;I<B[B.length-1].length;I++)if(B[B.length-1][I]!==B[0][I])throw new Error("First and last Position are not equivalent.")}return S({type:"Polygon",coordinates:L},z,F)}function o(L,z,F={}){return a(L.map(N=>r(N,z)),F)}function i(L,z,F={}){if(L.length<2)throw new Error("coordinates must be an array of two or more positions");return S({type:"LineString",coordinates:L},z,F)}function n(L,z,F={}){return a(L.map(N=>i(N,z)),F)}function a(L,z={}){let F={type:"FeatureCollection"};return z.id&&(F.id=z.id),z.bbox&&(F.bbox=z.bbox),F.features=L,F}function s(L,z,F={}){return S({type:"MultiLineString",coordinates:L},z,F)}function h(L,z,F={}){return S({type:"MultiPoint",coordinates:L},z,F)}function c(L,z,F={}){return S({type:"MultiPolygon",coordinates:L},z,F)}function m(L,z,F={}){return S({type:"GeometryCollection",geometries:L},z,F)}function d(L,z=0){if(z&&!(z>=0))throw new Error("precision must be a positive number");let F=Math.pow(10,z||0);return Math.round(L*F)/F}function T(L,z="kilometers"){let F=p[z];if(!F)throw new Error(z+" units is invalid");return L*F}function l(L,z="kilometers"){let F=p[z];if(!F)throw new Error(z+" units is invalid");return L/F}function _(L,z){return M(l(L,z))}function w(L){let z=L%360;return z<0&&(z+=360),z}function A(L){return L=L%360,L>180?L-360:L<-180?L+360:L}function M(L){return L%(2*Math.PI)*180/Math.PI}function g(L){return L%360*Math.PI/180}function b(L,z="kilometers",F="kilometers"){if(!(L>=0))throw new Error("length must be a positive number");return T(l(L,z),F)}function v(L,z="meters",F="kilometers"){if(!(L>=0))throw new Error("area must be a positive number");let N=x[z];if(!N)throw new Error("invalid original units");let B=x[F];if(!B)throw new Error("invalid final units");return L/N*B}function u(L){return!isNaN(L)&&L!==null&&!Array.isArray(L)}function y(L){return L!==null&&typeof L=="object"&&!Array.isArray(L)}function f(L){if(!L)throw new Error("bbox is required");if(!Array.isArray(L))throw new Error("bbox must be an Array");if(L.length!==4&&L.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");L.forEach(z=>{if(!u(z))throw new Error("bbox must only contain numbers")})}function R(L){if(!L)throw new Error("id is required");if(["string","number"].indexOf(typeof L)===-1)throw new Error("id must be a number or a string")}Y.areaFactors=x,Y.azimuthToBearing=A,Y.bearingToAzimuth=w,Y.convertArea=v,Y.convertLength=b,Y.degreesToRadians=g,Y.earthRadius=H,Y.factors=p,Y.feature=S,Y.featureCollection=a,Y.geometry=E,Y.geometryCollection=m,Y.isNumber=u,Y.isObject=y,Y.lengthToDegrees=_,Y.lengthToRadians=l,Y.lineString=i,Y.lineStrings=n,Y.multiLineString=s,Y.multiPoint=h,Y.multiPolygon=c,Y.point=e,Y.points=t,Y.polygon=r,Y.polygons=o,Y.radiansToDegrees=M,Y.radiansToLength=T,Y.round=d,Y.validateBBox=f,Y.validateId=R}}),ub=De({"node_modules/@turf/meta/dist/cjs/index.cjs"(Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var H=lb();function p(l,_,w){if(l!==null)for(var A,M,g,b,v,u,y,f=0,R=0,L,z=l.type,F=z==="FeatureCollection",N=z==="Feature",B=F?l.features.length:1,I=0;I<B;I++){y=F?l.features[I].geometry:N?l.geometry:l,L=y?y.type==="GeometryCollection":!1,v=L?y.geometries.length:1;for(var U=0;U<v;U++){var O=0,X=0;if(b=L?y.geometries[U]:y,b!==null){u=b.coordinates;var J=b.type;switch(f=w&&(J==="Polygon"||J==="MultiPolygon")?1:0,J){case null:break;case"Point":if(_(u,R,I,O,X)===!1)return!1;R++,O++;break;case"LineString":case"MultiPoint":for(A=0;A<u.length;A++){if(_(u[A],R,I,O,X)===!1)return!1;R++,J==="MultiPoint"&&O++}J==="LineString"&&O++;break;case"Polygon":case"MultiLineString":for(A=0;A<u.length;A++){for(M=0;M<u[A].length-f;M++){if(_(u[A][M],R,I,O,X)===!1)return!1;R++}J==="MultiLineString"&&O++,J==="Polygon"&&X++}J==="Polygon"&&O++;break;case"MultiPolygon":for(A=0;A<u.length;A++){for(X=0,M=0;M<u[A].length;M++){for(g=0;g<u[A][M].length-f;g++){if(_(u[A][M][g],R,I,O,X)===!1)return!1;R++}X++}O++}break;case"GeometryCollection":for(A=0;A<b.geometries.length;A++)if(p(b.geometries[A],_,w)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function x(l,_,w,A){var M=w;return p(l,function(g,b,v,u,y){b===0&&w===void 0?M=g:M=_(M,g,b,v,u,y)},A),M}function S(l,_){var w;switch(l.type){case"FeatureCollection":for(w=0;w<l.features.length&&_(l.features[w].properties,w)!==!1;w++);break;case"Feature":_(l.properties,0);break}}function E(l,_,w){var A=w;return S(l,function(M,g){g===0&&w===void 0?A=M:A=_(A,M,g)}),A}function e(l,_){if(l.type==="Feature")_(l,0);else if(l.type==="FeatureCollection")for(var w=0;w<l.features.length&&_(l.features[w],w)!==!1;w++);}function t(l,_,w){var A=w;return e(l,function(M,g){g===0&&w===void 0?A=M:A=_(A,M,g)}),A}function r(l){var _=[];return p(l,function(w){_.push(w)}),_}function o(l,_){var w,A,M,g,b,v,u,y,f,R,L=0,z=l.type==="FeatureCollection",F=l.type==="Feature",N=z?l.features.length:1;for(w=0;w<N;w++){for(v=z?l.features[w].geometry:F?l.geometry:l,y=z?l.features[w].properties:F?l.properties:{},f=z?l.features[w].bbox:F?l.bbox:void 0,R=z?l.features[w].id:F?l.id:void 0,u=v?v.type==="GeometryCollection":!1,b=u?v.geometries.length:1,M=0;M<b;M++){if(g=u?v.geometries[M]:v,g===null){if(_(null,L,y,f,R)===!1)return!1;continue}switch(g.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(_(g,L,y,f,R)===!1)return!1;break}case"GeometryCollection":{for(A=0;A<g.geometries.length;A++)if(_(g.geometries[A],L,y,f,R)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}L++}}function i(l,_,w){var A=w;return o(l,function(M,g,b,v,u){g===0&&w===void 0?A=M:A=_(A,M,g,b,v,u)}),A}function n(l,_){o(l,function(w,A,M,g,b){var v=w===null?null:w.type;switch(v){case null:case"Point":case"LineString":case"Polygon":return _(H.feature.call(void 0,w,M,{bbox:g,id:b}),A,0)===!1?!1:void 0}var u;switch(v){case"MultiPoint":u="Point";break;case"MultiLineString":u="LineString";break;case"MultiPolygon":u="Polygon";break}for(var y=0;y<w.coordinates.length;y++){var f=w.coordinates[y],R={type:u,coordinates:f};if(_(H.feature.call(void 0,R,M),A,y)===!1)return!1}})}function a(l,_,w){var A=w;return n(l,function(M,g,b){g===0&&b===0&&w===void 0?A=M:A=_(A,M,g,b)}),A}function s(l,_){n(l,function(w,A,M){var g=0;if(w.geometry){var b=w.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var v,u=0,y=0,f=0;if(p(w,function(R,L,z,F,N){if(v===void 0||A>u||F>y||N>f){v=R,u=A,y=F,f=N,g=0;return}var B=H.lineString.call(void 0,[v,R],w.properties);if(_(B,A,M,N,g)===!1)return!1;g++,v=R})===!1)return!1}}})}function h(l,_,w){var A=w,M=!1;return s(l,function(g,b,v,u,y){M===!1&&w===void 0?A=g:A=_(A,g,b,v,u,y),M=!0}),A}function c(l,_){if(!l)throw new Error("geojson is required");n(l,function(w,A,M){if(w.geometry!==null){var g=w.geometry.type,b=w.geometry.coordinates;switch(g){case"LineString":if(_(w,A,M,0,0)===!1)return!1;break;case"Polygon":for(var v=0;v<b.length;v++)if(_(H.lineString.call(void 0,b[v],w.properties),A,M,v)===!1)return!1;break}}})}function m(l,_,w){var A=w;return c(l,function(M,g,b,v){g===0&&w===void 0?A=M:A=_(A,M,g,b,v)}),A}function d(l,_){if(_=_||{},!H.isObject.call(void 0,_))throw new Error("options is invalid");var w=_.featureIndex||0,A=_.multiFeatureIndex||0,M=_.geometryIndex||0,g=_.segmentIndex||0,b=_.properties,v;switch(l.type){case"FeatureCollection":w<0&&(w=l.features.length+w),b=b||l.features[w].properties,v=l.features[w].geometry;break;case"Feature":b=b||l.properties,v=l.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":v=l;break;default:throw new Error("geojson is invalid")}if(v===null)return null;var u=v.coordinates;switch(v.type){case"Point":case"MultiPoint":return null;case"LineString":return g<0&&(g=u.length+g-1),H.lineString.call(void 0,[u[g],u[g+1]],b,_);case"Polygon":return M<0&&(M=u.length+M),g<0&&(g=u[M].length+g-1),H.lineString.call(void 0,[u[M][g],u[M][g+1]],b,_);case"MultiLineString":return A<0&&(A=u.length+A),g<0&&(g=u[A].length+g-1),H.lineString.call(void 0,[u[A][g],u[A][g+1]],b,_);case"MultiPolygon":return A<0&&(A=u.length+A),M<0&&(M=u[A].length+M),g<0&&(g=u[A][M].length-g-1),H.lineString.call(void 0,[u[A][M][g],u[A][M][g+1]],b,_)}throw new Error("geojson is invalid")}function T(l,_){if(_=_||{},!H.isObject.call(void 0,_))throw new Error("options is invalid");var w=_.featureIndex||0,A=_.multiFeatureIndex||0,M=_.geometryIndex||0,g=_.coordIndex||0,b=_.properties,v;switch(l.type){case"FeatureCollection":w<0&&(w=l.features.length+w),b=b||l.features[w].properties,v=l.features[w].geometry;break;case"Feature":b=b||l.properties,v=l.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":v=l;break;default:throw new Error("geojson is invalid")}if(v===null)return null;var u=v.coordinates;switch(v.type){case"Point":return H.point.call(void 0,u,b,_);case"MultiPoint":return A<0&&(A=u.length+A),H.point.call(void 0,u[A],b,_);case"LineString":return g<0&&(g=u.length+g),H.point.call(void 0,u[g],b,_);case"Polygon":return M<0&&(M=u.length+M),g<0&&(g=u[M].length+g),H.point.call(void 0,u[M][g],b,_);case"MultiLineString":return A<0&&(A=u.length+A),g<0&&(g=u[A].length+g),H.point.call(void 0,u[A][g],b,_);case"MultiPolygon":return A<0&&(A=u.length+A),M<0&&(M=u[A].length+M),g<0&&(g=u[A][M].length-g),H.point.call(void 0,u[A][M][g],b,_)}throw new Error("geojson is invalid")}Y.coordAll=r,Y.coordEach=p,Y.coordReduce=x,Y.featureEach=e,Y.featureReduce=t,Y.findPoint=T,Y.findSegment=d,Y.flattenEach=n,Y.flattenReduce=a,Y.geomEach=o,Y.geomReduce=i,Y.lineEach=c,Y.lineReduce=m,Y.propEach=S,Y.propReduce=E,Y.segmentEach=s,Y.segmentReduce=h}}),nP=De({"node_modules/@turf/area/dist/cjs/index.cjs"(Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var H=lb(),p=ub();function x(i){return p.geomReduce.call(void 0,i,(n,a)=>n+S(a),0)}function S(i){let n=0,a;switch(i.type){case"Polygon":return E(i.coordinates);case"MultiPolygon":for(a=0;a<i.coordinates.length;a++)n+=E(i.coordinates[a]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function E(i){let n=0;if(i&&i.length>0){n+=Math.abs(r(i[0]));for(let a=1;a<i.length;a++)n-=Math.abs(r(i[a]))}return n}var e=H.earthRadius*H.earthRadius/2,t=Math.PI/180;function r(i){let n=i.length-1;if(n<=2)return 0;let a=0,s=0;for(;s<n;){let h=i[s],c=i[s+1===n?0:s+1],m=i[s+2>=n?(s+2)%n:s+2],d=h[0]*t,T=c[1]*t,l=m[0]*t;a+=(l-d)*Math.sin(T),s++}return a*e}var o=x;Y.area=x,Y.default=o}}),oP=De({"node_modules/@turf/centroid/dist/cjs/index.cjs"(Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var H=lb(),p=ub();function x(E,e={}){let t=0,r=0,o=0;return p.coordEach.call(void 0,E,function(i){t+=i[0],r+=i[1],o++},!0),H.point.call(void 0,[t/o,r/o],e.properties)}var S=x;Y.centroid=x,Y.default=S}}),sP=De({"node_modules/@turf/bbox/dist/cjs/index.cjs"(Y){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var H=ub();function p(S,E={}){if(S.bbox!=null&&E.recompute!==!0)return S.bbox;let e=[1/0,1/0,-1/0,-1/0];return H.coordEach.call(void 0,S,t=>{e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e}var x=p;Y.bbox=p,Y.default=x}}),s0=De({"src/lib/geo_location_utils.js"(Y,H){"use strict";var p=za(),x=aP(),{area:S}=nP(),{centroid:E}=oP(),{bbox:e}=sP(),t=sy(),r=Yo(),o=fu(),i=bu(),n=vy(),a=Object.keys(x),s={"ISO-3":t,"USA-states":t,"country names":h};function h(A){for(var M=0;M<a.length;M++){var g=a[M],b=new RegExp(x[g]);if(b.test(A.trim().toLowerCase()))return g}return r.log("Unrecognized country name: "+A+"."),!1}function c(A,M,g){if(!M||typeof M!="string")return!1;var b=s[A](M),v,u,y;if(b){if(A==="USA-states")for(v=[],y=0;y<g.length;y++)u=g[y],u.properties&&u.properties.gu&&u.properties.gu==="USA"&&v.push(u);else v=g;for(y=0;y<v.length;y++)if(u=v[y],u.id===b)return u;r.log(["Location with id",b,"does not have a matching topojson feature at this resolution."].join(" "))}return!1}function m(A){var M=A.geometry,g=M.coordinates,b=A.id,v=[],u,y,f,R;function L(z){for(var F=0;F<z.length-1;F++)if(z[F][0]>0&&z[F+1][0]<0)return F;return null}switch(b==="RUS"||b==="FJI"?u=function(z){var F;if(L(z)===null)F=z;else for(F=new Array(z.length),R=0;R<z.length;R++)F[R]=[z[R][0]<0?z[R][0]+360:z[R][0],z[R][1]];v.push(n.tester(F))}:b==="ATA"?u=function(z){var F=L(z);if(F===null)return v.push(n.tester(z));var N=new Array(z.length+1),B=0;for(R=0;R<z.length;R++)R>F?N[B++]=[z[R][0]+360,z[R][1]]:R===F?(N[B++]=z[R],N[B++]=[z[R][0],-90]):N[B++]=z[R];var I=n.tester(N);I.pts.pop(),v.push(I)}:u=function(z){v.push(n.tester(z))},M.type){case"MultiPolygon":for(y=0;y<g.length;y++)for(f=0;f<g[y].length;f++)u(g[y][f]);break;case"Polygon":for(y=0;y<g.length;y++)u(g[y]);break}return v}function d(A){var M=A.geojson,g=window.PlotlyGeoAssets||{},b=typeof M=="string"?g[M]:M;return o(b)?b:(r.error("Oops ... something went wrong when fetching "+M),!1)}function T(A){var M=A[0].trace,g=d(M);if(!g)return!1;var b={},v=[],u;for(u=0;u<M._length;u++){var y=A[u];(y.loc||y.loc===0)&&(b[y.loc]=y)}function f(z){var F=i(z,M.featureidkey||"id").get(),N=b[F];if(N){var B=z.geometry;if(B.type==="Polygon"||B.type==="MultiPolygon"){var I={type:"Feature",id:F,geometry:B,properties:{}};I.geometry.coordinates.length>0?I.properties.ct=l(I):I.properties.ct=[NaN,NaN],N.fIn=z,N.fOut=I,v.push(I)}else r.log(["Location",N.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete b[F]}switch(g.type){case"FeatureCollection":var R=g.features;for(u=0;u<R.length;u++)f(R[u]);break;case"Feature":f(g);break;default:return r.warn(["Invalid GeoJSON type",(g.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var L in b)r.log(["Location *"+L+"*","does not have a matching feature with id-key","*"+M.featureidkey+"*."].join(" "));return v}function l(A){var M=A.geometry,g;if(M.type==="MultiPolygon")for(var b=M.coordinates,v=0,u=0;u<b.length;u++){var y={type:"Polygon",coordinates:b[u]},f=S(y);f>v&&(v=f,g=y)}else g=M;return E(g).geometry.coordinates}function _(A){var M=window.PlotlyGeoAssets||{},g=[];function b(R){return new Promise(function(L,z){p.json(R,function(F,N){if(F){delete M[R];var B=F.status===404?'GeoJSON at URL "'+R+'" does not exist.':"Unexpected error while fetching from "+R;return z(new Error(B))}return M[R]=N,L(N)})})}function v(R){return new Promise(function(L,z){var F=0,N=setInterval(function(){if(M[R]&&M[R]!=="pending")return clearInterval(N),L(M[R]);if(F>100)return clearInterval(N),z("Unexpected error while fetching from "+R);F++},50)})}for(var u=0;u<A.length;u++){var y=A[u][0].trace,f=y.geojson;typeof f=="string"&&(M[f]?M[f]==="pending"&&g.push(v(f)):(M[f]="pending",g.push(b(f))))}return g}function w(A){return e(A)}H.exports={locationToFeature:c,feature2polygons:m,getTraceGeojson:d,extractTraceFeature:T,fetchTraceGeoData:_,computeBbox:w}}}),v5=De({"src/traces/scattergeo/style.js"(Y,H){"use strict";var p=za(),x=ys(),S=vo(),E=Sd(),e=E.stylePoints,t=E.styleText;H.exports=function(i,n){n&&r(i,n)};function r(o,i){var n=i[0].trace,a=i[0].node3;a.style("opacity",i[0].trace.opacity),e(a,n,o),t(a,n,o),a.selectAll("path.js-line").style("fill","none").each(function(s){var h=p.select(this),c=s.trace,m=c.line||{};h.call(S.stroke,m.color).call(x.dashLine,m.dash||"",m.width||0),c.fill!=="none"&&h.call(S.fill,c.fillcolor)})}}}),p5=De({"src/traces/scattergeo/plot.js"(Y,H){"use strict";var p=za(),x=ui(),S=sb().getTopojsonFeatures,E=o0(),e=s0(),t=fv().findExtremes,r=zn().BADNUM,o=Kd().calcMarkerSize,i=Hu(),n=v5();function a(h,c,m){var d=c.layers.frontplot.select(".scatterlayer"),T=x.makeTraceGroups(d,m,"trace scattergeo");function l(_,w){_.lonlat[0]===r&&p.select(w).remove()}T.selectAll("*").remove(),T.each(function(_){var w=p.select(this),A=_[0].trace;if(i.hasLines(A)||A.fill!=="none"){var M=E.calcTraceToLineCoords(_),g=A.fill!=="none"?E.makePolygon(M):E.makeLine(M);w.selectAll("path.js-line").data([{geojson:g,trace:A}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}i.hasMarkers(A)&&w.selectAll("path.point").data(x.identity).enter().append("path").classed("point",!0).each(function(b){l(b,this)}),i.hasText(A)&&w.selectAll("g").data(x.identity).enter().append("g").append("text").each(function(b){l(b,this)}),n(h,_)})}function s(h,c){var m=h[0].trace,d=c[m.geo],T=d._subplot,l=m._length,_,w;if(x.isArrayOrTypedArray(m.locations)){var A=m.locationmode,M=A==="geojson-id"?e.extractTraceFeature(h):S(m,T.topojson);for(_=0;_<l;_++){w=h[_];var g=A==="geojson-id"?w.fOut:e.locationToFeature(A,w.loc,M);w.lonlat=g?g.properties.ct:[r,r]}}var b={padded:!0},v,u;if(d.fitbounds==="geojson"&&m.locationmode==="geojson-id"){var y=e.computeBbox(e.getTraceGeojson(m));v=[y[0],y[2]],u=[y[1],y[3]]}else{for(v=new Array(l),u=new Array(l),_=0;_<l;_++)w=h[_],v[_]=w.lonlat[0],u[_]=w.lonlat[1];b.ppad=o(m,l)}m._extremes.lon=t(d.lonaxis._ax,v,b),m._extremes.lat=t(d.lataxis._ax,u,b)}H.exports={calcGeoJSON:s,plot:a}}}),lP=De({"src/traces/scattergeo/hover.js"(Y,H){"use strict";var p=sf(),x=zn().BADNUM,S=rg(),E=ui().fillText,e=om();H.exports=function(o,i,n){var a=o.cd,s=a[0].trace,h=o.xa,c=o.ya,m=o.subplot,d=m.projection.isLonLatOverEdges,T=m.project;function l(v){var u=v.lonlat;if(u[0]===x||d(u))return 1/0;var y=T(u),f=T([i,n]),R=Math.abs(y[0]-f[0]),L=Math.abs(y[1]-f[1]),z=Math.max(3,v.mrc||0);return Math.max(Math.sqrt(R*R+L*L)-z,1-3/z)}if(p.getClosest(a,l,o),o.index!==!1){var _=a[o.index],w=_.lonlat,A=[h.c2p(w),c.c2p(w)],M=_.mrc||1;o.x0=A[0]-M,o.x1=A[0]+M,o.y0=A[1]-M,o.y1=A[1]+M,o.loc=_.loc,o.lon=w[0],o.lat=w[1];var g={};g[s.geo]={_subplot:m};var b=s._module.formatLabels(_,s,g);return o.lonLabel=b.lonLabel,o.latLabel=b.latLabel,o.color=S(s,_),o.extraText=t(s,_,o,a[0].t.labels),o.hovertemplate=s.hovertemplate,[o]}};function t(r,o,i,n){if(r.hovertemplate)return;var a=o.hi||r.hoverinfo,s=a==="all"?e.hoverinfo.flags:a.split("+"),h=s.indexOf("location")!==-1&&Array.isArray(r.locations),c=s.indexOf("lon")!==-1,m=s.indexOf("lat")!==-1,d=s.indexOf("text")!==-1,T=[];function l(_){return _+"\xB0"}return h?T.push(o.loc):c&&m?T.push("("+l(i.latLabel)+", "+l(i.lonLabel)+")"):c?T.push(n.lon+l(i.lonLabel)):m&&T.push(n.lat+l(i.latLabel)),d&&E(o,r,T),T.join("<br>")}}}),uP=De({"src/traces/scattergeo/event_data.js"(Y,H){"use strict";H.exports=function(x,S,E,e,t){x.lon=S.lon,x.lat=S.lat,x.location=S.loc?S.loc:null;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x}}}),cP=De({"src/traces/scattergeo/select.js"(Y,H){"use strict";var p=Hu(),x=zn().BADNUM;H.exports=function(E,e){var t=E.cd,r=E.xaxis,o=E.yaxis,i=[],n=t[0].trace,a,s,h,c,m,d=!p.hasMarkers(n)&&!p.hasText(n);if(d)return[];if(e===!1)for(m=0;m<t.length;m++)t[m].selected=0;else for(m=0;m<t.length;m++)a=t[m],s=a.lonlat,s[0]!==x&&(h=r.c2p(s),c=o.c2p(s),e.contains([h,c],null,m,E)?(i.push({pointNumber:m,lon:s[0],lat:s[1]}),a.selected=1):a.selected=0);return i}}}),t1=De({"node_modules/d3-array/dist/d3-array.js"(Y,H){(function(p,x){x(typeof Y=="object"&&typeof H<"u"?Y:p.d3=p.d3||{})})(Y,function(p){"use strict";function x(ee,V){return ee<V?-1:ee>V?1:ee>=V?0:NaN}function S(ee){return ee.length===1&&(ee=E(ee)),{left:function(V,oe,ie,j){for(ie==null&&(ie=0),j==null&&(j=V.length);ie<j;){var Q=ie+j>>>1;ee(V[Q],oe)<0?ie=Q+1:j=Q}return ie},right:function(V,oe,ie,j){for(ie==null&&(ie=0),j==null&&(j=V.length);ie<j;){var Q=ie+j>>>1;ee(V[Q],oe)>0?j=Q:ie=Q+1}return ie}}}function E(ee){return function(V,oe){return x(ee(V),oe)}}var e=S(x),t=e.right,r=e.left;function o(ee,V){V==null&&(V=i);for(var oe=0,ie=ee.length-1,j=ee[0],Q=new Array(ie<0?0:ie);oe<ie;)Q[oe]=V(j,j=ee[++oe]);return Q}function i(ee,V){return[ee,V]}function n(ee,V,oe){var ie=ee.length,j=V.length,Q=new Array(ie*j),re,ue,_e,we;for(oe==null&&(oe=i),re=_e=0;re<ie;++re)for(we=ee[re],ue=0;ue<j;++ue,++_e)Q[_e]=oe(we,V[ue]);return Q}function a(ee,V){return V<ee?-1:V>ee?1:V>=ee?0:NaN}function s(ee){return ee===null?NaN:+ee}function h(ee,V){var oe=ee.length,ie=0,j=-1,Q=0,re,ue,_e=0;if(V==null)for(;++j<oe;)isNaN(re=s(ee[j]))||(ue=re-Q,Q+=ue/++ie,_e+=ue*(re-Q));else for(;++j<oe;)isNaN(re=s(V(ee[j],j,ee)))||(ue=re-Q,Q+=ue/++ie,_e+=ue*(re-Q));if(ie>1)return _e/(ie-1)}function c(ee,V){var oe=h(ee,V);return oe&&Math.sqrt(oe)}function m(ee,V){var oe=ee.length,ie=-1,j,Q,re;if(V==null){for(;++ie<oe;)if((j=ee[ie])!=null&&j>=j)for(Q=re=j;++ie<oe;)(j=ee[ie])!=null&&(Q>j&&(Q=j),re<j&&(re=j))}else for(;++ie<oe;)if((j=V(ee[ie],ie,ee))!=null&&j>=j)for(Q=re=j;++ie<oe;)(j=V(ee[ie],ie,ee))!=null&&(Q>j&&(Q=j),re<j&&(re=j));return[Q,re]}var d=Array.prototype,T=d.slice,l=d.map;function _(ee){return function(){return ee}}function w(ee){return ee}function A(ee,V,oe){ee=+ee,V=+V,oe=(j=arguments.length)<2?(V=ee,ee=0,1):j<3?1:+oe;for(var ie=-1,j=Math.max(0,Math.ceil((V-ee)/oe))|0,Q=new Array(j);++ie<j;)Q[ie]=ee+ie*oe;return Q}var M=Math.sqrt(50),g=Math.sqrt(10),b=Math.sqrt(2);function v(ee,V,oe){var ie,j=-1,Q,re,ue;if(V=+V,ee=+ee,oe=+oe,ee===V&&oe>0)return[ee];if((ie=V<ee)&&(Q=ee,ee=V,V=Q),(ue=u(ee,V,oe))===0||!isFinite(ue))return[];if(ue>0)for(ee=Math.ceil(ee/ue),V=Math.floor(V/ue),re=new Array(Q=Math.ceil(V-ee+1));++j<Q;)re[j]=(ee+j)*ue;else for(ee=Math.floor(ee*ue),V=Math.ceil(V*ue),re=new Array(Q=Math.ceil(ee-V+1));++j<Q;)re[j]=(ee-j)/ue;return ie&&re.reverse(),re}function u(ee,V,oe){var ie=(V-ee)/Math.max(0,oe),j=Math.floor(Math.log(ie)/Math.LN10),Q=ie/Math.pow(10,j);return j>=0?(Q>=M?10:Q>=g?5:Q>=b?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=M?10:Q>=g?5:Q>=b?2:1)}function y(ee,V,oe){var ie=Math.abs(V-ee)/Math.max(0,oe),j=Math.pow(10,Math.floor(Math.log(ie)/Math.LN10)),Q=ie/j;return Q>=M?j*=10:Q>=g?j*=5:Q>=b&&(j*=2),V<ee?-j:j}function f(ee){return Math.ceil(Math.log(ee.length)/Math.LN2)+1}function R(){var ee=w,V=m,oe=f;function ie(j){var Q,re=j.length,ue,_e=new Array(re);for(Q=0;Q<re;++Q)_e[Q]=ee(j[Q],Q,j);var we=V(_e),Re=we[0],ze=we[1],Xe=oe(_e,Re,ze);Array.isArray(Xe)||(Xe=y(Re,ze,Xe),Xe=A(Math.ceil(Re/Xe)*Xe,ze,Xe));for(var tt=Xe.length;Xe[0]<=Re;)Xe.shift(),--tt;for(;Xe[tt-1]>ze;)Xe.pop(),--tt;var it=new Array(tt+1),et;for(Q=0;Q<=tt;++Q)et=it[Q]=[],et.x0=Q>0?Xe[Q-1]:Re,et.x1=Q<tt?Xe[Q]:ze;for(Q=0;Q<re;++Q)ue=_e[Q],Re<=ue&&ue<=ze&&it[t(Xe,ue,0,tt)].push(j[Q]);return it}return ie.value=function(j){return arguments.length?(ee=typeof j=="function"?j:_(j),ie):ee},ie.domain=function(j){return arguments.length?(V=typeof j=="function"?j:_([j[0],j[1]]),ie):V},ie.thresholds=function(j){return arguments.length?(oe=typeof j=="function"?j:Array.isArray(j)?_(T.call(j)):_(j),ie):oe},ie}function L(ee,V,oe){if(oe==null&&(oe=s),!!(ie=ee.length)){if((V=+V)<=0||ie<2)return+oe(ee[0],0,ee);if(V>=1)return+oe(ee[ie-1],ie-1,ee);var ie,j=(ie-1)*V,Q=Math.floor(j),re=+oe(ee[Q],Q,ee),ue=+oe(ee[Q+1],Q+1,ee);return re+(ue-re)*(j-Q)}}function z(ee,V,oe){return ee=l.call(ee,s).sort(x),Math.ceil((oe-V)/(2*(L(ee,.75)-L(ee,.25))*Math.pow(ee.length,-1/3)))}function F(ee,V,oe){return Math.ceil((oe-V)/(3.5*c(ee)*Math.pow(ee.length,-1/3)))}function N(ee,V){var oe=ee.length,ie=-1,j,Q;if(V==null){for(;++ie<oe;)if((j=ee[ie])!=null&&j>=j)for(Q=j;++ie<oe;)(j=ee[ie])!=null&&j>Q&&(Q=j)}else for(;++ie<oe;)if((j=V(ee[ie],ie,ee))!=null&&j>=j)for(Q=j;++ie<oe;)(j=V(ee[ie],ie,ee))!=null&&j>Q&&(Q=j);return Q}function B(ee,V){var oe=ee.length,ie=oe,j=-1,Q,re=0;if(V==null)for(;++j<oe;)isNaN(Q=s(ee[j]))?--ie:re+=Q;else for(;++j<oe;)isNaN(Q=s(V(ee[j],j,ee)))?--ie:re+=Q;if(ie)return re/ie}function I(ee,V){var oe=ee.length,ie=-1,j,Q=[];if(V==null)for(;++ie<oe;)isNaN(j=s(ee[ie]))||Q.push(j);else for(;++ie<oe;)isNaN(j=s(V(ee[ie],ie,ee)))||Q.push(j);return L(Q.sort(x),.5)}function U(ee){for(var V=ee.length,oe,ie=-1,j=0,Q,re;++ie<V;)j+=ee[ie].length;for(Q=new Array(j);--V>=0;)for(re=ee[V],oe=re.length;--oe>=0;)Q[--j]=re[oe];return Q}function O(ee,V){var oe=ee.length,ie=-1,j,Q;if(V==null){for(;++ie<oe;)if((j=ee[ie])!=null&&j>=j)for(Q=j;++ie<oe;)(j=ee[ie])!=null&&Q>j&&(Q=j)}else for(;++ie<oe;)if((j=V(ee[ie],ie,ee))!=null&&j>=j)for(Q=j;++ie<oe;)(j=V(ee[ie],ie,ee))!=null&&Q>j&&(Q=j);return Q}function X(ee,V){for(var oe=V.length,ie=new Array(oe);oe--;)ie[oe]=ee[V[oe]];return ie}function J(ee,V){if(oe=ee.length){var oe,ie=0,j=0,Q,re=ee[j];for(V==null&&(V=x);++ie<oe;)(V(Q=ee[ie],re)<0||V(re,re)!==0)&&(re=Q,j=ie);if(V(re,re)===0)return j}}function se(ee,V,oe){for(var ie=(oe??ee.length)-(V=V==null?0:+V),j,Q;ie;)Q=Math.random()*ie--|0,j=ee[ie+V],ee[ie+V]=ee[Q+V],ee[Q+V]=j;return ee}function le(ee,V){var oe=ee.length,ie=-1,j,Q=0;if(V==null)for(;++ie<oe;)(j=+ee[ie])&&(Q+=j);else for(;++ie<oe;)(j=+V(ee[ie],ie,ee))&&(Q+=j);return Q}function ce(ee){if(!(Q=ee.length))return[];for(var V=-1,oe=O(ee,q),ie=new Array(oe);++V<oe;)for(var j=-1,Q,re=ie[V]=new Array(Q);++j<Q;)re[j]=ee[j][V];return ie}function q(ee){return ee.length}function Z(){return ce(arguments)}p.bisect=t,p.bisectRight=t,p.bisectLeft=r,p.ascending=x,p.bisector=S,p.cross=n,p.descending=a,p.deviation=c,p.extent=m,p.histogram=R,p.thresholdFreedmanDiaconis=z,p.thresholdScott=F,p.thresholdSturges=f,p.max=N,p.mean=B,p.median=I,p.merge=U,p.min=O,p.pairs=o,p.permute=X,p.quantile=L,p.range=A,p.scan=J,p.shuffle=se,p.sum=le,p.ticks=v,p.tickIncrement=u,p.tickStep=y,p.transpose=ce,p.variance=h,p.zip=Z,Object.defineProperty(p,"__esModule",{value:!0})})}}),m5=De({"node_modules/d3-geo/dist/d3-geo.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y,t1()):(p=p||self,x(p.d3=p.d3||{},p.d3))})(Y,function(p,x){"use strict";function S(){return new E}function E(){this.reset()}E.prototype={constructor:E,reset:function(){this.s=this.t=0},add:function(er){t(e,er,this.t),t(this,e.s,this.s),this.s?this.t+=e.t:this.s=e.t},valueOf:function(){return this.s}};var e=new E;function t(er,wr,ai){var Jr=er.s=wr+ai,Fi=Jr-wr,pa=Jr-Fi;er.t=wr-pa+(ai-Fi)}var r=1e-6,o=1e-12,i=Math.PI,n=i/2,a=i/4,s=i*2,h=180/i,c=i/180,m=Math.abs,d=Math.atan,T=Math.atan2,l=Math.cos,_=Math.ceil,w=Math.exp,A=Math.log,M=Math.pow,g=Math.sin,b=Math.sign||function(er){return er>0?1:er<0?-1:0},v=Math.sqrt,u=Math.tan;function y(er){return er>1?0:er<-1?i:Math.acos(er)}function f(er){return er>1?n:er<-1?-n:Math.asin(er)}function R(er){return(er=g(er/2))*er}function L(){}function z(er,wr){er&&N.hasOwnProperty(er.type)&&N[er.type](er,wr)}var F={Feature:function(er,wr){z(er.geometry,wr)},FeatureCollection:function(er,wr){for(var ai=er.features,Jr=-1,Fi=ai.length;++Jr<Fi;)z(ai[Jr].geometry,wr)}},N={Sphere:function(er,wr){wr.sphere()},Point:function(er,wr){er=er.coordinates,wr.point(er[0],er[1],er[2])},MultiPoint:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)er=ai[Jr],wr.point(er[0],er[1],er[2])},LineString:function(er,wr){B(er.coordinates,wr,0)},MultiLineString:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)B(ai[Jr],wr,0)},Polygon:function(er,wr){I(er.coordinates,wr)},MultiPolygon:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)I(ai[Jr],wr)},GeometryCollection:function(er,wr){for(var ai=er.geometries,Jr=-1,Fi=ai.length;++Jr<Fi;)z(ai[Jr],wr)}};function B(er,wr,ai){var Jr=-1,Fi=er.length-ai,pa;for(wr.lineStart();++Jr<Fi;)pa=er[Jr],wr.point(pa[0],pa[1],pa[2]);wr.lineEnd()}function I(er,wr){var ai=-1,Jr=er.length;for(wr.polygonStart();++ai<Jr;)B(er[ai],wr,1);wr.polygonEnd()}function U(er,wr){er&&F.hasOwnProperty(er.type)?F[er.type](er,wr):z(er,wr)}var O=S(),X=S(),J,se,le,ce,q,Z={point:L,lineStart:L,lineEnd:L,polygonStart:function(){O.reset(),Z.lineStart=ee,Z.lineEnd=V},polygonEnd:function(){var er=+O;X.add(er<0?s+er:er),this.lineStart=this.lineEnd=this.point=L},sphere:function(){X.add(s)}};function ee(){Z.point=oe}function V(){ie(J,se)}function oe(er,wr){Z.point=ie,J=er,se=wr,er*=c,wr*=c,le=er,ce=l(wr=wr/2+a),q=g(wr)}function ie(er,wr){er*=c,wr*=c,wr=wr/2+a;var ai=er-le,Jr=ai>=0?1:-1,Fi=Jr*ai,pa=l(wr),Ba=g(wr),an=q*Ba,hn=ce*pa+an*l(Fi),Ln=an*Jr*g(Fi);O.add(T(Ln,hn)),le=er,ce=pa,q=Ba}function j(er){return X.reset(),U(er,Z),X*2}function Q(er){return[T(er[1],er[0]),f(er[2])]}function re(er){var wr=er[0],ai=er[1],Jr=l(ai);return[Jr*l(wr),Jr*g(wr),g(ai)]}function ue(er,wr){return er[0]*wr[0]+er[1]*wr[1]+er[2]*wr[2]}function _e(er,wr){return[er[1]*wr[2]-er[2]*wr[1],er[2]*wr[0]-er[0]*wr[2],er[0]*wr[1]-er[1]*wr[0]]}function we(er,wr){er[0]+=wr[0],er[1]+=wr[1],er[2]+=wr[2]}function Re(er,wr){return[er[0]*wr,er[1]*wr,er[2]*wr]}function ze(er){var wr=v(er[0]*er[0]+er[1]*er[1]+er[2]*er[2]);er[0]/=wr,er[1]/=wr,er[2]/=wr}var Xe,tt,it,et,nt,Ae,me,fe,Be=S(),Qe,at,$e={point:It,lineStart:Vt,lineEnd:Wt,polygonStart:function(){$e.point=Cr,$e.lineStart=yr,$e.lineEnd=qr,Be.reset(),Z.polygonStart()},polygonEnd:function(){Z.polygonEnd(),$e.point=It,$e.lineStart=Vt,$e.lineEnd=Wt,O<0?(Xe=-(it=180),tt=-(et=90)):Be>r?et=90:Be<-r&&(tt=-90),at[0]=Xe,at[1]=it},sphere:function(){Xe=-(it=180),tt=-(et=90)}};function It(er,wr){Qe.push(at=[Xe=er,it=er]),wr<tt&&(tt=wr),wr>et&&(et=wr)}function Pt(er,wr){var ai=re([er*c,wr*c]);if(fe){var Jr=_e(fe,ai),Fi=[Jr[1],-Jr[0],0],pa=_e(Fi,Jr);ze(pa),pa=Q(pa);var Ba=er-nt,an=Ba>0?1:-1,hn=pa[0]*h*an,Ln,Na=m(Ba)>180;Na^(an*nt<hn&&hn<an*er)?(Ln=pa[1]*h,Ln>et&&(et=Ln)):(hn=(hn+360)%360-180,Na^(an*nt<hn&&hn<an*er)?(Ln=-pa[1]*h,Ln<tt&&(tt=Ln)):(wr<tt&&(tt=wr),wr>et&&(et=wr))),Na?er<nt?Mr(Xe,er)>Mr(Xe,it)&&(it=er):Mr(er,it)>Mr(Xe,it)&&(Xe=er):it>=Xe?(er<Xe&&(Xe=er),er>it&&(it=er)):er>nt?Mr(Xe,er)>Mr(Xe,it)&&(it=er):Mr(er,it)>Mr(Xe,it)&&(Xe=er)}else Qe.push(at=[Xe=er,it=er]);wr<tt&&(tt=wr),wr>et&&(et=wr),fe=ai,nt=er}function Vt(){$e.point=Pt}function Wt(){at[0]=Xe,at[1]=it,$e.point=It,fe=null}function Cr(er,wr){if(fe){var ai=er-nt;Be.add(m(ai)>180?ai+(ai>0?360:-360):ai)}else Ae=er,me=wr;Z.point(er,wr),Pt(er,wr)}function yr(){Z.lineStart()}function qr(){Cr(Ae,me),Z.lineEnd(),m(Be)>r&&(Xe=-(it=180)),at[0]=Xe,at[1]=it,fe=null}function Mr(er,wr){return(wr-=er)<0?wr+360:wr}function Dr(er,wr){return er[0]-wr[0]}function xt(er,wr){return er[0]<=er[1]?er[0]<=wr&&wr<=er[1]:wr<er[0]||er[1]<wr}function Ne(er){var wr,ai,Jr,Fi,pa,Ba,an;if(et=it=-(Xe=tt=1/0),Qe=[],U(er,$e),ai=Qe.length){for(Qe.sort(Dr),wr=1,Jr=Qe[0],pa=[Jr];wr<ai;++wr)Fi=Qe[wr],xt(Jr,Fi[0])||xt(Jr,Fi[1])?(Mr(Jr[0],Fi[1])>Mr(Jr[0],Jr[1])&&(Jr[1]=Fi[1]),Mr(Fi[0],Jr[1])>Mr(Jr[0],Jr[1])&&(Jr[0]=Fi[0])):pa.push(Jr=Fi);for(Ba=-1/0,ai=pa.length-1,wr=0,Jr=pa[ai];wr<=ai;Jr=Fi,++wr)Fi=pa[wr],(an=Mr(Jr[1],Fi[0]))>Ba&&(Ba=an,Xe=Fi[0],it=Jr[1])}return Qe=at=null,Xe===1/0||tt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Xe,tt],[it,et]]}var Ye,be,Ie,qe,ke,Me,Le,ut,lt,gt,kt,nr,ir,tr,Ir,vi,Vi={sphere:L,point:Ui,lineStart:ea,lineEnd:Ca,polygonStart:function(){Vi.lineStart=Kt,Vi.lineEnd=zt},polygonEnd:function(){Vi.lineStart=ea,Vi.lineEnd=Ca}};function Ui(er,wr){er*=c,wr*=c;var ai=l(wr);Ki(ai*l(er),ai*g(er),g(wr))}function Ki(er,wr,ai){++Ye,Ie+=(er-Ie)/Ye,qe+=(wr-qe)/Ye,ke+=(ai-ke)/Ye}function ea(){Vi.point=Bi}function Bi(er,wr){er*=c,wr*=c;var ai=l(wr);tr=ai*l(er),Ir=ai*g(er),vi=g(wr),Vi.point=_a,Ki(tr,Ir,vi)}function _a(er,wr){er*=c,wr*=c;var ai=l(wr),Jr=ai*l(er),Fi=ai*g(er),pa=g(wr),Ba=T(v((Ba=Ir*pa-vi*Fi)*Ba+(Ba=vi*Jr-tr*pa)*Ba+(Ba=tr*Fi-Ir*Jr)*Ba),tr*Jr+Ir*Fi+vi*pa);be+=Ba,Me+=Ba*(tr+(tr=Jr)),Le+=Ba*(Ir+(Ir=Fi)),ut+=Ba*(vi+(vi=pa)),Ki(tr,Ir,vi)}function Ca(){Vi.point=Ui}function Kt(){Vi.point=Zt}function zt(){Jt(nr,ir),Vi.point=Ui}function Zt(er,wr){nr=er,ir=wr,er*=c,wr*=c,Vi.point=Jt;var ai=l(wr);tr=ai*l(er),Ir=ai*g(er),vi=g(wr),Ki(tr,Ir,vi)}function Jt(er,wr){er*=c,wr*=c;var ai=l(wr),Jr=ai*l(er),Fi=ai*g(er),pa=g(wr),Ba=Ir*pa-vi*Fi,an=vi*Jr-tr*pa,hn=tr*Fi-Ir*Jr,Ln=v(Ba*Ba+an*an+hn*hn),Na=f(Ln),qa=Ln&&-Na/Ln;lt+=qa*Ba,gt+=qa*an,kt+=qa*hn,be+=Na,Me+=Na*(tr+(tr=Jr)),Le+=Na*(Ir+(Ir=Fi)),ut+=Na*(vi+(vi=pa)),Ki(tr,Ir,vi)}function Br(er){Ye=be=Ie=qe=ke=Me=Le=ut=lt=gt=kt=0,U(er,Vi);var wr=lt,ai=gt,Jr=kt,Fi=wr*wr+ai*ai+Jr*Jr;return Fi<o&&(wr=Me,ai=Le,Jr=ut,be<r&&(wr=Ie,ai=qe,Jr=ke),Fi=wr*wr+ai*ai+Jr*Jr,Fi<o)?[NaN,NaN]:[T(ai,wr)*h,f(Jr/v(Fi))*h]}function ri(er){return function(){return er}}function ii(er,wr){function ai(Jr,Fi){return Jr=er(Jr,Fi),wr(Jr[0],Jr[1])}return er.invert&&wr.invert&&(ai.invert=function(Jr,Fi){return Jr=wr.invert(Jr,Fi),Jr&&er.invert(Jr[0],Jr[1])}),ai}function di(er,wr){return[m(er)>i?er+Math.round(-er/s)*s:er,wr]}di.invert=di;function Wi(er,wr,ai){return(er%=s)?wr||ai?ii(ra(er),ca(wr,ai)):ra(er):wr||ai?ca(wr,ai):di}function oa(er){return function(wr,ai){return wr+=er,[wr>i?wr-s:wr<-i?wr+s:wr,ai]}}function ra(er){var wr=oa(er);return wr.invert=oa(-er),wr}function ca(er,wr){var ai=l(er),Jr=g(er),Fi=l(wr),pa=g(wr);function Ba(an,hn){var Ln=l(hn),Na=l(an)*Ln,qa=g(an)*Ln,Za=g(hn),Ta=Za*ai+Na*Jr;return[T(qa*Fi-Ta*pa,Na*ai-Za*Jr),f(Ta*Fi+qa*pa)]}return Ba.invert=function(an,hn){var Ln=l(hn),Na=l(an)*Ln,qa=g(an)*Ln,Za=g(hn),Ta=Za*Fi-qa*pa;return[T(qa*Fi+Za*pa,Na*ai+Ta*Jr),f(Ta*ai-Na*Jr)]},Ba}function xa(er){er=Wi(er[0]*c,er[1]*c,er.length>2?er[2]*c:0);function wr(ai){return ai=er(ai[0]*c,ai[1]*c),ai[0]*=h,ai[1]*=h,ai}return wr.invert=function(ai){return ai=er.invert(ai[0]*c,ai[1]*c),ai[0]*=h,ai[1]*=h,ai},wr}function ji(er,wr,ai,Jr,Fi,pa){if(ai){var Ba=l(wr),an=g(wr),hn=Jr*ai;Fi==null?(Fi=wr+Jr*s,pa=wr-hn/2):(Fi=pn(Ba,Fi),pa=pn(Ba,pa),(Jr>0?Fi<pa:Fi>pa)&&(Fi+=Jr*s));for(var Ln,Na=Fi;Jr>0?Na>pa:Na<pa;Na-=hn)Ln=Q([Ba,-an*l(Na),-an*g(Na)]),er.point(Ln[0],Ln[1])}}function pn(er,wr){wr=re(wr),wr[0]-=er,ze(wr);var ai=y(-wr[1]);return((-wr[2]<0?-ai:ai)+s-r)%s}function _n(){var er=ri([0,0]),wr=ri(90),ai=ri(6),Jr,Fi,pa={point:Ba};function Ba(hn,Ln){Jr.push(hn=Fi(hn,Ln)),hn[0]*=h,hn[1]*=h}function an(){var hn=er.apply(this,arguments),Ln=wr.apply(this,arguments)*c,Na=ai.apply(this,arguments)*c;return Jr=[],Fi=Wi(-hn[0]*c,-hn[1]*c,0).invert,ji(pa,Ln,Na,1),hn={type:"Polygon",coordinates:[Jr]},Jr=Fi=null,hn}return an.center=function(hn){return arguments.length?(er=typeof hn=="function"?hn:ri([+hn[0],+hn[1]]),an):er},an.radius=function(hn){return arguments.length?(wr=typeof hn=="function"?hn:ri(+hn),an):wr},an.precision=function(hn){return arguments.length?(ai=typeof hn=="function"?hn:ri(+hn),an):ai},an}function En(){var er=[],wr;return{point:function(ai,Jr,Fi){wr.push([ai,Jr,Fi])},lineStart:function(){er.push(wr=[])},lineEnd:L,rejoin:function(){er.length>1&&er.push(er.pop().concat(er.shift()))},result:function(){var ai=er;return er=[],wr=null,ai}}}function bt(er,wr){return m(er[0]-wr[0])<r&&m(er[1]-wr[1])<r}function st(er,wr,ai,Jr){this.x=er,this.z=wr,this.o=ai,this.e=Jr,this.v=!1,this.n=this.p=null}function Nr(er,wr,ai,Jr,Fi){var pa=[],Ba=[],an,hn;if(er.forEach(function(Hn){if(!((go=Hn.length-1)<=0)){var go,wo=Hn[0],yo=Hn[go],Io;if(bt(wo,yo)){if(!wo[2]&&!yo[2]){for(Fi.lineStart(),an=0;an<go;++an)Fi.point((wo=Hn[an])[0],wo[1]);Fi.lineEnd();return}yo[0]+=2*r}pa.push(Io=new st(wo,Hn,null,!0)),Ba.push(Io.o=new st(wo,null,Io,!1)),pa.push(Io=new st(yo,Hn,null,!1)),Ba.push(Io.o=new st(yo,null,Io,!0))}}),!!pa.length){for(Ba.sort(wr),Lr(pa),Lr(Ba),an=0,hn=Ba.length;an<hn;++an)Ba[an].e=ai=!ai;for(var Ln=pa[0],Na,qa;;){for(var Za=Ln,Ta=!0;Za.v;)if((Za=Za.n)===Ln)return;Na=Za.z,Fi.lineStart();do{if(Za.v=Za.o.v=!0,Za.e){if(Ta)for(an=0,hn=Na.length;an<hn;++an)Fi.point((qa=Na[an])[0],qa[1]);else Jr(Za.x,Za.n.x,1,Fi);Za=Za.n}else{if(Ta)for(Na=Za.p.z,an=Na.length-1;an>=0;--an)Fi.point((qa=Na[an])[0],qa[1]);else Jr(Za.x,Za.p.x,-1,Fi);Za=Za.p}Za=Za.o,Na=Za.z,Ta=!Ta}while(!Za.v);Fi.lineEnd()}}}function Lr(er){if(wr=er.length){for(var wr,ai=0,Jr=er[0],Fi;++ai<wr;)Jr.n=Fi=er[ai],Fi.p=Jr,Jr=Fi;Jr.n=Fi=er[0],Fi.p=Jr}}var br=S();function Rr(er){return m(er[0])<=i?er[0]:b(er[0])*((m(er[0])+i)%s-i)}function jr(er,wr){var ai=Rr(wr),Jr=wr[1],Fi=g(Jr),pa=[g(ai),-l(ai),0],Ba=0,an=0;br.reset(),Fi===1?Jr=n+r:Fi===-1&&(Jr=-n-r);for(var hn=0,Ln=er.length;hn<Ln;++hn)if(qa=(Na=er[hn]).length)for(var Na,qa,Za=Na[qa-1],Ta=Rr(Za),Hn=Za[1]/2+a,go=g(Hn),wo=l(Hn),yo=0;yo<qa;++yo,Ta=Vn,go=Oo,wo=ps,Za=Io){var Io=Na[yo],Vn=Rr(Io),wn=Io[1]/2+a,Oo=g(wn),ps=l(wn),js=Vn-Ta,pl=js>=0?1:-1,Qs=pl*js,hl=Qs>i,Bs=go*Oo;if(br.add(T(Bs*pl*g(Qs),wo*ps+Bs*l(Qs))),Ba+=hl?js+pl*s:js,hl^Ta>=ai^Vn>=ai){var Wl=_e(re(Za),re(Io));ze(Wl);var Il=_e(pa,Wl);ze(Il);var wl=(hl^js>=0?-1:1)*f(Il[2]);(Jr>wl||Jr===wl&&(Wl[0]||Wl[1]))&&(an+=hl^js>=0?1:-1)}}return(Ba<-r||Ba<r&&br<-r)^an&1}function Wr(er,wr,ai,Jr){return function(Fi){var pa=wr(Fi),Ba=En(),an=wr(Ba),hn=!1,Ln,Na,qa,Za={point:Ta,lineStart:go,lineEnd:wo,polygonStart:function(){Za.point=yo,Za.lineStart=Io,Za.lineEnd=Vn,Na=[],Ln=[]},polygonEnd:function(){Za.point=Ta,Za.lineStart=go,Za.lineEnd=wo,Na=x.merge(Na);var wn=jr(Ln,Jr);Na.length?(hn||(Fi.polygonStart(),hn=!0),Nr(Na,Xt,wn,ai,Fi)):wn&&(hn||(Fi.polygonStart(),hn=!0),Fi.lineStart(),ai(null,null,1,Fi),Fi.lineEnd()),hn&&(Fi.polygonEnd(),hn=!1),Na=Ln=null},sphere:function(){Fi.polygonStart(),Fi.lineStart(),ai(null,null,1,Fi),Fi.lineEnd(),Fi.polygonEnd()}};function Ta(wn,Oo){er(wn,Oo)&&Fi.point(wn,Oo)}function Hn(wn,Oo){pa.point(wn,Oo)}function go(){Za.point=Hn,pa.lineStart()}function wo(){Za.point=Ta,pa.lineEnd()}function yo(wn,Oo){qa.push([wn,Oo]),an.point(wn,Oo)}function Io(){an.lineStart(),qa=[]}function Vn(){yo(qa[0][0],qa[0][1]),an.lineEnd();var wn=an.clean(),Oo=Ba.result(),ps,js=Oo.length,pl,Qs,hl;if(qa.pop(),Ln.push(qa),qa=null,!!js){if(wn&1){if(Qs=Oo[0],(pl=Qs.length-1)>0){for(hn||(Fi.polygonStart(),hn=!0),Fi.lineStart(),ps=0;ps<pl;++ps)Fi.point((hl=Qs[ps])[0],hl[1]);Fi.lineEnd()}return}js>1&&wn&2&&Oo.push(Oo.pop().concat(Oo.shift())),Na.push(Oo.filter(yt))}}return Za}}function yt(er){return er.length>1}function Xt(er,wr){return((er=er.x)[0]<0?er[1]-n-r:n-er[1])-((wr=wr.x)[0]<0?wr[1]-n-r:n-wr[1])}var mr=Wr(function(){return!0},Or,Ni,[-i,-n]);function Or(er){var wr=NaN,ai=NaN,Jr=NaN,Fi;return{lineStart:function(){er.lineStart(),Fi=1},point:function(pa,Ba){var an=pa>0?i:-i,hn=m(pa-wr);m(hn-i)<r?(er.point(wr,ai=(ai+Ba)/2>0?n:-n),er.point(Jr,ai),er.lineEnd(),er.lineStart(),er.point(an,ai),er.point(pa,ai),Fi=0):Jr!==an&&hn>=i&&(m(wr-Jr)<r&&(wr-=Jr*r),m(pa-an)<r&&(pa-=an*r),ai=ki(wr,ai,pa,Ba),er.point(Jr,ai),er.lineEnd(),er.lineStart(),er.point(an,ai),Fi=0),er.point(wr=pa,ai=Ba),Jr=an},lineEnd:function(){er.lineEnd(),wr=ai=NaN},clean:function(){return 2-Fi}}}function ki(er,wr,ai,Jr){var Fi,pa,Ba=g(er-ai);return m(Ba)>r?d((g(wr)*(pa=l(Jr))*g(ai)-g(Jr)*(Fi=l(wr))*g(er))/(Fi*pa*Ba)):(wr+Jr)/2}function Ni(er,wr,ai,Jr){var Fi;if(er==null)Fi=ai*n,Jr.point(-i,Fi),Jr.point(0,Fi),Jr.point(i,Fi),Jr.point(i,0),Jr.point(i,-Fi),Jr.point(0,-Fi),Jr.point(-i,-Fi),Jr.point(-i,0),Jr.point(-i,Fi);else if(m(er[0]-wr[0])>r){var pa=er[0]<wr[0]?i:-i;Fi=ai*pa/2,Jr.point(-pa,Fi),Jr.point(0,Fi),Jr.point(pa,Fi)}else Jr.point(wr[0],wr[1])}function Si(er){var wr=l(er),ai=6*c,Jr=wr>0,Fi=m(wr)>r;function pa(Na,qa,Za,Ta){ji(Ta,er,ai,Za,Na,qa)}function Ba(Na,qa){return l(Na)*l(qa)>wr}function an(Na){var qa,Za,Ta,Hn,go;return{lineStart:function(){Hn=Ta=!1,go=1},point:function(wo,yo){var Io=[wo,yo],Vn,wn=Ba(wo,yo),Oo=Jr?wn?0:Ln(wo,yo):wn?Ln(wo+(wo<0?i:-i),yo):0;if(!qa&&(Hn=Ta=wn)&&Na.lineStart(),wn!==Ta&&(Vn=hn(qa,Io),(!Vn||bt(qa,Vn)||bt(Io,Vn))&&(Io[2]=1)),wn!==Ta)go=0,wn?(Na.lineStart(),Vn=hn(Io,qa),Na.point(Vn[0],Vn[1])):(Vn=hn(qa,Io),Na.point(Vn[0],Vn[1],2),Na.lineEnd()),qa=Vn;else if(Fi&&qa&&Jr^wn){var ps;!(Oo&Za)&&(ps=hn(Io,qa,!0))&&(go=0,Jr?(Na.lineStart(),Na.point(ps[0][0],ps[0][1]),Na.point(ps[1][0],ps[1][1]),Na.lineEnd()):(Na.point(ps[1][0],ps[1][1]),Na.lineEnd(),Na.lineStart(),Na.point(ps[0][0],ps[0][1],3)))}wn&&(!qa||!bt(qa,Io))&&Na.point(Io[0],Io[1]),qa=Io,Ta=wn,Za=Oo},lineEnd:function(){Ta&&Na.lineEnd(),qa=null},clean:function(){return go|(Hn&&Ta)<<1}}}function hn(Na,qa,Za){var Ta=re(Na),Hn=re(qa),go=[1,0,0],wo=_e(Ta,Hn),yo=ue(wo,wo),Io=wo[0],Vn=yo-Io*Io;if(!Vn)return!Za&&Na;var wn=wr*yo/Vn,Oo=-wr*Io/Vn,ps=_e(go,wo),js=Re(go,wn),pl=Re(wo,Oo);we(js,pl);var Qs=ps,hl=ue(js,Qs),Bs=ue(Qs,Qs),Wl=hl*hl-Bs*(ue(js,js)-1);if(!(Wl<0)){var Il=v(Wl),wl=Re(Qs,(-hl-Il)/Bs);if(we(wl,js),wl=Q(wl),!Za)return wl;var io=Na[0],Jo=qa[0],cl=Na[1],Zs=qa[1],gu;Jo<io&&(gu=io,io=Jo,Jo=gu);var Nu=Jo-io,tc=m(Nu-i)<r,Bc=tc||Nu<r;if(!tc&&Zs<cl&&(gu=cl,cl=Zs,Zs=gu),Bc?tc?cl+Zs>0^wl[1]<(m(wl[0]-io)<r?cl:Zs):cl<=wl[1]&&wl[1]<=Zs:Nu>i^(io<=wl[0]&&wl[0]<=Jo)){var Lu=Re(Qs,(-hl+Il)/Bs);return we(Lu,js),[wl,Q(Lu)]}}}function Ln(Na,qa){var Za=Jr?er:i-er,Ta=0;return Na<-Za?Ta|=1:Na>Za&&(Ta|=2),qa<-Za?Ta|=4:qa>Za&&(Ta|=8),Ta}return Wr(Ba,an,pa,Jr?[0,-er]:[-i,er-i])}function fi(er,wr,ai,Jr,Fi,pa){var Ba=er[0],an=er[1],hn=wr[0],Ln=wr[1],Na=0,qa=1,Za=hn-Ba,Ta=Ln-an,Hn;if(Hn=ai-Ba,!(!Za&&Hn>0)){if(Hn/=Za,Za<0){if(Hn<Na)return;Hn<qa&&(qa=Hn)}else if(Za>0){if(Hn>qa)return;Hn>Na&&(Na=Hn)}if(Hn=Fi-Ba,!(!Za&&Hn<0)){if(Hn/=Za,Za<0){if(Hn>qa)return;Hn>Na&&(Na=Hn)}else if(Za>0){if(Hn<Na)return;Hn<qa&&(qa=Hn)}if(Hn=Jr-an,!(!Ta&&Hn>0)){if(Hn/=Ta,Ta<0){if(Hn<Na)return;Hn<qa&&(qa=Hn)}else if(Ta>0){if(Hn>qa)return;Hn>Na&&(Na=Hn)}if(Hn=pa-an,!(!Ta&&Hn<0)){if(Hn/=Ta,Ta<0){if(Hn>qa)return;Hn>Na&&(Na=Hn)}else if(Ta>0){if(Hn<Na)return;Hn<qa&&(qa=Hn)}return Na>0&&(er[0]=Ba+Na*Za,er[1]=an+Na*Ta),qa<1&&(wr[0]=Ba+qa*Za,wr[1]=an+qa*Ta),!0}}}}}var Li=1e9,Ia=-Li;function Fa(er,wr,ai,Jr){function Fi(Ln,Na){return er<=Ln&&Ln<=ai&&wr<=Na&&Na<=Jr}function pa(Ln,Na,qa,Za){var Ta=0,Hn=0;if(Ln==null||(Ta=Ba(Ln,qa))!==(Hn=Ba(Na,qa))||hn(Ln,Na)<0^qa>0)do Za.point(Ta===0||Ta===3?er:ai,Ta>1?Jr:wr);while((Ta=(Ta+qa+4)%4)!==Hn);else Za.point(Na[0],Na[1])}function Ba(Ln,Na){return m(Ln[0]-er)<r?Na>0?0:3:m(Ln[0]-ai)<r?Na>0?2:1:m(Ln[1]-wr)<r?Na>0?1:0:Na>0?3:2}function an(Ln,Na){return hn(Ln.x,Na.x)}function hn(Ln,Na){var qa=Ba(Ln,1),Za=Ba(Na,1);return qa!==Za?qa-Za:qa===0?Na[1]-Ln[1]:qa===1?Ln[0]-Na[0]:qa===2?Ln[1]-Na[1]:Na[0]-Ln[0]}return function(Ln){var Na=Ln,qa=En(),Za,Ta,Hn,go,wo,yo,Io,Vn,wn,Oo,ps,js={point:pl,lineStart:Wl,lineEnd:Il,polygonStart:hl,polygonEnd:Bs};function pl(io,Jo){Fi(io,Jo)&&Na.point(io,Jo)}function Qs(){for(var io=0,Jo=0,cl=Ta.length;Jo<cl;++Jo)for(var Zs=Ta[Jo],gu=1,Nu=Zs.length,tc=Zs[0],Bc,Lu,Oc=tc[0],Pu=tc[1];gu<Nu;++gu)Bc=Oc,Lu=Pu,tc=Zs[gu],Oc=tc[0],Pu=tc[1],Lu<=Jr?Pu>Jr&&(Oc-Bc)*(Jr-Lu)>(Pu-Lu)*(er-Bc)&&++io:Pu<=Jr&&(Oc-Bc)*(Jr-Lu)<(Pu-Lu)*(er-Bc)&&--io;return io}function hl(){Na=qa,Za=[],Ta=[],ps=!0}function Bs(){var io=Qs(),Jo=ps&&io,cl=(Za=x.merge(Za)).length;(Jo||cl)&&(Ln.polygonStart(),Jo&&(Ln.lineStart(),pa(null,null,1,Ln),Ln.lineEnd()),cl&&Nr(Za,an,io,pa,Ln),Ln.polygonEnd()),Na=Ln,Za=Ta=Hn=null}function Wl(){js.point=wl,Ta&&Ta.push(Hn=[]),Oo=!0,wn=!1,Io=Vn=NaN}function Il(){Za&&(wl(go,wo),yo&&wn&&qa.rejoin(),Za.push(qa.result())),js.point=pl,wn&&Na.lineEnd()}function wl(io,Jo){var cl=Fi(io,Jo);if(Ta&&Hn.push([io,Jo]),Oo)go=io,wo=Jo,yo=cl,Oo=!1,cl&&(Na.lineStart(),Na.point(io,Jo));else if(cl&&wn)Na.point(io,Jo);else{var Zs=[Io=Math.max(Ia,Math.min(Li,Io)),Vn=Math.max(Ia,Math.min(Li,Vn))],gu=[io=Math.max(Ia,Math.min(Li,io)),Jo=Math.max(Ia,Math.min(Li,Jo))];fi(Zs,gu,er,wr,ai,Jr)?(wn||(Na.lineStart(),Na.point(Zs[0],Zs[1])),Na.point(gu[0],gu[1]),cl||Na.lineEnd(),ps=!1):cl&&(Na.lineStart(),Na.point(io,Jo),ps=!1)}Io=io,Vn=Jo,wn=cl}return js}}function un(){var er=0,wr=0,ai=960,Jr=500,Fi,pa,Ba;return Ba={stream:function(an){return Fi&&pa===an?Fi:Fi=Fa(er,wr,ai,Jr)(pa=an)},extent:function(an){return arguments.length?(er=+an[0][0],wr=+an[0][1],ai=+an[1][0],Jr=+an[1][1],Fi=pa=null,Ba):[[er,wr],[ai,Jr]]}}}var Bn=S(),Kn,Gn,eo,Ao={sphere:L,point:L,lineStart:An,lineEnd:L,polygonStart:L,polygonEnd:L};function An(){Ao.point=fs,Ao.lineEnd=Eo}function Eo(){Ao.point=Ao.lineEnd=L}function fs(er,wr){er*=c,wr*=c,Kn=er,Gn=g(wr),eo=l(wr),Ao.point=Ls}function Ls(er,wr){er*=c,wr*=c;var ai=g(wr),Jr=l(wr),Fi=m(er-Kn),pa=l(Fi),Ba=g(Fi),an=Jr*Ba,hn=eo*ai-Gn*Jr*pa,Ln=Gn*ai+eo*Jr*pa;Bn.add(T(v(an*an+hn*hn),Ln)),Kn=er,Gn=ai,eo=Jr}function ns(er){return Bn.reset(),U(er,Ao),+Bn}var uo=[null,null],ss={type:"LineString",coordinates:uo};function xs(er,wr){return uo[0]=er,uo[1]=wr,ns(ss)}var el={Feature:function(er,wr){return Co(er.geometry,wr)},FeatureCollection:function(er,wr){for(var ai=er.features,Jr=-1,Fi=ai.length;++Jr<Fi;)if(Co(ai[Jr].geometry,wr))return!0;return!1}},Ss={Sphere:function(){return!0},Point:function(er,wr){return ao(er.coordinates,wr)},MultiPoint:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)if(ao(ai[Jr],wr))return!0;return!1},LineString:function(er,wr){return co(er.coordinates,wr)},MultiLineString:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)if(co(ai[Jr],wr))return!0;return!1},Polygon:function(er,wr){return Ms(er.coordinates,wr)},MultiPolygon:function(er,wr){for(var ai=er.coordinates,Jr=-1,Fi=ai.length;++Jr<Fi;)if(Ms(ai[Jr],wr))return!0;return!1},GeometryCollection:function(er,wr){for(var ai=er.geometries,Jr=-1,Fi=ai.length;++Jr<Fi;)if(Co(ai[Jr],wr))return!0;return!1}};function Co(er,wr){return er&&Ss.hasOwnProperty(er.type)?Ss[er.type](er,wr):!1}function ao(er,wr){return xs(er,wr)===0}function co(er,wr){for(var ai,Jr,Fi,pa=0,Ba=er.length;pa<Ba;pa++){if(Jr=xs(er[pa],wr),Jr===0||pa>0&&(Fi=xs(er[pa],er[pa-1]),Fi>0&&ai<=Fi&&Jr<=Fi&&(ai+Jr-Fi)*(1-Math.pow((ai-Jr)/Fi,2))<o*Fi))return!0;ai=Jr}return!1}function Ms(er,wr){return!!jr(er.map(Gs),ul(wr))}function Gs(er){return er=er.map(ul),er.pop(),er}function ul(er){return[er[0]*c,er[1]*c]}function hs(er,wr){return(er&&el.hasOwnProperty(er.type)?el[er.type]:Co)(er,wr)}function rn(er,wr,ai){var Jr=x.range(er,wr-r,ai).concat(wr);return function(Fi){return Jr.map(function(pa){return[Fi,pa]})}}function Xn(er,wr,ai){var Jr=x.range(er,wr-r,ai).concat(wr);return function(Fi){return Jr.map(function(pa){return[pa,Fi]})}}function tl(){var er,wr,ai,Jr,Fi,pa,Ba,an,hn=10,Ln=hn,Na=90,qa=360,Za,Ta,Hn,go,wo=2.5;function yo(){return{type:"MultiLineString",coordinates:Io()}}function Io(){return x.range(_(Jr/Na)*Na,ai,Na).map(Hn).concat(x.range(_(an/qa)*qa,Ba,qa).map(go)).concat(x.range(_(wr/hn)*hn,er,hn).filter(function(Vn){return m(Vn%Na)>r}).map(Za)).concat(x.range(_(pa/Ln)*Ln,Fi,Ln).filter(function(Vn){return m(Vn%qa)>r}).map(Ta))}return yo.lines=function(){return Io().map(function(Vn){return{type:"LineString",coordinates:Vn}})},yo.outline=function(){return{type:"Polygon",coordinates:[Hn(Jr).concat(go(Ba).slice(1),Hn(ai).reverse().slice(1),go(an).reverse().slice(1))]}},yo.extent=function(Vn){return arguments.length?yo.extentMajor(Vn).extentMinor(Vn):yo.extentMinor()},yo.extentMajor=function(Vn){return arguments.length?(Jr=+Vn[0][0],ai=+Vn[1][0],an=+Vn[0][1],Ba=+Vn[1][1],Jr>ai&&(Vn=Jr,Jr=ai,ai=Vn),an>Ba&&(Vn=an,an=Ba,Ba=Vn),yo.precision(wo)):[[Jr,an],[ai,Ba]]},yo.extentMinor=function(Vn){return arguments.length?(wr=+Vn[0][0],er=+Vn[1][0],pa=+Vn[0][1],Fi=+Vn[1][1],wr>er&&(Vn=wr,wr=er,er=Vn),pa>Fi&&(Vn=pa,pa=Fi,Fi=Vn),yo.precision(wo)):[[wr,pa],[er,Fi]]},yo.step=function(Vn){return arguments.length?yo.stepMajor(Vn).stepMinor(Vn):yo.stepMinor()},yo.stepMajor=function(Vn){return arguments.length?(Na=+Vn[0],qa=+Vn[1],yo):[Na,qa]},yo.stepMinor=function(Vn){return arguments.length?(hn=+Vn[0],Ln=+Vn[1],yo):[hn,Ln]},yo.precision=function(Vn){return arguments.length?(wo=+Vn,Za=rn(pa,Fi,90),Ta=Xn(wr,er,wo),Hn=rn(an,Ba,90),go=Xn(Jr,ai,wo),yo):wo},yo.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function zs(){return tl()()}function so(er,wr){var ai=er[0]*c,Jr=er[1]*c,Fi=wr[0]*c,pa=wr[1]*c,Ba=l(Jr),an=g(Jr),hn=l(pa),Ln=g(pa),Na=Ba*l(ai),qa=Ba*g(ai),Za=hn*l(Fi),Ta=hn*g(Fi),Hn=2*f(v(R(pa-Jr)+Ba*hn*R(Fi-ai))),go=g(Hn),wo=Hn?function(yo){var Io=g(yo*=Hn)/go,Vn=g(Hn-yo)/go,wn=Vn*Na+Io*Za,Oo=Vn*qa+Io*Ta,ps=Vn*an+Io*Ln;return[T(Oo,wn)*h,T(ps,v(wn*wn+Oo*Oo))*h]}:function(){return[ai*h,Jr*h]};return wo.distance=Hn,wo}function $s(er){return er}var Ps=S(),nl=S(),yl,On,Ko,jo,Ys={point:L,lineStart:L,lineEnd:L,polygonStart:function(){Ys.lineStart=Tu,Ys.lineEnd=kl},polygonEnd:function(){Ys.lineStart=Ys.lineEnd=Ys.point=L,Ps.add(m(nl)),nl.reset()},result:function(){var er=Ps/2;return Ps.reset(),er}};function Tu(){Ys.point=Lo}function Lo(er,wr){Ys.point=al,yl=Ko=er,On=jo=wr}function al(er,wr){nl.add(jo*er-Ko*wr),Ko=er,jo=wr}function kl(){al(yl,On)}var Ns=1/0,rl=Ns,Es=-Ns,Us=Es,Zl={point:pu,lineStart:L,lineEnd:L,polygonStart:L,polygonEnd:L,result:function(){var er=[[Ns,rl],[Es,Us]];return Es=Us=-(rl=Ns=1/0),er}};function pu(er,wr){er<Ns&&(Ns=er),er>Es&&(Es=er),wr<rl&&(rl=wr),wr>Us&&(Us=wr)}var kc=0,Au=0,Sf=0,Gc=0,Js=0,yc=0,Zc=0,mu=0,Vl=0,lc,Gu,_l,Cl,Fs={point:ol,lineStart:uc,lineEnd:Sl,polygonStart:function(){Fs.lineStart=vh,Fs.lineEnd=ws},polygonEnd:function(){Fs.point=ol,Fs.lineStart=uc,Fs.lineEnd=Sl},result:function(){var er=Vl?[Zc/Vl,mu/Vl]:yc?[Gc/yc,Js/yc]:Sf?[kc/Sf,Au/Sf]:[NaN,NaN];return kc=Au=Sf=Gc=Js=yc=Zc=mu=Vl=0,er}};function ol(er,wr){kc+=er,Au+=wr,++Sf}function uc(){Fs.point=Kl}function Kl(er,wr){Fs.point=Zu,ol(_l=er,Cl=wr)}function Zu(er,wr){var ai=er-_l,Jr=wr-Cl,Fi=v(ai*ai+Jr*Jr);Gc+=Fi*(_l+er)/2,Js+=Fi*(Cl+wr)/2,yc+=Fi,ol(_l=er,Cl=wr)}function Sl(){Fs.point=ol}function vh(){Fs.point=ph}function ws(){qs(lc,Gu)}function ph(er,wr){Fs.point=qs,ol(lc=_l=er,Gu=Cl=wr)}function qs(er,wr){var ai=er-_l,Jr=wr-Cl,Fi=v(ai*ai+Jr*Jr);Gc+=Fi*(_l+er)/2,Js+=Fi*(Cl+wr)/2,yc+=Fi,Fi=Cl*er-_l*wr,Zc+=Fi*(_l+er),mu+=Fi*(Cl+wr),Vl+=Fi*3,ol(_l=er,Cl=wr)}function xo(er){this._context=er}xo.prototype={_radius:4.5,pointRadius:function(er){return this._radius=er,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(er,wr){switch(this._point){case 0:{this._context.moveTo(er,wr),this._point=1;break}case 1:{this._context.lineTo(er,wr);break}default:{this._context.moveTo(er+this._radius,wr),this._context.arc(er,wr,this._radius,0,s);break}}},result:L};var Kc=S(),Ku,$l,Mf,Cc,uf,su={point:L,lineStart:function(){su.point=Wf},lineEnd:function(){Ku&&Rf($l,Mf),su.point=L},polygonStart:function(){Ku=!0},polygonEnd:function(){Ku=null},result:function(){var er=+Kc;return Kc.reset(),er}};function Wf(er,wr){su.point=Rf,$l=Cc=er,Mf=uf=wr}function Rf(er,wr){Cc-=er,uf-=wr,Kc.add(v(Cc*Cc+uf*uf)),Cc=er,uf=wr}function cf(){this._string=[]}cf.prototype={_radius:4.5,_circle:Wc(4.5),pointRadius:function(er){return(er=+er)!==this._radius&&(this._radius=er,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(er,wr){switch(this._point){case 0:{this._string.push("M",er,",",wr),this._point=1;break}case 1:{this._string.push("L",er,",",wr);break}default:{this._circle==null&&(this._circle=Wc(this._radius)),this._string.push("M",er,",",wr,this._circle);break}}},result:function(){if(this._string.length){var er=this._string.join("");return this._string=[],er}else return null}};function Wc(er){return"m0,"+er+"a"+er+","+er+" 0 1,1 0,"+-2*er+"a"+er+","+er+" 0 1,1 0,"+2*er+"z"}function Df(er,wr){var ai=4.5,Jr,Fi;function pa(Ba){return Ba&&(typeof ai=="function"&&Fi.pointRadius(+ai.apply(this,arguments)),U(Ba,Jr(Fi))),Fi.result()}return pa.area=function(Ba){return U(Ba,Jr(Ys)),Ys.result()},pa.measure=function(Ba){return U(Ba,Jr(su)),su.result()},pa.bounds=function(Ba){return U(Ba,Jr(Zl)),Zl.result()},pa.centroid=function(Ba){return U(Ba,Jr(Fs)),Fs.result()},pa.projection=function(Ba){return arguments.length?(Jr=Ba==null?(er=null,$s):(er=Ba).stream,pa):er},pa.context=function(Ba){return arguments.length?(Fi=Ba==null?(wr=null,new cf):new xo(wr=Ba),typeof ai!="function"&&Fi.pointRadius(ai),pa):wr},pa.pointRadius=function(Ba){return arguments.length?(ai=typeof Ba=="function"?Ba:(Fi.pointRadius(+Ba),+Ba),pa):ai},pa.projection(er).context(wr)}function zf(er){return{stream:$u(er)}}function $u(er){return function(wr){var ai=new Ef;for(var Jr in er)ai[Jr]=er[Jr];return ai.stream=wr,ai}}function Ef(){}Ef.prototype={constructor:Ef,point:function(er,wr){this.stream.point(er,wr)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(er,wr,ai){var Jr=er.clipExtent&&er.clipExtent();return er.scale(150).translate([0,0]),Jr!=null&&er.clipExtent(null),U(ai,er.stream(Zl)),wr(Zl.result()),Jr!=null&&er.clipExtent(Jr),er}function $c(er,wr,ai){return cc(er,function(Jr){var Fi=wr[1][0]-wr[0][0],pa=wr[1][1]-wr[0][1],Ba=Math.min(Fi/(Jr[1][0]-Jr[0][0]),pa/(Jr[1][1]-Jr[0][1])),an=+wr[0][0]+(Fi-Ba*(Jr[1][0]+Jr[0][0]))/2,hn=+wr[0][1]+(pa-Ba*(Jr[1][1]+Jr[0][1]))/2;er.scale(150*Ba).translate([an,hn])},ai)}function lu(er,wr,ai){return $c(er,[[0,0],wr],ai)}function Xc(er,wr,ai){return cc(er,function(Jr){var Fi=+wr,pa=Fi/(Jr[1][0]-Jr[0][0]),Ba=(Fi-pa*(Jr[1][0]+Jr[0][0]))/2,an=-pa*Jr[0][1];er.scale(150*pa).translate([Ba,an])},ai)}function Lc(er,wr,ai){return cc(er,function(Jr){var Fi=+wr,pa=Fi/(Jr[1][1]-Jr[0][1]),Ba=-pa*Jr[0][0],an=(Fi-pa*(Jr[1][1]+Jr[0][1]))/2;er.scale(150*pa).translate([Ba,an])},ai)}var sl=16,kf=l(30*c);function ah(er,wr){return+wr?Jc(er,wr):Ff(er)}function Ff(er){return $u({point:function(wr,ai){wr=er(wr,ai),this.stream.point(wr[0],wr[1])}})}function Jc(er,wr){function ai(Jr,Fi,pa,Ba,an,hn,Ln,Na,qa,Za,Ta,Hn,go,wo){var yo=Ln-Jr,Io=Na-Fi,Vn=yo*yo+Io*Io;if(Vn>4*wr&&go--){var wn=Ba+Za,Oo=an+Ta,ps=hn+Hn,js=v(wn*wn+Oo*Oo+ps*ps),pl=f(ps/=js),Qs=m(m(ps)-1)<r||m(pa-qa)<r?(pa+qa)/2:T(Oo,wn),hl=er(Qs,pl),Bs=hl[0],Wl=hl[1],Il=Bs-Jr,wl=Wl-Fi,io=Io*Il-yo*wl;(io*io/Vn>wr||m((yo*Il+Io*wl)/Vn-.5)>.3||Ba*Za+an*Ta+hn*Hn<kf)&&(ai(Jr,Fi,pa,Ba,an,hn,Bs,Wl,Qs,wn/=js,Oo/=js,ps,go,wo),wo.point(Bs,Wl),ai(Bs,Wl,Qs,wn,Oo,ps,Ln,Na,qa,Za,Ta,Hn,go,wo))}}return function(Jr){var Fi,pa,Ba,an,hn,Ln,Na,qa,Za,Ta,Hn,go,wo={point:yo,lineStart:Io,lineEnd:wn,polygonStart:function(){Jr.polygonStart(),wo.lineStart=Oo},polygonEnd:function(){Jr.polygonEnd(),wo.lineStart=Io}};function yo(pl,Qs){pl=er(pl,Qs),Jr.point(pl[0],pl[1])}function Io(){qa=NaN,wo.point=Vn,Jr.lineStart()}function Vn(pl,Qs){var hl=re([pl,Qs]),Bs=er(pl,Qs);ai(qa,Za,Na,Ta,Hn,go,qa=Bs[0],Za=Bs[1],Na=pl,Ta=hl[0],Hn=hl[1],go=hl[2],sl,Jr),Jr.point(qa,Za)}function wn(){wo.point=yo,Jr.lineEnd()}function Oo(){Io(),wo.point=ps,wo.lineEnd=js}function ps(pl,Qs){Vn(Fi=pl,Qs),pa=qa,Ba=Za,an=Ta,hn=Hn,Ln=go,wo.point=Vn}function js(){ai(qa,Za,Na,Ta,Hn,go,pa,Ba,Fi,an,hn,Ln,sl,Jr),wo.lineEnd=wn,wn()}return wo}}var Xf=$u({point:function(er,wr){this.stream.point(er*c,wr*c)}});function Fu(er){return $u({point:function(wr,ai){var Jr=er(wr,ai);return this.stream.point(Jr[0],Jr[1])}})}function Bf(er,wr,ai,Jr,Fi){function pa(Ba,an){return Ba*=Jr,an*=Fi,[wr+er*Ba,ai-er*an]}return pa.invert=function(Ba,an){return[(Ba-wr)/er*Jr,(ai-an)/er*Fi]},pa}function Ll(er,wr,ai,Jr,Fi,pa){var Ba=l(pa),an=g(pa),hn=Ba*er,Ln=an*er,Na=Ba/er,qa=an/er,Za=(an*ai-Ba*wr)/er,Ta=(an*wr+Ba*ai)/er;function Hn(go,wo){return go*=Jr,wo*=Fi,[hn*go-Ln*wo+wr,ai-Ln*go-hn*wo]}return Hn.invert=function(go,wo){return[Jr*(Na*go-qa*wo+Za),Fi*(Ta-qa*go-Na*wo)]},Hn}function Bu(er){return Ic(function(){return er})()}function Ic(er){var wr,ai=150,Jr=480,Fi=250,pa=0,Ba=0,an=0,hn=0,Ln=0,Na,qa=0,Za=1,Ta=1,Hn=null,go=mr,wo=null,yo,Io,Vn,wn=$s,Oo=.5,ps,js,pl,Qs,hl;function Bs(io){return pl(io[0]*c,io[1]*c)}function Wl(io){return io=pl.invert(io[0],io[1]),io&&[io[0]*h,io[1]*h]}Bs.stream=function(io){return Qs&&hl===io?Qs:Qs=Xf(Fu(Na)(go(ps(wn(hl=io)))))},Bs.preclip=function(io){return arguments.length?(go=io,Hn=void 0,wl()):go},Bs.postclip=function(io){return arguments.length?(wn=io,wo=yo=Io=Vn=null,wl()):wn},Bs.clipAngle=function(io){return arguments.length?(go=+io?Si(Hn=io*c):(Hn=null,mr),wl()):Hn*h},Bs.clipExtent=function(io){return arguments.length?(wn=io==null?(wo=yo=Io=Vn=null,$s):Fa(wo=+io[0][0],yo=+io[0][1],Io=+io[1][0],Vn=+io[1][1]),wl()):wo==null?null:[[wo,yo],[Io,Vn]]},Bs.scale=function(io){return arguments.length?(ai=+io,Il()):ai},Bs.translate=function(io){return arguments.length?(Jr=+io[0],Fi=+io[1],Il()):[Jr,Fi]},Bs.center=function(io){return arguments.length?(pa=io[0]%360*c,Ba=io[1]%360*c,Il()):[pa*h,Ba*h]},Bs.rotate=function(io){return arguments.length?(an=io[0]%360*c,hn=io[1]%360*c,Ln=io.length>2?io[2]%360*c:0,Il()):[an*h,hn*h,Ln*h]},Bs.angle=function(io){return arguments.length?(qa=io%360*c,Il()):qa*h},Bs.reflectX=function(io){return arguments.length?(Za=io?-1:1,Il()):Za<0},Bs.reflectY=function(io){return arguments.length?(Ta=io?-1:1,Il()):Ta<0},Bs.precision=function(io){return arguments.length?(ps=ah(js,Oo=io*io),wl()):v(Oo)},Bs.fitExtent=function(io,Jo){return $c(Bs,io,Jo)},Bs.fitSize=function(io,Jo){return lu(Bs,io,Jo)},Bs.fitWidth=function(io,Jo){return Xc(Bs,io,Jo)},Bs.fitHeight=function(io,Jo){return Lc(Bs,io,Jo)};function Il(){var io=Ll(ai,0,0,Za,Ta,qa).apply(null,wr(pa,Ba)),Jo=(qa?Ll:Bf)(ai,Jr-io[0],Fi-io[1],Za,Ta,qa);return Na=Wi(an,hn,Ln),js=ii(wr,Jo),pl=ii(Na,js),ps=ah(js,Oo),wl()}function wl(){return Qs=hl=null,Bs}return function(){return wr=er.apply(this,arguments),Bs.invert=wr.invert&&Wl,Il()}}function xl(er){var wr=0,ai=i/3,Jr=Ic(er),Fi=Jr(wr,ai);return Fi.parallels=function(pa){return arguments.length?Jr(wr=pa[0]*c,ai=pa[1]*c):[wr*h,ai*h]},Fi}function _c(er){var wr=l(er);function ai(Jr,Fi){return[Jr*wr,g(Fi)/wr]}return ai.invert=function(Jr,Fi){return[Jr/wr,f(Fi*wr)]},ai}function Eu(er,wr){var ai=g(er),Jr=(ai+g(wr))/2;if(m(Jr)<r)return _c(er);var Fi=1+ai*(2*Jr-ai),pa=v(Fi)/Jr;function Ba(an,hn){var Ln=v(Fi-2*Jr*g(hn))/Jr;return[Ln*g(an*=Jr),pa-Ln*l(an)]}return Ba.invert=function(an,hn){var Ln=pa-hn,Na=T(an,m(Ln))*b(Ln);return Ln*Jr<0&&(Na-=i*b(an)*b(Ln)),[Na/Jr,f((Fi-(an*an+Ln*Ln)*Jr*Jr)/(2*Jr))]},Ba}function Iu(){return xl(Eu).scale(155.424).center([0,33.6442])}function Nl(){return Iu().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Of(er){var wr=er.length;return{point:function(ai,Jr){for(var Fi=-1;++Fi<wr;)er[Fi].point(ai,Jr)},sphere:function(){for(var ai=-1;++ai<wr;)er[ai].sphere()},lineStart:function(){for(var ai=-1;++ai<wr;)er[ai].lineStart()},lineEnd:function(){for(var ai=-1;++ai<wr;)er[ai].lineEnd()},polygonStart:function(){for(var ai=-1;++ai<wr;)er[ai].polygonStart()},polygonEnd:function(){for(var ai=-1;++ai<wr;)er[ai].polygonEnd()}}}function Yf(){var er,wr,ai=Nl(),Jr,Fi=Iu().rotate([154,0]).center([-2,58.5]).parallels([55,65]),pa,Ba=Iu().rotate([157,0]).center([-3,19.9]).parallels([8,18]),an,hn,Ln={point:function(Za,Ta){hn=[Za,Ta]}};function Na(Za){var Ta=Za[0],Hn=Za[1];return hn=null,Jr.point(Ta,Hn),hn||(pa.point(Ta,Hn),hn)||(an.point(Ta,Hn),hn)}Na.invert=function(Za){var Ta=ai.scale(),Hn=ai.translate(),go=(Za[0]-Hn[0])/Ta,wo=(Za[1]-Hn[1])/Ta;return(wo>=.12&&wo<.234&&go>=-.425&&go<-.214?Fi:wo>=.166&&wo<.234&&go>=-.214&&go<-.115?Ba:ai).invert(Za)},Na.stream=function(Za){return er&&wr===Za?er:er=Of([ai.stream(wr=Za),Fi.stream(Za),Ba.stream(Za)])},Na.precision=function(Za){return arguments.length?(ai.precision(Za),Fi.precision(Za),Ba.precision(Za),qa()):ai.precision()},Na.scale=function(Za){return arguments.length?(ai.scale(Za),Fi.scale(Za*.35),Ba.scale(Za),Na.translate(ai.translate())):ai.scale()},Na.translate=function(Za){if(!arguments.length)return ai.translate();var Ta=ai.scale(),Hn=+Za[0],go=+Za[1];return Jr=ai.translate(Za).clipExtent([[Hn-.455*Ta,go-.238*Ta],[Hn+.455*Ta,go+.238*Ta]]).stream(Ln),pa=Fi.translate([Hn-.307*Ta,go+.201*Ta]).clipExtent([[Hn-.425*Ta+r,go+.12*Ta+r],[Hn-.214*Ta-r,go+.234*Ta-r]]).stream(Ln),an=Ba.translate([Hn-.205*Ta,go+.212*Ta]).clipExtent([[Hn-.214*Ta+r,go+.166*Ta+r],[Hn-.115*Ta-r,go+.234*Ta-r]]).stream(Ln),qa()},Na.fitExtent=function(Za,Ta){return $c(Na,Za,Ta)},Na.fitSize=function(Za,Ta){return lu(Na,Za,Ta)},Na.fitWidth=function(Za,Ta){return Xc(Na,Za,Ta)},Na.fitHeight=function(Za,Ta){return Lc(Na,Za,Ta)};function qa(){return er=wr=null,Na}return Na.scale(1070)}function Wu(er){return function(wr,ai){var Jr=l(wr),Fi=l(ai),pa=er(Jr*Fi);return[pa*Fi*g(wr),pa*g(ai)]}}function Pc(er){return function(wr,ai){var Jr=v(wr*wr+ai*ai),Fi=er(Jr),pa=g(Fi),Ba=l(Fi);return[T(wr*pa,Jr*Ba),f(Jr&&ai*pa/Jr)]}}var xc=Wu(function(er){return v(2/(1+er))});xc.invert=Pc(function(er){return 2*f(er/2)});function _h(){return Bu(xc).scale(124.75).clipAngle(180-.001)}var ff=Wu(function(er){return(er=y(er))&&er/g(er)});ff.invert=Pc(function(er){return er});function yf(){return Bu(ff).scale(79.4188).clipAngle(180-.001)}function Xu(er,wr){return[er,A(u((n+wr)/2))]}Xu.invert=function(er,wr){return[er,2*d(w(wr))-n]};function hf(){return hu(Xu).scale(961/s)}function hu(er){var wr=Bu(er),ai=wr.center,Jr=wr.scale,Fi=wr.translate,pa=wr.clipExtent,Ba=null,an,hn,Ln;wr.scale=function(qa){return arguments.length?(Jr(qa),Na()):Jr()},wr.translate=function(qa){return arguments.length?(Fi(qa),Na()):Fi()},wr.center=function(qa){return arguments.length?(ai(qa),Na()):ai()},wr.clipExtent=function(qa){return arguments.length?(qa==null?Ba=an=hn=Ln=null:(Ba=+qa[0][0],an=+qa[0][1],hn=+qa[1][0],Ln=+qa[1][1]),Na()):Ba==null?null:[[Ba,an],[hn,Ln]]};function Na(){var qa=i*Jr(),Za=wr(xa(wr.rotate()).invert([0,0]));return pa(Ba==null?[[Za[0]-qa,Za[1]-qa],[Za[0]+qa,Za[1]+qa]]:er===Xu?[[Math.max(Za[0]-qa,Ba),an],[Math.min(Za[0]+qa,hn),Ln]]:[[Ba,Math.max(Za[1]-qa,an)],[hn,Math.min(Za[1]+qa,Ln)]])}return Na()}function Qc(er){return u((n+er)/2)}function nh(er,wr){var ai=l(er),Jr=er===wr?g(er):A(ai/l(wr))/A(Qc(wr)/Qc(er)),Fi=ai*M(Qc(er),Jr)/Jr;if(!Jr)return Xu;function pa(Ba,an){Fi>0?an<-n+r&&(an=-n+r):an>n-r&&(an=n-r);var hn=Fi/M(Qc(an),Jr);return[hn*g(Jr*Ba),Fi-hn*l(Jr*Ba)]}return pa.invert=function(Ba,an){var hn=Fi-an,Ln=b(Jr)*v(Ba*Ba+hn*hn),Na=T(Ba,m(hn))*b(hn);return hn*Jr<0&&(Na-=i*b(Ba)*b(hn)),[Na/Jr,2*d(M(Fi/Ln,1/Jr))-n]},pa}function _f(){return xl(nh).scale(109.5).parallels([30,30])}function bl(er,wr){return[er,wr]}bl.invert=bl;function ku(){return Bu(bl).scale(152.63)}function Ou(er,wr){var ai=l(er),Jr=er===wr?g(er):(ai-l(wr))/(wr-er),Fi=ai/Jr+er;if(m(Jr)<r)return bl;function pa(Ba,an){var hn=Fi-an,Ln=Jr*Ba;return[hn*g(Ln),Fi-hn*l(Ln)]}return pa.invert=function(Ba,an){var hn=Fi-an,Ln=T(Ba,m(hn))*b(hn);return hn*Jr<0&&(Ln-=i*b(Ba)*b(hn)),[Ln/Jr,Fi-b(Jr)*v(Ba*Ba+hn*hn)]},pa}function Cf(){return xl(Ou).scale(131.154).center([0,13.9389])}var Ml=1.340264,df=-.081106,Rc=893e-6,Ju=.003796,xf=v(3)/2,Qu=12;function ef(er,wr){var ai=f(xf*g(wr)),Jr=ai*ai,Fi=Jr*Jr*Jr;return[er*l(ai)/(xf*(Ml+3*df*Jr+Fi*(7*Rc+9*Ju*Jr))),ai*(Ml+df*Jr+Fi*(Rc+Ju*Jr))]}ef.invert=function(er,wr){for(var ai=wr,Jr=ai*ai,Fi=Jr*Jr*Jr,pa=0,Ba,an,hn;pa<Qu&&(an=ai*(Ml+df*Jr+Fi*(Rc+Ju*Jr))-wr,hn=Ml+3*df*Jr+Fi*(7*Rc+9*Ju*Jr),ai-=Ba=an/hn,Jr=ai*ai,Fi=Jr*Jr*Jr,!(m(Ba)<o));++pa);return[xf*er*(Ml+3*df*Jr+Fi*(7*Rc+9*Ju*Jr))/l(ai),f(g(ai)/xf)]};function Lf(){return Bu(ef).scale(177.158)}function du(er,wr){var ai=l(wr),Jr=l(er)*ai;return[ai*g(er)/Jr,g(wr)/Jr]}du.invert=Pc(d);function Nf(){return Bu(du).scale(144.049).clipAngle(60)}function ec(){var er=1,wr=0,ai=0,Jr=1,Fi=1,pa=0,Ba,an,hn=null,Ln,Na,qa,Za=1,Ta=1,Hn=$u({point:function(wn,Oo){var ps=Vn([wn,Oo]);this.stream.point(ps[0],ps[1])}}),go=$s,wo,yo;function Io(){return Za=er*Jr,Ta=er*Fi,wo=yo=null,Vn}function Vn(wn){var Oo=wn[0]*Za,ps=wn[1]*Ta;if(pa){var js=ps*Ba-Oo*an;Oo=Oo*Ba+ps*an,ps=js}return[Oo+wr,ps+ai]}return Vn.invert=function(wn){var Oo=wn[0]-wr,ps=wn[1]-ai;if(pa){var js=ps*Ba+Oo*an;Oo=Oo*Ba-ps*an,ps=js}return[Oo/Za,ps/Ta]},Vn.stream=function(wn){return wo&&yo===wn?wo:wo=Hn(go(yo=wn))},Vn.postclip=function(wn){return arguments.length?(go=wn,hn=Ln=Na=qa=null,Io()):go},Vn.clipExtent=function(wn){return arguments.length?(go=wn==null?(hn=Ln=Na=qa=null,$s):Fa(hn=+wn[0][0],Ln=+wn[0][1],Na=+wn[1][0],qa=+wn[1][1]),Io()):hn==null?null:[[hn,Ln],[Na,qa]]},Vn.scale=function(wn){return arguments.length?(er=+wn,Io()):er},Vn.translate=function(wn){return arguments.length?(wr=+wn[0],ai=+wn[1],Io()):[wr,ai]},Vn.angle=function(wn){return arguments.length?(pa=wn%360*c,an=g(pa),Ba=l(pa),Io()):pa*h},Vn.reflectX=function(wn){return arguments.length?(Jr=wn?-1:1,Io()):Jr<0},Vn.reflectY=function(wn){return arguments.length?(Fi=wn?-1:1,Io()):Fi<0},Vn.fitExtent=function(wn,Oo){return $c(Vn,wn,Oo)},Vn.fitSize=function(wn,Oo){return lu(Vn,wn,Oo)},Vn.fitWidth=function(wn,Oo){return Xc(Vn,wn,Oo)},Vn.fitHeight=function(wn,Oo){return Lc(Vn,wn,Oo)},Vn}function Dc(er,wr){var ai=wr*wr,Jr=ai*ai;return[er*(.8707-.131979*ai+Jr*(-.013791+Jr*(.003971*ai-.001529*Jr))),wr*(1.007226+ai*(.015085+Jr*(-.044475+.028874*ai-.005916*Jr)))]}Dc.invert=function(er,wr){var ai=wr,Jr=25,Fi;do{var pa=ai*ai,Ba=pa*pa;ai-=Fi=(ai*(1.007226+pa*(.015085+Ba*(-.044475+.028874*pa-.005916*Ba)))-wr)/(1.007226+pa*(.015085*3+Ba*(-.044475*7+.028874*9*pa-.005916*11*Ba)))}while(m(Fi)>r&&--Jr>0);return[er/(.8707+(pa=ai*ai)*(-.131979+pa*(-.013791+pa*pa*pa*(.003971-.001529*pa)))),ai]};function bc(){return Bu(Dc).scale(175.295)}function Jl(er,wr){return[l(wr)*g(er),g(wr)]}Jl.invert=Pc(f);function Cu(){return Bu(Jl).scale(249.5).clipAngle(90+r)}function zc(er,wr){var ai=l(wr),Jr=1+l(er)*ai;return[ai*g(er)/Jr,g(wr)/Jr]}zc.invert=Pc(function(er){return 2*d(er)});function tf(){return Bu(zc).scale(250).clipAngle(142)}function fc(er,wr){return[A(u((n+wr)/2)),-er]}fc.invert=function(er,wr){return[-wr,2*d(w(er))-n]};function Fc(){var er=hu(fc),wr=er.center,ai=er.rotate;return er.center=function(Jr){return arguments.length?wr([-Jr[1],Jr[0]]):(Jr=wr(),[Jr[1],-Jr[0]])},er.rotate=function(Jr){return arguments.length?ai([Jr[0],Jr[1],Jr.length>2?Jr[2]+90:90]):(Jr=ai(),[Jr[0],Jr[1],Jr[2]-90])},ai([0,0,90]).scale(159.155)}p.geoAlbers=Nl,p.geoAlbersUsa=Yf,p.geoArea=j,p.geoAzimuthalEqualArea=_h,p.geoAzimuthalEqualAreaRaw=xc,p.geoAzimuthalEquidistant=yf,p.geoAzimuthalEquidistantRaw=ff,p.geoBounds=Ne,p.geoCentroid=Br,p.geoCircle=_n,p.geoClipAntimeridian=mr,p.geoClipCircle=Si,p.geoClipExtent=un,p.geoClipRectangle=Fa,p.geoConicConformal=_f,p.geoConicConformalRaw=nh,p.geoConicEqualArea=Iu,p.geoConicEqualAreaRaw=Eu,p.geoConicEquidistant=Cf,p.geoConicEquidistantRaw=Ou,p.geoContains=hs,p.geoDistance=xs,p.geoEqualEarth=Lf,p.geoEqualEarthRaw=ef,p.geoEquirectangular=ku,p.geoEquirectangularRaw=bl,p.geoGnomonic=Nf,p.geoGnomonicRaw=du,p.geoGraticule=tl,p.geoGraticule10=zs,p.geoIdentity=ec,p.geoInterpolate=so,p.geoLength=ns,p.geoMercator=hf,p.geoMercatorRaw=Xu,p.geoNaturalEarth1=bc,p.geoNaturalEarth1Raw=Dc,p.geoOrthographic=Cu,p.geoOrthographicRaw=Jl,p.geoPath=Df,p.geoProjection=Bu,p.geoProjectionMutator=Ic,p.geoRotation=xa,p.geoStereographic=tf,p.geoStereographicRaw=zc,p.geoStream=U,p.geoTransform=zf,p.geoTransverseMercator=Fc,p.geoTransverseMercatorRaw=fc,Object.defineProperty(p,"__esModule",{value:!0})})}}),fP=De({"node_modules/d3-geo-projection/dist/d3-geo-projection.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y,m5(),t1()):x(p.d3=p.d3||{},p.d3,p.d3)})(Y,function(p,x,S){"use strict";var E=Math.abs,e=Math.atan,t=Math.atan2,r=Math.cos,o=Math.exp,i=Math.floor,n=Math.log,a=Math.max,s=Math.min,h=Math.pow,c=Math.round,m=Math.sign||function(Ge){return Ge>0?1:Ge<0?-1:0},d=Math.sin,T=Math.tan,l=1e-6,_=1e-12,w=Math.PI,A=w/2,M=w/4,g=Math.SQRT1_2,b=F(2),v=F(w),u=w*2,y=180/w,f=w/180;function R(Ge){return Ge?Ge/Math.sin(Ge):1}function L(Ge){return Ge>1?A:Ge<-1?-A:Math.asin(Ge)}function z(Ge){return Ge>1?0:Ge<-1?w:Math.acos(Ge)}function F(Ge){return Ge>0?Math.sqrt(Ge):0}function N(Ge){return Ge=o(2*Ge),(Ge-1)/(Ge+1)}function B(Ge){return(o(Ge)-o(-Ge))/2}function I(Ge){return(o(Ge)+o(-Ge))/2}function U(Ge){return n(Ge+F(Ge*Ge+1))}function O(Ge){return n(Ge+F(Ge*Ge-1))}function X(Ge){var Ze=T(Ge/2),ot=2*n(r(Ge/2))/(Ze*Ze);function dt(Ct,wt){var Dt=r(Ct),fr=r(wt),_r=d(wt),kr=fr*Dt,Vr=-((1-kr?n((1+kr)/2)/(1-kr):-.5)+ot/(1+kr));return[Vr*fr*d(Ct),Vr*_r]}return dt.invert=function(Ct,wt){var Dt=F(Ct*Ct+wt*wt),fr=-Ge/2,_r=50,kr;if(!Dt)return[0,0];do{var Vr=fr/2,Qr=r(Vr),_i=d(Vr),Pi=_i/Qr,qi=-n(E(Qr));fr-=kr=(2/Pi*qi-ot*Pi-Dt)/(-qi/(_i*_i)+1-ot/(2*Qr*Qr))*(Qr<0?.7:1)}while(E(kr)>l&&--_r>0);var ga=d(fr);return[t(Ct*ga,Dt*r(fr)),L(wt*ga/Dt)]},dt}function J(){var Ge=A,Ze=x.geoProjectionMutator(X),ot=Ze(Ge);return ot.radius=function(dt){return arguments.length?Ze(Ge=dt*f):Ge*y},ot.scale(179.976).clipAngle(147)}function se(Ge,Ze){var ot=r(Ze),dt=R(z(ot*r(Ge/=2)));return[2*ot*d(Ge)*dt,d(Ze)*dt]}se.invert=function(Ge,Ze){if(!(Ge*Ge+4*Ze*Ze>w*w+l)){var ot=Ge,dt=Ze,Ct=25;do{var wt=d(ot),Dt=d(ot/2),fr=r(ot/2),_r=d(dt),kr=r(dt),Vr=d(2*dt),Qr=_r*_r,_i=kr*kr,Pi=Dt*Dt,qi=1-_i*fr*fr,ga=qi?z(kr*fr)*F(Qa=1/qi):Qa=0,Qa,$a=2*ga*kr*Dt-Ge,yn=ga*_r-Ze,qn=Qa*(_i*Pi+ga*kr*fr*Qr),po=Qa*(.5*wt*Vr-ga*2*_r*Dt),to=Qa*.25*(Vr*Dt-ga*_r*_i*wt),Vo=Qa*(Qr*fr+ga*Pi*kr),bs=po*to-Vo*qn;if(!bs)break;var Ho=(yn*po-$a*Vo)/bs,ds=($a*to-yn*qn)/bs;ot-=Ho,dt-=ds}while((E(Ho)>l||E(ds)>l)&&--Ct>0);return[ot,dt]}};function le(){return x.geoProjection(se).scale(152.63)}function ce(Ge){var Ze=d(Ge),ot=r(Ge),dt=Ge>=0?1:-1,Ct=T(dt*Ge),wt=(1+Ze-ot)/2;function Dt(fr,_r){var kr=r(_r),Vr=r(fr/=2);return[(1+kr)*d(fr),(dt*_r>-t(Vr,Ct)-.001?0:-dt*10)+wt+d(_r)*ot-(1+kr)*Ze*Vr]}return Dt.invert=function(fr,_r){var kr=0,Vr=0,Qr=50;do{var _i=r(kr),Pi=d(kr),qi=r(Vr),ga=d(Vr),Qa=1+qi,$a=Qa*Pi-fr,yn=wt+ga*ot-Qa*Ze*_i-_r,qn=Qa*_i/2,po=-Pi*ga,to=Ze*Qa*Pi/2,Vo=ot*qi+Ze*_i*ga,bs=po*to-Vo*qn,Ho=(yn*po-$a*Vo)/bs/2,ds=($a*to-yn*qn)/bs;E(ds)>2&&(ds/=2),kr-=Ho,Vr-=ds}while((E(Ho)>l||E(ds)>l)&&--Qr>0);return dt*Vr>-t(r(kr),Ct)-.001?[kr*2,Vr]:null},Dt}function q(){var Ge=20*f,Ze=Ge>=0?1:-1,ot=T(Ze*Ge),dt=x.geoProjectionMutator(ce),Ct=dt(Ge),wt=Ct.stream;return Ct.parallel=function(Dt){return arguments.length?(ot=T((Ze=(Ge=Dt*f)>=0?1:-1)*Ge),dt(Ge)):Ge*y},Ct.stream=function(Dt){var fr=Ct.rotate(),_r=wt(Dt),kr=(Ct.rotate([0,0]),wt(Dt)),Vr=Ct.precision();return Ct.rotate(fr),_r.sphere=function(){kr.polygonStart(),kr.lineStart();for(var Qr=Ze*-180;Ze*Qr<180;Qr+=Ze*90)kr.point(Qr,Ze*90);if(Ge)for(;Ze*(Qr-=3*Ze*Vr)>=-180;)kr.point(Qr,Ze*-t(r(Qr*f/2),ot)*y);kr.lineEnd(),kr.polygonEnd()},_r},Ct.scale(218.695).center([0,28.0974])}function Z(Ge,Ze){var ot=T(Ze/2),dt=F(1-ot*ot),Ct=1+dt*r(Ge/=2),wt=d(Ge)*dt/Ct,Dt=ot/Ct,fr=wt*wt,_r=Dt*Dt;return[4/3*wt*(3+fr-3*_r),4/3*Dt*(3+3*fr-_r)]}Z.invert=function(Ge,Ze){if(Ge*=3/8,Ze*=3/8,!Ge&&E(Ze)>1)return null;var ot=Ge*Ge,dt=Ze*Ze,Ct=1+ot+dt,wt=F((Ct-F(Ct*Ct-4*Ze*Ze))/2),Dt=L(wt)/3,fr=wt?O(E(Ze/wt))/3:U(E(Ge))/3,_r=r(Dt),kr=I(fr),Vr=kr*kr-_r*_r;return[m(Ge)*2*t(B(fr)*_r,.25-Vr),m(Ze)*2*t(kr*d(Dt),.25+Vr)]};function ee(){return x.geoProjection(Z).scale(66.1603)}var V=F(8),oe=n(1+b);function ie(Ge,Ze){var ot=E(Ze);return ot<M?[Ge,n(T(M+Ze/2))]:[Ge*r(ot)*(2*b-1/d(ot)),m(Ze)*(2*b*(ot-M)-n(T(ot/2)))]}ie.invert=function(Ge,Ze){if((wt=E(Ze))<oe)return[Ge,2*e(o(Ze))-A];var ot=M,dt=25,Ct,wt;do{var Dt=r(ot/2),fr=T(ot/2);ot-=Ct=(V*(ot-M)-n(fr)-wt)/(V-Dt*Dt/(2*fr))}while(E(Ct)>_&&--dt>0);return[Ge/(r(ot)*(V-1/d(ot))),m(Ze)*ot]};function j(){return x.geoProjection(ie).scale(112.314)}function Q(Ge){var Ze=2*w/Ge;function ot(dt,Ct){var wt=x.geoAzimuthalEquidistantRaw(dt,Ct);if(E(dt)>A){var Dt=t(wt[1],wt[0]),fr=F(wt[0]*wt[0]+wt[1]*wt[1]),_r=Ze*c((Dt-A)/Ze)+A,kr=t(d(Dt-=_r),2-r(Dt));Dt=_r+L(w/fr*d(kr))-kr,wt[0]=fr*r(Dt),wt[1]=fr*d(Dt)}return wt}return ot.invert=function(dt,Ct){var wt=F(dt*dt+Ct*Ct);if(wt>A){var Dt=t(Ct,dt),fr=Ze*c((Dt-A)/Ze)+A,_r=Dt>fr?-1:1,kr=wt*r(fr-Dt),Vr=1/T(_r*z((kr-w)/F(w*(w-2*kr)+wt*wt)));Dt=fr+2*e((Vr+_r*F(Vr*Vr-3))/3),dt=wt*r(Dt),Ct=wt*d(Dt)}return x.geoAzimuthalEquidistantRaw.invert(dt,Ct)},ot}function re(){var Ge=5,Ze=x.geoProjectionMutator(Q),ot=Ze(Ge),dt=ot.stream,Ct=.01,wt=-r(Ct*f),Dt=d(Ct*f);return ot.lobes=function(fr){return arguments.length?Ze(Ge=+fr):Ge},ot.stream=function(fr){var _r=ot.rotate(),kr=dt(fr),Vr=(ot.rotate([0,0]),dt(fr));return ot.rotate(_r),kr.sphere=function(){Vr.polygonStart(),Vr.lineStart();for(var Qr=0,_i=360/Ge,Pi=2*w/Ge,qi=90-180/Ge,ga=A;Qr<Ge;++Qr,qi-=_i,ga-=Pi)Vr.point(t(Dt*r(ga),wt)*y,L(Dt*d(ga))*y),qi<-90?(Vr.point(-90,-180-qi-Ct),Vr.point(-90,-180-qi+Ct)):(Vr.point(90,qi+Ct),Vr.point(90,qi-Ct));Vr.lineEnd(),Vr.polygonEnd()},kr},ot.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function ue(Ge,Ze){if(arguments.length<2&&(Ze=Ge),Ze===1)return x.geoAzimuthalEqualAreaRaw;if(Ze===1/0)return _e;function ot(dt,Ct){var wt=x.geoAzimuthalEqualAreaRaw(dt/Ze,Ct);return wt[0]*=Ge,wt}return ot.invert=function(dt,Ct){var wt=x.geoAzimuthalEqualAreaRaw.invert(dt/Ge,Ct);return wt[0]*=Ze,wt},ot}function _e(Ge,Ze){return[Ge*r(Ze)/r(Ze/=2),2*d(Ze)]}_e.invert=function(Ge,Ze){var ot=2*L(Ze/2);return[Ge*r(ot/2)/r(ot),ot]};function we(){var Ge=2,Ze=x.geoProjectionMutator(ue),ot=Ze(Ge);return ot.coefficient=function(dt){return arguments.length?Ze(Ge=+dt):Ge},ot.scale(169.529)}function Re(Ge,Ze,ot){var dt=100,Ct,wt,Dt;ot=ot===void 0?0:+ot,Ze=+Ze;do wt=Ge(ot),Dt=Ge(ot+l),wt===Dt&&(Dt=wt+l),ot-=Ct=-1*l*(wt-Ze)/(wt-Dt);while(dt-- >0&&E(Ct)>l);return dt<0?NaN:ot}function ze(Ge,Ze,ot){return Ze===void 0&&(Ze=40),ot===void 0&&(ot=_),function(dt,Ct,wt,Dt){var fr,_r,kr;wt=wt===void 0?0:+wt,Dt=Dt===void 0?0:+Dt;for(var Vr=0;Vr<Ze;Vr++){var Qr=Ge(wt,Dt),_i=Qr[0]-dt,Pi=Qr[1]-Ct;if(E(_i)<ot&&E(Pi)<ot)break;var qi=_i*_i+Pi*Pi;if(qi>fr){wt-=_r/=2,Dt-=kr/=2;continue}fr=qi;var ga=(wt>0?-1:1)*ot,Qa=(Dt>0?-1:1)*ot,$a=Ge(wt+ga,Dt),yn=Ge(wt,Dt+Qa),qn=($a[0]-Qr[0])/ga,po=($a[1]-Qr[1])/ga,to=(yn[0]-Qr[0])/Qa,Vo=(yn[1]-Qr[1])/Qa,bs=Vo*qn-po*to,Ho=(E(bs)<.5?.5:1)/bs;if(_r=(Pi*to-_i*Vo)*Ho,kr=(_i*po-Pi*qn)*Ho,wt+=_r,Dt+=kr,E(_r)<ot&&E(kr)<ot)break}return[wt,Dt]}}function Xe(){var Ge=ue(1.68,2),Ze=1.4,ot=12;function dt(Ct,wt){if(Ct+wt<-Ze){var Dt=(Ct-wt+1.6)*(Ct+wt+Ze)/8;Ct+=Dt,wt-=.8*Dt*d(wt+w/2)}var fr=Ge(Ct,wt),_r=(1-r(Ct*wt))/ot;return fr[1]<0&&(fr[0]*=1+_r),fr[1]>0&&(fr[1]*=1+_r/1.5*fr[0]*fr[0]),fr}return dt.invert=ze(dt),dt}function tt(){return x.geoProjection(Xe()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function it(Ge,Ze){var ot=Ge*d(Ze),dt=30,Ct;do Ze-=Ct=(Ze+d(Ze)-ot)/(1+r(Ze));while(E(Ct)>l&&--dt>0);return Ze/2}function et(Ge,Ze,ot){function dt(Ct,wt){return[Ge*Ct*r(wt=it(ot,wt)),Ze*d(wt)]}return dt.invert=function(Ct,wt){return wt=L(wt/Ze),[Ct/(Ge*r(wt)),L((2*wt+d(2*wt))/ot)]},dt}var nt=et(b/A,b,w);function Ae(){return x.geoProjection(nt).scale(169.529)}var me=2.00276,fe=1.11072;function Be(Ge,Ze){var ot=it(w,Ze);return[me*Ge/(1/r(Ze)+fe/r(ot)),(Ze+b*d(ot))/me]}Be.invert=function(Ge,Ze){var ot=me*Ze,dt=Ze<0?-M:M,Ct=25,wt,Dt;do Dt=ot-b*d(dt),dt-=wt=(d(2*dt)+2*dt-w*d(Dt))/(2*r(2*dt)+2+w*r(Dt)*b*r(dt));while(E(wt)>l&&--Ct>0);return Dt=ot-b*d(dt),[Ge*(1/r(Dt)+fe/r(dt))/me,Dt]};function Qe(){return x.geoProjection(Be).scale(160.857)}function at(Ge){var Ze=0,ot=x.geoProjectionMutator(Ge),dt=ot(Ze);return dt.parallel=function(Ct){return arguments.length?ot(Ze=Ct*f):Ze*y},dt}function $e(Ge,Ze){return[Ge*r(Ze),Ze]}$e.invert=function(Ge,Ze){return[Ge/r(Ze),Ze]};function It(){return x.geoProjection($e).scale(152.63)}function Pt(Ge){if(!Ge)return $e;var Ze=1/T(Ge);function ot(dt,Ct){var wt=Ze+Ge-Ct,Dt=wt&&dt*r(Ct)/wt;return[wt*d(Dt),Ze-wt*r(Dt)]}return ot.invert=function(dt,Ct){var wt=F(dt*dt+(Ct=Ze-Ct)*Ct),Dt=Ze+Ge-wt;return[wt/r(Dt)*t(dt,Ct),Dt]},ot}function Vt(){return at(Pt).scale(123.082).center([0,26.1441]).parallel(45)}function Wt(Ge){function Ze(ot,dt){var Ct=A-dt,wt=Ct&&ot*Ge*d(Ct)/Ct;return[Ct*d(wt)/Ge,A-Ct*r(wt)]}return Ze.invert=function(ot,dt){var Ct=ot*Ge,wt=A-dt,Dt=F(Ct*Ct+wt*wt),fr=t(Ct,wt);return[(Dt?Dt/d(Dt):1)*fr/Ge,A-Dt]},Ze}function Cr(){var Ge=.5,Ze=x.geoProjectionMutator(Wt),ot=Ze(Ge);return ot.fraction=function(dt){return arguments.length?Ze(Ge=+dt):Ge},ot.scale(158.837)}var yr=et(1,4/w,w);function qr(){return x.geoProjection(yr).scale(152.63)}function Mr(Ge,Ze,ot,dt,Ct,wt){var Dt=r(wt),fr;if(E(Ge)>1||E(wt)>1)fr=z(ot*Ct+Ze*dt*Dt);else{var _r=d(Ge/2),kr=d(wt/2);fr=2*L(F(_r*_r+Ze*dt*kr*kr))}return E(fr)>l?[fr,t(dt*d(wt),Ze*Ct-ot*dt*Dt)]:[0,0]}function Dr(Ge,Ze,ot){return z((Ge*Ge+Ze*Ze-ot*ot)/(2*Ge*Ze))}function xt(Ge){return Ge-2*w*i((Ge+w)/(2*w))}function Ne(Ge,Ze,ot){for(var dt=[[Ge[0],Ge[1],d(Ge[1]),r(Ge[1])],[Ze[0],Ze[1],d(Ze[1]),r(Ze[1])],[ot[0],ot[1],d(ot[1]),r(ot[1])]],Ct=dt[2],wt,Dt=0;Dt<3;++Dt,Ct=wt)wt=dt[Dt],Ct.v=Mr(wt[1]-Ct[1],Ct[3],Ct[2],wt[3],wt[2],wt[0]-Ct[0]),Ct.point=[0,0];var fr=Dr(dt[0].v[0],dt[2].v[0],dt[1].v[0]),_r=Dr(dt[0].v[0],dt[1].v[0],dt[2].v[0]),kr=w-fr;dt[2].point[1]=0,dt[0].point[0]=-(dt[1].point[0]=dt[0].v[0]/2);var Vr=[dt[2].point[0]=dt[0].point[0]+dt[2].v[0]*r(fr),2*(dt[0].point[1]=dt[1].point[1]=dt[2].v[0]*d(fr))];function Qr(_i,Pi){var qi=d(Pi),ga=r(Pi),Qa=new Array(3),$a;for($a=0;$a<3;++$a){var yn=dt[$a];if(Qa[$a]=Mr(Pi-yn[1],yn[3],yn[2],ga,qi,_i-yn[0]),!Qa[$a][0])return yn.point;Qa[$a][1]=xt(Qa[$a][1]-yn.v[1])}var qn=Vr.slice();for($a=0;$a<3;++$a){var po=$a==2?0:$a+1,to=Dr(dt[$a].v[0],Qa[$a][0],Qa[po][0]);Qa[$a][1]<0&&(to=-to),$a?$a==1?(to=_r-to,qn[0]-=Qa[$a][0]*r(to),qn[1]-=Qa[$a][0]*d(to)):(to=kr-to,qn[0]+=Qa[$a][0]*r(to),qn[1]+=Qa[$a][0]*d(to)):(qn[0]+=Qa[$a][0]*r(to),qn[1]-=Qa[$a][0]*d(to))}return qn[0]/=3,qn[1]/=3,qn}return Qr}function Ye(Ge){return Ge[0]*=f,Ge[1]*=f,Ge}function be(){return Ie([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ie(Ge,Ze,ot){var dt=x.geoCentroid({type:"MultiPoint",coordinates:[Ge,Ze,ot]}),Ct=[-dt[0],-dt[1]],wt=x.geoRotation(Ct),Dt=Ne(Ye(wt(Ge)),Ye(wt(Ze)),Ye(wt(ot)));Dt.invert=ze(Dt);var fr=x.geoProjection(Dt).rotate(Ct),_r=fr.center;return delete fr.rotate,fr.center=function(kr){return arguments.length?_r(wt(kr)):wt.invert(_r())},fr.clipAngle(90)}function qe(Ge,Ze){var ot=F(1-d(Ze));return[2/v*Ge*ot,v*(1-ot)]}qe.invert=function(Ge,Ze){var ot=(ot=Ze/v-1)*ot;return[ot>0?Ge*F(w/ot)/2:0,L(1-ot)]};function ke(){return x.geoProjection(qe).scale(95.6464).center([0,30])}function Me(Ge){var Ze=T(Ge);function ot(dt,Ct){return[dt,(dt?dt/d(dt):1)*(d(Ct)*r(dt)-Ze*r(Ct))]}return ot.invert=Ze?function(dt,Ct){dt&&(Ct*=d(dt)/dt);var wt=r(dt);return[dt,2*t(F(wt*wt+Ze*Ze-Ct*Ct)-wt,Ze-Ct)]}:function(dt,Ct){return[dt,L(dt?Ct*T(dt)/dt:Ct)]},ot}function Le(){return at(Me).scale(249.828).clipAngle(90)}var ut=F(3);function lt(Ge,Ze){return[ut*Ge*(2*r(2*Ze/3)-1)/v,ut*v*d(Ze/3)]}lt.invert=function(Ge,Ze){var ot=3*L(Ze/(ut*v));return[v*Ge/(ut*(2*r(2*ot/3)-1)),ot]};function gt(){return x.geoProjection(lt).scale(156.19)}function kt(Ge){var Ze=r(Ge);function ot(dt,Ct){return[dt*Ze,d(Ct)/Ze]}return ot.invert=function(dt,Ct){return[dt/Ze,L(Ct*Ze)]},ot}function nr(){return at(kt).parallel(38.58).scale(195.044)}function ir(Ge){var Ze=r(Ge);function ot(dt,Ct){return[dt*Ze,(1+Ze)*T(Ct/2)]}return ot.invert=function(dt,Ct){return[dt/Ze,e(Ct/(1+Ze))*2]},ot}function tr(){return at(ir).scale(124.75)}function Ir(Ge,Ze){var ot=F(8/(3*w));return[ot*Ge*(1-E(Ze)/w),ot*Ze]}Ir.invert=function(Ge,Ze){var ot=F(8/(3*w)),dt=Ze/ot;return[Ge/(ot*(1-E(dt)/w)),dt]};function vi(){return x.geoProjection(Ir).scale(165.664)}function Vi(Ge,Ze){var ot=F(4-3*d(E(Ze)));return[2/F(6*w)*Ge*ot,m(Ze)*F(2*w/3)*(2-ot)]}Vi.invert=function(Ge,Ze){var ot=2-E(Ze)/F(2*w/3);return[Ge*F(6*w)/(2*ot),m(Ze)*L((4-ot*ot)/3)]};function Ui(){return x.geoProjection(Vi).scale(165.664)}function Ki(Ge,Ze){var ot=F(w*(4+w));return[2/ot*Ge*(1+F(1-4*Ze*Ze/(w*w))),4/ot*Ze]}Ki.invert=function(Ge,Ze){var ot=F(w*(4+w))/2;return[Ge*ot/(1+F(1-Ze*Ze*(4+w)/(4*w))),Ze*ot/2]};function ea(){return x.geoProjection(Ki).scale(180.739)}function Bi(Ge,Ze){var ot=(2+A)*d(Ze);Ze/=2;for(var dt=0,Ct=1/0;dt<10&&E(Ct)>l;dt++){var wt=r(Ze);Ze-=Ct=(Ze+d(Ze)*(wt+2)-ot)/(2*wt*(1+wt))}return[2/F(w*(4+w))*Ge*(1+r(Ze)),2*F(w/(4+w))*d(Ze)]}Bi.invert=function(Ge,Ze){var ot=Ze*F((4+w)/w)/2,dt=L(ot),Ct=r(dt);return[Ge/(2/F(w*(4+w))*(1+Ct)),L((dt+ot*(Ct+2))/(2+A))]};function _a(){return x.geoProjection(Bi).scale(180.739)}function Ca(Ge,Ze){return[Ge*(1+r(Ze))/F(2+w),2*Ze/F(2+w)]}Ca.invert=function(Ge,Ze){var ot=F(2+w),dt=Ze*ot/2;return[ot*Ge/(1+r(dt)),dt]};function Kt(){return x.geoProjection(Ca).scale(173.044)}function zt(Ge,Ze){for(var ot=(1+A)*d(Ze),dt=0,Ct=1/0;dt<10&&E(Ct)>l;dt++)Ze-=Ct=(Ze+d(Ze)-ot)/(1+r(Ze));return ot=F(2+w),[Ge*(1+r(Ze))/ot,2*Ze/ot]}zt.invert=function(Ge,Ze){var ot=1+A,dt=F(ot/2);return[Ge*2*dt/(1+r(Ze*=dt)),L((Ze+d(Ze))/ot)]};function Zt(){return x.geoProjection(zt).scale(173.044)}var Jt=3+2*b;function Br(Ge,Ze){var ot=d(Ge/=2),dt=r(Ge),Ct=F(r(Ze)),wt=r(Ze/=2),Dt=d(Ze)/(wt+b*dt*Ct),fr=F(2/(1+Dt*Dt)),_r=F((b*wt+(dt+ot)*Ct)/(b*wt+(dt-ot)*Ct));return[Jt*(fr*(_r-1/_r)-2*n(_r)),Jt*(fr*Dt*(_r+1/_r)-2*e(Dt))]}Br.invert=function(Ge,Ze){if(!(wt=Z.invert(Ge/1.2,Ze*1.065)))return null;var ot=wt[0],dt=wt[1],Ct=20,wt;Ge/=Jt,Ze/=Jt;do{var Dt=ot/2,fr=dt/2,_r=d(Dt),kr=r(Dt),Vr=d(fr),Qr=r(fr),_i=r(dt),Pi=F(_i),qi=Vr/(Qr+b*kr*Pi),ga=qi*qi,Qa=F(2/(1+ga)),$a=b*Qr+(kr+_r)*Pi,yn=b*Qr+(kr-_r)*Pi,qn=$a/yn,po=F(qn),to=po-1/po,Vo=po+1/po,bs=Qa*to-2*n(po)-Ge,Ho=Qa*qi*Vo-2*e(qi)-Ze,ds=Vr&&g*Pi*_r*ga/Vr,Is=(b*kr*Qr+Pi)/(2*(Qr+b*kr*Pi)*(Qr+b*kr*Pi)*Pi),Tl=-.5*qi*Qa*Qa*Qa,dl=Tl*ds,ms=Tl*Is,gs=(gs=2*Qr+b*Pi*(kr-_r))*gs*po,ql=(b*kr*Qr*Pi+_i)/gs,uu=-(b*_r*Vr)/(Pi*gs),Uu=to*dl-2*ql/po+Qa*(ql+ql/qn),Su=to*ms-2*uu/po+Qa*(uu+uu/qn),Fl=qi*Vo*dl-2*ds/(1+ga)+Qa*Vo*ds+Qa*qi*(ql-ql/qn),yu=qi*Vo*ms-2*Is/(1+ga)+Qa*Vo*Is+Qa*qi*(uu-uu/qn),dc=Su*Fl-yu*Uu;if(!dc)break;var Ql=(Ho*Su-bs*yu)/dc,eu=(bs*Fl-Ho*Uu)/dc;ot-=Ql,dt=a(-A,s(A,dt-eu))}while((E(Ql)>l||E(eu)>l)&&--Ct>0);return E(E(dt)-A)<l?[0,dt]:Ct&&[ot,dt]};function ri(){return x.geoProjection(Br).scale(62.5271)}var ii=r(35*f);function di(Ge,Ze){var ot=T(Ze/2);return[Ge*ii*F(1-ot*ot),(1+ii)*ot]}di.invert=function(Ge,Ze){var ot=Ze/(1+ii);return[Ge&&Ge/(ii*F(1-ot*ot)),2*e(ot)]};function Wi(){return x.geoProjection(di).scale(137.152)}function oa(Ge,Ze){var ot=Ze/2,dt=r(ot);return[2*Ge/v*r(Ze)*dt*dt,v*T(ot)]}oa.invert=function(Ge,Ze){var ot=e(Ze/v),dt=r(ot),Ct=2*ot;return[Ge*v/2/(r(Ct)*dt*dt),Ct]};function ra(){return x.geoProjection(oa).scale(135.264)}function ca(Ge){var Ze=1-Ge,ot=wt(w,0)[0]-wt(-w,0)[0],dt=wt(0,A)[1]-wt(0,-A)[1],Ct=F(2*dt/ot);function wt(_r,kr){var Vr=r(kr),Qr=d(kr);return[Vr/(Ze+Ge*Vr)*_r,Ze*kr+Ge*Qr]}function Dt(_r,kr){var Vr=wt(_r,kr);return[Vr[0]*Ct,Vr[1]/Ct]}function fr(_r){return Dt(0,_r)[1]}return Dt.invert=function(_r,kr){var Vr=Re(fr,kr),Qr=_r/Ct*(Ge+Ze/r(Vr));return[Qr,Vr]},Dt}function xa(){var Ge=.5,Ze=x.geoProjectionMutator(ca),ot=Ze(Ge);return ot.alpha=function(dt){return arguments.length?Ze(Ge=+dt):Ge},ot.scale(168.725)}function ji(Ge){return[Ge[0]/2,L(T(Ge[1]/2*f))*y]}function pn(Ge){return[Ge[0]*2,2*e(d(Ge[1]*f))*y]}function _n(Ge){Ge==null&&(Ge=x.geoOrthographic);var Ze=Ge(),ot=x.geoEquirectangular().scale(y).precision(0).clipAngle(null).translate([0,0]);function dt(wt){return Ze(ji(wt))}Ze.invert&&(dt.invert=function(wt){return pn(Ze.invert(wt))}),dt.stream=function(wt){var Dt=Ze.stream(wt),fr=ot.stream({point:function(_r,kr){Dt.point(_r/2,L(T(-kr/2*f))*y)},lineStart:function(){Dt.lineStart()},lineEnd:function(){Dt.lineEnd()},polygonStart:function(){Dt.polygonStart()},polygonEnd:function(){Dt.polygonEnd()}});return fr.sphere=Dt.sphere,fr};function Ct(wt){dt[wt]=function(){return arguments.length?(Ze[wt].apply(Ze,arguments),dt):Ze[wt]()}}return dt.rotate=function(wt){return arguments.length?(ot.rotate(wt),dt):ot.rotate()},dt.center=function(wt){return arguments.length?(Ze.center(ji(wt)),dt):pn(Ze.center())},Ct("angle"),Ct("clipAngle"),Ct("clipExtent"),Ct("fitExtent"),Ct("fitHeight"),Ct("fitSize"),Ct("fitWidth"),Ct("scale"),Ct("translate"),Ct("precision"),dt.scale(249.5)}function En(Ge,Ze){var ot=2*w/Ze,dt=Ge*Ge;function Ct(wt,Dt){var fr=x.geoAzimuthalEquidistantRaw(wt,Dt),_r=fr[0],kr=fr[1],Vr=_r*_r+kr*kr;if(Vr>dt){var Qr=F(Vr),_i=t(kr,_r),Pi=ot*c(_i/ot),qi=_i-Pi,ga=Ge*r(qi),Qa=(Ge*d(qi)-qi*d(ga))/(A-ga),$a=bt(qi,Qa),yn=(w-Ge)/st($a,ga,w);_r=Qr;var qn=50,po;do _r-=po=(Ge+st($a,ga,_r)*yn-Qr)/($a(_r)*yn);while(E(po)>l&&--qn>0);kr=qi*d(_r),_r<A&&(kr-=Qa*(_r-A));var to=d(Pi),Vo=r(Pi);fr[0]=_r*Vo-kr*to,fr[1]=_r*to+kr*Vo}return fr}return Ct.invert=function(wt,Dt){var fr=wt*wt+Dt*Dt;if(fr>dt){var _r=F(fr),kr=t(Dt,wt),Vr=ot*c(kr/ot),Qr=kr-Vr;wt=_r*r(Qr),Dt=_r*d(Qr);for(var _i=wt-A,Pi=d(wt),qi=Dt/Pi,ga=wt<A?1/0:0,Qa=10;;){var $a=Ge*d(qi),yn=Ge*r(qi),qn=d(yn),po=A-yn,to=($a-qi*qn)/po,Vo=bt(qi,to);if(E(ga)<_||!--Qa)break;qi-=ga=(qi*Pi-to*_i-Dt)/(Pi-_i*2*(po*(yn+qi*$a*r(yn)-qn)-$a*($a-qi*qn))/(po*po))}_r=Ge+st(Vo,yn,wt)*(w-Ge)/st(Vo,yn,w),kr=Vr+qi,wt=_r*r(kr),Dt=_r*d(kr)}return x.geoAzimuthalEquidistantRaw.invert(wt,Dt)},Ct}function bt(Ge,Ze){return function(ot){var dt=Ge*r(ot);return ot<A&&(dt-=Ze),F(1+dt*dt)}}function st(Ge,Ze,ot){for(var dt=50,Ct=(ot-Ze)/dt,wt=Ge(Ze)+Ge(ot),Dt=1,fr=Ze;Dt<dt;++Dt)wt+=2*Ge(fr+=Ct);return wt*.5*Ct}function Nr(){var Ge=6,Ze=30*f,ot=r(Ze),dt=d(Ze),Ct=x.geoProjectionMutator(En),wt=Ct(Ze,Ge),Dt=wt.stream,fr=.01,_r=-r(fr*f),kr=d(fr*f);return wt.radius=function(Vr){return arguments.length?(ot=r(Ze=Vr*f),dt=d(Ze),Ct(Ze,Ge)):Ze*y},wt.lobes=function(Vr){return arguments.length?Ct(Ze,Ge=+Vr):Ge},wt.stream=function(Vr){var Qr=wt.rotate(),_i=Dt(Vr),Pi=(wt.rotate([0,0]),Dt(Vr));return wt.rotate(Qr),_i.sphere=function(){Pi.polygonStart(),Pi.lineStart();for(var qi=0,ga=2*w/Ge,Qa=0;qi<Ge;++qi,Qa-=ga)Pi.point(t(kr*r(Qa),_r)*y,L(kr*d(Qa))*y),Pi.point(t(dt*r(Qa-ga/2),ot)*y,L(dt*d(Qa-ga/2))*y);Pi.lineEnd(),Pi.polygonEnd()},_i},wt.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Lr(Ge,Ze,ot,dt,Ct,wt,Dt,fr){arguments.length<8&&(fr=0);function _r(kr,Vr){if(!Vr)return[Ge*kr/w,0];var Qr=Vr*Vr,_i=Ge+Qr*(Ze+Qr*(ot+Qr*dt)),Pi=Vr*(Ct-1+Qr*(wt-fr+Qr*Dt)),qi=(_i*_i+Pi*Pi)/(2*Pi),ga=kr*L(_i/qi)/w;return[qi*d(ga),Vr*(1+Qr*fr)+qi*(1-r(ga))]}return _r.invert=function(kr,Vr){var Qr=w*kr/Ge,_i=Vr,Pi,qi,ga=50;do{var Qa=_i*_i,$a=Ge+Qa*(Ze+Qa*(ot+Qa*dt)),yn=_i*(Ct-1+Qa*(wt-fr+Qa*Dt)),qn=$a*$a+yn*yn,po=2*yn,to=qn/po,Vo=to*to,bs=L($a/to)/w,Ho=Qr*bs,ds=$a*$a,Is=(2*Ze+Qa*(4*ot+Qa*6*dt))*_i,Tl=Ct+Qa*(3*wt+Qa*5*Dt),dl=2*($a*Is+yn*(Tl-1)),ms=2*(Tl-1),gs=(dl*po-qn*ms)/(po*po),ql=r(Ho),uu=d(Ho),Uu=to*ql,Su=to*uu,Fl=Qr/w*(1/F(1-ds/Vo))*(Is*to-$a*gs)/Vo,yu=Su-kr,dc=_i*(1+Qa*fr)+to-Uu-Vr,Ql=gs*uu+Uu*Fl,eu=Uu*bs,de=1+gs-(gs*ql-Su*Fl),Fe=Su*bs,Je=Ql*Fe-de*eu;if(!Je)break;Qr-=Pi=(dc*Ql-yu*de)/Je,_i-=qi=(yu*Fe-dc*eu)/Je}while((E(Pi)>l||E(qi)>l)&&--ga>0);return[Qr,_i]},_r}var br=Lr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Rr(){return x.geoProjection(br).scale(149.995)}var jr=Lr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Wr(){return x.geoProjection(jr).scale(153.93)}var yt=Lr(5/6*w,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Xt(){return x.geoProjection(yt).scale(130.945)}function mr(Ge,Ze){var ot=Ge*Ge,dt=Ze*Ze;return[Ge*(1-.162388*dt)*(.87-952426e-9*ot*ot),Ze*(1+dt/12)]}mr.invert=function(Ge,Ze){var ot=Ge,dt=Ze,Ct=50,wt;do{var Dt=dt*dt;dt-=wt=(dt*(1+Dt/12)-Ze)/(1+Dt/4)}while(E(wt)>l&&--Ct>0);Ct=50,Ge/=1-.162388*Dt;do{var fr=(fr=ot*ot)*fr;ot-=wt=(ot*(.87-952426e-9*fr)-Ge)/(.87-.00476213*fr)}while(E(wt)>l&&--Ct>0);return[ot,dt]};function Or(){return x.geoProjection(mr).scale(131.747)}var ki=Lr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ni(){return x.geoProjection(ki).scale(131.087)}function Si(Ge){var Ze=Ge(A,0)[0]-Ge(-A,0)[0];function ot(dt,Ct){var wt=dt>0?-.5:.5,Dt=Ge(dt+wt*w,Ct);return Dt[0]-=wt*Ze,Dt}return Ge.invert&&(ot.invert=function(dt,Ct){var wt=dt>0?-.5:.5,Dt=Ge.invert(dt+wt*Ze,Ct),fr=Dt[0]-wt*w;return fr<-w?fr+=2*w:fr>w&&(fr-=2*w),Dt[0]=fr,Dt}),ot}function fi(Ge,Ze){var ot=m(Ge),dt=m(Ze),Ct=r(Ze),wt=r(Ge)*Ct,Dt=d(Ge)*Ct,fr=d(dt*Ze);Ge=E(t(Dt,fr)),Ze=L(wt),E(Ge-A)>l&&(Ge%=A);var _r=Li(Ge>w/4?A-Ge:Ge,Ze);return Ge>w/4&&(fr=_r[0],_r[0]=-_r[1],_r[1]=-fr),_r[0]*=ot,_r[1]*=-dt,_r}fi.invert=function(Ge,Ze){E(Ge)>1&&(Ge=m(Ge)*2-Ge),E(Ze)>1&&(Ze=m(Ze)*2-Ze);var ot=m(Ge),dt=m(Ze),Ct=-ot*Ge,wt=-dt*Ze,Dt=wt/Ct<1,fr=Ia(Dt?wt:Ct,Dt?Ct:wt),_r=fr[0],kr=fr[1],Vr=r(kr);return Dt&&(_r=-A-_r),[ot*(t(d(_r)*Vr,-d(kr))+w),dt*L(r(_r)*Vr)]};function Li(Ge,Ze){if(Ze===A)return[0,0];var ot=d(Ze),dt=ot*ot,Ct=dt*dt,wt=1+Ct,Dt=1+3*Ct,fr=1-Ct,_r=L(1/F(wt)),kr=fr+dt*wt*_r,Vr=(1-ot)/kr,Qr=F(Vr),_i=Vr*wt,Pi=F(_i),qi=Qr*fr,ga,Qa;if(Ge===0)return[0,-(qi+dt*Pi)];var $a=r(Ze),yn=1/$a,qn=2*ot*$a,po=(-3*dt+_r*Dt)*qn,to=(-kr*$a-(1-ot)*po)/(kr*kr),Vo=.5*to/Qr,bs=fr*Vo-2*dt*Qr*qn,Ho=dt*wt*to+Vr*Dt*qn,ds=-yn*qn,Is=-yn*Ho,Tl=-2*yn*bs,dl=4*Ge/w,ms;if(Ge>.222*w||Ze<w/4&&Ge>.175*w){if(ga=(qi+dt*F(_i*(1+Ct)-qi*qi))/(1+Ct),Ge>w/4)return[ga,ga];var gs=ga,ql=.5*ga;ga=.5*(ql+gs),Qa=50;do{var uu=F(_i-ga*ga),Uu=ga*(Tl+ds*uu)+Is*L(ga/Pi)-dl;if(!Uu)break;Uu<0?ql=ga:gs=ga,ga=.5*(ql+gs)}while(E(gs-ql)>l&&--Qa>0)}else{ga=l,Qa=25;do{var Su=ga*ga,Fl=F(_i-Su),yu=Tl+ds*Fl,dc=ga*yu+Is*L(ga/Pi)-dl,Ql=yu+(Is-ds*Su)/Fl;ga-=ms=Fl?dc/Ql:0}while(E(ms)>l&&--Qa>0)}return[ga,-qi-dt*F(_i-ga*ga)]}function Ia(Ge,Ze){for(var ot=0,dt=1,Ct=.5,wt=50;;){var Dt=Ct*Ct,fr=F(Ct),_r=L(1/F(1+Dt)),kr=1-Dt+Ct*(1+Dt)*_r,Vr=(1-fr)/kr,Qr=F(Vr),_i=Vr*(1+Dt),Pi=Qr*(1-Dt),qi=_i-Ge*Ge,ga=F(qi),Qa=Ze+Pi+Ct*ga;if(E(dt-ot)<_||--wt===0||Qa===0)break;Qa>0?ot=Ct:dt=Ct,Ct=.5*(ot+dt)}if(!wt)return null;var $a=L(fr),yn=r($a),qn=1/yn,po=2*fr*yn,to=(-3*Ct+_r*(1+3*Dt))*po,Vo=(-kr*yn-(1-fr)*to)/(kr*kr),bs=.5*Vo/Qr,Ho=(1-Dt)*bs-2*Ct*Qr*po,ds=-2*qn*Ho,Is=-qn*po,Tl=-qn*(Ct*(1+Dt)*Vo+Vr*(1+3*Dt)*po);return[w/4*(Ge*(ds+Is*ga)+Tl*L(Ge/F(_i))),$a]}function Fa(){return x.geoProjection(Si(fi)).scale(239.75)}function un(Ge,Ze,ot){var dt,Ct,wt;return Ge?(dt=Bn(Ge,ot),Ze?(Ct=Bn(Ze,1-ot),wt=Ct[1]*Ct[1]+ot*dt[0]*dt[0]*Ct[0]*Ct[0],[[dt[0]*Ct[2]/wt,dt[1]*dt[2]*Ct[0]*Ct[1]/wt],[dt[1]*Ct[1]/wt,-dt[0]*dt[2]*Ct[0]*Ct[2]/wt],[dt[2]*Ct[1]*Ct[2]/wt,-ot*dt[0]*dt[1]*Ct[0]/wt]]):[[dt[0],0],[dt[1],0],[dt[2],0]]):(Ct=Bn(Ze,1-ot),[[0,Ct[0]/Ct[1]],[1/Ct[1],0],[Ct[2]/Ct[1],0]])}function Bn(Ge,Ze){var ot,dt,Ct,wt,Dt;if(Ze<l)return wt=d(Ge),dt=r(Ge),ot=Ze*(Ge-wt*dt)/4,[wt-ot*dt,dt+ot*wt,1-Ze*wt*wt/2,Ge-ot];if(Ze>=1-l)return ot=(1-Ze)/4,dt=I(Ge),wt=N(Ge),Ct=1/dt,Dt=dt*B(Ge),[wt+ot*(Dt-Ge)/(dt*dt),Ct-ot*wt*Ct*(Dt-Ge),Ct+ot*wt*Ct*(Dt+Ge),2*e(o(Ge))-A+ot*(Dt-Ge)/dt];var fr=[1,0,0,0,0,0,0,0,0],_r=[F(Ze),0,0,0,0,0,0,0,0],kr=0;for(dt=F(1-Ze),Dt=1;E(_r[kr]/fr[kr])>l&&kr<8;)ot=fr[kr++],_r[kr]=(ot-dt)/2,fr[kr]=(ot+dt)/2,dt=F(ot*dt),Dt*=2;Ct=Dt*fr[kr]*Ge;do wt=_r[kr]*d(dt=Ct)/fr[kr],Ct=(L(wt)+Ct)/2;while(--kr);return[d(Ct),wt=r(Ct),wt/r(Ct-dt),Ct]}function Kn(Ge,Ze,ot){var dt=E(Ge),Ct=E(Ze),wt=B(Ct);if(dt){var Dt=1/d(dt),fr=1/(T(dt)*T(dt)),_r=-(fr+ot*(wt*wt*Dt*Dt)-1+ot),kr=(ot-1)*fr,Vr=(-_r+F(_r*_r-4*kr))/2;return[Gn(e(1/F(Vr)),ot)*m(Ge),Gn(e(F((Vr/fr-1)/ot)),1-ot)*m(Ze)]}return[0,Gn(e(wt),1-ot)*m(Ze)]}function Gn(Ge,Ze){if(!Ze)return Ge;if(Ze===1)return n(T(Ge/2+M));for(var ot=1,dt=F(1-Ze),Ct=F(Ze),wt=0;E(Ct)>l;wt++){if(Ge%w){var Dt=e(dt*T(Ge)/ot);Dt<0&&(Dt+=w),Ge+=Dt+~~(Ge/w)*w}else Ge+=Ge;Ct=(ot+dt)/2,dt=F(ot*dt),Ct=((ot=Ct)-dt)/2}return Ge/(h(2,wt)*ot)}function eo(Ge,Ze){var ot=(b-1)/(b+1),dt=F(1-ot*ot),Ct=Gn(A,dt*dt),wt=-1,Dt=n(T(w/4+E(Ze)/2)),fr=o(wt*Dt)/F(ot),_r=Ao(fr*r(wt*Ge),fr*d(wt*Ge)),kr=Kn(_r[0],_r[1],dt*dt);return[-kr[1],(Ze>=0?1:-1)*(.5*Ct-kr[0])]}function Ao(Ge,Ze){var ot=Ge*Ge,dt=Ze+1,Ct=1-ot-Ze*Ze;return[.5*((Ge>=0?A:-A)-t(Ct,2*Ge)),-.25*n(Ct*Ct+4*ot)+.5*n(dt*dt+ot)]}function An(Ge,Ze){var ot=Ze[0]*Ze[0]+Ze[1]*Ze[1];return[(Ge[0]*Ze[0]+Ge[1]*Ze[1])/ot,(Ge[1]*Ze[0]-Ge[0]*Ze[1])/ot]}eo.invert=function(Ge,Ze){var ot=(b-1)/(b+1),dt=F(1-ot*ot),Ct=Gn(A,dt*dt),wt=-1,Dt=un(.5*Ct-Ze,-Ge,dt*dt),fr=An(Dt[0],Dt[1]),_r=t(fr[1],fr[0])/wt;return[_r,2*e(o(.5/wt*n(ot*fr[0]*fr[0]+ot*fr[1]*fr[1])))-A]};function Eo(){return x.geoProjection(Si(eo)).scale(151.496)}function fs(Ge){var Ze=d(Ge),ot=r(Ge),dt=Ls(Ge);dt.invert=Ls(-Ge);function Ct(wt,Dt){var fr=dt(wt,Dt);wt=fr[0],Dt=fr[1];var _r=d(Dt),kr=r(Dt),Vr=r(wt),Qr=z(Ze*_r+ot*kr*Vr),_i=d(Qr),Pi=E(_i)>l?Qr/_i:1;return[Pi*ot*d(wt),(E(wt)>A?Pi:-Pi)*(Ze*kr-ot*_r*Vr)]}return Ct.invert=function(wt,Dt){var fr=F(wt*wt+Dt*Dt),_r=-d(fr),kr=r(fr),Vr=fr*kr,Qr=-Dt*_r,_i=fr*Ze,Pi=F(Vr*Vr+Qr*Qr-_i*_i),qi=t(Vr*_i+Qr*Pi,Qr*_i-Vr*Pi),ga=(fr>A?-1:1)*t(wt*_r,fr*r(qi)*kr+Dt*d(qi)*_r);return dt.invert(ga,qi)},Ct}function Ls(Ge){var Ze=d(Ge),ot=r(Ge);return function(dt,Ct){var wt=r(Ct),Dt=r(dt)*wt,fr=d(dt)*wt,_r=d(Ct);return[t(fr,Dt*ot-_r*Ze),L(_r*ot+Dt*Ze)]}}function ns(){var Ge=0,Ze=x.geoProjectionMutator(fs),ot=Ze(Ge),dt=ot.rotate,Ct=ot.stream,wt=x.geoCircle();return ot.parallel=function(Dt){if(!arguments.length)return Ge*y;var fr=ot.rotate();return Ze(Ge=Dt*f).rotate(fr)},ot.rotate=function(Dt){return arguments.length?(dt.call(ot,[Dt[0],Dt[1]-Ge*y]),wt.center([-Dt[0],-Dt[1]]),ot):(Dt=dt.call(ot),Dt[1]+=Ge*y,Dt)},ot.stream=function(Dt){return Dt=Ct(Dt),Dt.sphere=function(){Dt.polygonStart();var fr=.01,_r=wt.radius(90-fr)().coordinates[0],kr=_r.length-1,Vr=-1,Qr;for(Dt.lineStart();++Vr<kr;)Dt.point((Qr=_r[Vr])[0],Qr[1]);for(Dt.lineEnd(),_r=wt.radius(90+fr)().coordinates[0],kr=_r.length-1,Dt.lineStart();--Vr>=0;)Dt.point((Qr=_r[Vr])[0],Qr[1]);Dt.lineEnd(),Dt.polygonEnd()},Dt},ot.scale(79.4187).parallel(45).clipAngle(180-.001)}var uo=3,ss=L(1-1/uo)*y,xs=kt(0);function el(Ge){var Ze=ss*f,ot=qe(w,Ze)[0]-qe(-w,Ze)[0],dt=xs(0,Ze)[1],Ct=qe(0,Ze)[1],wt=v-Ct,Dt=u/Ge,fr=4/u,_r=dt+wt*wt*4/u;function kr(Vr,Qr){var _i,Pi=E(Qr);if(Pi>Ze){var qi=s(Ge-1,a(0,i((Vr+w)/Dt)));Vr+=w*(Ge-1)/Ge-qi*Dt,_i=qe(Vr,Pi),_i[0]=_i[0]*u/ot-u*(Ge-1)/(2*Ge)+qi*u/Ge,_i[1]=dt+(_i[1]-Ct)*4*wt/u,Qr<0&&(_i[1]=-_i[1])}else _i=xs(Vr,Qr);return _i[0]*=fr,_i[1]/=_r,_i}return kr.invert=function(Vr,Qr){Vr/=fr,Qr*=_r;var _i=E(Qr);if(_i>dt){var Pi=s(Ge-1,a(0,i((Vr+w)/Dt)));Vr=(Vr+w*(Ge-1)/Ge-Pi*Dt)*ot/u;var qi=qe.invert(Vr,.25*(_i-dt)*u/wt+Ct);return qi[0]-=w*(Ge-1)/Ge-Pi*Dt,Qr<0&&(qi[1]=-qi[1]),qi}return xs.invert(Vr,Qr)},kr}function Ss(Ge,Ze){return[Ge,Ze&1?90-l:ss]}function Co(Ge,Ze){return[Ge,Ze&1?-90+l:-ss]}function ao(Ge){return[Ge[0]*(1-l),Ge[1]]}function co(Ge){var Ze=[].concat(S.range(-180,180+Ge/2,Ge).map(Ss),S.range(180,-180-Ge/2,-Ge).map(Co));return{type:"Polygon",coordinates:[Ge===180?Ze.map(ao):Ze]}}function Ms(){var Ge=4,Ze=x.geoProjectionMutator(el),ot=Ze(Ge),dt=ot.stream;return ot.lobes=function(Ct){return arguments.length?Ze(Ge=+Ct):Ge},ot.stream=function(Ct){var wt=ot.rotate(),Dt=dt(Ct),fr=(ot.rotate([0,0]),dt(Ct));return ot.rotate(wt),Dt.sphere=function(){x.geoStream(co(180/Ge),fr)},Dt},ot.scale(239.75)}function Gs(Ge){var Ze=1+Ge,ot=d(1/Ze),dt=L(ot),Ct=2*F(w/(wt=w+4*dt*Ze)),wt,Dt=.5*Ct*(Ze+F(Ge*(2+Ge))),fr=Ge*Ge,_r=Ze*Ze;function kr(Vr,Qr){var _i=1-d(Qr),Pi,qi;if(_i&&_i<2){var ga=A-Qr,Qa=25,$a;do{var yn=d(ga),qn=r(ga),po=dt+t(yn,Ze-qn),to=1+_r-2*Ze*qn;ga-=$a=(ga-fr*dt-Ze*yn+to*po-.5*_i*wt)/(2*Ze*yn*po)}while(E($a)>_&&--Qa>0);Pi=Ct*F(to),qi=Vr*po/w}else Pi=Ct*(Ge+_i),qi=Vr*dt/w;return[Pi*d(qi),Dt-Pi*r(qi)]}return kr.invert=function(Vr,Qr){var _i=Vr*Vr+(Qr-=Dt)*Qr,Pi=(1+_r-_i/(Ct*Ct))/(2*Ze),qi=z(Pi),ga=d(qi),Qa=dt+t(ga,Ze-Pi);return[L(Vr/F(_i))*w/Qa,L(1-2*(qi-fr*dt-Ze*ga+(1+_r-2*Ze*Pi)*Qa)/wt)]},kr}function ul(){var Ge=1,Ze=x.geoProjectionMutator(Gs),ot=Ze(Ge);return ot.ratio=function(dt){return arguments.length?Ze(Ge=+dt):Ge},ot.scale(167.774).center([0,18.67])}var hs=.7109889596207567,rn=.0528035274542;function Xn(Ge,Ze){return Ze>-hs?(Ge=nt(Ge,Ze),Ge[1]+=rn,Ge):$e(Ge,Ze)}Xn.invert=function(Ge,Ze){return Ze>-hs?nt.invert(Ge,Ze-rn):$e.invert(Ge,Ze)};function tl(){return x.geoProjection(Xn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zs(Ge,Ze){return E(Ze)>hs?(Ge=nt(Ge,Ze),Ge[1]-=Ze>0?rn:-rn,Ge):$e(Ge,Ze)}zs.invert=function(Ge,Ze){return E(Ze)>hs?nt.invert(Ge,Ze+(Ze>0?rn:-rn)):$e.invert(Ge,Ze)};function so(){return x.geoProjection(zs).scale(152.63)}function $s(Ge,Ze,ot,dt){var Ct=F(4*w/(2*ot+(1+Ge-Ze/2)*d(2*ot)+(Ge+Ze)/2*d(4*ot)+Ze/2*d(6*ot))),wt=F(dt*d(ot)*F((1+Ge*r(2*ot)+Ze*r(4*ot))/(1+Ge+Ze))),Dt=ot*_r(1);function fr(Qr){return F(1+Ge*r(2*Qr)+Ze*r(4*Qr))}function _r(Qr){var _i=Qr*ot;return(2*_i+(1+Ge-Ze/2)*d(2*_i)+(Ge+Ze)/2*d(4*_i)+Ze/2*d(6*_i))/ot}function kr(Qr){return fr(Qr)*d(Qr)}var Vr=function(Qr,_i){var Pi=ot*Re(_r,Dt*d(_i)/ot,_i/w);isNaN(Pi)&&(Pi=ot*m(_i));var qi=Ct*fr(Pi);return[qi*wt*Qr/w*r(Pi),qi/wt*d(Pi)]};return Vr.invert=function(Qr,_i){var Pi=Re(kr,_i*wt/Ct);return[Qr*w/(r(Pi)*Ct*wt*fr(Pi)),L(ot*_r(Pi/ot)/Dt)]},ot===0&&(Ct=F(dt/w),Vr=function(Qr,_i){return[Qr*Ct,d(_i)/Ct]},Vr.invert=function(Qr,_i){return[Qr/Ct,L(_i*Ct)]}),Vr}function Ps(){var Ge=1,Ze=0,ot=45*f,dt=2,Ct=x.geoProjectionMutator($s),wt=Ct(Ge,Ze,ot,dt);return wt.a=function(Dt){return arguments.length?Ct(Ge=+Dt,Ze,ot,dt):Ge},wt.b=function(Dt){return arguments.length?Ct(Ge,Ze=+Dt,ot,dt):Ze},wt.psiMax=function(Dt){return arguments.length?Ct(Ge,Ze,ot=+Dt*f,dt):ot*y},wt.ratio=function(Dt){return arguments.length?Ct(Ge,Ze,ot,dt=+Dt):dt},wt.scale(180.739)}function nl(Ge,Ze,ot,dt,Ct,wt,Dt,fr,_r,kr,Vr){if(Vr.nanEncountered)return NaN;var Qr,_i,Pi,qi,ga,Qa,$a,yn,qn,po;if(Qr=ot-Ze,_i=Ge(Ze+Qr*.25),Pi=Ge(ot-Qr*.25),isNaN(_i)){Vr.nanEncountered=!0;return}if(isNaN(Pi)){Vr.nanEncountered=!0;return}return qi=Qr*(dt+4*_i+Ct)/12,ga=Qr*(Ct+4*Pi+wt)/12,Qa=qi+ga,po=(Qa-Dt)/15,kr>_r?(Vr.maxDepthCount++,Qa+po):Math.abs(po)<fr?Qa+po:($a=Ze+Qr*.5,yn=nl(Ge,Ze,$a,dt,_i,Ct,qi,fr*.5,_r,kr+1,Vr),isNaN(yn)?(Vr.nanEncountered=!0,NaN):(qn=nl(Ge,$a,ot,Ct,Pi,wt,ga,fr*.5,_r,kr+1,Vr),isNaN(qn)?(Vr.nanEncountered=!0,NaN):yn+qn))}function yl(Ge,Ze,ot,dt,Ct){var wt={maxDepthCount:0,nanEncountered:!1};dt===void 0&&(dt=1e-8),Ct===void 0&&(Ct=20);var Dt=Ge(Ze),fr=Ge(.5*(Ze+ot)),_r=Ge(ot),kr=(Dt+4*fr+_r)*(ot-Ze)/6,Vr=nl(Ge,Ze,ot,Dt,fr,_r,kr,dt,Ct,1,wt);return Vr}function On(Ge,Ze,ot){function dt(Pi){return Ge+(1-Ge)*h(1-h(Pi,Ze),1/Ze)}function Ct(Pi){return yl(dt,0,Pi,1e-4)}for(var wt=1/Ct(1),Dt=1e3,fr=(1+1e-8)*wt,_r=[],kr=0;kr<=Dt;kr++)_r.push(Ct(kr/Dt)*fr);function Vr(Pi){var qi=0,ga=Dt,Qa=Dt>>1;do _r[Qa]>Pi?ga=Qa:qi=Qa,Qa=qi+ga>>1;while(Qa>qi);var $a=_r[Qa+1]-_r[Qa];return $a&&($a=(Pi-_r[Qa+1])/$a),(Qa+1+$a)/Dt}var Qr=2*Vr(1)/w*wt/ot,_i=function(Pi,qi){var ga=Vr(E(d(qi))),Qa=dt(ga)*Pi;return ga/=Qr,[Qa,qi>=0?ga:-ga]};return _i.invert=function(Pi,qi){var ga;return qi*=Qr,E(qi)<1&&(ga=m(qi)*L(Ct(E(qi))*wt)),[Pi/dt(E(qi)),ga]},_i}function Ko(){var Ge=0,Ze=2.5,ot=1.183136,dt=x.geoProjectionMutator(On),Ct=dt(Ge,Ze,ot);return Ct.alpha=function(wt){return arguments.length?dt(Ge=+wt,Ze,ot):Ge},Ct.k=function(wt){return arguments.length?dt(Ge,Ze=+wt,ot):Ze},Ct.gamma=function(wt){return arguments.length?dt(Ge,Ze,ot=+wt):ot},Ct.scale(152.63)}function jo(Ge,Ze){return E(Ge[0]-Ze[0])<l&&E(Ge[1]-Ze[1])<l}function Ys(Ge,Ze){for(var ot=-1,dt=Ge.length,Ct=Ge[0],wt,Dt,fr,_r=[];++ot<dt;){wt=Ge[ot],Dt=(wt[0]-Ct[0])/Ze,fr=(wt[1]-Ct[1])/Ze;for(var kr=0;kr<Ze;++kr)_r.push([Ct[0]+kr*Dt,Ct[1]+kr*fr]);Ct=wt}return _r.push(wt),_r}function Tu(Ge){var Ze=[],ot,dt,Ct,wt,Dt,fr,_r,kr=Ge[0].length;for(_r=0;_r<kr;++_r)ot=Ge[0][_r],dt=ot[0][0],Ct=ot[0][1],wt=ot[1][1],Dt=ot[2][0],fr=ot[2][1],Ze.push(Ys([[dt+l,Ct+l],[dt+l,wt-l],[Dt-l,wt-l],[Dt-l,fr+l]],30));for(_r=Ge[1].length-1;_r>=0;--_r)ot=Ge[1][_r],dt=ot[0][0],Ct=ot[0][1],wt=ot[1][1],Dt=ot[2][0],fr=ot[2][1],Ze.push(Ys([[Dt-l,fr-l],[Dt-l,wt+l],[dt+l,wt+l],[dt+l,Ct-l]],30));return{type:"Polygon",coordinates:[S.merge(Ze)]}}function Lo(Ge,Ze,ot){var dt,Ct;function wt(_r,kr){for(var Vr=kr<0?-1:1,Qr=Ze[+(kr<0)],_i=0,Pi=Qr.length-1;_i<Pi&&_r>Qr[_i][2][0];++_i);var qi=Ge(_r-Qr[_i][1][0],kr);return qi[0]+=Ge(Qr[_i][1][0],Vr*kr>Vr*Qr[_i][0][1]?Qr[_i][0][1]:kr)[0],qi}ot?wt.invert=ot(wt):Ge.invert&&(wt.invert=function(_r,kr){for(var Vr=Ct[+(kr<0)],Qr=Ze[+(kr<0)],_i=0,Pi=Vr.length;_i<Pi;++_i){var qi=Vr[_i];if(qi[0][0]<=_r&&_r<qi[1][0]&&qi[0][1]<=kr&&kr<qi[1][1]){var ga=Ge.invert(_r-Ge(Qr[_i][1][0],0)[0],kr);return ga[0]+=Qr[_i][1][0],jo(wt(ga[0],ga[1]),[_r,kr])?ga:null}}});var Dt=x.geoProjection(wt),fr=Dt.stream;return Dt.stream=function(_r){var kr=Dt.rotate(),Vr=fr(_r),Qr=(Dt.rotate([0,0]),fr(_r));return Dt.rotate(kr),Vr.sphere=function(){x.geoStream(dt,Qr)},Vr},Dt.lobes=function(_r){return arguments.length?(dt=Tu(_r),Ze=_r.map(function(kr){return kr.map(function(Vr){return[[Vr[0][0]*f,Vr[0][1]*f],[Vr[1][0]*f,Vr[1][1]*f],[Vr[2][0]*f,Vr[2][1]*f]]})}),Ct=Ze.map(function(kr){return kr.map(function(Vr){var Qr=Ge(Vr[0][0],Vr[0][1])[0],_i=Ge(Vr[2][0],Vr[2][1])[0],Pi=Ge(Vr[1][0],Vr[0][1])[1],qi=Ge(Vr[1][0],Vr[1][1])[1],ga;return Pi>qi&&(ga=Pi,Pi=qi,qi=ga),[[Qr,Pi],[_i,qi]]})}),Dt):Ze.map(function(kr){return kr.map(function(Vr){return[[Vr[0][0]*y,Vr[0][1]*y],[Vr[1][0]*y,Vr[1][1]*y],[Vr[2][0]*y,Vr[2][1]*y]]})})},Ze!=null&&Dt.lobes(Ze),Dt}var al=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function kl(){return Lo(Be,al).scale(160.857)}var Ns=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function rl(){return Lo(zs,Ns).scale(152.63)}var Es=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Us(){return Lo(nt,Es).scale(169.529)}var Zl=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function pu(){return Lo(nt,Zl).scale(169.529).rotate([20,0])}var kc=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Au(){return Lo(Xn,kc,ze).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Sf=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Gc(){return Lo($e,Sf).scale(152.63).rotate([-20,0])}function Js(Ge,Ze){return[3/u*Ge*F(w*w/3-Ze*Ze),Ze]}Js.invert=function(Ge,Ze){return[u/3*Ge/F(w*w/3-Ze*Ze),Ze]};function yc(){return x.geoProjection(Js).scale(158.837)}function Zc(Ge){function Ze(ot,dt){if(E(E(dt)-A)<l)return[0,dt<0?-2:2];var Ct=d(dt),wt=h((1+Ct)/(1-Ct),Ge/2),Dt=.5*(wt+1/wt)+r(ot*=Ge);return[2*d(ot)/Dt,(wt-1/wt)/Dt]}return Ze.invert=function(ot,dt){var Ct=E(dt);if(E(Ct-2)<l)return ot?null:[0,m(dt)*A];if(Ct>2)return null;ot/=2,dt/=2;var wt=ot*ot,Dt=dt*dt,fr=2*dt/(1+wt+Dt);return fr=h((1+fr)/(1-fr),1/Ge),[t(2*ot,1-wt-Dt)/Ge,L((fr-1)/(fr+1))]},Ze}function mu(){var Ge=.5,Ze=x.geoProjectionMutator(Zc),ot=Ze(Ge);return ot.spacing=function(dt){return arguments.length?Ze(Ge=+dt):Ge},ot.scale(124.75)}var Vl=w/b;function lc(Ge,Ze){return[Ge*(1+F(r(Ze)))/2,Ze/(r(Ze/2)*r(Ge/6))]}lc.invert=function(Ge,Ze){var ot=E(Ge),dt=E(Ze),Ct=l,wt=A;dt<Vl?wt*=dt/Vl:Ct+=6*z(Vl/dt);for(var Dt=0;Dt<25;Dt++){var fr=d(wt),_r=F(r(wt)),kr=d(wt/2),Vr=r(wt/2),Qr=d(Ct/6),_i=r(Ct/6),Pi=.5*Ct*(1+_r)-ot,qi=wt/(Vr*_i)-dt,ga=_r?-.25*Ct*fr/_r:0,Qa=.5*(1+_r),$a=(1+.5*wt*kr/Vr)/(Vr*_i),yn=wt/Vr*(Qr/6)/(_i*_i),qn=ga*yn-$a*Qa,po=(Pi*yn-qi*Qa)/qn,to=(qi*ga-Pi*$a)/qn;if(wt-=po,Ct-=to,E(po)<l&&E(to)<l)break}return[Ge<0?-Ct:Ct,Ze<0?-wt:wt]};function Gu(){return x.geoProjection(lc).scale(97.2672)}function _l(Ge,Ze){var ot=Ge*Ge,dt=Ze*Ze;return[Ge*(.975534+dt*(-.119161+ot*-.0143059+dt*-.0547009)),Ze*(1.00384+ot*(.0802894+dt*-.02855+ot*199025e-9)+dt*(.0998909+dt*-.0491032))]}_l.invert=function(Ge,Ze){var ot=m(Ge)*w,dt=Ze/2,Ct=50;do{var wt=ot*ot,Dt=dt*dt,fr=ot*dt,_r=ot*(.975534+Dt*(-.119161+wt*-.0143059+Dt*-.0547009))-Ge,kr=dt*(1.00384+wt*(.0802894+Dt*-.02855+wt*199025e-9)+Dt*(.0998909+Dt*-.0491032))-Ze,Vr=.975534-Dt*(.119161+3*wt*.0143059+Dt*.0547009),Qr=-fr*(2*.119161+4*.0547009*Dt+2*.0143059*wt),_i=fr*(2*.0802894+4*199025e-9*wt+2*-.02855*Dt),Pi=1.00384+wt*(.0802894+199025e-9*wt)+Dt*(3*(.0998909-.02855*wt)-5*.0491032*Dt),qi=Qr*_i-Pi*Vr,ga=(kr*Qr-_r*Pi)/qi,Qa=(_r*_i-kr*Vr)/qi;ot-=ga,dt-=Qa}while((E(ga)>l||E(Qa)>l)&&--Ct>0);return Ct&&[ot,dt]};function Cl(){return x.geoProjection(_l).scale(139.98)}function Fs(Ge,Ze){return[d(Ge)/r(Ze),T(Ze)*r(Ge)]}Fs.invert=function(Ge,Ze){var ot=Ge*Ge,dt=Ze*Ze,Ct=dt+1,wt=ot+Ct,Dt=Ge?g*F((wt-F(wt*wt-4*ot))/ot):1/F(Ct);return[L(Ge*Dt),m(Ze)*z(Dt)]};function ol(){return x.geoProjection(Fs).scale(144.049).clipAngle(90-.001)}function uc(Ge){var Ze=r(Ge),ot=T(M+Ge/2);function dt(Ct,wt){var Dt=wt-Ge,fr=E(Dt)<l?Ct*Ze:E(fr=M+wt/2)<l||E(E(fr)-A)<l?0:Ct*Dt/n(T(fr)/ot);return[fr,Dt]}return dt.invert=function(Ct,wt){var Dt,fr=wt+Ge;return[E(wt)<l?Ct/Ze:E(Dt=M+fr/2)<l||E(E(Dt)-A)<l?0:Ct*n(T(Dt)/ot)/wt,fr]},dt}function Kl(){return at(uc).parallel(40).scale(158.837)}function Zu(Ge,Ze){return[Ge,1.25*n(T(M+.4*Ze))]}Zu.invert=function(Ge,Ze){return[Ge,2.5*e(o(.8*Ze))-.625*w]};function Sl(){return x.geoProjection(Zu).scale(108.318)}function vh(Ge){var Ze=Ge.length-1;function ot(dt,Ct){for(var wt=r(Ct),Dt=2/(1+wt*r(dt)),fr=Dt*wt*d(dt),_r=Dt*d(Ct),kr=Ze,Vr=Ge[kr],Qr=Vr[0],_i=Vr[1],Pi;--kr>=0;)Vr=Ge[kr],Qr=Vr[0]+fr*(Pi=Qr)-_r*_i,_i=Vr[1]+fr*_i+_r*Pi;return Qr=fr*(Pi=Qr)-_r*_i,_i=fr*_i+_r*Pi,[Qr,_i]}return ot.invert=function(dt,Ct){var wt=20,Dt=dt,fr=Ct;do{for(var _r=Ze,kr=Ge[_r],Vr=kr[0],Qr=kr[1],_i=0,Pi=0,qi;--_r>=0;)kr=Ge[_r],_i=Vr+Dt*(qi=_i)-fr*Pi,Pi=Qr+Dt*Pi+fr*qi,Vr=kr[0]+Dt*(qi=Vr)-fr*Qr,Qr=kr[1]+Dt*Qr+fr*qi;_i=Vr+Dt*(qi=_i)-fr*Pi,Pi=Qr+Dt*Pi+fr*qi,Vr=Dt*(qi=Vr)-fr*Qr-dt,Qr=Dt*Qr+fr*qi-Ct;var ga=_i*_i+Pi*Pi,Qa,$a;Dt-=Qa=(Vr*_i+Qr*Pi)/ga,fr-=$a=(Qr*_i-Vr*Pi)/ga}while(E(Qa)+E($a)>l*l&&--wt>0);if(wt){var yn=F(Dt*Dt+fr*fr),qn=2*e(yn*.5),po=d(qn);return[t(Dt*po,yn*r(qn)),yn?L(fr*po/yn):0]}},ot}var ws=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],ph=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],qs=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],xo=[[.9245,0],[0,0],[.01943,0]],Kc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ku(){return su(ws,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function $l(){return su(ph,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Mf(){return su(qs,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Cc(){return su(xo,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function uf(){return su(Kc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function su(Ge,Ze){var ot=x.geoProjection(vh(Ge)).rotate(Ze).clipAngle(90),dt=x.geoRotation(Ze),Ct=ot.center;return delete ot.rotate,ot.center=function(wt){return arguments.length?Ct(dt(wt)):dt.invert(Ct())},ot}var Wf=F(6),Rf=F(7);function cf(Ge,Ze){var ot=L(7*d(Ze)/(3*Wf));return[Wf*Ge*(2*r(2*ot/3)-1)/Rf,9*d(ot/3)/Rf]}cf.invert=function(Ge,Ze){var ot=3*L(Ze*Rf/9);return[Ge*Rf/(Wf*(2*r(2*ot/3)-1)),L(d(ot)*3*Wf/7)]};function Wc(){return x.geoProjection(cf).scale(164.859)}function Df(Ge,Ze){for(var ot=(1+g)*d(Ze),dt=Ze,Ct=0,wt;Ct<25&&(dt-=wt=(d(dt/2)+d(dt)-ot)/(.5*r(dt/2)+r(dt)),!(E(wt)<l));Ct++);return[Ge*(1+2*r(dt)/r(dt/2))/(3*b),2*F(3)*d(dt/2)/F(2+b)]}Df.invert=function(Ge,Ze){var ot=Ze*F(2+b)/(2*F(3)),dt=2*L(ot);return[3*b*Ge/(1+2*r(dt)/r(dt/2)),L((ot+d(dt))/(1+g))]};function zf(){return x.geoProjection(Df).scale(188.209)}function $u(Ge,Ze){for(var ot=F(6/(4+w)),dt=(1+w/4)*d(Ze),Ct=Ze/2,wt=0,Dt;wt<25&&(Ct-=Dt=(Ct/2+d(Ct)-dt)/(.5+r(Ct)),!(E(Dt)<l));wt++);return[ot*(.5+r(Ct))*Ge/1.5,ot*Ct]}$u.invert=function(Ge,Ze){var ot=F(6/(4+w)),dt=Ze/ot;return E(E(dt)-A)<l&&(dt=dt<0?-A:A),[1.5*Ge/(ot*(.5+r(dt))),L((dt/2+d(dt))/(1+w/4))]};function Ef(){return x.geoProjection($u).scale(166.518)}function cc(Ge,Ze){var ot=Ze*Ze,dt=ot*ot,Ct=ot*dt;return[Ge*(.84719-.13063*ot+Ct*Ct*(-.04515+.05494*ot-.02326*dt+.00331*Ct)),Ze*(1.01183+dt*dt*(-.02625+.01926*ot-.00396*dt))]}cc.invert=function(Ge,Ze){var ot=Ze,dt=25,Ct,wt,Dt,fr;do wt=ot*ot,Dt=wt*wt,ot-=Ct=(ot*(1.01183+Dt*Dt*(-.02625+.01926*wt-.00396*Dt))-Ze)/(1.01183+Dt*Dt*(9*-.02625+11*.01926*wt+13*-.00396*Dt));while(E(Ct)>_&&--dt>0);return wt=ot*ot,Dt=wt*wt,fr=wt*Dt,[Ge/(.84719-.13063*wt+fr*fr*(-.04515+.05494*wt-.02326*Dt+.00331*fr)),ot]};function $c(){return x.geoProjection(cc).scale(175.295)}function lu(Ge,Ze){return[Ge*(1+r(Ze))/2,2*(Ze-T(Ze/2))]}lu.invert=function(Ge,Ze){for(var ot=Ze/2,dt=0,Ct=1/0;dt<10&&E(Ct)>l;++dt){var wt=r(Ze/2);Ze-=Ct=(Ze-T(Ze/2)-ot)/(1-.5/(wt*wt))}return[2*Ge/(1+r(Ze)),Ze]};function Xc(){return x.geoProjection(lu).scale(152.63)}var Lc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function sl(){return Lo(ue(1/0),Lc).rotate([20,0]).scale(152.63)}function kf(Ge,Ze){var ot=d(Ze),dt=r(Ze),Ct=m(Ge);if(Ge===0||E(Ze)===A)return[0,Ze];if(Ze===0)return[Ge,0];if(E(Ge)===A)return[Ge*dt,A*ot];var wt=w/(2*Ge)-2*Ge/w,Dt=2*Ze/w,fr=(1-Dt*Dt)/(ot-Dt),_r=wt*wt,kr=fr*fr,Vr=1+_r/kr,Qr=1+kr/_r,_i=(wt*ot/fr-wt/2)/Vr,Pi=(kr*ot/_r+fr/2)/Qr,qi=_i*_i+dt*dt/Vr,ga=Pi*Pi-(kr*ot*ot/_r+fr*ot-1)/Qr;return[A*(_i+F(qi)*Ct),A*(Pi+F(ga<0?0:ga)*m(-Ze*wt)*Ct)]}kf.invert=function(Ge,Ze){Ge/=A,Ze/=A;var ot=Ge*Ge,dt=Ze*Ze,Ct=ot+dt,wt=w*w;return[Ge?(Ct-1+F((1-Ct)*(1-Ct)+4*ot))/(2*Ge)*A:0,Re(function(Dt){return Ct*(w*d(Dt)-2*Dt)*w+4*Dt*Dt*(Ze-d(Dt))+2*w*Dt-wt*Ze},0)]};function ah(){return x.geoProjection(kf).scale(127.267)}var Ff=1.0148,Jc=.23185,Xf=-.14499,Fu=.02406,Bf=Ff,Ll=5*Jc,Bu=7*Xf,Ic=9*Fu,xl=1.790857183;function _c(Ge,Ze){var ot=Ze*Ze;return[Ge,Ze*(Ff+ot*ot*(Jc+ot*(Xf+Fu*ot)))]}_c.invert=function(Ge,Ze){Ze>xl?Ze=xl:Ze<-xl&&(Ze=-xl);var ot=Ze,dt;do{var Ct=ot*ot;ot-=dt=(ot*(Ff+Ct*Ct*(Jc+Ct*(Xf+Fu*Ct)))-Ze)/(Bf+Ct*Ct*(Ll+Ct*(Bu+Ic*Ct)))}while(E(dt)>l);return[Ge,ot]};function Eu(){return x.geoProjection(_c).scale(139.319)}function Iu(Ge,Ze){if(E(Ze)<l)return[Ge,0];var ot=T(Ze),dt=Ge*d(Ze);return[d(dt)/ot,Ze+(1-r(dt))/ot]}Iu.invert=function(Ge,Ze){if(E(Ze)<l)return[Ge,0];var ot=Ge*Ge+Ze*Ze,dt=Ze*.5,Ct=10,wt;do{var Dt=T(dt),fr=1/r(dt),_r=ot-2*Ze*dt+dt*dt;dt-=wt=(Dt*_r+2*(dt-Ze))/(2+_r*fr*fr+2*(dt-Ze)*Dt)}while(E(wt)>l&&--Ct>0);return Dt=T(dt),[(E(Ze)<E(dt+1/Dt)?L(Ge*Dt):m(Ze)*m(Ge)*(z(E(Ge*Dt))+A))/d(dt),dt]};function Nl(){return x.geoProjection(Iu).scale(103.74)}function Of(Ge,Ze){var ot=Pc(Ge[1],Ge[0]),dt=Pc(Ze[1],Ze[0]),Ct=_h(ot,dt),wt=xc(ot)/xc(dt);return Wu([1,0,Ge[0][0],0,1,Ge[0][1]],Wu([wt,0,0,0,wt,0],Wu([r(Ct),d(Ct),0,-d(Ct),r(Ct),0],[1,0,-Ze[0][0],0,1,-Ze[0][1]])))}function Yf(Ge){var Ze=1/(Ge[0]*Ge[4]-Ge[1]*Ge[3]);return[Ze*Ge[4],-Ze*Ge[1],Ze*(Ge[1]*Ge[5]-Ge[2]*Ge[4]),-Ze*Ge[3],Ze*Ge[0],Ze*(Ge[2]*Ge[3]-Ge[0]*Ge[5])]}function Wu(Ge,Ze){return[Ge[0]*Ze[0]+Ge[1]*Ze[3],Ge[0]*Ze[1]+Ge[1]*Ze[4],Ge[0]*Ze[2]+Ge[1]*Ze[5]+Ge[2],Ge[3]*Ze[0]+Ge[4]*Ze[3],Ge[3]*Ze[1]+Ge[4]*Ze[4],Ge[3]*Ze[2]+Ge[4]*Ze[5]+Ge[5]]}function Pc(Ge,Ze){return[Ge[0]-Ze[0],Ge[1]-Ze[1]]}function xc(Ge){return F(Ge[0]*Ge[0]+Ge[1]*Ge[1])}function _h(Ge,Ze){return t(Ge[0]*Ze[1]-Ge[1]*Ze[0],Ge[0]*Ze[0]+Ge[1]*Ze[1])}function ff(Ge,Ze,ot){dt(Ge,{transform:null});function dt(kr,Vr){if(kr.edges=hu(kr.face),Vr.face){var Qr=kr.shared=hf(kr.face,Vr.face),_i=Of(Qr.map(Vr.project),Qr.map(kr.project));kr.transform=Vr.transform?Wu(Vr.transform,_i):_i;for(var Pi=Vr.edges,qi=0,ga=Pi.length;qi<ga;++qi)Xu(Qr[0],Pi[qi][1])&&Xu(Qr[1],Pi[qi][0])&&(Pi[qi]=kr),Xu(Qr[0],Pi[qi][0])&&Xu(Qr[1],Pi[qi][1])&&(Pi[qi]=kr);for(Pi=kr.edges,qi=0,ga=Pi.length;qi<ga;++qi)Xu(Qr[0],Pi[qi][0])&&Xu(Qr[1],Pi[qi][1])&&(Pi[qi]=Vr),Xu(Qr[0],Pi[qi][1])&&Xu(Qr[1],Pi[qi][0])&&(Pi[qi]=Vr)}else kr.transform=Vr.transform;return kr.children&&kr.children.forEach(function(Qa){dt(Qa,kr)}),kr}function Ct(kr,Vr){var Qr=Ze(kr,Vr),_i=Qr.project([kr*y,Vr*y]),Pi;return(Pi=Qr.transform)?[Pi[0]*_i[0]+Pi[1]*_i[1]+Pi[2],-(Pi[3]*_i[0]+Pi[4]*_i[1]+Pi[5])]:(_i[1]=-_i[1],_i)}Qc(Ge)&&(Ct.invert=function(kr,Vr){var Qr=wt(Ge,[kr,-Vr]);return Qr&&(Qr[0]*=f,Qr[1]*=f,Qr)});function wt(kr,Vr){var Qr=kr.project.invert,_i=kr.transform,Pi=Vr;if(_i&&(_i=Yf(_i),Pi=[_i[0]*Pi[0]+_i[1]*Pi[1]+_i[2],_i[3]*Pi[0]+_i[4]*Pi[1]+_i[5]]),Qr&&kr===Dt(qi=Qr(Pi)))return qi;for(var qi,ga=kr.children,Qa=0,$a=ga&&ga.length;Qa<$a;++Qa)if(qi=wt(ga[Qa],Vr))return qi}function Dt(kr){return Ze(kr[0]*f,kr[1]*f)}var fr=x.geoProjection(Ct),_r=fr.stream;return fr.stream=function(kr){var Vr=fr.rotate(),Qr=_r(kr),_i=(fr.rotate([0,0]),_r(kr));return fr.rotate(Vr),Qr.sphere=function(){_i.polygonStart(),_i.lineStart(),yf(_i,Ge),_i.lineEnd(),_i.polygonEnd()},Qr},fr.angle(ot==null?-30:ot*y)}function yf(Ge,Ze,ot){var dt,Ct=Ze.edges,wt=Ct.length,Dt,fr={type:"MultiPoint",coordinates:Ze.face},_r=Ze.face.filter(function(ga){return E(ga[1])!==90}),kr=x.geoBounds({type:"MultiPoint",coordinates:_r}),Vr=!1,Qr=-1,_i=kr[1][0]-kr[0][0],Pi=_i===180||_i===360?[(kr[0][0]+kr[1][0])/2,(kr[0][1]+kr[1][1])/2]:x.geoCentroid(fr);if(ot)for(;++Qr<wt&&Ct[Qr]!==ot;);++Qr;for(var qi=0;qi<wt;++qi)Dt=Ct[(qi+Qr)%wt],Array.isArray(Dt)?(Vr||(Ge.point((dt=x.geoInterpolate(Dt[0],Pi)(l))[0],dt[1]),Vr=!0),Ge.point((dt=x.geoInterpolate(Dt[1],Pi)(l))[0],dt[1])):(Vr=!1,Dt!==ot&&yf(Ge,Dt,Ze))}function Xu(Ge,Ze){return Ge&&Ze&&Ge[0]===Ze[0]&&Ge[1]===Ze[1]}function hf(Ge,Ze){for(var ot,dt,Ct=Ge.length,wt=null,Dt=0;Dt<Ct;++Dt){ot=Ge[Dt];for(var fr=Ze.length;--fr>=0;)if(dt=Ze[fr],ot[0]===dt[0]&&ot[1]===dt[1]){if(wt)return[wt,ot];wt=ot}}}function hu(Ge){for(var Ze=Ge.length,ot=[],dt=Ge[Ze-1],Ct=0;Ct<Ze;++Ct)ot.push([dt,dt=Ge[Ct]]);return ot}function Qc(Ge){return Ge.project.invert||Ge.children&&Ge.children.some(Qc)}var nh=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],_f=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(Ge){return Ge.map(function(Ze){return nh[Ze]})});function bl(Ge){Ge=Ge||function(ot){var dt=x.geoCentroid({type:"MultiPoint",coordinates:ot});return x.geoGnomonic().scale(1).translate([0,0]).rotate([-dt[0],-dt[1]])};var Ze=_f.map(function(ot){return{face:ot,project:Ge(ot)}});return[-1,0,0,1,0,1,4,5].forEach(function(ot,dt){var Ct=Ze[ot];Ct&&(Ct.children||(Ct.children=[])).push(Ze[dt])}),ff(Ze[0],function(ot,dt){return Ze[ot<-w/2?dt<0?6:4:ot<0?dt<0?2:0:ot<w/2?dt<0?3:1:dt<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var ku=2/F(3);function Ou(Ge,Ze){var ot=qe(Ge,Ze);return[ot[0]*ku,ot[1]]}Ou.invert=function(Ge,Ze){return qe.invert(Ge/ku,Ze)};function Cf(Ge){Ge=Ge||function(ot){var dt=x.geoCentroid({type:"MultiPoint",coordinates:ot});return x.geoProjection(Ou).translate([0,0]).scale(1).rotate(dt[1]>0?[-dt[0],0]:[180-dt[0],180])};var Ze=_f.map(function(ot){return{face:ot,project:Ge(ot)}});return[-1,0,0,1,0,1,4,5].forEach(function(ot,dt){var Ct=Ze[ot];Ct&&(Ct.children||(Ct.children=[])).push(Ze[dt])}),ff(Ze[0],function(ot,dt){return Ze[ot<-w/2?dt<0?6:4:ot<0?dt<0?2:0:ot<w/2?dt<0?3:1:dt<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Ml(Ge){Ge=Ge||function(Dt){var fr=Dt.length===6?x.geoCentroid({type:"MultiPoint",coordinates:Dt}):Dt[0];return x.geoGnomonic().scale(1).translate([0,0]).rotate([-fr[0],-fr[1]])};var Ze=_f.map(function(Dt){for(var fr=Dt.map(xf),_r=fr.length,kr=fr[_r-1],Vr,Qr=[],_i=0;_i<_r;++_i)Vr=fr[_i],Qr.push(Ju([kr[0]*.9486832980505138+Vr[0]*.31622776601683794,kr[1]*.9486832980505138+Vr[1]*.31622776601683794,kr[2]*.9486832980505138+Vr[2]*.31622776601683794]),Ju([Vr[0]*.9486832980505138+kr[0]*.31622776601683794,Vr[1]*.9486832980505138+kr[1]*.31622776601683794,Vr[2]*.9486832980505138+kr[2]*.31622776601683794])),kr=Vr;return Qr}),ot=[],dt=[-1,0,0,1,0,1,4,5];Ze.forEach(function(Dt,fr){for(var _r=_f[fr],kr=_r.length,Vr=ot[fr]=[],Qr=0;Qr<kr;++Qr)Ze.push([_r[Qr],Dt[(Qr*2+2)%(2*kr)],Dt[(Qr*2+1)%(2*kr)]]),dt.push(fr),Vr.push(Rc(xf(Dt[(Qr*2+2)%(2*kr)]),xf(Dt[(Qr*2+1)%(2*kr)])))});var Ct=Ze.map(function(Dt){return{project:Ge(Dt),face:Dt}});dt.forEach(function(Dt,fr){var _r=Ct[Dt];_r&&(_r.children||(_r.children=[])).push(Ct[fr])});function wt(Dt,fr){var _r=r(fr),kr=[_r*r(Dt),_r*d(Dt),d(fr)],Vr=Dt<-w/2?fr<0?6:4:Dt<0?fr<0?2:0:Dt<w/2?fr<0?3:1:fr<0?7:5,Qr=ot[Vr];return Ct[df(Qr[0],kr)<0?8+3*Vr:df(Qr[1],kr)<0?8+3*Vr+1:df(Qr[2],kr)<0?8+3*Vr+2:Vr]}return ff(Ct[0],wt).angle(-30).scale(110.625).center([0,45])}function df(Ge,Ze){for(var ot=0,dt=Ge.length,Ct=0;ot<dt;++ot)Ct+=Ge[ot]*Ze[ot];return Ct}function Rc(Ge,Ze){return[Ge[1]*Ze[2]-Ge[2]*Ze[1],Ge[2]*Ze[0]-Ge[0]*Ze[2],Ge[0]*Ze[1]-Ge[1]*Ze[0]]}function Ju(Ge){return[t(Ge[1],Ge[0])*y,L(a(-1,s(1,Ge[2])))*y]}function xf(Ge){var Ze=Ge[0]*f,ot=Ge[1]*f,dt=r(ot);return[dt*r(Ze),dt*d(Ze),d(ot)]}function Qu(){}function ef(Ge){if((ot=Ge.length)<4)return!1;for(var Ze=0,ot,dt=Ge[ot-1][1]*Ge[0][0]-Ge[ot-1][0]*Ge[0][1];++Ze<ot;)dt+=Ge[Ze-1][1]*Ge[Ze][0]-Ge[Ze-1][0]*Ge[Ze][1];return dt<=0}function Lf(Ge,Ze){for(var ot=Ze[0],dt=Ze[1],Ct=!1,wt=0,Dt=Ge.length,fr=Dt-1;wt<Dt;fr=wt++){var _r=Ge[wt],kr=_r[0],Vr=_r[1],Qr=Ge[fr],_i=Qr[0],Pi=Qr[1];Vr>dt^Pi>dt&&ot<(_i-kr)*(dt-Vr)/(Pi-Vr)+kr&&(Ct=!Ct)}return Ct}function du(Ge,Ze){var ot=Ze.stream,dt;if(!ot)throw new Error("invalid projection");switch(Ge&&Ge.type){case"Feature":dt=ec;break;case"FeatureCollection":dt=Nf;break;default:dt=bc;break}return dt(Ge,ot)}function Nf(Ge,Ze){return{type:"FeatureCollection",features:Ge.features.map(function(ot){return ec(ot,Ze)})}}function ec(Ge,Ze){return{type:"Feature",id:Ge.id,properties:Ge.properties,geometry:bc(Ge.geometry,Ze)}}function Dc(Ge,Ze){return{type:"GeometryCollection",geometries:Ge.geometries.map(function(ot){return bc(ot,Ze)})}}function bc(Ge,Ze){if(!Ge)return null;if(Ge.type==="GeometryCollection")return Dc(Ge,Ze);var ot;switch(Ge.type){case"Point":ot=zc;break;case"MultiPoint":ot=zc;break;case"LineString":ot=tf;break;case"MultiLineString":ot=tf;break;case"Polygon":ot=fc;break;case"MultiPolygon":ot=fc;break;case"Sphere":ot=fc;break;default:return null}return x.geoStream(Ge,Ze(ot)),ot.result()}var Jl=[],Cu=[],zc={point:function(Ge,Ze){Jl.push([Ge,Ze])},result:function(){var Ge=Jl.length?Jl.length<2?{type:"Point",coordinates:Jl[0]}:{type:"MultiPoint",coordinates:Jl}:null;return Jl=[],Ge}},tf={lineStart:Qu,point:function(Ge,Ze){Jl.push([Ge,Ze])},lineEnd:function(){Jl.length&&(Cu.push(Jl),Jl=[])},result:function(){var Ge=Cu.length?Cu.length<2?{type:"LineString",coordinates:Cu[0]}:{type:"MultiLineString",coordinates:Cu}:null;return Cu=[],Ge}},fc={polygonStart:Qu,lineStart:Qu,point:function(Ge,Ze){Jl.push([Ge,Ze])},lineEnd:function(){var Ge=Jl.length;if(Ge){do Jl.push(Jl[0].slice());while(++Ge<4);Cu.push(Jl),Jl=[]}},polygonEnd:Qu,result:function(){if(!Cu.length)return null;var Ge=[],Ze=[];return Cu.forEach(function(ot){ef(ot)?Ge.push([ot]):Ze.push(ot)}),Ze.forEach(function(ot){var dt=ot[0];Ge.some(function(Ct){if(Lf(Ct[0],dt))return Ct.push(ot),!0})||Ge.push([ot])}),Cu=[],Ge.length?Ge.length>1?{type:"MultiPolygon",coordinates:Ge}:{type:"Polygon",coordinates:Ge[0]}:null}};function Fc(Ge){var Ze=Ge(A,0)[0]-Ge(-A,0)[0];function ot(dt,Ct){var wt=E(dt)<A,Dt=Ge(wt?dt:dt>0?dt-w:dt+w,Ct),fr=(Dt[0]-Dt[1])*g,_r=(Dt[0]+Dt[1])*g;if(wt)return[fr,_r];var kr=Ze*g,Vr=fr>0^_r>0?-1:1;return[Vr*fr-m(_r)*kr,Vr*_r-m(fr)*kr]}return Ge.invert&&(ot.invert=function(dt,Ct){var wt=(dt+Ct)*g,Dt=(Ct-dt)*g,fr=E(wt)<.5*Ze&&E(Dt)<.5*Ze;if(!fr){var _r=Ze*g,kr=wt>0^Dt>0?-1:1,Vr=-kr*dt+(Dt>0?1:-1)*_r,Qr=-kr*Ct+(wt>0?1:-1)*_r;wt=(-Vr-Qr)*g,Dt=(Vr-Qr)*g}var _i=Ge.invert(wt,Dt);return fr||(_i[0]+=wt>0?w:-w),_i}),x.geoProjection(ot).rotate([-90,-90,45]).clipAngle(180-.001)}function er(){return Fc(fi).scale(176.423)}function wr(){return Fc(eo).scale(111.48)}function ai(Ge,Ze){if(!(0<=(Ze=+Ze)&&Ze<=20))throw new Error("invalid digits");function ot(kr){var Vr=kr.length,Qr=2,_i=new Array(Vr);for(_i[0]=+kr[0].toFixed(Ze),_i[1]=+kr[1].toFixed(Ze);Qr<Vr;)_i[Qr]=kr[Qr],++Qr;return _i}function dt(kr){return kr.map(ot)}function Ct(kr){for(var Vr=ot(kr[0]),Qr=[Vr],_i=1;_i<kr.length;_i++){var Pi=ot(kr[_i]);(Pi.length>2||Pi[0]!=Vr[0]||Pi[1]!=Vr[1])&&(Qr.push(Pi),Vr=Pi)}return Qr.length===1&&kr.length>1&&Qr.push(ot(kr[kr.length-1])),Qr}function wt(kr){return kr.map(Ct)}function Dt(kr){if(kr==null)return kr;var Vr;switch(kr.type){case"GeometryCollection":Vr={type:"GeometryCollection",geometries:kr.geometries.map(Dt)};break;case"Point":Vr={type:"Point",coordinates:ot(kr.coordinates)};break;case"MultiPoint":Vr={type:kr.type,coordinates:dt(kr.coordinates)};break;case"LineString":Vr={type:kr.type,coordinates:Ct(kr.coordinates)};break;case"MultiLineString":case"Polygon":Vr={type:kr.type,coordinates:wt(kr.coordinates)};break;case"MultiPolygon":Vr={type:"MultiPolygon",coordinates:kr.coordinates.map(wt)};break;default:return kr}return kr.bbox!=null&&(Vr.bbox=kr.bbox),Vr}function fr(kr){var Vr={type:"Feature",properties:kr.properties,geometry:Dt(kr.geometry)};return kr.id!=null&&(Vr.id=kr.id),kr.bbox!=null&&(Vr.bbox=kr.bbox),Vr}if(Ge!=null)switch(Ge.type){case"Feature":return fr(Ge);case"FeatureCollection":{var _r={type:"FeatureCollection",features:Ge.features.map(fr)};return Ge.bbox!=null&&(_r.bbox=Ge.bbox),_r}default:return Dt(Ge)}return Ge}function Jr(Ge){var Ze=d(Ge);function ot(dt,Ct){var wt=Ze?T(dt*Ze/2)/Ze:dt/2;if(!Ct)return[2*wt,-Ge];var Dt=2*e(wt*d(Ct)),fr=1/T(Ct);return[d(Dt)*fr,Ct+(1-r(Dt))*fr-Ge]}return ot.invert=function(dt,Ct){if(E(Ct+=Ge)<l)return[Ze?2*e(Ze*dt/2)/Ze:dt,0];var wt=dt*dt+Ct*Ct,Dt=0,fr=10,_r;do{var kr=T(Dt),Vr=1/r(Dt),Qr=wt-2*Ct*Dt+Dt*Dt;Dt-=_r=(kr*Qr+2*(Dt-Ct))/(2+Qr*Vr*Vr+2*(Dt-Ct)*kr)}while(E(_r)>l&&--fr>0);var _i=dt*(kr=T(Dt)),Pi=T(E(Ct)<E(Dt+1/kr)?L(_i)*.5:z(_i)*.5+w/4)/d(Dt);return[Ze?2*e(Ze*Pi)/Ze:2*Pi,Dt]},ot}function Fi(){return at(Jr).scale(131.215)}var pa=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];pa.forEach(function(Ge){Ge[1]*=1.0144});function Ba(Ge,Ze){var ot=s(18,E(Ze)*36/w),dt=i(ot),Ct=ot-dt,wt=(Qr=pa[dt])[0],Dt=Qr[1],fr=(Qr=pa[++dt])[0],_r=Qr[1],kr=(Qr=pa[s(19,++dt)])[0],Vr=Qr[1],Qr;return[Ge*(fr+Ct*(kr-wt)/2+Ct*Ct*(kr-2*fr+wt)/2),(Ze>0?A:-A)*(_r+Ct*(Vr-Dt)/2+Ct*Ct*(Vr-2*_r+Dt)/2)]}Ba.invert=function(Ge,Ze){var ot=Ze/A,dt=ot*90,Ct=s(18,E(dt/5)),wt=a(0,i(Ct));do{var Dt=pa[wt][1],fr=pa[wt+1][1],_r=pa[s(19,wt+2)][1],kr=_r-Dt,Vr=_r-2*fr+Dt,Qr=2*(E(ot)-fr)/kr,_i=Vr/kr,Pi=Qr*(1-_i*Qr*(1-2*_i*Qr));if(Pi>=0||wt===1){dt=(Ze>=0?5:-5)*(Pi+Ct);var qi=50,ga;do Ct=s(18,E(dt)/5),wt=i(Ct),Pi=Ct-wt,Dt=pa[wt][1],fr=pa[wt+1][1],_r=pa[s(19,wt+2)][1],dt-=(ga=(Ze>=0?A:-A)*(fr+Pi*(_r-Dt)/2+Pi*Pi*(_r-2*fr+Dt)/2)-Ze)*y;while(E(ga)>_&&--qi>0);break}}while(--wt>=0);var Qa=pa[wt][0],$a=pa[wt+1][0],yn=pa[s(19,wt+2)][0];return[Ge/($a+Pi*(yn-Qa)/2+Pi*Pi*(yn-2*$a+Qa)/2),dt*f]};function an(){return x.geoProjection(Ba).scale(152.63)}function hn(Ge){function Ze(ot,dt){var Ct=r(dt),wt=(Ge-1)/(Ge-Ct*r(ot));return[wt*Ct*d(ot),wt*d(dt)]}return Ze.invert=function(ot,dt){var Ct=ot*ot+dt*dt,wt=F(Ct),Dt=(Ge-F(1-Ct*(Ge+1)/(Ge-1)))/((Ge-1)/wt+wt/(Ge-1));return[t(ot*Dt,wt*F(1-Dt*Dt)),wt?L(dt*Dt/wt):0]},Ze}function Ln(Ge,Ze){var ot=hn(Ge);if(!Ze)return ot;var dt=r(Ze),Ct=d(Ze);function wt(Dt,fr){var _r=ot(Dt,fr),kr=_r[1],Vr=kr*Ct/(Ge-1)+dt;return[_r[0]*dt/Vr,kr/Vr]}return wt.invert=function(Dt,fr){var _r=(Ge-1)/(Ge-1-fr*Ct);return ot.invert(_r*Dt,_r*fr*dt)},wt}function Na(){var Ge=2,Ze=0,ot=x.geoProjectionMutator(Ln),dt=ot(Ge,Ze);return dt.distance=function(Ct){return arguments.length?ot(Ge=+Ct,Ze):Ge},dt.tilt=function(Ct){return arguments.length?ot(Ge,Ze=Ct*f):Ze*y},dt.scale(432.147).clipAngle(z(1/Ge)*y-1e-6)}var qa=1e-4,Za=1e4,Ta=-180,Hn=Ta+qa,go=180,wo=go-qa,yo=-90,Io=yo+qa,Vn=90,wn=Vn-qa;function Oo(Ge){return Ge.length>0}function ps(Ge){return Math.floor(Ge*Za)/Za}function js(Ge){return Ge===yo||Ge===Vn?[0,Ge]:[Ta,ps(Ge)]}function pl(Ge){var Ze=Ge[0],ot=Ge[1],dt=!1;return Ze<=Hn?(Ze=Ta,dt=!0):Ze>=wo&&(Ze=go,dt=!0),ot<=Io?(ot=yo,dt=!0):ot>=wn&&(ot=Vn,dt=!0),dt?[Ze,ot]:Ge}function Qs(Ge){return Ge.map(pl)}function hl(Ge,Ze,ot){for(var dt=0,Ct=Ge.length;dt<Ct;++dt){var wt=Ge[dt].slice();ot.push({index:-1,polygon:Ze,ring:wt});for(var Dt=0,fr=wt.length;Dt<fr;++Dt){var _r=wt[Dt],kr=_r[0],Vr=_r[1];if(kr<=Hn||kr>=wo||Vr<=Io||Vr>=wn){wt[Dt]=pl(_r);for(var Qr=Dt+1;Qr<fr;++Qr){var _i=wt[Qr],Pi=_i[0],qi=_i[1];if(Pi>Hn&&Pi<wo&&qi>Io&&qi<wn)break}if(Qr===Dt+1)continue;if(Dt){var ga={index:-1,polygon:Ze,ring:wt.slice(0,Dt+1)};ga.ring[ga.ring.length-1]=js(Vr),ot[ot.length-1]=ga}else ot.pop();if(Qr>=fr)break;ot.push({index:-1,polygon:Ze,ring:wt=wt.slice(Qr-1)}),wt[0]=js(wt[0][1]),Dt=-1,fr=wt.length}}}}function Bs(Ge){var Ze,ot=Ge.length,dt={},Ct={},wt,Dt,fr,_r,kr;for(Ze=0;Ze<ot;++Ze){if(wt=Ge[Ze],Dt=wt.ring[0],_r=wt.ring[wt.ring.length-1],Dt[0]===_r[0]&&Dt[1]===_r[1]){wt.polygon.push(wt.ring),Ge[Ze]=null;continue}wt.index=Ze,dt[Dt]=Ct[_r]=wt}for(Ze=0;Ze<ot;++Ze)if(wt=Ge[Ze],wt){if(Dt=wt.ring[0],_r=wt.ring[wt.ring.length-1],fr=Ct[Dt],kr=dt[_r],delete dt[Dt],delete Ct[_r],Dt[0]===_r[0]&&Dt[1]===_r[1]){wt.polygon.push(wt.ring);continue}fr?(delete Ct[Dt],delete dt[fr.ring[0]],fr.ring.pop(),Ge[fr.index]=null,wt={index:-1,polygon:fr.polygon,ring:fr.ring.concat(wt.ring)},fr===kr?wt.polygon.push(wt.ring):(wt.index=ot++,Ge.push(dt[wt.ring[0]]=Ct[wt.ring[wt.ring.length-1]]=wt))):kr?(delete dt[_r],delete Ct[kr.ring[kr.ring.length-1]],wt.ring.pop(),wt={index:ot++,polygon:kr.polygon,ring:wt.ring.concat(kr.ring)},Ge[kr.index]=null,Ge.push(dt[wt.ring[0]]=Ct[wt.ring[wt.ring.length-1]]=wt)):(wt.ring.push(wt.ring[0]),wt.polygon.push(wt.ring))}}function Wl(Ge){var Ze={type:"Feature",geometry:Il(Ge.geometry)};return Ge.id!=null&&(Ze.id=Ge.id),Ge.bbox!=null&&(Ze.bbox=Ge.bbox),Ge.properties!=null&&(Ze.properties=Ge.properties),Ze}function Il(Ge){if(Ge==null)return Ge;var Ze,ot,dt,Ct;switch(Ge.type){case"GeometryCollection":Ze={type:"GeometryCollection",geometries:Ge.geometries.map(Il)};break;case"Point":Ze={type:"Point",coordinates:pl(Ge.coordinates)};break;case"MultiPoint":case"LineString":Ze={type:Ge.type,coordinates:Qs(Ge.coordinates)};break;case"MultiLineString":Ze={type:"MultiLineString",coordinates:Ge.coordinates.map(Qs)};break;case"Polygon":{var wt=[];hl(Ge.coordinates,wt,ot=[]),Bs(ot),Ze={type:"Polygon",coordinates:wt};break}case"MultiPolygon":{ot=[],dt=-1,Ct=Ge.coordinates.length;for(var Dt=new Array(Ct);++dt<Ct;)hl(Ge.coordinates[dt],Dt[dt]=[],ot);Bs(ot),Ze={type:"MultiPolygon",coordinates:Dt.filter(Oo)};break}default:return Ge}return Ge.bbox!=null&&(Ze.bbox=Ge.bbox),Ze}function wl(Ge){if(Ge==null)return Ge;switch(Ge.type){case"Feature":return Wl(Ge);case"FeatureCollection":{var Ze={type:"FeatureCollection",features:Ge.features.map(Wl)};return Ge.bbox!=null&&(Ze.bbox=Ge.bbox),Ze}default:return Il(Ge)}}function io(Ge,Ze){var ot=T(Ze/2),dt=d(M*ot);return[Ge*(.74482-.34588*dt*dt),1.70711*ot]}io.invert=function(Ge,Ze){var ot=Ze/1.70711,dt=d(M*ot);return[Ge/(.74482-.34588*dt*dt),2*e(ot)]};function Jo(){return x.geoProjection(io).scale(146.153)}function cl(Ge,Ze,ot){var dt=x.geoInterpolate(Ze,ot),Ct=dt(.5),wt=x.geoRotation([-Ct[0],-Ct[1]])(Ze),Dt=dt.distance/2,fr=-L(d(wt[1]*f)/d(Dt)),_r=[-Ct[0],-Ct[1],-(wt[0]>0?w-fr:fr)*y],kr=x.geoProjection(Ge(Dt)).rotate(_r),Vr=x.geoRotation(_r),Qr=kr.center;return delete kr.rotate,kr.center=function(_i){return arguments.length?Qr(Vr(_i)):Vr.invert(Qr())},kr.clipAngle(90)}function Zs(Ge){var Ze=r(Ge);function ot(dt,Ct){var wt=x.geoGnomonicRaw(dt,Ct);return wt[0]*=Ze,wt}return ot.invert=function(dt,Ct){return x.geoGnomonicRaw.invert(dt/Ze,Ct)},ot}function gu(){return Nu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Nu(Ge,Ze){return cl(Zs,Ge,Ze)}function tc(Ge){if(!(Ge*=2))return x.geoAzimuthalEquidistantRaw;var Ze=-Ge/2,ot=-Ze,dt=Ge*Ge,Ct=T(ot),wt=.5/d(ot);function Dt(fr,_r){var kr=z(r(_r)*r(fr-Ze)),Vr=z(r(_r)*r(fr-ot)),Qr=_r<0?-1:1;return kr*=kr,Vr*=Vr,[(kr-Vr)/(2*Ge),Qr*F(4*dt*Vr-(dt-kr+Vr)*(dt-kr+Vr))/(2*Ge)]}return Dt.invert=function(fr,_r){var kr=_r*_r,Vr=r(F(kr+(_i=fr+Ze)*_i)),Qr=r(F(kr+(_i=fr+ot)*_i)),_i,Pi;return[t(Pi=Vr-Qr,_i=(Vr+Qr)*Ct),(_r<0?-1:1)*z(F(_i*_i+Pi*Pi)*wt)]},Dt}function Bc(){return Lu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Lu(Ge,Ze){return cl(tc,Ge,Ze)}function Oc(Ge,Ze){if(E(Ze)<l)return[Ge,0];var ot=E(Ze/A),dt=L(ot);if(E(Ge)<l||E(E(Ze)-A)<l)return[0,m(Ze)*w*T(dt/2)];var Ct=r(dt),wt=E(w/Ge-Ge/w)/2,Dt=wt*wt,fr=Ct/(ot+Ct-1),_r=fr*(2/ot-1),kr=_r*_r,Vr=kr+Dt,Qr=fr-kr,_i=Dt+fr;return[m(Ge)*w*(wt*Qr+F(Dt*Qr*Qr-Vr*(fr*fr-kr)))/Vr,m(Ze)*w*(_r*_i-wt*F((Dt+1)*Vr-_i*_i))/Vr]}Oc.invert=function(Ge,Ze){if(E(Ze)<l)return[Ge,0];if(E(Ge)<l)return[0,A*d(2*e(Ze/w))];var ot=(Ge/=w)*Ge,dt=(Ze/=w)*Ze,Ct=ot+dt,wt=Ct*Ct,Dt=-E(Ze)*(1+Ct),fr=Dt-2*dt+ot,_r=-2*Dt+1+2*dt+wt,kr=dt/_r+(2*fr*fr*fr/(_r*_r*_r)-9*Dt*fr/(_r*_r))/27,Vr=(Dt-fr*fr/(3*_r))/_r,Qr=2*F(-Vr/3),_i=z(3*kr/(Vr*Qr))/3;return[w*(Ct-1+F(1+2*(ot-dt)+wt))/(2*Ge),m(Ze)*w*(-Qr*r(_i+w/3)-fr/(3*_r))]};function Pu(){return x.geoProjection(Oc).scale(79.4183)}function wc(Ge,Ze){if(E(Ze)<l)return[Ge,0];var ot=E(Ze/A),dt=L(ot);if(E(Ge)<l||E(E(Ze)-A)<l)return[0,m(Ze)*w*T(dt/2)];var Ct=r(dt),wt=E(w/Ge-Ge/w)/2,Dt=wt*wt,fr=Ct*(F(1+Dt)-wt*Ct)/(1+Dt*ot*ot);return[m(Ge)*w*fr,m(Ze)*w*F(1-fr*(2*wt+fr))]}wc.invert=function(Ge,Ze){if(!Ge)return[0,A*d(2*e(Ze/w))];var ot=E(Ge/w),dt=(1-ot*ot-(Ze/=w)*Ze)/(2*ot),Ct=dt*dt,wt=F(Ct+1);return[m(Ge)*w*(wt-dt),m(Ze)*A*d(2*t(F((1-2*dt*ot)*(dt+wt)-ot),F(wt+dt+ot)))]};function Po(){return x.geoProjection(wc).scale(79.4183)}function es(Ge,Ze){if(E(Ze)<l)return[Ge,0];var ot=Ze/A,dt=L(ot);if(E(Ge)<l||E(E(Ze)-A)<l)return[0,w*T(dt/2)];var Ct=(w/Ge-Ge/w)/2,wt=ot/(1+r(dt));return[w*(m(Ge)*F(Ct*Ct+1-wt*wt)-Ct),w*wt]}es.invert=function(Ge,Ze){if(!Ze)return[Ge,0];var ot=Ze/w,dt=(w*w*(1-ot*ot)-Ge*Ge)/(2*w*Ge);return[Ge?w*(m(Ge)*F(dt*dt+1)-dt):0,A*d(2*e(ot))]};function Nc(){return x.geoProjection(es).scale(79.4183)}function hc(Ge,Ze){if(!Ze)return[Ge,0];var ot=E(Ze);if(!Ge||ot===A)return[0,Ze];var dt=ot/A,Ct=dt*dt,wt=(8*dt-Ct*(Ct+2)-5)/(2*Ct*(dt-1)),Dt=wt*wt,fr=dt*wt,_r=Ct+Dt+2*fr,kr=dt+3*wt,Vr=Ge/A,Qr=Vr+1/Vr,_i=m(E(Ge)-A)*F(Qr*Qr-4),Pi=_i*_i,qi=_r*(Ct+Dt*Pi-1)+(1-Ct)*(Ct*(kr*kr+4*Dt)+12*fr*Dt+4*Dt*Dt),ga=(_i*(_r+Dt-1)+2*F(qi))/(4*_r+Pi);return[m(Ge)*A*ga,m(Ze)*A*F(1+_i*E(ga)-ga*ga)]}hc.invert=function(Ge,Ze){var ot;if(!Ge||!Ze)return[Ge,Ze];Ze/=w;var dt=m(Ge)*Ge/A,Ct=(dt*dt-1+4*Ze*Ze)/E(dt),wt=Ct*Ct,Dt=2*Ze,fr=50;do{var _r=Dt*Dt,kr=(8*Dt-_r*(_r+2)-5)/(2*_r*(Dt-1)),Vr=(3*Dt-_r*Dt-10)/(2*_r*Dt),Qr=kr*kr,_i=Dt*kr,Pi=Dt+kr,qi=Pi*Pi,ga=Dt+3*kr,Qa=qi*(_r+Qr*wt-1)+(1-_r)*(_r*(ga*ga+4*Qr)+Qr*(12*_i+4*Qr)),$a=-2*Pi*(4*_i*Qr+(1-4*_r+3*_r*_r)*(1+Vr)+Qr*(-6+14*_r-wt+(-8+8*_r-2*wt)*Vr)+_i*(-8+12*_r+(-10+10*_r-wt)*Vr)),yn=F(Qa),qn=Ct*(qi+Qr-1)+2*yn-dt*(4*qi+wt),po=Ct*(2*kr*Vr+2*Pi*(1+Vr))+$a/yn-8*Pi*(Ct*(-1+Qr+qi)+2*yn)*(1+Vr)/(wt+4*qi);Dt-=ot=qn/po}while(ot>l&&--fr>0);return[m(Ge)*(F(Ct*Ct+4)+Ct)*w/4,A*Dt]};function rc(){return x.geoProjection(hc).scale(127.16)}function Ue(Ge,Ze,ot,dt,Ct){function wt(Dt,fr){var _r=ot*d(dt*fr),kr=F(1-_r*_r),Vr=F(2/(1+kr*r(Dt*=Ct)));return[Ge*kr*Vr*d(Dt),Ze*_r*Vr]}return wt.invert=function(Dt,fr){var _r=Dt/Ge,kr=fr/Ze,Vr=F(_r*_r+kr*kr),Qr=2*L(Vr/2);return[t(Dt*T(Qr),Ge*Vr)/Ct,Vr&&L(fr*d(Qr)/(Ze*ot*Vr))/dt]},wt}function P(Ge,Ze,ot,dt){var Ct=w/3;Ge=a(Ge,l),Ze=a(Ze,l),Ge=s(Ge,A),Ze=s(Ze,w-l),ot=a(ot,0),ot=s(ot,100-l),dt=a(dt,l);var wt=ot/100+1,Dt=dt/100,fr=z(wt*r(Ct))/Ct,_r=d(Ge)/d(fr*A),kr=Ze/w,Vr=F(Dt*d(Ge/2)/d(Ze/2)),Qr=Vr/F(kr*_r*fr),_i=1/(Vr*F(kr*_r*fr));return Ue(Qr,_i,_r,fr,kr)}function ae(){var Ge=65*f,Ze=60*f,ot=20,dt=200,Ct=x.geoProjectionMutator(P),wt=Ct(Ge,Ze,ot,dt);return wt.poleline=function(Dt){return arguments.length?Ct(Ge=+Dt*f,Ze,ot,dt):Ge*y},wt.parallels=function(Dt){return arguments.length?Ct(Ge,Ze=+Dt*f,ot,dt):Ze*y},wt.inflation=function(Dt){return arguments.length?Ct(Ge,Ze,ot=+Dt,dt):ot},wt.ratio=function(Dt){return arguments.length?Ct(Ge,Ze,ot,dt=+Dt):dt},wt.scale(163.775)}function xe(){return ae().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Te=4*w+3*F(3),Oe=2*F(2*w*F(3)/Te),ht=et(Oe*F(3)/w,Oe,Te/6);function Tt(){return x.geoProjection(ht).scale(176.84)}function Ot(Ge,Ze){return[Ge*F(1-3*Ze*Ze/(w*w)),Ze]}Ot.invert=function(Ge,Ze){return[Ge/F(1-3*Ze*Ze/(w*w)),Ze]};function Qt(){return x.geoProjection(Ot).scale(152.63)}function Ar(Ge,Ze){var ot=r(Ze),dt=r(Ge)*ot,Ct=1-dt,wt=r(Ge=t(d(Ge)*ot,-d(Ze))),Dt=d(Ge);return ot=F(1-dt*dt),[Dt*ot-wt*Ct,-wt*ot-Dt*Ct]}Ar.invert=function(Ge,Ze){var ot=(Ge*Ge+Ze*Ze)/-2,dt=F(-ot*(2+ot)),Ct=Ze*ot+Ge*dt,wt=Ge*ot-Ze*dt,Dt=F(wt*wt+Ct*Ct);return[t(dt*Ct,Dt*(1+ot)),Dt?-L(dt*wt/Dt):0]};function Sr(){return x.geoProjection(Ar).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Kr(Ge,Ze){var ot=se(Ge,Ze);return[(ot[0]+Ge/A)/2,(ot[1]+Ze)/2]}Kr.invert=function(Ge,Ze){var ot=Ge,dt=Ze,Ct=25;do{var wt=r(dt),Dt=d(dt),fr=d(2*dt),_r=Dt*Dt,kr=wt*wt,Vr=d(ot),Qr=r(ot/2),_i=d(ot/2),Pi=_i*_i,qi=1-kr*Qr*Qr,ga=qi?z(wt*Qr)*F(Qa=1/qi):Qa=0,Qa,$a=.5*(2*ga*wt*_i+ot/A)-Ge,yn=.5*(ga*Dt+dt)-Ze,qn=.5*Qa*(kr*Pi+ga*wt*Qr*_r)+.5/A,po=Qa*(Vr*fr/4-ga*Dt*_i),to=.125*Qa*(fr*_i-ga*Dt*kr*Vr),Vo=.5*Qa*(_r*Qr+ga*Pi*wt)+.5,bs=po*to-Vo*qn,Ho=(yn*po-$a*Vo)/bs,ds=($a*to-yn*qn)/bs;ot-=Ho,dt-=ds}while((E(Ho)>l||E(ds)>l)&&--Ct>0);return[ot,dt]};function oi(){return x.geoProjection(Kr).scale(158.837)}p.geoNaturalEarth=x.geoNaturalEarth1,p.geoNaturalEarthRaw=x.geoNaturalEarth1Raw,p.geoAiry=J,p.geoAiryRaw=X,p.geoAitoff=le,p.geoAitoffRaw=se,p.geoArmadillo=q,p.geoArmadilloRaw=ce,p.geoAugust=ee,p.geoAugustRaw=Z,p.geoBaker=j,p.geoBakerRaw=ie,p.geoBerghaus=re,p.geoBerghausRaw=Q,p.geoBertin1953=tt,p.geoBertin1953Raw=Xe,p.geoBoggs=Qe,p.geoBoggsRaw=Be,p.geoBonne=Vt,p.geoBonneRaw=Pt,p.geoBottomley=Cr,p.geoBottomleyRaw=Wt,p.geoBromley=qr,p.geoBromleyRaw=yr,p.geoChamberlin=Ie,p.geoChamberlinRaw=Ne,p.geoChamberlinAfrica=be,p.geoCollignon=ke,p.geoCollignonRaw=qe,p.geoCraig=Le,p.geoCraigRaw=Me,p.geoCraster=gt,p.geoCrasterRaw=lt,p.geoCylindricalEqualArea=nr,p.geoCylindricalEqualAreaRaw=kt,p.geoCylindricalStereographic=tr,p.geoCylindricalStereographicRaw=ir,p.geoEckert1=vi,p.geoEckert1Raw=Ir,p.geoEckert2=Ui,p.geoEckert2Raw=Vi,p.geoEckert3=ea,p.geoEckert3Raw=Ki,p.geoEckert4=_a,p.geoEckert4Raw=Bi,p.geoEckert5=Kt,p.geoEckert5Raw=Ca,p.geoEckert6=Zt,p.geoEckert6Raw=zt,p.geoEisenlohr=ri,p.geoEisenlohrRaw=Br,p.geoFahey=Wi,p.geoFaheyRaw=di,p.geoFoucaut=ra,p.geoFoucautRaw=oa,p.geoFoucautSinusoidal=xa,p.geoFoucautSinusoidalRaw=ca,p.geoGilbert=_n,p.geoGingery=Nr,p.geoGingeryRaw=En,p.geoGinzburg4=Rr,p.geoGinzburg4Raw=br,p.geoGinzburg5=Wr,p.geoGinzburg5Raw=jr,p.geoGinzburg6=Xt,p.geoGinzburg6Raw=yt,p.geoGinzburg8=Or,p.geoGinzburg8Raw=mr,p.geoGinzburg9=Ni,p.geoGinzburg9Raw=ki,p.geoGringorten=Fa,p.geoGringortenRaw=fi,p.geoGuyou=Eo,p.geoGuyouRaw=eo,p.geoHammer=we,p.geoHammerRaw=ue,p.geoHammerRetroazimuthal=ns,p.geoHammerRetroazimuthalRaw=fs,p.geoHealpix=Ms,p.geoHealpixRaw=el,p.geoHill=ul,p.geoHillRaw=Gs,p.geoHomolosine=so,p.geoHomolosineRaw=zs,p.geoHufnagel=Ps,p.geoHufnagelRaw=$s,p.geoHyperelliptical=Ko,p.geoHyperellipticalRaw=On,p.geoInterrupt=Lo,p.geoInterruptedBoggs=kl,p.geoInterruptedHomolosine=rl,p.geoInterruptedMollweide=Us,p.geoInterruptedMollweideHemispheres=pu,p.geoInterruptedSinuMollweide=Au,p.geoInterruptedSinusoidal=Gc,p.geoKavrayskiy7=yc,p.geoKavrayskiy7Raw=Js,p.geoLagrange=mu,p.geoLagrangeRaw=Zc,p.geoLarrivee=Gu,p.geoLarriveeRaw=lc,p.geoLaskowski=Cl,p.geoLaskowskiRaw=_l,p.geoLittrow=ol,p.geoLittrowRaw=Fs,p.geoLoximuthal=Kl,p.geoLoximuthalRaw=uc,p.geoMiller=Sl,p.geoMillerRaw=Zu,p.geoModifiedStereographic=su,p.geoModifiedStereographicRaw=vh,p.geoModifiedStereographicAlaska=Ku,p.geoModifiedStereographicGs48=$l,p.geoModifiedStereographicGs50=Mf,p.geoModifiedStereographicMiller=Cc,p.geoModifiedStereographicLee=uf,p.geoMollweide=Ae,p.geoMollweideRaw=nt,p.geoMtFlatPolarParabolic=Wc,p.geoMtFlatPolarParabolicRaw=cf,p.geoMtFlatPolarQuartic=zf,p.geoMtFlatPolarQuarticRaw=Df,p.geoMtFlatPolarSinusoidal=Ef,p.geoMtFlatPolarSinusoidalRaw=$u,p.geoNaturalEarth2=$c,p.geoNaturalEarth2Raw=cc,p.geoNellHammer=Xc,p.geoNellHammerRaw=lu,p.geoInterruptedQuarticAuthalic=sl,p.geoNicolosi=ah,p.geoNicolosiRaw=kf,p.geoPatterson=Eu,p.geoPattersonRaw=_c,p.geoPolyconic=Nl,p.geoPolyconicRaw=Iu,p.geoPolyhedral=ff,p.geoPolyhedralButterfly=bl,p.geoPolyhedralCollignon=Cf,p.geoPolyhedralWaterman=Ml,p.geoProject=du,p.geoGringortenQuincuncial=er,p.geoPeirceQuincuncial=wr,p.geoPierceQuincuncial=wr,p.geoQuantize=ai,p.geoQuincuncial=Fc,p.geoRectangularPolyconic=Fi,p.geoRectangularPolyconicRaw=Jr,p.geoRobinson=an,p.geoRobinsonRaw=Ba,p.geoSatellite=Na,p.geoSatelliteRaw=Ln,p.geoSinuMollweide=tl,p.geoSinuMollweideRaw=Xn,p.geoSinusoidal=It,p.geoSinusoidalRaw=$e,p.geoStitch=wl,p.geoTimes=Jo,p.geoTimesRaw=io,p.geoTwoPointAzimuthal=Nu,p.geoTwoPointAzimuthalRaw=Zs,p.geoTwoPointAzimuthalUsa=gu,p.geoTwoPointEquidistant=Lu,p.geoTwoPointEquidistantRaw=tc,p.geoTwoPointEquidistantUsa=Bc,p.geoVanDerGrinten=Pu,p.geoVanDerGrintenRaw=Oc,p.geoVanDerGrinten2=Po,p.geoVanDerGrinten2Raw=wc,p.geoVanDerGrinten3=Nc,p.geoVanDerGrinten3Raw=es,p.geoVanDerGrinten4=rc,p.geoVanDerGrinten4Raw=hc,p.geoWagner=ae,p.geoWagner7=xe,p.geoWagnerRaw=P,p.geoWagner4=Tt,p.geoWagner4Raw=ht,p.geoWagner6=Qt,p.geoWagner6Raw=Ot,p.geoWiechel=Sr,p.geoWiechelRaw=Ar,p.geoWinkel3=oi,p.geoWinkel3Raw=Kr,Object.defineProperty(p,"__esModule",{value:!0})})}}),hP=De({"src/plots/geo/zoom.js"(Y,H){"use strict";var p=za(),x=ui(),S=Mo(),E=Math.PI/180,e=180/Math.PI,t={cursor:"pointer"},r={cursor:"auto"};function o(y,f){var R=y.projection,L;return f._isScoped?L=a:f._isClipped?L=h:L=s,L(y,R)}H.exports=o;function i(y,f){return p.behavior.zoom().translate(f.translate()).scale(f.scale())}function n(y,f,R){var L=y.id,z=y.graphDiv,F=z.layout,N=F[L],B=z._fullLayout,I=B[L],U={},O={};function X(J,se){U[L+"."+J]=x.nestedProperty(N,J).get(),S.call("_storeDirectGUIEdit",F,B._preGUI,U);var le=x.nestedProperty(I,J);le.get()!==se&&(le.set(se),x.nestedProperty(N,J).set(se),O[L+"."+J]=se)}R(X),X("projection.scale",f.scale()/y.fitScale),X("fitbounds",!1),z.emit("plotly_relayout",O)}function a(y,f){var R=i(y,f);function L(){p.select(this).style(t)}function z(){f.scale(p.event.scale).translate(p.event.translate),y.render(!0);var B=f.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.center.lon":B[0],"geo.center.lat":B[1]})}function F(B){var I=f.invert(y.midPt);B("center.lon",I[0]),B("center.lat",I[1])}function N(){p.select(this).style(r),n(y,f,F)}return R.on("zoomstart",L).on("zoom",z).on("zoomend",N),R}function s(y,f){var R=i(y,f),L=2,z,F,N,B,I,U,O,X,J;function se(V){return f.invert(V)}function le(V){var oe=se(V);if(!oe)return!0;var ie=f(oe);return Math.abs(ie[0]-V[0])>L||Math.abs(ie[1]-V[1])>L}function ce(){p.select(this).style(t),z=p.mouse(this),F=f.rotate(),N=f.translate(),B=F,I=se(z)}function q(){if(U=p.mouse(this),le(z)){R.scale(f.scale()),R.translate(f.translate());return}f.scale(p.event.scale),f.translate([N[0],p.event.translate[1]]),I?se(U)&&(X=se(U),O=[B[0]+(X[0]-I[0]),F[1],F[2]],f.rotate(O),B=O):(z=U,I=se(z)),J=!0,y.render(!0);var V=f.rotate(),oe=f.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.center.lon":oe[0],"geo.center.lat":oe[1],"geo.projection.rotation.lon":-V[0]})}function Z(){p.select(this).style(r),J&&n(y,f,ee)}function ee(V){var oe=f.rotate(),ie=f.invert(y.midPt);V("projection.rotation.lon",-oe[0]),V("center.lon",ie[0]),V("center.lat",ie[1])}return R.on("zoomstart",ce).on("zoom",q).on("zoomend",Z),R}function h(y,f){var R={r:f.rotate(),k:f.scale()},L=i(y,f),z=u(L,"zoomstart","zoom","zoomend"),F=0,N=L.on,B;L.on("zoomstart",function(){p.select(this).style(t);var J=p.mouse(this),se=f.rotate(),le=se,ce=f.translate(),q=m(se);B=c(f,J),N.call(L,"zoom",function(){var Z=p.mouse(this);if(f.scale(R.k=p.event.scale),!B)J=Z,B=c(f,J);else if(c(f,Z)){f.rotate(se).translate(ce);var ee=c(f,Z),V=T(B,ee),oe=M(d(q,V)),ie=R.r=l(oe,B,le);(!isFinite(ie[0])||!isFinite(ie[1])||!isFinite(ie[2]))&&(ie=le),f.rotate(ie),le=ie}U(z.of(this,arguments))}),I(z.of(this,arguments))}).on("zoomend",function(){p.select(this).style(r),N.call(L,"zoom",null),O(z.of(this,arguments)),n(y,f,X)}).on("zoom.redraw",function(){y.render(!0);var J=f.rotate();y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":f.scale()/y.fitScale,"geo.projection.rotation.lon":-J[0],"geo.projection.rotation.lat":-J[1]})});function I(J){F++||J({type:"zoomstart"})}function U(J){J({type:"zoom"})}function O(J){--F||J({type:"zoomend"})}function X(J){var se=f.rotate();J("projection.rotation.lon",-se[0]),J("projection.rotation.lat",-se[1])}return p.rebind(L,z,"on")}function c(y,f){var R=y.invert(f);return R&&isFinite(R[0])&&isFinite(R[1])&&g(R)}function m(y){var f=.5*y[0]*E,R=.5*y[1]*E,L=.5*y[2]*E,z=Math.sin(f),F=Math.cos(f),N=Math.sin(R),B=Math.cos(R),I=Math.sin(L),U=Math.cos(L);return[F*B*U+z*N*I,z*B*U-F*N*I,F*N*U+z*B*I,F*B*I-z*N*U]}function d(y,f){var R=y[0],L=y[1],z=y[2],F=y[3],N=f[0],B=f[1],I=f[2],U=f[3];return[R*N-L*B-z*I-F*U,R*B+L*N+z*U-F*I,R*I-L*U+z*N+F*B,R*U+L*I-z*B+F*N]}function T(y,f){if(!(!y||!f)){var R=v(y,f),L=Math.sqrt(b(R,R)),z=.5*Math.acos(Math.max(-1,Math.min(1,b(y,f)))),F=Math.sin(z)/L;return L&&[Math.cos(z),R[2]*F,-R[1]*F,R[0]*F]}}function l(y,f,R){var L=A(f,2,y[0]);L=A(L,1,y[1]),L=A(L,0,y[2]-R[2]);var z=f[0],F=f[1],N=f[2],B=L[0],I=L[1],U=L[2],O=Math.atan2(F,z)*e,X=Math.sqrt(z*z+F*F),J,se;Math.abs(I)>X?(se=(I>0?90:-90)-O,J=0):(se=Math.asin(I/X)*e-O,J=Math.sqrt(X*X-I*I));var le=180-se-2*O,ce=(Math.atan2(U,B)-Math.atan2(N,J))*e,q=(Math.atan2(U,B)-Math.atan2(N,-J))*e,Z=_(R[0],R[1],se,ce),ee=_(R[0],R[1],le,q);return Z<=ee?[se,ce,R[2]]:[le,q,R[2]]}function _(y,f,R,L){var z=w(R-y),F=w(L-f);return Math.sqrt(z*z+F*F)}function w(y){return(y%360+540)%360-180}function A(y,f,R){var L=R*E,z=y.slice(),F=f===0?1:0,N=f===2?1:2,B=Math.cos(L),I=Math.sin(L);return z[F]=y[F]*B-y[N]*I,z[N]=y[N]*B+y[F]*I,z}function M(y){return[Math.atan2(2*(y[0]*y[1]+y[2]*y[3]),1-2*(y[1]*y[1]+y[2]*y[2]))*e,Math.asin(Math.max(-1,Math.min(1,2*(y[0]*y[2]-y[3]*y[1]))))*e,Math.atan2(2*(y[0]*y[3]+y[1]*y[2]),1-2*(y[2]*y[2]+y[3]*y[3]))*e]}function g(y){var f=y[0]*E,R=y[1]*E,L=Math.cos(R);return[L*Math.cos(f),L*Math.sin(f),Math.sin(R)]}function b(y,f){for(var R=0,L=0,z=y.length;L<z;++L)R+=y[L]*f[L];return R}function v(y,f){return[y[1]*f[2]-y[2]*f[1],y[2]*f[0]-y[0]*f[2],y[0]*f[1]-y[1]*f[0]]}function u(y){for(var f=0,R=arguments.length,L=[];++f<R;)L.push(arguments[f]);var z=p.dispatch.apply(null,L);return z.of=function(F,N){return function(B){var I;try{I=B.sourceEvent=p.event,B.target=y,p.event=B,z[B.type].apply(F,N)}finally{p.event=I}}},z}}}),dP=De({"src/plots/geo/geo.js"(Y,H){"use strict";var p=za(),x=m5(),S=x.geoPath,E=x.geoDistance,e=fP(),t=Mo(),r=ui(),o=r.strTranslate,i=vo(),n=ys(),a=sf(),s=Mc(),h=us(),c=fv().getAutoRange,m=Qh(),d=Af().prepSelect,T=Af().clearOutline,l=Af().selectOnClick,_=hP(),w=e1(),A=s0(),M=sb(),g=d5().feature;function b(R){this.id=R.id,this.graphDiv=R.graphDiv,this.container=R.container,this.topojsonURL=R.topojsonURL,this.isStatic=R.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var v=b.prototype;H.exports=function(L){return new b(L)},v.plot=function(R,L,z,F){var N=this;if(F)return N.update(R,L,!0);N._geoCalcData=R,N._fullLayout=L;var B=L[this.id],I=[],U=!1;for(var O in w.layerNameToAdjective)if(O!=="frame"&&B["show"+O]){U=!0;break}for(var X=!1,J=0;J<R.length;J++){var se=R[0][0].trace;se._geo=N,se.locationmode&&(U=!0);var le=se.marker;if(le){var ce=le.angle,q=le.angleref;(ce||q==="north"||q==="previous")&&(X=!0)}}if(this._hasMarkerAngles=X,U){var Z=M.getTopojsonName(B);(N.topojson===null||Z!==N.topojsonName)&&(N.topojsonName=Z,PlotlyGeoAssets.topojson[N.topojsonName]===void 0&&I.push(N.fetchTopojson()))}I=I.concat(A.fetchTraceGeoData(R)),z.push(new Promise(function(ee,V){Promise.all(I).then(function(){N.topojson=PlotlyGeoAssets.topojson[N.topojsonName],N.update(R,L),ee()}).catch(V)}))},v.fetchTopojson=function(){var R=this,L=M.getTopojsonPath(R.topojsonURL,R.topojsonName);return new Promise(function(z,F){p.json(L,function(N,B){if(N)return N.status===404?F(new Error(["plotly.js could not find topojson file at",L+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):F(new Error(["unexpected error while fetching topojson file at",L].join(" ")));PlotlyGeoAssets.topojson[R.topojsonName]=B,z()})})},v.update=function(R,L,z){var F=L[this.id];this.hasChoropleth=!1;for(var N=0;N<R.length;N++){var B=R[N],I=B[0].trace;I.type==="choropleth"&&(this.hasChoropleth=!0),I.visible===!0&&I._length>0&&I._module.calcGeoJSON(B,L)}if(!z){var U=this.updateProjection(R,L);if(U)return;(!this.viewInitial||this.scope!==F.scope)&&this.saveViewInitial(F)}this.scope=F.scope,this.updateBaseLayers(L,F),this.updateDims(L,F),this.updateFx(L,F),s.generalUpdatePerTraceModule(this.graphDiv,this,R,F);var O=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=O.selectAll(".point"),this.dataPoints.text=O.selectAll("text"),this.dataPaths.line=O.selectAll(".js-line");var X=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=X.selectAll("path"),this._render()},v.updateProjection=function(R,L){var z=this.graphDiv,F=L[this.id],N=L._size,B=F.domain,I=F.projection,U=F.lonaxis,O=F.lataxis,X=U._ax,J=O._ax,se=this.projection=u(F),le=[[N.l+N.w*B.x[0],N.t+N.h*(1-B.y[1])],[N.l+N.w*B.x[1],N.t+N.h*(1-B.y[0])]],ce=F.center||{},q=I.rotation||{},Z=U.range||[],ee=O.range||[];if(F.fitbounds){X._length=le[1][0]-le[0][0],J._length=le[1][1]-le[0][1],X.range=c(z,X),J.range=c(z,J);var V=(X.range[0]+X.range[1])/2,oe=(J.range[0]+J.range[1])/2;if(F._isScoped)ce={lon:V,lat:oe};else if(F._isClipped){ce={lon:V,lat:oe},q={lon:V,lat:oe,roll:q.roll};var ie=I.type,j=w.lonaxisSpan[ie]/2||180,Q=w.lataxisSpan[ie]/2||90;Z=[V-j,V+j],ee=[oe-Q,oe+Q]}else ce={lon:V,lat:oe},q={lon:V,lat:q.lat,roll:q.roll}}se.center([ce.lon-q.lon,ce.lat-q.lat]).rotate([-q.lon,-q.lat,q.roll]).parallels(I.parallels);var re=f(Z,ee);se.fitExtent(le,re);var ue=this.bounds=se.getBounds(re),_e=this.fitScale=se.scale(),we=se.translate();if(F.fitbounds){var Re=se.getBounds(f(X.range,J.range)),ze=Math.min((ue[1][0]-ue[0][0])/(Re[1][0]-Re[0][0]),(ue[1][1]-ue[0][1])/(Re[1][1]-Re[0][1]));isFinite(ze)?se.scale(ze*_e):r.warn("Something went wrong during"+this.id+"fitbounds computations.")}else se.scale(I.scale*_e);var Xe=this.midPt=[(ue[0][0]+ue[1][0])/2,(ue[0][1]+ue[1][1])/2];if(se.translate([we[0]+(Xe[0]-we[0]),we[1]+(Xe[1]-we[1])]).clipExtent(ue),F._isAlbersUsa){var tt=se([ce.lon,ce.lat]),it=se.translate();se.translate([it[0]-(tt[0]-it[0]),it[1]-(tt[1]-it[1])])}},v.updateBaseLayers=function(R,L){var z=this,F=z.topojson,N=z.layers,B=z.basePaths;function I(le){return le==="lonaxis"||le==="lataxis"}function U(le){return!!w.lineLayers[le]}function O(le){return!!w.fillLayers[le]}var X=this.hasChoropleth?w.layersForChoropleth:w.layers,J=X.filter(function(le){return U(le)||O(le)?L["show"+le]:I(le)?L[le].showgrid:!0}),se=z.framework.selectAll(".layer").data(J,String);se.exit().each(function(le){delete N[le],delete B[le],p.select(this).remove()}),se.enter().append("g").attr("class",function(le){return"layer "+le}).each(function(le){var ce=N[le]=p.select(this);le==="bg"?z.bgRect=ce.append("rect").style("pointer-events","all"):I(le)?B[le]=ce.append("path").style("fill","none"):le==="backplot"?ce.append("g").classed("choroplethlayer",!0):le==="frontplot"?ce.append("g").classed("scatterlayer",!0):U(le)?B[le]=ce.append("path").style("fill","none").style("stroke-miterlimit",2):O(le)&&(B[le]=ce.append("path").style("stroke","none"))}),se.order(),se.each(function(le){var ce=B[le],q=w.layerNameToAdjective[le];le==="frame"?ce.datum(w.sphereSVG):U(le)||O(le)?ce.datum(g(F,F.objects[le])):I(le)&&ce.datum(y(le,L,R)).call(i.stroke,L[le].gridcolor).call(n.dashLine,L[le].griddash,L[le].gridwidth),U(le)?ce.call(i.stroke,L[q+"color"]).call(n.dashLine,"",L[q+"width"]):O(le)&&ce.call(i.fill,L[q+"color"])})},v.updateDims=function(R,L){var z=this.bounds,F=(L.framewidth||0)/2,N=z[0][0]-F,B=z[0][1]-F,I=z[1][0]-N+F,U=z[1][1]-B+F;n.setRect(this.clipRect,N,B,I,U),this.bgRect.call(n.setRect,N,B,I,U).call(i.fill,L.bgcolor),this.xaxis._offset=N,this.xaxis._length=I,this.yaxis._offset=B,this.yaxis._length=U},v.updateFx=function(R,L){var z=this,F=z.graphDiv,N=z.bgRect,B=R.dragmode,I=R.clickmode;if(z.isStatic)return;function U(){var se=z.viewInitial,le={};for(var ce in se)le[z.id+"."+ce]=se[ce];t.call("_guiRelayout",F,le),F.emit("plotly_doubleclick",null)}function O(se){return z.projection.invert([se[0]+z.xaxis._offset,se[1]+z.yaxis._offset])}var X=function(se,le){if(le.isRect){var ce=se.range={};ce[z.id]=[O([le.xmin,le.ymin]),O([le.xmax,le.ymax])]}else{var q=se.lassoPoints={};q[z.id]=le.map(O)}},J={element:z.bgRect.node(),gd:F,plotinfo:{id:z.id,xaxis:z.xaxis,yaxis:z.yaxis,fillRangeItems:X},xaxes:[z.xaxis],yaxes:[z.yaxis],subplot:z.id,clickFn:function(se){se===2&&T(F)}};B==="pan"?(N.node().onmousedown=null,N.call(_(z,L)),N.on("dblclick.zoom",U),F._context._scrollZoom.geo||N.on("wheel.zoom",null)):(B==="select"||B==="lasso")&&(N.on(".zoom",null),J.prepFn=function(se,le,ce){d(se,le,ce,J,B)},m.init(J)),N.on("mousemove",function(){var se=z.projection.invert(r.getPositionFromD3Event());if(!se)return m.unhover(F,p.event);z.xaxis.p2c=function(){return se[0]},z.yaxis.p2c=function(){return se[1]},a.hover(F,p.event,z.id)}),N.on("mouseout",function(){F._dragging||m.unhover(F,p.event)}),N.on("click",function(){B!=="select"&&B!=="lasso"&&(I.indexOf("select")>-1&&l(p.event,F,[z.xaxis],[z.yaxis],z.id,J),I.indexOf("event")>-1&&a.click(F,p.event))})},v.makeFramework=function(){var R=this,L=R.graphDiv,z=L._fullLayout,F="clip"+z._uid+R.id;R.clipDef=z._clips.append("clipPath").attr("id",F),R.clipRect=R.clipDef.append("rect"),R.framework=p.select(R.container).append("g").attr("class","geo "+R.id).call(n.setClipUrl,F,L),R.project=function(N){var B=R.projection(N);return B?[B[0]-R.xaxis._offset,B[1]-R.yaxis._offset]:[null,null]},R.xaxis={_id:"x",c2p:function(N){return R.project(N)[0]}},R.yaxis={_id:"y",c2p:function(N){return R.project(N)[1]}},R.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},h.setConvert(R.mockAxis,z)},v.saveViewInitial=function(R){var L=R.center||{},z=R.projection,F=z.rotation||{};this.viewInitial={fitbounds:R.fitbounds,"projection.scale":z.scale};var N;R._isScoped?N={"center.lon":L.lon,"center.lat":L.lat}:R._isClipped?N={"projection.rotation.lon":F.lon,"projection.rotation.lat":F.lat}:N={"center.lon":L.lon,"center.lat":L.lat,"projection.rotation.lon":F.lon},r.extendFlat(this.viewInitial,N)},v.render=function(R){this._hasMarkerAngles&&R?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},v._render=function(){var R=this.projection,L=R.getPath(),z;function F(B){var I=R(B.lonlat);return I?o(I[0],I[1]):null}function N(B){return R.isLonLatOverEdges(B.lonlat)?"none":null}for(z in this.basePaths)this.basePaths[z].attr("d",L);for(z in this.dataPaths)this.dataPaths[z].attr("d",function(B){return L(B.geojson)});for(z in this.dataPoints)this.dataPoints[z].attr("display",N).attr("transform",F)};function u(R){var L=R.projection,z=L.type,F=w.projNames[z];F="geo"+r.titleCase(F);for(var N=x[F]||e[F],B=N(),I=R._isSatellite?Math.acos(1/L.distance)*180/Math.PI:R._isClipped?w.lonaxisSpan[z]/2:null,U=["center","rotate","parallels","clipExtent"],O=function(se){return se?B:[]},X=0;X<U.length;X++){var J=U[X];typeof B[J]!="function"&&(B[J]=O)}return B.isLonLatOverEdges=function(se){if(B(se)===null)return!0;if(I){var le=B.rotate(),ce=E(se,[-le[0],-le[1]]),q=I*Math.PI/180;return ce>q}else return!1},B.getPath=function(){return S().projection(B)},B.getBounds=function(se){return B.getPath().bounds(se)},B.precision(w.precision),R._isSatellite&&B.tilt(L.tilt).distance(L.distance),I&&B.clipAngle(I-w.clipPad),B}function y(R,L,z){var F=1e-6,N=2.5,B=L[R],I=w.scopeDefaults[L.scope],U,O,X;R==="lonaxis"?(U=I.lonaxisRange,O=I.lataxisRange,X=function(oe,ie){return[oe,ie]}):R==="lataxis"&&(U=I.lataxisRange,O=I.lonaxisRange,X=function(oe,ie){return[ie,oe]});var J={type:"linear",range:[U[0],U[1]-F],tick0:B.tick0,dtick:B.dtick};h.setConvert(J,z);var se=h.calcTicks(J);!L.isScoped&&R==="lonaxis"&&se.pop();for(var le=se.length,ce=new Array(le),q=0;q<le;q++)for(var Z=se[q].x,ee=ce[q]=[],V=O[0];V<O[1]+N;V+=N)ee.push(X(Z,V));return{type:"MultiLineString",coordinates:ce}}function f(R,L){var z=w.clipPad,F=R[0]+z,N=R[1]-z,B=L[0]+z,I=L[1]-z;F>0&&N<0&&(N+=360);var U=(N-F)/4;return{type:"Polygon",coordinates:[[[F,B],[F,I],[F+U,I],[F+2*U,I],[F+3*U,I],[N,I],[N,B],[N-U,B],[N-2*U,B],[N-3*U,B],[F,B]]]}}}}),g5=De({"src/plots/geo/layout_attributes.js"(Y,H){"use strict";var p=Pf(),x=Ec().attributes,S=Ch().dash,E=e1(),e=gc().overrideAll,t=jp(),r={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:p.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:S},o=H.exports=e({domain:x({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:t(E.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:t(E.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:p.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:E.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:E.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:E.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:E.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:p.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:p.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:p.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:p.background},lonaxis:r,lataxis:r},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),vP=De({"src/plots/geo/layout_defaults.js"(Y,H){"use strict";var p=ui(),x=Kp(),S=Lh().getSubplotData,E=e1(),e=g5(),t=E.axesNames;H.exports=function(i,n,a){x(i,n,a,{type:"geo",attributes:e,handleDefaults:r,fullData:a,partition:"y"})};function r(o,i,n,a){var s=S(a.fullData,"geo",a.id),h=s.map(function(ee){return ee.index}),c=n("resolution"),m=n("scope"),d=E.scopeDefaults[m],T=n("projection.type",d.projType),l=i._isAlbersUsa=T==="albers usa";l&&(m=i.scope="usa");var _=i._isScoped=m!=="world",w=i._isSatellite=T==="satellite",A=i._isConic=T.indexOf("conic")!==-1||T==="albers",M=i._isClipped=!!E.lonaxisSpan[T];if(o.visible===!1){var g=p.extendDeep({},i._template);g.showcoastlines=!1,g.showcountries=!1,g.showframe=!1,g.showlakes=!1,g.showland=!1,g.showocean=!1,g.showrivers=!1,g.showsubunits=!1,g.lonaxis&&(g.lonaxis.showgrid=!1),g.lataxis&&(g.lataxis.showgrid=!1),i._template=g}for(var b=n("visible"),v,u=0;u<t.length;u++){var y=t[u],f=[30,10][u],R;if(_)R=d[y+"Range"];else{var L=E[y+"Span"],z=(L[T]||L["*"])/2,F=n("projection.rotation."+y.slice(0,3),d.projRotate[u]);R=[F-z,F+z]}var N=n(y+".range",R);n(y+".tick0"),n(y+".dtick",f),v=n(y+".showgrid",b?void 0:!1),v&&(n(y+".gridcolor"),n(y+".gridwidth"),n(y+".griddash")),i[y]._ax={type:"linear",_id:y.slice(0,3),_traceIndices:h,setScale:p.identity,c2l:p.identity,r2l:p.identity,autorange:!0,range:N.slice(),_m:1,_input:{}}}var B=i.lonaxis.range,I=i.lataxis.range,U=B[0],O=B[1];U>0&&O<0&&(O+=360);var X=(U+O)/2,J;if(!l){var se=_?d.projRotate:[X,0,0];J=n("projection.rotation.lon",se[0]),n("projection.rotation.lat",se[1]),n("projection.rotation.roll",se[2]),v=n("showcoastlines",!_&&b),v&&(n("coastlinecolor"),n("coastlinewidth")),v=n("showocean",b?void 0:!1),v&&n("oceancolor")}var le,ce;if(l?(le=-96.6,ce=38.7):(le=_?X:J,ce=(I[0]+I[1])/2),n("center.lon",le),n("center.lat",ce),w&&(n("projection.tilt"),n("projection.distance")),A){var q=d.projParallels||[0,60];n("projection.parallels",q)}n("projection.scale"),v=n("showland",b?void 0:!1),v&&n("landcolor"),v=n("showlakes",b?void 0:!1),v&&n("lakecolor"),v=n("showrivers",b?void 0:!1),v&&(n("rivercolor"),n("riverwidth")),v=n("showcountries",_&&m!=="usa"&&b),v&&(n("countrycolor"),n("countrywidth")),(m==="usa"||m==="north america"&&c===50)&&(n("showsubunits",b),n("subunitcolor"),n("subunitwidth")),_||(v=n("showframe",b),v&&(n("framecolor"),n("framewidth"))),n("bgcolor");var Z=n("fitbounds");Z&&(delete i.projection.scale,_?(delete i.center.lon,delete i.center.lat):M?(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon,delete i.projection.rotation.lat,delete i.lonaxis.range,delete i.lataxis.range):(delete i.center.lon,delete i.center.lat,delete i.projection.rotation.lon))}}}),y5=De({"src/plots/geo/index.js"(Y,H){"use strict";var p=Lh().getSubplotCalcData,x=ui().counterRegex,S=dP(),E="geo",e=x(E),t={};t[E]={valType:"subplotid",dflt:E,editType:"calc"};function r(n){for(var a=n._fullLayout,s=n.calcdata,h=a._subplots[E],c=0;c<h.length;c++){var m=h[c],d=p(s,E,m),T=a[m],l=T._subplot;l||(l=S({id:m,graphDiv:n,container:a._geolayer.node(),topojsonURL:n._context.topojsonURL,staticPlot:n._context.staticPlot}),a[m]._subplot=l),l.plot(d,a,n._promises)}}function o(n,a,s,h){for(var c=h._subplots[E]||[],m=0;m<c.length;m++){var d=c[m],T=h[d]._subplot;!a[d]&&T&&(T.framework.remove(),T.clipDef.remove())}}function i(n){for(var a=n._fullLayout,s=a._subplots[E],h=0;h<s.length;h++){var c=a[s[h]],m=c._subplot;m.updateFx(a,c)}}H.exports={attr:E,name:E,idRoot:E,idRegex:e,attrRegex:e,attributes:t,layoutAttributes:g5(),supplyLayoutDefaults:vP(),plot:r,updateFx:i,clean:o}}}),pP=De({"src/traces/scattergeo/index.js"(Y,H){"use strict";H.exports={attributes:om(),supplyDefaults:rP(),colorbar:qh(),formatLabels:iP(),calc:ob(),calcGeoJSON:p5().calcGeoJSON,plot:p5().plot,style:v5(),styleOnSelect:Sd().styleOnSelect,hoverPoints:lP(),eventData:uP(),selectPoints:cP(),moduleType:"trace",name:"scattergeo",basePlotModule:y5(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}}}),mP=De({"lib/scattergeo.js"(Y,H){"use strict";H.exports=pP()}}),wg=De({"src/traces/choropleth/attributes.js"(Y,H){"use strict";var{hovertemplateAttrs:p,templatefallbackAttrs:x}=ou(),S=om(),E=zu(),e=Yl(),t=Pf().defaultLine,r=Xo().extendFlat,o=S.marker.line;H.exports=r({locations:{valType:"data_array",editType:"calc"},locationmode:S.locationmode,z:{valType:"data_array",editType:"calc"},geojson:r({},S.geojson,{}),featureidkey:S.featureidkey,text:r({},S.text,{}),hovertext:r({},S.hovertext,{}),marker:{line:{color:r({},o.color,{dflt:t}),width:r({},o.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:S.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:S.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:r({},e.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:p(),hovertemplatefallback:x(),showlegend:r({},e.showlegend,{dflt:!1})},E("",{cLetter:"z",editTypeOverride:"calc"}))}}),gP=De({"src/traces/choropleth/defaults.js"(Y,H){"use strict";var p=ui(),x=dh(),S=wg(),E=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");H.exports=function(t,r,o,i){function n(T,l){return p.coerce(t,r,S,T,l)}var a=n("locations"),s=n("z");if(!(a&&a.length&&p.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(a.length,s.length);var h=n("geojson"),c;(typeof h=="string"&&h!==""||p.isPlainObject(h))&&(c="geojson-id");var m=n("locationmode",c);m==="country names"&&p.warn(E),m==="geojson-id"&&n("featureidkey"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var d=n("marker.line.width");d&&n("marker.line.color"),n("marker.opacity"),x(t,r,i,n,{prefix:"",cLetter:"z"}),p.coerceSelectionMarkerOpacity(r,n)}}}),cb=De({"src/traces/choropleth/calc.js"(Y,H){"use strict";var p=vn(),x=zn().BADNUM,S=Jh(),E=Fv(),e=Zd();function t(r){return r&&typeof r=="string"}H.exports=function(o,i){var n=i._length,a=new Array(n),s;i.geojson?s=function(T){return t(T)||p(T)}:s=t;for(var h=0;h<n;h++){var c=a[h]={},m=i.locations[h],d=i.z[h];s(m)&&p(d)?(c.loc=m,c.z=d):(c.loc=null,c.z=x),c.index=h}return E(a,i),S(o,i,{vals:i.z,containerStr:"",cLetter:"z"}),e(a,i),a}}}),fb=De({"src/traces/choropleth/style.js"(Y,H){"use strict";var p=za(),x=vo(),S=ys(),E=oc();function e(o,i){i&&t(o,i)}function t(o,i){var n=i[0].trace,a=i[0].node3,s=a.selectAll(".choroplethlocation"),h=n.marker||{},c=h.line||{},m=E.makeColorScaleFuncFromTrace(n);s.each(function(d){p.select(this).attr("fill",m(d.z)).call(x.stroke,d.mlc||c.color).call(S.dashLine,"",d.mlw||c.width||0).style("opacity",h.opacity)}),S.selectedPointStyle(s,n)}function r(o,i){var n=i[0].node3,a=i[0].trace;a.selectedpoints?S.selectedPointStyle(n.selectAll(".choroplethlocation"),a):t(o,i)}H.exports={style:e,styleOnSelect:r}}}),_5=De({"src/traces/choropleth/plot.js"(Y,H){"use strict";var p=za(),x=ui(),S=s0(),E=sb().getTopojsonFeatures,e=fv().findExtremes,t=fb().style;function r(i,n,a){var s=n.layers.backplot.select(".choroplethlayer");x.makeTraceGroups(s,a,"trace choropleth").each(function(h){var c=p.select(this),m=c.selectAll("path.choroplethlocation").data(x.identity);m.enter().append("path").classed("choroplethlocation",!0),m.exit().remove(),t(i,h)})}function o(i,n){for(var a=i[0].trace,s=n[a.geo],h=s._subplot,c=a.locationmode,m=a._length,d=c==="geojson-id"?S.extractTraceFeature(i):E(a,h.topojson),T=[],l=[],_=0;_<m;_++){var w=i[_],A=c==="geojson-id"?w.fOut:S.locationToFeature(c,w.loc,d);if(A){w.geojson=A,w.ct=A.properties.ct,w._polygons=S.feature2polygons(A);var M=S.computeBbox(A);T.push(M[0],M[2]),l.push(M[1],M[3])}else w.geojson=null}if(s.fitbounds==="geojson"&&c==="geojson-id"){var g=S.computeBbox(S.getTraceGeojson(a));T=[g[0],g[2]],l=[g[1],g[3]]}var b={padded:!0};a._extremes.lon=e(s.lonaxis._ax,T,b),a._extremes.lat=e(s.lataxis._ax,l,b)}H.exports={calcGeoJSON:o,plot:r}}}),hb=De({"src/traces/choropleth/hover.js"(Y,H){"use strict";var p=us(),x=wg(),S=ui().fillText;H.exports=function(t,r,o){var i=t.cd,n=i[0].trace,a=t.subplot,s,h,c,m,d=[r,o],T=[r+360,o];for(h=0;h<i.length;h++)if(s=i[h],m=!1,s._polygons){for(c=0;c<s._polygons.length;c++)s._polygons[c].contains(d)&&(m=!m),s._polygons[c].contains(T)&&(m=!m);if(m)break}if(!(!m||!s))return t.x0=t.x1=t.xa.c2p(s.ct),t.y0=t.y1=t.ya.c2p(s.ct),t.index=s.index,t.location=s.loc,t.z=s.z,t.zLabel=p.tickText(a.mockAxis,a.mockAxis.c2l(s.z),"hover").text,t.hovertemplate=s.hovertemplate,E(t,n,s),[t]};function E(e,t,r){if(!t.hovertemplate){var o=r.hi||t.hoverinfo,i=String(r.loc),n=o==="all"?x.hoverinfo.flags:o.split("+"),a=n.indexOf("name")!==-1,s=n.indexOf("location")!==-1,h=n.indexOf("z")!==-1,c=n.indexOf("text")!==-1,m=!a&&s,d=[];m?e.nameOverride=i:(a&&(e.nameOverride=t.name),s&&d.push(i)),h&&d.push(e.zLabel),c&&S(r,t,d),e.extraText=d.join("<br>")}}}}),db=De({"src/traces/choropleth/event_data.js"(Y,H){"use strict";H.exports=function(x,S,E,e,t){x.location=S.location,x.z=S.z;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x.ct=r.ct,x}}}),vb=De({"src/traces/choropleth/select.js"(Y,H){"use strict";H.exports=function(x,S){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],o,i,n,a,s;if(S===!1)for(o=0;o<E.length;o++)E[o].selected=0;else for(o=0;o<E.length;o++)i=E[o],n=i.ct,n&&(a=e.c2p(n),s=t.c2p(n),S.contains([a,s],null,o,x)?(r.push({pointNumber:o,lon:n[0],lat:n[1]}),i.selected=1):i.selected=0);return r}}}),yP=De({"src/traces/choropleth/index.js"(Y,H){"use strict";H.exports={attributes:wg(),supplyDefaults:gP(),colorbar:Zp(),calc:cb(),calcGeoJSON:_5().calcGeoJSON,plot:_5().plot,style:fb().style,styleOnSelect:fb().styleOnSelect,hoverPoints:hb(),eventData:db(),selectPoints:vb(),moduleType:"trace",name:"choropleth",basePlotModule:y5(),categories:["geo","noOpacity","showLegend"],meta:{}}}}),_P=De({"lib/choropleth.js"(Y,H){"use strict";H.exports=yP()}}),pb=De({"src/traces/scattergl/hover.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=rg();function E(t,r,o,i){var n=t.cd,a=n[0].t,s=n[0].trace,h=t.xa,c=t.ya,m=a.x,d=a.y,T=h.c2p(r),l=c.c2p(o),_=t.distance,w;if(a.tree){var A=h.p2c(T-_),M=h.p2c(T+_),g=c.p2c(l-_),b=c.p2c(l+_);i==="x"?w=a.tree.range(Math.min(A,M),Math.min(c._rl[0],c._rl[1]),Math.max(A,M),Math.max(c._rl[0],c._rl[1])):w=a.tree.range(Math.min(A,M),Math.min(g,b),Math.max(A,M),Math.max(g,b))}else w=a.ids;var v,u,y,f,R,L,z,F,N,B=_;if(i==="x"){var I=!!s.xperiodalignment,U=!!s.yperiodalignment;for(R=0;R<w.length;R++){if(v=w[R],y=m[v],L=Math.abs(h.c2p(y)-T),I){var O=h.c2p(s._xStarts[v]),X=h.c2p(s._xEnds[v]);L=T>=Math.min(O,X)&&T<=Math.max(O,X)?0:1/0}if(L<B){if(B=L,f=d[v],z=c.c2p(f)-l,U){var J=c.c2p(s._yStarts[v]),se=c.c2p(s._yEnds[v]);z=l>=Math.min(J,se)&&l<=Math.max(J,se)?0:1/0}N=Math.sqrt(L*L+z*z),u=w[R]}}}else for(R=w.length-1;R>-1;R--)v=w[R],y=m[v],f=d[v],L=h.c2p(y)-T,z=c.c2p(f)-l,F=Math.sqrt(L*L+z*z),F<B&&(B=N=F,u=v);return t.index=u,t.distance=B,t.dxy=N,u===void 0?[t]:[e(t,m,d,s)]}function e(t,r,o,i){var n=t.xa,a=t.ya,s=t.distance,h=t.dxy,c=t.index,m={pointNumber:c,x:r[c],y:o[c]};m.tx=x.isArrayOrTypedArray(i.text)?i.text[c]:i.text,m.htx=Array.isArray(i.hovertext)?i.hovertext[c]:i.hovertext,m.data=Array.isArray(i.customdata)?i.customdata[c]:i.customdata,m.tp=Array.isArray(i.textposition)?i.textposition[c]:i.textposition;var d=i.textfont;d&&(m.ts=x.isArrayOrTypedArray(d.size)?d.size[c]:d.size,m.tc=x.isArrayOrTypedArray(d.color)?d.color[c]:d.color,m.tf=Array.isArray(d.family)?d.family[c]:d.family,m.tw=Array.isArray(d.weight)?d.weight[c]:d.weight,m.ty=Array.isArray(d.style)?d.style[c]:d.style,m.tv=Array.isArray(d.variant)?d.variant[c]:d.variant);var T=i.marker;T&&(m.ms=x.isArrayOrTypedArray(T.size)?T.size[c]:T.size,m.mo=x.isArrayOrTypedArray(T.opacity)?T.opacity[c]:T.opacity,m.mx=x.isArrayOrTypedArray(T.symbol)?T.symbol[c]:T.symbol,m.ma=x.isArrayOrTypedArray(T.angle)?T.angle[c]:T.angle,m.mc=x.isArrayOrTypedArray(T.color)?T.color[c]:T.color);var l=T&&T.line;l&&(m.mlc=Array.isArray(l.color)?l.color[c]:l.color,m.mlw=x.isArrayOrTypedArray(l.width)?l.width[c]:l.width);var _=T&&T.gradient;_&&_.type!=="none"&&(m.mgt=Array.isArray(_.type)?_.type[c]:_.type,m.mgc=Array.isArray(_.color)?_.color[c]:_.color);var w=n.c2p(m.x,!0),A=a.c2p(m.y,!0),M=m.mrc||1,g=i.hoverlabel;g&&(m.hbg=Array.isArray(g.bgcolor)?g.bgcolor[c]:g.bgcolor,m.hbc=Array.isArray(g.bordercolor)?g.bordercolor[c]:g.bordercolor,m.hts=x.isArrayOrTypedArray(g.font.size)?g.font.size[c]:g.font.size,m.htc=Array.isArray(g.font.color)?g.font.color[c]:g.font.color,m.htf=Array.isArray(g.font.family)?g.font.family[c]:g.font.family,m.hnl=x.isArrayOrTypedArray(g.namelength)?g.namelength[c]:g.namelength);var b=i.hoverinfo;b&&(m.hi=Array.isArray(b)?b[c]:b);var v=i.hovertemplate;v&&(m.ht=Array.isArray(v)?v[c]:v);var u={};u[t.index]=m;var y=i._origX,f=i._origY,R=x.extendFlat({},t,{color:S(i,m),x0:w-M,x1:w+M,xLabelVal:y?y[c]:m.x,y0:A-M,y1:A+M,yLabelVal:f?f[c]:m.y,cd:u,distance:s,spikeDistance:h,hovertemplate:m.ht});return m.htx?R.text=m.htx:m.tx?R.text=m.tx:i.text&&(R.text=i.text),x.fillText(m,i,R),p.getComponentMethod("errorbars","hoverInfo")(m,i,R),R}H.exports={hoverPoints:E,calcHover:e}}}),l0=De({"src/traces/scattergl/constants.js"(Y,H){"use strict";var p=20;H.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:p,SYMBOL_STROKE:p/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}}}),r1=De({"src/traces/scattergl/attributes.js"(Y,H){"use strict";var p=Yl(),x=qu(),S=vv(),E=lf(),e=of().axisHoverFormat,t=zu(),r=jp(),o=Xo().extendFlat,i=gc().overrideAll,n=l0().DASHES,a=E.line,s=E.marker,h=s.line,c=H.exports=i({x:E.x,x0:E.x0,dx:E.dx,y:E.y,y0:E.y0,dy:E.dy,xperiod:E.xperiod,yperiod:E.yperiod,xperiod0:E.xperiod0,yperiod0:E.yperiod0,xperiodalignment:E.xperiodalignment,yperiodalignment:E.yperiodalignment,xhoverformat:e("x"),yhoverformat:e("y"),text:E.text,hovertext:E.hovertext,textposition:E.textposition,textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:a.color,width:a.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:r(n),dflt:"solid"}},marker:o({},t("marker"),{symbol:s.symbol,angle:s.angle,size:s.size,sizeref:s.sizeref,sizemin:s.sizemin,sizemode:s.sizemode,opacity:s.opacity,colorbar:s.colorbar,line:o({},t("marker.line"),{width:h.width})}),connectgaps:E.connectgaps,fill:o({},E.fill,{dflt:"none"}),fillcolor:S(),selected:{marker:E.selected.marker,textfont:E.selected.textfont},unselected:{marker:E.unselected.marker,textfont:E.unselected.textfont},opacity:p.opacity},"calc","nested");c.x.editType=c.y.editType=c.x0.editType=c.y0.editType="calc+clearAxisTypes",c.hovertemplate=E.hovertemplate,c.hovertemplatefallback=E.hovertemplatefallback,c.texttemplate=E.texttemplate,c.texttemplatefallback=E.texttemplatefallback}}),mb=De({"src/traces/scattergl/helpers.js"(Y){"use strict";var H=l0();Y.isOpenSymbol=function(p){return typeof p=="string"?H.OPEN_RE.test(p):p%200>100},Y.isDotSymbol=function(p){return typeof p=="string"?H.DOT_RE.test(p):p>200}}}),xP=De({"src/traces/scattergl/defaults.js"(Y,H){"use strict";var p=ui(),x=Mo(),S=mb(),E=r1(),e=zv(),t=Hu(),r=Qm(),o=pv(),i=Od(),n=Wd(),a=mv(),s=Xd();H.exports=function(c,m,d,T){function l(u,y){return p.coerce(c,m,E,u,y)}var _=c.marker?S.isOpenSymbol(c.marker.symbol):!1,w=t.isBubble(c),A=r(c,m,T,l);if(!A){m.visible=!1;return}o(c,m,T,l),l("xhoverformat"),l("yhoverformat");var M=A<e.PTS_LINESONLY?"lines+markers":"lines";l("text"),l("hovertext"),l("hovertemplate"),l("hovertemplatefallback"),l("mode",M),t.hasMarkers(m)&&(i(c,m,d,T,l,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),l("marker.line.width",_||w?1:0)),t.hasLines(m)&&(l("connectgaps"),n(c,m,d,T,l),l("line.shape")),t.hasText(m)&&(l("texttemplate"),l("texttemplatefallback"),s(c,m,T,l,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var g=(m.line||{}).color,b=(m.marker||{}).color;l("fill"),m.fill!=="none"&&a(c,m,d,l);var v=x.getComponentMethod("errorbars","supplyDefaults");v(c,m,g||b||d,{axis:"y"}),v(c,m,g||b||d,{axis:"x",inherit:"y"}),p.coerceSelectionMarkerOpacity(m,l)}}}),bP=De({"src/traces/scattergl/format_labels.js"(Y,H){"use strict";var p=R_();H.exports=function(S,E,e){var t=S.i;return"x"in S||(S.x=E._x[t]),"y"in S||(S.y=E._y[t]),p(S,E,e)}}}),wP=De({"node_modules/binary-search-bounds/search-bounds.js"(Y,H){"use strict";function p(r,o,i,n,a){for(var s=a+1;n<=a;){var h=n+a>>>1,c=r[h],m=i!==void 0?i(c,o):c-o;m>=0?(s=h,a=h-1):n=h+1}return s}function x(r,o,i,n,a){for(var s=a+1;n<=a;){var h=n+a>>>1,c=r[h],m=i!==void 0?i(c,o):c-o;m>0?(s=h,a=h-1):n=h+1}return s}function S(r,o,i,n,a){for(var s=n-1;n<=a;){var h=n+a>>>1,c=r[h],m=i!==void 0?i(c,o):c-o;m<0?(s=h,n=h+1):a=h-1}return s}function E(r,o,i,n,a){for(var s=n-1;n<=a;){var h=n+a>>>1,c=r[h],m=i!==void 0?i(c,o):c-o;m<=0?(s=h,n=h+1):a=h-1}return s}function e(r,o,i,n,a){for(;n<=a;){var s=n+a>>>1,h=r[s],c=i!==void 0?i(h,o):h-o;if(c===0)return s;c<=0?n=s+1:a=s-1}return-1}function t(r,o,i,n,a,s){return typeof i=="function"?s(r,o,i,n===void 0?0:n|0,a===void 0?r.length-1:a|0):s(r,o,void 0,i===void 0?0:i|0,n===void 0?r.length-1:n|0)}H.exports={ge:function(r,o,i,n,a){return t(r,o,i,n,a,p)},gt:function(r,o,i,n,a){return t(r,o,i,n,a,x)},lt:function(r,o,i,n,a){return t(r,o,i,n,a,S)},le:function(r,o,i,n,a){return t(r,o,i,n,a,E)},eq:function(r,o,i,n,a){return t(r,o,i,n,a,e)}}}}),Nv=De({"node_modules/pick-by-alias/index.js"(Y,H){"use strict";H.exports=function(E,e,t){var r={},o,i;if(typeof e=="string"&&(e=x(e)),Array.isArray(e)){var n={};for(i=0;i<e.length;i++)n[e[i]]=!0;e=n}for(o in e)e[o]=x(e[o]);var a={};for(o in e){var s=e[o];if(Array.isArray(s))for(i=0;i<s.length;i++){var h=s[i];if(t&&(a[h]=!0),h in E){if(r[o]=E[h],t)for(var c=i;c<s.length;c++)a[s[c]]=!0;break}}else o in E&&(e[o]&&(r[o]=E[o]),t&&(a[o]=!0))}if(t)for(o in E)a[o]||(r[o]=E[o]);return r};var p={};function x(S){return p[S]?p[S]:(typeof S=="string"&&(S=p[S]=S.split(/\s*,\s*|\s+/)),S)}}}),Tg=De({"node_modules/parse-rect/index.js"(Y,H){"use strict";var p=Nv();H.exports=x;function x(S){var E;return arguments.length>1&&(S=arguments),typeof S=="string"?S=S.split(/\s/).map(parseFloat):typeof S=="number"&&(S=[S]),S.length&&typeof S[0]=="number"?S.length===1?E={width:S[0],height:S[0],x:0,y:0}:S.length===2?E={width:S[0],height:S[1],x:0,y:0}:E={x:S[0],y:S[1],width:S[2]-S[0]||0,height:S[3]-S[1]||0}:S&&(S=p(S,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),E={x:S.left||0,y:S.top||0},S.width==null?S.right?E.width=S.right-E.x:E.width=0:E.width=S.width,S.height==null?S.bottom?E.height=S.bottom-E.y:E.height=0:E.height=S.height),E}}}),sm=De({"node_modules/array-bounds/index.js"(Y,H){"use strict";H.exports=p;function p(x,S){if(!x||x.length==null)throw Error("Argument should be an array");S==null?S=1:S=Math.floor(S);for(var E=Array(S*2),e=0;e<S;e++){for(var t=-1/0,r=1/0,o=e,i=x.length;o<i;o+=S)x[o]>t&&(t=x[o]),x[o]<r&&(r=x[o]);E[e]=r,E[S+e]=t}return E}}}),TP=De({"node_modules/defined/index.js"(Y,H){H.exports=function(){for(var p=0;p<arguments.length;p++)if(arguments[p]!==void 0)return arguments[p]}}}),lm=De({"node_modules/flatten-vertex-data/index.js"(Y,H){var p=tb();H.exports=x;function x(S,E,e){if(!S)throw new TypeError("must specify data as first parameter");if(e=+(e||0)|0,Array.isArray(S)&&S[0]&&typeof S[0][0]=="number"){var t=S[0].length,r=S.length*t,o,i,n,a;(!E||typeof E=="string")&&(E=new(p(E||"float32"))(r+e));var s=E.length-e;if(r!==s)throw new Error("source length "+r+" ("+t+"x"+S.length+") does not match destination length "+s);for(o=0,n=e;o<S.length;o++)for(i=0;i<t;i++)E[n++]=S[o][i]===null?NaN:S[o][i]}else if(!E||typeof E=="string"){var h=p(E||"float32");if(Array.isArray(S)||E==="array")for(E=new h(S.length+e),o=0,n=e,a=E.length;n<a;n++,o++)E[n]=S[o]===null?NaN:S[o];else e===0?E=new h(S):(E=new h(S.length+e),E.set(S,e))}else E.set(S,e);return E}}}),AP=De({"node_modules/is-obj/index.js"(Y,H){"use strict";H.exports=function(p){var x=typeof p;return p!==null&&(x==="object"||x==="function")}}}),SP=De({"node_modules/math-log2/index.js"(Y,H){"use strict";H.exports=Math.log2||function(p){return Math.log(p)*Math.LOG2E}}}),MP=De({"node_modules/@plotly/point-cluster/quad.js"(Y,H){"use strict";var p=wP(),x=Jy(),S=Tg(),E=sm(),e=Nv(),t=TP(),r=lm(),o=AP(),i=tb(),n=SP(),a=1073741824;H.exports=function(c,m){m||(m={}),c=r(c,"float64"),m=e(m,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let d=t(m.maxDepth,255),T=t(m.bounds,E(c,2));T[0]===T[2]&&T[2]++,T[1]===T[3]&&T[3]++;let l=s(c,T),_=c.length>>>1,w;m.dtype||(m.dtype="array"),typeof m.dtype=="string"?w=new(i(m.dtype))(_):m.dtype&&(w=m.dtype,Array.isArray(w)&&(w.length=_));for(let L=0;L<_;++L)w[L]=L;let A=[],M=[],g=[],b=[];u(0,0,1,w,0,1);let v=0;for(let L=0;L<A.length;L++){let z=A[L];if(w.set)w.set(z,v);else for(let N=0,B=z.length;N<B;N++)w[N+v]=z[N];let F=v+A[L].length;b[L]=[v,F],v=F}return w.range=y,w;function u(L,z,F,N,B,I){if(!N.length)return null;let U=A[B]||(A[B]=[]),O=g[B]||(g[B]=[]),X=M[B]||(M[B]=[]),J=U.length;if(B++,B>d||I>a){for(let oe=0;oe<N.length;oe++)U.push(N[oe]),O.push(I),X.push(null,null,null,null);return J}if(U.push(N[0]),O.push(I),N.length<=1)return X.push(null,null,null,null),J;let se=F*.5,le=L+se,ce=z+se,q=[],Z=[],ee=[],V=[];for(let oe=1,ie=N.length;oe<ie;oe++){let j=N[oe],Q=l[j*2],re=l[j*2+1];Q<le?re<ce?q.push(j):Z.push(j):re<ce?ee.push(j):V.push(j)}return I<<=2,X.push(u(L,z,se,q,B,I),u(L,ce,se,Z,B,I+1),u(le,z,se,ee,B,I+2),u(le,ce,se,V,B,I+3)),J}function y(...L){let z;if(o(L[L.length-1])){let ee=L.pop();!L.length&&(ee.x!=null||ee.l!=null||ee.left!=null)&&(L=[ee],z={}),z=e(ee,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else z={};L.length||(L=T);let F=S(...L),[N,B,I,U]=[Math.min(F.x,F.x+F.width),Math.min(F.y,F.y+F.height),Math.max(F.x,F.x+F.width),Math.max(F.y,F.y+F.height)],[O,X,J,se]=s([N,B,I,U],T),le=t(z.level,A.length);if(z.d!=null){let ee;typeof z.d=="number"?ee=[z.d,z.d]:z.d.length&&(ee=z.d),le=Math.min(Math.max(Math.ceil(-n(Math.abs(ee[0])/(T[2]-T[0]))),Math.ceil(-n(Math.abs(ee[1])/(T[3]-T[1])))),le)}if(le=Math.min(le,A.length),z.lod)return f(O,X,J,se,le);let ce=[];q(0,0,1,0,0,1);function q(ee,V,oe,ie,j,Q){if(j===null||Q===null)return;let re=ee+oe,ue=V+oe;if(O>re||X>ue||J<ee||se<V||ie>=le||j===Q)return;let _e=A[ie];Q===void 0&&(Q=_e.length);for(let Ae=j;Ae<Q;Ae++){let me=_e[Ae],fe=c[me*2],Be=c[me*2+1];fe>=N&&fe<=I&&Be>=B&&Be<=U&&ce.push(me)}let we=M[ie],Re=we[j*4+0],ze=we[j*4+1],Xe=we[j*4+2],tt=we[j*4+3],it=Z(we,j+1),et=oe*.5,nt=ie+1;q(ee,V,et,nt,Re,ze||Xe||tt||it),q(ee,V+et,et,nt,ze,Xe||tt||it),q(ee+et,V,et,nt,Xe,tt||it),q(ee+et,V+et,et,nt,tt,it)}function Z(ee,V){let oe=null,ie=0;for(;oe===null;)if(oe=ee[V*4+ie],ie++,ie>ee.length)return null;return oe}return ce}function f(L,z,F,N,B){let I=[];for(let U=0;U<B;U++){let O=g[U],X=b[U][0],J=R(L,z,U),se=R(F,N,U),le=p.ge(O,J),ce=p.gt(O,se,le,O.length-1);I[U]=[le+X,ce+X]}return I}function R(L,z,F){let N=1,B=.5,I=.5,U=.5;for(let O=0;O<F;O++)N<<=2,N+=L<B?z<I?0:1:z<I?2:3,U*=.5,B+=L<B?-U:U,I+=z<I?-U:U;return N}};function s(h,c){let[m,d,T,l]=c,_=1/(T-m),w=1/(l-d),A=new Array(h.length);for(let M=0,g=h.length/2;M<g;M++)A[2*M]=x((h[2*M]-m)*_,0,1),A[2*M+1]=x((h[2*M+1]-d)*w,0,1);return A}}}),gb=De({"node_modules/@plotly/point-cluster/index.js"(Y,H){"use strict";H.exports=MP()}}),x5=De({"node_modules/abs-svg-path/index.js"(Y,H){H.exports=p;function p(x){var S=0,E=0,e=0,t=0;return x.map(function(r){r=r.slice();var o=r[0],i=o.toUpperCase();if(o!=i)switch(r[0]=i,o){case"a":r[6]+=e,r[7]+=t;break;case"v":r[1]+=t;break;case"h":r[1]+=e;break;default:for(var n=1;n<r.length;)r[n++]+=e,r[n++]+=t}switch(i){case"Z":e=S,t=E;break;case"H":e=r[1];break;case"V":t=r[1];break;case"M":e=S=r[1],t=E=r[2];break;default:e=r[r.length-2],t=r[r.length-1]}return r})}}}),EP=De({"node_modules/svg-arc-to-cubic-bezier/cjs/index.js"(Y,H){"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var p=function(){function o(i,n){var a=[],s=!0,h=!1,c=void 0;try{for(var m=i[Symbol.iterator](),d;!(s=(d=m.next()).done)&&(a.push(d.value),!(n&&a.length===n));s=!0);}catch(T){h=!0,c=T}finally{try{!s&&m.return&&m.return()}finally{if(h)throw c}}return a}return function(i,n){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return o(i,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=Math.PI*2,S=function(i,n,a,s,h,c,m){var d=i.x,T=i.y;d*=n,T*=a;var l=s*d-h*T,_=h*d+s*T;return{x:l+c,y:_+m}},E=function(i,n){var a=n===1.5707963267948966?.551915024494:n===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(n/4),s=Math.cos(i),h=Math.sin(i),c=Math.cos(i+n),m=Math.sin(i+n);return[{x:s-h*a,y:h+s*a},{x:c+m*a,y:m-c*a},{x:c,y:m}]},e=function(i,n,a,s){var h=i*s-n*a<0?-1:1,c=i*a+n*s;return c>1&&(c=1),c<-1&&(c=-1),h*Math.acos(c)},t=function(i,n,a,s,h,c,m,d,T,l,_,w){var A=Math.pow(h,2),M=Math.pow(c,2),g=Math.pow(_,2),b=Math.pow(w,2),v=A*M-A*b-M*g;v<0&&(v=0),v/=A*b+M*g,v=Math.sqrt(v)*(m===d?-1:1);var u=v*h/c*w,y=v*-c/h*_,f=l*u-T*y+(i+a)/2,R=T*u+l*y+(n+s)/2,L=(_-u)/h,z=(w-y)/c,F=(-_-u)/h,N=(-w-y)/c,B=e(1,0,L,z),I=e(L,z,F,N);return d===0&&I>0&&(I-=x),d===1&&I<0&&(I+=x),[f,R,B,I]},r=function(i){var n=i.px,a=i.py,s=i.cx,h=i.cy,c=i.rx,m=i.ry,d=i.xAxisRotation,T=d===void 0?0:d,l=i.largeArcFlag,_=l===void 0?0:l,w=i.sweepFlag,A=w===void 0?0:w,M=[];if(c===0||m===0)return[];var g=Math.sin(T*x/360),b=Math.cos(T*x/360),v=b*(n-s)/2+g*(a-h)/2,u=-g*(n-s)/2+b*(a-h)/2;if(v===0&&u===0)return[];c=Math.abs(c),m=Math.abs(m);var y=Math.pow(v,2)/Math.pow(c,2)+Math.pow(u,2)/Math.pow(m,2);y>1&&(c*=Math.sqrt(y),m*=Math.sqrt(y));var f=t(n,a,s,h,c,m,_,A,g,b,v,u),R=p(f,4),L=R[0],z=R[1],F=R[2],N=R[3],B=Math.abs(N)/(x/4);Math.abs(1-B)<1e-7&&(B=1);var I=Math.max(Math.ceil(B),1);N/=I;for(var U=0;U<I;U++)M.push(E(F,N)),F+=N;return M.map(function(O){var X=S(O[0],c,m,b,g,L,z),J=X.x,se=X.y,le=S(O[1],c,m,b,g,L,z),ce=le.x,q=le.y,Z=S(O[2],c,m,b,g,L,z),ee=Z.x,V=Z.y;return{x1:J,y1:se,x2:ce,y2:q,x:ee,y:V}})};Y.default=r,H.exports=Y.default}}),kP=De({"node_modules/svg-path-bounds/node_modules/normalize-svg-path/index.js"(Y,H){"use strict";H.exports=x;var p=EP();function x(e){for(var t,r=[],o=0,i=0,n=0,a=0,s=null,h=null,c=0,m=0,d=0,T=e.length;d<T;d++){var l=e[d],_=l[0];switch(_){case"M":n=l[1],a=l[2];break;case"A":var w=p({px:c,py:m,cx:l[6],cy:l[7],rx:l[1],ry:l[2],xAxisRotation:l[3],largeArcFlag:l[4],sweepFlag:l[5]});if(!w.length)continue;for(var A=0,M;A<w.length;A++)M=w[A],l=["C",M.x1,M.y1,M.x2,M.y2,M.x,M.y],A<w.length-1&&r.push(l);break;case"S":var g=c,b=m;(t=="C"||t=="S")&&(g+=g-o,b+=b-i),l=["C",g,b,l[1],l[2],l[3],l[4]];break;case"T":t=="Q"||t=="T"?(s=c*2-s,h=m*2-h):(s=c,h=m),l=E(c,m,s,h,l[1],l[2]);break;case"Q":s=l[1],h=l[2],l=E(c,m,l[1],l[2],l[3],l[4]);break;case"L":l=S(c,m,l[1],l[2]);break;case"H":l=S(c,m,l[1],m);break;case"V":l=S(c,m,c,l[1]);break;case"Z":l=S(c,m,n,a);break}t=_,c=l[l.length-2],m=l[l.length-1],l.length>4?(o=l[l.length-4],i=l[l.length-3]):(o=c,i=m),r.push(l)}return r}function S(e,t,r,o){return["C",e,t,r,o,r,o]}function E(e,t,r,o,i,n){return["C",e/3+2/3*r,t/3+2/3*o,i/3+2/3*r,n/3+2/3*o,i,n]}}}),b5=De({"node_modules/is-svg-path/index.js"(Y,H){"use strict";H.exports=function(x){return typeof x!="string"?!1:(x=x.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(x)&&/[\dz]$/i.test(x)&&x.length>4))}}}),CP=De({"node_modules/svg-path-bounds/index.js"(Y,H){"use strict";var p=ly(),x=x5(),S=kP(),E=b5(),e=Py();H.exports=t;function t(r){if(Array.isArray(r)&&r.length===1&&typeof r[0]=="string"&&(r=r[0]),typeof r=="string"&&(e(E(r),"String is not an SVG path."),r=p(r)),e(Array.isArray(r),"Argument should be a string or an array of path segments."),r=x(r),r=S(r),!r.length)return[0,0,0,0];for(var o=[1/0,1/0,-1/0,-1/0],i=0,n=r.length;i<n;i++)for(var a=r[i].slice(1),s=0;s<a.length;s+=2)a[s+0]<o[0]&&(o[0]=a[s+0]),a[s+1]<o[1]&&(o[1]=a[s+1]),a[s+0]>o[2]&&(o[2]=a[s+0]),a[s+1]>o[3]&&(o[3]=a[s+1]);return o}}}),LP=De({"node_modules/normalize-svg-path/index.js"(Y,H){var p=Math.PI,x=o(120);H.exports=S;function S(i){for(var n,a=[],s=0,h=0,c=0,m=0,d=null,T=null,l=0,_=0,w=0,A=i.length;w<A;w++){var M=i[w],g=M[0];switch(g){case"M":c=M[1],m=M[2];break;case"A":M=t(l,_,M[1],M[2],o(M[3]),M[4],M[5],M[6],M[7]),M.unshift("C"),M.length>7&&(a.push(M.splice(0,7)),M.unshift("C"));break;case"S":var b=l,v=_;(n=="C"||n=="S")&&(b+=b-s,v+=v-h),M=["C",b,v,M[1],M[2],M[3],M[4]];break;case"T":n=="Q"||n=="T"?(d=l*2-d,T=_*2-T):(d=l,T=_),M=e(l,_,d,T,M[1],M[2]);break;case"Q":d=M[1],T=M[2],M=e(l,_,M[1],M[2],M[3],M[4]);break;case"L":M=E(l,_,M[1],M[2]);break;case"H":M=E(l,_,M[1],_);break;case"V":M=E(l,_,l,M[1]);break;case"Z":M=E(l,_,c,m);break}n=g,l=M[M.length-2],_=M[M.length-1],M.length>4?(s=M[M.length-4],h=M[M.length-3]):(s=l,h=_),a.push(M)}return a}function E(i,n,a,s){return["C",i,n,a,s,a,s]}function e(i,n,a,s,h,c){return["C",i/3+2/3*a,n/3+2/3*s,h/3+2/3*a,c/3+2/3*s,h,c]}function t(i,n,a,s,h,c,m,d,T,l){if(l)f=l[0],R=l[1],u=l[2],y=l[3];else{var _=r(i,n,-h);i=_.x,n=_.y,_=r(d,T,-h),d=_.x,T=_.y;var w=(i-d)/2,A=(n-T)/2,M=w*w/(a*a)+A*A/(s*s);M>1&&(M=Math.sqrt(M),a=M*a,s=M*s);var g=a*a,b=s*s,v=(c==m?-1:1)*Math.sqrt(Math.abs((g*b-g*A*A-b*w*w)/(g*A*A+b*w*w)));v==1/0&&(v=1);var u=v*a*A/s+(i+d)/2,y=v*-s*w/a+(n+T)/2,f=Math.asin(((n-y)/s).toFixed(9)),R=Math.asin(((T-y)/s).toFixed(9));f=i<u?p-f:f,R=d<u?p-R:R,f<0&&(f=p*2+f),R<0&&(R=p*2+R),m&&f>R&&(f=f-p*2),!m&&R>f&&(R=R-p*2)}if(Math.abs(R-f)>x){var L=R,z=d,F=T;R=f+x*(m&&R>f?1:-1),d=u+a*Math.cos(R),T=y+s*Math.sin(R);var N=t(d,T,a,s,h,0,m,z,F,[R,L,u,y])}var B=Math.tan((R-f)/4),I=4/3*a*B,U=4/3*s*B,O=[2*i-(i+I*Math.sin(f)),2*n-(n-U*Math.cos(f)),d+I*Math.sin(R),T-U*Math.cos(R),d,T];if(l)return O;N&&(O=O.concat(N));for(var X=0;X<O.length;){var J=r(O[X],O[X+1],h);O[X++]=J.x,O[X++]=J.y}return O}function r(i,n,a){return{x:i*Math.cos(a)-n*Math.sin(a),y:i*Math.sin(a)+n*Math.cos(a)}}function o(i){return i*(p/180)}}}),IP=De({"node_modules/draw-svg-path/index.js"(Y,H){var p=x5(),x=LP(),S={M:"moveTo",C:"bezierCurveTo"};H.exports=function(E,e){E.beginPath(),x(p(e)).forEach(function(t){var r=t[0],o=t.slice(1);E[S[r]].apply(E,o)}),E.closePath()}}}),PP=De({"node_modules/bitmap-sdf/index.js"(Y,H){"use strict";var p=Jy();H.exports=S;var x=1e20;function S(t,r){r||(r={});var o=r.cutoff==null?.25:r.cutoff,i=r.radius==null?8:r.radius,n=r.channel||0,a,s,h,c,m,d,T,l,_,w,A;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");a=r.width,s=r.height,c=t,r.stride?d=r.stride:d=Math.floor(t.length/a/s)}else window.HTMLCanvasElement&&t instanceof window.HTMLCanvasElement?(l=t,T=l.getContext("2d"),a=l.width,s=l.height,_=T.getImageData(0,0,a,s),c=_.data,d=4):window.CanvasRenderingContext2D&&t instanceof window.CanvasRenderingContext2D?(l=t.canvas,T=t,a=l.width,s=l.height,_=T.getImageData(0,0,a,s),c=_.data,d=4):window.ImageData&&t instanceof window.ImageData&&(_=t,a=t.width,s=t.height,c=_.data,d=4);if(h=Math.max(a,s),window.Uint8ClampedArray&&c instanceof window.Uint8ClampedArray||window.Uint8Array&&c instanceof window.Uint8Array)for(m=c,c=Array(a*s),w=0,A=m.length;w<A;w++)c[w]=m[w*d+n]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var M=Array(a*s),g=Array(a*s),b=Array(h),v=Array(h),u=Array(h+1),y=Array(h);for(w=0,A=a*s;w<A;w++){var f=c[w];M[w]=f===1?0:f===0?x:Math.pow(Math.max(0,.5-f),2),g[w]=f===1?x:f===0?0:Math.pow(Math.max(0,f-.5),2)}E(M,a,s,b,v,y,u),E(g,a,s,b,v,y,u);var R=window.Float32Array?new Float32Array(a*s):new Array(a*s);for(w=0,A=a*s;w<A;w++)R[w]=p(1-((M[w]-g[w])/i+o),0,1);return R}function E(t,r,o,i,n,a,s){for(var h=0;h<r;h++){for(var c=0;c<o;c++)i[c]=t[c*r+h];for(e(i,n,a,s,o),c=0;c<o;c++)t[c*r+h]=n[c]}for(c=0;c<o;c++){for(h=0;h<r;h++)i[h]=t[c*r+h];for(e(i,n,a,s,r),h=0;h<r;h++)t[c*r+h]=Math.sqrt(n[h])}}function e(t,r,o,i,n){o[0]=0,i[0]=-x,i[1]=+x;for(var a=1,s=0;a<n;a++){for(var h=(t[a]+a*a-(t[o[s]]+o[s]*o[s]))/(2*a-2*o[s]);h<=i[s];)s--,h=(t[a]+a*a-(t[o[s]]+o[s]*o[s]))/(2*a-2*o[s]);s++,o[s]=a,i[s]=h,i[s+1]=+x}for(a=0,s=0;a<n;a++){for(;i[s+1]<a;)s++;r[a]=(a-o[s])*(a-o[s])+t[o[s]]}}}}),RP=De({"node_modules/svg-path-sdf/index.js"(Y,H){"use strict";var p=CP(),x=ly(),S=IP(),E=b5(),e=PP(),t=document.createElement("canvas"),r=t.getContext("2d");H.exports=o;function o(a,s){if(!E(a))throw Error("Argument should be valid svg path string");s||(s={});var h,c;s.shape?(h=s.shape[0],c=s.shape[1]):(h=t.width=s.w||s.width||200,c=t.height=s.h||s.height||200);var m=Math.min(h,c),d=s.stroke||0,T=s.viewbox||s.viewBox||p(a),l=[h/(T[2]-T[0]),c/(T[3]-T[1])],_=Math.min(l[0]||0,l[1]||0)/2;if(r.fillStyle="black",r.fillRect(0,0,h,c),r.fillStyle="white",d&&(typeof d!="number"&&(d=1),d>0?r.strokeStyle="white":r.strokeStyle="black",r.lineWidth=Math.abs(d)),r.translate(h*.5,c*.5),r.scale(_,_),n()){var w=new Path2D(a);r.fill(w),d&&r.stroke(w)}else{var A=x(a);S(r,A),r.fill(),d&&r.stroke()}r.setTransform(1,0,0,1,0,0);var M=e(r,{cutoff:s.cutoff!=null?s.cutoff:.5,radius:s.radius!=null?s.radius:m*.5});return M}var i;function n(){if(i!=null)return i;var a=document.createElement("canvas").getContext("2d");if(a.canvas.width=a.canvas.height=1,!window.Path2D)return i=!1;var s=new Path2D("M0,0h1v1h-1v-1Z");a.fillStyle="black",a.fill(s);var h=a.getImageData(0,0,1,1);return i=h&&h.data&&h.data[3]===255}}}),um=De({"src/traces/scattergl/convert.js"(Y,H){"use strict";var p=vn(),x=RP(),S=a0(),E=Mo(),e=ui(),t=e.isArrayOrTypedArray,r=ys(),o=nf(),i=mp().formatColor,n=Hu(),a=Km(),s=mb(),h=l0(),c=_o().DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},d=Ad().appendArrayPointValue;function T(N,B){var I,U={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},O=N._context.plotGlPixelRatio;if(B.visible!==!0)return U;if(n.hasText(B)&&(U.text=l(N,B),U.textSel=M(N,B,B.selected),U.textUnsel=M(N,B,B.unselected)),n.hasMarkers(B)&&(U.marker=w(N,B),U.markerSel=A(N,B,B.selected),U.markerUnsel=A(N,B,B.unselected),!B.unselected&&t(B.marker.opacity))){var X=B.marker.opacity;for(U.markerUnsel.opacity=new Array(X.length),I=0;I<X.length;I++)U.markerUnsel.opacity[I]=c*X[I]}if(n.hasLines(B)){U.line={overlay:!0,thickness:B.line.width*O,color:B.line.color,opacity:B.opacity};var J=(h.DASHES[B.line.dash]||[1]).slice();for(I=0;I<J.length;++I)J[I]*=B.line.width*O;U.line.dashes=J}return B.error_x&&B.error_x.visible&&(U.errorX=g(B,B.error_x,O)),B.error_y&&B.error_y.visible&&(U.errorY=g(B,B.error_y,O)),B.fill&&B.fill!=="none"&&(U.fill={closed:!0,fill:B.fillcolor,thickness:0}),U}function l(N,B){var I=N._fullLayout,U=B._length,O=B.textfont,X=B.textposition,J=t(X)?X:[X],se=O.color,le=O.size,ce=O.family,q=O.weight,Z=O.style,ee=O.variant,V={},oe,ie=N._context.plotGlPixelRatio,j=B.texttemplate;if(j){V.text=[];var Q=I._d3locale,re=Array.isArray(j),ue=re?Math.min(j.length,U):U,_e=re?function(it){return j[it]}:function(){return j};for(oe=0;oe<ue;oe++){var we={i:oe},Re=B._module.formatLabels(we,B,I),ze={};d(ze,B,oe),V.text.push(e.texttemplateString({data:[ze,we,B._meta],fallback:B.texttemplatefallback,labels:Re,locale:Q,template:_e(oe)}))}}else t(B.text)&&B.text.length<U?V.text=B.text.slice():V.text=B.text;if(t(V.text))for(oe=V.text.length;oe<U;oe++)V.text[oe]="";for(V.opacity=B.opacity,V.font={},V.align=[],V.baseline=[],oe=0;oe<J.length;oe++){var Xe=J[oe].split(/\s+/);switch(Xe[1]){case"left":V.align.push("right");break;case"right":V.align.push("left");break;default:V.align.push(Xe[1])}switch(Xe[0]){case"top":V.baseline.push("bottom");break;case"bottom":V.baseline.push("top");break;default:V.baseline.push(Xe[0])}}if(t(se))for(V.color=new Array(U),oe=0;oe<U;oe++)V.color[oe]=se[oe];else V.color=se;if(t(le)||Array.isArray(ce)||t(q)||Array.isArray(Z)||Array.isArray(ee))for(V.font=new Array(U),oe=0;oe<U;oe++){var tt=V.font[oe]={};tt.size=(e.isTypedArray(le)?le[oe]:t(le)?p(le[oe])?le[oe]:0:le)*ie,tt.family=Array.isArray(ce)?ce[oe]:ce,tt.weight=_(t(q)?q[oe]:q),tt.style=Array.isArray(Z)?Z[oe]:Z,tt.variant=Array.isArray(ee)?ee[oe]:ee}else V.font={size:le*ie,family:ce,weight:_(q),style:Z,variant:ee};return V}function _(N){return N<=1e3?N>500?"bold":"normal":N}function w(N,B){var I=B._length,U=B.marker,O={},X,J=t(U.symbol),se=t(U.angle),le=t(U.color),ce=t(U.line.color),q=t(U.opacity),Z=t(U.size),ee=t(U.line.width),V;if(J||(V=s.isOpenSymbol(U.symbol)),J||le||ce||q||se){O.symbols=new Array(I),O.angles=new Array(I),O.colors=new Array(I),O.borderColors=new Array(I);var oe=U.symbol,ie=U.angle,j=i(U,U.opacity,I),Q=i(U.line,U.opacity,I);if(!t(Q[0])){var re=Q;for(Q=Array(I),X=0;X<I;X++)Q[X]=re}if(!t(j[0])){var ue=j;for(j=Array(I),X=0;X<I;X++)j[X]=ue}if(!t(oe)){var _e=oe;for(oe=Array(I),X=0;X<I;X++)oe[X]=_e}if(!t(ie)){var we=ie;for(ie=Array(I),X=0;X<I;X++)ie[X]=we}for(O.symbols=oe,O.angles=ie,O.colors=j,O.borderColors=Q,X=0;X<I;X++)J&&(V=s.isOpenSymbol(U.symbol[X])),V&&(Q[X]=j[X].slice(),j[X]=j[X].slice(),j[X][3]=0);for(O.opacity=B.opacity,O.markers=new Array(I),X=0;X<I;X++)O.markers[X]=R({mx:O.symbols[X],ma:O.angles[X]},B)}else V?(O.color=S(U.color,"uint8"),O.color[3]=0,O.borderColor=S(U.color,"uint8")):(O.color=S(U.color,"uint8"),O.borderColor=S(U.line.color,"uint8")),O.opacity=B.opacity*U.opacity,O.marker=R({mx:U.symbol,ma:U.angle},B);var Re=1,ze=a(B,Re),Xe;if(Z||ee){var tt=O.sizes=new Array(I),it=O.borderSizes=new Array(I),et=0,nt;if(Z){for(X=0;X<I;X++)tt[X]=ze(U.size[X]),et+=tt[X];nt=et/I}else for(Xe=ze(U.size),X=0;X<I;X++)tt[X]=Xe;if(ee)for(X=0;X<I;X++)it[X]=U.line.width[X];else for(Xe=U.line.width,X=0;X<I;X++)it[X]=Xe;O.sizeAvg=nt}else O.size=ze(U&&U.size||10),O.borderSizes=ze(U.line.width);return O}function A(N,B,I){var U=B.marker,O={};return I&&(I.marker&&I.marker.symbol?O=w(N,e.extendFlat({},U,I.marker)):I.marker&&(I.marker.size&&(O.size=I.marker.size),I.marker.color&&(O.colors=I.marker.color),I.marker.opacity!==void 0&&(O.opacity=I.marker.opacity))),O}function M(N,B,I){var U={};if(!I)return U;if(I.textfont){var O={opacity:1,text:B.text,texttemplate:B.texttemplate,textposition:B.textposition,textfont:e.extendFlat({},B.textfont)};I.textfont&&e.extendFlat(O.textfont,I.textfont),U=l(N,O)}return U}function g(N,B,I){var U={capSize:B.width*2*I,lineWidth:B.thickness*I,color:B.color};return B.copy_ystyle&&(U=N.error_y),U}var b=h.SYMBOL_SDF_SIZE,v=h.SYMBOL_SIZE,u=h.SYMBOL_STROKE,y={},f=r.symbolFuncs[0](v*.05);function R(N,B){var I=N.mx;if(I==="circle")return null;var U,O,X=r.symbolNumber(I),J=r.symbolFuncs[X%100],se=!!r.symbolNoDot[X%100],le=!!r.symbolNoFill[X%100],ce=s.isDotSymbol(I);if(N.ma&&(I+="_"+N.ma),y[I])return y[I];var q=r.getMarkerAngle(N,B);return ce&&!se?U=J(v*1.1,q)+f:U=J(v,q),O=x(U,{w:b,h:b,viewBox:[-v,-v,v,v],stroke:le?u:-u}),y[I]=O,O||null}function L(N,B,I){var U=I.length,O=U/2,X,J;if(n.hasLines(B)&&O)if(B.line.shape==="hv"){for(X=[],J=0;J<O-1;J++)isNaN(I[J*2])||isNaN(I[J*2+1])?X.push(NaN,NaN,NaN,NaN):(X.push(I[J*2],I[J*2+1]),!isNaN(I[J*2+2])&&!isNaN(I[J*2+3])?X.push(I[J*2+2],I[J*2+1]):X.push(NaN,NaN));X.push(I[U-2],I[U-1])}else if(B.line.shape==="hvh"){for(X=[],J=0;J<O-1;J++)if(isNaN(I[J*2])||isNaN(I[J*2+1])||isNaN(I[J*2+2])||isNaN(I[J*2+3]))!isNaN(I[J*2])&&!isNaN(I[J*2+1])?X.push(I[J*2],I[J*2+1]):X.push(NaN,NaN),X.push(NaN,NaN);else{var se=(I[J*2]+I[J*2+2])/2;X.push(I[J*2],I[J*2+1],se,I[J*2+1],se,I[J*2+3])}X.push(I[U-2],I[U-1])}else if(B.line.shape==="vhv"){for(X=[],J=0;J<O-1;J++)if(isNaN(I[J*2])||isNaN(I[J*2+1])||isNaN(I[J*2+2])||isNaN(I[J*2+3]))!isNaN(I[J*2])&&!isNaN(I[J*2+1])?X.push(I[J*2],I[J*2+1]):X.push(NaN,NaN),X.push(NaN,NaN);else{var le=(I[J*2+1]+I[J*2+3])/2;X.push(I[J*2],I[J*2+1],I[J*2],le,I[J*2+2],le)}X.push(I[U-2],I[U-1])}else if(B.line.shape==="vh"){for(X=[],J=0;J<O-1;J++)isNaN(I[J*2])||isNaN(I[J*2+1])?X.push(NaN,NaN,NaN,NaN):(X.push(I[J*2],I[J*2+1]),!isNaN(I[J*2+2])&&!isNaN(I[J*2+3])?X.push(I[J*2],I[J*2+3]):X.push(NaN,NaN));X.push(I[U-2],I[U-1])}else X=I;var ce=!1;for(J=0;J<X.length;J++)if(isNaN(X[J])){ce=!0;break}var q=ce||X.length>h.TOO_MANY_POINTS||n.hasMarkers(B)?"rect":"round";if(ce&&B.connectgaps){var Z=X[0],ee=X[1];for(J=0;J<X.length;J+=2)isNaN(X[J])||isNaN(X[J+1])?(X[J]=Z,X[J+1]=ee):(Z=X[J],ee=X[J+1])}return{join:q,positions:X}}function z(N,B,I,U,O){var X=E.getComponentMethod("errorbars","makeComputeError"),J=o.getFromId(N,B.xaxis,"x"),se=o.getFromId(N,B.yaxis,"y"),le=I.length/2,ce={};function q(Z,ee){var V=ee._id.charAt(0),oe=B["error_"+V];if(oe&&oe.visible&&(ee.type==="linear"||ee.type==="log")){for(var ie=X(oe),j={x:0,y:1}[V],Q={x:[0,1,2,3],y:[2,3,0,1]}[V],re=new Float64Array(4*le),ue=1/0,_e=-1/0,we=0,Re=0;we<le;we++,Re+=4){var ze=Z[we];if(p(ze)){var Xe=I[we*2+j],tt=ie(ze,we),it=tt[0],et=tt[1];if(p(it)&&p(et)){var nt=ze-it,Ae=ze+et;re[Re+Q[0]]=Xe-ee.c2l(nt),re[Re+Q[1]]=ee.c2l(Ae)-Xe,re[Re+Q[2]]=0,re[Re+Q[3]]=0,ue=Math.min(ue,ze-it),_e=Math.max(_e,ze+et)}}}ce[V]={positions:I,errors:re,_bnds:[ue,_e]}}}return q(U,J),q(O,se),ce}function F(N,B,I,U){var O=B._length,X={},J;if(n.hasMarkers(B)){var se=I.font,le=I.align,ce=I.baseline;for(X.offset=new Array(O),J=0;J<O;J++){var q=U.sizes?U.sizes[J]:U.size,Z=t(se)?se[J].size:se.size,ee=t(le)?le.length>1?le[J]:le[0]:le,V=t(ce)?ce.length>1?ce[J]:ce[0]:ce,oe=m[ee],ie=m[V],j=q?q/.8+1:0,Q=-ie*j-ie*.5;X.offset[J]=[oe*j/Z,Q/Z]}}return X}H.exports={style:T,markerStyle:w,markerSelection:A,linePositions:L,errorBarPositions:z,textPosition:F}}}),w5=De({"src/traces/scattergl/scene_update.js"(Y,H){"use strict";var p=ui();H.exports=function(S,E){var e=E._scene,t={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},r={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return E._scene||(e=E._scene={},e.init=function(){p.extendFlat(e,r,t)},e.init(),e.update=function(i){var n=p.repeat(i,e.count);if(e.fill2d&&e.fill2d.update(n),e.scatter2d&&e.scatter2d.update(n),e.line2d&&e.line2d.update(n),e.error2d&&e.error2d.update(n.concat(n)),e.select2d&&e.select2d.update(n),e.glText)for(var a=0;a<e.count;a++)e.glText[a].update(i)},e.draw=function(){for(var i=e.count,n=e.fill2d,a=e.error2d,s=e.line2d,h=e.scatter2d,c=e.glText,m=e.select2d,d=e.selectBatch,T=e.unselectBatch,l=0;l<i;l++){if(n&&e.fillOrder[l]&&n.draw(e.fillOrder[l]),s&&e.lineOptions[l]&&s.draw(l),a&&(e.errorXOptions[l]&&a.draw(l),e.errorYOptions[l]&&a.draw(l+i)),h&&e.markerOptions[l])if(T[l].length){var _=p.repeat([],e.count);_[l]=T[l],h.draw(_)}else d[l].length||h.draw(l);c[l]&&e.textOptions[l]&&c[l].render()}m&&m.draw(d),e.dirty=!1},e.destroy=function(){e.fill2d&&e.fill2d.destroy&&e.fill2d.destroy(),e.scatter2d&&e.scatter2d.destroy&&e.scatter2d.destroy(),e.error2d&&e.error2d.destroy&&e.error2d.destroy(),e.line2d&&e.line2d.destroy&&e.line2d.destroy(),e.select2d&&e.select2d.destroy&&e.select2d.destroy(),e.glText&&e.glText.forEach(function(i){i.destroy&&i.destroy()}),e.lineOptions=null,e.fillOptions=null,e.markerOptions=null,e.markerSelectedOptions=null,e.markerUnselectedOptions=null,e.errorXOptions=null,e.errorYOptions=null,e.textOptions=null,e.textSelectedOptions=null,e.textUnselectedOptions=null,e.selectBatch=null,e.unselectBatch=null,E._scene=null}),e.dirty||p.extendFlat(e,t),e}}}),DP=De({"src/traces/scattergl/calc.js"(Y,H){"use strict";var p=gb(),x=ui(),S=nf(),E=fv().findExtremes,e=gv(),t=Kd(),r=t.calcMarkerSize,o=t.calcAxisExpansion,i=t.setFirstScatter,n=Yd(),a=um(),s=w5(),h=zn().BADNUM,c=l0().TOO_MANY_POINTS;H.exports=function(l,_){var w=l._fullLayout,A=_._xA=S.getFromId(l,_.xaxis,"x"),M=_._yA=S.getFromId(l,_.yaxis,"y"),g=w._plots[_.xaxis+_.yaxis],b=_._length,v=b>=c,u=b*2,y={},f,R=A.makeCalcdata(_,"x"),L=M.makeCalcdata(_,"y"),z=e(_,A,"x",R),F=e(_,M,"y",L),N=z.vals,B=F.vals;_._x=N,_._y=B,_.xperiodalignment&&(_._origX=R,_._xStarts=z.starts,_._xEnds=z.ends),_.yperiodalignment&&(_._origY=L,_._yStarts=F.starts,_._yEnds=F.ends);var I=new Array(u),U=new Array(b);for(f=0;f<b;f++)I[f*2]=N[f]===h?NaN:N[f],I[f*2+1]=B[f]===h?NaN:B[f],U[f]=f;if(A.type==="log")for(f=0;f<u;f+=2)I[f]=A.c2l(I[f]);if(M.type==="log")for(f=1;f<u;f+=2)I[f]=M.c2l(I[f]);v&&A.type!=="log"&&M.type!=="log"?y.tree=p(I):y.ids=U,n(l,_);var O=d(l,g,_,I,N,B),X=s(l,g);i(w,_);var J;return v?O.marker&&(J=O.marker.sizeAvg||Math.max(O.marker.size,3)):J=r(_,b),o(l,_,A,M,N,B,J),O.errorX&&m(_,A,O.errorX),O.errorY&&m(_,M,O.errorY),O.fill&&!X.fill2d&&(X.fill2d=!0),O.marker&&!X.scatter2d&&(X.scatter2d=!0),O.line&&!X.line2d&&(X.line2d=!0),(O.errorX||O.errorY)&&!X.error2d&&(X.error2d=!0),O.text&&!X.glText&&(X.glText=!0),O.marker&&(O.marker.snap=b),X.lineOptions.push(O.line),X.errorXOptions.push(O.errorX),X.errorYOptions.push(O.errorY),X.fillOptions.push(O.fill),X.markerOptions.push(O.marker),X.markerSelectedOptions.push(O.markerSel),X.markerUnselectedOptions.push(O.markerUnsel),X.textOptions.push(O.text),X.textSelectedOptions.push(O.textSel),X.textUnselectedOptions.push(O.textUnsel),X.selectBatch.push([]),X.unselectBatch.push([]),y._scene=X,y.index=X.count,y.x=N,y.y=B,y.positions=I,X.count++,[{x:!1,y:!1,t:y,trace:_}]};function m(T,l,_){var w=T._extremes[l._id],A=E(l,_._bnds,{padded:!0});w.min=w.min.concat(A.min),w.max=w.max.concat(A.max)}function d(T,l,_,w,A,M){var g=a.style(T,_);if(g.marker&&(g.marker.positions=w),g.line&&w.length>1&&x.extendFlat(g.line,a.linePositions(T,_,w)),g.errorX||g.errorY){var b=a.errorBarPositions(T,_,w,A,M);g.errorX&&x.extendFlat(g.errorX,b.x),g.errorY&&x.extendFlat(g.errorY,b.y)}return g.text&&(x.extendFlat(g.text,{positions:w},a.textPosition(T,_,g.text,g.marker)),x.extendFlat(g.textSel,{positions:w},a.textPosition(T,_,g.text,g.markerSel)),x.extendFlat(g.textUnsel,{positions:w},a.textPosition(T,_,g.text,g.markerUnsel))),g}}}),T5=De({"src/traces/scattergl/edit_style.js"(Y,H){"use strict";var p=ui(),x=vo(),S=_o().DESELECTDIM;function E(e){var t=e[0],r=t.trace,o=t.t,i=o._scene,n=o.index,a=i.selectBatch[n],s=i.unselectBatch[n],h=i.textOptions[n],c=i.textSelectedOptions[n]||{},m=i.textUnselectedOptions[n]||{},d=p.extendFlat({},h),T,l;if(a.length||s.length){var _=c.color,w=m.color,A=h.color,M=p.isArrayOrTypedArray(A);for(d.color=new Array(r._length),T=0;T<a.length;T++)l=a[T],d.color[l]=_||(M?A[l]:A);for(T=0;T<s.length;T++){l=s[T];var g=M?A[l]:A;d.color[l]=w||(_?g:x.addOpacity(g,S))}}i.glText[n].update(d)}H.exports={styleTextSelection:E}}}),A5=De({"src/traces/scattergl/select.js"(Y,H){"use strict";var p=Hu(),x=T5().styleTextSelection;H.exports=function(E,e){var t=E.cd,r=E.xaxis,o=E.yaxis,i=[],n=t[0].trace,a=t[0].t,s=n._length,h=a.x,c=a.y,m=a._scene,d=a.index;if(!m)return i;var T=p.hasText(n),l=p.hasMarkers(n),_=!l&&!T;if(n.visible!==!0||_)return i;var w=[],A=[];if(e!==!1&&!e.degenerate)for(var M=0;M<s;M++)e.contains([a.xpx[M],a.ypx[M]],!1,M,E)?(w.push(M),i.push({pointNumber:M,x:r.c2d(h[M]),y:o.c2d(c[M])})):A.push(M);if(l){var g=m.scatter2d;if(!w.length&&!A.length){var b=new Array(m.count);b[d]=m.markerOptions[d],g.update.apply(g,b)}else if(!m.selectBatch[d].length&&!m.unselectBatch[d].length){var v=new Array(m.count);v[d]=m.markerUnselectedOptions[d],g.update.apply(g,v)}}return m.selectBatch[d]=w,m.unselectBatch[d]=A,T&&x(t),i}}}),zP=De({"src/traces/scattergl/base_index.js"(Y,H){"use strict";var p=pb();H.exports={moduleType:"trace",name:"scattergl",basePlotModule:Gf(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:r1(),supplyDefaults:xP(),crossTraceDefaults:m2(),colorbar:qh(),formatLabels:bP(),calc:DP(),hoverPoints:p.hoverPoints,selectPoints:A5(),meta:{}}}}),FP=De({"node_modules/color-id/index.js"(Y,H){"use strict";var p=Jy();H.exports=x,H.exports.to=x,H.exports.from=S;function x(E,e){e==null&&(e=!0);var t=E[0],r=E[1],o=E[2],i=E[3];i==null&&(i=e?1:255),e&&(t*=255,r*=255,o*=255,i*=255),t=p(t,0,255)&255,r=p(r,0,255)&255,o=p(o,0,255)&255,i=p(i,0,255)&255;var n=t*16777216+(r<<16)+(o<<8)+i;return n}function S(E,e){E=+E;var t=E>>>24,r=(E&16711680)>>>16,o=(E&65280)>>>8,i=E&255;return e===!1?[t,r,o,i]:[t/255,r/255,o/255,i/255]}}}),ih=De({"node_modules/object-assign/index.js"(Y,H){"use strict";var p=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;function E(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var i=Object.getOwnPropertyNames(r).map(function(a){return r[a]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}H.exports=e()?Object.assign:function(t,r){for(var o,i=E(t),n,a=1;a<arguments.length;a++){o=Object(arguments[a]);for(var s in o)x.call(o,s)&&(i[s]=o[s]);if(p){n=p(o);for(var h=0;h<n.length;h++)S.call(o,n[h])&&(i[n[h]]=o[n[h]])}}return i}}}),BP=De({"node_modules/glslify/browser.js"(Y,H){H.exports=function(p){typeof p=="string"&&(p=[p]);for(var x=[].slice.call(arguments,1),S=[],E=0;E<p.length-1;E++)S.push(p[E],x[E]||"");return S.push(p[E]),S.join("")}}}),S5=De({"node_modules/update-diff/index.js"(Y,H){"use strict";H.exports=function(x,S,E){Array.isArray(E)||(E=[].slice.call(arguments,2));for(var e=0,t=E.length;e<t;e++){var r=E[e];for(var o in r)if(!(S[o]!==void 0&&!Array.isArray(S[o])&&x[o]===S[o])&&o in S){var i;if(r[o]===!0)i=S[o];else{if(r[o]===!1)continue;if(typeof r[o]=="function"&&(i=r[o](S[o],x,S),i===void 0))continue}x[o]=i}}return x}}}),OP=De({"node_modules/is-iexplorer/index.js"(Y,H){"use strict";H.exports=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))}}),yb=De({"node_modules/to-float32/index.js"(Y,H){"use strict";H.exports=S,H.exports.float32=H.exports.float=S,H.exports.fract32=H.exports.fract=x;var p=new Float32Array(1);function x(E,e){if(E.length){if(E instanceof Float32Array)return new Float32Array(E.length);e instanceof Float32Array||(e=S(E));for(var t=0,r=e.length;t<r;t++)e[t]=E[t]-e[t];return e}return S(E-S(E))}function S(E){return E.length?E instanceof Float32Array?E:new Float32Array(E):(p[0]=E,p[0])}}}),M5=De({"node_modules/regl-scatter2d/bundle.js"(Y,H){"use strict";function p(y,f){var R=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(R!=null){var L,z,F,N,B=[],I=!0,U=!1;try{if(F=(R=R.call(y)).next,f===0){if(Object(R)!==R)return;I=!1}else for(;!(I=(L=F.call(R)).done)&&(B.push(L.value),B.length!==f);I=!0);}catch(O){U=!0,z=O}finally{try{if(!I&&R.return!=null&&(N=R.return(),Object(N)!==N))return}finally{if(U)throw z}}return B}}function x(y,f){return e(y)||p(y,f)||r(y,f)||n()}function S(y){return E(y)||t(y)||r(y)||i()}function E(y){if(Array.isArray(y))return o(y)}function e(y){if(Array.isArray(y))return y}function t(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function r(y,f){if(y){if(typeof y=="string")return o(y,f);var R=Object.prototype.toString.call(y).slice(8,-1);if(R==="Object"&&y.constructor&&(R=y.constructor.name),R==="Map"||R==="Set")return Array.from(y);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return o(y,f)}}function o(y,f){(f==null||f>y.length)&&(f=y.length);for(var R=0,L=new Array(f);R<f;R++)L[R]=y[R];return L}function i(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1995In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1996In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=a0(),s=sm(),h=FP(),c=gb(),m=ih(),d=BP(),T=Nv(),l=S5(),_=lm(),w=OP(),A=yb(),M=Tg(),g=b;function b(y,f){var R=this;if(!(this instanceof b))return new b(y,f);typeof y=="function"?(f||(f={}),f.regl=y):(f=y,y=null),f&&f.length&&(f.positions=f),y=f.regl;var L=y._gl,z,F=[],N={},B=[],I=[null],U=[null],O=255,X=100;this.tooManyColors=w,z=y.texture({data:new Uint8Array(O*4),width:O,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),m(this,{regl:y,gl:L,groups:B,markerCache:U,markerTextures:I,palette:F,paletteIds:N,paletteTexture:z,maxColors:O,maxSize:X,canvas:L.canvas}),this.update(f);var J={uniforms:{constPointSize:!!f.constPointSize,opacity:y.prop("opacity"),paletteSize:function(q,Z){return[R.tooManyColors?0:O,z.height]},pixelRatio:y.context("pixelRatio"),scale:y.prop("scale"),scaleFract:y.prop("scaleFract"),translate:y.prop("translate"),translateFract:y.prop("translateFract"),markerTexture:y.prop("markerTexture"),paletteTexture:z},attributes:{x:function(q,Z){return Z.xAttr||{buffer:Z.positionBuffer,stride:8,offset:0}},y:function(q,Z){return Z.yAttr||{buffer:Z.positionBuffer,stride:8,offset:4}},xFract:function(q,Z){return Z.xAttr?{constant:[0,0]}:{buffer:Z.positionFractBuffer,stride:8,offset:0}},yFract:function(q,Z){return Z.yAttr?{constant:[0,0]}:{buffer:Z.positionFractBuffer,stride:8,offset:4}},size:function(q,Z){return Z.size.length?{buffer:Z.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(Z.size*255/R.maxSize)]}},borderSize:function(q,Z){return Z.borderSize.length?{buffer:Z.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(Z.borderSize*255/R.maxSize)]}},colorId:function(q,Z){return Z.color.length?{buffer:Z.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?F.slice(Z.color*4,Z.color*4+4):[Z.color]}},borderColorId:function(q,Z){return Z.borderColor.length?{buffer:Z.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?F.slice(Z.borderColor*4,Z.borderColor*4+4):[Z.borderColor]}},isActive:function(q,Z){return Z.activation===!0?{constant:[1]}:Z.activation?Z.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:y.prop("viewport")},viewport:y.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:y.prop("elements"),count:y.prop("count"),offset:y.prop("offset"),primitive:"points"},se=m({},J);se.frag=d([`precision highp float;
1997#define GLSLIFY 1

Callers 5

hlFunction · 0.70
plFunction · 0.70
oiFunction · 0.70

Calls 7

mapMethod · 0.80
aiFunction · 0.70
wnFunction · 0.70
psFunction · 0.70
WlFunction · 0.70
xsFunction · 0.70
filterMethod · 0.45

Tested by

no test coverage detected