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

Function Ma

plotly/package_data/plotly.min.js:2008–2008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2006`):Z=Z.replace(/\<br\>/g," ");var ie="",ae=[];for(me=0;me<Z.length;++me)ae[me]=ie;H.bolds===!0&&(ae=C(d,v,Z,ae)),H.italics===!0&&(ae=C(m,b,Z,ae)),H.superscripts===!0&&(ae=C(p,M,Z,ae)),H.subscripts===!0&&(ae=C(T,x,Z,ae));var _e=[],Ee="";for(me=0;me<Z.length;++me)ae[me]!==null&&(Ee+=Z[me],_e.push(ae[me]));var Ce=Ee.split(`
2007`),ge=Ce.length,re=Math.round(N*j),Se=j,ke=j*2,be=0,Be=ge*re+ke;V.height<Be&&(V.height=Be),G.fillStyle="#000",G.fillRect(0,0,V.width,V.height),G.fillStyle="#fff";var Le,me,Pe,ce,He,lt=0,mt="";function Ht(){if(mt!==""){var Ae=G.measureText(mt).width;G.fillText(mt,Se+Pe,ke+ce),Pe+=Ae}}function at(){return""+Math.round(He)+"px "}function ct(Ae,rt){var St=""+G.font;if(H.subscripts===!0){var Tt=Ae.indexOf(L),dt=rt.indexOf(L),Et=Tt>-1?parseInt(Ae[1+Tt]):0,pt=dt>-1?parseInt(rt[1+dt]):0;Et!==pt&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,pt-Et),St=St.replace("?px ",at())),ce+=.25*re*(pt-Et)}if(H.superscripts===!0){var jt=Ae.indexOf(k),or=rt.indexOf(k),mr=jt>-1?parseInt(Ae[1+jt]):0,Ar=or>-1?parseInt(rt[1+or]):0;mr!==Ar&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,Ar-mr),St=St.replace("?px ",at())),ce-=.25*re*(Ar-mr)}if(H.bolds===!0){var ei=Ae.indexOf(v)>-1,qr=rt.indexOf(v)>-1;!ei&&qr&&(jr?St=St.replace("italic ","italic bold "):St="bold "+St),ei&&!qr&&(St=St.replace("bold ",""))}if(H.italics===!0){var jr=Ae.indexOf(b)>-1,gt=rt.indexOf(b)>-1;!jr&&gt&&(St="italic "+St),jr&&!gt&&(St=St.replace("italic ",""))}G.font=St}for(Le=0;Le<ge;++Le){var ar=Ce[Le]+`
2008`;for(Pe=0,ce=Le*re,He=j,mt="",me=0;me<ar.length;++me){var Vt=me+lt<_e.length?_e[me+lt]:_e[_e.length-1];ie===Vt?mt+=ar[me]:(Ht(),mt=ar[me],Vt!==void 0&&(ct(ie,Vt),ie=Vt))}Ht(),lt+=ar.length;var rr=Math.round(Pe+2*Se)|0;be<rr&&(be=rr)}var tt=be,je=ke+re*ge,Ue=l(G.getImageData(0,0,tt,je).data,[je,tt,4]);return Ue.pick(-1,-1,0).transpose(1,0)}function P(V,G){var Z=s(V,128);return G?u(Z.cells,Z.positions,.25):{edges:Z.cells,positions:Z.positions}}function E(V,G,Z,j){var N=P(V,j),H=S(N.positions,G,Z),ie=N.edges,ae=G.orientation==="ccw";if(c(H,ie),G.polygons||G.polygon||G.polyline){for(var _e=h(ie,H),Ee=new Array(_e.length),Ce=0;Ce<_e.length;++Ce){for(var ge=_e[Ce],re=new Array(ge.length),Se=0;Se<ge.length;++Se){for(var ke=ge[Se],be=new Array(ke.length),Be=0;Be<ke.length;++Be)be[Be]=H[ke[Be]].slice();ae&&be.reverse(),re[Se]=be}Ee[Ce]=re}return Ee}else return G.triangles||G.triangulate||G.triangle?{cells:f(H,ie,{delaunay:!1,exterior:!1,interior:!0}),positions:H}:{edges:ie,positions:H}}function z(V,G,Z){try{return E(V,G,Z,!0)}catch(j){}try{return E(V,G,Z,!1)}catch(j){}return G.polygons||G.polyline||G.polygon?[]:G.triangles||G.triangulate||G.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function q(V,G,Z,j){var N=64,H=1.25,ie={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};j&&(j.size&&j.size>0&&(N=j.size),j.lineSpacing&&j.lineSpacing>0&&(H=j.lineSpacing),j.styletags&&j.styletags.breaklines&&(ie.breaklines=!!j.styletags.breaklines),j.styletags&&j.styletags.bolds&&(ie.bolds=!!j.styletags.bolds),j.styletags&&j.styletags.italics&&(ie.italics=!!j.styletags.italics),j.styletags&&j.styletags.subscripts&&(ie.subscripts=!!j.styletags.subscripts),j.styletags&&j.styletags.superscripts&&(ie.superscripts=!!j.styletags.superscripts)),Z.font=[j.fontStyle,j.fontVariant,j.fontWeight,N+"px",j.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var ae=g(G,Z,V,N,H,ie);return z(ae,j,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(E){E.permitHostObjects___&&E.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,m="weakmap:",b=m+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),k=new Uint8Array(p);crypto.getRandomValues(k),b=m+"rand:"+Array.prototype.map.call(k,function(E){return(E%36).toString(36)}).join("")+"___"}function M(E){return!(E.substr(0,m.length)==m&&E.substr(E.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(M)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return T(z).filter(M)}})}function L(E){if(E!==Object(E))throw new TypeError("Not an object: "+E);var z=E[b];if(z&&z.key===E)return z;if(v(E)){z={key:E};try{return d(E,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(q){return}}}(function(){var E=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),E(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var q=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),q(G)}})})();function x(E){return E.prototype=null,Object.freeze(E)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||S();var E=[],z=[],q=g++;function V(N,H){var ie,ae=L(N);return ae?q in ae?ae[q]:H:(ie=E.indexOf(N),ie>=0?z[ie]:H)}function G(N){var H=L(N);return H?q in H:E.indexOf(N)>=0}function Z(N,H){var ie,ae=L(N);return ae?ae[q]=H:(ie=E.indexOf(N),ie>=0?z[ie]=H:(ie=E.length,z[ie]=H,E[ie]=N)),this}function j(N){var H=L(N),ie,ae;return H?q in H&&delete H[q]:(ie=E.indexOf(N),ie<0?!1:(ae=E.length-1,E[ie]=void 0,z[ie]=z[ae],E[ie]=E[ae],E.length=ae,z.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(V)},has___:{value:x(G)},set___:{value:x(Z)},delete___:{value:x(j)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,q){return this.get___(z,q)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,q){return this.set___(z,q)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function E(){this instanceof P||S();var z=new l,q=void 0,V=!1;function G(H,ie){return q?z.has(H)?z.get(H):q.get___(H,ie):z.get(H,ie)}function Z(H){return z.has(H)||(q?q.has___(H):!1)}var j;s?j=function(H,ie){return z.set(H,ie),z.has(H)||(q||(q=new P),q.set(H,ie)),this}:j=function(H,ie){if(V)try{z.set(H,ie)}catch(ae){q||(q=new P),q.set___(H,ie)}else z.set(H,ie);return this};function N(H){var ie=!!z.delete(H);return q&&q.delete___(H)||ie}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(Z)},set___:{value:x(j)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(H){if(H===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}E.prototype=P.prototype,i.exports=E,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,m,b){var p=f[0],k=d[0],M=[0],T=k;v|=0;var L=0,x=k;for(L=0;L<p;++L){{var C=h[v]-b,S=h[v+T]-b;C>=0!=S>=0&&m.push(M[0]+.5+.5*(C+S)/(C-S))}v+=x,++M[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,m,b){var p=v.dtype,k=v.order,M=[p,k.join()].join(),T=h[M];return T||(h[M]=T=f([p,k])),T(v.shape.slice(0),v.data,v.stride,v.offset|0,m,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);MPe.exports=n})()});var AX=ye((cgr,EPe)=>{"use strict";EPe.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]}});var PPe=ye((fgr,LPe)=>{"use strict";var kPe=AX();LPe.exports=gIt;var CPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function gIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),kPe[e])r=kPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(CPe[h]!==void 0)return CPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var RPe=ye((hgr,IPe)=>{"use strict";var mIt=PPe();IPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=mIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=yIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function yIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var ik=ye((dgr,DPe)=>{DPe.exports=_It;function _It(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}});var tF=ye((vgr,FPe)=>{FPe.exports=function(e){switch(e){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}}});var sx=ye((pgr,zPe)=>{"use strict";var xIt=RPe(),rF=ik(),bIt=tF();zPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=bIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=xIt(t),t[0]/=255,t[1]/=255,t[2]/=255),wIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=rF(Math.floor(t[0]*255),0,255),i[1]=rF(Math.floor(t[1]*255),0,255),i[2]=rF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:rF(Math.floor(t[3]*255),0,255)),i)};function wIt(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))}});var n1=ye((ggr,qPe)=>{"use strict";var TIt=sx();function AIt(e){return e?TIt(e):[0,0,0,1]}qPe.exports=AIt});var a1=ye((mgr,HPe)=>{"use strict";var VPe=Eo(),SIt=fd(),iF=sx(),nF=tc(),MIt=Ih().defaultLine,OPe=Yd().isArrayOrTypedArray,SX=iF(MIt),GPe=1;function BPe(e,t){var r=e;return r[3]*=t,r}function NPe(e){if(VPe(e))return SX;var t=iF(e);return t.length?t:SX}function UPe(e){return VPe(e)?e:GPe}function EIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=OPe(n),a=OPe(t),o=nF.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=nF.makeColorScaleFuncFromTrace(e):l=NPe,i?u=function(v,m){return v[m]===void 0?SX:iF(l(v[m]))}:u=NPe,a?c=function(v,m){return v[m]===void 0?GPe:UPe(v[m])}:c=UPe,i||a)for(var d=0;d<r;d++)f=u(n,d),h=c(t,d),s[d]=BPe(f,h);else s=BPe(iF(n),t);return s}function kIt(e){var t=nF.extractOpts(e),r=t.colorscale;return t.reversescale&&(r=nF.flipScale(t.colorscale)),r.map(function(n){var i=n[0],a=SIt(n[1]),o=a.toRgb();return{index:i,rgb:[o.r,o.g,o.b,o.a]}})}HPe.exports={formatColor:EIt,parseColorScale:kIt}});var MX=ye((ygr,jPe)=>{"use strict";jPe.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]}});var aF=ye((_gr,WPe)=>{"use strict";WPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var ZPe=ye((xgr,XPe)=>{"use strict";var CIt=Oa();function EX(e,t,r,n){if(!t||!t.visible)return null;for(var i=CIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o<e.length;o++){var s=i(+e[o],o);if(n.type==="log"){var l=n.c2l(e[o]),u=e[o]-s[0],c=e[o]+s[1];if(a[o]=[(n.c2l(u,!0)-l)*r,(n.c2l(c,!0)-l)*r],u>0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function LIt(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}function PIt(e,t,r){var n=[EX(e.x,e.error_x,t[0],r.xaxis),EX(e.y,e.error_y,t[1],r.yaxis),EX(e.z,e.error_z,t[2],r.zaxis)],i=LIt(n);if(i===0)return null;for(var a=new Array(i),o=0;o<i;o++){for(var s=[[0,0,0],[0,0,0]],l=0;l<3;l++)if(n[l])for(var u=0;u<2;u++)s[u][l]=n[l][o][u];a[o]=s}return a}XPe.exports=PIt});var iIe=ye((bgr,rIe)=>{"use strict";var IIt=qd().gl_line3d,YPe=qd().gl_scatter3d,RIt=qd().gl_error3d,DIt=qd().gl_mesh3d,FIt=qd().delaunay_triangulate,o1=Pr(),eIe=n1(),oF=a1().formatColor,zIt=B3(),kX=MX(),qIt=aF(),OIt=ho(),BIt=ip().appendArrayPointValue,NIt=ZPe();function tIe(e,t){this.scene=e,this.uid=t,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 LX=tIe.prototype;LX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(o1.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function UIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s<e.length;++s){var l=e[s];isNaN(l[n])||!isFinite(l[n])||isNaN(l[i])||!isFinite(l[i])||(a.push([l[n],l[i]]),o.push(s))}var u=FIt(a);for(s=0;s<u.length;++s)for(var c=u[s],f=0;f<c.length;++f)c[f]=o[c[f]];return{positions:e,cells:u,meshColor:t}}function VIt(e){for(var t=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i<3;i++){var a=e[i];a&&a.copy_zstyle!==!1&&e[2].visible!==!1&&(a=e[2]),!(!a||!a.visible)&&(t[i]=a.width/2,r[i]=eIe(a.color),n[i]=a.thickness)}return{capSize:t,color:r,lineWidth:n}}function KPe(e){return e==null?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function JPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function GIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i<e.length;i++)n[i]=[t,r],e[i]&&(n[i][0]=KPe(e[i]),n[i][1]=JPe(e[i]));else n[0]=KPe(e),n[1]=JPe(e);return n}function HIt(e,t){return t(e*4)}function jIt(e){return qIt[e]}function CX(e,t,r,n,i){var a=null;if(o1.isArrayOrTypedArray(e)){a=[];for(var o=0;o<t;o++)e[o]===void 0?a[o]=n:a[o]=r(e[o],i)}else a=r(e,o1.identity);return a}function WIt(e,t){var r=[],n=e.fullSceneLayout,i=e.dataScale,a=n.xaxis,o=n.yaxis,s=n.zaxis,l=t.marker,u=t.line,c=t.x||[],f=t.y||[],h=t.z||[],d=c.length,v=t.xcalendar,m=t.ycalendar,b=t.zcalendar,p,k,M,T,L,x;for(L=0;L<d;L++)p=a.d2l(c[L],0,v)*i[0],k=o.d2l(f[L],0,m)*i[1],M=s.d2l(h[L],0,b)*i[2],r[L]=[p,k,M];if(Array.isArray(t.text))x=t.text;else if(o1.isTypedArray(t.text))x=Array.from(t.text);else if(t.text!==void 0)for(x=new Array(d),L=0;L<d;L++)x[L]=t.text;function C(ae,_e){var Ee=n[ae];return OIt.tickText(Ee,Ee.d2l(_e),!0).text}var S=t.texttemplate;if(S){var g=e.fullLayout,P=g._d3locale,E=Array.isArray(S),z=E?Math.min(S.length,d):d,q=E?function(ae){return S[ae]}:function(){return S};for(x=new Array(z),L=0;L<z;L++){var V={x:c[L],y:f[L],z:h[L]},G={xLabel:C("xaxis",c[L]),yLabel:C("yaxis",f[L]),zLabel:C("zaxis",h[L])},Z={};BIt(Z,t,L),x[L]=o1.texttemplateString({data:[Z,V,t._meta],fallback:t.texttemplatefallback,labels:G,locale:P,template:q(L)})}}if(T={position:r,mode:t.mode,text:x},"line"in t&&(T.lineColor=oF(u,1,d),T.lineWidth=u.width,T.lineDashes=u.dash),"marker"in t){var j=zIt(t);T.scatterColor=oF(l,1,d),T.scatterSize=CX(l.size,d,HIt,20,j),T.scatterMarker=CX(l.symbol,d,jIt,"\u25CF"),T.scatterLineWidth=l.line.width,T.scatterLineColor=oF(l.line,1,d),T.scatterAngle=0}"textposition"in t&&(T.textOffset=GIt(t.textposition),T.textColor=oF(t.textfont,1,d),T.textSize=CX(t.textfont.size,d,o1.identity,12),T.textFontFamily=t.textfont.family,T.textFontWeight=t.textfont.weight,T.textFontStyle=t.textfont.style,T.textFontVariant=t.textfont.variant,T.textAngle=0);var N=["x","y","z"];for(T.project=[!1,!1,!1],T.projectScale=[1,1,1],T.projectOpacity=[1,1,1],L=0;L<3;++L){var H=t.projection[N[L]];(T.project[L]=H.show)&&(T.projectOpacity[L]=H.opacity,T.projectScale[L]=H.scale)}T.errorBounds=NIt(t,i,n);var ie=VIt([t.error_x,t.error_y,t.error_z]);return T.errorColor=ie.color,T.errorLineWidth=ie.lineWidth,T.errorCapSize=ie.capSize,T.delaunayAxis=t.surfaceaxis,T.delaunayColor=eIe(t.surfacecolor),T}function $Pe(e){if(o1.isArrayOrTypedArray(e)){var t=e[0];return o1.isArrayOrTypedArray(t)&&(e=t),"rgb("+e.slice(0,3).map(function(r){return Math.round(r*255)})+")"}return null}function QPe(e){return o1.isArrayOrTypedArray(e)?e.length===4&&typeof e[0]=="number"?$Pe(e):e.map($Pe):null}LX.update=function(e){var t=this.scene.glplot.gl,r,n,i,a,o=kX.solid;this.data=e;var s=WIt(this.scene,e);"mode"in s&&(this.mode=s.mode),"lineDashes"in s&&s.lineDashes in kX&&(o=kX[s.lineDashes]),this.color=QPe(s.scatterColor)||QPe(s.lineColor),this.dataPoints=s.position,r={gl:this.scene.glplot.gl,position:s.position,color:s.lineColor,lineWidth:s.lineWidth||1,dashes:o[0],dashScale:o[1],opacity:e.opacity,connectGaps:e.connectgaps},this.mode.indexOf("lines")!==-1?this.linePlot?this.linePlot.update(r):(this.linePlot=IIt(r),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 l=e.opacity;if(e.marker&&e.marker.opacity!==void 0&&(l*=e.marker.opacity),n={gl:this.scene.glplot.gl,position:s.position,color:s.scatterColor,size:s.scatterSize,glyph:s.scatterMarker,opacity:l,orthographic:!0,lineWidth:s.scatterLineWidth,lineColor:s.scatterLineColor,project:s.project,projectScale:s.projectScale,projectOpacity:s.projectOpacity},this.mode.indexOf("markers")!==-1?this.scatterPlot?this.scatterPlot.update(n):(this.scatterPlot=YPe(n),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),a={gl:this.scene.glplot.gl,position:s.position,glyph:s.text,color:s.textColor,size:s.textSize,angle:s.textAngle,alignment:s.textOffset,font:s.textFontFamily,fontWeight:s.textFontWeight,fontStyle:s.textFontStyle,fontVariant:s.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,this.mode.indexOf("text")!==-1?this.textMarkers?this.textMarkers.update(a):(this.textMarkers=YPe(a),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),i={gl:this.scene.glplot.gl,position:s.position,color:s.errorColor,error:s.errorBounds,lineWidth:s.errorLineWidth,capSize:s.errorCapSize,opacity:e.opacity},this.errorBars?s.errorBounds?this.errorBars.update(i):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):s.errorBounds&&(this.errorBars=RIt(i),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),s.delaunayAxis>=0){var u=UIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=DIt(u),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)};LX.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 XIt(e,t){var r=new tIe(e,t.uid);return r.update(t),r}rIe.exports=XIt});var FX=ye((wgr,sIe)=>{"use strict";var s1=pf(),ZIt=ec(),DX=Tu(),PX=vf().axisHoverFormat,{hovertemplateAttrs:YIt,texttemplateAttrs:KIt,templatefallbackAttrs:nIe}=Ll(),aIe=Gl(),JIt=MX(),$It=aF(),$g=Ao().extendFlat,QIt=mc().overrideAll,oIe=t_(),e8t=s1.line,$2=s1.marker,t8t=$2.line,r8t=$g({width:e8t.width,dash:{valType:"enumerated",values:oIe(JIt),dflt:"solid"}},DX("line"));function IX(e){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 RX=sIe.exports=QIt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$g({},s1.text,{}),texttemplate:KIt(),texttemplatefallback:nIe({editType:"calc"}),hovertext:$g({},s1.hovertext,{}),hovertemplate:YIt(),hovertemplatefallback:nIe(),xhoverformat:PX("x"),yhoverformat:PX("y"),zhoverformat:PX("z"),mode:$g({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:IX("x"),y:IX("y"),z:IX("z")},connectgaps:s1.connectgaps,line:r8t,marker:$g({symbol:{valType:"enumerated",values:oIe($It),dflt:"circle",arrayOk:!0},size:$g({},$2.size,{dflt:8}),sizeref:$2.sizeref,sizemin:$2.sizemin,sizemode:$2.sizemode,opacity:$g({},$2.opacity,{arrayOk:!1}),colorbar:$2.colorbar,line:$g({width:$g({},t8t.width,{arrayOk:!1})},DX("marker.line"))},DX("marker")),textposition:$g({},s1.textposition,{dflt:"top center"}),textfont:ZIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:aIe.opacity,hoverinfo:$g({},aIe.hoverinfo)},"calc","nested");RX.x.editType=RX.y.editType=RX.z.editType="calc+clearAxisTypes"});var cIe=ye((Tgr,uIe)=>{"use strict";var lIe=Oa(),i8t=Pr(),zX=Ru(),n8t=$p(),a8t=D0(),o8t=F0(),s8t=FX();uIe.exports=function(t,r,n,i){function a(d,v){return i8t.coerce(t,r,s8t,d,v)}var o=l8t(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),zX.hasMarkers(r)&&n8t(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),zX.hasLines(r)&&(a("connectgaps"),a8t(t,r,n,i,a)),zX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),o8t(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=lIe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function l8t(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=lIe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var hIe=ye((Agr,fIe)=>{"use strict";var u8t=Dm(),c8t=z0();fIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return u8t(n,r),c8t(t,r),n}});var vIe=ye((Sgr,dIe)=>{dIe.exports=f8t;function f8t(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o<a.length;o++)if(i=r.getContext(a[o],n),i)return i}catch(s){i=null}return i||null}});var gIe=ye((Mgr,pIe)=>{var h8t=vIe();pIe.exports=function(t){return h8t("webgl",t)}});var qX=ye((Egr,yIe)=>{"use strict";var mIe=ka(),d8t=function(){};yIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=d8t);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=mIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=mIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var bIe=ye((kgr,xIe)=>{"use strict";var Q2=n1(),v8t=Pr(),p8t=["xaxis","yaxis","zaxis"];function _Ie(){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 g8t=_Ie.prototype;g8t.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[p8t[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?v8t.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=Q2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=Q2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=Q2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=Q2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=Q2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=Q2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=Q2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function m8t(e,t){var r=new _Ie;return r.merge(e,t),r}xIe.exports=m8t});var AIe=ye((Cgr,TIe)=>{"use strict";var y8t=n1(),_8t=["xaxis","yaxis","zaxis"];function wIe(){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 x8t=wIe.prototype;x8t.merge=function(e){for(var t=0;t<3;++t){var r=e[_8t[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=y8t(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function b8t(e){var t=new wIe;return t.merge(e),t}TIe.exports=b8t});var EIe=ye((Lgr,MIe)=>{"use strict";MIe.exports=M8t;var SIe=ho(),w8t=Pr(),T8t=["xaxis","yaxis","zaxis"],A8t=[0,0,0];function S8t(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a<n.length;++a)i[a]=n[a].x;t[r]=i}return t}function M8t(e){for(var t=e.axesOptions,r=e.glplot.axesPixels,n=e.fullSceneLayout,i=[[],[],[]],a=0;a<3;++a){var o=n[T8t[a]];if(o._length=(r[a].hi-r[a].lo)*r[a].pixelsPerDataUnit/e.dataScale[a],Math.abs(o._length)===1/0||isNaN(o._length))i[a]=[];else{o._input_range=o.range.slice(),o.range[0]=r[a].lo/e.dataScale[a],o.range[1]=r[a].hi/e.dataScale[a],o._m=1/(e.dataScale[a]*r[a].pixelsPerDataUnit),o.range[0]===o.range[1]&&(o.range[0]-=1,o.range[1]+=1);var s=o.tickmode;if(o.tickmode==="auto"){o.tickmode="linear";var l=o.nticks||w8t.constrain(o._length/40,4,9);SIe.autoTicks(o,Math.abs(o.range[1]-o.range[0])/l)}for(var u=SIe.calcTicks(o,{msUTC:!0}),c=0;c<u.length;++c)u[c].x=u[c].x*e.dataScale[a],o.type==="date"&&(u[c].text=u[c].text.replace(/\<br\>/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){A8t[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=S8t(i)}});var DIe=ye((Pgr,RIe)=>{"use strict";var LIe=qd().gl_plot3d,E8t=LIe.createCamera,kIe=LIe.createScene,k8t=gIe(),C8t=VL(),uF=Oa(),cp=Pr(),lF=cp.preserveDrawingBuffer(),cF=ho(),Qg=ef(),L8t=n1(),P8t=qX(),I8t=YU(),R8t=bIe(),D8t=AIe(),F8t=EIe(),z8t=Mg().applyAutorangeOptions,nk,sF,PIe=!1;function IIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.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",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=R8t(t,t[this.id]),this.spikeOptions=D8t(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=uF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=uF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Sv=IIe.prototype;Sv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:lF,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!sF&&(nk=document.createElement("canvas"),sF=k8t({canvas:nk,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!sF))throw new Error("error creating static canvas/context for image server");t.gl=sF,t.canvas=nk}return t};var CIe=!0;Sv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=kIe(t)}catch(n){if(e.staticMode||!CIe||lF)r=!1;else{cp.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{lF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=kIe(t)}catch(i){lF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return CIe=!1,r};Sv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=E8t(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Sv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return P8t(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){PIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},C8t?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Sv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),F8t(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h<u.length;++h)r=e.traces[u[h]],r.data.hoverinfo!=="skip"&&r.handlePick(f)&&(c=r),r.setContourLevels&&r.setContourLevels();function d(P,E,z){var q=e.fullSceneLayout[P+"axis"];return q.type!=="log"&&(E=q.d2l(E)),cF.hoverLabelText(q,E,z)}if(c!==null){var v=I8t(e.glplot.cameraParams,f.dataCoordinate);r=c.data;var m=t._fullData[r.index],b=f.index,p={xLabel:d("x",f.traceCoordinate[0],r.xhoverformat),yLabel:d("y",f.traceCoordinate[1],r.yhoverformat),zLabel:d("z",f.traceCoordinate[2],r.zhoverformat)},k=Qg.castHoverinfo(m,e.fullLayout,b),M=(k||"").split("+"),T=k&&k==="all";!m.hovertemplate&&!T&&(M.indexOf("x")===-1&&(p.xLabel=void 0),M.indexOf("y")===-1&&(p.yLabel=void 0),M.indexOf("z")===-1&&(p.zLabel=void 0),M.indexOf("text")===-1&&(f.textLabel=void 0),M.indexOf("name")===-1&&(c.name=void 0));var L,x=[];r.type==="cone"||r.type==="streamtube"?(p.uLabel=d("x",f.traceCoordinate[3],r.uhoverformat),(T||M.indexOf("u")!==-1)&&x.push("u: "+p.uLabel),p.vLabel=d("y",f.traceCoordinate[4],r.vhoverformat),(T||M.indexOf("v")!==-1)&&x.push("v: "+p.vLabel),p.wLabel=d("z",f.traceCoordinate[5],r.whoverformat),(T||M.indexOf("w")!==-1)&&x.push("w: "+p.wLabel),p.normLabel=f.traceCoordinate[6].toPrecision(3),(T||M.indexOf("norm")!==-1)&&x.push("norm: "+p.normLabel),r.type==="streamtube"&&(p.divergenceLabel=f.traceCoordinate[7].toPrecision(3),(T||M.indexOf("divergence")!==-1)&&x.push("divergence: "+p.divergenceLabel)),f.textLabel&&x.push(f.textLabel),L=x.join("<br>")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=cF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+p.valueLabel),f.textLabel&&x.push(f.textLabel),L=x.join("<br>")):L=f.textLabel;var C={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:m._input,fullData:m,curveNumber:m.index,pointNumber:b};Qg.appendArrayPointValue(C,m,b),r._module.eventData&&(C=m._module.eventData(C,f,m,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Qg.loneHover({trace:m,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Qg.castHoverOption(m,b,"bgcolor")||c.color,borderColor:Qg.castHoverOption(m,b,"bordercolor"),fontFamily:Qg.castHoverOption(m,b,"font.family"),fontSize:Qg.castHoverOption(m,b,"font.size"),fontColor:Qg.castHoverOption(m,b,"font.color"),nameLength:Qg.castHoverOption(m,b,"namelength"),textAlign:Qg.castHoverOption(m,b,"align"),hovertemplate:cp.castOption(m,b,"hovertemplate"),hovertemplateLabels:cp.extendFlat({},C,p),eventData:[C]},{container:n,gd:t,inOut_bbox:g}),C.bbox=g[0]}f.distance<5&&(f.buttons||PIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Qg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Sv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){cp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var ak=["xaxis","yaxis","zaxis"];function q8t(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=ak[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!cp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(cp.isArrayOrTypedArray(l[h]))for(var d=0;d<l[h].length;++d)f=s.d2l(l[h][d],0,u),!isNaN(f)&&isFinite(f)&&(r[0][i]=Math.min(r[0][i],f),r[1][i]=Math.max(r[1][i],f));else f=s.d2l(l[h],0,u),!isNaN(f)&&isFinite(f)&&(r[0][i]=Math.min(r[0][i],f),r[1][i]=Math.max(r[1][i],f))}}function O8t(e,t){for(var r=e.fullSceneLayout,n=r.annotations||[],i=0;i<3;i++)for(var a=ak[i],o=a.charAt(0),s=r[a],l=0;l<n.length;l++){var u=n[l];if(u.visible){var c=s.r2l(u[o]);!isNaN(c)&&isFinite(c)&&(t[0][i]=Math.min(t[0][i],c),t[1][i]=Math.max(t[1][i],c))}}}Sv.plot=function(e,t,r){var n=this;if(n.plotArgs=[e,t,r],!n.glplot.contextLost){var i,a,o,s,l,u,c=t[n.id],f=r[n.id];n.fullLayout=t,n.fullSceneLayout=c,n.axesOptions.merge(t,c),n.spikeOptions.merge(c),n.setViewport(c),n.updateFx(c.dragmode,c.hovermode),n.camera.enableWheel=n.graphDiv._context._scrollZoom.gl3d,n.glplot.setClearColor(L8t(c.bgcolor)),n.setConvert(l),e?Array.isArray(e)||(e=[e]):e=[];var h=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(o=0;o<e.length;++o)i=e[o],!(i.visible!==!0||i._length===0)&&q8t(this,i,h);O8t(this,h);var d=[1,1,1];for(s=0;s<3;++s)h[1][s]===h[0][s]?d[s]=1:d[s]=1/(h[1][s]-h[0][s]);for(n.dataScale=d,n.convertAnnotations(this),o=0;o<e.length;++o)i=e[o],!(i.visible!==!0||i._length===0)&&(a=n.traces[i.uid],a?a.data.type===i.type?a.update(i):(a.dispose(),a=i._module.plot(this,i),n.traces[i.uid]=a):(a=i._module.plot(this,i),n.traces[i.uid]=a),a.name=i.name);var v=Object.keys(n.traces);e:for(o=0;o<v.length;++o){for(s=0;s<e.length;++s)if(e[s].uid===v[o]&&e[s].visible===!0&&e[s]._length!==0)continue e;a=n.traces[v[o]],a.dispose(),delete n.traces[v[o]]}n.glplot.objects.sort(function(ae,_e){return ae._trace.data.index-_e._trace.data.index});var m=[[0,0,0],[0,0,0]],b=[],p={};for(o=0;o<3;++o){l=c[ak[o]],u=l.type,u in p?(p[u].acc*=d[o],p[u].count+=1):p[u]={acc:d[o],count:1};var k;if(l.autorange){m[0][o]=1/0,m[1][o]=-1/0;var M=n.glplot.objects,T=n.fullSceneLayout.annotations||[],L=l._name.charAt(0);for(s=0;s<M.length;s++){var x=M[s],C=x.bounds,S=x._trace.data._pad||0;x.constructor.name==="ErrorBars"&&l._lowerLogErrorBound?m[0][o]=Math.min(m[0][o],l._lowerLogErrorBound):m[0][o]=Math.min(m[0][o],C[0][o]/d[o]-S),m[1][o]=Math.max(m[1][o],C[1][o]/d[o]+S)}for(s=0;s<T.length;s++){var g=T[s];if(g.visible){var P=l.r2l(g[L]);m[0][o]=Math.min(m[0][o],P),m[1][o]=Math.max(m[1][o],P)}}if("rangemode"in l&&l.rangemode==="tozero"&&(m[0][o]=Math.min(m[0][o],0),m[1][o]=Math.max(m[1][o],0)),m[0][o]>m[1][o])m[0][o]=-1,m[1][o]=1;else{var E=m[1][o]-m[0][o];m[0][o]-=E/32,m[1][o]+=E/32}if(k=[m[0][o],m[1][o]],k=z8t(k,l),m[0][o]=k[0],m[1][o]=k[1],l.isReversed()){var z=m[0][o];m[0][o]=m[1][o],m[1][o]=z}}else k=l.range,m[0][o]=l.r2l(k[0]),m[1][o]=l.r2l(k[1]);m[0][o]===m[1][o]&&(m[0][o]-=1,m[1][o]+=1),b[o]=m[1][o]-m[0][o],l.range=[m[0][o],m[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var q,V=c.aspectmode;if(V==="cube")q=[1,1,1];else if(V==="manual"){var G=c.aspectratio;q=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[ak[o]],u=l.type;var j=p[u];Z[o]=Math.pow(j.acc,1/j.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?q=Z:q=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=q[0],c.aspectratio.y=f.aspectratio.y=q[1],c.aspectratio.z=f.aspectratio.z=q[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,H=t._size||null;if(N&&H){var ie=n.container.style;ie.position="absolute",ie.left=H.l+N.x[0]*H.w+"px",ie.top=H.t+(1-N.y[1])*H.h+"px",ie.width=H.w*(N.x[1]-N.x[0])+"px",ie.height=H.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Sv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function B8t(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function N8t(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Sv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),N8t(e.camera)};Sv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,B8t(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Sv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=cp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Sv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=cp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Sv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=cp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=cp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),uF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=cp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=cp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};Sv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;uF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,cp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function U8t(e,t,r){for(var n=0,i=r-1;n<i;++n,--i)for(var a=0;a<t;++a)for(var o=0;o<4;++o){var s=4*(t*n+a)+o,l=4*(t*i+a)+o,u=e[s];e[s]=e[l],e[l]=u}}function V8t(e,t,r){for(var n=0;n<r;++n)for(var i=0;i<t;++i){var a=4*(t*n+i),o=e[a+3];if(o>0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}Sv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(nk),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),U8t(a,n,i),V8t(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(nk),u};Sv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[ak[t]];cF.setConvert(r,e.fullLayout),r.setScale=cp.noop}};Sv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},cF.setConvert(e._mockAxis,r)};RIe.exports=IIe});var zIe=ye((Igr,FIe)=>{"use strict";FIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var BX=ye((Rgr,qIe)=>{"use strict";var G8t=ka(),xs=Rd(),OX=Ao().extendFlat,H8t=mc().overrideAll;qIe.exports=H8t({visible:xs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:G8t.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:xs.color,categoryorder:xs.categoryorder,categoryarray:xs.categoryarray,title:{text:xs.title.text,font:xs.title.font},type:OX({},xs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:xs.autotypenumbers,autorange:xs.autorange,autorangeoptions:{minallowed:xs.autorangeoptions.minallowed,maxallowed:xs.autorangeoptions.maxallowed,clipmin:xs.autorangeoptions.clipmin,clipmax:xs.autorangeoptions.clipmax,include:xs.autorangeoptions.include,editType:"plot"},rangemode:xs.rangemode,minallowed:xs.minallowed,maxallowed:xs.maxallowed,range:OX({},xs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:xs.minor.tickmode,nticks:xs.nticks,tick0:xs.tick0,dtick:xs.dtick,tickvals:xs.tickvals,ticktext:xs.ticktext,ticks:xs.ticks,mirror:xs.mirror,ticklen:xs.ticklen,tickwidth:xs.tickwidth,tickcolor:xs.tickcolor,showticklabels:xs.showticklabels,labelalias:xs.labelalias,tickfont:xs.tickfont,tickangle:xs.tickangle,tickprefix:xs.tickprefix,showtickprefix:xs.showtickprefix,ticksuffix:xs.ticksuffix,showticksuffix:xs.showticksuffix,showexponent:xs.showexponent,exponentformat:xs.exponentformat,minexponent:xs.minexponent,separatethousands:xs.separatethousands,tickformat:xs.tickformat,tickformatstops:xs.tickformatstops,hoverformat:xs.hoverformat,showline:xs.showline,linecolor:xs.linecolor,linewidth:xs.linewidth,showgrid:xs.showgrid,gridcolor:OX({},xs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:xs.gridwidth,zeroline:xs.zeroline,zerolinecolor:xs.zerolinecolor,zerolinewidth:xs.zerolinewidth},"plot","from-root")});var GX=ye((Dgr,OIe)=>{"use strict";var NX=BX(),j8t=Cc().attributes,UX=Ao().extendFlat,W8t=Pr().counterRegex;function VX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}OIe.exports={_arrayAttrRegexps:[W8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:UX(VX(0,0,1),{}),center:UX(VX(0,0,0),{}),eye:UX(VX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:j8t({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:NX,yaxis:NX,zaxis:NX,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"}});var VIe=ye((Fgr,UIe)=>{"use strict";var X8t=fd().mix,BIe=Pr(),Z8t=vl(),Y8t=BX(),K8t=RU(),J8t=h4(),NIe=["xaxis","yaxis","zaxis"],$8t=100*136/187;UIe.exports=function(t,r,n){var i,a;function o(u,c){return BIe.coerce(i,a,Y8t,u,c)}for(var s=0;s<NIe.length;s++){var l=NIe[s];i=t[l]||{},a=Z8t.newContainer(r,l),a._id=l[0]+n.scene,a._name=l,K8t(i,a,o,n),J8t(i,a,o,{font:n.font,letter:l[0],data:n.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:n.bgColor,calendar:n.calendar},n.fullLayout),o("gridcolor",X8t(a.color,n.bgColor,$8t).toRgbString()),o("title.text",l[0]),a.setScale=BIe.noop,o("showspikes")&&(o("spikesides"),o("spikethickness"),o("spikecolor",a.color)),o("showaxeslabels"),o("showbackground")&&o("backgroundcolor")}}});var WIe=ye((zgr,jIe)=>{"use strict";var Q8t=Pr(),eRt=ka(),tRt=Oa(),rRt=q_(),iRt=VIe(),GIe=GX(),nRt=Id().getSubplotData,HIe="gl3d";jIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=Q8t.validate(t[o],GIe[o]);if(s)return t[o]}}rRt(t,r,n,{type:HIe,attributes:GIe,handleDefaults:aRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function aRt(e,t,r,n){for(var i=r("bgcolor"),a=eRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s<o.length;s++)r("camera."+o[s]+".x"),r("camera."+o[s]+".y"),r("camera."+o[s]+".z");r("camera.projection.type");var l=!!r("aspectratio.x")&&!!r("aspectratio.y")&&!!r("aspectratio.z"),u=l?"manual":"auto",c=r("aspectmode",u);l||(e.aspectratio=t.aspectratio={x:1,y:1,z:1},c==="manual"&&(t.aspectmode="auto"),e.aspectmode=t.aspectmode);var f=nRt(n.fullData,HIe,n.id);iRt(e,t,{font:n.font,scene:n.id,data:f,bgColor:a,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),tRt.getComponentMethod("annotations3d","handleDefaults")(e,t,n);var h=n.getDfltFromLayout("dragmode");if(h!==!1&&!h)if(h="orbit",e.camera&&e.camera.up){var d=e.camera.up.x,v=e.camera.up.y,m=e.camera.up.z;m!==0&&(!d||!v||!m||m/Math.sqrt(d*d+v*v+m*m)>.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var lx=ye(fp=>{"use strict";var oRt=mc().overrideAll,sRt=W1(),lRt=DIe(),uRt=Id().getSubplotData,cRt=Pr(),fRt=Wp(),YA="gl3d",HX="scene";fp.name=YA;fp.attr=HX;fp.idRoot=HX;fp.idRegex=fp.attrRegex=cRt.counterRegex("scene");fp.attributes=zIe();fp.layoutAttributes=GX();fp.baseLayoutAttrOverrides=oRt({hoverlabel:sRt.hoverlabel},"plot","nested");fp.supplyLayoutDefaults=WIe();fp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[YA],a=0;a<i.length;a++){var o=i[a],s=uRt(n,YA,o),l=r[o],u=l.camera,c=l._scene;c||(c=new lRt({id:o,graphDiv:t,container:t.querySelector(".gl-container"),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},r),l._scene=c),c.viewInitial||(c.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),c.plot(s,r,t.layout)}};fp.clean=function(e,t,r,n){for(var i=n._subplots[YA]||[],a=0;a<i.length;a++){var o=i[a];!t[o]&&n[o]._scene&&(n[o]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(".annotation-"+o).remove())}};fp.toSVG=function(e){for(var t=e._fullLayout,r=t._subplots[YA],n=t._size,i=0;i<r.length;i++){var a=t[r[i]],o=a.domain,s=a._scene,l=s.toImage("png"),u=t._glimages.append("svg:image");u.attr({xmlns:fRt.svg,"xlink:href":l,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:"none"}),s.destroy()}};fp.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var r=t.slice(5);return r==="1"&&(r=""),HX+r}};fp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[YA],n=0;n<r.length;n++){var i=t[r[n]]._scene;i.updateFx(t.dragmode,t.hovermode)}}});var ZIe=ye((Ogr,XIe)=>{"use strict";XIe.exports={plot:iIe(),attributes:FX(),markerSymbols:aF(),supplyDefaults:cIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:hIe(),moduleType:"trace",name:"scatter3d",basePlotModule:lx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var KIe=ye((Bgr,YIe)=>{"use strict";YIe.exports=ZIe()});var ok=ye((Ngr,QIe)=>{"use strict";var JIe=ka(),hRt=Tu(),jX=vf().axisHoverFormat,{hovertemplateAttrs:dRt,templatefallbackAttrs:vRt}=Ll(),$Ie=Gl(),WX=Ao().extendFlat,pRt=mc().overrideAll;function XX(e){return{valType:"boolean",dflt:!1}}function ZX(e){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:XX("x"),y:XX("y"),z:XX("z")},color:{valType:"color",dflt:JIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:JIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var YX=QIe.exports=pRt(WX({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:dRt(),hovertemplatefallback:vRt(),xhoverformat:jX("x"),yhoverformat:jX("y"),zhoverformat:jX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},hRt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:ZX("x"),y:ZX("y"),z:ZX("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:WX({},$Ie.hoverinfo),showlegend:WX({},$Ie.showlegend,{dflt:!1})}),"calc","nested");YX.x.editType=YX.y.editType=YX.z.editType="calc+clearAxisTypes"});var JX=ye((Ugr,r8e)=>{"use strict";var gRt=Oa(),e8e=Pr(),mRt=td(),yRt=ok(),KX=.1;function _Rt(e,t){for(var r=[],n=32,i=0;i<n;i++){var a=i/(n-1),o=t+(1-t)*(1-Math.pow(Math.sin(e*a*Math.PI),2));r.push([a,Math.max(0,Math.min(1,o))])}return r}function xRt(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r<e.length;r++){var n=e[r];if(n.length!==2||+n[0]<t)return!1;t=+n[0]}return!0}function bRt(e,t,r,n){var i,a;function o(b,p){return e8e.coerce(e,t,yRt,b,p)}var s=o("x"),l=o("y"),u=o("z");if(!u||!u.length||s&&s.length<1||l&&l.length<1){t.visible=!1;return}t._xlength=Array.isArray(s)&&e8e.isArrayOrTypedArray(s[0])?u.length:u[0].length,t._ylength=u.length;var c=gRt.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(b){o(b)});var f=o("surfacecolor"),h=["x","y","z"];for(i=0;i<3;++i){var d="contours."+h[i],v=o(d+".show"),m=o(d+".highlight");if(v||m)for(a=0;a<3;++a)o(d+".project."+h[a]);v&&(o(d+".color"),o(d+".width"),o(d+".usecolormap")),m&&(o(d+".highlightcolor"),o(d+".highlightwidth")),o(d+".start"),o(d+".end"),o(d+".size")}mRt(e,t,n,o,{prefix:"",cLetter:"c"}),t8e(e,t,n,o),t._length=null}function t8e(e,t,r,n){var i=n("opacityscale");i==="max"?t.opacityscale=[[0,KX],[1,1]]:i==="min"?t.opacityscale=[[0,1],[1,KX]]:i==="extremes"?t.opacityscale=_Rt(1,KX):xRt(i)||(t.opacityscale=void 0)}r8e.exports={supplyDefaults:bRt,opacityscaleDefaults:t8e}});var a8e=ye((Vgr,n8e)=>{"use strict";var i8e=gv();n8e.exports=function(t,r){r.surfacecolor?i8e(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):i8e(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var f8e=ye((Ggr,c8e)=>{"use strict";var wRt=qd().gl_surface3d,KA=qd().ndarray,TRt=qd().ndarray_linear_interpolate.d2,ARt=f8(),SRt=h8(),sk=Pr().isArrayOrTypedArray,MRt=a1().parseColorScale,o8e=n1(),ERt=tc().extractOpts;function l8e(e,t,r){this.scene=e,this.uid=r,this.surface=t,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 em=l8e.prototype;em.getXat=function(e,t,r,n){var i=sk(this.data.x)?sk(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};em.getYat=function(e,t,r,n){var i=sk(this.data.y)?sk(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};em.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};em.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return sk(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function kRt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var JA=[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 CRt(e,t){if(e<t)return 0;for(var r=0;Math.floor(e%t)===0;)e/=t,r++;return r}function $X(e){for(var t=[],r=0;r<JA.length;r++){var n=JA[r];t.push(CRt(e,n))}return t}function LRt(e){for(var t=$X(e),r=e,n=0;n<JA.length;n++)if(t[n]>0){r=JA[n];break}return r}function PRt(e,t){if(!(e<1||t<1)){for(var r=$X(e),n=$X(t),i=1,a=0;a<JA.length;a++)i*=Math.pow(JA[a],Math.max(r[a],n[a]));return i}}function IRt(e){if(e.length!==0){for(var t=1,r=0;r<e.length;r++)t=PRt(t,e[r]);return t}}em.calcXnums=function(e){var t,r=[];for(t=1;t<e;t++){var n=this.getXat(t-1,0),i=this.getXat(t,0);i!==n&&n!==void 0&&n!==null&&i!==void 0&&i!==null?r[t-1]=Math.abs(i-n):r[t-1]=0}var a=0;for(t=1;t<e;t++)a+=r[t-1];for(t=1;t<e;t++)r[t-1]===0?r[t-1]=1:r[t-1]=Math.round(a/r[t-1]);return r};em.calcYnums=function(e){var t,r=[];for(t=1;t<e;t++){var n=this.getYat(0,t-1),i=this.getYat(0,t);i!==n&&n!==void 0&&n!==null&&i!==void 0&&i!==null?r[t-1]=Math.abs(i-n):r[t-1]=0}var a=0;for(t=1;t<e;t++)a+=r[t-1];for(t=1;t<e;t++)r[t-1]===0?r[t-1]=1:r[t-1]=Math.round(a/r[t-1]);return r};var u8e=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],s8e=u8e[9],fF=u8e[13];em.estimateScale=function(e,t){for(var r=t===0?this.calcXnums(e):this.calcYnums(e),n=1+IRt(r);n<s8e;)n*=2;for(;n>fF;)n--,n/=LRt(n),n++,n<s8e&&(n=fF);var i=Math.round(n/e);return i>1?i:1};function RRt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function DRt(e,t,r){return FRt(e,t,RRt,r),e}function FRt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s<a;s++)for(var l=0;l<o;l++)r(i,[s,l],n),e.set(s,l,TRt(t,i[0],i[1]));return e}em.refineCoords=function(e){for(var t=this.dataScaleX,r=this.dataScaleY,n=e[0].shape[0],i=e[0].shape[1],a=Math.floor(e[0].shape[0]*t+1)|0,o=Math.floor(e[0].shape[1]*r+1)|0,s=1+n+1,l=1+i+1,u=KA(new Float32Array(s*l),[s,l]),c=[1/t,0,0,0,1/r,0,0,0,1],f=0;f<e.length;++f){this.surface.padField(u,e[f]);var h=KA(new Float32Array(a*o),[a,o]);DRt(h,u,c),e[f]=h}};function zRt(e,t){for(var r=!1,n=0;n<e.length;n++)if(t===e[n]){r=!0;break}r===!1&&e.push(t)}em.setContourLevels=function(){var e=[[],[],[]],t=[!1,!1,!1],r=!1,n,i,a;for(n=0;n<3;++n)if(this.showContour[n]&&(r=!0,this.contourSize[n]>0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];i<this.contourEnd[n];i+=this.contourSize[n])a=i*this.scene.dataScale[n],zRt(e[n],a);if(r){var o=[[],[],[]];for(n=0;n<3;++n)this.showContour[n]&&(o[n]=t[n]?e[n]:this.scene.contourLevels[n]);this.surface.update({levels:o})}};em.update=function(e){var t=this.scene,r=t.fullSceneLayout,n=this.surface,i=MRt(e),a=t.dataScale,o=e.z[0].length,s=e._ylength,l=t.contourLevels;this.data=e;var u,c,f,h,d=[];for(u=0;u<3;u++)for(d[u]=[],c=0;c<o;c++)d[u][c]=[];for(c=0;c<o;c++)for(f=0;f<s;f++)d[0][c][f]=this.getXat(c,f,e.xcalendar,r.xaxis),d[1][c][f]=this.getYat(c,f,e.ycalendar,r.yaxis),d[2][c][f]=this.getZat(c,f,e.zcalendar,r.zaxis);if(e.connectgaps)for(e._emptypoints=SRt(d[2]),ARt(d[2],e._emptypoints),e._interpolatedZ=[],c=0;c<o;c++)for(e._interpolatedZ[c]=[],f=0;f<s;f++)e._interpolatedZ[c][f]=d[2][c][f];for(u=0;u<3;u++)for(c=0;c<o;c++)for(f=0;f<s;f++)h=d[u][c][f],h==null?d[u][c][f]=NaN:h=d[u][c][f]*=a[u];for(u=0;u<3;u++)for(c=0;c<o;c++)for(f=0;f<s;f++)h=d[u][c][f],h!=null&&(this.minValues[u]>h&&(this.minValues[u]=h),this.maxValues[u]<h&&(this.maxValues[u]=h));for(u=0;u<3;u++)this.objectOffset[u]=.5*(this.minValues[u]+this.maxValues[u]);for(u=0;u<3;u++)for(c=0;c<o;c++)for(f=0;f<s;f++)h=d[u][c][f],h!=null&&(d[u][c][f]-=this.objectOffset[u]);var v=[KA(new Float32Array(o*s),[o,s]),KA(new Float32Array(o*s),[o,s]),KA(new Float32Array(o*s),[o,s])];for(u=0;u<3;u++)for(c=0;c<o;c++)for(f=0;f<s;f++)v[u].set(c,f,d[u][c][f]);d=[];var m={colormap:i,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!e.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:e.opacityscale,opacity:e.opacity},b=ERt(e);if(m.intensityBounds=[b.min,b.max],e.surfacecolor){var p=KA(new Float32Array(o*s),[o,s]);for(c=0;c<o;c++)for(f=0;f<s;f++)p.set(c,f,e.surfacecolor[f][c]);v.push(p)}else m.intensityBounds[0]*=a[2],m.intensityBounds[1]*=a[2];(fF<v[0].shape[0]||fF<v[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(v[0].shape[0],0),this.dataScaleY=this.estimateScale(v[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(v)),e.surfacecolor&&(m.intensity=v.pop());var k=[!0,!0,!0],M=["x","y","z"];for(u=0;u<3;++u){var T=e.contours[M[u]];k[u]=T.highlight,m.showContour[u]=T.show||T.highlight,m.showContour[u]&&(m.contourProject[u]=[T.project.x,T.project.y,T.project.z],T.show?(this.showContour[u]=!0,m.levels[u]=l[u],n.highlightColor[u]=m.contourColor[u]=o8e(T.color),T.usecolormap?n.highlightTint[u]=m.contourTint[u]=0:n.highlightTint[u]=m.contourTint[u]=1,m.contourWidth[u]=T.width,this.contourStart[u]=T.start,this.contourEnd[u]=T.end,this.contourSize[u]=T.size):(this.showContour[u]=!1,this.contourStart[u]=null,this.contourEnd[u]=null,this.contourSize[u]=0),T.highlight&&(m.dynamicColor[u]=o8e(T.highlightcolor),m.dynamicWidth[u]=T.highlightwidth))}kRt(i)&&(m.vertexColor=!0),m.objectOffset=this.objectOffset,m.coords=v,n.update(m),n.visible=e.visible,n.enableDynamic=k,n.enableHighlight=k,n.snapToData=!0,"lighting"in e&&(n.ambientLight=e.lighting.ambient,n.diffuseLight=e.lighting.diffuse,n.specularLight=e.lighting.specular,n.roughness=e.lighting.roughness,n.fresnel=e.lighting.fresnel),"lightposition"in e&&(n.lightPosition=[e.lightposition.x,e.lightposition.y,e.lightposition.z])};em.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function qRt(e,t){var r=e.glplot.gl,n=wRt({gl:r}),i=new l8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}c8e.exports=qRt});var d8e=ye((Hgr,h8e)=>{"use strict";h8e.exports={attributes:ok(),supplyDefaults:JX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:a8e(),plot:f8e(),moduleType:"trace",name:"surface",basePlotModule:lx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var p8e=ye((jgr,v8e)=>{"use strict";v8e.exports=d8e()});var $A=ye((Wgr,m8e)=>{"use strict";var ORt=Tu(),QX=vf().axisHoverFormat,{hovertemplateAttrs:BRt,templatefallbackAttrs:NRt}=Ll(),ux=ok(),g8e=Gl(),cx=Ao().extendFlat;m8e.exports=cx({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:BRt({editType:"calc"}),hovertemplatefallback:NRt({editType:"calc"}),xhoverformat:QX("x"),yhoverformat:QX("y"),zhoverformat:QX("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"}},ORt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ux.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:cx({},ux.contours.x.show,{}),color:ux.contours.x.color,width:ux.contours.x.width,editType:"calc"},lightposition:{x:cx({},ux.lightposition.x,{dflt:1e5}),y:cx({},ux.lightposition.y,{dflt:1e5}),z:cx({},ux.lightposition.z,{dflt:0}),editType:"calc"},lighting:cx({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"},ux.lighting),hoverinfo:cx({},g8e.hoverinfo,{editType:"calc"}),showlegend:cx({},g8e.showlegend,{dflt:!1})})});var dF=ye((Xgr,_8e)=>{"use strict";var URt=Tu(),hF=vf().axisHoverFormat,{hovertemplateAttrs:VRt,templatefallbackAttrs:GRt}=Ll(),lk=$A(),y8e=Gl(),eZ=Ao().extendFlat,HRt=mc().overrideAll;function tZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function rZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var QA=_8e.exports=HRt(eZ({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:tZ("x"),y:tZ("y"),z:tZ("z")},caps:{x:rZ("x"),y:rZ("y"),z:rZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:VRt(),hovertemplatefallback:GRt(),xhoverformat:hF("x"),yhoverformat:hF("y"),zhoverformat:hF("z"),valuehoverformat:hF("value",1),showlegend:eZ({},y8e.showlegend,{dflt:!1})},URt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lk.opacity,lightposition:lk.lightposition,lighting:lk.lighting,flatshading:lk.flatshading,contour:lk.contour,hoverinfo:eZ({},y8e.hoverinfo)}),"calc","nested");QA.flatshading.dflt=!0;QA.lighting.facenormalsepsilon.dflt=0;QA.x.editType=QA.y.editType=QA.z.editType=QA.value.editType="calc+clearAxisTypes"});var iZ=ye((Zgr,b8e)=>{"use strict";var jRt=Pr(),WRt=Oa(),XRt=dF(),ZRt=td();function YRt(e,t,r,n){function i(a,o){return jRt.coerce(e,t,XRt,a,o)}x8e(e,t,r,n,i)}function x8e(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=WRt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(m){i(m+"hoverformat");var b="caps."+m,p=i(b+".show");p&&i(b+".fill");var k="slices."+m,M=i(k+".show");M&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("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){i(m)}),ZRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}b8e.exports={supplyDefaults:YRt,supplyIsoDefaults:x8e}});var vF=ye((Ygr,T8e)=>{"use strict";var aZ=Pr(),KRt=gv();function JRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=$m(t.u,t._len),t._v=$m(t.v,t._len),t._w=$m(t.w,t._len),t._x=$m(t.x,t._len),t._y=$m(t.y,t._len),t._z=$m(t.z,t._len);var r=w8e(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=$m(t.starts.x||[]),a=$m(t.starts.y||[]),o=$m(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u<t._len;u++){var c=t._u[u],f=t._v[u],h=t._w[u],d=Math.sqrt(c*c+f*f+h*h);s=Math.max(s,d),l=Math.min(l,d)}for(KRt(e,t,{vals:[l,s],containerStr:"",cLetter:"c"}),u=0;u<n;u++){var v=i[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var m=a[u];r.yMax=Math.max(r.yMax,m),r.yMin=Math.min(r.yMin,m);var b=o[u];r.zMax=Math.max(r.zMax,b),r.zMin=Math.min(r.zMin,b)}t._slen=n,t._normMax=s,t._xbnds=[r.xMin,r.xMax],t._ybnds=[r.yMin,r.yMax],t._zbnds=[r.zMin,r.zMax]}function w8e(e){var t=e._x,r=e._y,n=e._z,i=e._len,a,o,s,l=-1/0,u=1/0,c=-1/0,f=1/0,h=-1/0,d=1/0,v="",m,b,p,k,M,T,L,x,C;for(i&&(k=t[0],T=r[0],x=n[0]),i>1&&(M=t[i-1],L=r[i-1],C=n[i-1]),a=0;a<i;a++)l=Math.max(l,t[a]),u=Math.min(u,t[a]),c=Math.max(c,r[a]),f=Math.min(f,r[a]),h=Math.max(h,n[a]),d=Math.min(d,n[a]),!m&&t[a]!==k&&(m=!0,v+="x"),!b&&r[a]!==T&&(b=!0,v+="y"),!p&&n[a]!==x&&(p=!0,v+="z");m||(v+="x"),b||(v+="y"),p||(v+="z");var S=nZ(e._x),g=nZ(e._y),P=nZ(e._z);v=v.replace("x",(k>M?"-":"+")+"x"),v=v.replace("y",(T>L?"-":"+")+"y"),v=v.replace("z",(x>C?"-":"+")+"z");var E=function(){i=0,S=[],g=[],P=[]};(!i||i<S.length*g.length*P.length)&&E();var z=function(Be){return Be==="x"?t:Be==="y"?r:n},q=function(Be){return Be==="x"?S:Be==="y"?g:P},V=function(Be){return Be[i-1]<Be[0]?-1:1},G=z(v[1]),Z=z(v[3]),j=z(v[5]),N=q(v[1]).length,H=q(v[3]).length,ie=q(v[5]).length,ae=!1,_e=function(Be,Le,me){return N*(H*Be+Le)+me},Ee=V(z(v[1])),Ce=V(z(v[3])),ge=V(z(v[5]));for(a=0;a<ie-1;a++){for(o=0;o<H-1;o++){for(s=0;s<N-1;s++){var re=_e(a,o,s),Se=_e(a,o,s+1),ke=_e(a,o+1,s),be=_e(a+1,o,s);if((!(G[re]*Ee<G[Se]*Ee)||!(Z[re]*Ce<Z[ke]*Ce)||!(j[re]*ge<j[be]*ge))&&(ae=!0),ae)break}if(ae)break}if(ae)break}return ae&&(aZ.warn("Encountered arbitrary coordinates! Unable to input data grid."),E()),{xMin:u,yMin:f,zMin:d,xMax:l,yMax:c,zMax:h,Xs:S,Ys:g,Zs:P,len:i,fill:v}}function nZ(e){return aZ.distinctVals(e).vals}function $m(e,t){if(t===void 0&&(t=e.length),aZ.isTypedArray(e))return e.subarray(0,t);for(var r=[],n=0;n<t;n++)r[n]=+e[n];return r}T8e.exports={calc:JRt,filter:$m,processGrid:w8e}});var oZ=ye((Kgr,A8e)=>{"use strict";var $Rt=gv(),QRt=vF().processGrid,pF=vF().filter;A8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=pF(r.x,r._len),r._y=pF(r.y,r._len),r._z=pF(r.z,r._len),r._value=pF(r.value,r._len);var n=QRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o<r._len;o++){var s=r._value[o];i=Math.min(i,s),a=Math.max(a,s)}r._minValues=i,r._maxValues=a,r._vMin=r.isomin===void 0||r.isomin===null?i:r.isomin,r._vMax=r.isomax===void 0||r.isomax===null?a:r.isomax,$Rt(t,r,{vals:[r._vMin,r._vMax],containerStr:"",cLetter:"c"})}});var e5=ye((Jgr,S8e)=>{"use strict";S8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o<i;o++)a[o]=[t[o],r[o],n[o]];return a}});var gF=ye(($gr,C8e)=>{"use strict";var eDt=qd().gl_mesh3d,tDt=a1().parseColorScale,rDt=Pr().isArrayOrTypedArray,iDt=n1(),nDt=tc().extractOpts,M8e=e5(),uk=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n<e&&e<=i)return{id:r,distRatio:(i-e)/(i-n)}}return{id:0,distRatio:0}};function E8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var sZ=E8e.prototype;sZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=uk(r,this.data._Xs).id,l=uk(n,this.data._Ys).id,u=uk(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return rDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};sZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=k8e(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=M8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=M8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:iDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=nDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=tDt(e),this.mesh.update(o)};sZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var aDt=["xyz","xzy","yxz","yzx","zxy","zyx"];function k8e(e){e._meshI=[],e._meshJ=[],e._meshK=[];var t=e.surface.show,r=e.spaceframe.show,n=e.surface.fill,i=e.spaceframe.fill,a=!1,o=!1,s=0,l,u,c=e._Xs,f=e._Ys,h=e._Zs,d=c.length,v=f.length,m=h.length,b=aDt.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),p=function(St,Tt,dt){switch(b){case 5:return dt+m*Tt+m*v*St;case 4:return dt+m*St+m*d*Tt;case 3:return Tt+v*dt+v*m*St;case 2:return Tt+v*St+v*d*dt;case 1:return St+d*dt+d*m*Tt;default:return St+d*Tt+d*v*dt}},k=e._minValues,M=e._maxValues,T=e._vMin,L=e._vMax,x,C,S,g;function P(St,Tt,dt){for(var Et=g.length,pt=u;pt<Et;pt++)if(St===x[pt]&&Tt===C[pt]&&dt===S[pt])return pt;return-1}function E(){u=l}function z(){x=[],C=[],S=[],g=[],l=0,E()}function q(St,Tt,dt,Et){return x.push(St),C.push(Tt),S.push(dt),g.push(Et),l++,l-1}function V(St,Tt,dt){return e._meshI.push(St),e._meshJ.push(Tt),e._meshK.push(dt),s++,s-1}function G(St,Tt,dt){for(var Et=[],pt=0;pt<St.length;pt++)Et[pt]=(St[pt]+Tt[pt]+dt[pt])/3;return Et}function Z(St,Tt,dt){for(var Et=[],pt=0;pt<St.length;pt++)Et[pt]=St[pt]*(1-dt)+dt*Tt[pt];return Et}var j;function N(St){j=St}function H(St,Tt){var dt=St[0],Et=St[1],pt=St[2],jt=G(dt,Et,pt),or=Math.sqrt(1-j),mr=Z(jt,dt,or),Ar=Z(jt,Et,or),ei=Z(jt,pt,or),qr=Tt[0],jr=Tt[1],gt=Tt[2];return{xyzv:[[dt,Et,Ar],[Ar,mr,dt],[Et,pt,ei],[ei,Ar,Et],[pt,dt,mr],[mr,ei,pt]],abc:[[qr,jr,-1],[-1,-1,qr],[jr,gt,-1],[-1,-1,jr],[gt,qr,-1],[-1,-1,gt]]}}function ie(St,Tt){return St==="all"||St===null?!0:St.indexOf(Tt)>-1}function ae(St,Tt){return St===null?Tt:St}function _e(St,Tt,dt){E();var Et=[Tt],pt=[dt];if(j>=1)Et=[Tt],pt=[dt];else if(j>0){var jt=H(Tt,dt);Et=jt.xyzv,pt=jt.abc}for(var or=0;or<Et.length;or++){Tt=Et[or],dt=pt[or];for(var mr=[],Ar=0;Ar<3;Ar++){var ei=Tt[Ar][0],qr=Tt[Ar][1],jr=Tt[Ar][2],gt=Tt[Ar][3],Ge=dt[Ar]>-1?dt[Ar]:P(ei,qr,jr);Ge>-1?mr[Ar]=Ge:mr[Ar]=q(ei,qr,jr,ae(St,gt))}V(mr[0],mr[1],mr[2])}}function Ee(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(2,3,0)}function Ce(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(3,0,1),Et(2,3,0),Et(1,2,3)}function ge(St,Tt,dt,Et){var pt=St[3];pt<dt&&(pt=dt),pt>Et&&(pt=Et);for(var jt=(St[3]-pt)/(St[3]-Tt[3]+1e-9),or=[],mr=0;mr<4;mr++)or[mr]=(1-jt)*St[mr]+jt*Tt[mr];return or}function re(St,Tt,dt){return St>=Tt&&St<=dt}function Se(St){var Tt=.001*(L-T);return St>=T-Tt&&St<=L+Tt}function ke(St){for(var Tt=[],dt=0;dt<4;dt++){var Et=St[dt];Tt.push([e._x[Et],e._y[Et],e._z[Et],e._value[Et]])}return Tt}var be=3;function Be(St,Tt,dt,Et,pt,jt){jt||(jt=1),dt=[-1,-1,-1];var or=!1,mr=[re(Tt[0][3],Et,pt),re(Tt[1][3],Et,pt),re(Tt[2][3],Et,pt)];if(!mr[0]&&!mr[1]&&!mr[2])return!1;var Ar=function(qr,jr,gt){return Se(jr[0][3])&&Se(jr[1][3])&&Se(jr[2][3])?(_e(qr,jr,gt),!0):jt<be?Be(qr,jr,gt,T,L,++jt):!1};if(mr[0]&&mr[1]&&mr[2])return Ar(St,Tt,dt)||or;var ei=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(qr){if(mr[qr[0]]&&mr[qr[1]]&&!mr[qr[2]]){var jr=Tt[qr[0]],gt=Tt[qr[1]],Ge=Tt[qr[2]],Je=ge(Ge,jr,Et,pt),We=ge(Ge,gt,Et,pt);or=Ar(St,[We,Je,jr],[-1,-1,dt[qr[0]]])||or,or=Ar(St,[jr,gt,We],[dt[qr[0]],dt[qr[1]],-1])||or,ei=!0}}),ei||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(qr){if(mr[qr[0]]&&!mr[qr[1]]&&!mr[qr[2]]){var jr=Tt[qr[0]],gt=Tt[qr[1]],Ge=Tt[qr[2]],Je=ge(gt,jr,Et,pt),We=ge(Ge,jr,Et,pt);or=Ar(St,[We,Je,jr],[-1,-1,dt[qr[0]]])||or,ei=!0}}),or}function Le(St,Tt,dt,Et){var pt=!1,jt=ke(Tt),or=[re(jt[0][3],dt,Et),re(jt[1][3],dt,Et),re(jt[2][3],dt,Et),re(jt[3][3],dt,Et)];if(!or[0]&&!or[1]&&!or[2]&&!or[3])return pt;if(or[0]&&or[1]&&or[2]&&or[3])return o&&(pt=Ce(St,jt,Tt)||pt),pt;var mr=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Ar){if(or[Ar[0]]&&or[Ar[1]]&&or[Ar[2]]&&!or[Ar[3]]){var ei=jt[Ar[0]],qr=jt[Ar[1]],jr=jt[Ar[2]],gt=jt[Ar[3]];if(o)pt=_e(St,[ei,qr,jr],[Tt[Ar[0]],Tt[Ar[1]],Tt[Ar[2]]])||pt;else{var Ge=ge(gt,ei,dt,Et),Je=ge(gt,qr,dt,Et),We=ge(gt,jr,dt,Et);pt=_e(null,[Ge,Je,We],[-1,-1,-1])||pt}mr=!0}}),mr||([[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(Ar){if(or[Ar[0]]&&or[Ar[1]]&&!or[Ar[2]]&&!or[Ar[3]]){var ei=jt[Ar[0]],qr=jt[Ar[1]],jr=jt[Ar[2]],gt=jt[Ar[3]],Ge=ge(jr,ei,dt,Et),Je=ge(jr,qr,dt,Et),We=ge(gt,qr,dt,Et),et=ge(gt,ei,dt,Et);o?(pt=_e(St,[ei,et,Ge],[Tt[Ar[0]],-1,-1])||pt,pt=_e(St,[qr,Je,We],[Tt[Ar[1]],-1,-1])||pt):pt=Ee(null,[Ge,Je,We,et],[-1,-1,-1,-1])||pt,mr=!0}}),mr)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Ar){if(or[Ar[0]]&&!or[Ar[1]]&&!or[Ar[2]]&&!or[Ar[3]]){var ei=jt[Ar[0]],qr=jt[Ar[1]],jr=jt[Ar[2]],gt=jt[Ar[3]],Ge=ge(qr,ei,dt,Et),Je=ge(jr,ei,dt,Et),We=ge(gt,ei,dt,Et);o?(pt=_e(St,[ei,Ge,Je],[Tt[Ar[0]],-1,-1])||pt,pt=_e(St,[ei,Je,We],[Tt[Ar[0]],-1,-1])||pt,pt=_e(St,[ei,We,Ge],[Tt[Ar[0]],-1,-1])||pt):pt=_e(null,[Ge,Je,We],[-1,-1,-1])||pt,mr=!0}}),pt}function me(St,Tt,dt,Et,pt,jt,or,mr,Ar,ei,qr){var jr=!1;return a&&(ie(St,"A")&&(jr=Le(null,[Tt,dt,Et,jt],ei,qr)||jr),ie(St,"B")&&(jr=Le(null,[dt,Et,pt,Ar],ei,qr)||jr),ie(St,"C")&&(jr=Le(null,[dt,jt,or,Ar],ei,qr)||jr),ie(St,"D")&&(jr=Le(null,[Et,jt,mr,Ar],ei,qr)||jr),ie(St,"E")&&(jr=Le(null,[dt,Et,jt,Ar],ei,qr)||jr)),o&&(jr=Le(St,[dt,Et,jt,Ar],ei,qr)||jr),jr}function Pe(St,Tt,dt,Et,pt,jt,or,mr){return[mr[0]===!0?!0:Be(St,ke([Tt,dt,Et]),[Tt,dt,Et],jt,or),mr[1]===!0?!0:Be(St,ke([Et,pt,Tt]),[Et,pt,Tt],jt,or)]}function ce(St,Tt,dt,Et,pt,jt,or,mr,Ar){return mr?Pe(St,Tt,dt,pt,Et,jt,or,Ar):Pe(St,dt,pt,Et,Tt,jt,or,Ar)}function He(St,Tt,dt,Et,pt,jt,or){var mr=!1,Ar,ei,qr,jr,gt=function(){mr=Be(St,[Ar,ei,qr],[-1,-1,-1],pt,jt)||mr,mr=Be(St,[qr,jr,Ar],[-1,-1,-1],pt,jt)||mr},Ge=or[0],Je=or[1],We=or[2];return Ge&&(Ar=Z(ke([p(Tt,dt-0,Et-0)])[0],ke([p(Tt-1,dt-0,Et-0)])[0],Ge),ei=Z(ke([p(Tt,dt-0,Et-1)])[0],ke([p(Tt-1,dt-0,Et-1)])[0],Ge),qr=Z(ke([p(Tt,dt-1,Et-1)])[0],ke([p(Tt-1,dt-1,Et-1)])[0],Ge),jr=Z(ke([p(Tt,dt-1,Et-0)])[0],ke([p(Tt-1,dt-1,Et-0)])[0],Ge),gt()),Je&&(Ar=Z(ke([p(Tt-0,dt,Et-0)])[0],ke([p(Tt-0,dt-1,Et-0)])[0],Je),ei=Z(ke([p(Tt-0,dt,Et-1)])[0],ke([p(Tt-0,dt-1,Et-1)])[0],Je),qr=Z(ke([p(Tt-1,dt,Et-1)])[0],ke([p(Tt-1,dt-1,Et-1)])[0],Je),jr=Z(ke([p(Tt-1,dt,Et-0)])[0],ke([p(Tt-1,dt-1,Et-0)])[0],Je),gt()),We&&(Ar=Z(ke([p(Tt-0,dt-0,Et)])[0],ke([p(Tt-0,dt-0,Et-1)])[0],We),ei=Z(ke([p(Tt-0,dt-1,Et)])[0],ke([p(Tt-0,dt-1,Et-1)])[0],We),qr=Z(ke([p(Tt-1,dt-1,Et)])[0],ke([p(Tt-1,dt-1,Et-1)])[0],We),jr=Z(ke([p(Tt-1,dt-0,Et)])[0],ke([p(Tt-1,dt-0,Et-1)])[0],We),gt()),mr}function lt(St,Tt,dt,Et,pt,jt,or,mr,Ar,ei,qr,jr){var gt=St;return jr?(a&&St==="even"&&(gt=null),me(gt,Tt,dt,Et,pt,jt,or,mr,Ar,ei,qr)):(a&&St==="odd"&&(gt=null),me(gt,Ar,mr,or,jt,pt,Et,dt,Tt,ei,qr))}function mt(St,Tt,dt,Et,pt){for(var jt=[],or=0,mr=0;mr<Tt.length;mr++)for(var Ar=Tt[mr],ei=1;ei<m;ei++)for(var qr=1;qr<v;qr++)jt.push(ce(St,p(Ar,qr-1,ei-1),p(Ar,qr-1,ei),p(Ar,qr,ei-1),p(Ar,qr,ei),dt,Et,(Ar+qr+ei)%2,pt&&pt[or]?pt[or]:[])),or++;return jt}function Ht(St,Tt,dt,Et,pt){for(var jt=[],or=0,mr=0;mr<Tt.length;mr++)for(var Ar=Tt[mr],ei=1;ei<d;ei++)for(var qr=1;qr<m;qr++)jt.push(ce(St,p(ei-1,Ar,qr-1),p(ei,Ar,qr-1),p(ei-1,Ar,qr),p(ei,Ar,qr),dt,Et,(ei+Ar+qr)%2,pt&&pt[or]?pt[or]:[])),or++;return jt}function at(St,Tt,dt,Et,pt){for(var jt=[],or=0,mr=0;mr<Tt.length;mr++)for(var Ar=Tt[mr],ei=1;ei<v;ei++)for(var qr=1;qr<d;qr++)jt.push(ce(St,p(qr-1,ei-1,Ar),p(qr-1,ei,Ar),p(qr,ei-1,Ar),p(qr,ei,Ar),dt,Et,(qr+ei+Ar)%2,pt&&pt[or]?pt[or]:[])),or++;return jt}function ct(St,Tt,dt){for(var Et=1;Et<m;Et++)for(var pt=1;pt<v;pt++)for(var jt=1;jt<d;jt++)lt(St,p(jt-1,pt-1,Et-1),p(jt-1,pt-1,Et),p(jt-1,pt,Et-1),p(jt-1,pt,Et),p(jt,pt-1,Et-1),p(jt,pt-1,Et),p(jt,pt,Et-1),p(jt,pt,Et),Tt,dt,(jt+pt+Et)%2)}function ar(St,Tt,dt){o=!0,ct(St,Tt,dt),o=!1}function Vt(St,Tt,dt){a=!0,ct(St,Tt,dt),a=!1}function rr(St,Tt,dt,Et,pt,jt){for(var or=[],mr=0,Ar=0;Ar<Tt.length;Ar++)for(var ei=Tt[Ar],qr=1;qr<m;qr++)for(var jr=1;jr<v;jr++)or.push(He(St,ei,jr,qr,dt,Et,pt[Ar],jt&&jt[mr]?jt[mr]:[])),mr++;return or}function tt(St,Tt,dt,Et,pt,jt){for(var or=[],mr=0,Ar=0;Ar<Tt.length;Ar++)for(var ei=Tt[Ar],qr=1;qr<d;qr++)for(var jr=1;jr<m;jr++)or.push(He(St,qr,ei,jr,dt,Et,pt[Ar],jt&&jt[mr]?jt[mr]:[])),mr++;return or}function je(St,Tt,dt,Et,pt,jt){for(var or=[],mr=0,Ar=0;Ar<Tt.length;Ar++)for(var ei=Tt[Ar],qr=1;qr<v;qr++)for(var jr=1;jr<d;jr++)or.push(He(St,jr,qr,ei,dt,Et,pt[Ar],jt&&jt[mr]?jt[mr]:[])),mr++;return or}function Ue(St,Tt){for(var dt=[],Et=St;Et<Tt;Et++)dt.push(Et);return dt}function Ae(){for(var St=0;St<d;St++)for(var Tt=0;Tt<v;Tt++)for(var dt=0;dt<m;dt++){var Et=p(St,Tt,dt);q(e._x[Et],e._y[Et],e._z[Et],e._value[Et])}}function rt(){z(),Ae();var St=null;if(r&&i&&(N(i),ar(St,T,L)),t&&n){N(n);for(var Tt=e.surface.pattern,dt=e.surface.count,Et=0;Et<dt;Et++){var pt=dt===1?.5:Et/(dt-1),jt=(1-pt)*T+pt*L,or=Math.abs(jt-k),mr=Math.abs(jt-M),Ar=or>mr?[k,jt]:[jt,M];Vt(Tt,Ar[0],Ar[1])}}var ei=[[Math.min(T,M),Math.max(T,M)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(qr){for(var jr=[],gt=0;gt<ei.length;gt++){var Ge=0,Je=ei[gt][0],We=ei[gt][1],et=e.slices[qr];if(et.show&&et.fill){N(et.fill);var xt=[],At=[],Kt=[];if(et.locations.length)for(var Qt=0;Qt<et.locations.length;Qt++){var Mr=uk(et.locations[Qt],qr==="x"?c:qr==="y"?f:h);Mr.distRatio===0?xt.push(Mr.id):Mr.id>0&&(At.push(Mr.id),qr==="x"?Kt.push([Mr.distRatio,0,0]):qr==="y"?Kt.push([0,Mr.distRatio,0]):Kt.push([0,0,Mr.distRatio]))}else qr==="x"?xt=Ue(1,d-1):qr==="y"?xt=Ue(1,v-1):xt=Ue(1,m-1);At.length>0&&(qr==="x"?jr[Ge]=rr(St,At,Je,We,Kt,jr[Ge]):qr==="y"?jr[Ge]=tt(St,At,Je,We,Kt,jr[Ge]):jr[Ge]=je(St,At,Je,We,Kt,jr[Ge]),Ge++),xt.length>0&&(qr==="x"?jr[Ge]=mt(St,xt,Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,xt,Je,We,jr[Ge]):jr[Ge]=at(St,xt,Je,We,jr[Ge]),Ge++)}var Gr=e.caps[qr];Gr.show&&Gr.fill&&(N(Gr.fill),qr==="x"?jr[Ge]=mt(St,[0,d-1],Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,[0,v-1],Je,We,jr[Ge]):jr[Ge]=at(St,[0,m-1],Je,We,jr[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=C,e._meshZ=S,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return rt(),e}function oDt(e,t){var r=e.glplot.gl,n=eDt({gl:r}),i=new E8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}C8e.exports={findNearestOnAxis:uk,generateIsoMeshes:k8e,createIsosurfaceTrace:oDt}});var P8e=ye((Qgr,L8e)=>{"use strict";L8e.exports={attributes:dF(),supplyDefaults:iZ().supplyDefaults,calc:oZ(),colorbar:{min:"cmin",max:"cmax"},plot:gF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var R8e=ye((emr,I8e)=>{"use strict";I8e.exports=P8e()});var uZ=ye((tmr,F8e)=>{"use strict";var sDt=Tu(),xh=dF(),lDt=ok(),D8e=Gl(),lZ=Ao().extendFlat,uDt=mc().overrideAll,mF=F8e.exports=uDt(lZ({x:xh.x,y:xh.y,z:xh.z,value:xh.value,isomin:xh.isomin,isomax:xh.isomax,surface:xh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:xh.slices,caps:xh.caps,text:xh.text,hovertext:xh.hovertext,xhoverformat:xh.xhoverformat,yhoverformat:xh.yhoverformat,zhoverformat:xh.zhoverformat,valuehoverformat:xh.valuehoverformat,hovertemplate:xh.hovertemplate,hovertemplatefallback:xh.hovertemplatefallback},sDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:lDt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:lZ({},D8e.hoverinfo),showlegend:lZ({},D8e.showlegend,{dflt:!1})}),"calc","nested");mF.x.editType=mF.y.editType=mF.z.editType=mF.value.editType="calc+clearAxisTypes"});var q8e=ye((rmr,z8e)=>{"use strict";var cDt=Pr(),fDt=uZ(),hDt=iZ().supplyIsoDefaults,dDt=JX().opacityscaleDefaults;z8e.exports=function(t,r,n,i){function a(o,s){return cDt.coerce(t,r,fDt,o,s)}hDt(t,r,n,i,a),dDt(t,r,i,a)}});var U8e=ye((imr,N8e)=>{"use strict";var vDt=qd().gl_mesh3d,pDt=a1().parseColorScale,gDt=Pr().isArrayOrTypedArray,mDt=n1(),yDt=tc().extractOpts,O8e=e5(),cZ=gF().findNearestOnAxis,_Dt=gF().generateIsoMeshes;function B8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var fZ=B8e.prototype;fZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=cZ(r,this.data._Xs).id,l=cZ(n,this.data._Ys).id,u=cZ(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return gDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};fZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=_Dt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=O8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=O8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:mDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=yDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=pDt(e),this.mesh.update(o)};fZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function xDt(e,t){var r=e.glplot.gl,n=vDt({gl:r}),i=new B8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}N8e.exports=xDt});var G8e=ye((nmr,V8e)=>{"use strict";V8e.exports={attributes:uZ(),supplyDefaults:q8e(),calc:oZ(),colorbar:{min:"cmin",max:"cmax"},plot:U8e(),moduleType:"trace",name:"volume",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var j8e=ye((amr,H8e)=>{"use strict";H8e.exports=G8e()});var Z8e=ye((omr,X8e)=>{"use strict";var bDt=Oa(),W8e=Pr(),wDt=td(),TDt=$A();X8e.exports=function(t,r,n,i){function a(c,f){return W8e.coerce(t,r,TDt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&W8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["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 l=bDt.getComponentMethod("calendars","handleTraceDefaults");l(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(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),wDt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var K8e=ye((smr,Y8e)=>{"use strict";var ADt=gv();Y8e.exports=function(t,r){r.intensity&&ADt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var tRe=ye((lmr,eRe)=>{"use strict";var SDt=qd().gl_mesh3d,MDt=qd().delaunay_triangulate,EDt=qd().alpha_shape,kDt=qd().convex_hull,CDt=a1().parseColorScale,LDt=Pr().isArrayOrTypedArray,pZ=n1(),PDt=tc().extractOpts,J8e=e5();function Q8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var gZ=Q8e.prototype;gZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return LDt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function $8e(e){for(var t=[],r=e.length,n=0;n<r;n++)t[n]=pZ(e[n]);return t}function hZ(e,t,r,n){for(var i=[],a=t.length,o=0;o<a;o++)i[o]=e.d2l(t[o],0,n)*r;return i}function dZ(e){for(var t=[],r=e.length,n=0;n<r;n++)t[n]=Math.round(e[n]);return t}function IDt(e,t){for(var r=["x","y","z"].indexOf(e),n=[],i=t.length,a=0;a<i;a++)n[a]=[t[a][(r+1)%3],t[a][(r+2)%3]];return MDt(n)}function vZ(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n]<=-.5||e[n]>=t-.5)return!1;return!0}gZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=J8e(hZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),hZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),hZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!vZ(e.i,n)||!vZ(e.j,n)||!vZ(e.k,n))return;a=J8e(dZ(e.i),dZ(e.j),dZ(e.k))}else e.alphahull===0?a=kDt(i):e.alphahull>0?a=EDt(e.alphahull,i):a=IDt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:pZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=PDt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=CDt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=$8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=$8e(e.facecolor)):(this.color=e.color,o.meshColor=pZ(e.color));this.mesh.update(o)};gZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function RDt(e,t){var r=e.glplot.gl,n=SDt({gl:r}),i=new Q8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}eRe.exports=RDt});var iRe=ye((umr,rRe)=>{"use strict";rRe.exports={attributes:$A(),supplyDefaults:Z8e(),calc:K8e(),colorbar:{min:"cmin",max:"cmax"},plot:tRe(),moduleType:"trace",name:"mesh3d",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var aRe=ye((cmr,nRe)=>{"use strict";nRe.exports=iRe()});var yZ=ye((fmr,sRe)=>{"use strict";var DDt=Tu(),t5=vf().axisHoverFormat,{hovertemplateAttrs:FDt,templatefallbackAttrs:zDt}=Ll(),qDt=$A(),oRe=Gl(),mZ=Ao().extendFlat,yF={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:FDt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:zDt({editType:"calc"}),uhoverformat:t5("u",1),vhoverformat:t5("v",1),whoverformat:t5("w",1),xhoverformat:t5("x"),yhoverformat:t5("y"),zhoverformat:t5("z"),showlegend:mZ({},oRe.showlegend,{dflt:!1})};mZ(yF,DDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var ODt=["opacity","lightposition","lighting"];ODt.forEach(function(e){yF[e]=qDt[e]});yF.hoverinfo=mZ({},oRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});sRe.exports=yF});var uRe=ye((hmr,lRe)=>{"use strict";var BDt=Pr(),NDt=td(),UDt=yZ();lRe.exports=function(t,r,n,i){function a(d,v){return BDt.coerce(t,r,UDt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),NDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var fRe=ye((dmr,cRe)=>{"use strict";var VDt=gv();cRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u<o;u++){var c=n[u],f=i[u],h=a[u],d=Math.sqrt(c*c+f*f+h*h);s=Math.max(s,d),l=Math.min(l,d)}r._len=o,r._normMax=s,VDt(t,r,{vals:[l,s],containerStr:"",cLetter:"c"})}});var gRe=ye((vmr,pRe)=>{"use strict";var GDt=qd().gl_cone3d,HDt=qd().gl_cone3d.createConeMesh,jDt=Pr().simpleMap,WDt=a1().parseColorScale,XDt=tc().extractOpts,ZDt=Pr().isArrayOrTypedArray,hRe=e5();function dRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var _Z=dRe.prototype;_Z.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return ZDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var YDt={xaxis:0,yaxis:1,zaxis:2},KDt={tip:1,tail:0,cm:.25,center:.5},JDt={tip:1,tail:1,cm:.75,center:.5};function vRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[YDt[f]];return jDt(c,function(v){return h.d2l(v)*d})}i.vectors=hRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=hRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=XDt(t);i.colormap=WDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=KDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=GDt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=JDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}_Z.update=function(e){this.data=e;var t=vRe(this.scene,e);this.mesh.update(t)};_Z.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function $Dt(e,t){var r=e.glplot.gl,n=vRe(e,t),i=HDt(r,n),a=new dRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}pRe.exports=$Dt});var yRe=ye((pmr,mRe)=>{"use strict";mRe.exports={moduleType:"trace",name:"cone",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:yZ(),supplyDefaults:uRe(),colorbar:{min:"cmin",max:"cmax"},calc:fRe(),plot:gRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var xRe=ye((gmr,_Re)=>{"use strict";_Re.exports=yRe()});var bZ=ye((mmr,wRe)=>{"use strict";var QDt=Tu(),r5=vf().axisHoverFormat,{hovertemplateAttrs:eFt,templatefallbackAttrs:tFt}=Ll(),rFt=$A(),bRe=Gl(),xZ=Ao().extendFlat,_F={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:eFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:tFt({editType:"calc"}),uhoverformat:r5("u",1),vhoverformat:r5("v",1),whoverformat:r5("w",1),xhoverformat:r5("x"),yhoverformat:r5("y"),zhoverformat:r5("z"),showlegend:xZ({},bRe.showlegend,{dflt:!1})};xZ(_F,QDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var iFt=["opacity","lightposition","lighting"];iFt.forEach(function(e){_F[e]=rFt[e]});_F.hoverinfo=xZ({},bRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});wRe.exports=_F});var ARe=ye((ymr,TRe)=>{"use strict";var nFt=Pr(),aFt=td(),oFt=bZ();TRe.exports=function(t,r,n,i){function a(h,d){return nFt.coerce(t,r,oFt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),aFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var IRe=ye((_mr,PRe)=>{"use strict";var ERe=qd().gl_streamtube3d,sFt=ERe.createTubeMesh,lFt=Pr(),uFt=a1().parseColorScale,cFt=tc().extractOpts,SRe=e5(),kRe={xaxis:0,yaxis:1,zaxis:2};function CRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var TZ=CRe.prototype;TZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[kRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function MRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function wZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function LRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,q){var V=r[q],G=n[kRe[q]];return lFt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=SRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=SRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=MRe(s),d=MRe(u),v=new Array(h.length*d.length),m=0,b=0;b<h.length;b++)for(var p=0;p<d.length;p++)v[m++]=[h[b],f,d[p]];a.startingPositions=v}a.colormap=uFt(t),a.tubeSize=t.sizeref,a.maxLength=t.maxdisplayed;var k=o(t._xbnds,"xaxis"),M=o(t._ybnds,"yaxis"),T=o(t._zbnds,"zaxis"),L=wZ(s),x=wZ(l),C=wZ(u),S=[[k[0]-L[0],M[0]-x[0],T[0]-C[0]],[k[1]+L[1],M[1]+x[1],T[1]+C[1]]],g=ERe(a,S),P=cFt(t);g.vertexIntensityBounds=[P.min/t._normMax,P.max/t._normMax];var E=t.lightposition;return g.lightPosition=[E.x,E.y,E.z],g.ambient=t.lighting.ambient,g.diffuse=t.lighting.diffuse,g.specular=t.lighting.specular,g.roughness=t.lighting.roughness,g.fresnel=t.lighting.fresnel,g.opacity=t.opacity,t._pad=g.tubeScale*t.sizeref*2,g}TZ.update=function(e){this.data=e;var t=LRe(this.scene,e);this.mesh.update(t)};TZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function fFt(e,t){var r=e.glplot.gl,n=LRe(e,t),i=sFt(r,n),a=new CRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}PRe.exports=fFt});var DRe=ye((xmr,RRe)=>{"use strict";RRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:bZ(),supplyDefaults:ARe(),colorbar:{min:"cmin",max:"cmax"},calc:vF().calc,plot:IRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var zRe=ye((bmr,FRe)=>{"use strict";FRe.exports=DRe()});var tw=ye((Tmr,URe)=>{"use strict";var{hovertemplateAttrs:hFt,texttemplateAttrs:dFt,templatefallbackAttrs:qRe}=Ll(),vFt=Pg(),Qm=pf(),pFt=Gl(),ORe=Tu(),gFt=Pd().dash,ew=Ao().extendFlat,mFt=mc().overrideAll,rg=Qm.marker,BRe=Qm.line,NRe=rg.line,wmr=["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(" ");URe.exports=mFt({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:ew({},Qm.mode,{dflt:"markers"}),text:ew({},Qm.text,{}),texttemplate:dFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:qRe({editType:"plot"}),hovertext:ew({},Qm.hovertext,{}),textfont:Qm.textfont,textposition:Qm.textposition,line:{color:BRe.color,width:BRe.width,dash:gFt},connectgaps:Qm.connectgaps,marker:ew({symbol:rg.symbol,opacity:rg.opacity,angle:rg.angle,angleref:ew({},rg.angleref,{values:["previous","up","north"]}),standoff:rg.standoff,size:rg.size,sizeref:rg.sizeref,sizemin:rg.sizemin,sizemode:rg.sizemode,colorbar:rg.colorbar,line:ew({width:NRe.width,dash:NRe.dash},ORe("marker.line")),gradient:rg.gradient},ORe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:vFt(),selected:Qm.selected,unselected:Qm.unselected,hoverinfo:ew({},pFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:hFt(),hovertemplatefallback:qRe()},"calc","nested")});var GRe=ye((Amr,VRe)=>{"use strict";var xF=Pr(),AZ=Ru(),yFt=$p(),_Ft=D0(),xFt=F0(),bFt=Fg(),wFt=tw(),TFt=["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(" ");VRe.exports=function(t,r,n,i){function a(d,v){return xF.coerce(t,r,wFt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||xF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&xF.warn(TFt),c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),AZ.hasMarkers(r)&&yFt(t,r,n,i,a,{gradient:!0}),AZ.hasLines(r)&&(_Ft(t,r,n,i,a),a("connectgaps")),AZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),xFt(t,r,i,a)),a("fill"),r.fill!=="none"&&bFt(t,r,n,a),xF.coerceSelectionMarkerOpacity(r,a)}});var WRe=ye((Smr,jRe)=>{"use strict";var HRe=ho();jRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=HRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=HRe.tickText(o,o.c2l(s[1]),!0).text,i}});var bF=ye((Mmr,KRe)=>{"use strict";var SZ=Eo(),XRe=fs().BADNUM,AFt=z0(),SFt=Dm(),MFt=q0(),EFt=Pr().isArrayOrTypedArray,ZRe=Pr()._;function YRe(e){return e&&typeof e=="string"}KRe.exports=function(t,r){var n=EFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return YRe(h)||SZ(h)}:o=YRe;for(var s=0;s<i;s++){var l=a[s]={};if(n){var u=r.locations[s];l.loc=o(u)?u:null}else{var c=r.lon[s],f=r.lat[s];SZ(c)&&SZ(f)?l.lonlat=[+c,+f]:l.lonlat=[XRe,XRe]}}return SFt(a,r),AFt(t,r),MFt(a,r),i&&(a[0].t={labels:{lat:ZRe(t,"lat:")+" ",lon:ZRe(t,"lon:")+" "}}),a}});var ck=ye(Mv=>{"use strict";Mv.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"};Mv.axesNames=["lonaxis","lataxis"];Mv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Mv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Mv.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]}};Mv.clipPad=.001;Mv.precision=.1;Mv.landColor="#F0DC82";Mv.waterColor="#3399FF";Mv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Mv.sphereSVG={type:"Sphere"};Mv.fillLayers={ocean:1,land:1,lakes:1};Mv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Mv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Mv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Mv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var MZ=ye((wF,JRe)=>{(function(e,t){typeof wF=="object"&&typeof JRe!="undefined"?t(wF):(e=e||self,t(e.topojson=e.topojson||{}))})(wF,function(e){"use strict";function t(M){return M}function r(M){if(M==null)return t;var T,L,x=M.scale[0],C=M.scale[1],S=M.translate[0],g=M.translate[1];return function(P,E){E||(T=L=0);var z=2,q=P.length,V=new Array(q);for(V[0]=(T+=P[0])*x+S,V[1]=(L+=P[1])*C+g;z<q;)V[z]=P[z],++z;return V}}function n(M){var T=r(M.transform),L,x=1/0,C=x,S=-x,g=-x;function P(z){z=T(z),z[0]<x&&(x=z[0]),z[0]>S&&(S=z[0]),z[1]<C&&(C=z[1]),z[1]>g&&(g=z[1])}function E(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(E);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}M.arcs.forEach(function(z){for(var q=-1,V=z.length,G;++q<V;)G=T(z[q],q),G[0]<x&&(x=G[0]),G[0]>S&&(S=G[0]),G[1]<C&&(C=G[1]),G[1]>g&&(g=G[1])});for(L in M.objects)E(M.objects[L]);return[x,C,S,g]}function i(M,T){for(var L,x=M.length,C=x-T;C<--x;)L=M[C],M[C++]=M[x],M[x]=L}function a(M,T){return typeof T=="string"&&(T=M.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(M,L)})}:o(M,T)}function o(M,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,S=s(M,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:S}:x==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:x,properties:C,geometry:S}}function s(M,T){var L=r(M.transform),x=M.arcs;function C(q,V){V.length&&V.pop();for(var G=x[q<0?~q:q],Z=0,j=G.length;Z<j;++Z)V.push(L(G[Z],Z));q<0&&i(V,j)}function S(q){return L(q)}function g(q){for(var V=[],G=0,Z=q.length;G<Z;++G)C(q[G],V);return V.length<2&&V.push(V[0]),V}function P(q){for(var V=g(q);V.length<4;)V.push(V[0]);return V}function E(q){return q.map(P)}function z(q){var V=q.type,G;switch(V){case"GeometryCollection":return{type:V,geometries:q.geometries.map(z)};case"Point":G=S(q.coordinates);break;case"MultiPoint":G=q.coordinates.map(S);break;case"LineString":G=g(q.arcs);break;case"MultiLineString":G=q.arcs.map(g);break;case"Polygon":G=E(q.arcs);break;case"MultiPolygon":G=q.arcs.map(E);break;default:return null}return{type:V,coordinates:G}}return z(T)}function l(M,T){var L={},x={},C={},S=[],g=-1;T.forEach(function(z,q){var V=M.arcs[z<0?~z:z],G;V.length<3&&!V[1][0]&&!V[1][1]&&(G=T[++g],T[g]=z,T[q]=G)}),T.forEach(function(z){var q=P(z),V=q[0],G=q[1],Z,j;if(Z=C[V])if(delete C[Z.end],Z.push(z),Z.end=G,j=x[G]){delete x[j.start];var N=j===Z?Z:Z.concat(j);x[N.start=Z.start]=C[N.end=j.end]=N}else x[Z.start]=C[Z.end]=Z;else if(Z=x[G])if(delete x[Z.start],Z.unshift(z),Z.start=V,j=C[V]){delete C[j.end];var H=j===Z?Z:j.concat(Z);x[H.start=j.start]=C[H.end=Z.end]=H}else x[Z.start]=C[Z.end]=Z;else Z=[z],x[Z.start=V]=C[Z.end=G]=Z});function P(z){var q=M.arcs[z<0?~z:z],V=q[0],G;return M.transform?(G=[0,0],q.forEach(function(Z){G[0]+=Z[0],G[1]+=Z[1]})):G=q[q.length-1],z<0?[G,V]:[V,G]}function E(z,q){for(var V in z){var G=z[V];delete q[G.start],delete G.start,delete G.end,G.forEach(function(Z){L[Z<0?~Z:Z]=1}),S.push(G)}}return E(C,x),E(x,C),T.forEach(function(z){L[z<0?~z:z]||S.push([z])}),S}function u(M){return s(M,c.apply(this,arguments))}function c(M,T,L){var x,C,S;if(arguments.length>1)x=f(M,T,L);else for(C=0,x=new Array(S=M.arcs.length);C<S;++C)x[C]=C;return{type:"MultiLineString",arcs:l(M,x)}}function f(M,T,L){var x=[],C=[],S;function g(V){var G=V<0?~V:V;(C[G]||(C[G]=[])).push({i:V,g:S})}function P(V){V.forEach(g)}function E(V){V.forEach(P)}function z(V){V.forEach(E)}function q(V){switch(S=V,V.type){case"GeometryCollection":V.geometries.forEach(q);break;case"LineString":P(V.arcs);break;case"MultiLineString":case"Polygon":E(V.arcs);break;case"MultiPolygon":z(V.arcs);break}}return q(T),C.forEach(L==null?function(V){x.push(V[0].i)}:function(V){L(V[0].g,V[V.length-1].g)&&x.push(V[0].i)}),x}function h(M){for(var T=-1,L=M.length,x,C=M[L-1],S=0;++T<L;)x=C,C=M[T],S+=x[0]*C[1]-x[1]*C[0];return Math.abs(S)}function d(M){return s(M,v.apply(this,arguments))}function v(M,T){var L={},x=[],C=[];T.forEach(S);function S(E){switch(E.type){case"GeometryCollection":E.geometries.forEach(S);break;case"Polygon":g(E.arcs);break;case"MultiPolygon":E.arcs.forEach(g);break}}function g(E){E.forEach(function(z){z.forEach(function(q){(L[q=q<0?~q:q]||(L[q]=[])).push(E)})}),x.push(E)}function P(E){return h(s(M,{type:"Polygon",arcs:[E]}).coordinates[0])}return x.forEach(function(E){if(!E._){var z=[],q=[E];for(E._=1,C.push(z);E=q.pop();)z.push(E),E.forEach(function(V){V.forEach(function(G){L[G<0?~G:G].forEach(function(Z){Z._||(Z._=1,q.push(Z))})})})}}),x.forEach(function(E){delete E._}),{type:"MultiPolygon",arcs:C.map(function(E){var z=[],q;if(E.forEach(function(N){N.forEach(function(H){H.forEach(function(ie){L[ie<0?~ie:ie].length<2&&z.push(ie)})})}),z=l(M,z),(q=z.length)>1)for(var V=1,G=P(z[0]),Z,j;V<q;++V)(Z=P(z[V]))>G&&(j=z[0],z[0]=z[V],z[V]=j,G=Z);return z}).filter(function(E){return E.length>0})}}function m(M,T){for(var L=0,x=M.length;L<x;){var C=L+x>>>1;M[C]<T?L=C+1:x=C}return L}function b(M){var T={},L=M.map(function(){return[]});function x(N,H){N.forEach(function(ie){ie<0&&(ie=~ie);var ae=T[ie];ae?ae.push(H):T[ie]=[H]})}function C(N,H){N.forEach(function(ie){x(ie,H)})}function S(N,H){N.type==="GeometryCollection"?N.geometries.forEach(function(ie){S(ie,H)}):N.type in g&&g[N.type](N.arcs,H)}var g={LineString:x,MultiLineString:C,Polygon:C,MultiPolygon:function(N,H){N.forEach(function(ie){C(ie,H)})}};M.forEach(S);for(var P in T)for(var E=T[P],z=E.length,q=0;q<z;++q)for(var V=q+1;V<z;++V){var G=E[q],Z=E[V],j;(j=L[G])[P=m(j,Z)]!==Z&&j.splice(P,0,Z),(j=L[Z])[P=m(j,G)]!==G&&j.splice(P,0,G)}return L}function p(M){if(M==null)return t;var T,L,x=M.scale[0],C=M.scale[1],S=M.translate[0],g=M.translate[1];return function(P,E){E||(T=L=0);var z=2,q=P.length,V=new Array(q),G=Math.round((P[0]-S)/x),Z=Math.round((P[1]-g)/C);for(V[0]=G-T,T=G,V[1]=Z-L,L=Z;z<q;)V[z]=P[z],++z;return V}}function k(M,T){if(M.transform)throw new Error("already quantized");if(!T||!T.scale){if(!((g=Math.floor(T))>=2))throw new Error("n must be \u22652");E=M.bbox||n(M);var L=E[0],x=E[1],C=E[2],S=E[3],g;T={scale:[C-L?(C-L)/(g-1):1,S-x?(S-x)/(g-1):1],translate:[L,x]}}else E=M.bbox;var P=p(T),E,z,q=M.objects,V={};function G(N){return P(N)}function Z(N){var H;switch(N.type){case"GeometryCollection":H={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":H={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":H={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(H.id=N.id),N.bbox!=null&&(H.bbox=N.bbox),N.properties!=null&&(H.properties=N.properties),H}function j(N){var H=0,ie=1,ae=N.length,_e,Ee=new Array(ae);for(Ee[0]=P(N[0],0);++H<ae;)((_e=P(N[H],H))[0]||_e[1])&&(Ee[ie++]=_e);return ie===1&&(Ee[ie++]=[0,0]),Ee.length=ie,Ee}for(z in q)V[z]=Z(q[z]);return{type:"Topology",bbox:E,transform:T,objects:V,arcs:M.arcs.map(j)}}e.bbox=n,e.feature=a,e.merge=d,e.mergeArcs=v,e.mesh=u,e.meshArcs=c,e.neighbors=b,e.quantize=k,e.transform=r,e.untransform=p,Object.defineProperty(e,"__esModule",{value:!0})})});var TF=ye((kmr,$Re)=>{"use strict";var EZ=$Re.exports={},kFt=ck().locationmodeToLayer,CFt=MZ().feature;EZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};EZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};EZ.getTopojsonFeatures=function(e,t){var r=kFt[e.locationmode],n=t.objects[r];return CFt(t,n).features}});var fx=ye(fk=>{"use strict";var LFt=fs().BADNUM;fk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a<e.length;a++){var o=e[a],s=o.lonlat;s[0]!==LFt?i.push(s):!r&&i.length>0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};fk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};fk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=[e[r]];return{type:"MultiPolygon",coordinates:t}};fk.makeBlank=function(){return{type:"Point",coordinates:[]}}});var eDe=ye((Lmr,QRe)=>{QRe.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"}});var MF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var qp=63710088e-1,CZ={centimeters:qp*100,centimetres:qp*100,degrees:360/(2*Math.PI),feet:qp*3.28084,inches:qp*39.37,kilometers:qp/1e3,kilometres:qp/1e3,meters:qp,metres:qp,miles:qp/1609.344,millimeters:qp*1e3,millimetres:qp*1e3,nauticalmiles:qp/1852,radians:1,yards:qp*1.0936},kZ={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 hx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function PFt(e,t,r={}){switch(e){case"Point":return LZ(t).geometry;case"LineString":return IZ(t).geometry;case"Polygon":return PZ(t).geometry;case"MultiPoint":return rDe(t).geometry;case"MultiLineString":return tDe(t).geometry;case"MultiPolygon":return iDe(t).geometry;default:throw new Error(e+" is invalid")}}function LZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!AF(e[0])||!AF(e[1]))throw new Error("coordinates must contain numbers");return hx({type:"Point",coordinates:e},t,r)}function IFt(e,t,r={}){return SF(e.map(n=>LZ(n,t)),r)}function PZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;a<i[i.length-1].length;a++)if(i[i.length-1][a]!==i[0][a])throw new Error("First and last Position are not equivalent.")}return hx({type:"Polygon",coordinates:e},t,r)}function RFt(e,t,r={}){return SF(e.map(n=>PZ(n,t)),r)}function IZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return hx({type:"LineString",coordinates:e},t,r)}function DFt(e,t,r={}){return SF(e.map(n=>IZ(n,t)),r)}function SF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function tDe(e,t,r={}){return hx({type:"MultiLineString",coordinates:e},t,r)}function rDe(e,t,r={}){return hx({type:"MultiPoint",coordinates:e},t,r)}function iDe(e,t,r={}){return hx({type:"MultiPolygon",coordinates:e},t,r)}function FFt(e,t,r={}){return hx({type:"GeometryCollection",geometries:e},t,r)}function zFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function nDe(e,t="kilometers"){let r=CZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function RZ(e,t="kilometers"){let r=CZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function qFt(e,t){return aDe(RZ(e,t))}function OFt(e){let t=e%360;return t<0&&(t+=360),t}function BFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function aDe(e){return e%(2*Math.PI)*180/Math.PI}function NFt(e){return e%360*Math.PI/180}function UFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return nDe(RZ(e,t),r)}function VFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=kZ[t];if(!n)throw new Error("invalid original units");let i=kZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function AF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function GFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function HFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!AF(t))throw new Error("bbox must only contain numbers")})}function jFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=kZ;ic.azimuthToBearing=BFt;ic.bearingToAzimuth=OFt;ic.convertArea=VFt;ic.convertLength=UFt;ic.degreesToRadians=NFt;ic.earthRadius=qp;ic.factors=CZ;ic.feature=hx;ic.featureCollection=SF;ic.geometry=PFt;ic.geometryCollection=FFt;ic.isNumber=AF;ic.isObject=GFt;ic.lengthToDegrees=qFt;ic.lengthToRadians=RZ;ic.lineString=IZ;ic.lineStrings=DFt;ic.multiLineString=tDe;ic.multiPoint=rDe;ic.multiPolygon=iDe;ic.point=LZ;ic.points=IFt;ic.polygon=PZ;ic.polygons=RFt;ic.radiansToDegrees=aDe;ic.radiansToLength=nDe;ic.round=zFt;ic.validateBBox=HFt;ic.validateId=jFt});var kF=ye(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Wv=MF();function hk(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",m=d==="Feature",b=v?e.features.length:1,p=0;p<b;p++){u=v?e.features[p].geometry:m?e.geometry:e,h=u?u.type==="GeometryCollection":!1,s=h?u.geometries.length:1;for(var k=0;k<s;k++){var M=0,T=0;if(o=h?u.geometries[k]:u,o!==null){l=o.coordinates;var L=o.type;switch(c=r&&(L==="Polygon"||L==="MultiPolygon")?1:0,L){case null:break;case"Point":if(t(l,f,p,M,T)===!1)return!1;f++,M++;break;case"LineString":case"MultiPoint":for(n=0;n<l.length;n++){if(t(l[n],f,p,M,T)===!1)return!1;f++,L==="MultiPoint"&&M++}L==="LineString"&&M++;break;case"Polygon":case"MultiLineString":for(n=0;n<l.length;n++){for(i=0;i<l[n].length-c;i++){if(t(l[n][i],f,p,M,T)===!1)return!1;f++}L==="MultiLineString"&&M++,L==="Polygon"&&T++}L==="Polygon"&&M++;break;case"MultiPolygon":for(n=0;n<l.length;n++){for(T=0,i=0;i<l[n].length;i++){for(a=0;a<l[n][i].length-c;a++){if(t(l[n][i][a],f,p,M,T)===!1)return!1;f++}T++}M++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(hk(o.geometries[n],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function WFt(e,t,r,n){var i=r;return hk(e,function(a,o,s,l,u){o===0&&r===void 0?i=a:i=t(i,a,o,s,l,u)},n),i}function oDe(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&t(e.features[r].properties,r)!==!1;r++);break;case"Feature":t(e.properties,0);break}}function XFt(e,t,r){var n=r;return oDe(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}function sDe(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&t(e.features[r],r)!==!1;r++);}function ZFt(e,t,r){var n=r;return sDe(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}function YFt(e){var t=[];return hk(e,function(r){t.push(r)}),t}function DZ(e,t){var r,n,i,a,o,s,l,u,c,f,h=0,d=e.type==="FeatureCollection",v=e.type==="Feature",m=d?e.features.length:1;for(r=0;r<m;r++){for(s=d?e.features[r].geometry:v?e.geometry:e,u=d?e.features[r].properties:v?e.properties:{},c=d?e.features[r].bbox:v?e.bbox:void 0,f=d?e.features[r].id:v?e.id:void 0,l=s?s.type==="GeometryCollection":!1,o=l?s.geometries.length:1,i=0;i<o;i++){if(a=l?s.geometries[i]:s,a===null){if(t(null,h,u,c,f)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(a,h,u,c,f)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(t(a.geometries[n],h,u,c,f)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}h++}}function KFt(e,t,r){var n=r;return DZ(e,function(i,a,o,s,l){a===0&&r===void 0?n=i:n=t(n,i,a,o,s,l)}),n}function EF(e,t){DZ(e,function(r,n,i,a,o){var s=r===null?null:r.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return t(Wv.feature.call(void 0,r,i,{bbox:a,id:o}),n,0)===!1?!1:void 0}var l;switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var u=0;u<r.coordinates.length;u++){var c=r.coordinates[u],f={type:l,coordinates:c};if(t(Wv.feature.call(void 0,f,i),n,u)===!1)return!1}})}function JFt(e,t,r){var n=r;return EF(e,function(i,a,o){a===0&&o===0&&r===void 0?n=i:n=t(n,i,a,o)}),n}function lDe(e,t){EF(e,function(r,n,i){var a=0;if(r.geometry){var o=r.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var s,l=0,u=0,c=0;if(hk(r,function(f,h,d,v,m){if(s===void 0||n>l||v>u||m>c){s=f,l=n,u=v,c=m,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,m,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function $Ft(e,t,r){var n=r,i=!1;return lDe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function uDe(e,t){if(!e)throw new Error("geojson is required");EF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<o.length;s++)if(t(Wv.lineString.call(void 0,o[s],r.properties),n,i,s)===!1)return!1;break}}})}function QFt(e,t,r){var n=r;return uDe(e,function(i,a,o,s){a===0&&r===void 0?n=i:n=t(n,i,a,o,s)}),n}function ezt(e,t){if(t=t||{},!Wv.isObject.call(void 0,t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.segmentIndex||0,o=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),o=o||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":o=o||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=l.length+a-1),Wv.lineString.call(void 0,[l[a],l[a+1]],o,t);case"Polygon":return i<0&&(i=l.length+i),a<0&&(a=l[i].length+a-1),Wv.lineString.call(void 0,[l[i][a],l[i][a+1]],o,t);case"MultiLineString":return n<0&&(n=l.length+n),a<0&&(a=l[n].length+a-1),Wv.lineString.call(void 0,[l[n][a],l[n][a+1]],o,t);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),a<0&&(a=l[n][i].length-a-1),Wv.lineString.call(void 0,[l[n][i][a],l[n][i][a+1]],o,t)}throw new Error("geojson is invalid")}function tzt(e,t){if(t=t||{},!Wv.isObject.call(void 0,t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.coordIndex||0,o=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),o=o||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":o=o||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var l=s.coordinates;switch(s.type){case"Point":return Wv.point.call(void 0,l,o,t);case"MultiPoint":return n<0&&(n=l.length+n),Wv.point.call(void 0,l[n],o,t);case"LineString":return a<0&&(a=l.length+a),Wv.point.call(void 0,l[a],o,t);case"Polygon":return i<0&&(i=l.length+i),a<0&&(a=l[i].length+a),Wv.point.call(void 0,l[i][a],o,t);case"MultiLineString":return n<0&&(n=l.length+n),a<0&&(a=l[n].length+a),Wv.point.call(void 0,l[n][a],o,t);case"MultiPolygon":return n<0&&(n=l.length+n),i<0&&(i=l[n].length+i),a<0&&(a=l[n][i].length-a),Wv.point.call(void 0,l[n][i][a],o,t)}throw new Error("geojson is invalid")}Od.coordAll=YFt;Od.coordEach=hk;Od.coordReduce=WFt;Od.featureEach=sDe;Od.featureReduce=ZFt;Od.findPoint=tzt;Od.findSegment=ezt;Od.flattenEach=EF;Od.flattenReduce=JFt;Od.geomEach=DZ;Od.geomReduce=KFt;Od.lineEach=uDe;Od.lineReduce=QFt;Od.propEach=oDe;Od.propReduce=XFt;Od.segmentEach=lDe;Od.segmentReduce=$Ft});var vDe=ye(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var cDe=MF(),rzt=kF();function dDe(e){return rzt.geomReduce.call(void 0,e,(t,r)=>t+izt(r),0)}function izt(e){let t=0,r;switch(e.type){case"Polygon":return fDe(e.coordinates);case"MultiPolygon":for(r=0;r<e.coordinates.length;r++)t+=fDe(e.coordinates[r]);return t;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function fDe(e){let t=0;if(e&&e.length>0){t+=Math.abs(hDe(e[0]));for(let r=1;r<e.length;r++)t-=Math.abs(hDe(e[r]))}return t}var nzt=cDe.earthRadius*cDe.earthRadius/2,FZ=Math.PI/180;function hDe(e){let t=e.length-1;if(t<=2)return 0;let r=0,n=0;for(;n<t;){let i=e[n],a=e[n+1===t?0:n+1],o=e[n+2>=t?(n+2)%t:n+2],s=i[0]*FZ,l=a[1]*FZ,u=o[0]*FZ;r+=(u-s)*Math.sin(l),n++}return r*nzt}var azt=dDe;CF.area=dDe;CF.default=azt});var gDe=ye(LF=>{"use strict";Object.defineProperty(LF,"__esModule",{value:!0});var ozt=MF(),szt=kF();function pDe(e,t={}){let r=0,n=0,i=0;return szt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),ozt.point.call(void 0,[r/i,n/i],t.properties)}var lzt=pDe;LF.centroid=pDe;LF.default=lzt});var yDe=ye(PF=>{"use strict";Object.defineProperty(PF,"__esModule",{value:!0});var uzt=kF();function mDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return uzt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}var czt=mDe;PF.bbox=mDe;PF.default=czt});var bDe=ye((zmr,xDe)=>{"use strict";var _De={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},fzt=new Set(Object.values(_De));xDe.exports={usaLocationAbbreviations:fzt,usaLocationList:_De}});var dx=ye((qmr,SDe)=>{"use strict";var hzt=qa(),TDe=eDe(),{area:dzt}=vDe(),{centroid:vzt}=gDe(),{bbox:pzt}=yDe(),gzt=YS(),rw=K1(),mzt=Ay(),yzt=zS(),IF=zM(),{usaLocationAbbreviations:_zt,usaLocationList:xzt}=bDe(),wDe=Object.keys(TDe),bzt={"ISO-3":gzt,"USA-states":Tzt,"country names":wzt};function wzt(e){for(var t=0;t<wDe.length;t++){var r=wDe[t],n=new RegExp(TDe[r]);if(n.test(e.trim().toLowerCase()))return r}return rw.log("Unrecognized country name: "+e+"."),!1}function Tzt(e){e=e.trim();let t=_zt.has(e.toUpperCase())?e.toUpperCase():xzt[e.toLowerCase()];return t||(rw.log("Unrecognized US location: "+e+"."),!1)}function Azt(e,t,r){var i;if(!t||typeof t!="string")return!1;let n=bzt[e](t);if(n){let a;if(e==="USA-states"){a=[];for(let o of r)((i=o==null?void 0:o.properties)==null?void 0:i.gu)==="USA"&&a.push(o)}else a=r;for(let o of a)if(o.id===n)return o;rw.log(`Location with id ${n} does not have a matching topojson feature at this resolution.`)}return!1}function Szt(e){var t=e.geometry,r=t.coordinates,n=e.id,i=[],a,o,s,l;function u(c){for(var f=0;f<c.length-1;f++)if(c[f][0]>0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;l<c.length;l++)f[l]=[c[l][0]<0?c[l][0]+360:c[l][0],c[l][1]];i.push(IF.tester(f))}:n==="ATA"?a=function(c){var f=u(c);if(f===null)return i.push(IF.tester(c));var h=new Array(c.length+1),d=0;for(l=0;l<c.length;l++)l>f?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=IF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(IF.tester(c))},t.type){case"MultiPolygon":for(o=0;o<r.length;o++)for(s=0;s<r[o].length;s++)a(r[o][s]);break;case"Polygon":for(o=0;o<r.length;o++)a(r[o]);break}return i}function ADe(e){var t=e.geojson,r=window.PlotlyGeoAssets||{},n=typeof t=="string"?r[t]:t;return mzt(n)?n:(rw.error("Oops ... something went wrong when fetching "+t),!1)}function Mzt(e){var t=e[0].trace,r=ADe(t);if(!r)return!1;var n={},i=[],a;for(a=0;a<t._length;a++){var o=e[a];(o.loc||o.loc===0)&&(n[o.loc]=o)}function s(c){var f=yzt(c,t.featureidkey||"id").get(),h=n[f];if(h){var d=c.geometry;if(d.type==="Polygon"||d.type==="MultiPolygon"){var v={type:"Feature",id:f,geometry:d,properties:{}};v.geometry.coordinates.length>0?v.properties.ct=Ezt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else rw.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;a<l.length;a++)s(l[a]);break;case"Feature":s(r);break;default:return rw.warn(["Invalid GeoJSON type",(r.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var u in n)rw.log(["Location *"+u+"*","does not have a matching feature with id-key","*"+t.featureidkey+"*."].join(" "));return i}function Ezt(e){var t=e.geometry,r;if(t.type==="MultiPolygon")for(var n=t.coordinates,i=0,a=0;a<n.length;a++){var o={type:"Polygon",coordinates:n[a]},s=dzt(o);s>i&&(i=s,r=o)}else r=t;return vzt(r).geometry.coordinates}function kzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){hzt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a<e.length;a++){var o=e[a][0].trace,s=o.geojson;typeof s=="string"&&(t[s]?t[s]==="pending"&&r.push(i(s)):(t[s]="pending",r.push(n(s))))}return r}function Czt(e){return pzt(e)}SDe.exports={locationToFeature:Azt,feature2polygons:Szt,getTraceGeojson:ADe,extractTraceFeature:Mzt,fetchTraceGeoData:kzt,computeBbox:Czt}});var zZ=ye((Omr,kDe)=>{"use strict";var Lzt=qa(),Pzt=So(),MDe=ka(),EDe=sp(),Izt=EDe.stylePoints,Rzt=EDe.styleText;kDe.exports=function(t,r){r&&Dzt(t,r)};function Dzt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),Izt(n,r,e),Rzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=Lzt.select(this),o=i.trace,s=o.line||{};a.call(MDe.stroke,s.color).call(Pzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(MDe.fill,o.fillcolor)})}});var NZ=ye((Bmr,PDe)=>{"use strict";var CDe=qa(),DF=Pr(),Fzt=TF().getTopojsonFeatures,qZ=fx(),RF=dx(),LDe=Mg().findExtremes,BZ=fs().BADNUM,zzt=O0().calcMarkerSize,OZ=Ru(),qzt=zZ();function Ozt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=DF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===BZ&&CDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=CDe.select(this),l=o[0].trace;if(OZ.hasLines(l)||l.fill!=="none"){var u=qZ.calcTraceToLineCoords(o),c=l.fill!=="none"?qZ.makePolygon(u):qZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}OZ.hasMarkers(l)&&s.selectAll("path.point").data(DF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),OZ.hasText(l)&&s.selectAll("g").data(DF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),qzt(e,o)})}function Bzt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(DF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?RF.extractTraceFeature(e):Fzt(r,i.topojson);for(o=0;o<a;o++){s=e[o];var c=l==="geojson-id"?s.fOut:RF.locationToFeature(l,s.loc,u);s.lonlat=c?c.properties.ct:[BZ,BZ]}}var f={padded:!0},h,d;if(n.fitbounds==="geojson"&&r.locationmode==="geojson-id"){var v=RF.computeBbox(RF.getTraceGeojson(r));h=[v[0],v[2]],d=[v[1],v[3]]}else{for(h=new Array(a),d=new Array(a),o=0;o<a;o++)s=e[o],h[o]=s.lonlat[0],d[o]=s.lonlat[1];f.ppad=zzt(r,a)}r._extremes.lon=LDe(n.lonaxis._ax,h,f),r._extremes.lat=LDe(n.lataxis._ax,d,f)}PDe.exports={calcGeoJSON:Bzt,plot:Ozt}});var RDe=ye((Nmr,IDe)=>{"use strict";var Nzt=ef(),Uzt=fs().BADNUM,Vzt=yT(),Gzt=Pr().fillText,Hzt=tw();IDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(k){var M=k.lonlat;if(M[0]===Uzt||u(M))return 1/0;var T=c(M),L=c([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),S=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-S,1-3/S)}if(Nzt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],m=h.mrc||1;t.x0=v[0]-m,t.x1=v[0]+m,t.y0=v[1]-m,t.y1=v[1]+m,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=Vzt(a,h),t.extraText=jzt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function jzt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?Hzt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&Gzt(t,e,c),c.join("<br>")}});var FDe=ye((Umr,DDe)=>{"use strict";DDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var ODe=ye((Vmr,qDe)=>{"use strict";var zDe=Ru(),Wzt=fs().BADNUM;qDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!zDe.hasMarkers(s)&&!zDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h<n.length;h++)n[h].selected=0;else for(h=0;h<n.length;h++)l=n[h],u=l.lonlat,u[0]!==Wzt&&(c=i.c2p(u),f=a.c2p(u),r.contains([c,f],null,h,t)?(o.push({pointNumber:h,lon:u[0],lat:u[1]}),l.selected=1):l.selected=0);return o}});var dk=ye((FF,BDe)=>{(function(e,t){t(typeof FF=="object"&&typeof BDe!="undefined"?FF:e.d3=e.d3||{})})(FF,function(e){"use strict";function t(ke,be){return ke<be?-1:ke>be?1:ke>=be?0:NaN}function r(ke){return ke.length===1&&(ke=n(ke)),{left:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le<me;){var Pe=Le+me>>>1;ke(be[Pe],Be)<0?Le=Pe+1:me=Pe}return Le},right:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le<me;){var Pe=Le+me>>>1;ke(be[Pe],Be)>0?me=Pe:Le=Pe+1}return Le}}}function n(ke){return function(be,Be){return t(ke(be),Be)}}var i=r(t),a=i.right,o=i.left;function s(ke,be){be==null&&(be=l);for(var Be=0,Le=ke.length-1,me=ke[0],Pe=new Array(Le<0?0:Le);Be<Le;)Pe[Be]=be(me,me=ke[++Be]);return Pe}function l(ke,be){return[ke,be]}function u(ke,be,Be){var Le=ke.length,me=be.length,Pe=new Array(Le*me),ce,He,lt,mt;for(Be==null&&(Be=l),ce=lt=0;ce<Le;++ce)for(mt=ke[ce],He=0;He<me;++He,++lt)Pe[lt]=Be(mt,be[He]);return Pe}function c(ke,be){return be<ke?-1:be>ke?1:be>=ke?0:NaN}function f(ke){return ke===null?NaN:+ke}function h(ke,be){var Be=ke.length,Le=0,me=-1,Pe=0,ce,He,lt=0;if(be==null)for(;++me<Be;)isNaN(ce=f(ke[me]))||(He=ce-Pe,Pe+=He/++Le,lt+=He*(ce-Pe));else for(;++me<Be;)isNaN(ce=f(be(ke[me],me,ke)))||(He=ce-Pe,Pe+=He/++Le,lt+=He*(ce-Pe));if(Le>1)return lt/(Le-1)}function d(ke,be){var Be=h(ke,be);return Be&&Math.sqrt(Be)}function v(ke,be){var Be=ke.length,Le=-1,me,Pe,ce;if(be==null){for(;++Le<Be;)if((me=ke[Le])!=null&&me>=me)for(Pe=ce=me;++Le<Be;)(me=ke[Le])!=null&&(Pe>me&&(Pe=me),ce<me&&(ce=me))}else for(;++Le<Be;)if((me=be(ke[Le],Le,ke))!=null&&me>=me)for(Pe=ce=me;++Le<Be;)(me=be(ke[Le],Le,ke))!=null&&(Pe>me&&(Pe=me),ce<me&&(ce=me));return[Pe,ce]}var m=Array.prototype,b=m.slice,p=m.map;function k(ke){return function(){return ke}}function M(ke){return ke}function T(ke,be,Be){ke=+ke,be=+be,Be=(me=arguments.length)<2?(be=ke,ke=0,1):me<3?1:+Be;for(var Le=-1,me=Math.max(0,Math.ceil((be-ke)/Be))|0,Pe=new Array(me);++Le<me;)Pe[Le]=ke+Le*Be;return Pe}var L=Math.sqrt(50),x=Math.sqrt(10),C=Math.sqrt(2);function S(ke,be,Be){var Le,me=-1,Pe,ce,He;if(be=+be,ke=+ke,Be=+Be,ke===be&&Be>0)return[ke];if((Le=be<ke)&&(Pe=ke,ke=be,be=Pe),(He=g(ke,be,Be))===0||!isFinite(He))return[];if(He>0)for(ke=Math.ceil(ke/He),be=Math.floor(be/He),ce=new Array(Pe=Math.ceil(be-ke+1));++me<Pe;)ce[me]=(ke+me)*He;else for(ke=Math.floor(ke*He),be=Math.ceil(be*He),ce=new Array(Pe=Math.ceil(ke-be+1));++me<Pe;)ce[me]=(ke-me)/He;return Le&&ce.reverse(),ce}function g(ke,be,Be){var Le=(be-ke)/Math.max(0,Be),me=Math.floor(Math.log(Le)/Math.LN10),Pe=Le/Math.pow(10,me);return me>=0?(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)}function P(ke,be,Be){var Le=Math.abs(be-ke)/Math.max(0,Be),me=Math.pow(10,Math.floor(Math.log(Le)/Math.LN10)),Pe=Le/me;return Pe>=L?me*=10:Pe>=x?me*=5:Pe>=C&&(me*=2),be<ke?-me:me}function E(ke){return Math.ceil(Math.log(ke.length)/Math.LN2)+1}function z(){var ke=M,be=v,Be=E;function Le(me){var Pe,ce=me.length,He,lt=new Array(ce);for(Pe=0;Pe<ce;++Pe)lt[Pe]=ke(me[Pe],Pe,me);var mt=be(lt),Ht=mt[0],at=mt[1],ct=Be(lt,Ht,at);Array.isArray(ct)||(ct=P(Ht,at,ct),ct=T(Math.ceil(Ht/ct)*ct,at,ct));for(var ar=ct.length;ct[0]<=Ht;)ct.shift(),--ar;for(;ct[ar-1]>at;)ct.pop(),--ar;var Vt=new Array(ar+1),rr;for(Pe=0;Pe<=ar;++Pe)rr=Vt[Pe]=[],rr.x0=Pe>0?ct[Pe-1]:Ht,rr.x1=Pe<ar?ct[Pe]:at;for(Pe=0;Pe<ce;++Pe)He=lt[Pe],Ht<=He&&He<=at&&Vt[a(ct,He,0,ar)].push(me[Pe]);return Vt}return Le.value=function(me){return arguments.length?(ke=typeof me=="function"?me:k(me),Le):ke},Le.domain=function(me){return arguments.length?(be=typeof me=="function"?me:k([me[0],me[1]]),Le):be},Le.thresholds=function(me){return arguments.length?(Be=typeof me=="function"?me:Array.isArray(me)?k(b.call(me)):k(me),Le):Be},Le}function q(ke,be,Be){if(Be==null&&(Be=f),!!(Le=ke.length)){if((be=+be)<=0||Le<2)return+Be(ke[0],0,ke);if(be>=1)return+Be(ke[Le-1],Le-1,ke);var Le,me=(Le-1)*be,Pe=Math.floor(me),ce=+Be(ke[Pe],Pe,ke),He=+Be(ke[Pe+1],Pe+1,ke);return ce+(He-ce)*(me-Pe)}}function V(ke,be,Be){return ke=p.call(ke,f).sort(t),Math.ceil((Be-be)/(2*(q(ke,.75)-q(ke,.25))*Math.pow(ke.length,-1/3)))}function G(ke,be,Be){return Math.ceil((Be-be)/(3.5*d(ke)*Math.pow(ke.length,-1/3)))}function Z(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le<Be;)if((me=ke[Le])!=null&&me>=me)for(Pe=me;++Le<Be;)(me=ke[Le])!=null&&me>Pe&&(Pe=me)}else for(;++Le<Be;)if((me=be(ke[Le],Le,ke))!=null&&me>=me)for(Pe=me;++Le<Be;)(me=be(ke[Le],Le,ke))!=null&&me>Pe&&(Pe=me);return Pe}function j(ke,be){var Be=ke.length,Le=Be,me=-1,Pe,ce=0;if(be==null)for(;++me<Be;)isNaN(Pe=f(ke[me]))?--Le:ce+=Pe;else for(;++me<Be;)isNaN(Pe=f(be(ke[me],me,ke)))?--Le:ce+=Pe;if(Le)return ce/Le}function N(ke,be){var Be=ke.length,Le=-1,me,Pe=[];if(be==null)for(;++Le<Be;)isNaN(me=f(ke[Le]))||Pe.push(me);else for(;++Le<Be;)isNaN(me=f(be(ke[Le],Le,ke)))||Pe.push(me);return q(Pe.sort(t),.5)}function H(ke){for(var be=ke.length,Be,Le=-1,me=0,Pe,ce;++Le<be;)me+=ke[Le].length;for(Pe=new Array(me);--be>=0;)for(ce=ke[be],Be=ce.length;--Be>=0;)Pe[--me]=ce[Be];return Pe}function ie(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le<Be;)if((me=ke[Le])!=null&&me>=me)for(Pe=me;++Le<Be;)(me=ke[Le])!=null&&Pe>me&&(Pe=me)}else for(;++Le<Be;)if((me=be(ke[Le],Le,ke))!=null&&me>=me)for(Pe=me;++Le<Be;)(me=be(ke[Le],Le,ke))!=null&&Pe>me&&(Pe=me);return Pe}function ae(ke,be){for(var Be=be.length,Le=new Array(Be);Be--;)Le[Be]=ke[be[Be]];return Le}function _e(ke,be){if(Be=ke.length){var Be,Le=0,me=0,Pe,ce=ke[me];for(be==null&&(be=t);++Le<Be;)(be(Pe=ke[Le],ce)<0||be(ce,ce)!==0)&&(ce=Pe,me=Le);if(be(ce,ce)===0)return me}}function Ee(ke,be,Be){for(var Le=(Be==null?ke.length:Be)-(be=be==null?0:+be),me,Pe;Le;)Pe=Math.random()*Le--|0,me=ke[Le+be],ke[Le+be]=ke[Pe+be],ke[Pe+be]=me;return ke}function Ce(ke,be){var Be=ke.length,Le=-1,me,Pe=0;if(be==null)for(;++Le<Be;)(me=+ke[Le])&&(Pe+=me);else for(;++Le<Be;)(me=+be(ke[Le],Le,ke))&&(Pe+=me);return Pe}function ge(ke){if(!(Pe=ke.length))return[];for(var be=-1,Be=ie(ke,re),Le=new Array(Be);++be<Be;)for(var me=-1,Pe,ce=Le[be]=new Array(Pe);++me<Pe;)ce[me]=ke[me][be];return Le}function re(ke){return ke.length}function Se(){return ge(arguments)}e.bisect=a,e.bisectRight=a,e.bisectLeft=o,e.ascending=t,e.bisector=r,e.cross=u,e.descending=c,e.deviation=d,e.extent=v,e.histogram=z,e.thresholdFreedmanDiaconis=V,e.thresholdScott=G,e.thresholdSturges=E,e.max=Z,e.mean=j,e.median=N,e.merge=H,e.min=ie,e.pairs=s,e.permute=ae,e.quantile=q,e.range=T,e.scan=_e,e.shuffle=Ee,e.sum=Ce,e.ticks=S,e.tickIncrement=g,e.tickStep=P,e.transpose=ge,e.variance=h,e.zip=Se,Object.defineProperty(e,"__esModule",{value:!0})})});var UZ=ye((zF,NDe)=>{(function(e,t){typeof zF=="object"&&typeof NDe!="undefined"?t(zF,dk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(zF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(kt){a(i,kt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(kt,Zt,Er){var xr=kt.s=Zt+Er,Kr=xr-Zt,Mi=xr-Kr;kt.t=Zt-Mi+(Er-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,m=Math.atan,b=Math.atan2,p=Math.cos,k=Math.ceil,M=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},S=Math.sqrt,g=Math.tan;function P(kt){return kt>1?0:kt<-1?l:Math.acos(kt)}function E(kt){return kt>1?u:kt<-1?-u:Math.asin(kt)}function z(kt){return(kt=x(kt/2))*kt}function q(){}function V(kt,Zt){kt&&Z.hasOwnProperty(kt.type)&&Z[kt.type](kt,Zt)}var G={Feature:function(kt,Zt){V(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr<Kr;)V(Er[xr].geometry,Zt)}},Z={Sphere:function(kt,Zt){Zt.sphere()},Point:function(kt,Zt){kt=kt.coordinates,Zt.point(kt[0],kt[1],kt[2])},MultiPoint:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)kt=Er[xr],Zt.point(kt[0],kt[1],kt[2])},LineString:function(kt,Zt){j(kt.coordinates,Zt,0)},MultiLineString:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)j(Er[xr],Zt,0)},Polygon:function(kt,Zt){N(kt.coordinates,Zt)},MultiPolygon:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)N(Er[xr],Zt)},GeometryCollection:function(kt,Zt){for(var Er=kt.geometries,xr=-1,Kr=Er.length;++xr<Kr;)V(Er[xr],Zt)}};function j(kt,Zt,Er){var xr=-1,Kr=kt.length-Er,Mi;for(Zt.lineStart();++xr<Kr;)Mi=kt[xr],Zt.point(Mi[0],Mi[1],Mi[2]);Zt.lineEnd()}function N(kt,Zt){var Er=-1,xr=kt.length;for(Zt.polygonStart();++Er<xr;)j(kt[Er],Zt,1);Zt.polygonEnd()}function H(kt,Zt){kt&&G.hasOwnProperty(kt.type)?G[kt.type](kt,Zt):V(kt,Zt)}var ie=r(),ae=r(),_e,Ee,Ce,ge,re,Se={point:q,lineStart:q,lineEnd:q,polygonStart:function(){ie.reset(),Se.lineStart=ke,Se.lineEnd=be},polygonEnd:function(){var kt=+ie;ae.add(kt<0?f+kt:kt),this.lineStart=this.lineEnd=this.point=q},sphere:function(){ae.add(f)}};function ke(){Se.point=Be}function be(){Le(_e,Ee)}function Be(kt,Zt){Se.point=Le,_e=kt,Ee=Zt,kt*=d,Zt*=d,Ce=kt,ge=p(Zt=Zt/2+c),re=x(Zt)}function Le(kt,Zt){kt*=d,Zt*=d,Zt=Zt/2+c;var Er=kt-Ce,xr=Er>=0?1:-1,Kr=xr*Er,Mi=p(Zt),Wi=x(Zt),dn=re*Wi,wn=ge*Mi+dn*p(Kr),On=dn*xr*x(Kr);ie.add(b(On,wn)),Ce=kt,ge=Mi,re=Wi}function me(kt){return ae.reset(),H(kt,Se),ae*2}function Pe(kt){return[b(kt[1],kt[0]),E(kt[2])]}function ce(kt){var Zt=kt[0],Er=kt[1],xr=p(Er);return[xr*p(Zt),xr*x(Zt),x(Er)]}function He(kt,Zt){return kt[0]*Zt[0]+kt[1]*Zt[1]+kt[2]*Zt[2]}function lt(kt,Zt){return[kt[1]*Zt[2]-kt[2]*Zt[1],kt[2]*Zt[0]-kt[0]*Zt[2],kt[0]*Zt[1]-kt[1]*Zt[0]]}function mt(kt,Zt){kt[0]+=Zt[0],kt[1]+=Zt[1],kt[2]+=Zt[2]}function Ht(kt,Zt){return[kt[0]*Zt,kt[1]*Zt,kt[2]*Zt]}function at(kt){var Zt=S(kt[0]*kt[0]+kt[1]*kt[1]+kt[2]*kt[2]);kt[0]/=Zt,kt[1]/=Zt,kt[2]/=Zt}var ct,ar,Vt,rr,tt,je,Ue,Ae,rt=r(),St,Tt,dt={point:Et,lineStart:jt,lineEnd:or,polygonStart:function(){dt.point=mr,dt.lineStart=Ar,dt.lineEnd=ei,rt.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),dt.point=Et,dt.lineStart=jt,dt.lineEnd=or,ie<0?(ct=-(Vt=180),ar=-(rr=90)):rt>o?rr=90:rt<-o&&(ar=-90),Tt[0]=ct,Tt[1]=Vt},sphere:function(){ct=-(Vt=180),ar=-(rr=90)}};function Et(kt,Zt){St.push(Tt=[ct=kt,Vt=kt]),Zt<ar&&(ar=Zt),Zt>rr&&(rr=Zt)}function pt(kt,Zt){var Er=ce([kt*d,Zt*d]);if(Ae){var xr=lt(Ae,Er),Kr=[xr[1],-xr[0],0],Mi=lt(Kr,xr);at(Mi),Mi=Pe(Mi);var Wi=kt-tt,dn=Wi>0?1:-1,wn=Mi[0]*h*dn,On,Yi=v(Wi)>180;Yi^(dn*tt<wn&&wn<dn*kt)?(On=Mi[1]*h,On>rr&&(rr=On)):(wn=(wn+360)%360-180,Yi^(dn*tt<wn&&wn<dn*kt)?(On=-Mi[1]*h,On<ar&&(ar=On)):(Zt<ar&&(ar=Zt),Zt>rr&&(rr=Zt))),Yi?kt<tt?qr(ct,kt)>qr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt):Vt>=ct?(kt<ct&&(ct=kt),kt>Vt&&(Vt=kt)):kt>tt?qr(ct,kt)>qr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt)}else St.push(Tt=[ct=kt,Vt=kt]);Zt<ar&&(ar=Zt),Zt>rr&&(rr=Zt),Ae=Er,tt=kt}function jt(){dt.point=pt}function or(){Tt[0]=ct,Tt[1]=Vt,dt.point=Et,Ae=null}function mr(kt,Zt){if(Ae){var Er=kt-tt;rt.add(v(Er)>180?Er+(Er>0?360:-360):Er)}else je=kt,Ue=Zt;Se.point(kt,Zt),pt(kt,Zt)}function Ar(){Se.lineStart()}function ei(){mr(je,Ue),Se.lineEnd(),v(rt)>o&&(ct=-(Vt=180)),Tt[0]=ct,Tt[1]=Vt,Ae=null}function qr(kt,Zt){return(Zt-=kt)<0?Zt+360:Zt}function jr(kt,Zt){return kt[0]-Zt[0]}function gt(kt,Zt){return kt[0]<=kt[1]?kt[0]<=Zt&&Zt<=kt[1]:Zt<kt[0]||kt[1]<Zt}function Ge(kt){var Zt,Er,xr,Kr,Mi,Wi,dn;if(rr=Vt=-(ct=ar=1/0),St=[],H(kt,dt),Er=St.length){for(St.sort(jr),Zt=1,xr=St[0],Mi=[xr];Zt<Er;++Zt)Kr=St[Zt],gt(xr,Kr[0])||gt(xr,Kr[1])?(qr(xr[0],Kr[1])>qr(xr[0],xr[1])&&(xr[1]=Kr[1]),qr(Kr[0],xr[1])>qr(xr[0],xr[1])&&(xr[0]=Kr[0])):Mi.push(xr=Kr);for(Wi=-1/0,Er=Mi.length-1,Zt=0,xr=Mi[Er];Zt<=Er;xr=Kr,++Zt)Kr=Mi[Zt],(dn=qr(xr[1],Kr[0]))>Wi&&(Wi=dn,ct=Kr[0],Vt=xr[1])}return St=Tt=null,ct===1/0||ar===1/0?[[NaN,NaN],[NaN,NaN]]:[[ct,ar],[Vt,rr]]}var Je,We,et,xt,At,Kt,Qt,Mr,Gr,Ir,Yr,_i,Pi,ai,mi,un,Fn={sphere:q,point:An,lineStart:Qn,lineEnd:Jn,polygonStart:function(){Fn.lineStart=Gt,Fn.lineEnd=wt},polygonEnd:function(){Fn.lineStart=Qn,Fn.lineEnd=Jn}};function An(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);Hn(Er*p(kt),Er*x(kt),x(Zt))}function Hn(kt,Zt,Er){++Je,et+=(kt-et)/Je,xt+=(Zt-xt)/Je,At+=(Er-At)/Je}function Qn(){Fn.point=Vi}function Vi(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Fn.point=Kn,Hn(ai,mi,un)}function Kn(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Wi=b(S((Wi=mi*Mi-un*Kr)*Wi+(Wi=un*xr-ai*Mi)*Wi+(Wi=ai*Kr-mi*xr)*Wi),ai*xr+mi*Kr+un*Mi);We+=Wi,Kt+=Wi*(ai+(ai=xr)),Qt+=Wi*(mi+(mi=Kr)),Mr+=Wi*(un+(un=Mi)),Hn(ai,mi,un)}function Jn(){Fn.point=An}function Gt(){Fn.point=tr}function wt(){ir(_i,Pi),Fn.point=An}function tr(kt,Zt){_i=kt,Pi=Zt,kt*=d,Zt*=d,Fn.point=ir;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Hn(ai,mi,un)}function ir(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Wi=mi*Mi-un*Kr,dn=un*xr-ai*Mi,wn=ai*Kr-mi*xr,On=S(Wi*Wi+dn*dn+wn*wn),Yi=E(On),$i=On&&-Yi/On;Gr+=$i*Wi,Ir+=$i*dn,Yr+=$i*wn,We+=Yi,Kt+=Yi*(ai+(ai=xr)),Qt+=Yi*(mi+(mi=Kr)),Mr+=Yi*(un+(un=Mi)),Hn(ai,mi,un)}function wr(kt){Je=We=et=xt=At=Kt=Qt=Mr=Gr=Ir=Yr=0,H(kt,Fn);var Zt=Gr,Er=Ir,xr=Yr,Kr=Zt*Zt+Er*Er+xr*xr;return Kr<s&&(Zt=Kt,Er=Qt,xr=Mr,We<o&&(Zt=et,Er=xt,xr=At),Kr=Zt*Zt+Er*Er+xr*xr,Kr<s)?[NaN,NaN]:[b(Er,Zt)*h,E(xr/S(Kr))*h]}function Xr(kt){return function(){return kt}}function ti(kt,Zt){function Er(xr,Kr){return xr=kt(xr,Kr),Zt(xr[0],xr[1])}return kt.invert&&Zt.invert&&(Er.invert=function(xr,Kr){return xr=Zt.invert(xr,Kr),xr&&kt.invert(xr[0],xr[1])}),Er}function $r(kt,Zt){return[v(kt)>l?kt+Math.round(-kt/f)*f:kt,Zt]}$r.invert=$r;function Ri(kt,Zt,Er){return(kt%=f)?Zt||Er?ti(en(kt),fn(Zt,Er)):en(kt):Zt||Er?fn(Zt,Er):$r}function Zi(kt){return function(Zt,Er){return Zt+=kt,[Zt>l?Zt-f:Zt<-l?Zt+f:Zt,Er]}}function en(kt){var Zt=Zi(kt);return Zt.invert=Zi(-kt),Zt}function fn(kt,Zt){var Er=p(kt),xr=x(kt),Kr=p(Zt),Mi=x(Zt);function Wi(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Er+Yi*xr;return[b($i*Kr-Fi*Mi,Yi*Er-an*xr),E(Fi*Kr+$i*Mi)]}return Wi.invert=function(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Kr-$i*Mi;return[b($i*Kr+an*Mi,Yi*Er+Fi*xr),E(Fi*Er-Yi*xr)]},Wi}function yn(kt){kt=Ri(kt[0]*d,kt[1]*d,kt.length>2?kt[2]*d:0);function Zt(Er){return Er=kt(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er}return Zt.invert=function(Er){return Er=kt.invert(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er},Zt}function Mn(kt,Zt,Er,xr,Kr,Mi){if(Er){var Wi=p(Zt),dn=x(Zt),wn=xr*Er;Kr==null?(Kr=Zt+xr*f,Mi=Zt-wn/2):(Kr=Ba(Wi,Kr),Mi=Ba(Wi,Mi),(xr>0?Kr<Mi:Kr>Mi)&&(Kr+=xr*f));for(var On,Yi=Kr;xr>0?Yi>Mi:Yi<Mi;Yi-=wn)On=Pe([Wi,-dn*p(Yi),-dn*x(Yi)]),kt.point(On[0],On[1])}}function Ba(kt,Zt){Zt=ce(Zt),Zt[0]-=kt,at(Zt);var Er=P(-Zt[1]);return((-Zt[2]<0?-Er:Er)+f-o)%f}function ua(){var kt=Xr([0,0]),Zt=Xr(90),Er=Xr(6),xr,Kr,Mi={point:Wi};function Wi(wn,On){xr.push(wn=Kr(wn,On)),wn[0]*=h,wn[1]*=h}function dn(){var wn=kt.apply(this,arguments),On=Zt.apply(this,arguments)*d,Yi=Er.apply(this,arguments)*d;return xr=[],Kr=Ri(-wn[0]*d,-wn[1]*d,0).invert,Mn(Mi,On,Yi,1),wn={type:"Polygon",coordinates:[xr]},xr=Kr=null,wn}return dn.center=function(wn){return arguments.length?(kt=typeof wn=="function"?wn:Xr([+wn[0],+wn[1]]),dn):kt},dn.radius=function(wn){return arguments.length?(Zt=typeof wn=="function"?wn:Xr(+wn),dn):Zt},dn.precision=function(wn){return arguments.length?(Er=typeof wn=="function"?wn:Xr(+wn),dn):Er},dn}function ma(){var kt=[],Zt;return{point:function(Er,xr,Kr){Zt.push([Er,xr,Kr])},lineStart:function(){kt.push(Zt=[])},lineEnd:q,rejoin:function(){kt.length>1&&kt.push(kt.pop().concat(kt.shift()))},result:function(){var Er=kt;return kt=[],Zt=null,Er}}}function Wa(kt,Zt){return v(kt[0]-Zt[0])<o&&v(kt[1]-Zt[1])<o}function Fa(kt,Zt,Er,xr){this.x=kt,this.z=Zt,this.o=Er,this.e=xr,this.v=!1,this.n=this.p=null}function Xo(kt,Zt,Er,xr,Kr){var Mi=[],Wi=[],dn,wn;if(kt.forEach(function(ta){if(!((Ca=ta.length-1)<=0)){var Ca,Ra=ta[0],La=ta[Ca],Ua;if(Wa(Ra,La)){if(!Ra[2]&&!La[2]){for(Kr.lineStart(),dn=0;dn<Ca;++dn)Kr.point((Ra=ta[dn])[0],Ra[1]);Kr.lineEnd();return}La[0]+=2*o}Mi.push(Ua=new Fa(Ra,ta,null,!0)),Wi.push(Ua.o=new Fa(Ra,null,Ua,!1)),Mi.push(Ua=new Fa(La,ta,null,!1)),Wi.push(Ua.o=new Fa(La,null,Ua,!0))}}),!!Mi.length){for(Wi.sort(Zt),da(Mi),da(Wi),dn=0,wn=Wi.length;dn<wn;++dn)Wi[dn].e=Er=!Er;for(var On=Mi[0],Yi,$i;;){for(var an=On,Fi=!0;an.v;)if((an=an.n)===On)return;Yi=an.z,Kr.lineStart();do{if(an.v=an.o.v=!0,an.e){if(Fi)for(dn=0,wn=Yi.length;dn<wn;++dn)Kr.point(($i=Yi[dn])[0],$i[1]);else xr(an.x,an.n.x,1,Kr);an=an.n}else{if(Fi)for(Yi=an.p.z,dn=Yi.length-1;dn>=0;--dn)Kr.point(($i=Yi[dn])[0],$i[1]);else xr(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Yi=an.z,Fi=!Fi}while(!an.v);Kr.lineEnd()}}}function da(kt){if(Zt=kt.length){for(var Zt,Er=0,xr=kt[0],Kr;++Er<Zt;)xr.n=Kr=kt[Er],Kr.p=xr,xr=Kr;xr.n=Kr=kt[0],Kr.p=xr}}var jn=r();function Ha(kt){return v(kt[0])<=l?kt[0]:C(kt[0])*((v(kt[0])+l)%f-l)}function vo(kt,Zt){var Er=Ha(Zt),xr=Zt[1],Kr=x(xr),Mi=[x(Er),-p(Er),0],Wi=0,dn=0;jn.reset(),Kr===1?xr=u+o:Kr===-1&&(xr=-u-o);for(var wn=0,On=kt.length;wn<On;++wn)if($i=(Yi=kt[wn]).length)for(var Yi,$i,an=Yi[$i-1],Fi=Ha(an),ta=an[1]/2+c,Ca=x(ta),Ra=p(ta),La=0;La<$i;++La,Fi=Zn,Ca=Ka,Ra=bo,an=Ua){var Ua=Yi[La],Zn=Ha(Ua),Dn=Ua[1]/2+c,Ka=x(Dn),bo=p(Dn),Zo=Zn-Fi,Ss=Zo>=0?1:-1,as=Ss*Zo,ws=as>l,Ho=Ca*Ka;if(jn.add(b(Ho*Ss*x(as),Ra*bo+Ho*p(as))),Wi+=ws?Zo+Ss*f:Zo,ws^Fi>=Er^Zn>=Er){var ml=lt(ce(an),ce(Ua));at(ml);var Ws=lt(Mi,ml);at(Ws);var Ls=(ws^Zo>=0?-1:1)*E(Ws[2]);(xr>Ls||xr===Ls&&(ml[0]||ml[1]))&&(dn+=ws^Zo>=0?1:-1)}}return(Wi<-o||Wi<o&&jn<-o)^dn&1}function Gn(kt,Zt,Er,xr){return function(Kr){var Mi=Zt(Kr),Wi=ma(),dn=Zt(Wi),wn=!1,On,Yi,$i,an={point:Fi,lineStart:Ca,lineEnd:Ra,polygonStart:function(){an.point=La,an.lineStart=Ua,an.lineEnd=Zn,Yi=[],On=[]},polygonEnd:function(){an.point=Fi,an.lineStart=Ca,an.lineEnd=Ra,Yi=t.merge(Yi);var Dn=vo(On,xr);Yi.length?(wn||(Kr.polygonStart(),wn=!0),Xo(Yi,Sr,Dn,Er,Kr)):Dn&&(wn||(Kr.polygonStart(),wn=!0),Kr.lineStart(),Er(null,null,1,Kr),Kr.lineEnd()),wn&&(Kr.polygonEnd(),wn=!1),Yi=On=null},sphere:function(){Kr.polygonStart(),Kr.lineStart(),Er(null,null,1,Kr),Kr.lineEnd(),Kr.polygonEnd()}};function Fi(Dn,Ka){kt(Dn,Ka)&&Kr.point(Dn,Ka)}function ta(Dn,Ka){Mi.point(Dn,Ka)}function Ca(){an.point=ta,Mi.lineStart()}function Ra(){an.point=Fi,Mi.lineEnd()}function La(Dn,Ka){$i.push([Dn,Ka]),dn.point(Dn,Ka)}function Ua(){dn.lineStart(),$i=[]}function Zn(){La($i[0][0],$i[0][1]),dn.lineEnd();var Dn=dn.clean(),Ka=Wi.result(),bo,Zo=Ka.length,Ss,as,ws;if($i.pop(),On.push($i),$i=null,!!Zo){if(Dn&1){if(as=Ka[0],(Ss=as.length-1)>0){for(wn||(Kr.polygonStart(),wn=!0),Kr.lineStart(),bo=0;bo<Ss;++bo)Kr.point((ws=as[bo])[0],ws[1]);Kr.lineEnd()}return}Zo>1&&Dn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Yi.push(Ka.filter(Ct))}}return an}}function Ct(kt){return kt.length>1}function Sr(kt,Zt){return((kt=kt.x)[0]<0?kt[1]-u-o:u-kt[1])-((Zt=Zt.x)[0]<0?Zt[1]-u-o:u-Zt[1])}var Jr=Gn(function(){return!0},hi,Sn,[-l,-u]);function hi(kt){var Zt=NaN,Er=NaN,xr=NaN,Kr;return{lineStart:function(){kt.lineStart(),Kr=1},point:function(Mi,Wi){var dn=Mi>0?l:-l,wn=v(Mi-Zt);v(wn-l)<o?(kt.point(Zt,Er=(Er+Wi)/2>0?u:-u),kt.point(xr,Er),kt.lineEnd(),kt.lineStart(),kt.point(dn,Er),kt.point(Mi,Er),Kr=0):xr!==dn&&wn>=l&&(v(Zt-xr)<o&&(Zt-=xr*o),v(Mi-dn)<o&&(Mi-=dn*o),Er=hn(Zt,Er,Mi,Wi),kt.point(xr,Er),kt.lineEnd(),kt.lineStart(),kt.point(dn,Er),Kr=0),kt.point(Zt=Mi,Er=Wi),xr=dn},lineEnd:function(){kt.lineEnd(),Zt=Er=NaN},clean:function(){return 2-Kr}}}function hn(kt,Zt,Er,xr){var Kr,Mi,Wi=x(kt-Er);return v(Wi)>o?m((x(Zt)*(Mi=p(xr))*x(Er)-x(xr)*(Kr=p(Zt))*x(kt))/(Kr*Mi*Wi)):(Zt+xr)/2}function Sn(kt,Zt,Er,xr){var Kr;if(kt==null)Kr=Er*u,xr.point(-l,Kr),xr.point(0,Kr),xr.point(l,Kr),xr.point(l,0),xr.point(l,-Kr),xr.point(0,-Kr),xr.point(-l,-Kr),xr.point(-l,0),xr.point(-l,Kr);else if(v(kt[0]-Zt[0])>o){var Mi=kt[0]<Zt[0]?l:-l;Kr=Er*Mi/2,xr.point(-Mi,Kr),xr.point(0,Kr),xr.point(Mi,Kr)}else xr.point(Zt[0],Zt[1])}function En(kt){var Zt=p(kt),Er=6*d,xr=Zt>0,Kr=v(Zt)>o;function Mi(Yi,$i,an,Fi){Mn(Fi,kt,Er,an,Yi,$i)}function Wi(Yi,$i){return p(Yi)*p($i)>Zt}function dn(Yi){var $i,an,Fi,ta,Ca;return{lineStart:function(){ta=Fi=!1,Ca=1},point:function(Ra,La){var Ua=[Ra,La],Zn,Dn=Wi(Ra,La),Ka=xr?Dn?0:On(Ra,La):Dn?On(Ra+(Ra<0?l:-l),La):0;if(!$i&&(ta=Fi=Dn)&&Yi.lineStart(),Dn!==Fi&&(Zn=wn($i,Ua),(!Zn||Wa($i,Zn)||Wa(Ua,Zn))&&(Ua[2]=1)),Dn!==Fi)Ca=0,Dn?(Yi.lineStart(),Zn=wn(Ua,$i),Yi.point(Zn[0],Zn[1])):(Zn=wn($i,Ua),Yi.point(Zn[0],Zn[1],2),Yi.lineEnd()),$i=Zn;else if(Kr&&$i&&xr^Dn){var bo;!(Ka&an)&&(bo=wn(Ua,$i,!0))&&(Ca=0,xr?(Yi.lineStart(),Yi.point(bo[0][0],bo[0][1]),Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd()):(Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd(),Yi.lineStart(),Yi.point(bo[0][0],bo[0][1],3)))}Dn&&(!$i||!Wa($i,Ua))&&Yi.point(Ua[0],Ua[1]),$i=Ua,Fi=Dn,an=Ka},lineEnd:function(){Fi&&Yi.lineEnd(),$i=null},clean:function(){return Ca|(ta&&Fi)<<1}}}function wn(Yi,$i,an){var Fi=ce(Yi),ta=ce($i),Ca=[1,0,0],Ra=lt(Fi,ta),La=He(Ra,Ra),Ua=Ra[0],Zn=La-Ua*Ua;if(!Zn)return!an&&Yi;var Dn=Zt*La/Zn,Ka=-Zt*Ua/Zn,bo=lt(Ca,Ra),Zo=Ht(Ca,Dn),Ss=Ht(Ra,Ka);mt(Zo,Ss);var as=bo,ws=He(Zo,as),Ho=He(as,as),ml=ws*ws-Ho*(He(Zo,Zo)-1);if(!(ml<0)){var Ws=S(ml),Ls=Ht(as,(-ws-Ws)/Ho);if(mt(Ls,Zo),Ls=Pe(Ls),!an)return Ls;var va=Yi[0],no=$i[0],ys=Yi[1],rs=$i[1],Ql;no<va&&(Ql=va,va=no,no=Ql);var Cu=no-va,Yu=v(Cu-l)<o,Nc=Yu||Cu<o;if(!Yu&&rs<ys&&(Ql=ys,ys=rs,rs=Ql),Nc?Yu?ys+rs>0^Ls[1]<(v(Ls[0]-va)<o?ys:rs):ys<=Ls[1]&&Ls[1]<=rs:Cu>l^(va<=Ls[0]&&Ls[0]<=no)){var pu=Ht(as,(-ws+Ws)/Ho);return mt(pu,Zo),[Ls,Pe(pu)]}}}function On(Yi,$i){var an=xr?kt:l-kt,Fi=0;return Yi<-an?Fi|=1:Yi>an&&(Fi|=2),$i<-an?Fi|=4:$i>an&&(Fi|=8),Fi}return Gn(Wi,dn,Mi,xr?[0,-kt]:[-l,kt-l])}function ki(kt,Zt,Er,xr,Kr,Mi){var Wi=kt[0],dn=kt[1],wn=Zt[0],On=Zt[1],Yi=0,$i=1,an=wn-Wi,Fi=On-dn,ta;if(ta=Er-Wi,!(!an&&ta>0)){if(ta/=an,an<0){if(ta<Yi)return;ta<$i&&($i=ta)}else if(an>0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Kr-Wi,!(!an&&ta<0)){if(ta/=an,an<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(an>0){if(ta<Yi)return;ta<$i&&($i=ta)}if(ta=xr-dn,!(!Fi&&ta>0)){if(ta/=Fi,Fi<0){if(ta<Yi)return;ta<$i&&($i=ta)}else if(Fi>0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Mi-dn,!(!Fi&&ta<0)){if(ta/=Fi,Fi<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(Fi>0){if(ta<Yi)return;ta<$i&&($i=ta)}return Yi>0&&(kt[0]=Wi+Yi*an,kt[1]=dn+Yi*Fi),$i<1&&(Zt[0]=Wi+$i*an,Zt[1]=dn+$i*Fi),!0}}}}}var _n=1e9,ya=-_n;function ea(kt,Zt,Er,xr){function Kr(On,Yi){return kt<=On&&On<=Er&&Zt<=Yi&&Yi<=xr}function Mi(On,Yi,$i,an){var Fi=0,ta=0;if(On==null||(Fi=Wi(On,$i))!==(ta=Wi(Yi,$i))||wn(On,Yi)<0^$i>0)do an.point(Fi===0||Fi===3?kt:Er,Fi>1?xr:Zt);while((Fi=(Fi+$i+4)%4)!==ta);else an.point(Yi[0],Yi[1])}function Wi(On,Yi){return v(On[0]-kt)<o?Yi>0?0:3:v(On[0]-Er)<o?Yi>0?2:1:v(On[1]-Zt)<o?Yi>0?1:0:Yi>0?3:2}function dn(On,Yi){return wn(On.x,Yi.x)}function wn(On,Yi){var $i=Wi(On,1),an=Wi(Yi,1);return $i!==an?$i-an:$i===0?Yi[1]-On[1]:$i===1?On[0]-Yi[0]:$i===2?On[1]-Yi[1]:Yi[0]-On[0]}return function(On){var Yi=On,$i=ma(),an,Fi,ta,Ca,Ra,La,Ua,Zn,Dn,Ka,bo,Zo={point:Ss,lineStart:ml,lineEnd:Ws,polygonStart:ws,polygonEnd:Ho};function Ss(va,no){Kr(va,no)&&Yi.point(va,no)}function as(){for(var va=0,no=0,ys=Fi.length;no<ys;++no)for(var rs=Fi[no],Ql=1,Cu=rs.length,Yu=rs[0],Nc,pu,Uc=Yu[0],xu=Yu[1];Ql<Cu;++Ql)Nc=Uc,pu=xu,Yu=rs[Ql],Uc=Yu[0],xu=Yu[1],pu<=xr?xu>xr&&(Uc-Nc)*(xr-pu)>(xu-pu)*(kt-Nc)&&++va:xu<=xr&&(Uc-Nc)*(xr-pu)<(xu-pu)*(kt-Nc)&&--va;return va}function ws(){Yi=$i,an=[],Fi=[],bo=!0}function Ho(){var va=as(),no=bo&&va,ys=(an=t.merge(an)).length;(no||ys)&&(On.polygonStart(),no&&(On.lineStart(),Mi(null,null,1,On),On.lineEnd()),ys&&Xo(an,dn,va,Mi,On),On.polygonEnd()),Yi=On,an=Fi=ta=null}function ml(){Zo.point=Ls,Fi&&Fi.push(ta=[]),Ka=!0,Dn=!1,Ua=Zn=NaN}function Ws(){an&&(Ls(Ca,Ra),La&&Dn&&$i.rejoin(),an.push($i.result())),Zo.point=Ss,Dn&&Yi.lineEnd()}function Ls(va,no){var ys=Kr(va,no);if(Fi&&ta.push([va,no]),Ka)Ca=va,Ra=no,La=ys,Ka=!1,ys&&(Yi.lineStart(),Yi.point(va,no));else if(ys&&Dn)Yi.point(va,no);else{var rs=[Ua=Math.max(ya,Math.min(_n,Ua)),Zn=Math.max(ya,Math.min(_n,Zn))],Ql=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(rs,Ql,kt,Zt,Er,xr)?(Dn||(Yi.lineStart(),Yi.point(rs[0],rs[1])),Yi.point(Ql[0],Ql[1]),ys||Yi.lineEnd(),bo=!1):ys&&(Yi.lineStart(),Yi.point(va,no),bo=!1)}Ua=va,Zn=no,Dn=ys}return Zo}}function Ma(){var kt=0,Zt=0,Er=960,xr=500,Kr,Mi,Wi;return Wi={stream:function(dn){return Kr&&Mi===dn?Kr:Kr=ea(kt,Zt,Er,xr)(Mi=dn)},extent:function(dn){return arguments.length?(kt=+dn[0][0],Zt=+dn[0][1],Er=+dn[1][0],xr=+dn[1][1],Kr=Mi=null,Wi):[[kt,Zt],[Er,xr]]}}}var _o=r(),No,po,Lo,ko={sphere:q,point:q,lineStart:Ds,lineEnd:q,polygonStart:q,polygonEnd:q};function Ds(){ko.point=ll,ko.lineEnd=Fs}function Fs(){ko.point=ko.lineEnd=q}function ll(kt,Zt){kt*=d,Zt*=d,No=kt,po=x(Zt),Lo=p(Zt),ko.point=ul}function ul(kt,Zt){kt*=d,Zt*=d;var Er=x(Zt),xr=p(Zt),Kr=v(kt-No),Mi=p(Kr),Wi=x(Kr),dn=xr*Wi,wn=Lo*Er-po*xr*Mi,On=po*Er+Lo*xr*Mi;_o.add(b(S(dn*dn+wn*wn),On)),No=kt,po=Er,Lo=xr}function zl(kt){return _o.reset(),H(kt,ko),+_o}var us=[null,null],il={type:"LineString",coordinates:us};function As(kt,Zt){return us[0]=kt,us[1]=Zt,zl(il)}var cl={Feature:function(kt,Zt){return zs(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr<Kr;)if(zs(Er[xr].geometry,Zt))return!0;return!1}},Ks={Sphere:function(){return!0},Point:function(kt,Zt){return Io(kt.coordinates,Zt)},MultiPoint:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)if(Io(Er[xr],Zt))return!0;return!1},LineString:function(kt,Zt){return ls(kt.coordinates,Zt)},MultiLineString:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)if(ls(Er[xr],Zt))return!0;return!1},Polygon:function(kt,Zt){return Yl(kt.coordinates,Zt)},MultiPolygon:function(kt,Zt){for(var Er=kt.coordinates,xr=-1,Kr=Er.length;++xr<Kr;)if(Yl(Er[xr],Zt))return!0;return!1},GeometryCollection:function(kt,Zt){for(var Er=kt.geometries,xr=-1,Kr=Er.length;++xr<Kr;)if(zs(Er[xr],Zt))return!0;return!1}};function zs(kt,Zt){return kt&&Ks.hasOwnProperty(kt.type)?Ks[kt.type](kt,Zt):!1}function Io(kt,Zt){return As(kt,Zt)===0}function ls(kt,Zt){for(var Er,xr,Kr,Mi=0,Wi=kt.length;Mi<Wi;Mi++){if(xr=As(kt[Mi],Zt),xr===0||Mi>0&&(Kr=As(kt[Mi],kt[Mi-1]),Kr>0&&Er<=Kr&&xr<=Kr&&(Er+xr-Kr)*(1-Math.pow((Er-xr)/Kr,2))<s*Kr))return!0;Er=xr}return!1}function Yl(kt,Zt){return!!vo(kt.map(Su),nc(Zt))}function Su(kt){return kt=kt.map(nc),kt.pop(),kt}function nc(kt){return[kt[0]*d,kt[1]*d]}function bs(kt,Zt){return(kt&&cl.hasOwnProperty(kt.type)?cl[kt.type]:zs)(kt,Zt)}function Rn(kt,Zt,Er){var xr=t.range(kt,Zt-o,Er).concat(Zt);return function(Kr){return xr.map(function(Mi){return[Kr,Mi]})}}function _a(kt,Zt,Er){var xr=t.range(kt,Zt-o,Er).concat(Zt);return function(Kr){return xr.map(function(Mi){return[Mi,Kr]})}}function Vu(){var kt,Zt,Er,xr,Kr,Mi,Wi,dn,wn=10,On=wn,Yi=90,$i=360,an,Fi,ta,Ca,Ra=2.5;function La(){return{type:"MultiLineString",coordinates:Ua()}}function Ua(){return t.range(k(xr/Yi)*Yi,Er,Yi).map(ta).concat(t.range(k(dn/$i)*$i,Wi,$i).map(Ca)).concat(t.range(k(Zt/wn)*wn,kt,wn).filter(function(Zn){return v(Zn%Yi)>o}).map(an)).concat(t.range(k(Mi/On)*On,Kr,On).filter(function(Zn){return v(Zn%$i)>o}).map(Fi))}return La.lines=function(){return Ua().map(function(Zn){return{type:"LineString",coordinates:Zn}})},La.outline=function(){return{type:"Polygon",coordinates:[ta(xr).concat(Ca(Wi).slice(1),ta(Er).reverse().slice(1),Ca(dn).reverse().slice(1))]}},La.extent=function(Zn){return arguments.length?La.extentMajor(Zn).extentMinor(Zn):La.extentMinor()},La.extentMajor=function(Zn){return arguments.length?(xr=+Zn[0][0],Er=+Zn[1][0],dn=+Zn[0][1],Wi=+Zn[1][1],xr>Er&&(Zn=xr,xr=Er,Er=Zn),dn>Wi&&(Zn=dn,dn=Wi,Wi=Zn),La.precision(Ra)):[[xr,dn],[Er,Wi]]},La.extentMinor=function(Zn){return arguments.length?(Zt=+Zn[0][0],kt=+Zn[1][0],Mi=+Zn[0][1],Kr=+Zn[1][1],Zt>kt&&(Zn=Zt,Zt=kt,kt=Zn),Mi>Kr&&(Zn=Mi,Mi=Kr,Kr=Zn),La.precision(Ra)):[[Zt,Mi],[kt,Kr]]},La.step=function(Zn){return arguments.length?La.stepMajor(Zn).stepMinor(Zn):La.stepMinor()},La.stepMajor=function(Zn){return arguments.length?(Yi=+Zn[0],$i=+Zn[1],La):[Yi,$i]},La.stepMinor=function(Zn){return arguments.length?(wn=+Zn[0],On=+Zn[1],La):[wn,On]},La.precision=function(Zn){return arguments.length?(Ra=+Zn,an=Rn(Mi,Kr,90),Fi=_a(Zt,kt,Ra),ta=Rn(dn,Wi,90),Ca=_a(xr,Er,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ql(){return Vu()()}function xo(kt,Zt){var Er=kt[0]*d,xr=kt[1]*d,Kr=Zt[0]*d,Mi=Zt[1]*d,Wi=p(xr),dn=x(xr),wn=p(Mi),On=x(Mi),Yi=Wi*p(Er),$i=Wi*x(Er),an=wn*p(Kr),Fi=wn*x(Kr),ta=2*E(S(z(Mi-xr)+Wi*wn*z(Kr-Er))),Ca=x(ta),Ra=ta?function(La){var Ua=x(La*=ta)/Ca,Zn=x(ta-La)/Ca,Dn=Zn*Yi+Ua*an,Ka=Zn*$i+Ua*Fi,bo=Zn*dn+Ua*On;return[b(Ka,Dn)*h,b(bo,S(Dn*Dn+Ka*Ka))*h]}:function(){return[Er*h,xr*h]};return Ra.distance=ta,Ra}function Kl(kt){return kt}var Ns=r(),Hl=r(),ac,oa,qo,Oo,Ol={point:q,lineStart:q,lineEnd:q,polygonStart:function(){Ol.lineStart=Pc,Ol.lineEnd=Vf},polygonEnd:function(){Ol.lineStart=Ol.lineEnd=Ol.point=q,Ns.add(v(Hl)),Hl.reset()},result:function(){var kt=Ns/2;return Ns.reset(),kt}};function Pc(){Ol.point=Do}function Do(kt,Zt){Ol.point=nf,ac=qo=kt,oa=Oo=Zt}function nf(kt,Zt){Hl.add(Oo*kt-qo*Zt),qo=kt,Oo=Zt}function Vf(){nf(ac,oa)}var pl=1/0,Zc=pl,Jl=-pl,qs=Jl,yu={point:oc,lineStart:q,lineEnd:q,polygonStart:q,polygonEnd:q,result:function(){var kt=[[pl,Zc],[Jl,qs]];return Jl=qs=-(Zc=pl=1/0),kt}};function oc(kt,Zt){kt<pl&&(pl=kt),kt>Jl&&(Jl=kt),Zt<Zc&&(Zc=Zt),Zt>qs&&(qs=Zt)}var Cf=0,sc=0,jh=0,Lf=0,cs=0,af=0,Gf=0,$l=0,fl=0,lc,Fu,Es,Hs,Go={point:ps,lineStart:uc,lineEnd:Os,polygonStart:function(){Go.lineStart=od,Go.lineEnd=Po},polygonEnd:function(){Go.point=ps,Go.lineStart=uc,Go.lineEnd=Os},result:function(){var kt=fl?[Gf/fl,$l/fl]:af?[Lf/af,cs/af]:jh?[Cf/jh,sc/jh]:[NaN,NaN];return Cf=sc=jh=Lf=cs=af=Gf=$l=fl=0,kt}};function ps(kt,Zt){Cf+=kt,sc+=Zt,++jh}function uc(){Go.point=xl}function xl(kt,Zt){Go.point=Gu,ps(Es=kt,Hs=Zt)}function Gu(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,ps(Es=kt,Hs=Zt)}function Os(){Go.point=ps}function od(){Go.point=sd}function Po(){Ko(lc,Fu)}function sd(kt,Zt){Go.point=Ko,ps(lc=Es=kt,Fu=Hs=Zt)}function Ko(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,Kr=Hs*kt-Es*Zt,Gf+=Kr*(Es+kt),$l+=Kr*(Hs+Zt),fl+=Kr*3,ps(Es=kt,Hs=Zt)}function Pa(kt){this._context=kt}Pa.prototype={_radius:4.5,pointRadius:function(kt){return this._radius=kt,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(kt,Zt){switch(this._point){case 0:{this._context.moveTo(kt,Zt),this._point=1;break}case 1:{this._context.lineTo(kt,Zt);break}default:{this._context.moveTo(kt+this._radius,Zt),this._context.arc(kt,Zt,this._radius,0,f);break}}},result:q};var of=r(),Hu,bl,Hf,Ic,yf,Bl={point:q,lineStart:function(){Bl.point=Ah},lineEnd:function(){Hu&&Qf(bl,Hf),Bl.point=q},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var kt=+of;return of.reset(),kt}};function Ah(kt,Zt){Bl.point=Qf,bl=Ic=kt,Hf=yf=Zt}function Qf(kt,Zt){Ic-=kt,yf-=Zt,of.add(S(Ic*Ic+yf*yf)),Ic=kt,yf=Zt}function _f(){this._string=[]}_f.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(kt){return(kt=+kt)!==this._radius&&(this._radius=kt,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(kt,Zt){switch(this._point){case 0:{this._string.push("M",kt,",",Zt),this._point=1;break}case 1:{this._string.push("L",kt,",",Zt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",kt,",",Zt,this._circle);break}}},result:function(){if(this._string.length){var kt=this._string.join("");return this._string=[],kt}else return null}};function Yc(kt){return"m0,"+kt+"a"+kt+","+kt+" 0 1,1 0,"+-2*kt+"a"+kt+","+kt+" 0 1,1 0,"+2*kt+"z"}function eh(kt,Zt){var Er=4.5,xr,Kr;function Mi(Wi){return Wi&&(typeof Er=="function"&&Kr.pointRadius(+Er.apply(this,arguments)),H(Wi,xr(Kr))),Kr.result()}return Mi.area=function(Wi){return H(Wi,xr(Ol)),Ol.result()},Mi.measure=function(Wi){return H(Wi,xr(Bl)),Bl.result()},Mi.bounds=function(Wi){return H(Wi,xr(yu)),yu.result()},Mi.centroid=function(Wi){return H(Wi,xr(Go)),Go.result()},Mi.projection=function(Wi){return arguments.length?(xr=Wi==null?(kt=null,Kl):(kt=Wi).stream,Mi):kt},Mi.context=function(Wi){return arguments.length?(Kr=Wi==null?(Zt=null,new _f):new Pa(Zt=Wi),typeof Er!="function"&&Kr.pointRadius(Er),Mi):Zt},Mi.pointRadius=function(Wi){return arguments.length?(Er=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Mi):Er},Mi.projection(kt).context(Zt)}function th(kt){return{stream:ju(kt)}}function ju(kt){return function(Zt){var Er=new jf;for(var xr in kt)Er[xr]=kt[xr];return Er.stream=Zt,Er}}function jf(){}jf.prototype={constructor:jf,point:function(kt,Zt){this.stream.point(kt,Zt)},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(kt,Zt,Er){var xr=kt.clipExtent&&kt.clipExtent();return kt.scale(150).translate([0,0]),xr!=null&&kt.clipExtent(null),H(Er,kt.stream(yu)),Zt(yu.result()),xr!=null&&kt.clipExtent(xr),kt}function sf(kt,Zt,Er){return cc(kt,function(xr){var Kr=Zt[1][0]-Zt[0][0],Mi=Zt[1][1]-Zt[0][1],Wi=Math.min(Kr/(xr[1][0]-xr[0][0]),Mi/(xr[1][1]-xr[0][1])),dn=+Zt[0][0]+(Kr-Wi*(xr[1][0]+xr[0][0]))/2,wn=+Zt[0][1]+(Mi-Wi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Wi).translate([dn,wn])},Er)}function Nl(kt,Zt,Er){return sf(kt,[[0,0],Zt],Er)}function Kc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][0]-xr[0][0]),Wi=(Kr-Mi*(xr[1][0]+xr[0][0]))/2,dn=-Mi*xr[0][1];kt.scale(150*Mi).translate([Wi,dn])},Er)}function Rc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][1]-xr[0][1]),Wi=-Mi*xr[0][0],dn=(Kr-Mi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Mi).translate([Wi,dn])},Er)}var gs=16,Wf=p(30*d);function Wh(kt,Zt){return+Zt?lf(kt,Zt):rh(kt)}function rh(kt){return ju({point:function(Zt,Er){Zt=kt(Zt,Er),this.stream.point(Zt[0],Zt[1])}})}function lf(kt,Zt){function Er(xr,Kr,Mi,Wi,dn,wn,On,Yi,$i,an,Fi,ta,Ca,Ra){var La=On-xr,Ua=Yi-Kr,Zn=La*La+Ua*Ua;if(Zn>4*Zt&&Ca--){var Dn=Wi+an,Ka=dn+Fi,bo=wn+ta,Zo=S(Dn*Dn+Ka*Ka+bo*bo),Ss=E(bo/=Zo),as=v(v(bo)-1)<o||v(Mi-$i)<o?(Mi+$i)/2:b(Ka,Dn),ws=kt(as,Ss),Ho=ws[0],ml=ws[1],Ws=Ho-xr,Ls=ml-Kr,va=Ua*Ws-La*Ls;(va*va/Zn>Zt||v((La*Ws+Ua*Ls)/Zn-.5)>.3||Wi*an+dn*Fi+wn*ta<Wf)&&(Er(xr,Kr,Mi,Wi,dn,wn,Ho,ml,as,Dn/=Zo,Ka/=Zo,bo,Ca,Ra),Ra.point(Ho,ml),Er(Ho,ml,as,Dn,Ka,bo,On,Yi,$i,an,Fi,ta,Ca,Ra))}}return function(xr){var Kr,Mi,Wi,dn,wn,On,Yi,$i,an,Fi,ta,Ca,Ra={point:La,lineStart:Ua,lineEnd:Dn,polygonStart:function(){xr.polygonStart(),Ra.lineStart=Ka},polygonEnd:function(){xr.polygonEnd(),Ra.lineStart=Ua}};function La(Ss,as){Ss=kt(Ss,as),xr.point(Ss[0],Ss[1])}function Ua(){$i=NaN,Ra.point=Zn,xr.lineStart()}function Zn(Ss,as){var ws=ce([Ss,as]),Ho=kt(Ss,as);Er($i,an,Yi,Fi,ta,Ca,$i=Ho[0],an=Ho[1],Yi=Ss,Fi=ws[0],ta=ws[1],Ca=ws[2],gs,xr),xr.point($i,an)}function Dn(){Ra.point=La,xr.lineEnd()}function Ka(){Ua(),Ra.point=bo,Ra.lineEnd=Zo}function bo(Ss,as){Zn(Kr=Ss,as),Mi=$i,Wi=an,dn=Fi,wn=ta,On=Ca,Ra.point=Zn}function Zo(){Er($i,an,Yi,Fi,ta,Ca,Mi,Wi,Kr,dn,wn,On,gs,xr),Ra.lineEnd=Dn,Dn()}return Ra}}var Sh=ju({point:function(kt,Zt){this.stream.point(kt*d,Zt*d)}});function Mu(kt){return ju({point:function(Zt,Er){var xr=kt(Zt,Er);return this.stream.point(xr[0],xr[1])}})}function ih(kt,Zt,Er,xr,Kr){function Mi(Wi,dn){return Wi*=xr,dn*=Kr,[Zt+kt*Wi,Er-kt*dn]}return Mi.invert=function(Wi,dn){return[(Wi-Zt)/kt*xr,(Er-dn)/kt*Kr]},Mi}function js(kt,Zt,Er,xr,Kr,Mi){var Wi=p(Mi),dn=x(Mi),wn=Wi*kt,On=dn*kt,Yi=Wi/kt,$i=dn/kt,an=(dn*Er-Wi*Zt)/kt,Fi=(dn*Zt+Wi*Er)/kt;function ta(Ca,Ra){return Ca*=xr,Ra*=Kr,[wn*Ca-On*Ra+Zt,Er-On*Ca-wn*Ra]}return ta.invert=function(Ca,Ra){return[xr*(Yi*Ca-$i*Ra+an),Kr*(Fi-$i*Ca-Yi*Ra)]},ta}function Eu(kt){return Dc(function(){return kt})()}function Dc(kt){var Zt,Er=150,xr=480,Kr=250,Mi=0,Wi=0,dn=0,wn=0,On=0,Yi,$i=0,an=1,Fi=1,ta=null,Ca=Jr,Ra=null,La,Ua,Zn,Dn=Kl,Ka=.5,bo,Zo,Ss,as,ws;function Ho(va){return Ss(va[0]*d,va[1]*d)}function ml(va){return va=Ss.invert(va[0],va[1]),va&&[va[0]*h,va[1]*h]}Ho.stream=function(va){return as&&ws===va?as:as=Sh(Mu(Yi)(Ca(bo(Dn(ws=va)))))},Ho.preclip=function(va){return arguments.length?(Ca=va,ta=void 0,Ls()):Ca},Ho.postclip=function(va){return arguments.length?(Dn=va,Ra=La=Ua=Zn=null,Ls()):Dn},Ho.clipAngle=function(va){return arguments.length?(Ca=+va?En(ta=va*d):(ta=null,Jr),Ls()):ta*h},Ho.clipExtent=function(va){return arguments.length?(Dn=va==null?(Ra=La=Ua=Zn=null,Kl):ea(Ra=+va[0][0],La=+va[0][1],Ua=+va[1][0],Zn=+va[1][1]),Ls()):Ra==null?null:[[Ra,La],[Ua,Zn]]},Ho.scale=function(va){return arguments.length?(Er=+va,Ws()):Er},Ho.translate=function(va){return arguments.length?(xr=+va[0],Kr=+va[1],Ws()):[xr,Kr]},Ho.center=function(va){return arguments.length?(Mi=va[0]%360*d,Wi=va[1]%360*d,Ws()):[Mi*h,Wi*h]},Ho.rotate=function(va){return arguments.length?(dn=va[0]%360*d,wn=va[1]%360*d,On=va.length>2?va[2]%360*d:0,Ws()):[dn*h,wn*h,On*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Ws()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Ws()):an<0},Ho.reflectY=function(va){return arguments.length?(Fi=va?-1:1,Ws()):Fi<0},Ho.precision=function(va){return arguments.length?(bo=Wh(Zo,Ka=va*va),Ls()):S(Ka)},Ho.fitExtent=function(va,no){return sf(Ho,va,no)},Ho.fitSize=function(va,no){return Nl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Ws(){var va=js(Er,0,0,an,Fi,$i).apply(null,Zt(Mi,Wi)),no=($i?js:ih)(Er,xr-va[0],Kr-va[1],an,Fi,$i);return Yi=Ri(dn,wn,On),Zo=ti(Zt,no),Ss=ti(Yi,Zo),bo=Wh(Zo,Ka),Ls()}function Ls(){return as=ws=null,Ho}return function(){return Zt=kt.apply(this,arguments),Ho.invert=Zt.invert&&ml,Ws()}}function ks(kt){var Zt=0,Er=l/3,xr=Dc(kt),Kr=xr(Zt,Er);return Kr.parallels=function(Mi){return arguments.length?xr(Zt=Mi[0]*d,Er=Mi[1]*d):[Zt*h,Er*h]},Kr}function bc(kt){var Zt=p(kt);function Er(xr,Kr){return[xr*Zt,x(Kr)/Zt]}return Er.invert=function(xr,Kr){return[xr/Zt,E(Kr*Zt)]},Er}function hu(kt,Zt){var Er=x(kt),xr=(Er+x(Zt))/2;if(v(xr)<o)return bc(kt);var Kr=1+Er*(2*xr-Er),Mi=S(Kr)/xr;function Wi(dn,wn){var On=S(Kr-2*xr*x(wn))/xr;return[On*x(dn*=xr),Mi-On*p(dn)]}return Wi.invert=function(dn,wn){var On=Mi-wn,Yi=b(dn,v(On))*C(On);return On*xr<0&&(Yi-=l*C(dn)*C(On)),[Yi/xr,E((Kr-(dn*dn+On*On)*xr*xr)/(2*xr))]},Wi}function _u(){return ks(hu).scale(155.424).center([0,33.6442])}function nl(){return _u().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function nh(kt){var Zt=kt.length;return{point:function(Er,xr){for(var Kr=-1;++Kr<Zt;)kt[Kr].point(Er,xr)},sphere:function(){for(var Er=-1;++Er<Zt;)kt[Er].sphere()},lineStart:function(){for(var Er=-1;++Er<Zt;)kt[Er].lineStart()},lineEnd:function(){for(var Er=-1;++Er<Zt;)kt[Er].lineEnd()},polygonStart:function(){for(var Er=-1;++Er<Zt;)kt[Er].polygonStart()},polygonEnd:function(){for(var Er=-1;++Er<Zt;)kt[Er].polygonEnd()}}}function Mh(){var kt,Zt,Er=nl(),xr,Kr=_u().rotate([154,0]).center([-2,58.5]).parallels([55,65]),Mi,Wi=_u().rotate([157,0]).center([-3,19.9]).parallels([8,18]),dn,wn,On={point:function(an,Fi){wn=[an,Fi]}};function Yi(an){var Fi=an[0],ta=an[1];return wn=null,xr.point(Fi,ta),wn||(Mi.point(Fi,ta),wn)||(dn.point(Fi,ta),wn)}Yi.invert=function(an){var Fi=Er.scale(),ta=Er.translate(),Ca=(an[0]-ta[0])/Fi,Ra=(an[1]-ta[1])/Fi;return(Ra>=.12&&Ra<.234&&Ca>=-.425&&Ca<-.214?Kr:Ra>=.166&&Ra<.234&&Ca>=-.214&&Ca<-.115?Wi:Er).invert(an)},Yi.stream=function(an){return kt&&Zt===an?kt:kt=nh([Er.stream(Zt=an),Kr.stream(an),Wi.stream(an)])},Yi.precision=function(an){return arguments.length?(Er.precision(an),Kr.precision(an),Wi.precision(an),$i()):Er.precision()},Yi.scale=function(an){return arguments.length?(Er.scale(an),Kr.scale(an*.35),Wi.scale(an),Yi.translate(Er.translate())):Er.scale()},Yi.translate=function(an){if(!arguments.length)return Er.translate();var Fi=Er.scale(),ta=+an[0],Ca=+an[1];return xr=Er.translate(an).clipExtent([[ta-.455*Fi,Ca-.238*Fi],[ta+.455*Fi,Ca+.238*Fi]]).stream(On),Mi=Kr.translate([ta-.307*Fi,Ca+.201*Fi]).clipExtent([[ta-.425*Fi+o,Ca+.12*Fi+o],[ta-.214*Fi-o,Ca+.234*Fi-o]]).stream(On),dn=Wi.translate([ta-.205*Fi,Ca+.212*Fi]).clipExtent([[ta-.214*Fi+o,Ca+.166*Fi+o],[ta-.115*Fi-o,Ca+.234*Fi-o]]).stream(On),$i()},Yi.fitExtent=function(an,Fi){return sf(Yi,an,Fi)},Yi.fitSize=function(an,Fi){return Nl(Yi,an,Fi)},Yi.fitWidth=function(an,Fi){return Kc(Yi,an,Fi)},Yi.fitHeight=function(an,Fi){return Rc(Yi,an,Fi)};function $i(){return kt=Zt=null,Yi}return Yi.scale(1070)}function zu(kt){return function(Zt,Er){var xr=p(Zt),Kr=p(Er),Mi=kt(xr*Kr);return[Mi*Kr*x(Zt),Mi*x(Er)]}}function Fc(kt){return function(Zt,Er){var xr=S(Zt*Zt+Er*Er),Kr=kt(xr),Mi=x(Kr),Wi=p(Kr);return[b(Zt*Mi,xr*Wi),E(xr&&Er*Mi/xr)]}}var wc=zu(function(kt){return S(2/(1+kt))});wc.invert=Fc(function(kt){return 2*E(kt/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var xf=zu(function(kt){return(kt=P(kt))&&kt/x(kt)});xf.invert=Fc(function(kt){return kt});function Pf(){return Eu(xf).scale(79.4188).clipAngle(180-.001)}function qu(kt,Zt){return[kt,T(g((u+Zt)/2))]}qu.invert=function(kt,Zt){return[kt,2*m(M(Zt))-u]};function bf(){return jl(qu).scale(961/f)}function jl(kt){var Zt=Eu(kt),Er=Zt.center,xr=Zt.scale,Kr=Zt.translate,Mi=Zt.clipExtent,Wi=null,dn,wn,On;Zt.scale=function($i){return arguments.length?(xr($i),Yi()):xr()},Zt.translate=function($i){return arguments.length?(Kr($i),Yi()):Kr()},Zt.center=function($i){return arguments.length?(Er($i),Yi()):Er()},Zt.clipExtent=function($i){return arguments.length?($i==null?Wi=dn=wn=On=null:(Wi=+$i[0][0],dn=+$i[0][1],wn=+$i[1][0],On=+$i[1][1]),Yi()):Wi==null?null:[[Wi,dn],[wn,On]]};function Yi(){var $i=l*xr(),an=Zt(yn(Zt.rotate()).invert([0,0]));return Mi(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:kt===qu?[[Math.max(an[0]-$i,Wi),dn],[Math.min(an[0]+$i,wn),On]]:[[Wi,Math.max(an[1]-$i,dn)],[wn,Math.min(an[1]+$i,On)]])}return Yi()}function uf(kt){return g((u+kt)/2)}function Xh(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):T(Er/p(Zt))/T(uf(Zt)/uf(kt)),Kr=Er*L(uf(kt),xr)/xr;if(!xr)return qu;function Mi(Wi,dn){Kr>0?dn<-u+o&&(dn=-u+o):dn>u-o&&(dn=u-o);var wn=Kr/L(uf(dn),xr);return[wn*x(xr*Wi),Kr-wn*p(xr*Wi)]}return Mi.invert=function(Wi,dn){var wn=Kr-dn,On=C(xr)*S(Wi*Wi+wn*wn),Yi=b(Wi,v(wn))*C(wn);return wn*xr<0&&(Yi-=l*C(Wi)*C(wn)),[Yi/xr,2*m(L(Kr/On,1/xr))-u]},Mi}function If(){return ks(Xh).scale(109.5).parallels([30,30])}function Cs(kt,Zt){return[kt,Zt]}Cs.invert=Cs;function du(){return Eu(Cs).scale(152.63)}function ku(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):(Er-p(Zt))/(Zt-kt),Kr=Er/xr+kt;if(v(xr)<o)return Cs;function Mi(Wi,dn){var wn=Kr-dn,On=xr*Wi;return[wn*x(On),Kr-wn*p(On)]}return Mi.invert=function(Wi,dn){var wn=Kr-dn,On=b(Wi,v(wn))*C(wn);return wn*xr<0&&(On-=l*C(Wi)*C(wn)),[On/xr,Kr-C(xr)*S(Wi*Wi+wn*wn)]},Mi}function Xf(){return ks(ku).scale(131.154).center([0,13.9389])}var Us=1.340264,wf=-.081106,zc=893e-6,Wu=.003796,Rf=S(3)/2,Xu=12;function cf(kt,Zt){var Er=E(Rf*x(Zt)),xr=Er*Er,Kr=xr*xr*xr;return[kt*p(Er)/(Rf*(Us+3*wf*xr+Kr*(7*zc+9*Wu*xr))),Er*(Us+wf*xr+Kr*(zc+Wu*xr))]}cf.invert=function(kt,Zt){for(var Er=Zt,xr=Er*Er,Kr=xr*xr*xr,Mi=0,Wi,dn,wn;Mi<Xu&&(dn=Er*(Us+wf*xr+Kr*(zc+Wu*xr))-Zt,wn=Us+3*wf*xr+Kr*(7*zc+9*Wu*xr),Er-=Wi=dn/wn,xr=Er*Er,Kr=xr*xr*xr,!(v(Wi)<s));++Mi);return[Rf*kt*(Us+3*wf*xr+Kr*(7*zc+9*Wu*xr))/p(Er),E(x(Er)/Rf)]};function Zf(){return Eu(cf).scale(177.158)}function Wl(kt,Zt){var Er=p(Zt),xr=p(kt)*Er;return[Er*x(kt)/xr,x(Zt)/xr]}Wl.invert=Fc(m);function ah(){return Eu(Wl).scale(144.049).clipAngle(60)}function Zu(){var kt=1,Zt=0,Er=0,xr=1,Kr=1,Mi=0,Wi,dn,wn=null,On,Yi,$i,an=1,Fi=1,ta=ju({point:function(Dn,Ka){var bo=Zn([Dn,Ka]);this.stream.point(bo[0],bo[1])}}),Ca=Kl,Ra,La;function Ua(){return an=kt*xr,Fi=kt*Kr,Ra=La=null,Zn}function Zn(Dn){var Ka=Dn[0]*an,bo=Dn[1]*Fi;if(Mi){var Zo=bo*Wi-Ka*dn;Ka=Ka*Wi+bo*dn,bo=Zo}return[Ka+Zt,bo+Er]}return Zn.invert=function(Dn){var Ka=Dn[0]-Zt,bo=Dn[1]-Er;if(Mi){var Zo=bo*Wi+Ka*dn;Ka=Ka*Wi-bo*dn,bo=Zo}return[Ka/an,bo/Fi]},Zn.stream=function(Dn){return Ra&&La===Dn?Ra:Ra=ta(Ca(La=Dn))},Zn.postclip=function(Dn){return arguments.length?(Ca=Dn,wn=On=Yi=$i=null,Ua()):Ca},Zn.clipExtent=function(Dn){return arguments.length?(Ca=Dn==null?(wn=On=Yi=$i=null,Kl):ea(wn=+Dn[0][0],On=+Dn[0][1],Yi=+Dn[1][0],$i=+Dn[1][1]),Ua()):wn==null?null:[[wn,On],[Yi,$i]]},Zn.scale=function(Dn){return arguments.length?(kt=+Dn,Ua()):kt},Zn.translate=function(Dn){return arguments.length?(Zt=+Dn[0],Er=+Dn[1],Ua()):[Zt,Er]},Zn.angle=function(Dn){return arguments.length?(Mi=Dn%360*d,dn=x(Mi),Wi=p(Mi),Ua()):Mi*h},Zn.reflectX=function(Dn){return arguments.length?(xr=Dn?-1:1,Ua()):xr<0},Zn.reflectY=function(Dn){return arguments.length?(Kr=Dn?-1:1,Ua()):Kr<0},Zn.fitExtent=function(Dn,Ka){return sf(Zn,Dn,Ka)},Zn.fitSize=function(Dn,Ka){return Nl(Zn,Dn,Ka)},Zn.fitWidth=function(Dn,Ka){return Kc(Zn,Dn,Ka)},Zn.fitHeight=function(Dn,Ka){return Rc(Zn,Dn,Ka)},Zn}function qc(kt,Zt){var Er=Zt*Zt,xr=Er*Er;return[kt*(.8707-.131979*Er+xr*(-.013791+xr*(.003971*Er-.001529*xr))),Zt*(1.007226+Er*(.015085+xr*(-.044475+.028874*Er-.005916*xr)))]}qc.invert=function(kt,Zt){var Er=Zt,xr=25,Kr;do{var Mi=Er*Er,Wi=Mi*Mi;Er-=Kr=(Er*(1.007226+Mi*(.015085+Wi*(-.044475+.028874*Mi-.005916*Wi)))-Zt)/(1.007226+Mi*(.015085*3+Wi*(-.044475*7+.028874*9*Mi-.005916*11*Wi)))}while(v(Kr)>o&&--xr>0);return[kt/(.8707+(Mi=Er*Er)*(-.131979+Mi*(-.013791+Mi*Mi*Mi*(.003971-.001529*Mi)))),Er]};function Tc(){return Eu(qc).scale(175.295)}function wl(kt,Zt){return[p(Zt)*x(kt),x(Zt)]}wl.invert=Fc(E);function vu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function Oc(kt,Zt){var Er=p(Zt),xr=1+p(kt)*Er;return[Er*x(kt)/xr,x(Zt)/xr]}Oc.invert=Fc(function(kt){return 2*m(kt)});function ff(){return Eu(Oc).scale(250).clipAngle(142)}function fc(kt,Zt){return[T(g((u+Zt)/2)),-kt]}fc.invert=function(kt,Zt){return[-Zt,2*m(M(kt))-u]};function Bc(){var kt=jl(fc),Zt=kt.center,Er=kt.rotate;return kt.center=function(xr){return arguments.length?Zt([-xr[1],xr[0]]):(xr=Zt(),[xr[1],-xr[0]])},kt.rotate=function(xr){return arguments.length?Er([xr[0],xr[1],xr.length>2?xr[2]+90:90]):(xr=Er(),[xr[0],xr[1],xr[2]-90])},Er([0,0,90]).scale(159.155)}e.geoAlbers=nl,e.geoAlbersUsa=Mh,e.geoArea=me,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Pf,e.geoAzimuthalEquidistantRaw=xf,e.geoBounds=Ge,e.geoCentroid=wr,e.geoCircle=ua,e.geoClipAntimeridian=Jr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=ea,e.geoConicConformal=If,e.geoConicConformalRaw=Xh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=hu,e.geoConicEquidistant=Xf,e.geoConicEquidistantRaw=ku,e.geoContains=bs,e.geoDistance=As,e.geoEqualEarth=Zf,e.geoEqualEarthRaw=cf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Cs,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=ql,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=bf,e.geoMercatorRaw=qu,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=qc,e.geoOrthographic=vu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=ff,e.geoStereographicRaw=Oc,e.geoStream=H,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var VDe=ye((qF,UDe)=>{(function(e,t){typeof qF=="object"&&typeof UDe!="undefined"?t(qF,UZ(),dk()):t(e.d3=e.d3||{},e.d3,e.d3)})(qF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},m=Math.sin,b=Math.tan,p=1e-6,k=1e-12,M=Math.PI,T=M/2,L=M/4,x=Math.SQRT1_2,C=G(2),S=G(M),g=M*2,P=180/M,E=M/180;function z(ve){return ve?ve/Math.sin(ve):1}function q(ve){return ve>1?T:ve<-1?-T:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?M:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function j(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function H(ve){return u(ve+G(ve*ve+1))}function ie(ve){return u(ve+G(ve*ve-1))}function ae(ve){var xe=b(ve/2),Ie=2*u(o(ve/2))/(xe*xe);function ze(Qe,Xe){var nt=o(Qe),qt=o(Xe),Wt=m(Xe),nr=qt*nt,fr=-((1-nr?u((1+nr)/2)/(1-nr):-.5)+Ie/(1+nr));return[fr*qt*m(Qe),fr*Wt]}return ze.invert=function(Qe,Xe){var nt=G(Qe*Qe+Xe*Xe),qt=-ve/2,Wt=50,nr;if(!nt)return[0,0];do{var fr=qt/2,br=o(fr),Fr=m(fr),Hr=Fr/br,ri=-u(n(br));qt-=nr=(2/Hr*ri-Ie*Hr-nt)/(-ri/(Fr*Fr)+1-Ie/(2*br*br))*(br<0?.7:1)}while(n(nr)>p&&--Wt>0);var Ci=m(qt);return[a(Qe*Ci,nt*o(qt)),q(Xe*Ci/nt)]},ze}function _e(){var ve=T,xe=t.geoProjectionMutator(ae),Ie=xe(ve);return Ie.radius=function(ze){return arguments.length?xe(ve=ze*E):ve*P},Ie.scale(179.976).clipAngle(147)}function Ee(ve,xe){var Ie=o(xe),ze=z(V(Ie*o(ve/=2)));return[2*Ie*m(ve)*ze,m(xe)*ze]}Ee.invert=function(ve,xe){if(!(ve*ve+4*xe*xe>M*M+p)){var Ie=ve,ze=xe,Qe=25;do{var Xe=m(Ie),nt=m(Ie/2),qt=o(Ie/2),Wt=m(ze),nr=o(ze),fr=m(2*ze),br=Wt*Wt,Fr=nr*nr,Hr=nt*nt,ri=1-Fr*qt*qt,Ci=ri?V(nr*qt)*G(cn=1/ri):cn=0,cn,sn=2*Ci*nr*nt-ve,Ln=Ci*Wt-xe,Yn=cn*(Fr*Hr+Ci*nr*qt*br),Aa=cn*(.5*Xe*fr-Ci*2*Wt*nt),fa=cn*.25*(fr*nt-Ci*Wt*Fr*Xe),$a=cn*(br*qt+Ci*Hr*nr),Co=Aa*fa-$a*Yn;if(!Co)break;var Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Yn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]}};function Ce(){return t.geoProjection(Ee).scale(152.63)}function ge(ve){var xe=m(ve),Ie=o(ve),ze=ve>=0?1:-1,Qe=b(ze*ve),Xe=(1+xe-Ie)/2;function nt(qt,Wt){var nr=o(Wt),fr=o(qt/=2);return[(1+nr)*m(qt),(ze*Wt>-a(fr,Qe)-.001?0:-ze*10)+Xe+m(Wt)*Ie-(1+nr)*xe*fr]}return nt.invert=function(qt,Wt){var nr=0,fr=0,br=50;do{var Fr=o(nr),Hr=m(nr),ri=o(fr),Ci=m(fr),cn=1+ri,sn=cn*Hr-qt,Ln=Xe+Ci*Ie-cn*xe*Fr-Wt,Yn=cn*Fr/2,Aa=-Hr*Ci,fa=xe*cn*Hr/2,$a=Ie*ri+xe*Fr*Ci,Co=Aa*fa-$a*Yn,Qa=(Ln*Aa-sn*$a)/Co/2,mo=(sn*fa-Ln*Yn)/Co;n(mo)>2&&(mo/=2),nr-=Qa,fr-=mo}while((n(Qa)>p||n(mo)>p)&&--br>0);return ze*fr>-a(o(nr),Qe)-.001?[nr*2,fr]:null},nt}function re(){var ve=20*E,xe=ve>=0?1:-1,Ie=b(xe*ve),ze=t.geoProjectionMutator(ge),Qe=ze(ve),Xe=Qe.stream;return Qe.parallel=function(nt){return arguments.length?(Ie=b((xe=(ve=nt*E)>=0?1:-1)*ve),ze(ve)):ve*P},Qe.stream=function(nt){var qt=Qe.rotate(),Wt=Xe(nt),nr=(Qe.rotate([0,0]),Xe(nt)),fr=Qe.precision();return Qe.rotate(qt),Wt.sphere=function(){nr.polygonStart(),nr.lineStart();for(var br=xe*-180;xe*br<180;br+=xe*90)nr.point(br,xe*90);if(ve)for(;xe*(br-=3*xe*fr)>=-180;)nr.point(br,xe*-a(o(br*E/2),Ie)*P);nr.lineEnd(),nr.polygonEnd()},Wt},Qe.scale(218.695).center([0,28.0974])}function Se(ve,xe){var Ie=b(xe/2),ze=G(1-Ie*Ie),Qe=1+ze*o(ve/=2),Xe=m(ve)*ze/Qe,nt=Ie/Qe,qt=Xe*Xe,Wt=nt*nt;return[4/3*Xe*(3+qt-3*Wt),4/3*nt*(3+3*qt-Wt)]}Se.invert=function(ve,xe){if(ve*=3/8,xe*=3/8,!ve&&n(xe)>1)return null;var Ie=ve*ve,ze=xe*xe,Qe=1+Ie+ze,Xe=G((Qe-G(Qe*Qe-4*xe*xe))/2),nt=q(Xe)/3,qt=Xe?ie(n(xe/Xe))/3:H(n(ve))/3,Wt=o(nt),nr=N(qt),fr=nr*nr-Wt*Wt;return[v(ve)*2*a(j(qt)*Wt,.25-fr),v(xe)*2*a(nr*m(nt),.25+fr)]};function ke(){return t.geoProjection(Se).scale(66.1603)}var be=G(8),Be=u(1+C);function Le(ve,xe){var Ie=n(xe);return Ie<L?[ve,u(b(L+xe/2))]:[ve*o(Ie)*(2*C-1/m(Ie)),v(xe)*(2*C*(Ie-L)-u(b(Ie/2)))]}Le.invert=function(ve,xe){if((Xe=n(xe))<Be)return[ve,2*i(s(xe))-T];var Ie=L,ze=25,Qe,Xe;do{var nt=o(Ie/2),qt=b(Ie/2);Ie-=Qe=(be*(Ie-L)-u(qt)-Xe)/(be-nt*nt/(2*qt))}while(n(Qe)>k&&--ze>0);return[ve/(o(Ie)*(be-1/m(Ie))),v(xe)*Ie]};function me(){return t.geoProjection(Le).scale(112.314)}function Pe(ve){var xe=2*M/ve;function Ie(ze,Qe){var Xe=t.geoAzimuthalEquidistantRaw(ze,Qe);if(n(ze)>T){var nt=a(Xe[1],Xe[0]),qt=G(Xe[0]*Xe[0]+Xe[1]*Xe[1]),Wt=xe*d((nt-T)/xe)+T,nr=a(m(nt-=Wt),2-o(nt));nt=Wt+q(M/qt*m(nr))-nr,Xe[0]=qt*o(nt),Xe[1]=qt*m(nt)}return Xe}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+Qe*Qe);if(Xe>T){var nt=a(Qe,ze),qt=xe*d((nt-T)/xe)+T,Wt=nt>qt?-1:1,nr=Xe*o(qt-nt),fr=1/b(Wt*V((nr-M)/G(M*(M-2*nr)+Xe*Xe)));nt=qt+2*i((fr+Wt*G(fr*fr-3))/3),ze=Xe*o(nt),Qe=Xe*m(nt)}return t.geoAzimuthalEquidistantRaw.invert(ze,Qe)},Ie}function ce(){var ve=5,xe=t.geoProjectionMutator(Pe),Ie=xe(ve),ze=Ie.stream,Qe=.01,Xe=-o(Qe*E),nt=m(Qe*E);return Ie.lobes=function(qt){return arguments.length?xe(ve=+qt):ve},Ie.stream=function(qt){var Wt=Ie.rotate(),nr=ze(qt),fr=(Ie.rotate([0,0]),ze(qt));return Ie.rotate(Wt),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var br=0,Fr=360/ve,Hr=2*M/ve,ri=90-180/ve,Ci=T;br<ve;++br,ri-=Fr,Ci-=Hr)fr.point(a(nt*o(Ci),Xe)*P,q(nt*m(Ci))*P),ri<-90?(fr.point(-90,-180-ri-Qe),fr.point(-90,-180-ri+Qe)):(fr.point(90,ri+Qe),fr.point(90,ri-Qe));fr.lineEnd(),fr.polygonEnd()},nr},Ie.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function He(ve,xe){if(arguments.length<2&&(xe=ve),xe===1)return t.geoAzimuthalEqualAreaRaw;if(xe===1/0)return lt;function Ie(ze,Qe){var Xe=t.geoAzimuthalEqualAreaRaw(ze/xe,Qe);return Xe[0]*=ve,Xe}return Ie.invert=function(ze,Qe){var Xe=t.geoAzimuthalEqualAreaRaw.invert(ze/ve,Qe);return Xe[0]*=xe,Xe},Ie}function lt(ve,xe){return[ve*o(xe)/o(xe/=2),2*m(xe)]}lt.invert=function(ve,xe){var Ie=2*q(xe/2);return[ve*o(Ie/2)/o(Ie),Ie]};function mt(){var ve=2,xe=t.geoProjectionMutator(He),Ie=xe(ve);return Ie.coefficient=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(169.529)}function Ht(ve,xe,Ie){var ze=100,Qe,Xe,nt;Ie=Ie===void 0?0:+Ie,xe=+xe;do Xe=ve(Ie),nt=ve(Ie+p),Xe===nt&&(nt=Xe+p),Ie-=Qe=-1*p*(Xe-xe)/(Xe-nt);while(ze-- >0&&n(Qe)>p);return ze<0?NaN:Ie}function at(ve,xe,Ie){return xe===void 0&&(xe=40),Ie===void 0&&(Ie=k),function(ze,Qe,Xe,nt){var qt,Wt,nr;Xe=Xe===void 0?0:+Xe,nt=nt===void 0?0:+nt;for(var fr=0;fr<xe;fr++){var br=ve(Xe,nt),Fr=br[0]-ze,Hr=br[1]-Qe;if(n(Fr)<Ie&&n(Hr)<Ie)break;var ri=Fr*Fr+Hr*Hr;if(ri>qt){Xe-=Wt/=2,nt-=nr/=2;continue}qt=ri;var Ci=(Xe>0?-1:1)*Ie,cn=(nt>0?-1:1)*Ie,sn=ve(Xe+Ci,nt),Ln=ve(Xe,nt+cn),Yn=(sn[0]-br[0])/Ci,Aa=(sn[1]-br[1])/Ci,fa=(Ln[0]-br[0])/cn,$a=(Ln[1]-br[1])/cn,Co=$a*Yn-Aa*fa,Qa=(n(Co)<.5?.5:1)/Co;if(Wt=(Hr*fa-Fr*$a)*Qa,nr=(Fr*Aa-Hr*Yn)*Qa,Xe+=Wt,nt+=nr,n(Wt)<Ie&&n(nr)<Ie)break}return[Xe,nt]}}function ct(){var ve=He(1.68,2),xe=1.4,Ie=12;function ze(Qe,Xe){if(Qe+Xe<-xe){var nt=(Qe-Xe+1.6)*(Qe+Xe+xe)/8;Qe+=nt,Xe-=.8*nt*m(Xe+M/2)}var qt=ve(Qe,Xe),Wt=(1-o(Qe*Xe))/Ie;return qt[1]<0&&(qt[0]*=1+Wt),qt[1]>0&&(qt[1]*=1+Wt/1.5*qt[0]*qt[0]),qt}return ze.invert=at(ze),ze}function ar(){return t.geoProjection(ct()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Vt(ve,xe){var Ie=ve*m(xe),ze=30,Qe;do xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));while(n(Qe)>p&&--ze>0);return xe/2}function rr(ve,xe,Ie){function ze(Qe,Xe){return[ve*Qe*o(Xe=Vt(Ie,Xe)),xe*m(Xe)]}return ze.invert=function(Qe,Xe){return Xe=q(Xe/xe),[Qe/(ve*o(Xe)),q((2*Xe+m(2*Xe))/Ie)]},ze}var tt=rr(C/T,C,M);function je(){return t.geoProjection(tt).scale(169.529)}var Ue=2.00276,Ae=1.11072;function rt(ve,xe){var Ie=Vt(M,xe);return[Ue*ve/(1/o(xe)+Ae/o(Ie)),(xe+C*m(Ie))/Ue]}rt.invert=function(ve,xe){var Ie=Ue*xe,ze=xe<0?-L:L,Qe=25,Xe,nt;do nt=Ie-C*m(ze),ze-=Xe=(m(2*ze)+2*ze-M*m(nt))/(2*o(2*ze)+2+M*o(nt)*C*o(ze));while(n(Xe)>p&&--Qe>0);return nt=Ie-C*m(ze),[ve*(1/o(nt)+Ae/o(ze))/Ue,nt]};function St(){return t.geoProjection(rt).scale(160.857)}function Tt(ve){var xe=0,Ie=t.geoProjectionMutator(ve),ze=Ie(xe);return ze.parallel=function(Qe){return arguments.length?Ie(xe=Qe*E):xe*P},ze}function dt(ve,xe){return[ve*o(xe),xe]}dt.invert=function(ve,xe){return[ve/o(xe),xe]};function Et(){return t.geoProjection(dt).scale(152.63)}function pt(ve){if(!ve)return dt;var xe=1/b(ve);function Ie(ze,Qe){var Xe=xe+ve-Qe,nt=Xe&&ze*o(Qe)/Xe;return[Xe*m(nt),xe-Xe*o(nt)]}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+(Qe=xe-Qe)*Qe),nt=xe+ve-Xe;return[Xe/o(nt)*a(ze,Qe),nt]},Ie}function jt(){return Tt(pt).scale(123.082).center([0,26.1441]).parallel(45)}function or(ve){function xe(Ie,ze){var Qe=T-ze,Xe=Qe&&Ie*ve*m(Qe)/Qe;return[Qe*m(Xe)/ve,T-Qe*o(Xe)]}return xe.invert=function(Ie,ze){var Qe=Ie*ve,Xe=T-ze,nt=G(Qe*Qe+Xe*Xe),qt=a(Qe,Xe);return[(nt?nt/m(nt):1)*qt/ve,T-nt]},xe}function mr(){var ve=.5,xe=t.geoProjectionMutator(or),Ie=xe(ve);return Ie.fraction=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(158.837)}var Ar=rr(1,4/M,M);function ei(){return t.geoProjection(Ar).scale(152.63)}function qr(ve,xe,Ie,ze,Qe,Xe){var nt=o(Xe),qt;if(n(ve)>1||n(Xe)>1)qt=V(Ie*Qe+xe*ze*nt);else{var Wt=m(ve/2),nr=m(Xe/2);qt=2*q(G(Wt*Wt+xe*ze*nr*nr))}return n(qt)>p?[qt,a(ze*m(Xe),xe*Qe-Ie*ze*nt)]:[0,0]}function jr(ve,xe,Ie){return V((ve*ve+xe*xe-Ie*Ie)/(2*ve*xe))}function gt(ve){return ve-2*M*l((ve+M)/(2*M))}function Ge(ve,xe,Ie){for(var ze=[[ve[0],ve[1],m(ve[1]),o(ve[1])],[xe[0],xe[1],m(xe[1]),o(xe[1])],[Ie[0],Ie[1],m(Ie[1]),o(Ie[1])]],Qe=ze[2],Xe,nt=0;nt<3;++nt,Qe=Xe)Xe=ze[nt],Qe.v=qr(Xe[1]-Qe[1],Qe[3],Qe[2],Xe[3],Xe[2],Xe[0]-Qe[0]),Qe.point=[0,0];var qt=jr(ze[0].v[0],ze[2].v[0],ze[1].v[0]),Wt=jr(ze[0].v[0],ze[1].v[0],ze[2].v[0]),nr=M-qt;ze[2].point[1]=0,ze[0].point[0]=-(ze[1].point[0]=ze[0].v[0]/2);var fr=[ze[2].point[0]=ze[0].point[0]+ze[2].v[0]*o(qt),2*(ze[0].point[1]=ze[1].point[1]=ze[2].v[0]*m(qt))];function br(Fr,Hr){var ri=m(Hr),Ci=o(Hr),cn=new Array(3),sn;for(sn=0;sn<3;++sn){var Ln=ze[sn];if(cn[sn]=qr(Hr-Ln[1],Ln[3],Ln[2],Ci,ri,Fr-Ln[0]),!cn[sn][0])return Ln.point;cn[sn][1]=gt(cn[sn][1]-Ln.v[1])}var Yn=fr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=jr(ze[sn].v[0],cn[sn][0],cn[Aa][0]);cn[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Wt-fa,Yn[0]-=cn[sn][0]*o(fa),Yn[1]-=cn[sn][0]*m(fa)):(fa=nr-fa,Yn[0]+=cn[sn][0]*o(fa),Yn[1]+=cn[sn][0]*m(fa)):(Yn[0]+=cn[sn][0]*o(fa),Yn[1]-=cn[sn][0]*m(fa))}return Yn[0]/=3,Yn[1]/=3,Yn}return br}function Je(ve){return ve[0]*=E,ve[1]*=E,ve}function We(){return et([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function et(ve,xe,Ie){var ze=t.geoCentroid({type:"MultiPoint",coordinates:[ve,xe,Ie]}),Qe=[-ze[0],-ze[1]],Xe=t.geoRotation(Qe),nt=Ge(Je(Xe(ve)),Je(Xe(xe)),Je(Xe(Ie)));nt.invert=at(nt);var qt=t.geoProjection(nt).rotate(Qe),Wt=qt.center;return delete qt.rotate,qt.center=function(nr){return arguments.length?Wt(Xe(nr)):Xe.invert(Wt())},qt.clipAngle(90)}function xt(ve,xe){var Ie=G(1-m(xe));return[2/S*ve*Ie,S*(1-Ie)]}xt.invert=function(ve,xe){var Ie=(Ie=xe/S-1)*Ie;return[Ie>0?ve*G(M/Ie)/2:0,q(1-Ie)]};function At(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function Kt(ve){var xe=b(ve);function Ie(ze,Qe){return[ze,(ze?ze/m(ze):1)*(m(Qe)*o(ze)-xe*o(Qe))]}return Ie.invert=xe?function(ze,Qe){ze&&(Qe*=m(ze)/ze);var Xe=o(ze);return[ze,2*a(G(Xe*Xe+xe*xe-Qe*Qe)-Xe,xe-Qe)]}:function(ze,Qe){return[ze,q(ze?Qe*b(ze)/ze:Qe)]},Ie}function Qt(){return Tt(Kt).scale(249.828).clipAngle(90)}var Mr=G(3);function Gr(ve,xe){return[Mr*ve*(2*o(2*xe/3)-1)/S,Mr*S*m(xe/3)]}Gr.invert=function(ve,xe){var Ie=3*q(xe/(Mr*S));return[S*ve/(Mr*(2*o(2*Ie/3)-1)),Ie]};function Ir(){return t.geoProjection(Gr).scale(156.19)}function Yr(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,m(Qe)/xe]}return Ie.invert=function(ze,Qe){return[ze/xe,q(Qe*xe)]},Ie}function _i(){return Tt(Yr).parallel(38.58).scale(195.044)}function Pi(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,(1+xe)*b(Qe/2)]}return Ie.invert=function(ze,Qe){return[ze/xe,i(Qe/(1+xe))*2]},Ie}function ai(){return Tt(Pi).scale(124.75)}function mi(ve,xe){var Ie=G(8/(3*M));return[Ie*ve*(1-n(xe)/M),Ie*xe]}mi.invert=function(ve,xe){var Ie=G(8/(3*M)),ze=xe/Ie;return[ve/(Ie*(1-n(ze)/M)),ze]};function un(){return t.geoProjection(mi).scale(165.664)}function Fn(ve,xe){var Ie=G(4-3*m(n(xe)));return[2/G(6*M)*ve*Ie,v(xe)*G(2*M/3)*(2-Ie)]}Fn.invert=function(ve,xe){var Ie=2-n(xe)/G(2*M/3);return[ve*G(6*M)/(2*Ie),v(xe)*q((4-Ie*Ie)/3)]};function An(){return t.geoProjection(Fn).scale(165.664)}function Hn(ve,xe){var Ie=G(M*(4+M));return[2/Ie*ve*(1+G(1-4*xe*xe/(M*M))),4/Ie*xe]}Hn.invert=function(ve,xe){var Ie=G(M*(4+M))/2;return[ve*Ie/(1+G(1-xe*xe*(4+M)/(4*M))),xe*Ie/2]};function Qn(){return t.geoProjection(Hn).scale(180.739)}function Vi(ve,xe){var Ie=(2+T)*m(xe);xe/=2;for(var ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++){var Xe=o(xe);xe-=Qe=(xe+m(xe)*(Xe+2)-Ie)/(2*Xe*(1+Xe))}return[2/G(M*(4+M))*ve*(1+o(xe)),2*G(M/(4+M))*m(xe)]}Vi.invert=function(ve,xe){var Ie=xe*G((4+M)/M)/2,ze=q(Ie),Qe=o(ze);return[ve/(2/G(M*(4+M))*(1+Qe)),q((ze+Ie*(Qe+2))/(2+T))]};function Kn(){return t.geoProjection(Vi).scale(180.739)}function Jn(ve,xe){return[ve*(1+o(xe))/G(2+M),2*xe/G(2+M)]}Jn.invert=function(ve,xe){var Ie=G(2+M),ze=xe*Ie/2;return[Ie*ve/(1+o(ze)),ze]};function Gt(){return t.geoProjection(Jn).scale(173.044)}function wt(ve,xe){for(var Ie=(1+T)*m(xe),ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++)xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));return Ie=G(2+M),[ve*(1+o(xe))/Ie,2*xe/Ie]}wt.invert=function(ve,xe){var Ie=1+T,ze=G(Ie/2);return[ve*2*ze/(1+o(xe*=ze)),q((xe+m(xe))/Ie)]};function tr(){return t.geoProjection(wt).scale(173.044)}var ir=3+2*C;function wr(ve,xe){var Ie=m(ve/=2),ze=o(ve),Qe=G(o(xe)),Xe=o(xe/=2),nt=m(xe)/(Xe+C*ze*Qe),qt=G(2/(1+nt*nt)),Wt=G((C*Xe+(ze+Ie)*Qe)/(C*Xe+(ze-Ie)*Qe));return[ir*(qt*(Wt-1/Wt)-2*u(Wt)),ir*(qt*nt*(Wt+1/Wt)-2*i(nt))]}wr.invert=function(ve,xe){if(!(Xe=Se.invert(ve/1.2,xe*1.065)))return null;var Ie=Xe[0],ze=Xe[1],Qe=20,Xe;ve/=ir,xe/=ir;do{var nt=Ie/2,qt=ze/2,Wt=m(nt),nr=o(nt),fr=m(qt),br=o(qt),Fr=o(ze),Hr=G(Fr),ri=fr/(br+C*nr*Hr),Ci=ri*ri,cn=G(2/(1+Ci)),sn=C*br+(nr+Wt)*Hr,Ln=C*br+(nr-Wt)*Hr,Yn=sn/Ln,Aa=G(Yn),fa=Aa-1/Aa,$a=Aa+1/Aa,Co=cn*fa-2*u(Aa)-ve,Qa=cn*ri*$a-2*i(ri)-xe,mo=fr&&x*Hr*Wt*Ci/fr,Bo=(C*nr*br+Hr)/(2*(br+C*nr*Hr)*(br+C*nr*Hr)*Hr),Ps=-.5*ri*cn*cn*cn,Ts=Ps*mo,wo=Ps*Bo,To=(To=2*br+C*Hr*(nr-Wt))*To*Aa,hl=(C*nr*br*Hr+Fr)/To,Ul=-(C*Wt*fr)/(Hr*To),Lu=fa*Ts-2*hl/Aa+cn*(hl+hl/Yn),au=fa*wo-2*Ul/Aa+cn*(Ul+Ul/Yn),Js=ri*$a*Ts-2*mo/(1+Ci)+cn*$a*mo+cn*ri*(hl-hl/Yn),eu=ri*$a*wo-2*Bo/(1+Ci)+cn*$a*Bo+cn*ri*(Ul-Ul/Yn),dc=au*Js-eu*Lu;if(!dc)break;var Tl=(Qa*au-Co*eu)/dc,Al=(Co*Js-Qa*Lu)/dc;Ie-=Tl,ze=c(-T,f(T,ze-Al))}while((n(Tl)>p||n(Al)>p)&&--Qe>0);return n(n(ze)-T)<p?[0,ze]:Qe&&[Ie,ze]};function Xr(){return t.geoProjection(wr).scale(62.5271)}var ti=o(35*E);function $r(ve,xe){var Ie=b(xe/2);return[ve*ti*G(1-Ie*Ie),(1+ti)*Ie]}$r.invert=function(ve,xe){var Ie=xe/(1+ti);return[ve&&ve/(ti*G(1-Ie*Ie)),2*i(Ie)]};function Ri(){return t.geoProjection($r).scale(137.152)}function Zi(ve,xe){var Ie=xe/2,ze=o(Ie);return[2*ve/S*o(xe)*ze*ze,S*b(Ie)]}Zi.invert=function(ve,xe){var Ie=i(xe/S),ze=o(Ie),Qe=2*Ie;return[ve*S/2/(o(Qe)*ze*ze),Qe]};function en(){return t.geoProjection(Zi).scale(135.264)}function fn(ve){var xe=1-ve,Ie=Xe(M,0)[0]-Xe(-M,0)[0],ze=Xe(0,T)[1]-Xe(0,-T)[1],Qe=G(2*ze/Ie);function Xe(Wt,nr){var fr=o(nr),br=m(nr);return[fr/(xe+ve*fr)*Wt,xe*nr+ve*br]}function nt(Wt,nr){var fr=Xe(Wt,nr);return[fr[0]*Qe,fr[1]/Qe]}function qt(Wt){return nt(0,Wt)[1]}return nt.invert=function(Wt,nr){var fr=Ht(qt,nr),br=Wt/Qe*(ve+xe/o(fr));return[br,fr]},nt}function yn(){var ve=.5,xe=t.geoProjectionMutator(fn),Ie=xe(ve);return Ie.alpha=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(168.725)}function Mn(ve){return[ve[0]/2,q(b(ve[1]/2*E))*P]}function Ba(ve){return[ve[0]*2,2*i(m(ve[1]*E))*P]}function ua(ve){ve==null&&(ve=t.geoOrthographic);var xe=ve(),Ie=t.geoEquirectangular().scale(P).precision(0).clipAngle(null).translate([0,0]);function ze(Xe){return xe(Mn(Xe))}xe.invert&&(ze.invert=function(Xe){return Ba(xe.invert(Xe))}),ze.stream=function(Xe){var nt=xe.stream(Xe),qt=Ie.stream({point:function(Wt,nr){nt.point(Wt/2,q(b(-nr/2*E))*P)},lineStart:function(){nt.lineStart()},lineEnd:function(){nt.lineEnd()},polygonStart:function(){nt.polygonStart()},polygonEnd:function(){nt.polygonEnd()}});return qt.sphere=nt.sphere,qt};function Qe(Xe){ze[Xe]=function(){return arguments.length?(xe[Xe].apply(xe,arguments),ze):xe[Xe]()}}return ze.rotate=function(Xe){return arguments.length?(Ie.rotate(Xe),ze):Ie.rotate()},ze.center=function(Xe){return arguments.length?(xe.center(Mn(Xe)),ze):Ba(xe.center())},Qe("angle"),Qe("clipAngle"),Qe("clipExtent"),Qe("fitExtent"),Qe("fitHeight"),Qe("fitSize"),Qe("fitWidth"),Qe("scale"),Qe("translate"),Qe("precision"),ze.scale(249.5)}function ma(ve,xe){var Ie=2*M/xe,ze=ve*ve;function Qe(Xe,nt){var qt=t.geoAzimuthalEquidistantRaw(Xe,nt),Wt=qt[0],nr=qt[1],fr=Wt*Wt+nr*nr;if(fr>ze){var br=G(fr),Fr=a(nr,Wt),Hr=Ie*d(Fr/Ie),ri=Fr-Hr,Ci=ve*o(ri),cn=(ve*m(ri)-ri*m(Ci))/(T-Ci),sn=Wa(ri,cn),Ln=(M-ve)/Fa(sn,Ci,M);Wt=br;var Yn=50,Aa;do Wt-=Aa=(ve+Fa(sn,Ci,Wt)*Ln-br)/(sn(Wt)*Ln);while(n(Aa)>p&&--Yn>0);nr=ri*m(Wt),Wt<T&&(nr-=cn*(Wt-T));var fa=m(Hr),$a=o(Hr);qt[0]=Wt*$a-nr*fa,qt[1]=Wt*fa+nr*$a}return qt}return Qe.invert=function(Xe,nt){var qt=Xe*Xe+nt*nt;if(qt>ze){var Wt=G(qt),nr=a(nt,Xe),fr=Ie*d(nr/Ie),br=nr-fr;Xe=Wt*o(br),nt=Wt*m(br);for(var Fr=Xe-T,Hr=m(Xe),ri=nt/Hr,Ci=Xe<T?1/0:0,cn=10;;){var sn=ve*m(ri),Ln=ve*o(ri),Yn=m(Ln),Aa=T-Ln,fa=(sn-ri*Yn)/Aa,$a=Wa(ri,fa);if(n(Ci)<k||!--cn)break;ri-=Ci=(ri*Hr-fa*Fr-nt)/(Hr-Fr*2*(Aa*(Ln+ri*sn*o(Ln)-Yn)-sn*(sn-ri*Yn))/(Aa*Aa))}Wt=ve+Fa($a,Ln,Xe)*(M-ve)/Fa($a,Ln,M),nr=fr+ri,Xe=Wt*o(nr),nt=Wt*m(nr)}return t.geoAzimuthalEquidistantRaw.invert(Xe,nt)},Qe}function Wa(ve,xe){return function(Ie){var ze=ve*o(Ie);return Ie<T&&(ze-=xe),G(1+ze*ze)}}function Fa(ve,xe,Ie){for(var ze=50,Qe=(Ie-xe)/ze,Xe=ve(xe)+ve(Ie),nt=1,qt=xe;nt<ze;++nt)Xe+=2*ve(qt+=Qe);return Xe*.5*Qe}function Xo(){var ve=6,xe=30*E,Ie=o(xe),ze=m(xe),Qe=t.geoProjectionMutator(ma),Xe=Qe(xe,ve),nt=Xe.stream,qt=.01,Wt=-o(qt*E),nr=m(qt*E);return Xe.radius=function(fr){return arguments.length?(Ie=o(xe=fr*E),ze=m(xe),Qe(xe,ve)):xe*P},Xe.lobes=function(fr){return arguments.length?Qe(xe,ve=+fr):ve},Xe.stream=function(fr){var br=Xe.rotate(),Fr=nt(fr),Hr=(Xe.rotate([0,0]),nt(fr));return Xe.rotate(br),Fr.sphere=function(){Hr.polygonStart(),Hr.lineStart();for(var ri=0,Ci=2*M/ve,cn=0;ri<ve;++ri,cn-=Ci)Hr.point(a(nr*o(cn),Wt)*P,q(nr*m(cn))*P),Hr.point(a(ze*o(cn-Ci/2),Ie)*P,q(ze*m(cn-Ci/2))*P);Hr.lineEnd(),Hr.polygonEnd()},Fr},Xe.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function da(ve,xe,Ie,ze,Qe,Xe,nt,qt){arguments.length<8&&(qt=0);function Wt(nr,fr){if(!fr)return[ve*nr/M,0];var br=fr*fr,Fr=ve+br*(xe+br*(Ie+br*ze)),Hr=fr*(Qe-1+br*(Xe-qt+br*nt)),ri=(Fr*Fr+Hr*Hr)/(2*Hr),Ci=nr*q(Fr/ri)/M;return[ri*m(Ci),fr*(1+br*qt)+ri*(1-o(Ci))]}return Wt.invert=function(nr,fr){var br=M*nr/ve,Fr=fr,Hr,ri,Ci=50;do{var cn=Fr*Fr,sn=ve+cn*(xe+cn*(Ie+cn*ze)),Ln=Fr*(Qe-1+cn*(Xe-qt+cn*nt)),Yn=sn*sn+Ln*Ln,Aa=2*Ln,fa=Yn/Aa,$a=fa*fa,Co=q(sn/fa)/M,Qa=br*Co,mo=sn*sn,Bo=(2*xe+cn*(4*Ie+cn*6*ze))*Fr,Ps=Qe+cn*(3*Xe+cn*5*nt),Ts=2*(sn*Bo+Ln*(Ps-1)),wo=2*(Ps-1),To=(Ts*Aa-Yn*wo)/(Aa*Aa),hl=o(Qa),Ul=m(Qa),Lu=fa*hl,au=fa*Ul,Js=br/M*(1/G(1-mo/$a))*(Bo*fa-sn*To)/$a,eu=au-nr,dc=Fr*(1+cn*qt)+fa-Lu-fr,Tl=To*Ul+Lu*Js,Al=Lu*Co,X=1+To-(To*hl-au*Js),se=au*Co,Te=Tl*se-X*Al;if(!Te)break;br-=Hr=(dc*Tl-eu*X)/Te,Fr-=ri=(eu*se-dc*Al)/Te}while((n(Hr)>p||n(ri)>p)&&--Ci>0);return[br,Fr]},Wt}var jn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ha(){return t.geoProjection(jn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Gn(){return t.geoProjection(vo).scale(153.93)}var Ct=da(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Sr(){return t.geoProjection(Ct).scale(130.945)}function Jr(ve,xe){var Ie=ve*ve,ze=xe*xe;return[ve*(1-.162388*ze)*(.87-952426e-9*Ie*Ie),xe*(1+ze/12)]}Jr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=50,Xe;do{var nt=ze*ze;ze-=Xe=(ze*(1+nt/12)-xe)/(1+nt/4)}while(n(Xe)>p&&--Qe>0);Qe=50,ve/=1-.162388*nt;do{var qt=(qt=Ie*Ie)*qt;Ie-=Xe=(Ie*(.87-952426e-9*qt)-ve)/(.87-.00476213*qt)}while(n(Xe)>p&&--Qe>0);return[Ie,ze]};function hi(){return t.geoProjection(Jr).scale(131.747)}var hn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(hn).scale(131.087)}function En(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve(ze+Xe*M,Qe);return nt[0]-=Xe*xe,nt}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve.invert(ze+Xe*xe,Qe),qt=nt[0]-Xe*M;return qt<-M?qt+=2*M:qt>M&&(qt-=2*M),nt[0]=qt,nt}),Ie}function ki(ve,xe){var Ie=v(ve),ze=v(xe),Qe=o(xe),Xe=o(ve)*Qe,nt=m(ve)*Qe,qt=m(ze*xe);ve=n(a(nt,qt)),xe=q(Xe),n(ve-T)>p&&(ve%=T);var Wt=_n(ve>M/4?T-ve:ve,xe);return ve>M/4&&(qt=Wt[0],Wt[0]=-Wt[1],Wt[1]=-qt),Wt[0]*=Ie,Wt[1]*=-ze,Wt}ki.invert=function(ve,xe){n(ve)>1&&(ve=v(ve)*2-ve),n(xe)>1&&(xe=v(xe)*2-xe);var Ie=v(ve),ze=v(xe),Qe=-Ie*ve,Xe=-ze*xe,nt=Xe/Qe<1,qt=ya(nt?Xe:Qe,nt?Qe:Xe),Wt=qt[0],nr=qt[1],fr=o(nr);return nt&&(Wt=-T-Wt),[Ie*(a(m(Wt)*fr,-m(nr))+M),ze*q(o(Wt)*fr)]};function _n(ve,xe){if(xe===T)return[0,0];var Ie=m(xe),ze=Ie*Ie,Qe=ze*ze,Xe=1+Qe,nt=1+3*Qe,qt=1-Qe,Wt=q(1/G(Xe)),nr=qt+ze*Xe*Wt,fr=(1-Ie)/nr,br=G(fr),Fr=fr*Xe,Hr=G(Fr),ri=br*qt,Ci,cn;if(ve===0)return[0,-(ri+ze*Hr)];var sn=o(xe),Ln=1/sn,Yn=2*Ie*sn,Aa=(-3*ze+Wt*nt)*Yn,fa=(-nr*sn-(1-Ie)*Aa)/(nr*nr),$a=.5*fa/br,Co=qt*$a-2*ze*br*Yn,Qa=ze*Xe*fa+fr*nt*Yn,mo=-Ln*Yn,Bo=-Ln*Qa,Ps=-2*Ln*Co,Ts=4*ve/M,wo;if(ve>.222*M||xe<M/4&&ve>.175*M){if(Ci=(ri+ze*G(Fr*(1+Qe)-ri*ri))/(1+Qe),ve>M/4)return[Ci,Ci];var To=Ci,hl=.5*Ci;Ci=.5*(hl+To),cn=50;do{var Ul=G(Fr-Ci*Ci),Lu=Ci*(Ps+mo*Ul)+Bo*q(Ci/Hr)-Ts;if(!Lu)break;Lu<0?hl=Ci:To=Ci,Ci=.5*(hl+To)}while(n(To-hl)>p&&--cn>0)}else{Ci=p,cn=25;do{var au=Ci*Ci,Js=G(Fr-au),eu=Ps+mo*Js,dc=Ci*eu+Bo*q(Ci/Hr)-Ts,Tl=eu+(Bo-mo*au)/Js;Ci-=wo=Js?dc/Tl:0}while(n(wo)>p&&--cn>0)}return[Ci,-ri-ze*G(Fr-Ci*Ci)]}function ya(ve,xe){for(var Ie=0,ze=1,Qe=.5,Xe=50;;){var nt=Qe*Qe,qt=G(Qe),Wt=q(1/G(1+nt)),nr=1-nt+Qe*(1+nt)*Wt,fr=(1-qt)/nr,br=G(fr),Fr=fr*(1+nt),Hr=br*(1-nt),ri=Fr-ve*ve,Ci=G(ri),cn=xe+Hr+Qe*Ci;if(n(ze-Ie)<k||--Xe===0||cn===0)break;cn>0?Ie=Qe:ze=Qe,Qe=.5*(Ie+ze)}if(!Xe)return null;var sn=q(qt),Ln=o(sn),Yn=1/Ln,Aa=2*qt*Ln,fa=(-3*Qe+Wt*(1+3*nt))*Aa,$a=(-nr*Ln-(1-qt)*fa)/(nr*nr),Co=.5*$a/br,Qa=(1-nt)*Co-2*Qe*br*Aa,mo=-2*Yn*Qa,Bo=-Yn*Aa,Ps=-Yn*(Qe*(1+nt)*$a+fr*(1+3*nt)*Aa);return[M/4*(ve*(mo+Bo*Ci)+Ps*q(ve/G(Fr))),sn]}function ea(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,xe,Ie){var ze,Qe,Xe;return ve?(ze=_o(ve,Ie),xe?(Qe=_o(xe,1-Ie),Xe=Qe[1]*Qe[1]+Ie*ze[0]*ze[0]*Qe[0]*Qe[0],[[ze[0]*Qe[2]/Xe,ze[1]*ze[2]*Qe[0]*Qe[1]/Xe],[ze[1]*Qe[1]/Xe,-ze[0]*ze[2]*Qe[0]*Qe[2]/Xe],[ze[2]*Qe[1]*Qe[2]/Xe,-Ie*ze[0]*ze[1]*Qe[0]/Xe]]):[[ze[0],0],[ze[1],0],[ze[2],0]]):(Qe=_o(xe,1-Ie),[[0,Qe[0]/Qe[1]],[1/Qe[1],0],[Qe[2]/Qe[1],0]])}function _o(ve,xe){var Ie,ze,Qe,Xe,nt;if(xe<p)return Xe=m(ve),ze=o(ve),Ie=xe*(ve-Xe*ze)/4,[Xe-Ie*ze,ze+Ie*Xe,1-xe*Xe*Xe/2,ve-Ie];if(xe>=1-p)return Ie=(1-xe)/4,ze=N(ve),Xe=Z(ve),Qe=1/ze,nt=ze*j(ve),[Xe+Ie*(nt-ve)/(ze*ze),Qe-Ie*Xe*Qe*(nt-ve),Qe+Ie*Xe*Qe*(nt+ve),2*i(s(ve))-T+Ie*(nt-ve)/ze];var qt=[1,0,0,0,0,0,0,0,0],Wt=[G(xe),0,0,0,0,0,0,0,0],nr=0;for(ze=G(1-xe),nt=1;n(Wt[nr]/qt[nr])>p&&nr<8;)Ie=qt[nr++],Wt[nr]=(Ie-ze)/2,qt[nr]=(Ie+ze)/2,ze=G(Ie*ze),nt*=2;Qe=nt*qt[nr]*ve;do Xe=Wt[nr]*m(ze=Qe)/qt[nr],Qe=(q(Xe)+Qe)/2;while(--nr);return[m(Qe),Xe=o(Qe),Xe/o(Qe-ze),Qe]}function No(ve,xe,Ie){var ze=n(ve),Qe=n(xe),Xe=j(Qe);if(ze){var nt=1/m(ze),qt=1/(b(ze)*b(ze)),Wt=-(qt+Ie*(Xe*Xe*nt*nt)-1+Ie),nr=(Ie-1)*qt,fr=(-Wt+G(Wt*Wt-4*nr))/2;return[po(i(1/G(fr)),Ie)*v(ve),po(i(G((fr/qt-1)/Ie)),1-Ie)*v(xe)]}return[0,po(i(Xe),1-Ie)*v(xe)]}function po(ve,xe){if(!xe)return ve;if(xe===1)return u(b(ve/2+L));for(var Ie=1,ze=G(1-xe),Qe=G(xe),Xe=0;n(Qe)>p;Xe++){if(ve%M){var nt=i(ze*b(ve)/Ie);nt<0&&(nt+=M),ve+=nt+~~(ve/M)*M}else ve+=ve;Qe=(Ie+ze)/2,ze=G(Ie*ze),Qe=((Ie=Qe)-ze)/2}return ve/(h(2,Xe)*Ie)}function Lo(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=u(b(M/4+n(xe)/2)),qt=s(Xe*nt)/G(Ie),Wt=ko(qt*o(Xe*ve),qt*m(Xe*ve)),nr=No(Wt[0],Wt[1],ze*ze);return[-nr[1],(xe>=0?1:-1)*(.5*Qe-nr[0])]}function ko(ve,xe){var Ie=ve*ve,ze=xe+1,Qe=1-Ie-xe*xe;return[.5*((ve>=0?T:-T)-a(Qe,2*ve)),-.25*u(Qe*Qe+4*Ie)+.5*u(ze*ze+Ie)]}function Ds(ve,xe){var Ie=xe[0]*xe[0]+xe[1]*xe[1];return[(ve[0]*xe[0]+ve[1]*xe[1])/Ie,(ve[1]*xe[0]-ve[0]*xe[1])/Ie]}Lo.invert=function(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=Ma(.5*Qe-xe,-ve,ze*ze),qt=Ds(nt[0],nt[1]),Wt=a(qt[1],qt[0])/Xe;return[Wt,2*i(s(.5/Xe*u(Ie*qt[0]*qt[0]+Ie*qt[1]*qt[1])))-T]};function Fs(){return t.geoProjection(En(Lo)).scale(151.496)}function ll(ve){var xe=m(ve),Ie=o(ve),ze=ul(ve);ze.invert=ul(-ve);function Qe(Xe,nt){var qt=ze(Xe,nt);Xe=qt[0],nt=qt[1];var Wt=m(nt),nr=o(nt),fr=o(Xe),br=V(xe*Wt+Ie*nr*fr),Fr=m(br),Hr=n(Fr)>p?br/Fr:1;return[Hr*Ie*m(Xe),(n(Xe)>T?Hr:-Hr)*(xe*nr-Ie*Wt*fr)]}return Qe.invert=function(Xe,nt){var qt=G(Xe*Xe+nt*nt),Wt=-m(qt),nr=o(qt),fr=qt*nr,br=-nt*Wt,Fr=qt*xe,Hr=G(fr*fr+br*br-Fr*Fr),ri=a(fr*Fr+br*Hr,br*Fr-fr*Hr),Ci=(qt>T?-1:1)*a(Xe*Wt,qt*o(ri)*nr+nt*m(ri)*Wt);return ze.invert(Ci,ri)},Qe}function ul(ve){var xe=m(ve),Ie=o(ve);return function(ze,Qe){var Xe=o(Qe),nt=o(ze)*Xe,qt=m(ze)*Xe,Wt=m(Qe);return[a(qt,nt*Ie-Wt*xe),q(Wt*Ie+nt*xe)]}}function zl(){var ve=0,xe=t.geoProjectionMutator(ll),Ie=xe(ve),ze=Ie.rotate,Qe=Ie.stream,Xe=t.geoCircle();return Ie.parallel=function(nt){if(!arguments.length)return ve*P;var qt=Ie.rotate();return xe(ve=nt*E).rotate(qt)},Ie.rotate=function(nt){return arguments.length?(ze.call(Ie,[nt[0],nt[1]-ve*P]),Xe.center([-nt[0],-nt[1]]),Ie):(nt=ze.call(Ie),nt[1]+=ve*P,nt)},Ie.stream=function(nt){return nt=Qe(nt),nt.sphere=function(){nt.polygonStart();var qt=.01,Wt=Xe.radius(90-qt)().coordinates[0],nr=Wt.length-1,fr=-1,br;for(nt.lineStart();++fr<nr;)nt.point((br=Wt[fr])[0],br[1]);for(nt.lineEnd(),Wt=Xe.radius(90+qt)().coordinates[0],nr=Wt.length-1,nt.lineStart();--fr>=0;)nt.point((br=Wt[fr])[0],br[1]);nt.lineEnd(),nt.polygonEnd()},nt},Ie.scale(79.4187).parallel(45).clipAngle(180-.001)}var us=3,il=q(1-1/us)*P,As=Yr(0);function cl(ve){var xe=il*E,Ie=xt(M,xe)[0]-xt(-M,xe)[0],ze=As(0,xe)[1],Qe=xt(0,xe)[1],Xe=S-Qe,nt=g/ve,qt=4/g,Wt=ze+Xe*Xe*4/g;function nr(fr,br){var Fr,Hr=n(br);if(Hr>xe){var ri=f(ve-1,c(0,l((fr+M)/nt)));fr+=M*(ve-1)/ve-ri*nt,Fr=xt(fr,Hr),Fr[0]=Fr[0]*g/Ie-g*(ve-1)/(2*ve)+ri*g/ve,Fr[1]=ze+(Fr[1]-Qe)*4*Xe/g,br<0&&(Fr[1]=-Fr[1])}else Fr=As(fr,br);return Fr[0]*=qt,Fr[1]/=Wt,Fr}return nr.invert=function(fr,br){fr/=qt,br*=Wt;var Fr=n(br);if(Fr>ze){var Hr=f(ve-1,c(0,l((fr+M)/nt)));fr=(fr+M*(ve-1)/ve-Hr*nt)*Ie/g;var ri=xt.invert(fr,.25*(Fr-ze)*g/Xe+Qe);return ri[0]-=M*(ve-1)/ve-Hr*nt,br<0&&(ri[1]=-ri[1]),ri}return As.invert(fr,br)},nr}function Ks(ve,xe){return[ve,xe&1?90-p:il]}function zs(ve,xe){return[ve,xe&1?-90+p:-il]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function ls(ve){var xe=[].concat(r.range(-180,180+ve/2,ve).map(Ks),r.range(180,-180-ve/2,-ve).map(zs));return{type:"Polygon",coordinates:[ve===180?xe.map(Io):xe]}}function Yl(){var ve=4,xe=t.geoProjectionMutator(cl),Ie=xe(ve),ze=Ie.stream;return Ie.lobes=function(Qe){return arguments.length?xe(ve=+Qe):ve},Ie.stream=function(Qe){var Xe=Ie.rotate(),nt=ze(Qe),qt=(Ie.rotate([0,0]),ze(Qe));return Ie.rotate(Xe),nt.sphere=function(){t.geoStream(ls(180/ve),qt)},nt},Ie.scale(239.75)}function Su(ve){var xe=1+ve,Ie=m(1/xe),ze=q(Ie),Qe=2*G(M/(Xe=M+4*ze*xe)),Xe,nt=.5*Qe*(xe+G(ve*(2+ve))),qt=ve*ve,Wt=xe*xe;function nr(fr,br){var Fr=1-m(br),Hr,ri;if(Fr&&Fr<2){var Ci=T-br,cn=25,sn;do{var Ln=m(Ci),Yn=o(Ci),Aa=ze+a(Ln,xe-Yn),fa=1+Wt-2*xe*Yn;Ci-=sn=(Ci-qt*ze-xe*Ln+fa*Aa-.5*Fr*Xe)/(2*xe*Ln*Aa)}while(n(sn)>k&&--cn>0);Hr=Qe*G(fa),ri=fr*Aa/M}else Hr=Qe*(ve+Fr),ri=fr*ze/M;return[Hr*m(ri),nt-Hr*o(ri)]}return nr.invert=function(fr,br){var Fr=fr*fr+(br-=nt)*br,Hr=(1+Wt-Fr/(Qe*Qe))/(2*xe),ri=V(Hr),Ci=m(ri),cn=ze+a(Ci,xe-Hr);return[q(fr/G(Fr))*M/cn,q(1-2*(ri-qt*ze-xe*Ci+(1+Wt-2*xe*Hr)*cn)/Xe)]},nr}function nc(){var ve=1,xe=t.geoProjectionMutator(Su),Ie=xe(ve);return Ie.ratio=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(167.774).center([0,18.67])}var bs=.7109889596207567,Rn=.0528035274542;function _a(ve,xe){return xe>-bs?(ve=tt(ve,xe),ve[1]+=Rn,ve):dt(ve,xe)}_a.invert=function(ve,xe){return xe>-bs?tt.invert(ve,xe-Rn):dt.invert(ve,xe)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ql(ve,xe){return n(xe)>bs?(ve=tt(ve,xe),ve[1]-=xe>0?Rn:-Rn,ve):dt(ve,xe)}ql.invert=function(ve,xe){return n(xe)>bs?tt.invert(ve,xe+(xe>0?Rn:-Rn)):dt.invert(ve,xe)};function xo(){return t.geoProjection(ql).scale(152.63)}function Kl(ve,xe,Ie,ze){var Qe=G(4*M/(2*Ie+(1+ve-xe/2)*m(2*Ie)+(ve+xe)/2*m(4*Ie)+xe/2*m(6*Ie))),Xe=G(ze*m(Ie)*G((1+ve*o(2*Ie)+xe*o(4*Ie))/(1+ve+xe))),nt=Ie*Wt(1);function qt(br){return G(1+ve*o(2*br)+xe*o(4*br))}function Wt(br){var Fr=br*Ie;return(2*Fr+(1+ve-xe/2)*m(2*Fr)+(ve+xe)/2*m(4*Fr)+xe/2*m(6*Fr))/Ie}function nr(br){return qt(br)*m(br)}var fr=function(br,Fr){var Hr=Ie*Ht(Wt,nt*m(Fr)/Ie,Fr/M);isNaN(Hr)&&(Hr=Ie*v(Fr));var ri=Qe*qt(Hr);return[ri*Xe*br/M*o(Hr),ri/Xe*m(Hr)]};return fr.invert=function(br,Fr){var Hr=Ht(nr,Fr*Xe/Qe);return[br*M/(o(Hr)*Qe*Xe*qt(Hr)),q(Ie*Wt(Hr/Ie)/nt)]},Ie===0&&(Qe=G(ze/M),fr=function(br,Fr){return[br*Qe,m(Fr)/Qe]},fr.invert=function(br,Fr){return[br/Qe,q(Fr*Qe)]}),fr}function Ns(){var ve=1,xe=0,Ie=45*E,ze=2,Qe=t.geoProjectionMutator(Kl),Xe=Qe(ve,xe,Ie,ze);return Xe.a=function(nt){return arguments.length?Qe(ve=+nt,xe,Ie,ze):ve},Xe.b=function(nt){return arguments.length?Qe(ve,xe=+nt,Ie,ze):xe},Xe.psiMax=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt*E,ze):Ie*P},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(180.739)}function Hl(ve,xe,Ie,ze,Qe,Xe,nt,qt,Wt,nr,fr){if(fr.nanEncountered)return NaN;var br,Fr,Hr,ri,Ci,cn,sn,Ln,Yn,Aa;if(br=Ie-xe,Fr=ve(xe+br*.25),Hr=ve(Ie-br*.25),isNaN(Fr)){fr.nanEncountered=!0;return}if(isNaN(Hr)){fr.nanEncountered=!0;return}return ri=br*(ze+4*Fr+Qe)/12,Ci=br*(Qe+4*Hr+Xe)/12,cn=ri+Ci,Aa=(cn-nt)/15,nr>Wt?(fr.maxDepthCount++,cn+Aa):Math.abs(Aa)<qt?cn+Aa:(sn=xe+br*.5,Ln=Hl(ve,xe,sn,ze,Fr,Qe,ri,qt*.5,Wt,nr+1,fr),isNaN(Ln)?(fr.nanEncountered=!0,NaN):(Yn=Hl(ve,sn,Ie,Qe,Hr,Xe,Ci,qt*.5,Wt,nr+1,fr),isNaN(Yn)?(fr.nanEncountered=!0,NaN):Ln+Yn))}function ac(ve,xe,Ie,ze,Qe){var Xe={maxDepthCount:0,nanEncountered:!1};ze===void 0&&(ze=1e-8),Qe===void 0&&(Qe=20);var nt=ve(xe),qt=ve(.5*(xe+Ie)),Wt=ve(Ie),nr=(nt+4*qt+Wt)*(Ie-xe)/6,fr=Hl(ve,xe,Ie,nt,qt,Wt,nr,ze,Qe,1,Xe);return fr}function oa(ve,xe,Ie){function ze(Hr){return ve+(1-ve)*h(1-h(Hr,xe),1/xe)}function Qe(Hr){return ac(ze,0,Hr,1e-4)}for(var Xe=1/Qe(1),nt=1e3,qt=(1+1e-8)*Xe,Wt=[],nr=0;nr<=nt;nr++)Wt.push(Qe(nr/nt)*qt);function fr(Hr){var ri=0,Ci=nt,cn=nt>>1;do Wt[cn]>Hr?Ci=cn:ri=cn,cn=ri+Ci>>1;while(cn>ri);var sn=Wt[cn+1]-Wt[cn];return sn&&(sn=(Hr-Wt[cn+1])/sn),(cn+1+sn)/nt}var br=2*fr(1)/M*Xe/Ie,Fr=function(Hr,ri){var Ci=fr(n(m(ri))),cn=ze(Ci)*Hr;return Ci/=br,[cn,ri>=0?Ci:-Ci]};return Fr.invert=function(Hr,ri){var Ci;return ri*=br,n(ri)<1&&(Ci=v(ri)*q(Qe(n(ri))*Xe)),[Hr/ze(n(ri)),Ci]},Fr}function qo(){var ve=0,xe=2.5,Ie=1.183136,ze=t.geoProjectionMutator(oa),Qe=ze(ve,xe,Ie);return Qe.alpha=function(Xe){return arguments.length?ze(ve=+Xe,xe,Ie):ve},Qe.k=function(Xe){return arguments.length?ze(ve,xe=+Xe,Ie):xe},Qe.gamma=function(Xe){return arguments.length?ze(ve,xe,Ie=+Xe):Ie},Qe.scale(152.63)}function Oo(ve,xe){return n(ve[0]-xe[0])<p&&n(ve[1]-xe[1])<p}function Ol(ve,xe){for(var Ie=-1,ze=ve.length,Qe=ve[0],Xe,nt,qt,Wt=[];++Ie<ze;){Xe=ve[Ie],nt=(Xe[0]-Qe[0])/xe,qt=(Xe[1]-Qe[1])/xe;for(var nr=0;nr<xe;++nr)Wt.push([Qe[0]+nr*nt,Qe[1]+nr*qt]);Qe=Xe}return Wt.push(Xe),Wt}function Pc(ve){var xe=[],Ie,ze,Qe,Xe,nt,qt,Wt,nr=ve[0].length;for(Wt=0;Wt<nr;++Wt)Ie=ve[0][Wt],ze=Ie[0][0],Qe=Ie[0][1],Xe=Ie[1][1],nt=Ie[2][0],qt=Ie[2][1],xe.push(Ol([[ze+p,Qe+p],[ze+p,Xe-p],[nt-p,Xe-p],[nt-p,qt+p]],30));for(Wt=ve[1].length-1;Wt>=0;--Wt)Ie=ve[1][Wt],ze=Ie[0][0],Qe=Ie[0][1],Xe=Ie[1][1],nt=Ie[2][0],qt=Ie[2][1],xe.push(Ol([[nt-p,qt-p],[nt-p,Xe+p],[ze+p,Xe+p],[ze+p,Qe-p]],30));return{type:"Polygon",coordinates:[r.merge(xe)]}}function Do(ve,xe,Ie){var ze,Qe;function Xe(Wt,nr){for(var fr=nr<0?-1:1,br=xe[+(nr<0)],Fr=0,Hr=br.length-1;Fr<Hr&&Wt>br[Fr][2][0];++Fr);var ri=ve(Wt-br[Fr][1][0],nr);return ri[0]+=ve(br[Fr][1][0],fr*nr>fr*br[Fr][0][1]?br[Fr][0][1]:nr)[0],ri}Ie?Xe.invert=Ie(Xe):ve.invert&&(Xe.invert=function(Wt,nr){for(var fr=Qe[+(nr<0)],br=xe[+(nr<0)],Fr=0,Hr=fr.length;Fr<Hr;++Fr){var ri=fr[Fr];if(ri[0][0]<=Wt&&Wt<ri[1][0]&&ri[0][1]<=nr&&nr<ri[1][1]){var Ci=ve.invert(Wt-ve(br[Fr][1][0],0)[0],nr);return Ci[0]+=br[Fr][1][0],Oo(Xe(Ci[0],Ci[1]),[Wt,nr])?Ci:null}}});var nt=t.geoProjection(Xe),qt=nt.stream;return nt.stream=function(Wt){var nr=nt.rotate(),fr=qt(Wt),br=(nt.rotate([0,0]),qt(Wt));return nt.rotate(nr),fr.sphere=function(){t.geoStream(ze,br)},fr},nt.lobes=function(Wt){return arguments.length?(ze=Pc(Wt),xe=Wt.map(function(nr){return nr.map(function(fr){return[[fr[0][0]*E,fr[0][1]*E],[fr[1][0]*E,fr[1][1]*E],[fr[2][0]*E,fr[2][1]*E]]})}),Qe=xe.map(function(nr){return nr.map(function(fr){var br=ve(fr[0][0],fr[0][1])[0],Fr=ve(fr[2][0],fr[2][1])[0],Hr=ve(fr[1][0],fr[0][1])[1],ri=ve(fr[1][0],fr[1][1])[1],Ci;return Hr>ri&&(Ci=Hr,Hr=ri,ri=Ci),[[br,Hr],[Fr,ri]]})}),nt):xe.map(function(nr){return nr.map(function(fr){return[[fr[0][0]*P,fr[0][1]*P],[fr[1][0]*P,fr[1][1]*P],[fr[2][0]*P,fr[2][1]*P]]})})},xe!=null&&nt.lobes(xe),nt}var nf=[[[[-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 Vf(){return Do(rt,nf).scale(160.857)}var pl=[[[[-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 Zc(){return Do(ql,pl).scale(152.63)}var Jl=[[[[-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 qs(){return Do(tt,Jl).scale(169.529)}var yu=[[[[-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 oc(){return Do(tt,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-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 sc(){return Do(_a,Cf,at).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var jh=[[[[-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 Lf(){return Do(dt,jh).scale(152.63).rotate([-20,0])}function cs(ve,xe){return[3/g*ve*G(M*M/3-xe*xe),xe]}cs.invert=function(ve,xe){return[g/3*ve/G(M*M/3-xe*xe),xe]};function af(){return t.geoProjection(cs).scale(158.837)}function Gf(ve){function xe(Ie,ze){if(n(n(ze)-T)<p)return[0,ze<0?-2:2];var Qe=m(ze),Xe=h((1+Qe)/(1-Qe),ve/2),nt=.5*(Xe+1/Xe)+o(Ie*=ve);return[2*m(Ie)/nt,(Xe-1/Xe)/nt]}return xe.invert=function(Ie,ze){var Qe=n(ze);if(n(Qe-2)<p)return Ie?null:[0,v(ze)*T];if(Qe>2)return null;Ie/=2,ze/=2;var Xe=Ie*Ie,nt=ze*ze,qt=2*ze/(1+Xe+nt);return qt=h((1+qt)/(1-qt),1/ve),[a(2*Ie,1-Xe-nt)/ve,q((qt-1)/(qt+1))]},xe}function $l(){var ve=.5,xe=t.geoProjectionMutator(Gf),Ie=xe(ve);return Ie.spacing=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(124.75)}var fl=M/C;function lc(ve,xe){return[ve*(1+G(o(xe)))/2,xe/(o(xe/2)*o(ve/6))]}lc.invert=function(ve,xe){var Ie=n(ve),ze=n(xe),Qe=p,Xe=T;ze<fl?Xe*=ze/fl:Qe+=6*V(fl/ze);for(var nt=0;nt<25;nt++){var qt=m(Xe),Wt=G(o(Xe)),nr=m(Xe/2),fr=o(Xe/2),br=m(Qe/6),Fr=o(Qe/6),Hr=.5*Qe*(1+Wt)-Ie,ri=Xe/(fr*Fr)-ze,Ci=Wt?-.25*Qe*qt/Wt:0,cn=.5*(1+Wt),sn=(1+.5*Xe*nr/fr)/(fr*Fr),Ln=Xe/fr*(br/6)/(Fr*Fr),Yn=Ci*Ln-sn*cn,Aa=(Hr*Ln-ri*cn)/Yn,fa=(ri*Ci-Hr*sn)/Yn;if(Xe-=Aa,Qe-=fa,n(Aa)<p&&n(fa)<p)break}return[ve<0?-Qe:Qe,xe<0?-Xe:Xe]};function Fu(){return t.geoProjection(lc).scale(97.2672)}function Es(ve,xe){var Ie=ve*ve,ze=xe*xe;return[ve*(.975534+ze*(-.119161+Ie*-.0143059+ze*-.0547009)),xe*(1.00384+Ie*(.0802894+ze*-.02855+Ie*199025e-9)+ze*(.0998909+ze*-.0491032))]}Es.invert=function(ve,xe){var Ie=v(ve)*M,ze=xe/2,Qe=50;do{var Xe=Ie*Ie,nt=ze*ze,qt=Ie*ze,Wt=Ie*(.975534+nt*(-.119161+Xe*-.0143059+nt*-.0547009))-ve,nr=ze*(1.00384+Xe*(.0802894+nt*-.02855+Xe*199025e-9)+nt*(.0998909+nt*-.0491032))-xe,fr=.975534-nt*(.119161+3*Xe*.0143059+nt*.0547009),br=-qt*(2*.119161+4*.0547009*nt+2*.0143059*Xe),Fr=qt*(2*.0802894+4*199025e-9*Xe+2*-.02855*nt),Hr=1.00384+Xe*(.0802894+199025e-9*Xe)+nt*(3*(.0998909-.02855*Xe)-5*.0491032*nt),ri=br*Fr-Hr*fr,Ci=(nr*br-Wt*Hr)/ri,cn=(Wt*Fr-nr*fr)/ri;Ie-=Ci,ze-=cn}while((n(Ci)>p||n(cn)>p)&&--Qe>0);return Qe&&[Ie,ze]};function Hs(){return t.geoProjection(Es).scale(139.98)}function Go(ve,xe){return[m(ve)/o(xe),b(xe)*o(ve)]}Go.invert=function(ve,xe){var Ie=ve*ve,ze=xe*xe,Qe=ze+1,Xe=Ie+Qe,nt=ve?x*G((Xe-G(Xe*Xe-4*Ie))/Ie):1/G(Qe);return[q(ve*nt),v(xe)*V(nt)]};function ps(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var xe=o(ve),Ie=b(L+ve/2);function ze(Qe,Xe){var nt=Xe-ve,qt=n(nt)<p?Qe*xe:n(qt=L+Xe/2)<p||n(n(qt)-T)<p?0:Qe*nt/u(b(qt)/Ie);return[qt,nt]}return ze.invert=function(Qe,Xe){var nt,qt=Xe+ve;return[n(Xe)<p?Qe/xe:n(nt=L+qt/2)<p||n(n(nt)-T)<p?0:Qe*u(b(nt)/Ie)/Xe,qt]},ze}function xl(){return Tt(uc).parallel(40).scale(158.837)}function Gu(ve,xe){return[ve,1.25*u(b(L+.4*xe))]}Gu.invert=function(ve,xe){return[ve,2.5*i(s(.8*xe))-.625*M]};function Os(){return t.geoProjection(Gu).scale(108.318)}function od(ve){var xe=ve.length-1;function Ie(ze,Qe){for(var Xe=o(Qe),nt=2/(1+Xe*o(ze)),qt=nt*Xe*m(ze),Wt=nt*m(Qe),nr=xe,fr=ve[nr],br=fr[0],Fr=fr[1],Hr;--nr>=0;)fr=ve[nr],br=fr[0]+qt*(Hr=br)-Wt*Fr,Fr=fr[1]+qt*Fr+Wt*Hr;return br=qt*(Hr=br)-Wt*Fr,Fr=qt*Fr+Wt*Hr,[br,Fr]}return Ie.invert=function(ze,Qe){var Xe=20,nt=ze,qt=Qe;do{for(var Wt=xe,nr=ve[Wt],fr=nr[0],br=nr[1],Fr=0,Hr=0,ri;--Wt>=0;)nr=ve[Wt],Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nr[0]+nt*(ri=fr)-qt*br,br=nr[1]+nt*br+qt*ri;Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nt*(ri=fr)-qt*br-ze,br=nt*br+qt*ri-Qe;var Ci=Fr*Fr+Hr*Hr,cn,sn;nt-=cn=(fr*Fr+br*Hr)/Ci,qt-=sn=(br*Fr-fr*Hr)/Ci}while(n(cn)+n(sn)>p*p&&--Xe>0);if(Xe){var Ln=G(nt*nt+qt*qt),Yn=2*i(Ln*.5),Aa=m(Yn);return[a(nt*Aa,Ln*o(Yn)),Ln?q(qt*Aa/Ln):0]}},Ie}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],sd=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Ko=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],of=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return Bl(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function bl(){return Bl(sd,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Hf(){return Bl(Ko,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return Bl(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function yf(){return Bl(of,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,xe){var Ie=t.geoProjection(od(ve)).rotate(xe).clipAngle(90),ze=t.geoRotation(xe),Qe=Ie.center;return delete Ie.rotate,Ie.center=function(Xe){return arguments.length?Qe(ze(Xe)):ze.invert(Qe())},Ie}var Ah=G(6),Qf=G(7);function _f(ve,xe){var Ie=q(7*m(xe)/(3*Ah));return[Ah*ve*(2*o(2*Ie/3)-1)/Qf,9*m(Ie/3)/Qf]}_f.invert=function(ve,xe){var Ie=3*q(xe*Qf/9);return[ve*Qf/(Ah*(2*o(2*Ie/3)-1)),q(m(Ie)*3*Ah/7)]};function Yc(){return t.geoProjection(_f).scale(164.859)}function eh(ve,xe){for(var Ie=(1+x)*m(xe),ze=xe,Qe=0,Xe;Qe<25&&(ze-=Xe=(m(ze/2)+m(ze)-Ie)/(.5*o(ze/2)+o(ze)),!(n(Xe)<p));Qe++);return[ve*(1+2*o(ze)/o(ze/2))/(3*C),2*G(3)*m(ze/2)/G(2+C)]}eh.invert=function(ve,xe){var Ie=xe*G(2+C)/(2*G(3)),ze=2*q(Ie);return[3*C*ve/(1+2*o(ze)/o(ze/2)),q((Ie+m(ze))/(1+x))]};function th(){return t.geoProjection(eh).scale(188.209)}function ju(ve,xe){for(var Ie=G(6/(4+M)),ze=(1+M/4)*m(xe),Qe=xe/2,Xe=0,nt;Xe<25&&(Qe-=nt=(Qe/2+m(Qe)-ze)/(.5+o(Qe)),!(n(nt)<p));Xe++);return[Ie*(.5+o(Qe))*ve/1.5,Ie*Qe]}ju.invert=function(ve,xe){var Ie=G(6/(4+M)),ze=xe/Ie;return n(n(ze)-T)<p&&(ze=ze<0?-T:T),[1.5*ve/(Ie*(.5+o(ze))),q((ze/2+m(ze))/(1+M/4))]};function jf(){return t.geoProjection(ju).scale(166.518)}function cc(ve,xe){var Ie=xe*xe,ze=Ie*Ie,Qe=Ie*ze;return[ve*(.84719-.13063*Ie+Qe*Qe*(-.04515+.05494*Ie-.02326*ze+.00331*Qe)),xe*(1.01183+ze*ze*(-.02625+.01926*Ie-.00396*ze))]}cc.invert=function(ve,xe){var Ie=xe,ze=25,Qe,Xe,nt,qt;do Xe=Ie*Ie,nt=Xe*Xe,Ie-=Qe=(Ie*(1.01183+nt*nt*(-.02625+.01926*Xe-.00396*nt))-xe)/(1.01183+nt*nt*(9*-.02625+11*.01926*Xe+13*-.00396*nt));while(n(Qe)>k&&--ze>0);return Xe=Ie*Ie,nt=Xe*Xe,qt=Xe*nt,[ve/(.84719-.13063*Xe+qt*qt*(-.04515+.05494*Xe-.02326*nt+.00331*qt)),Ie]};function sf(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,xe){return[ve*(1+o(xe))/2,2*(xe-b(xe/2))]}Nl.invert=function(ve,xe){for(var Ie=xe/2,ze=0,Qe=1/0;ze<10&&n(Qe)>p;++ze){var Xe=o(xe/2);xe-=Qe=(xe-b(xe/2)-Ie)/(1-.5/(Xe*Xe))}return[2*ve/(1+o(xe)),xe]};function Kc(){return t.geoProjection(Nl).scale(152.63)}var Rc=[[[[-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 gs(){return Do(He(1/0),Rc).rotate([20,0]).scale(152.63)}function Wf(ve,xe){var Ie=m(xe),ze=o(xe),Qe=v(ve);if(ve===0||n(xe)===T)return[0,xe];if(xe===0)return[ve,0];if(n(ve)===T)return[ve*ze,T*Ie];var Xe=M/(2*ve)-2*ve/M,nt=2*xe/M,qt=(1-nt*nt)/(Ie-nt),Wt=Xe*Xe,nr=qt*qt,fr=1+Wt/nr,br=1+nr/Wt,Fr=(Xe*Ie/qt-Xe/2)/fr,Hr=(nr*Ie/Wt+qt/2)/br,ri=Fr*Fr+ze*ze/fr,Ci=Hr*Hr-(nr*Ie*Ie/Wt+qt*Ie-1)/br;return[T*(Fr+G(ri)*Qe),T*(Hr+G(Ci<0?0:Ci)*v(-xe*Xe)*Qe)]}Wf.invert=function(ve,xe){ve/=T,xe/=T;var Ie=ve*ve,ze=xe*xe,Qe=Ie+ze,Xe=M*M;return[ve?(Qe-1+G((1-Qe)*(1-Qe)+4*Ie))/(2*ve)*T:0,Ht(function(nt){return Qe*(M*m(nt)-2*nt)*M+4*nt*nt*(xe-m(nt))+2*M*nt-Xe*xe},0)]};function Wh(){return t.geoProjection(Wf).scale(127.267)}var rh=1.0148,lf=.23185,Sh=-.14499,Mu=.02406,ih=rh,js=5*lf,Eu=7*Sh,Dc=9*Mu,ks=1.790857183;function bc(ve,xe){var Ie=xe*xe;return[ve,xe*(rh+Ie*Ie*(lf+Ie*(Sh+Mu*Ie)))]}bc.invert=function(ve,xe){xe>ks?xe=ks:xe<-ks&&(xe=-ks);var Ie=xe,ze;do{var Qe=Ie*Ie;Ie-=ze=(Ie*(rh+Qe*Qe*(lf+Qe*(Sh+Mu*Qe)))-xe)/(ih+Qe*Qe*(js+Qe*(Eu+Dc*Qe)))}while(n(ze)>p);return[ve,Ie]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,xe){if(n(xe)<p)return[ve,0];var Ie=b(xe),ze=ve*m(xe);return[m(ze)/Ie,xe+(1-o(ze))/Ie]}_u.invert=function(ve,xe){if(n(xe)<p)return[ve,0];var Ie=ve*ve+xe*xe,ze=xe*.5,Qe=10,Xe;do{var nt=b(ze),qt=1/o(ze),Wt=Ie-2*xe*ze+ze*ze;ze-=Xe=(nt*Wt+2*(ze-xe))/(2+Wt*qt*qt+2*(ze-xe)*nt)}while(n(Xe)>p&&--Qe>0);return nt=b(ze),[(n(xe)<n(ze+1/nt)?q(ve*nt):v(xe)*v(ve)*(V(n(ve*nt))+T))/m(ze),ze]};function nl(){return t.geoProjection(_u).scale(103.74)}function nh(ve,xe){var Ie=Fc(ve[1],ve[0]),ze=Fc(xe[1],xe[0]),Qe=bd(Ie,ze),Xe=wc(Ie)/wc(ze);return zu([1,0,ve[0][0],0,1,ve[0][1]],zu([Xe,0,0,0,Xe,0],zu([o(Qe),m(Qe),0,-m(Qe),o(Qe),0],[1,0,-xe[0][0],0,1,-xe[0][1]])))}function Mh(ve){var xe=1/(ve[0]*ve[4]-ve[1]*ve[3]);return[xe*ve[4],-xe*ve[1],xe*(ve[1]*ve[5]-ve[2]*ve[4]),-xe*ve[3],xe*ve[0],xe*(ve[2]*ve[3]-ve[0]*ve[5])]}function zu(ve,xe){return[ve[0]*xe[0]+ve[1]*xe[3],ve[0]*xe[1]+ve[1]*xe[4],ve[0]*xe[2]+ve[1]*xe[5]+ve[2],ve[3]*xe[0]+ve[4]*xe[3],ve[3]*xe[1]+ve[4]*xe[4],ve[3]*xe[2]+ve[4]*xe[5]+ve[5]]}function Fc(ve,xe){return[ve[0]-xe[0],ve[1]-xe[1]]}function wc(ve){return G(ve[0]*ve[0]+ve[1]*ve[1])}function bd(ve,xe){return a(ve[0]*xe[1]-ve[1]*xe[0],ve[0]*xe[0]+ve[1]*xe[1])}function xf(ve,xe,Ie){ze(ve,{transform:null});function ze(nr,fr){if(nr.edges=jl(nr.face),fr.face){var br=nr.shared=bf(nr.face,fr.face),Fr=nh(br.map(fr.project),br.map(nr.project));nr.transform=fr.transform?zu(fr.transform,Fr):Fr;for(var Hr=fr.edges,ri=0,Ci=Hr.length;ri<Ci;++ri)qu(br[0],Hr[ri][1])&&qu(br[1],Hr[ri][0])&&(Hr[ri]=nr),qu(br[0],Hr[ri][0])&&qu(br[1],Hr[ri][1])&&(Hr[ri]=nr);for(Hr=nr.edges,ri=0,Ci=Hr.length;ri<Ci;++ri)qu(br[0],Hr[ri][0])&&qu(br[1],Hr[ri][1])&&(Hr[ri]=fr),qu(br[0],Hr[ri][1])&&qu(br[1],Hr[ri][0])&&(Hr[ri]=fr)}else nr.transform=fr.transform;return nr.children&&nr.children.forEach(function(cn){ze(cn,nr)}),nr}function Qe(nr,fr){var br=xe(nr,fr),Fr=br.project([nr*P,fr*P]),Hr;return(Hr=br.transform)?[Hr[0]*Fr[0]+Hr[1]*Fr[1]+Hr[2],-(Hr[3]*Fr[0]+Hr[4]*Fr[1]+Hr[5])]:(Fr[1]=-Fr[1],Fr)}uf(ve)&&(Qe.invert=function(nr,fr){var br=Xe(ve,[nr,-fr]);return br&&(br[0]*=E,br[1]*=E,br)});function Xe(nr,fr){var br=nr.project.invert,Fr=nr.transform,Hr=fr;if(Fr&&(Fr=Mh(Fr),Hr=[Fr[0]*Hr[0]+Fr[1]*Hr[1]+Fr[2],Fr[3]*Hr[0]+Fr[4]*Hr[1]+Fr[5]]),br&&nr===nt(ri=br(Hr)))return ri;for(var ri,Ci=nr.children,cn=0,sn=Ci&&Ci.length;cn<sn;++cn)if(ri=Xe(Ci[cn],fr))return ri}function nt(nr){return xe(nr[0]*E,nr[1]*E)}var qt=t.geoProjection(Qe),Wt=qt.stream;return qt.stream=function(nr){var fr=qt.rotate(),br=Wt(nr),Fr=(qt.rotate([0,0]),Wt(nr));return qt.rotate(fr),br.sphere=function(){Fr.polygonStart(),Fr.lineStart(),Pf(Fr,ve),Fr.lineEnd(),Fr.polygonEnd()},br},qt.angle(Ie==null?-30:Ie*P)}function Pf(ve,xe,Ie){var ze,Qe=xe.edges,Xe=Qe.length,nt,qt={type:"MultiPoint",coordinates:xe.face},Wt=xe.face.filter(function(Ci){return n(Ci[1])!==90}),nr=t.geoBounds({type:"MultiPoint",coordinates:Wt}),fr=!1,br=-1,Fr=nr[1][0]-nr[0][0],Hr=Fr===180||Fr===360?[(nr[0][0]+nr[1][0])/2,(nr[0][1]+nr[1][1])/2]:t.geoCentroid(qt);if(Ie)for(;++br<Xe&&Qe[br]!==Ie;);++br;for(var ri=0;ri<Xe;++ri)nt=Qe[(ri+br)%Xe],Array.isArray(nt)?(fr||(ve.point((ze=t.geoInterpolate(nt[0],Hr)(p))[0],ze[1]),fr=!0),ve.point((ze=t.geoInterpolate(nt[1],Hr)(p))[0],ze[1])):(fr=!1,nt!==Ie&&Pf(ve,nt,xe))}function qu(ve,xe){return ve&&xe&&ve[0]===xe[0]&&ve[1]===xe[1]}function bf(ve,xe){for(var Ie,ze,Qe=ve.length,Xe=null,nt=0;nt<Qe;++nt){Ie=ve[nt];for(var qt=xe.length;--qt>=0;)if(ze=xe[qt],Ie[0]===ze[0]&&Ie[1]===ze[1]){if(Xe)return[Xe,Ie];Xe=Ie}}}function jl(ve){for(var xe=ve.length,Ie=[],ze=ve[xe-1],Qe=0;Qe<xe;++Qe)Ie.push([ze,ze=ve[Qe]]);return Ie}function uf(ve){return ve.project.invert||ve.children&&ve.children.some(uf)}var Xh=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],If=[[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(ve){return ve.map(function(xe){return Xh[xe]})});function Cs(ve){ve=ve||function(Ie){var ze=t.geoCentroid({type:"MultiPoint",coordinates:Ie});return t.geoGnomonic().scale(1).translate([0,0]).rotate([-ze[0],-ze[1]])};var xe=If.map(function(Ie){return{face:Ie,project:ve(Ie)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ie,ze){var Qe=xe[Ie];Qe&&(Qe.children||(Qe.children=[])).push(xe[ze])}),xf(xe[0],function(Ie,ze){return xe[Ie<-M/2?ze<0?6:4:Ie<0?ze<0?2:0:Ie<M/2?ze<0?3:1:ze<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var du=2/G(3);function ku(ve,xe){var Ie=xt(ve,xe);return[Ie[0]*du,Ie[1]]}ku.invert=function(ve,xe){return xt.invert(ve/du,xe)};function Xf(ve){ve=ve||function(Ie){var ze=t.geoCentroid({type:"MultiPoint",coordinates:Ie});return t.geoProjection(ku).translate([0,0]).scale(1).rotate(ze[1]>0?[-ze[0],0]:[180-ze[0],180])};var xe=If.map(function(Ie){return{face:Ie,project:ve(Ie)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ie,ze){var Qe=xe[Ie];Qe&&(Qe.children||(Qe.children=[])).push(xe[ze])}),xf(xe[0],function(Ie,ze){return xe[Ie<-M/2?ze<0?6:4:Ie<0?ze<0?2:0:Ie<M/2?ze<0?3:1:ze<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Us(ve){ve=ve||function(nt){var qt=nt.length===6?t.geoCentroid({type:"MultiPoint",coordinates:nt}):nt[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-qt[0],-qt[1]])};var xe=If.map(function(nt){for(var qt=nt.map(Rf),Wt=qt.length,nr=qt[Wt-1],fr,br=[],Fr=0;Fr<Wt;++Fr)fr=qt[Fr],br.push(Wu([nr[0]*.9486832980505138+fr[0]*.31622776601683794,nr[1]*.9486832980505138+fr[1]*.31622776601683794,nr[2]*.9486832980505138+fr[2]*.31622776601683794]),Wu([fr[0]*.9486832980505138+nr[0]*.31622776601683794,fr[1]*.9486832980505138+nr[1]*.31622776601683794,fr[2]*.9486832980505138+nr[2]*.31622776601683794])),nr=fr;return br}),Ie=[],ze=[-1,0,0,1,0,1,4,5];xe.forEach(function(nt,qt){for(var Wt=If[qt],nr=Wt.length,fr=Ie[qt]=[],br=0;br<nr;++br)xe.push([Wt[br],nt[(br*2+2)%(2*nr)],nt[(br*2+1)%(2*nr)]]),ze.push(qt),fr.push(zc(Rf(nt[(br*2+2)%(2*nr)]),Rf(nt[(br*2+1)%(2*nr)])))});var Qe=xe.map(function(nt){return{project:ve(nt),face:nt}});ze.forEach(function(nt,qt){var Wt=Qe[nt];Wt&&(Wt.children||(Wt.children=[])).push(Qe[qt])});function Xe(nt,qt){var Wt=o(qt),nr=[Wt*o(nt),Wt*m(nt),m(qt)],fr=nt<-M/2?qt<0?6:4:nt<0?qt<0?2:0:nt<M/2?qt<0?3:1:qt<0?7:5,br=Ie[fr];return Qe[wf(br[0],nr)<0?8+3*fr:wf(br[1],nr)<0?8+3*fr+1:wf(br[2],nr)<0?8+3*fr+2:fr]}return xf(Qe[0],Xe).angle(-30).scale(110.625).center([0,45])}function wf(ve,xe){for(var Ie=0,ze=ve.length,Qe=0;Ie<ze;++Ie)Qe+=ve[Ie]*xe[Ie];return Qe}function zc(ve,xe){return[ve[1]*xe[2]-ve[2]*xe[1],ve[2]*xe[0]-ve[0]*xe[2],ve[0]*xe[1]-ve[1]*xe[0]]}function Wu(ve){return[a(ve[1],ve[0])*P,q(c(-1,f(1,ve[2])))*P]}function Rf(ve){var xe=ve[0]*E,Ie=ve[1]*E,ze=o(Ie);return[ze*o(xe),ze*m(xe),m(Ie)]}function Xu(){}function cf(ve){if((Ie=ve.length)<4)return!1;for(var xe=0,Ie,ze=ve[Ie-1][1]*ve[0][0]-ve[Ie-1][0]*ve[0][1];++xe<Ie;)ze+=ve[xe-1][1]*ve[xe][0]-ve[xe-1][0]*ve[xe][1];return ze<=0}function Zf(ve,xe){for(var Ie=xe[0],ze=xe[1],Qe=!1,Xe=0,nt=ve.length,qt=nt-1;Xe<nt;qt=Xe++){var Wt=ve[Xe],nr=Wt[0],fr=Wt[1],br=ve[qt],Fr=br[0],Hr=br[1];fr>ze^Hr>ze&&Ie<(Fr-nr)*(ze-fr)/(Hr-fr)+nr&&(Qe=!Qe)}return Qe}function Wl(ve,xe){var Ie=xe.stream,ze;if(!Ie)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":ze=Zu;break;case"FeatureCollection":ze=ah;break;default:ze=Tc;break}return ze(ve,Ie)}function ah(ve,xe){return{type:"FeatureCollection",features:ve.features.map(function(Ie){return Zu(Ie,xe)})}}function Zu(ve,xe){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,xe)}}function qc(ve,xe){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Ie){return Tc(Ie,xe)})}}function Tc(ve,xe){if(!ve)return null;if(ve.type==="GeometryCollection")return qc(ve,xe);var Ie;switch(ve.type){case"Point":Ie=Oc;break;case"MultiPoint":Ie=Oc;break;case"LineString":Ie=ff;break;case"MultiLineString":Ie=ff;break;case"Polygon":Ie=fc;break;case"MultiPolygon":Ie=fc;break;case"Sphere":Ie=fc;break;default:return null}return t.geoStream(ve,xe(Ie)),Ie.result()}var wl=[],vu=[],Oc={point:function(ve,xe){wl.push([ve,xe])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},ff={lineStart:Xu,point:function(ve,xe){wl.push([ve,xe])},lineEnd:function(){wl.length&&(vu.push(wl),wl=[])},result:function(){var ve=vu.length?vu.length<2?{type:"LineString",coordinates:vu[0]}:{type:"MultiLineString",coordinates:vu}:null;return vu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,xe){wl.push([ve,xe])},lineEnd:function(){var ve=wl.length;if(ve){do wl.push(wl[0].slice());while(++ve<4);vu.push(wl),wl=[]}},polygonEnd:Xu,result:function(){if(!vu.length)return null;var ve=[],xe=[];return vu.forEach(function(Ie){cf(Ie)?ve.push([Ie]):xe.push(Ie)}),xe.forEach(function(Ie){var ze=Ie[0];ve.some(function(Qe){if(Zf(Qe[0],ze))return Qe.push(Ie),!0})||ve.push([Ie])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=n(ze)<T,nt=ve(Xe?ze:ze>0?ze-M:ze+M,Qe),qt=(nt[0]-nt[1])*x,Wt=(nt[0]+nt[1])*x;if(Xe)return[qt,Wt];var nr=xe*x,fr=qt>0^Wt>0?-1:1;return[fr*qt-v(Wt)*nr,fr*Wt-v(qt)*nr]}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=(ze+Qe)*x,nt=(Qe-ze)*x,qt=n(Xe)<.5*xe&&n(nt)<.5*xe;if(!qt){var Wt=xe*x,nr=Xe>0^nt>0?-1:1,fr=-nr*ze+(nt>0?1:-1)*Wt,br=-nr*Qe+(Xe>0?1:-1)*Wt;Xe=(-fr-br)*x,nt=(fr-br)*x}var Fr=ve.invert(Xe,nt);return qt||(Fr[0]+=Xe>0?M:-M),Fr}),t.geoProjection(Ie).rotate([-90,-90,45]).clipAngle(180-.001)}function kt(){return Bc(ki).scale(176.423)}function Zt(){return Bc(Lo).scale(111.48)}function Er(ve,xe){if(!(0<=(xe=+xe)&&xe<=20))throw new Error("invalid digits");function Ie(nr){var fr=nr.length,br=2,Fr=new Array(fr);for(Fr[0]=+nr[0].toFixed(xe),Fr[1]=+nr[1].toFixed(xe);br<fr;)Fr[br]=nr[br],++br;return Fr}function ze(nr){return nr.map(Ie)}function Qe(nr){for(var fr=Ie(nr[0]),br=[fr],Fr=1;Fr<nr.length;Fr++){var Hr=Ie(nr[Fr]);(Hr.length>2||Hr[0]!=fr[0]||Hr[1]!=fr[1])&&(br.push(Hr),fr=Hr)}return br.length===1&&nr.length>1&&br.push(Ie(nr[nr.length-1])),br}function Xe(nr){return nr.map(Qe)}function nt(nr){if(nr==null)return nr;var fr;switch(nr.type){case"GeometryCollection":fr={type:"GeometryCollection",geometries:nr.geometries.map(nt)};break;case"Point":fr={type:"Point",coordinates:Ie(nr.coordinates)};break;case"MultiPoint":fr={type:nr.type,coordinates:ze(nr.coordinates)};break;case"LineString":fr={type:nr.type,coordinates:Qe(nr.coordinates)};break;case"MultiLineString":case"Polygon":fr={type:nr.type,coordinates:Xe(nr.coordinates)};break;case"MultiPolygon":fr={type:"MultiPolygon",coordinates:nr.coordinates.map(Xe)};break;default:return nr}return nr.bbox!=null&&(fr.bbox=nr.bbox),fr}function qt(nr){var fr={type:"Feature",properties:nr.properties,geometry:nt(nr.geometry)};return nr.id!=null&&(fr.id=nr.id),nr.bbox!=null&&(fr.bbox=nr.bbox),fr}if(ve!=null)switch(ve.type){case"Feature":return qt(ve);case"FeatureCollection":{var Wt={type:"FeatureCollection",features:ve.features.map(qt)};return ve.bbox!=null&&(Wt.bbox=ve.bbox),Wt}default:return nt(ve)}return ve}function xr(ve){var xe=m(ve);function Ie(ze,Qe){var Xe=xe?b(ze*xe/2)/xe:ze/2;if(!Qe)return[2*Xe,-ve];var nt=2*i(Xe*m(Qe)),qt=1/b(Qe);return[m(nt)*qt,Qe+(1-o(nt))*qt-ve]}return Ie.invert=function(ze,Qe){if(n(Qe+=ve)<p)return[xe?2*i(xe*ze/2)/xe:ze,0];var Xe=ze*ze+Qe*Qe,nt=0,qt=10,Wt;do{var nr=b(nt),fr=1/o(nt),br=Xe-2*Qe*nt+nt*nt;nt-=Wt=(nr*br+2*(nt-Qe))/(2+br*fr*fr+2*(nt-Qe)*nr)}while(n(Wt)>p&&--qt>0);var Fr=ze*(nr=b(nt)),Hr=b(n(Qe)<n(nt+1/nr)?q(Fr)*.5:V(Fr)*.5+M/4)/m(nt);return[xe?2*i(xe*Hr)/xe:2*Hr,nt]},Ie}function Kr(){return Tt(xr).scale(131.215)}var Mi=[[.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]];Mi.forEach(function(ve){ve[1]*=1.0144});function Wi(ve,xe){var Ie=f(18,n(xe)*36/M),ze=l(Ie),Qe=Ie-ze,Xe=(br=Mi[ze])[0],nt=br[1],qt=(br=Mi[++ze])[0],Wt=br[1],nr=(br=Mi[f(19,++ze)])[0],fr=br[1],br;return[ve*(qt+Qe*(nr-Xe)/2+Qe*Qe*(nr-2*qt+Xe)/2),(xe>0?T:-T)*(Wt+Qe*(fr-nt)/2+Qe*Qe*(fr-2*Wt+nt)/2)]}Wi.invert=function(ve,xe){var Ie=xe/T,ze=Ie*90,Qe=f(18,n(ze/5)),Xe=c(0,l(Qe));do{var nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],nr=Wt-nt,fr=Wt-2*qt+nt,br=2*(n(Ie)-qt)/nr,Fr=fr/nr,Hr=br*(1-Fr*br*(1-2*Fr*br));if(Hr>=0||Xe===1){ze=(xe>=0?5:-5)*(Hr+Qe);var ri=50,Ci;do Qe=f(18,n(ze)/5),Xe=l(Qe),Hr=Qe-Xe,nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],ze-=(Ci=(xe>=0?T:-T)*(qt+Hr*(Wt-nt)/2+Hr*Hr*(Wt-2*qt+nt)/2)-xe)*P;while(n(Ci)>k&&--ri>0);break}}while(--Xe>=0);var cn=Mi[Xe][0],sn=Mi[Xe+1][0],Ln=Mi[f(19,Xe+2)][0];return[ve/(sn+Hr*(Ln-cn)/2+Hr*Hr*(Ln-2*sn+cn)/2),ze*E]};function dn(){return t.geoProjection(Wi).scale(152.63)}function wn(ve){function xe(Ie,ze){var Qe=o(ze),Xe=(ve-1)/(ve-Qe*o(Ie));return[Xe*Qe*m(Ie),Xe*m(ze)]}return xe.invert=function(Ie,ze){var Qe=Ie*Ie+ze*ze,Xe=G(Qe),nt=(ve-G(1-Qe*(ve+1)/(ve-1)))/((ve-1)/Xe+Xe/(ve-1));return[a(Ie*nt,Xe*G(1-nt*nt)),Xe?q(ze*nt/Xe):0]},xe}function On(ve,xe){var Ie=wn(ve);if(!xe)return Ie;var ze=o(xe),Qe=m(xe);function Xe(nt,qt){var Wt=Ie(nt,qt),nr=Wt[1],fr=nr*Qe/(ve-1)+ze;return[Wt[0]*ze/fr,nr/fr]}return Xe.invert=function(nt,qt){var Wt=(ve-1)/(ve-1-qt*Qe);return Ie.invert(Wt*nt,Wt*qt*ze)},Xe}function Yi(){var ve=2,xe=0,Ie=t.geoProjectionMutator(On),ze=Ie(ve,xe);return ze.distance=function(Qe){return arguments.length?Ie(ve=+Qe,xe):ve},ze.tilt=function(Qe){return arguments.length?Ie(ve,xe=Qe*E):xe*P},ze.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Fi=-180,ta=Fi+$i,Ca=180,Ra=Ca-$i,La=-90,Ua=La+$i,Zn=90,Dn=Zn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Zo(ve){return ve===La||ve===Zn?[0,ve]:[Fi,bo(ve)]}function Ss(ve){var xe=ve[0],Ie=ve[1],ze=!1;return xe<=ta?(xe=Fi,ze=!0):xe>=Ra&&(xe=Ca,ze=!0),Ie<=Ua?(Ie=La,ze=!0):Ie>=Dn&&(Ie=Zn,ze=!0),ze?[xe,Ie]:ve}function as(ve){return ve.map(Ss)}function ws(ve,xe,Ie){for(var ze=0,Qe=ve.length;ze<Qe;++ze){var Xe=ve[ze].slice();Ie.push({index:-1,polygon:xe,ring:Xe});for(var nt=0,qt=Xe.length;nt<qt;++nt){var Wt=Xe[nt],nr=Wt[0],fr=Wt[1];if(nr<=ta||nr>=Ra||fr<=Ua||fr>=Dn){Xe[nt]=Ss(Wt);for(var br=nt+1;br<qt;++br){var Fr=Xe[br],Hr=Fr[0],ri=Fr[1];if(Hr>ta&&Hr<Ra&&ri>Ua&&ri<Dn)break}if(br===nt+1)continue;if(nt){var Ci={index:-1,polygon:xe,ring:Xe.slice(0,nt+1)};Ci.ring[Ci.ring.length-1]=Zo(fr),Ie[Ie.length-1]=Ci}else Ie.pop();if(br>=qt)break;Ie.push({index:-1,polygon:xe,ring:Xe=Xe.slice(br-1)}),Xe[0]=Zo(Xe[0][1]),nt=-1,qt=Xe.length}}}}function Ho(ve){var xe,Ie=ve.length,ze={},Qe={},Xe,nt,qt,Wt,nr;for(xe=0;xe<Ie;++xe){if(Xe=ve[xe],nt=Xe.ring[0],Wt=Xe.ring[Xe.ring.length-1],nt[0]===Wt[0]&&nt[1]===Wt[1]){Xe.polygon.push(Xe.ring),ve[xe]=null;continue}Xe.index=xe,ze[nt]=Qe[Wt]=Xe}for(xe=0;xe<Ie;++xe)if(Xe=ve[xe],Xe){if(nt=Xe.ring[0],Wt=Xe.ring[Xe.ring.length-1],qt=Qe[nt],nr=ze[Wt],delete ze[nt],delete Qe[Wt],nt[0]===Wt[0]&&nt[1]===Wt[1]){Xe.polygon.push(Xe.ring);continue}qt?(delete Qe[nt],delete ze[qt.ring[0]],qt.ring.pop(),ve[qt.index]=null,Xe={index:-1,polygon:qt.polygon,ring:qt.ring.concat(Xe.ring)},qt===nr?Xe.polygon.push(Xe.ring):(Xe.index=Ie++,ve.push(ze[Xe.ring[0]]=Qe[Xe.ring[Xe.ring.length-1]]=Xe))):nr?(delete ze[Wt],delete Qe[nr.ring[nr.ring.length-1]],Xe.ring.pop(),Xe={index:Ie++,polygon:nr.polygon,ring:Xe.ring.concat(nr.ring)},ve[nr.index]=null,ve.push(ze[Xe.ring[0]]=Qe[Xe.ring[Xe.ring.length-1]]=Xe)):(Xe.ring.push(Xe.ring[0]),Xe.polygon.push(Xe.ring))}}function ml(ve){var xe={type:"Feature",geometry:Ws(ve.geometry)};return ve.id!=null&&(xe.id=ve.id),ve.bbox!=null&&(xe.bbox=ve.bbox),ve.properties!=null&&(xe.properties=ve.properties),xe}function Ws(ve){if(ve==null)return ve;var xe,Ie,ze,Qe;switch(ve.type){case"GeometryCollection":xe={type:"GeometryCollection",geometries:ve.geometries.map(Ws)};break;case"Point":xe={type:"Point",coordinates:Ss(ve.coordinates)};break;case"MultiPoint":case"LineString":xe={type:ve.type,coordinates:as(ve.coordinates)};break;case"MultiLineString":xe={type:"MultiLineString",coordinates:ve.coordinates.map(as)};break;case"Polygon":{var Xe=[];ws(ve.coordinates,Xe,Ie=[]),Ho(Ie),xe={type:"Polygon",coordinates:Xe};break}case"MultiPolygon":{Ie=[],ze=-1,Qe=ve.coordinates.length;for(var nt=new Array(Qe);++ze<Qe;)ws(ve.coordinates[ze],nt[ze]=[],Ie);Ho(Ie),xe={type:"MultiPolygon",coordinates:nt.filter(Ka)};break}default:return ve}return ve.bbox!=null&&(xe.bbox=ve.bbox),xe}function Ls(ve){if(ve==null)return ve;switch(ve.type){case"Feature":return ml(ve);case"FeatureCollection":{var xe={type:"FeatureCollection",features:ve.features.map(ml)};return ve.bbox!=null&&(xe.bbox=ve.bbox),xe}default:return Ws(ve)}}function va(ve,xe){var Ie=b(xe/2),ze=m(L*Ie);return[ve*(.74482-.34588*ze*ze),1.70711*Ie]}va.invert=function(ve,xe){var Ie=xe/1.70711,ze=m(L*Ie);return[ve/(.74482-.34588*ze*ze),2*i(Ie)]};function no(){return t.geoProjection(va).scale(146.153)}function ys(ve,xe,Ie){var ze=t.geoInterpolate(xe,Ie),Qe=ze(.5),Xe=t.geoRotation([-Qe[0],-Qe[1]])(xe),nt=ze.distance/2,qt=-q(m(Xe[1]*E)/m(nt)),Wt=[-Qe[0],-Qe[1],-(Xe[0]>0?M-qt:qt)*P],nr=t.geoProjection(ve(nt)).rotate(Wt),fr=t.geoRotation(Wt),br=nr.center;return delete nr.rotate,nr.center=function(Fr){return arguments.length?br(fr(Fr)):fr.invert(br())},nr.clipAngle(90)}function rs(ve){var xe=o(ve);function Ie(ze,Qe){var Xe=t.geoGnomonicRaw(ze,Qe);return Xe[0]*=xe,Xe}return Ie.invert=function(ze,Qe){return t.geoGnomonicRaw.invert(ze/xe,Qe)},Ie}function Ql(){return Cu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cu(ve,xe){return ys(rs,ve,xe)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var xe=-ve/2,Ie=-xe,ze=ve*ve,Qe=b(Ie),Xe=.5/m(Ie);function nt(qt,Wt){var nr=V(o(Wt)*o(qt-xe)),fr=V(o(Wt)*o(qt-Ie)),br=Wt<0?-1:1;return nr*=nr,fr*=fr,[(nr-fr)/(2*ve),br*G(4*ze*fr-(ze-nr+fr)*(ze-nr+fr))/(2*ve)]}return nt.invert=function(qt,Wt){var nr=Wt*Wt,fr=o(G(nr+(Fr=qt+xe)*Fr)),br=o(G(nr+(Fr=qt+Ie)*Fr)),Fr,Hr;return[a(Hr=fr-br,Fr=(fr+br)*Qe),(Wt<0?-1:1)*V(G(Fr*Fr+Hr*Hr)*Xe)]},nt}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,xe){return ys(Yu,ve,xe)}function Uc(ve,xe){if(n(xe)<p)return[ve,0];var Ie=n(xe/T),ze=q(Ie);if(n(ve)<p||n(n(xe)-T)<p)return[0,v(xe)*M*b(ze/2)];var Qe=o(ze),Xe=n(M/ve-ve/M)/2,nt=Xe*Xe,qt=Qe/(Ie+Qe-1),Wt=qt*(2/Ie-1),nr=Wt*Wt,fr=nr+nt,br=qt-nr,Fr=nt+qt;return[v(ve)*M*(Xe*br+G(nt*br*br-fr*(qt*qt-nr)))/fr,v(xe)*M*(Wt*Fr-Xe*G((nt+1)*fr-Fr*Fr))/fr]}Uc.invert=function(ve,xe){if(n(xe)<p)return[ve,0];if(n(ve)<p)return[0,T*m(2*i(xe/M))];var Ie=(ve/=M)*ve,ze=(xe/=M)*xe,Qe=Ie+ze,Xe=Qe*Qe,nt=-n(xe)*(1+Qe),qt=nt-2*ze+Ie,Wt=-2*nt+1+2*ze+Xe,nr=ze/Wt+(2*qt*qt*qt/(Wt*Wt*Wt)-9*nt*qt/(Wt*Wt))/27,fr=(nt-qt*qt/(3*Wt))/Wt,br=2*G(-fr/3),Fr=V(3*nr/(fr*br))/3;return[M*(Qe-1+G(1+2*(Ie-ze)+Xe))/(2*ve),v(xe)*M*(-br*o(Fr+M/3)-qt/(3*Wt))]};function xu(){return t.geoProjection(Uc).scale(79.4183)}function Ac(ve,xe){if(n(xe)<p)return[ve,0];var Ie=n(xe/T),ze=q(Ie);if(n(ve)<p||n(n(xe)-T)<p)return[0,v(xe)*M*b(ze/2)];var Qe=o(ze),Xe=n(M/ve-ve/M)/2,nt=Xe*Xe,qt=Qe*(G(1+nt)-Xe*Qe)/(1+nt*Ie*Ie);return[v(ve)*M*qt,v(xe)*M*G(1-qt*(2*Xe+qt))]}Ac.invert=function(ve,xe){if(!ve)return[0,T*m(2*i(xe/M))];var Ie=n(ve/M),ze=(1-Ie*Ie-(xe/=M)*xe)/(2*Ie),Qe=ze*ze,Xe=G(Qe+1);return[v(ve)*M*(Xe-ze),v(xe)*T*m(2*a(G((1-2*ze*Ie)*(ze+Xe)-Ie),G(Xe+ze+Ie)))]};function Va(){return t.geoProjection(Ac).scale(79.4183)}function oo(ve,xe){if(n(xe)<p)return[ve,0];var Ie=xe/T,ze=q(Ie);if(n(ve)<p||n(n(xe)-T)<p)return[0,M*b(ze/2)];var Qe=(M/ve-ve/M)/2,Xe=Ie/(1+o(ze));return[M*(v(ve)*G(Qe*Qe+1-Xe*Xe)-Qe),M*Xe]}oo.invert=function(ve,xe){if(!xe)return[ve,0];var Ie=xe/M,ze=(M*M*(1-Ie*Ie)-ve*ve)/(2*M*ve);return[ve?M*(v(ve)*G(ze*ze+1)-ze):0,T*m(2*i(Ie))]};function Vc(){return t.geoProjection(oo).scale(79.4183)}function hc(ve,xe){if(!xe)return[ve,0];var Ie=n(xe);if(!ve||Ie===T)return[0,xe];var ze=Ie/T,Qe=ze*ze,Xe=(8*ze-Qe*(Qe+2)-5)/(2*Qe*(ze-1)),nt=Xe*Xe,qt=ze*Xe,Wt=Qe+nt+2*qt,nr=ze+3*Xe,fr=ve/T,br=fr+1/fr,Fr=v(n(ve)-T)*G(br*br-4),Hr=Fr*Fr,ri=Wt*(Qe+nt*Hr-1)+(1-Qe)*(Qe*(nr*nr+4*nt)+12*qt*nt+4*nt*nt),Ci=(Fr*(Wt+nt-1)+2*G(ri))/(4*Wt+Hr);return[v(ve)*T*Ci,v(xe)*T*G(1+Fr*n(Ci)-Ci*Ci)]}hc.invert=function(ve,xe){var Ie;if(!ve||!xe)return[ve,xe];xe/=M;var ze=v(ve)*ve/T,Qe=(ze*ze-1+4*xe*xe)/n(ze),Xe=Qe*Qe,nt=2*xe,qt=50;do{var Wt=nt*nt,nr=(8*nt-Wt*(Wt+2)-5)/(2*Wt*(nt-1)),fr=(3*nt-Wt*nt-10)/(2*Wt*nt),br=nr*nr,Fr=nt*nr,Hr=nt+nr,ri=Hr*Hr,Ci=nt+3*nr,cn=ri*(Wt+br*Xe-1)+(1-Wt)*(Wt*(Ci*Ci+4*br)+br*(12*Fr+4*br)),sn=-2*Hr*(4*Fr*br+(1-4*Wt+3*Wt*Wt)*(1+fr)+br*(-6+14*Wt-Xe+(-8+8*Wt-2*Xe)*fr)+Fr*(-8+12*Wt+(-10+10*Wt-Xe)*fr)),Ln=G(cn),Yn=Qe*(ri+br-1)+2*Ln-ze*(4*ri+Xe),Aa=Qe*(2*nr*fr+2*Hr*(1+fr))+sn/Ln-8*Hr*(Qe*(-1+br+ri)+2*Ln)*(1+fr)/(Xe+4*ri);nt-=Ie=Yn/Aa}while(Ie>p&&--qt>0);return[v(ve)*(G(Qe*Qe+4)+Qe)*M/4,T*nt]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,xe,Ie,ze,Qe){function Xe(nt,qt){var Wt=Ie*m(ze*qt),nr=G(1-Wt*Wt),fr=G(2/(1+nr*o(nt*=Qe)));return[ve*nr*fr*m(nt),xe*Wt*fr]}return Xe.invert=function(nt,qt){var Wt=nt/ve,nr=qt/xe,fr=G(Wt*Wt+nr*nr),br=2*q(fr/2);return[a(nt*b(br),ve*fr)/Qe,fr&&q(qt*m(br)/(xe*Ie*fr))/ze]},Xe}function w(ve,xe,Ie,ze){var Qe=M/3;ve=c(ve,p),xe=c(xe,p),ve=f(ve,T),xe=f(xe,M-p),Ie=c(Ie,0),Ie=f(Ie,100-p),ze=c(ze,p);var Xe=Ie/100+1,nt=ze/100,qt=V(Xe*o(Qe))/Qe,Wt=m(ve)/m(qt*T),nr=xe/M,fr=G(nt*m(ve/2)/m(xe/2)),br=fr/G(nr*Wt*qt),Fr=1/(fr*G(nr*Wt*qt));return ue(br,Fr,Wt,qt,nr)}function B(){var ve=65*E,xe=60*E,Ie=20,ze=200,Qe=t.geoProjectionMutator(w),Xe=Qe(ve,xe,Ie,ze);return Xe.poleline=function(nt){return arguments.length?Qe(ve=+nt*E,xe,Ie,ze):ve*P},Xe.parallels=function(nt){return arguments.length?Qe(ve,xe=+nt*E,Ie,ze):xe*P},Xe.inflation=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt,ze):Ie},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*M+3*G(3),le=2*G(2*M*G(3)/ee),Fe=rr(le*G(3)/M,le,ee/6);function Ze(){return t.geoProjection(Fe).scale(176.84)}function ut(ve,xe){return[ve*G(1-3*xe*xe/(M*M)),xe]}ut.invert=function(ve,xe){return[ve/G(1-3*xe*xe/(M*M)),xe]};function Mt(){return t.geoProjection(ut).scale(152.63)}function Jt(ve,xe){var Ie=o(xe),ze=o(ve)*Ie,Qe=1-ze,Xe=o(ve=a(m(ve)*Ie,-m(xe))),nt=m(ve);return Ie=G(1-ze*ze),[nt*Ie-Xe*Qe,-Xe*Ie-nt*Qe]}Jt.invert=function(ve,xe){var Ie=(ve*ve+xe*xe)/-2,ze=G(-Ie*(2+Ie)),Qe=xe*Ie+ve*ze,Xe=ve*Ie-xe*ze,nt=G(Xe*Xe+Qe*Qe);return[a(ze*Qe,nt*(1+Ie)),nt?-q(ze*Xe/nt):0]};function $t(){return t.geoProjection(Jt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function yr(ve,xe){var Ie=Ee(ve,xe);return[(Ie[0]+ve/T)/2,(Ie[1]+xe)/2]}yr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=25;do{var Xe=o(ze),nt=m(ze),qt=m(2*ze),Wt=nt*nt,nr=Xe*Xe,fr=m(Ie),br=o(Ie/2),Fr=m(Ie/2),Hr=Fr*Fr,ri=1-nr*br*br,Ci=ri?V(Xe*br)*G(cn=1/ri):cn=0,cn,sn=.5*(2*Ci*Xe*Fr+Ie/T)-ve,Ln=.5*(Ci*nt+ze)-xe,Yn=.5*cn*(nr*Hr+Ci*Xe*br*Wt)+.5/T,Aa=cn*(fr*qt/4-Ci*nt*Fr),fa=.125*cn*(qt*Fr-Ci*nt*nr*fr),$a=.5*cn*(Wt*br+Ci*Hr*Xe)+.5,Co=Aa*fa-$a*Yn,Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Yn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]};function Cr(){return t.geoProjection(yr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Ee,e.geoArmadillo=re,e.geoArmadilloRaw=ge,e.geoAugust=ke,e.geoAugustRaw=Se,e.geoBaker=me,e.geoBakerRaw=Le,e.geoBerghaus=ce,e.geoBerghausRaw=Pe,e.geoBertin1953=ar,e.geoBertin1953Raw=ct,e.geoBoggs=St,e.geoBoggsRaw=rt,e.geoBonne=jt,e.geoBonneRaw=pt,e.geoBottomley=mr,e.geoBottomleyRaw=or,e.geoBromley=ei,e.geoBromleyRaw=Ar,e.geoChamberlin=et,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=We,e.geoCollignon=At,e.geoCollignonRaw=xt,e.geoCraig=Qt,e.geoCraigRaw=Kt,e.geoCraster=Ir,e.geoCrasterRaw=Gr,e.geoCylindricalEqualArea=_i,e.geoCylindricalEqualAreaRaw=Yr,e.geoCylindricalStereographic=ai,e.geoCylindricalStereographicRaw=Pi,e.geoEckert1=un,e.geoEckert1Raw=mi,e.geoEckert2=An,e.geoEckert2Raw=Fn,e.geoEckert3=Qn,e.geoEckert3Raw=Hn,e.geoEckert4=Kn,e.geoEckert4Raw=Vi,e.geoEckert5=Gt,e.geoEckert5Raw=Jn,e.geoEckert6=tr,e.geoEckert6Raw=wt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=wr,e.geoFahey=Ri,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Zi,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=fn,e.geoGilbert=ua,e.geoGingery=Xo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ha,e.geoGinzburg4Raw=jn,e.geoGinzburg5=Gn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Sr,e.geoGinzburg6Raw=Ct,e.geoGinzburg8=hi,e.geoGinzburg8Raw=Jr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=hn,e.geoGringorten=ea,e.geoGringortenRaw=ki,e.geoGuyou=Fs,e.geoGuyouRaw=Lo,e.geoHammer=mt,e.geoHammerRaw=He,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ll,e.geoHealpix=Yl,e.geoHealpixRaw=cl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=ql,e.geoHufnagel=Ns,e.geoHufnagelRaw=Kl,e.geoHyperelliptical=qo,e.geoHyperellipticalRaw=oa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Vf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=Lf,e.geoKavrayskiy7=af,e.geoKavrayskiy7Raw=cs,e.geoLagrange=$l,e.geoLagrangeRaw=Gf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=Hs,e.geoLaskowskiRaw=Es,e.geoLittrow=ps,e.geoLittrowRaw=Go,e.geoLoximuthal=xl,e.geoLoximuthalRaw=uc,e.geoMiller=Os,e.geoMillerRaw=Gu,e.geoModifiedStereographic=Bl,e.geoModifiedStereographicRaw=od,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=bl,e.geoModifiedStereographicGs50=Hf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=yf,e.geoMollweide=je,e.geoMollweideRaw=tt,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=_f,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=jf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=sf,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Nl,e.geoInterruptedQuarticAuthalic=gs,e.geoNicolosi=Wh,e.geoNicolosiRaw=Wf,e.geoPatterson=hu,e.geoPattersonRaw=bc,e.geoPolyconic=nl,e.geoPolyconicRaw=_u,e.geoPolyhedral=xf,e.geoPolyhedralButterfly=Cs,e.geoPolyhedralCollignon=Xf,e.geoPolyhedralWaterman=Us,e.geoProject=Wl,e.geoGringortenQuincuncial=kt,e.geoPeirceQuincuncial=Zt,e.geoPierceQuincuncial=Zt,e.geoQuantize=Er,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=xr,e.geoRobinson=dn,e.geoRobinsonRaw=Wi,e.geoSatellite=Yi,e.geoSatelliteRaw=On,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=Et,e.geoSinusoidalRaw=dt,e.geoStitch=Ls,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=Cu,e.geoTwoPointAzimuthalRaw=rs,e.geoTwoPointAzimuthalUsa=Ql,e.geoTwoPointEquidistant=pu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Va,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Ze,e.geoWagner4Raw=Fe,e.geoWagner6=Mt,e.geoWagner6Raw=ut,e.geoWiechel=$t,e.geoWiechelRaw=Jt,e.geoWinkel3=Cr,e.geoWinkel3Raw=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var XDe=ye((Gmr,WDe)=>{"use strict";var nd=qa(),VZ=Pr(),Xzt=Oa(),i5=Math.PI/180,iw=180/Math.PI,HZ={cursor:"pointer"},jZ={cursor:"auto"};function Zzt(e,t){var r=e.projection,n;return t._isScoped?n=Yzt:t._isClipped?n=Jzt:n=Kzt,n(e,r)}WDe.exports=Zzt;function WZ(e,t){return nd.behavior.zoom().translate(t.translate()).scale(t.scale())}function XZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=VZ.nestedProperty(o,h).get(),Xzt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=VZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),VZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function Yzt(e,t){var r=WZ(e,t);function n(){nd.select(this).style(HZ)}function i(){t.scale(nd.event.scale).translate(nd.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){nd.select(this).style(jZ),XZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function Kzt(e,t){var r=WZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(M){return t.invert(M)}function v(M){var T=d(M);if(!T)return!0;var L=t(T);return Math.abs(L[0]-M[0])>n||Math.abs(L[1]-M[1])>n}function m(){nd.select(this).style(HZ),i=nd.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=nd.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(nd.event.scale),t.translate([o[0],nd.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var M=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-M[0]})}function p(){nd.select(this).style(jZ),h&&XZ(e,t,k)}function k(M){var T=t.rotate(),L=t.invert(e.midPt);M("projection.rotation.lon",-T[0]),M("center.lon",L[0]),M("center.lat",L[1])}return r.on("zoomstart",m).on("zoom",b).on("zoomend",p),r}function Jzt(e,t){var r={r:t.rotate(),k:t.scale()},n=WZ(e,t),i=a7t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){nd.select(this).style(HZ);var h=nd.mouse(this),d=t.rotate(),v=d,m=t.translate(),b=$zt(d);s=OF(t,h),o.call(n,"zoom",function(){var p=nd.mouse(this);if(t.scale(r.k=nd.event.scale),!s)h=p,s=OF(t,h);else if(OF(t,p)){t.rotate(d).translate(m);var k=OF(t,p),M=e7t(s,k),T=r7t(Qzt(b,M)),L=r.r=t7t(T,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){nd.select(this).style(jZ),o.call(n,"zoom",null),c(i.of(this,arguments)),XZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return nd.rebind(n,i,"on")}function OF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&i7t(r)}function $zt(e){var t=.5*e[0]*i5,r=.5*e[1]*i5,n=.5*e[2]*i5,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function Qzt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function e7t(e,t){if(!(!e||!t)){var r=n7t(e,t),n=Math.sqrt(jDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,jDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function t7t(e,t,r){var n=GZ(t,2,e[0]);n=GZ(n,1,e[1]),n=GZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*iw,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*iw-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,m=(Math.atan2(u,s)-Math.atan2(o,h))*iw,b=(Math.atan2(u,s)-Math.atan2(o,-h))*iw,p=GDe(r[0],r[1],d,m),k=GDe(r[0],r[1],v,b);return p<=k?[d,m,r[2]]:[v,b,r[2]]}function GDe(e,t,r,n){var i=HDe(r-e),a=HDe(n-t);return Math.sqrt(i*i+a*a)}function HDe(e){return(e%360+540)%360-180}function GZ(e,t,r){var n=r*i5,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function r7t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*iw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*iw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*iw]}function i7t(e){var t=e[0]*i5,r=e[1]*i5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function jDe(e,t){for(var r=0,n=0,i=e.length;n<i;++n)r+=e[n]*t[n];return r}function n7t(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function a7t(e){for(var t=0,r=arguments.length,n=[];++t<r;)n.push(arguments[t]);var i=nd.dispatch.apply(null,n);return i.of=function(a,o){return function(s){var l;try{l=s.sourceEvent=nd.event,s.target=e,nd.event=s,i[s.type].apply(a,o)}finally{nd.event=l}}},i}});var eFe=ye((Hmr,QDe)=>{"use strict";var l1=qa(),KZ=UZ(),o7t=KZ.geoPath,s7t=KZ.geoDistance,l7t=VDe(),u7t=Oa(),pk=Pr(),c7t=pk.strTranslate,BF=ka(),vk=So(),ZDe=ef(),f7t=Mc(),YZ=ho(),YDe=Mg().getAutoRange,ZZ=yv(),h7t=qf().prepSelect,d7t=qf().clearOutline,v7t=qf().selectOnClick,p7t=XDe(),hp=ck(),g7t=dx(),JDe=TF(),m7t=MZ().feature;function $De(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.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 tm=$De.prototype;QDe.exports=function(t){return new $De(t)};tm.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in hp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c<e.length;c++){var f=e[0][0].trace;f._geo=i,f.locationmode&&(s=!0);var h=f.marker;if(h){var d=h.angle,v=h.angleref;(d||v==="north"||v==="previous")&&(u=!0)}}if(this._hasMarkerAngles=u,s){var m=JDe.getTopojsonName(a);(i.topojson===null||m!==i.topojsonName)&&(i.topojsonName=m,PlotlyGeoAssets.topojson[i.topojsonName]===void 0&&o.push(i.fetchTopojson()))}o=o.concat(g7t.fetchTraceGeoData(e)),r.push(new Promise(function(b,p){Promise.all(o).then(function(){i.topojson=PlotlyGeoAssets.topojson[i.topojsonName],i.update(e,t),b()}).catch(p)}))};tm.fetchTopojson=function(){var e=this,t=JDe.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(r,n){l1.json(t,function(i,a){if(i)return i.status===404?n(new Error(["plotly.js could not find topojson file at",t+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):n(new Error(["unexpected error while fetching topojson file at",t].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=a,r()})})};tm.update=function(e,t,r){var n=t[this.id];this.hasChoropleth=!1;for(var i=0;i<e.length;i++){var a=e[i],o=a[0].trace;o.type==="choropleth"&&(this.hasChoropleth=!0),o.visible===!0&&o._length>0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),f7t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};tm.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=y7t(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},m=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=YDe(r,u),c.range=YDe(r,c);var p=(u.range[0]+u.range[1])/2,k=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:k};else if(n._isClipped){d={lon:p,lat:k},v={lon:p,lat:k,roll:v.roll};var M=o.type,T=hp.lonaxisSpan[M]/2||180,L=hp.lataxisSpan[M]/2||90;m=[p-T,p+T],b=[k-L,k+L]}else d={lon:p,lat:k},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var x=KDe(m,b);f.fitExtent(h,x);var C=this.bounds=f.getBounds(x),S=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(KDe(u.range,c.range)),E=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(E)?f.scale(E*S):pk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*S);var z=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(C),n._isAlbersUsa){var q=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(q[0]-V[0]),V[1]-(q[1]-V[1])])}};tm.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!hp.lineLayers[h]}function l(h){return!!hp.fillLayers[h]}var u=this.hasChoropleth?hp.layersForChoropleth:hp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],l1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=l1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=hp.layerNameToAdjective[h];h==="frame"?d.datum(hp.sphereSVG):s(h)||l(h)?d.datum(m7t(n,n.objects[h])):o(h)&&d.datum(_7t(h,t,e)).call(BF.stroke,t[h].gridcolor).call(vk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(BF.stroke,t[v+"color"]).call(vk.dashLine,"",t[v+"width"]):l(h)&&d.call(BF.fill,t[v+"color"])})};tm.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;vk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(vk.setRect,i,a,o,s).call(BF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};tm.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];u7t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&d7t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(p7t(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){h7t(f,h,d,c,a)},ZZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(pk.getPositionFromD3Event());if(!f)return ZZ.unhover(n,l1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},ZDe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||ZZ.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&v7t(l1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&ZDe.click(n,l1.event))})};tm.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=l1.select(e.container).append("g").attr("class","geo "+e.id).call(vk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},YZ.setConvert(e.mockAxis,r)};tm.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},pk.extendFlat(this.viewInitial,i)};tm.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};tm._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?c7t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function y7t(e){var t=e.projection,r=t.type,n=hp.projNames[r];n="geo"+pk.titleCase(n);for(var i=KZ[n]||l7t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?hp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;u<s.length;u++){var c=s[u];typeof a[c]!="function"&&(a[c]=l)}return a.isLonLatOverEdges=function(f){if(a(f)===null)return!0;if(o){var h=a.rotate(),d=s7t(f,[-h[0],-h[1]]),v=o*Math.PI/180;return d>v}else return!1},a.getPath=function(){return o7t().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(hp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-hp.clipPad),a}function _7t(e,t,r){var n=1e-6,i=2.5,a=t[e],o=hp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(k,M){return[k,M]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(k,M){return[M,k]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};YZ.setConvert(c,r);var f=YZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v<h;v++)for(var m=f[v].x,b=d[v]=[],p=l[0];p<l[1]+i;p+=i)b.push(u(m,p));return{type:"MultiLineString",coordinates:d}}function KDe(e,t){var r=hp.clipPad,n=e[0]+r,i=e[1]-r,a=t[0]+r,o=t[1]-r;n>0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var JZ=ye((jmr,iFe)=>{"use strict";var a5=Ih(),x7t=Cc().attributes,b7t=Pd().dash,n5=ck(),w7t=mc().overrideAll,tFe=t_(),rFe={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:a5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:b7t},T7t=iFe.exports=w7t({domain:x7t({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:tFe(n5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:tFe(n5.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:a5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:n5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:n5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:n5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:n5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:a5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:a5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:a5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:a5.background},lonaxis:rFe,lataxis:rFe},"plot","from-root");T7t.uirevision={valType:"any",editType:"none"}});var oFe=ye((Wmr,aFe)=>{"use strict";var NF=Pr(),A7t=q_(),S7t=Id().getSubplotData,UF=ck(),M7t=JZ(),nFe=UF.axesNames;aFe.exports=function(t,r,n){A7t(t,r,n,{type:"geo",attributes:M7t,handleDefaults:E7t,fullData:n,partition:"y"})};function E7t(e,t,r,n){var i=S7t(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),l=UF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!UF.lonaxisSpan[u];if(e.visible===!1){var m=NF.extendDeep({},t._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),t._template=m}for(var b=r("visible"),p,k=0;k<nFe.length;k++){var M=nFe[k],T=[30,10][k],L;if(f)L=l[M+"Range"];else{var x=UF[M+"Span"],C=(x[u]||x["*"])/2,S=r("projection.rotation."+M.slice(0,3),l.projRotate[k]);L=[S-C,S+C]}var g=r(M+".range",L);r(M+".tick0"),r(M+".dtick",T),p=r(M+".showgrid",b?void 0:!1),p&&(r(M+".gridcolor"),r(M+".gridwidth"),r(M+".griddash")),t[M]._ax={type:"linear",_id:M.slice(0,3),_traceIndices:a,setScale:NF.identity,c2l:NF.identity,r2l:NF.identity,autorange:!0,range:g.slice(),_m:1,_input:{}}}var P=t.lonaxis.range,E=t.lataxis.range,z=P[0],q=P[1];z>0&&q<0&&(q+=360);var V=(z+q)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var j,N;if(c?(j=-96.6,N=38.7):(j=f?V:G,N=(E[0]+E[1])/2),r("center.lon",j),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var H=l.projParallels||[0,60];r("projection.parallels",H)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var ie=r("fitbounds");ie&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var $Z=ye((Xmr,uFe)=>{"use strict";var k7t=Id().getSubplotCalcData,C7t=Pr().counterRegex,L7t=eFe(),ey="geo",sFe=C7t(ey),lFe={};lFe[ey]={valType:"subplotid",dflt:ey,editType:"calc"};function P7t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[ey],i=0;i<n.length;i++){var a=n[i],o=k7t(r,ey,a),s=t[a],l=s._subplot;l||(l=L7t({id:a,graphDiv:e,container:t._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),t[a]._subplot=l),l.plot(o,t,e._promises)}}function I7t(e,t,r,n){for(var i=n._subplots[ey]||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!t[o]&&s&&(s.framework.remove(),s.clipDef.remove())}}function R7t(e){for(var t=e._fullLayout,r=t._subplots[ey],n=0;n<r.length;n++){var i=t[r[n]],a=i._subplot;a.updateFx(t,i)}}uFe.exports={attr:ey,name:ey,idRoot:ey,idRegex:sFe,attrRegex:sFe,attributes:lFe,layoutAttributes:JZ(),supplyLayoutDefaults:oFe(),plot:P7t,updateFx:R7t,clean:I7t}});var fFe=ye((Zmr,cFe)=>{"use strict";cFe.exports={attributes:tw(),supplyDefaults:GRe(),colorbar:Qd(),formatLabels:WRe(),calc:bF(),calcGeoJSON:NZ().calcGeoJSON,plot:NZ().plot,style:zZ(),styleOnSelect:sp().styleOnSelect,hoverPoints:RDe(),eventData:FDe(),selectPoints:ODe(),moduleType:"trace",name:"scattergeo",basePlotModule:$Z(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var dFe=ye((Ymr,hFe)=>{"use strict";hFe.exports=fFe()});var o5=ye((Kmr,gFe)=>{"use strict";var{hovertemplateAttrs:D7t,templatefallbackAttrs:F7t}=Ll(),px=tw(),z7t=Tu(),vFe=Gl(),q7t=Ih().defaultLine,vx=Ao().extendFlat,pFe=px.marker.line;gFe.exports=vx({locations:{valType:"data_array",editType:"calc"},locationmode:px.locationmode,z:{valType:"data_array",editType:"calc"},geojson:vx({},px.geojson,{}),featureidkey:px.featureidkey,text:vx({},px.text,{}),hovertext:vx({},px.hovertext,{}),marker:{line:{color:vx({},pFe.color,{dflt:q7t}),width:vx({},pFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:px.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:px.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:vx({},vFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:D7t(),hovertemplatefallback:F7t(),showlegend:vx({},vFe.showlegend,{dflt:!1})},z7t("",{cLetter:"z",editTypeOverride:"calc"}))});var yFe=ye((Jmr,mFe)=>{"use strict";var gk=Pr(),O7t=td(),B7t=o5(),N7t=["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(" ");mFe.exports=function(t,r,n,i){function a(h,d){return gk.coerce(t,r,B7t,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&gk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||gk.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&gk.warn(N7t),c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),O7t(t,r,i,a,{prefix:"",cLetter:"z"}),gk.coerceSelectionMarkerOpacity(r,a)}});var VF=ye(($mr,bFe)=>{"use strict";var _Fe=Eo(),U7t=fs().BADNUM,V7t=gv(),G7t=Dm(),H7t=q0();function xFe(e){return e&&typeof e=="string"}bFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return xFe(c)||_Fe(c)}:a=xFe;for(var o=0;o<n;o++){var s=i[o]={},l=r.locations[o],u=r.z[o];a(l)&&_Fe(u)?(s.loc=l,s.z=u):(s.loc=null,s.z=U7t),s.index=o}return G7t(i,r),V7t(t,r,{vals:r.z,containerStr:"",cLetter:"z"}),H7t(i,r),i}});var GF=ye((Qmr,TFe)=>{"use strict";var j7t=qa(),W7t=ka(),QZ=So(),X7t=tc();function Z7t(e,t){t&&wFe(e,t)}function wFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=X7t.makeColorScaleFuncFromTrace(r);i.each(function(l){j7t.select(this).attr("fill",s(l.z)).call(W7t.stroke,l.mlc||o.color).call(QZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),QZ.selectedPointStyle(i,r)}function Y7t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?QZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):wFe(e,t)}TFe.exports={style:Z7t,styleOnSelect:Y7t}});var eY=ye((eyr,MFe)=>{"use strict";var K7t=qa(),AFe=Pr(),s5=dx(),J7t=TF().getTopojsonFeatures,SFe=Mg().findExtremes,$7t=GF().style;function Q7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");AFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=K7t.select(this),o=a.selectAll("path.choroplethlocation").data(AFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),$7t(e,i)})}function e9t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?s5.extractTraceFeature(e):J7t(r,i.topojson),l=[],u=[],c=0;c<o;c++){var f=e[c],h=a==="geojson-id"?f.fOut:s5.locationToFeature(a,f.loc,s);if(h){f.geojson=h,f.ct=h.properties.ct,f._polygons=s5.feature2polygons(h);var d=s5.computeBbox(h);l.push(d[0],d[2]),u.push(d[1],d[3])}else f.geojson=null}if(n.fitbounds==="geojson"&&a==="geojson-id"){var v=s5.computeBbox(s5.getTraceGeojson(r));l=[v[0],v[2]],u=[v[1],v[3]]}var m={padded:!0};r._extremes.lon=SFe(n.lonaxis._ax,l,m),r._extremes.lat=SFe(n.lataxis._ax,u,m)}MFe.exports={calcGeoJSON:e9t,plot:Q7t}});var HF=ye((tyr,EFe)=>{"use strict";var t9t=ho(),r9t=o5(),i9t=Pr().fillText;EFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l<i.length;l++)if(s=i[l],c=!1,s._polygons){for(u=0;u<s._polygons.length;u++)s._polygons[u].contains(f)&&(c=!c),s._polygons[u].contains(h)&&(c=!c);if(c)break}if(!(!c||!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=t9t.tickText(o.mockAxis,o.mockAxis.c2l(s.z),"hover").text,t.hovertemplate=s.hovertemplate,n9t(t,a,s),[t]};function n9t(e,t,r){if(!t.hovertemplate){var n=r.hi||t.hoverinfo,i=String(r.loc),a=n==="all"?r9t.hoverinfo.flags:n.split("+"),o=a.indexOf("name")!==-1,s=a.indexOf("location")!==-1,l=a.indexOf("z")!==-1,u=a.indexOf("text")!==-1,c=!o&&s,f=[];c?e.nameOverride=i:(o&&(e.nameOverride=t.name),s&&f.push(i)),l&&f.push(e.zLabel),u&&i9t(r,t,f),e.extraText=f.join("<br>")}}});var jF=ye((ryr,kFe)=>{"use strict";kFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var WF=ye((iyr,CFe)=>{"use strict";CFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s<n.length;s++)n[s].selected=0;else for(s=0;s<n.length;s++)l=n[s],u=l.ct,u&&(c=i.c2p(u),f=a.c2p(u),r.contains([c,f],null,s,t)?(o.push({pointNumber:s,lon:u[0],lat:u[1]}),l.selected=1):l.selected=0);return o}});var PFe=ye((nyr,LFe)=>{"use strict";LFe.exports={attributes:o5(),supplyDefaults:yFe(),colorbar:D_(),calc:VF(),calcGeoJSON:eY().calcGeoJSON,plot:eY().plot,style:GF().style,styleOnSelect:GF().styleOnSelect,hoverPoints:HF(),eventData:jF(),selectPoints:WF(),moduleType:"trace",name:"choropleth",basePlotModule:$Z(),categories:["geo","noOpacity","showLegend"],meta:{}}});var RFe=ye((ayr,IFe)=>{"use strict";IFe.exports=PFe()});var XF=ye((oyr,FFe)=>{"use strict";var a9t=Oa(),l0=Pr(),o9t=yT();function s9t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var m=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),k=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(m,b),Math.min(l._rl[0],l._rl[1]),Math.max(m,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(m,b),Math.min(p,k),Math.max(m,b),Math.max(p,k))}else v=a.ids;var M,T,L,x,C,S,g,P,E,z=d;if(n==="x"){var q=!!o.xperiodalignment,V=!!o.yperiodalignment;for(C=0;C<v.length;C++){if(M=v[C],L=u[M],S=Math.abs(s.c2p(L)-f),q){var G=s.c2p(o._xStarts[M]),Z=s.c2p(o._xEnds[M]);S=f>=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(S<z){if(z=S,x=c[M],g=l.c2p(x)-h,V){var j=l.c2p(o._yStarts[M]),N=l.c2p(o._yEnds[M]);g=h>=Math.min(j,N)&&h<=Math.max(j,N)?0:1/0}E=Math.sqrt(S*S+g*g),T=v[C]}}}else for(C=v.length-1;C>-1;C--)M=v[C],L=u[M],x=c[M],S=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(S*S+g*g),P<z&&(z=E=P,T=M);return e.index=T,e.distance=z,e.dxy=E,T===void 0?[e]:[DFe(e,u,c,o)]}function DFe(e,t,r,n){var i=e.xa,a=e.ya,o=e.distance,s=e.dxy,l=e.index,u={pointNumber:l,x:t[l],y:r[l]};u.tx=l0.isArrayOrTypedArray(n.text)?n.text[l]:n.text,u.htx=Array.isArray(n.hovertext)?n.hovertext[l]:n.hovertext,u.data=Array.isArray(n.customdata)?n.customdata[l]:n.customdata,u.tp=Array.isArray(n.textposition)?n.textposition[l]:n.textposition;var c=n.textfont;c&&(u.ts=l0.isArrayOrTypedArray(c.size)?c.size[l]:c.size,u.tc=l0.isArrayOrTypedArray(c.color)?c.color[l]:c.color,u.tf=Array.isArray(c.family)?c.family[l]:c.family,u.tw=Array.isArray(c.weight)?c.weight[l]:c.weight,u.ty=Array.isArray(c.style)?c.style[l]:c.style,u.tv=Array.isArray(c.variant)?c.variant[l]:c.variant);var f=n.marker;f&&(u.ms=l0.isArrayOrTypedArray(f.size)?f.size[l]:f.size,u.mo=l0.isArrayOrTypedArray(f.opacity)?f.opacity[l]:f.opacity,u.mx=l0.isArrayOrTypedArray(f.symbol)?f.symbol[l]:f.symbol,u.ma=l0.isArrayOrTypedArray(f.angle)?f.angle[l]:f.angle,u.mc=l0.isArrayOrTypedArray(f.color)?f.color[l]:f.color);var h=f&&f.line;h&&(u.mlc=Array.isArray(h.color)?h.color[l]:h.color,u.mlw=l0.isArrayOrTypedArray(h.width)?h.width[l]:h.width);var d=f&&f.gradient;d&&d.type!=="none"&&(u.mgt=Array.isArray(d.type)?d.type[l]:d.type,u.mgc=Array.isArray(d.color)?d.color[l]:d.color);var v=i.c2p(u.x,!0),m=a.c2p(u.y,!0),b=u.mrc||1,p=n.hoverlabel;p&&(u.hbg=Array.isArray(p.bgcolor)?p.bgcolor[l]:p.bgcolor,u.hbc=Array.isArray(p.bordercolor)?p.bordercolor[l]:p.bordercolor,u.hts=l0.isArrayOrTypedArray(p.font.size)?p.font.size[l]:p.font.size,u.htc=Array.isArray(p.font.color)?p.font.color[l]:p.font.color,u.htf=Array.isArray(p.font.family)?p.font.family[l]:p.font.family,u.hnl=l0.isArrayOrTypedArray(p.namelength)?p.namelength[l]:p.namelength);var k=n.hoverinfo;k&&(u.hi=Array.isArray(k)?k[l]:k);var M=n.hovertemplate;M&&(u.ht=Array.isArray(M)?M[l]:M);var T={};T[e.index]=u;var L=n._origX,x=n._origY,C=l0.extendFlat({},e,{color:o9t(n,u),x0:v-b,x1:v+b,xLabelVal:L?L[l]:u.x,y0:m-b,y1:m+b,yLabelVal:x?x[l]:u.y,cd:T,distance:o,spikeDistance:s,hovertemplate:u.ht});return u.htx?C.text=u.htx:u.tx?C.text=u.tx:n.text&&(C.text=n.text),l0.fillText(u,n,C),a9t.getComponentMethod("errorbars","hoverInfo")(u,n,C),C}FFe.exports={hoverPoints:s9t,calcHover:DFe}});var gx=ye((syr,qFe)=>{"use strict";var zFe=20;qFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:zFe,SYMBOL_STROKE:zFe/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]}}});var mk=ye((lyr,UFe)=>{"use strict";var l9t=Gl(),u9t=ec(),c9t=Pg(),mf=pf(),OFe=vf().axisHoverFormat,BFe=Tu(),f9t=t_(),tY=Ao().extendFlat,h9t=mc().overrideAll,d9t=gx().DASHES,NFe=mf.line,u1=mf.marker,v9t=u1.line,mx=UFe.exports=h9t({x:mf.x,x0:mf.x0,dx:mf.dx,y:mf.y,y0:mf.y0,dy:mf.dy,xperiod:mf.xperiod,yperiod:mf.yperiod,xperiod0:mf.xperiod0,yperiod0:mf.yperiod0,xperiodalignment:mf.xperiodalignment,yperiodalignment:mf.yperiodalignment,xhoverformat:OFe("x"),yhoverformat:OFe("y"),text:mf.text,hovertext:mf.hovertext,textposition:mf.textposition,textfont:u9t({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:NFe.color,width:NFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:f9t(d9t),dflt:"solid"}},marker:tY({},BFe("marker"),{symbol:u1.symbol,angle:u1.angle,size:u1.size,sizeref:u1.sizeref,sizemin:u1.sizemin,sizemode:u1.sizemode,opacity:u1.opacity,colorbar:u1.colorbar,line:tY({},BFe("marker.line"),{width:v9t.width})}),connectgaps:mf.connectgaps,fill:tY({},mf.fill,{dflt:"none"}),fillcolor:c9t(),selected:{marker:mf.selected.marker,textfont:mf.selected.textfont},unselected:{marker:mf.unselected.marker,textfont:mf.unselected.textfont},opacity:l9t.opacity},"calc","nested");mx.x.editType=mx.y.editType=mx.x0.editType=mx.y0.editType="calc+clearAxisTypes";mx.hovertemplate=mf.hovertemplate;mx.hovertemplatefallback=mf.hovertemplatefallback;mx.texttemplate=mf.texttemplate;mx.texttemplatefallback=mf.texttemplatefallback});var ZF=ye(rY=>{"use strict";var VFe=gx();rY.isOpenSymbol=function(e){return typeof e=="string"?VFe.OPEN_RE.test(e):e%200>100};rY.isDotSymbol=function(e){return typeof e=="string"?VFe.DOT_RE.test(e):e>200}});var jFe=ye((cyr,HFe)=>{"use strict";var GFe=Pr(),p9t=Oa(),g9t=ZF(),m9t=mk(),y9t=Pm(),YF=Ru(),_9t=lT(),x9t=Dg(),b9t=$p(),w9t=D0(),T9t=Fg(),A9t=F0();HFe.exports=function(t,r,n,i){function a(d,v){return GFe.coerce(t,r,m9t,d,v)}var o=t.marker?g9t.isOpenSymbol(t.marker.symbol):!1,s=YF.isBubble(t),l=_9t(t,r,i,a);if(!l){r.visible=!1;return}x9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l<y9t.PTS_LINESONLY?"lines+markers":"lines";a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode",u),YF.hasMarkers(r)&&(b9t(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0}),a("marker.line.width",o||s?1:0)),YF.hasLines(r)&&(a("connectgaps"),w9t(t,r,n,i,a),a("line.shape")),YF.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),A9t(t,r,i,a,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var c=(r.line||{}).color,f=(r.marker||{}).color;a("fill"),r.fill!=="none"&&T9t(t,r,n,a);var h=p9t.getComponentMethod("errorbars","supplyDefaults");h(t,r,c||f||n,{axis:"y"}),h(t,r,c||f||n,{axis:"x",inherit:"y"}),GFe.coerceSelectionMarkerOpacity(r,a)}});var XFe=ye((fyr,WFe)=>{"use strict";var S9t=uI();WFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),S9t(t,r,n)}});var YFe=ye((hyr,ZFe)=>{"use strict";function M9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function E9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function k9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function C9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function L9t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function yk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}ZFe.exports={ge:function(e,t,r,n,i){return yk(e,t,r,n,i,M9t)},gt:function(e,t,r,n,i){return yk(e,t,r,n,i,E9t)},lt:function(e,t,r,n,i){return yk(e,t,r,n,i,k9t)},le:function(e,t,r,n,i){return yk(e,t,r,n,i,C9t)},eq:function(e,t,r,n,i){return yk(e,t,r,n,i,L9t)}}});var ty=ye((dyr,JFe)=>{"use strict";JFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=KFe(r)),Array.isArray(r)){var s={};for(o=0;o<r.length;o++)s[r[o]]=!0;r=s}for(a in r)r[a]=KFe(r[a]);var l={};for(a in r){var u=r[a];if(Array.isArray(u))for(o=0;o<u.length;o++){var c=u[o];if(n&&(l[c]=!0),c in t){if(i[a]=t[c],n)for(var f=o;f<u.length;f++)l[u[f]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(l[a]=!0))}if(n)for(a in t)l[a]||(i[a]=t[a]);return i};var iY={};function KFe(e){return iY[e]?iY[e]:(typeof e=="string"&&(e=iY[e]=e.split(/\s*,\s*|\s+/)),e)}});var l5=ye((vyr,$Fe)=>{"use strict";var P9t=ty();$Fe.exports=I9t;function I9t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=P9t(e,{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"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var nw=ye((pyr,QFe)=>{"use strict";QFe.exports=R9t;function R9t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,s=e.length;o<s;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}});var tze=ye((gyr,eze)=>{eze.exports=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]}});var aw=ye((myr,ize)=>{var rze=tF();ize.exports=D9t;function D9t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(rze(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a<e.length;a++)for(o=0;o<n;o++)t[s++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var c=rze(t||"float32");if(Array.isArray(e)||t==="array")for(t=new c(e.length+r),a=0,s=r,l=t.length;s<l;s++,a++)t[s]=e[a]===null?NaN:e[a];else r===0?t=new c(e):(t=new c(e.length+r),t.set(e,r))}else t.set(e,r);return t}});var aze=ye((yyr,nze)=>{"use strict";nze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var sze=ye((_yr,oze)=>{"use strict";oze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var vze=ye((xyr,dze)=>{"use strict";var lze=YFe(),uze=ik(),F9t=l5(),z9t=nw(),cze=ty(),nY=tze(),q9t=aw(),O9t=aze(),B9t=tF(),fze=sze(),N9t=1073741824;dze.exports=function(t,r){r||(r={}),t=q9t(t,"float64"),r=cze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=nY(r.maxDepth,255),i=nY(r.bounds,z9t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=hze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(B9t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;p<o;++p)s[p]=p;let l=[],u=[],c=[],f=[];d(0,0,1,s,0,1);let h=0;for(let p=0;p<l.length;p++){let k=l[p];if(s.set)s.set(k,h);else for(let T=0,L=k.length;T<L;T++)s[T+h]=k[T];let M=h+l[p].length;f[p]=[h,M],h=M}return s.range=v,s;function d(p,k,M,T,L,x){if(!T.length)return null;let C=l[L]||(l[L]=[]),S=c[L]||(c[L]=[]),g=u[L]||(u[L]=[]),P=C.length;if(L++,L>n||x>N9t){for(let N=0;N<T.length;N++)C.push(T[N]),S.push(x),g.push(null,null,null,null);return P}if(C.push(T[0]),S.push(x),T.length<=1)return g.push(null,null,null,null),P;let E=M*.5,z=p+E,q=k+E,V=[],G=[],Z=[],j=[];for(let N=1,H=T.length;N<H;N++){let ie=T[N],ae=a[ie*2],_e=a[ie*2+1];ae<z?_e<q?V.push(ie):G.push(ie):_e<q?Z.push(ie):j.push(ie)}return x<<=2,g.push(d(p,k,E,V,L,x),d(p,q,E,G,L,x+1),d(z,k,E,Z,L,x+2),d(z,q,E,j,L,x+3)),P}function v(...p){let k;if(O9t(p[p.length-1])){let Z=p.pop();!p.length&&(Z.x!=null||Z.l!=null||Z.left!=null)&&(p=[Z],k={}),k=cze(Z,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else k={};p.length||(p=i);let M=F9t(...p),[T,L,x,C]=[Math.min(M.x,M.x+M.width),Math.min(M.y,M.y+M.height),Math.max(M.x,M.x+M.width),Math.max(M.y,M.y+M.height)],[S,g,P,E]=hze([T,L,x,C],i),z=nY(k.level,l.length);if(k.d!=null){let Z;typeof k.d=="number"?Z=[k.d,k.d]:k.d.length&&(Z=k.d),z=Math.min(Math.max(Math.ceil(-fze(Math.abs(Z[0])/(i[2]-i[0]))),Math.ceil(-fze(Math.abs(Z[1])/(i[3]-i[1])))),z)}if(z=Math.min(z,l.length),k.lod)return m(S,g,P,E,z);let q=[];V(0,0,1,0,0,1);function V(Z,j,N,H,ie,ae){if(ie===null||ae===null)return;let _e=Z+N,Ee=j+N;if(S>_e||g>Ee||P<Z||E<j||H>=z||ie===ae)return;let Ce=l[H];ae===void 0&&(ae=Ce.length);for(let Pe=ie;Pe<ae;Pe++){let ce=Ce[Pe],He=t[ce*2],lt=t[ce*2+1];He>=T&&He<=x&&lt>=L&&lt<=C&&q.push(ce)}let ge=u[H],re=ge[ie*4+0],Se=ge[ie*4+1],ke=ge[ie*4+2],be=ge[ie*4+3],Be=G(ge,ie+1),Le=N*.5,me=H+1;V(Z,j,Le,me,re,Se||ke||be||Be),V(Z,j+Le,Le,me,Se,ke||be||Be),V(Z+Le,j,Le,me,ke,be||Be),V(Z+Le,j+Le,Le,me,be,Be)}function G(Z,j){let N=null,H=0;for(;N===null;)if(N=Z[j*4+H],H++,H>Z.length)return null;return N}return q}function m(p,k,M,T,L){let x=[];for(let C=0;C<L;C++){let S=c[C],g=f[C][0],P=b(p,k,C),E=b(M,T,C),z=lze.ge(S,P),q=lze.gt(S,E,z,S.length-1);x[C]=[z+g,q+g]}return x}function b(p,k,M){let T=1,L=.5,x=.5,C=.5;for(let S=0;S<M;S++)T<<=2,T+=p<L?k<x?0:1:k<x?2:3,C*=.5,L+=p<L?-C:C,x+=k<x?-C:C;return T}};function hze(e,t){let[r,n,i,a]=t,o=1/(i-r),s=1/(a-n),l=new Array(e.length);for(let u=0,c=e.length/2;u<c;u++)l[2*u]=uze((e[2*u]-r)*o,0,1),l[2*u+1]=uze((e[2*u+1]-n)*s,0,1);return l}});var KF=ye((byr,pze)=>{"use strict";pze.exports=vze()});var aY=ye((wyr,gze)=>{gze.exports=U9t;function U9t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l<a.length;)a[l++]+=n,a[l++]+=i}switch(s){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}});var _ze=ye((JF,yze)=>{"use strict";Object.defineProperty(JF,"__esModule",{value:!0});var V9t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_k=Math.PI*2,oY=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},G9t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},mze=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},H9t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),m=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*m;p<0&&(p=0),p/=d*b+v*m,p=Math.sqrt(p)*(s===l?-1:1);var k=p*a/o*h,M=p*-o/a*f,T=c*k-u*M+(t+n)/2,L=u*k+c*M+(r+i)/2,x=(f-k)/a,C=(h-M)/o,S=(-f-k)/a,g=(-h-M)/o,P=mze(1,0,x,C),E=mze(x,C,S,g);return l===0&&E>0&&(E-=_k),l===1&&E<0&&(E+=_k),[T,L,P,E]},j9t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var m=Math.sin(u*_k/360),b=Math.cos(u*_k/360),p=b*(r-i)/2+m*(n-a)/2,k=-m*(r-i)/2+b*(n-a)/2;if(p===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var M=Math.pow(p,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);M>1&&(o*=Math.sqrt(M),s*=Math.sqrt(M));var T=H9t(r,n,i,a,o,s,f,d,m,b,p,k),L=V9t(T,4),x=L[0],C=L[1],S=L[2],g=L[3],P=Math.abs(g)/(_k/4);Math.abs(1-P)<1e-7&&(P=1);var E=Math.max(Math.ceil(P),1);g/=E;for(var z=0;z<E;z++)v.push(G9t(S,g)),S+=g;return v.map(function(q){var V=oY(q[0],o,s,b,m,x,C),G=V.x,Z=V.y,j=oY(q[1],o,s,b,m,x,C),N=j.x,H=j.y,ie=oY(q[2],o,s,b,m,x,C),ae=ie.x,_e=ie.y;return{x1:G,y1:Z,x2:N,y2:H,x:ae,y:_e}})};JF.default=j9t;yze.exports=JF.default});var wze=ye((Tyr,bze)=>{"use strict";bze.exports=X9t;var W9t=_ze();function X9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f<h;f++){var d=e[f],v=d[0];switch(v){case"M":a=d[1],o=d[2];break;case"A":var m=W9t({px:u,py:c,cx:d[6],cy:d[7],rx:d[1],ry:d[2],xAxisRotation:d[3],largeArcFlag:d[4],sweepFlag:d[5]});if(!m.length)continue;for(var b=0,p;b<m.length;b++)p=m[b],d=["C",p.x1,p.y1,p.x2,p.y2,p.x,p.y],b<m.length-1&&r.push(d);break;case"S":var k=u,M=c;(t=="C"||t=="S")&&(k+=k-n,M+=M-i),d=["C",k,M,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=xze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=xze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=$F(u,c,d[1],d[2]);break;case"H":d=$F(u,c,d[1],c);break;case"V":d=$F(u,c,u,d[1]);break;case"Z":d=$F(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function $F(e,t,r,n){return["C",e,t,r,n,r,n]}function xze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var sY=ye((Ayr,Tze)=>{"use strict";Tze.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var Mze=ye((Syr,Sze)=>{"use strict";var Z9t=aM(),Y9t=aY(),K9t=wze(),J9t=sY(),Aze=mE();Sze.exports=$9t;function $9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(Aze(J9t(e),"String is not an SVG path."),e=Z9t(e)),Aze(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Y9t(e),e=K9t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var Ize=ye((Myr,Pze)=>{var ow=Math.PI,Eze=Lze(120);Pze.exports=Q9t;function Q9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f<h;f++){var d=e[f],v=d[0];switch(v){case"M":a=d[1],o=d[2];break;case"A":d=Cze(u,c,d[1],d[2],Lze(d[3]),d[4],d[5],d[6],d[7]),d.unshift("C"),d.length>7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var m=u,b=c;(t=="C"||t=="S")&&(m+=m-n,b+=b-i),d=["C",m,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=kze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=kze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=QF(u,c,d[1],d[2]);break;case"H":d=QF(u,c,d[1],c);break;case"V":d=QF(u,c,u,d[1]);break;case"Z":d=QF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function QF(e,t,r,n){return["C",e,t,r,n,r,n]}function kze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function Cze(e,t,r,n,i,a,o,s,l,u){if(u)M=u[0],T=u[1],p=u[2],k=u[3];else{var c=lY(e,t,-i);e=c.x,t=c.y,c=lY(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,m=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*m-v*h*h-m*f*f)/(v*h*h+m*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,k=b*-n*f/r+(t+l)/2,M=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((l-k)/n).toFixed(9));M=e<p?ow-M:M,T=s<p?ow-T:T,M<0&&(M=ow*2+M),T<0&&(T=ow*2+T),o&&M>T&&(M=M-ow*2),!o&&T>M&&(T=T-ow*2)}if(Math.abs(T-M)>Eze){var L=T,x=s,C=l;T=M+Eze*(o&&T>M?1:-1),s=p+r*Math.cos(T),l=k+n*Math.sin(T);var S=Cze(s,l,r,n,i,0,o,x,C,[T,L,p,k])}var g=Math.tan((T-M)/4),P=4/3*r*g,E=4/3*n*g,z=[2*e-(e+P*Math.sin(M)),2*t-(t-E*Math.cos(M)),s+P*Math.sin(T),l-E*Math.cos(T),s,l];if(u)return z;S&&(z=z.concat(S));for(var q=0;q<z.length;){var V=lY(z[q],z[q+1],i);z[q++]=V.x,z[q++]=V.y}return z}function lY(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function Lze(e){return e*(ow/180)}});var Dze=ye((Eyr,Rze)=>{var eqt=aY(),tqt=Ize(),rqt={M:"moveTo",C:"bezierCurveTo"};Rze.exports=function(e,t){e.beginPath(),tqt(eqt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[rqt[n]].apply(e,i)}),e.closePath()}});var Oze=ye((kyr,qze)=>{"use strict";var iqt=ik();qze.exports=nqt;var xk=1e20;function nqt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,m=u.length;v<m;v++)l[v]=u[v*c+i]/255;else if(c!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),p=Array(a*o),k=Array(s),M=Array(s),T=Array(s+1),L=Array(s);for(v=0,m=a*o;v<m;v++){var x=l[v];b[v]=x===1?0:x===0?xk:Math.pow(Math.max(0,.5-x),2),p[v]=x===1?xk:x===0?0:Math.pow(Math.max(0,x-.5),2)}Fze(b,a,o,k,M,L,T),Fze(p,a,o,k,M,L,T);var C=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(v=0,m=a*o;v<m;v++)C[v]=iqt(1-((b[v]-p[v])/n+r),0,1);return C}function Fze(e,t,r,n,i,a,o){for(var s=0;s<t;s++){for(var l=0;l<r;l++)n[l]=e[l*t+s];for(zze(n,i,a,o,r),l=0;l<r;l++)e[l*t+s]=i[l]}for(l=0;l<r;l++){for(s=0;s<t;s++)n[s]=e[l*t+s];for(zze(n,i,a,o,t),s=0;s<t;s++)e[l*t+s]=Math.sqrt(i[s])}}function zze(e,t,r,n,i){r[0]=0,n[0]=-xk,n[1]=+xk;for(var a=1,o=0;a<i;a++){for(var s=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s<=n[o];)o--,s=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=s,n[o+1]=+xk}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}});var Nze=ye((Cyr,Bze)=>{"use strict";var aqt=Mze(),oqt=aM(),sqt=Dze(),lqt=sY(),uqt=Oze(),uY=document.createElement("canvas"),dp=uY.getContext("2d");Bze.exports=cqt;function cqt(e,t){if(!lqt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=uY.width=t.w||t.width||200,n=uY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||aqt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(dp.fillStyle="black",dp.fillRect(0,0,r,n),dp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?dp.strokeStyle="white":dp.strokeStyle="black",dp.lineWidth=Math.abs(a)),dp.translate(r*.5,n*.5),dp.scale(l,l),fqt()){var u=new Path2D(e);dp.fill(u),a&&dp.stroke(u)}else{var c=oqt(e);sqt(dp,c),dp.fill(),a&&dp.stroke()}dp.setTransform(1,0,0,1,0,0);var f=uqt(dp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var ez;function fqt(){if(ez!=null)return ez;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return ez=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return ez=r&&r.data&&r.data[3]===255}});var lw=ye((Lyr,Jze)=>{"use strict";var rz=Eo(),hqt=Nze(),tz=sx(),dqt=Oa(),f5=Pr(),bh=f5.isArrayOrTypedArray,u5=So(),Uze=df(),Vze=a1().formatColor,c5=Ru(),vqt=B3(),fY=ZF(),bk=gx(),pqt=X1().DESELECTDIM,Gze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},gqt=ip().appendArrayPointValue;function mqt(e,t){var r,n={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},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(c5.hasText(t)&&(n.text=Kze(e,t),n.textSel=jze(e,t,t.selected),n.textUnsel=jze(e,t,t.unselected)),c5.hasMarkers(t)&&(n.marker=dY(e,t),n.markerSel=hY(e,t,t.selected),n.markerUnsel=hY(e,t,t.unselected),!t.unselected&&bh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r<a.length;r++)n.markerUnsel.opacity[r]=pqt*a[r]}if(c5.hasLines(t)){n.line={overlay:!0,thickness:t.line.width*i,color:t.line.color,opacity:t.opacity};var o=(bk.DASHES[t.line.dash]||[1]).slice();for(r=0;r<o.length;++r)o[r]*=t.line.width*i;n.line.dashes=o}return t.error_x&&t.error_x.visible&&(n.errorX=Wze(t,t.error_x,i)),t.error_y&&t.error_y.visible&&(n.errorY=Wze(t,t.error_y,i)),t.fill&&t.fill!=="none"&&(n.fill={closed:!0,fill:t.fillcolor,thickness:0}),n}function Kze(e,t){var r=e._fullLayout,n=t._length,i=t.textfont,a=t.textposition,o=bh(a)?a:[a],s=i.color,l=i.size,u=i.family,c=i.weight,f=i.style,h=i.variant,d={},v,m=e._context.plotGlPixelRatio,b=t.texttemplate;if(b){d.text=[];var p=r._d3locale,k=Array.isArray(b),M=k?Math.min(b.length,n):n,T=k?function(P){return b[P]}:function(){return b};for(v=0;v<M;v++){var L={i:v},x=t._module.formatLabels(L,t,r),C={};gqt(C,t,v),d.text.push(f5.texttemplateString({data:[C,L,t._meta],fallback:t.texttemplatefallback,labels:x,locale:p,template:T(v)}))}}else bh(t.text)&&t.text.length<n?d.text=t.text.slice():d.text=t.text;if(bh(d.text))for(v=d.text.length;v<n;v++)d.text[v]="";for(d.opacity=t.opacity,d.font={},d.align=[],d.baseline=[],v=0;v<o.length;v++){var S=o[v].split(/\s+/);switch(S[1]){case"left":d.align.push("right");break;case"right":d.align.push("left");break;default:d.align.push(S[1])}switch(S[0]){case"top":d.baseline.push("bottom");break;case"bottom":d.baseline.push("top");break;default:d.baseline.push(S[0])}}if(bh(s))for(d.color=new Array(n),v=0;v<n;v++)d.color[v]=s[v];else d.color=s;if(bh(l)||Array.isArray(u)||bh(c)||Array.isArray(f)||Array.isArray(h))for(d.font=new Array(n),v=0;v<n;v++){var g=d.font[v]={};g.size=(f5.isTypedArray(l)?l[v]:bh(l)?rz(l[v])?l[v]:0:l)*m,g.family=Array.isArray(u)?u[v]:u,g.weight=Hze(bh(c)?c[v]:c),g.style=Array.isArray(f)?f[v]:f,g.variant=Array.isArray(h)?h[v]:h}else d.font={size:l*m,family:u,weight:Hze(c),style:f,variant:h};return d}function Hze(e){return e<=1e3?e>500?"bold":"normal":e}function dY(e,t){var r=t._length,n=t.marker,i={},a,o=bh(n.symbol),s=bh(n.angle),l=bh(n.color),u=bh(n.line.color),c=bh(n.opacity),f=bh(n.size),h=bh(n.line.width),d;if(o||(d=fY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,m=n.angle,b=Vze(n,n.opacity,r),p=Vze(n.line,n.opacity,r);if(!bh(p[0])){var k=p;for(p=Array(r),a=0;a<r;a++)p[a]=k}if(!bh(b[0])){var M=b;for(b=Array(r),a=0;a<r;a++)b[a]=M}if(!bh(v)){var T=v;for(v=Array(r),a=0;a<r;a++)v[a]=T}if(!bh(m)){var L=m;for(m=Array(r),a=0;a<r;a++)m[a]=L}for(i.symbols=v,i.angles=m,i.colors=b,i.borderColors=p,a=0;a<r;a++)o&&(d=fY.isOpenSymbol(n.symbol[a])),d&&(p[a]=b[a].slice(),b[a]=b[a].slice(),b[a][3]=0);for(i.opacity=t.opacity,i.markers=new Array(r),a=0;a<r;a++)i.markers[a]=Yze({mx:i.symbols[a],ma:i.angles[a]},t)}else d?(i.color=tz(n.color,"uint8"),i.color[3]=0,i.borderColor=tz(n.color,"uint8")):(i.color=tz(n.color,"uint8"),i.borderColor=tz(n.line.color,"uint8")),i.opacity=t.opacity*n.opacity,i.marker=Yze({mx:n.symbol,ma:n.angle},t);var x=1,C=vqt(t,x),S;if(f||h){var g=i.sizes=new Array(r),P=i.borderSizes=new Array(r),E=0,z;if(f){for(a=0;a<r;a++)g[a]=C(n.size[a]),E+=g[a];z=E/r}else for(S=C(n.size),a=0;a<r;a++)g[a]=S;if(h)for(a=0;a<r;a++)P[a]=n.line.width[a];else for(S=n.line.width,a=0;a<r;a++)P[a]=S;i.sizeAvg=z}else i.size=C(n&&n.size||10),i.borderSizes=C(n.line.width);return i}function hY(e,t,r){var n=t.marker,i={};return r&&(r.marker&&r.marker.symbol?i=dY(e,f5.extendFlat({},n,r.marker)):r.marker&&(r.marker.size&&(i.size=r.marker.size),r.marker.color&&(i.colors=r.marker.color),r.marker.opacity!==void 0&&(i.opacity=r.marker.opacity))),i}function jze(e,t,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:t.text,texttemplate:t.texttemplate,textposition:t.textposition,textfont:f5.extendFlat({},t.textfont)};r.textfont&&f5.extendFlat(i.textfont,r.textfont),n=Kze(e,i)}return n}function Wze(e,t,r){var n={capSize:t.width*2*r,lineWidth:t.thickness*r,color:t.color};return t.copy_ystyle&&(n=e.error_y),n}var Xze=bk.SYMBOL_SDF_SIZE,sw=bk.SYMBOL_SIZE,Zze=bk.SYMBOL_STROKE,cY={},yqt=u5.symbolFuncs[0](sw*.05);function Yze(e,t){var r=e.mx;if(r==="circle")return null;var n,i,a=u5.symbolNumber(r),o=u5.symbolFuncs[a%100],s=!!u5.symbolNoDot[a%100],l=!!u5.symbolNoFill[a%100],u=fY.isDotSymbol(r);if(e.ma&&(r+="_"+e.ma),cY[r])return cY[r];var c=u5.getMarkerAngle(e,t);return u&&!s?n=o(sw*1.1,c)+yqt:n=o(sw,c),i=hqt(n,{w:Xze,h:Xze,viewBox:[-sw,-sw,sw,sw],stroke:l?Zze:-Zze}),cY[r]=i,i||null}function _qt(e,t,r){var n=r.length,i=n/2,a,o;if(c5.hasLines(t)&&i)if(t.line.shape==="hv"){for(a=[],o=0;o<i-1;o++)isNaN(r[o*2])||isNaN(r[o*2+1])?a.push(NaN,NaN,NaN,NaN):(a.push(r[o*2],r[o*2+1]),!isNaN(r[o*2+2])&&!isNaN(r[o*2+3])?a.push(r[o*2+2],r[o*2+1]):a.push(NaN,NaN));a.push(r[n-2],r[n-1])}else if(t.line.shape==="hvh"){for(a=[],o=0;o<i-1;o++)if(isNaN(r[o*2])||isNaN(r[o*2+1])||isNaN(r[o*2+2])||isNaN(r[o*2+3]))!isNaN(r[o*2])&&!isNaN(r[o*2+1])?a.push(r[o*2],r[o*2+1]):a.push(NaN,NaN),a.push(NaN,NaN);else{var s=(r[o*2]+r[o*2+2])/2;a.push(r[o*2],r[o*2+1],s,r[o*2+1],s,r[o*2+3])}a.push(r[n-2],r[n-1])}else if(t.line.shape==="vhv"){for(a=[],o=0;o<i-1;o++)if(isNaN(r[o*2])||isNaN(r[o*2+1])||isNaN(r[o*2+2])||isNaN(r[o*2+3]))!isNaN(r[o*2])&&!isNaN(r[o*2+1])?a.push(r[o*2],r[o*2+1]):a.push(NaN,NaN),a.push(NaN,NaN);else{var l=(r[o*2+1]+r[o*2+3])/2;a.push(r[o*2],r[o*2+1],r[o*2],l,r[o*2+2],l)}a.push(r[n-2],r[n-1])}else if(t.line.shape==="vh"){for(a=[],o=0;o<i-1;o++)isNaN(r[o*2])||isNaN(r[o*2+1])?a.push(NaN,NaN,NaN,NaN):(a.push(r[o*2],r[o*2+1]),!isNaN(r[o*2+2])&&!isNaN(r[o*2+3])?a.push(r[o*2],r[o*2+3]):a.push(NaN,NaN));a.push(r[n-2],r[n-1])}else a=r;var u=!1;for(o=0;o<a.length;o++)if(isNaN(a[o])){u=!0;break}var c=u||a.length>bk.TOO_MANY_POINTS||c5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o<a.length;o+=2)isNaN(a[o])||isNaN(a[o+1])?(a[o]=f,a[o+1]=h):(f=a[o],h=a[o+1])}return{join:c,positions:a}}function xqt(e,t,r,n,i){var a=dqt.getComponentMethod("errorbars","makeComputeError"),o=Uze.getFromId(e,t.xaxis,"x"),s=Uze.getFromId(e,t.yaxis,"y"),l=r.length/2,u={};function c(f,h){var d=h._id.charAt(0),v=t["error_"+d];if(v&&v.visible&&(h.type==="linear"||h.type==="log")){for(var m=a(v),b={x:0,y:1}[d],p={x:[0,1,2,3],y:[2,3,0,1]}[d],k=new Float64Array(4*l),M=1/0,T=-1/0,L=0,x=0;L<l;L++,x+=4){var C=f[L];if(rz(C)){var S=r[L*2+b],g=m(C,L),P=g[0],E=g[1];if(rz(P)&&rz(E)){var z=C-P,q=C+E;k[x+p[0]]=S-h.c2l(z),k[x+p[1]]=h.c2l(q)-S,k[x+p[2]]=0,k[x+p[3]]=0,M=Math.min(M,C-P),T=Math.max(T,C+E)}}}u[d]={positions:r,errors:k,_bnds:[M,T]}}}return c(n,o),c(i,s),u}function bqt(e,t,r,n){var i=t._length,a={},o;if(c5.hasMarkers(t)){var s=r.font,l=r.align,u=r.baseline;for(a.offset=new Array(i),o=0;o<i;o++){var c=n.sizes?n.sizes[o]:n.size,f=bh(s)?s[o].size:s.size,h=bh(l)?l.length>1?l[o]:l[0]:l,d=bh(u)?u.length>1?u[o]:u[0]:u,v=Gze[h],m=Gze[d],b=c?c/.8+1:0,p=-m*b-m*.5;a.offset[o]=[v*b/f,p/f]}}return a}Jze.exports={style:mqt,markerStyle:dY,markerSelection:hY,linePositions:_qt,errorBarPositions:xqt,textPosition:bqt}});var vY=ye((Pyr,$ze)=>{"use strict";var iz=Pr();$ze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){iz.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=iz.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u<n.count;u++)n.glText[u].update(s)},n.draw=function(){for(var s=n.count,l=n.fill2d,u=n.error2d,c=n.line2d,f=n.scatter2d,h=n.glText,d=n.select2d,v=n.selectBatch,m=n.unselectBatch,b=0;b<s;b++){if(l&&n.fillOrder[b]&&l.draw(n.fillOrder[b]),c&&n.lineOptions[b]&&c.draw(b),u&&(n.errorXOptions[b]&&u.draw(b),n.errorYOptions[b]&&u.draw(b+s)),f&&n.markerOptions[b])if(m[b].length){var p=iz.repeat([],n.count);p[b]=m[b],f.draw(p)}else v[b].length||f.draw(b);h[b]&&n.textOptions[b]&&h[b].render()}d&&d.draw(v),n.dirty=!1},n.destroy=function(){n.fill2d&&n.fill2d.destroy&&n.fill2d.destroy(),n.scatter2d&&n.scatter2d.destroy&&n.scatter2d.destroy(),n.error2d&&n.error2d.destroy&&n.error2d.destroy(),n.line2d&&n.line2d.destroy&&n.line2d.destroy(),n.select2d&&n.select2d.destroy&&n.select2d.destroy(),n.glText&&n.glText.forEach(function(s){s.destroy&&s.destroy()}),n.lineOptions=null,n.fillOptions=null,n.markerOptions=null,n.markerSelectedOptions=null,n.markerUnselectedOptions=null,n.errorXOptions=null,n.errorYOptions=null,n.textOptions=null,n.textSelectedOptions=null,n.textUnselectedOptions=null,n.selectBatch=null,n.unselectBatch=null,r._scene=null}),n.dirty||iz.extendFlat(n,i),n}});var n7e=ye((Iyr,i7e)=>{"use strict";var wqt=KF(),h5=Pr(),Qze=df(),Tqt=Mg().findExtremes,e7e=zg(),pY=O0(),Aqt=pY.calcMarkerSize,Sqt=pY.calcAxisExpansion,Mqt=pY.setFirstScatter,Eqt=z0(),d5=lw(),kqt=vY(),t7e=fs().BADNUM,Cqt=gx().TOO_MANY_POINTS;i7e.exports=function(t,r){var n=t._fullLayout,i=r._xA=Qze.getFromId(t,r.xaxis,"x"),a=r._yA=Qze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=Cqt,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=e7e(r,i,"x",h),m=e7e(r,a,"y",d),b=v.vals,p=m.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=m.starts,r._yEnds=m.ends);var k=new Array(u),M=new Array(s);for(f=0;f<s;f++)k[f*2]=b[f]===t7e?NaN:b[f],k[f*2+1]=p[f]===t7e?NaN:p[f],M[f]=f;if(i.type==="log")for(f=0;f<u;f+=2)k[f]=i.c2l(k[f]);if(a.type==="log")for(f=1;f<u;f+=2)k[f]=a.c2l(k[f]);l&&i.type!=="log"&&a.type!=="log"?c.tree=wqt(k):c.ids=M,Eqt(t,r);var T=Lqt(t,o,r,k,b,p),L=kqt(t,o);Mqt(n,r);var x;return l?T.marker&&(x=T.marker.sizeAvg||Math.max(T.marker.size,3)):x=Aqt(r,s),Sqt(t,r,i,a,b,p,x),T.errorX&&r7e(r,i,T.errorX),T.errorY&&r7e(r,a,T.errorY),T.fill&&!L.fill2d&&(L.fill2d=!0),T.marker&&!L.scatter2d&&(L.scatter2d=!0),T.line&&!L.line2d&&(L.line2d=!0),(T.errorX||T.errorY)&&!L.error2d&&(L.error2d=!0),T.text&&!L.glText&&(L.glText=!0),T.marker&&(T.marker.snap=s),L.lineOptions.push(T.line),L.errorXOptions.push(T.errorX),L.errorYOptions.push(T.errorY),L.fillOptions.push(T.fill),L.markerOptions.push(T.marker),L.markerSelectedOptions.push(T.markerSel),L.markerUnselectedOptions.push(T.markerUnsel),L.textOptions.push(T.text),L.textSelectedOptions.push(T.textSel),L.textUnselectedOptions.push(T.textUnsel),L.selectBatch.push([]),L.unselectBatch.push([]),c._scene=L,c.index=L.count,c.x=b,c.y=p,c.positions=k,L.count++,[{x:!1,y:!1,t:c,trace:r}]};function r7e(e,t,r){var n=e._extremes[t._id],i=Tqt(t,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}function Lqt(e,t,r,n,i,a){var o=d5.style(e,r);if(o.marker&&(o.marker.positions=n),o.line&&n.length>1&&h5.extendFlat(o.line,d5.linePositions(e,r,n)),o.errorX||o.errorY){var s=d5.errorBarPositions(e,r,n,i,a);o.errorX&&h5.extendFlat(o.errorX,s.x),o.errorY&&h5.extendFlat(o.errorY,s.y)}return o.text&&(h5.extendFlat(o.text,{positions:n},d5.textPosition(e,r,o.text,o.marker)),h5.extendFlat(o.textSel,{positions:n},d5.textPosition(e,r,o.text,o.markerSel)),h5.extendFlat(o.textUnsel,{positions:n},d5.textPosition(e,r,o.text,o.markerUnsel))),o}});var gY=ye((Ryr,o7e)=>{"use strict";var a7e=Pr(),Pqt=ka(),Iqt=X1().DESELECTDIM;function Rqt(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=a7e.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,m=c.color,b=l.color,p=a7e.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h<o.length;h++)d=o[h],f.color[d]=v||(p?b[d]:b);for(h=0;h<s.length;h++){d=s[h];var k=p?b[d]:b;f.color[d]=m||(v?k:Pqt.addOpacity(k,Iqt))}}i.glText[a].update(f)}o7e.exports={styleTextSelection:Rqt}});var mY=ye((Dyr,l7e)=>{"use strict";var s7e=Ru(),Dqt=gY().styleTextSelection;l7e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=s7e.hasText(s),m=s7e.hasMarkers(s),b=!m&&!v;if(s.visible!==!0||b)return o;var p=[],k=[];if(r!==!1&&!r.degenerate)for(var M=0;M<u;M++)r.contains([l.xpx[M],l.ypx[M]],!1,M,t)?(p.push(M),o.push({pointNumber:M,x:i.c2d(c[M]),y:a.c2d(f[M])})):k.push(M);if(m){var T=h.scatter2d;if(!p.length&&!k.length){var L=new Array(h.count);L[d]=h.markerOptions[d],T.update.apply(T,L)}else if(!h.selectBatch[d].length&&!h.unselectBatch[d].length){var x=new Array(h.count);x[d]=h.markerUnselectedOptions[d],T.update.apply(T,x)}}return h.selectBatch[d]=p,h.unselectBatch[d]=k,v&&Dqt(n),o}});var c7e=ye((Fyr,u7e)=>{"use strict";var Fqt=XF();u7e.exports={moduleType:"trace",name:"scattergl",basePlotModule:mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mk(),supplyDefaults:jFe(),crossTraceDefaults:hU(),colorbar:Qd(),formatLabels:XFe(),calc:n7e(),hoverPoints:Fqt.hoverPoints,selectPoints:mY(),meta:{}}});var h7e=ye((zyr,az)=>{"use strict";var nz=ik();az.exports=f7e;az.exports.to=f7e;az.exports.from=zqt;function f7e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=nz(r,0,255)&255,n=nz(n,0,255)&255,i=nz(i,0,255)&255,a=nz(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function zqt(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Nh=ye((qyr,v7e)=>{"use strict";var d7e=Object.getOwnPropertySymbols,qqt=Object.prototype.hasOwnProperty,Oqt=Object.prototype.propertyIsEnumerable;function Bqt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nqt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}v7e.exports=Nqt()?Object.assign:function(e,t){for(var r,n=Bqt(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)qqt.call(r,o)&&(n[o]=r[o]);if(d7e){i=d7e(r);for(var s=0;s<i.length;s++)Oqt.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n}});var g7e=ye((Oyr,p7e)=>{p7e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")}});var yY=ye((Byr,m7e)=>{"use strict";m7e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var s in o)if(!(r[s]!==void 0&&!Array.isArray(r[s])&&t[s]===r[s])&&s in r){var l;if(o[s]===!0)l=r[s];else{if(o[s]===!1)continue;if(typeof o[s]=="function"&&(l=o[s](r[s],t,r),l===void 0))continue}t[s]=l}}return t}});var _7e=ye((Nyr,y7e)=>{"use strict";y7e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var oz=ye((Uyr,v5)=>{"use strict";v5.exports=wk;v5.exports.float32=v5.exports.float=wk;v5.exports.fract32=v5.exports.fract=Uqt;var x7e=new Float32Array(1);function Uqt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wk(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return wk(e-wk(e))}function wk(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(x7e[0]=e,x7e[0])}});var xY=ye((Vyr,T7e)=>{"use strict";function Vqt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Gqt(e,t){return Wqt(e)||Vqt(e,t)||w7e(e,t)||Yqt()}function Hqt(e){return jqt(e)||Xqt(e)||w7e(e)||Zqt()}function jqt(e){if(Array.isArray(e))return _Y(e)}function Wqt(e){if(Array.isArray(e))return e}function Xqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w7e(e,t){if(e){if(typeof e=="string")return _Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _Y(e,t)}}function _Y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zqt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2009In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yqt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2010In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Kqt=sx(),Jqt=nw(),$qt=h7e(),Qqt=KF(),uw=Nh(),sz=g7e(),eOt=ty(),tOt=yY(),rOt=aw(),b7e=_7e(),lz=oz(),iOt=l5(),nOt=av;function av(e,t){var r=this;if(!(this instanceof av))return new av(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},s=[],l=[null],u=[null],c=255,f=100;this.tooManyColors=b7e,i=e.texture({data:new Uint8Array(c*4),width:c,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),uw(this,{regl:e,gl:n,groups:s,markerCache:u,markerTextures:l,palette:a,paletteIds:o,paletteTexture:i,maxColors:c,maxSize:f,canvas:n.canvas}),this.update(t);var h={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,p){return[r.tooManyColors?0:c,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,p){return p.xAttr||{buffer:p.positionBuffer,stride:8,offset:0}},y:function(b,p){return p.yAttr||{buffer:p.positionBuffer,stride:8,offset:4}},xFract:function(b,p){return p.xAttr?{constant:[0,0]}:{buffer:p.positionFractBuffer,stride:8,offset:0}},yFract:function(b,p){return p.yAttr?{constant:[0,0]}:{buffer:p.positionFractBuffer,stride:8,offset:4}},size:function(b,p){return p.size.length?{buffer:p.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(p.size*255/r.maxSize)]}},borderSize:function(b,p){return p.borderSize.length?{buffer:p.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(p.borderSize*255/r.maxSize)]}},colorId:function(b,p){return p.color.length?{buffer:p.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(p.color*4,p.color*4+4):[p.color]}},borderColorId:function(b,p){return p.borderColor.length?{buffer:p.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(p.borderColor*4,p.borderColor*4+4):[p.borderColor]}},isActive:function(b,p){return p.activation===!0?{constant:[1]}:p.activation?p.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:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},d=uw({},h);d.frag=sz([`precision highp float;
2011#define GLSLIFY 1

Callers 4

plotly.min.jsFile · 0.70
NoFunction · 0.70
eeFunction · 0.70
jfFunction · 0.70

Calls 4

eaFunction · 0.70
_oFunction · 0.70
yaFunction · 0.70
eMethod · 0.45

Tested by

no test coverage detected