plotly.js
Version:
The open source javascript graphing library that powers plotly
50 lines • 1.38 MB
JavaScript
/**
* plotly.js (geo - minified) v4.0.0
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.moduleName = factory();
}
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var wY=Object.create;var Zv=Object.defineProperty,MY=Object.defineProperties,AY=Object.getOwnPropertyDescriptor,TY=Object.getOwnPropertyDescriptors,kY=Object.getOwnPropertyNames,s_=Object.getOwnPropertySymbols,CY=Object.getPrototypeOf,c_=Object.prototype.hasOwnProperty,SY=Object.prototype.propertyIsEnumerable;var f_=(e,r,t)=>r in e?Zv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ha=(e,r)=>{for(var t in r||(r={}))c_.call(r,t)&&f_(e,t,r[t]);if(s_)for(var t of s_(r))SY.call(r,t)&&f_(e,t,r[t]);return e},Na=(e,r)=>MY(e,TY(r));var l1=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var ae=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},u1=(e,r)=>{for(var t in r)Zv(e,t,{get:r[t],enumerable:!0})},v_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of kY(r))!c_.call(e,n)&&n!==t&&Zv(e,n,{get:()=>r[n],enumerable:!(a=AY(r,n))||a.enumerable});return e};var fy=(e,r,t)=>(t=e!=null?wY(CY(e)):{},v_(r||!e||!e.__esModule?Zv(t,"default",{value:e,enumerable:!0}):t,e)),ei=e=>v_(Zv({},"__esModule",{value:!0}),e);var Jv=ae(h_=>{"use strict";h_.version="4.0.0"});var p_=ae((d_,gp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof gp!="undefined"&&gp.exports&&(gp.exports=t[r])})("Promise",typeof window!="undefined"?window:d_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,M){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:M!==!1})}}catch(b){r=function(x,_,M){return x[_]=M,x}}a=(function(){var C,x,_;function M(T,A){this.fn=T,this.self=A,this.next=void 0}return{add:function(A,D){_=new M(A,D),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var A=C;for(C=x=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function o(b,C){a.add(b,C),t||(t=i(a.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function u(){for(var b=0;b<this.chain.length;b++)s(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function s(b,C,x){var _,M;try{C===!1?x.reject(b.msg):(C===!0?_=b.msg:_=C.call(void 0,b.msg),_===x.promise?x.reject(TypeError("Promise-chain cycle")):(M=l(_))?M.call(_,x.resolve,x.reject):x.resolve(_))}catch(T){x.reject(T)}}function f(b){var C,x=this;if(!x.triggered){x.triggered=!0,x.def&&(x=x.def);try{(C=l(b))?o(function(){var _=new d(x);try{C.call(b,function(){f.apply(_,arguments)},function(){c.apply(_,arguments)})}catch(M){c.call(_,M)}}):(x.msg=b,x.state=1,x.chain.length>0&&o(u,x))}catch(_){c.call(new d(x),_)}}}function c(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(u,C))}function h(b,C,x,_){for(var M=0;M<C.length;M++)(function(A){b.resolve(C[A]).then(function(P){x(A,P)},_)})(M)}function d(b){this.def=b,this.triggered=!1}function m(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new m(this);this.then=function(_,M){var T={success:typeof _=="function"?_:!0,failure:typeof M=="function"?M:!1};return T.promise=new this.constructor(function(D,P){if(typeof D!="function"||typeof P!="function")throw TypeError("Not a function");T.resolve=D,T.reject=P}),C.chain.push(T),C.state!==0&&o(u,C),T.promise},this.catch=function(_){return this.then(void 0,_)};try{b.call(void 0,function(_){f.call(C,_)},function(_){c.call(C,_)})}catch(x){c.call(C,x)}}var y=r({},"constructor",p,!1);return p.prototype=y,r(y,"__NPO__",0,!1),r(p,"resolve",function(C){var x=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");M(C)})}),r(p,"reject",function(C){return new this(function(_,M){if(typeof _!="function"||typeof M!="function")throw TypeError("Not a function");M(C)})}),r(p,"all",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):C.length===0?x.resolve([]):new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");var A=C.length,D=Array(A),P=0;h(x,C,function(B,X){D[B]=X,++P===A&&M(D)},T)})}),r(p,"race",function(C){var x=this;return n.call(C)!="[object Array]"?x.reject(TypeError("Not an array")):new x(function(M,T){if(typeof M!="function"||typeof T!="function")throw TypeError("Not a function");h(x,C,function(D,P){M(P)},T)})}),p})});var Et=ae((zme,yp)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,l=o.setAttribute,u=o.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){u.call(this,g,w,S+"")},s.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=c;function c(v,g){return v<g?-1:v>g?1:v>=g?0:NaN}e.descending=function(v,g){return g<v?-1:g>v?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,S=v.length,L,F;if(arguments.length===1){for(;++w<S;)if((F=v[w])!=null&&F>=F){L=F;break}for(;++w<S;)(F=v[w])!=null&&L>F&&(L=F)}else{for(;++w<S;)if((F=g.call(v,v[w],w))!=null&&F>=F){L=F;break}for(;++w<S;)(F=g.call(v,v[w],w))!=null&&L>F&&(L=F)}return L},e.max=function(v,g){var w=-1,S=v.length,L,F;if(arguments.length===1){for(;++w<S;)if((F=v[w])!=null&&F>=F){L=F;break}for(;++w<S;)(F=v[w])!=null&&F>L&&(L=F)}else{for(;++w<S;)if((F=g.call(v,v[w],w))!=null&&F>=F){L=F;break}for(;++w<S;)(F=g.call(v,v[w],w))!=null&&F>L&&(L=F)}return L},e.extent=function(v,g){var w=-1,S=v.length,L,F,Y;if(arguments.length===1){for(;++w<S;)if((F=v[w])!=null&&F>=F){L=Y=F;break}for(;++w<S;)(F=v[w])!=null&&(L>F&&(L=F),Y<F&&(Y=F))}else{for(;++w<S;)if((F=g.call(v,v[w],w))!=null&&F>=F){L=Y=F;break}for(;++w<S;)(F=g.call(v,v[w],w))!=null&&(L>F&&(L=F),Y<F&&(Y=F))}return[L,Y]};function h(v){return v===null?NaN:+v}function d(v){return!isNaN(v)}e.sum=function(v,g){var w=0,S=v.length,L,F=-1;if(arguments.length===1)for(;++F<S;)d(L=+v[F])&&(w+=L);else for(;++F<S;)d(L=+g.call(v,v[F],F))&&(w+=L);return w},e.mean=function(v,g){var w=0,S=v.length,L,F=-1,Y=S;if(arguments.length===1)for(;++F<S;)d(L=h(v[F]))?w+=L:--Y;else for(;++F<S;)d(L=h(g.call(v,v[F],F)))?w+=L:--Y;if(Y)return w/Y},e.quantile=function(v,g){var w=(v.length-1)*g+1,S=Math.floor(w),L=+v[S-1],F=w-S;return F?L+F*(v[S]-L):L},e.median=function(v,g){var w=[],S=v.length,L,F=-1;if(arguments.length===1)for(;++F<S;)d(L=h(v[F]))&&w.push(L);else for(;++F<S;)d(L=h(g.call(v,v[F],F)))&&w.push(L);if(w.length)return e.quantile(w.sort(c),.5)},e.variance=function(v,g){var w=v.length,S=0,L,F,Y=0,N=-1,Z=0;if(arguments.length===1)for(;++N<w;)d(L=h(v[N]))&&(F=L-S,S+=F/++Z,Y+=F*(L-S));else for(;++N<w;)d(L=h(g.call(v,v[N],N)))&&(F=L-S,S+=F/++Z,Y+=F*(L-S));if(Z>1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function m(v){return{left:function(g,w,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var F=S+L>>>1;v(g[F],w)<0?S=F+1:L=F}return S},right:function(g,w,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var F=S+L>>>1;v(g[F],w)>0?L=F:S=F+1}return S}}}var p=m(c);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(v){return m(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(S=arguments.length)<3&&(w=v.length,S<2&&(g=0));for(var S=w-g,L,F;S;)F=Math.random()*S--|0,L=v[S+g],v[S+g]=v[F+g],v[F+g]=L;return v},e.permute=function(v,g){for(var w=g.length,S=new Array(w);w--;)S[w]=v[g[w]];return S},e.pairs=function(v){for(var g=0,w=v.length-1,S,L=v[0],F=new Array(w<0?0:w);g<w;)F[g]=[S=L,L=v[++g]];return F},e.transpose=function(v){if(!(F=v.length))return[];for(var g=-1,w=e.min(v,y),S=new Array(w);++g<w;)for(var L=-1,F,Y=S[g]=new Array(F);++L<F;)Y[L]=v[L][g];return S};function y(v){return v.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(v){var g=[];for(var w in v)g.push(w);return g},e.values=function(v){var g=[];for(var w in v)g.push(v[w]);return g},e.entries=function(v){var g=[];for(var w in v)g.push({key:w,value:v[w]});return g},e.merge=function(v){for(var g=v.length,w,S=-1,L=0,F,Y;++S<g;)L+=v[S].length;for(F=new Array(L);--g>=0;)for(Y=v[g],w=Y.length;--w>=0;)F[--L]=Y[w];return F};var b=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var S=[],L=C(b(w)),F=-1,Y;if(v*=L,g*=L,w*=L,w<0)for(;(Y=v+w*++F)>g;)S.push(Y/L);else for(;(Y=v+w*++F)<g;)S.push(Y/L);return S};function C(v){for(var g=1;v*g%1;)g*=10;return g}function x(v,g){for(var w in g)Object.defineProperty(v.prototype,w,{value:g[w],enumerable:!1})}e.map=function(v,g){var w=new _;if(v instanceof _)v.forEach(function(N,Z){w.set(N,Z)});else if(Array.isArray(v)){var S=-1,L=v.length,F;if(arguments.length===1)for(;++S<L;)w.set(S,v[S]);else for(;++S<L;)w.set(g.call(v,F=v[S],S),F)}else for(var Y in v)w.set(Y,v[Y]);return w};function _(){this._=Object.create(null)}var M="__proto__",T="\0";x(_,{has:P,get:function(v){return this._[A(v)]},set:function(v,g){return this._[A(v)]=g},remove:z,keys:B,values:function(){var v=[];for(var g in this._)v.push(this._[g]);return v},entries:function(){var v=[];for(var g in this._)v.push({key:D(g),value:this._[g]});return v},size:X,empty:H,forEach:function(v){for(var g in this._)v.call(this,D(g),this._[g])}});function A(v){return(v+="")===M||v[0]===T?T+v:v}function D(v){return(v+="")[0]===T?v.slice(1):v}function P(v){return A(v)in this._}function z(v){return(v=A(v))in this._&&delete this._[v]}function B(){var v=[];for(var g in this._)v.push(D(g));return v}function X(){var v=0;for(var g in this._)++v;return v}function H(){for(var v in this._)return!1;return!0}e.nest=function(){var v={},g=[],w=[],S,L;function F(N,Z,ie){if(ie>=g.length)return L?L.call(v,Z):S?Z.sort(S):Z;for(var oe=-1,ge=Z.length,ye=g[ie++],qe,Ye,be,Ce=new _,Le;++oe<ge;)(Le=Ce.get(qe=ye(Ye=Z[oe])))?Le.push(Ye):Ce.set(qe,[Ye]);return N?(Ye=N(),be=function(Ge,Ve){Ye.set(Ge,F(N,Ve,ie))}):(Ye={},be=function(Ge,Ve){Ye[Ge]=F(N,Ve,ie)}),Ce.forEach(be),Ye}function Y(N,Z){if(Z>=g.length)return N;var ie=[],oe=w[Z++];return N.forEach(function(ge,ye){ie.push({key:ge,values:Y(ye,Z)})}),oe?ie.sort(function(ge,ye){return oe(ge.key,ye.key)}):ie}return v.map=function(N,Z){return F(Z,N,0)},v.entries=function(N){return Y(F(e.map,N,0),0)},v.key=function(N){return g.push(N),v},v.sortKeys=function(N){return w[g.length-1]=N,v},v.sortValues=function(N){return S=N,v},v.rollup=function(N){return L=N,v},v},e.set=function(v){var g=new V;if(v)for(var w=0,S=v.length;w<S;++w)g.add(v[w]);return g};function V(){this._=Object.create(null)}x(V,{has:P,add:function(v){return this._[A(v+="")]=!0,v},remove:z,values:B,size:X,empty:H,forEach:function(v){for(var g in this._)v.call(this,D(g))}}),e.behavior={};function I(v){return v}e.rebind=function(v,g){for(var w=1,S=arguments.length,L;++w<S;)v[L=arguments[w]]=Q(v,g,g[L]);return v};function Q(v,g,w){return function(){var S=w.apply(g,arguments);return S===g?v:S}}function ne(v,g){if(g in v)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var w=0,S=te.length;w<S;++w){var L=te[w]+g;if(L in v)return L}}var te=["webkit","ms","moz","Moz","o","O"];function ee(){}e.dispatch=function(){for(var v=new fe,g=-1,w=arguments.length;++g<w;)v[arguments[g]]=ve(v);return v};function fe(){}fe.prototype.on=function(v,g){var w=v.indexOf("."),S="";if(w>=0&&(S=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(S):this[v].on(S,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(S,null);return this}};function ve(v){var g=[],w=new _;function S(){for(var L=g,F=-1,Y=L.length,N;++F<Y;)(N=L[F].on)&&N.apply(this,arguments);return v}return S.on=function(L,F){var Y=w.get(L),N;return arguments.length<2?Y&&Y.on:(Y&&(Y.on=null,g=g.slice(0,N=g.indexOf(Y)).concat(g.slice(N+1)),w.remove(L)),F&&g.push(w.set(L,{on:F})),v)},S}e.event=null;function Ae(){e.event.preventDefault()}function Ee(){for(var v=e.event,g;g=v.sourceEvent;)v=g;return v}function Be(v){for(var g=new fe,w=0,S=arguments.length;++w<S;)g[arguments[w]]=ve(g);return g.of=function(L,F){return function(Y){try{var N=Y.sourceEvent=e.event;Y.target=v,e.event=Y,g[Y.type].apply(L,F)}finally{e.event=N}}},g}e.requote=function(v){return v.replace(Ue,"\\$&")};var Ue=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ke={}.__proto__?function(v,g){v.__proto__=g}:function(v,g){for(var w in g)v[w]=g[w]};function We(v){return ke(v,K),v}var j=function(v,g){return g.querySelector(v)},re=function(v,g){return g.querySelectorAll(v)},me=function(v,g){var w=v.matches||v[ne(v,"matchesSelector")];return me=function(S,L){return w.call(S,L)},me(v,g)};typeof Sizzle=="function"&&(j=function(v,g){return Sizzle(v,g)[0]||null},re=Sizzle,me=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var K=e.selection.prototype=[];K.select=function(v){var g=[],w,S,L,F;v=$(v);for(var Y=-1,N=this.length;++Y<N;){g.push(w=[]),w.parentNode=(L=this[Y]).parentNode;for(var Z=-1,ie=L.length;++Z<ie;)(F=L[Z])?(w.push(S=v.call(F,F.__data__,Z,Y)),S&&"__data__"in F&&(S.__data__=F.__data__)):w.push(null)}return We(g)};function $(v){return typeof v=="function"?v:function(){return j(v,this)}}K.selectAll=function(v){var g=[],w,S;v=le(v);for(var L=-1,F=this.length;++L<F;)for(var Y=this[L],N=-1,Z=Y.length;++N<Z;)(S=Y[N])&&(g.push(w=t(v.call(S,S.__data__,N,L))),w.parentNode=S);return We(g)};function le(v){return typeof v=="function"?v:function(){return re(v,this)}}var we="http://www.w3.org/1999/xhtml",Ne={svg:"http://www.w3.org/2000/svg",xhtml:we,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:Ne,qualify:function(v){var g=v.indexOf(":"),w=v;return g>=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Ne.hasOwnProperty(w)?{space:Ne[w],local:v}:v}},K.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each($e(g,v[g]));return this}return this.each($e(v,g))};function $e(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function S(){this.removeAttributeNS(v.space,v.local)}function L(){this.setAttribute(v,g)}function F(){this.setAttributeNS(v.space,v.local,g)}function Y(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function N(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,Z)}return g==null?v.local?S:w:typeof g=="function"?v.local?N:Y:v.local?F:L}function er(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),S=(v=sr(v)).length,L=-1;if(g=w.classList){for(;++L<S;)if(!g.contains(v[L]))return!1}else for(g=w.getAttribute("class");++L<S;)if(!ir(v[L]).test(g))return!1;return!0}for(g in v)this.each(Pe(g,v[g]));return this}return this.each(Pe(v,g))};function ir(v){return new RegExp("(?:^|\\s+)"+e.requote(v)+"(?:\\s+|$)","g")}function sr(v){return(v+"").trim().split(/^|\s+/)}function Pe(v,g){v=sr(v).map(vr);var w=v.length;function S(){for(var F=-1;++F<w;)v[F](this,g)}function L(){for(var F=-1,Y=g.apply(this,arguments);++F<w;)v[F](this,Y)}return typeof g=="function"?L:S}function vr(v){var g=ir(v);return function(w,S){if(L=w.classList)return S?L.add(v):L.remove(v);var L=w.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||w.setAttribute("class",er(L+" "+v))):w.setAttribute("class",er(L.replace(g," ")))}}K.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.each(hr(w,v[w],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(v)}w=""}return this.each(hr(v,g,w))};function hr(v,g,w){function S(){this.style.removeProperty(v)}function L(){this.style.setProperty(v,g,w)}function F(){var Y=g.apply(this,arguments);Y==null?this.style.removeProperty(v):this.style.setProperty(v,Y,w)}return g==null?S:typeof g=="function"?F:L}K.property=function(v,g){if(arguments.length<2){if(typeof v=="string")return this.node()[v];for(g in v)this.each(dr(g,v[g]));return this}return this.each(dr(v,g))};function dr(v,g){function w(){delete this[v]}function S(){this[v]=g}function L(){var F=g.apply(this,arguments);F==null?delete this[v]:this[v]=F}return g==null?w:typeof g=="function"?L:S}K.text=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.textContent=g==null?"":g}:v==null?function(){this.textContent=""}:function(){this.textContent=v}):this.node().textContent},K.html=function(v){return arguments.length?this.each(typeof v=="function"?function(){var g=v.apply(this,arguments);this.innerHTML=g==null?"":g}:v==null?function(){this.innerHTML=""}:function(){this.innerHTML=v}):this.node().innerHTML},K.append=function(v){return v=Ze(v),this.select(function(){return this.appendChild(v.apply(this,arguments))})};function Ze(v){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===we&&S.documentElement.namespaceURI===we?S.createElement(v):S.createElementNS(L,v)}function w(){return this.ownerDocument.createElementNS(v.space,v.local)}return typeof v=="function"?v:(v=e.ns.qualify(v)).local?w:g}K.insert=function(v,g){return v=Ze(v),g=$(g),this.select(function(){return this.insertBefore(v.apply(this,arguments),g.apply(this,arguments)||null)})},K.remove=function(){return this.each(fr)};function fr(){var v=this.parentNode;v&&v.removeChild(this)}K.data=function(v,g){var w=-1,S=this.length,L,F;if(!arguments.length){for(v=new Array(S=(L=this[0]).length);++w<S;)(F=L[w])&&(v[w]=F.__data__);return v}function Y(oe,ge){var ye,qe=oe.length,Ye=ge.length,be=Math.min(qe,Ye),Ce=new Array(Ye),Le=new Array(Ye),Ge=new Array(qe),Ve,De;if(g){var wr=new _,Gr=new Array(qe),jr;for(ye=-1;++ye<qe;)(Ve=oe[ye])&&(wr.has(jr=g.call(Ve,Ve.__data__,ye))?Ge[ye]=Ve:wr.set(jr,Ve),Gr[ye]=jr);for(ye=-1;++ye<Ye;)(Ve=wr.get(jr=g.call(ge,De=ge[ye],ye)))?Ve!==!0&&(Ce[ye]=Ve,Ve.__data__=De):Le[ye]=Dr(De),wr.set(jr,!0);for(ye=-1;++ye<qe;)ye in Gr&&wr.get(Gr[ye])!==!0&&(Ge[ye]=oe[ye])}else{for(ye=-1;++ye<be;)Ve=oe[ye],De=ge[ye],Ve?(Ve.__data__=De,Ce[ye]=Ve):Le[ye]=Dr(De);for(;ye<Ye;++ye)Le[ye]=Dr(ge[ye]);for(;ye<qe;++ye)Ge[ye]=oe[ye]}Le.update=Ce,Le.parentNode=Ce.parentNode=Ge.parentNode=oe.parentNode,N.push(Le),Z.push(Ce),ie.push(Ge)}var N=Nr([]),Z=We([]),ie=We([]);if(typeof v=="function")for(;++w<S;)Y(L=this[w],v.call(L,L.parentNode.__data__,w));else for(;++w<S;)Y(L=this[w],v);return Z.enter=function(){return N},Z.exit=function(){return ie},Z};function Dr(v){return{__data__:v}}K.datum=function(v){return arguments.length?this.property("__data__",v):this.property("__data__")},K.filter=function(v){var g=[],w,S,L;typeof v!="function"&&(v=Te(v));for(var F=0,Y=this.length;F<Y;F++){g.push(w=[]),w.parentNode=(S=this[F]).parentNode;for(var N=0,Z=S.length;N<Z;N++)(L=S[N])&&v.call(L,L.__data__,N,F)&&w.push(L)}return We(g)};function Te(v){return function(){return me(this,v)}}K.order=function(){for(var v=-1,g=this.length;++v<g;)for(var w=this[v],S=w.length-1,L=w[S],F;--S>=0;)(F=w[S])&&(L&&L!==F.nextSibling&&L.parentNode.insertBefore(F,L),L=F);return this},K.sort=function(v){v=Oe.apply(this,arguments);for(var g=-1,w=this.length;++g<w;)this[g].sort(v);return this.order()};function Oe(v){return arguments.length||(v=c),function(g,w){return g&&w?v(g.__data__,w.__data__):!g-!w}}K.each=function(v){return Mr(this,function(g,w,S){v.call(g,g.__data__,w,S)})};function Mr(v,g){for(var w=0,S=v.length;w<S;w++)for(var L=v[w],F=0,Y=L.length,N;F<Y;F++)(N=L[F])&&g(N,F,w);return v}K.call=function(v){var g=t(arguments);return v.apply(g[0]=this,g),this},K.empty=function(){return!this.node()},K.node=function(){for(var v=0,g=this.length;v<g;v++)for(var w=this[v],S=0,L=w.length;S<L;S++){var F=w[S];if(F)return F}return null},K.size=function(){var v=0;return Mr(this,function(){++v}),v};function Nr(v){return ke(v,Qe),v}var Qe=[];e.selection.enter=Nr,e.selection.enter.prototype=Qe,Qe.append=K.append,Qe.empty=K.empty,Qe.node=K.node,Qe.call=K.call,Qe.size=K.size,Qe.select=function(v){for(var g=[],w,S,L,F,Y,N=-1,Z=this.length;++N<Z;){L=(F=this[N]).update,g.push(w=[]),w.parentNode=F.parentNode;for(var ie=-1,oe=F.length;++ie<oe;)(Y=F[ie])?(w.push(L[ie]=S=v.call(F.parentNode,Y.__data__,ie,N)),S.__data__=Y.__data__):w.push(null)}return We(g)},Qe.insert=function(v,g){return arguments.length<2&&(g=Ie(this)),K.insert.call(this,v,g)};function Ie(v){var g,w;return function(S,L,F){var Y=v[F].update,N=Y.length,Z;for(F!=w&&(w=F,g=0),L>=g&&(g=L+1);!(Z=Y[g])&&++g<N;);return Z}}e.select=function(v){var g;return typeof v=="string"?(g=[j(v,a)],g.parentNode=a.documentElement):(g=[v],g.parentNode=n(v)),We([g])},e.selectAll=function(v){var g;return typeof v=="string"?(g=t(re(v,a)),g.parentNode=a.documentElement):(g=t(v),g.parentNode=null),We([g])},K.on=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g=!1);for(w in v)this.each(Xe(w,v[w],g));return this}if(S<2)return(S=this.node()["__on"+v])&&S._;w=!1}return this.each(Xe(v,g,w))};function Xe(v,g,w){var S="__on"+v,L=v.indexOf("."),F=kr;L>0&&(v=v.slice(0,L));var Y=yr.get(v);Y&&(v=Y,F=pr);function N(){var oe=this[S];oe&&(this.removeEventListener(v,oe,oe.$),delete this[S])}function Z(){var oe=F(g,t(arguments));N.call(this),this.addEventListener(v,this[S]=oe,oe.$=w),oe._=g}function ie(){var oe=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(oe)){var qe=this[ye];this.removeEventListener(ge[1],qe,qe.$),delete this[ye]}}return L?g?Z:N:g?ee:ie}var yr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&yr.forEach(function(v){"on"+v in a&&yr.remove(v)});function kr(v,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=S}}}function pr(v,g){var w=kr(v,g);return function(S){var L=this,F=S.relatedTarget;(!F||F!==L&&!(F.compareDocumentPosition(L)&8))&&w.call(L,S)}}var xr,Pr=0;function Lr(v){var g=".dragsuppress-"+ ++Pr,w="click"+g,S=e.select(i(v)).on("touchmove"+g,Ae).on("dragstart"+g,Ae).on("selectstart"+g,Ae);if(xr==null&&(xr="onselectstart"in v?!1:ne(v.style,"userSelect")),xr){var L=n(v).style,F=L[xr];L[xr]="none"}return function(Y){if(S.on(g,null),xr&&(L[xr]=F),Y){var N=function(){S.on(w,null)};S.on(w,function(){Ae(),N()},!0),setTimeout(N,0)}}}e.mouse=function(v){return tr(v,Ee())};var Hr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function tr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(Hr<0){var L=i(v);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var F=w[0][0].getScreenCTM();Hr=!(F.f||F.e),w.remove()}}return Hr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(v.getScreenCTM().inverse()),[S.x,S.y]}var Y=v.getBoundingClientRect();return[g.clientX-Y.left-v.clientLeft,g.clientY-Y.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=Ee().changedTouches),g){for(var S=0,L=g.length,F;S<L;++S)if((F=g[S]).identifier===w)return tr(v,F)}},e.behavior.drag=function(){var v=Be(L,"drag","dragstart","dragend"),g=null,w=F(ee,e.mouse,i,"mousemove","mouseup"),S=F(Cr,e.touch,I,"touchmove","touchend");function L(){this.on("mousedown.drag",w).on("touchstart.drag",S)}function F(Y,N,Z,ie,oe){return function(){var ge=this,ye=e.event.target.correspondingElement||e.event.target,qe=ge.parentNode,Ye=v.of(ge,arguments),be=0,Ce=Y(),Le=".drag"+(Ce==null?"":"-"+Ce),Ge,Ve=e.select(Z(ye)).on(ie+Le,Gr).on(oe+Le,jr),De=Lr(ye),wr=N(qe,Ce);g?(Ge=g.apply(ge,arguments),Ge=[Ge.x-wr[0],Ge.y-wr[1]]):Ge=[0,0],Ye({type:"dragstart"});function Gr(){var Vr=N(qe,Ce),rt,tt;Vr&&(rt=Vr[0]-wr[0],tt=Vr[1]-wr[1],be|=rt|tt,wr=Vr,Ye({type:"drag",x:Vr[0]+Ge[0],y:Vr[1]+Ge[1],dx:rt,dy:tt}))}function jr(){N(qe,Ce)&&(Ve.on(ie+Le,null).on(oe+Le,null),De(be),Ye({type:"dragend"}))}}}return L.origin=function(Y){return arguments.length?(g=Y,L):g},e.rebind(L,v,"on")};function Cr(){return e.event.changedTouches[0].identifier}e.touches=function(v,g){return arguments.length<2&&(g=Ee().touches),g?t(g).map(function(w){var S=tr(v,w);return S.identifier=w.identifier,S}):[]};var cr=1e-6,Xr=cr*cr,Kr=Math.PI,Fr=2*Kr,Wr=Fr-cr,Me=Kr/2,Re=Kr/180,ur=180/Kr;function gr(v){return v>0?1:v<0?-1:0}function Nt(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Gt(v){return v>1?0:v<-1?Kr:Math.acos(v)}function na(v){return v>1?Me:v<-1?-Me:Math.asin(v)}function Aa(v){return((v=Math.exp(v))-1/v)/2}function Bt(v){return((v=Math.exp(v))+1/v)/2}function jt(v){return((v=Math.exp(2*v))-1)/(v+1)}function da(v){return(v=Math.sin(v/2))*v}var Kt=Math.SQRT2,mn=2,rn=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],L=v[2],F=g[0],Y=g[1],N=g[2],Z=F-w,ie=Y-S,oe=Z*Z+ie*ie,ge,ye;if(oe<Xr)ye=Math.log(N/L)/Kt,ge=function(Ge){return[w+Ge*Z,S+Ge*ie,L*Math.exp(Kt*Ge*ye)]};else{var qe=Math.sqrt(oe),Ye=(N*N-L*L+rn*oe)/(2*L*mn*qe),be=(N*N-L*L-rn*oe)/(2*N*mn*qe),Ce=Math.log(Math.sqrt(Ye*Ye+1)-Ye),Le=Math.log(Math.sqrt(be*be+1)-be);ye=(Le-Ce)/Kt,ge=function(Ge){var Ve=Ge*ye,De=Bt(Ce),wr=L/(mn*qe)*(De*jt(Kt*Ve+Ce)-Aa(Ce));return[w+wr*Z,S+wr*ie,L*De/Bt(Kt*Ve+Ce)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var v={x:0,y:0,k:1},g,w,S,L=[960,500],F=Un,Y=250,N=0,Z="mousedown.zoom",ie="mousemove.zoom",oe="mouseup.zoom",ge,ye="touchstart.zoom",qe,Ye=Be(Ve,"zoomstart","zoom","zoomend"),be,Ce,Le,Ge;ua||(ua="onwheel"in a?(Jr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(Jr=function(){return e.event.wheelDelta},"mousewheel"):(Jr=function(){return-e.event.detail},"MozMousePixelScroll"));function Ve(Br){Br.on(Z,yt).on(ua+".zoom",an).on("dblclick.zoom",fa).on(ye,Qt)}Ve.event=function(Br){Br.each(function(){var Tt=Ye.of(this,arguments),kt=v;Sn?e.select(this).transition().each("start.zoom",function(){v=this.__chart__||{x:0,y:0,k:1},tt(Tt)}).tween("zoom:zoom",function(){var ea=L[0],Xa=L[1],bn=w?w[0]:ea/2,Vn=w?w[1]:Xa/2,fi=e.interpolateZoom([(bn-v.x)/v.k,(Vn-v.y)/v.k,ea/v.k],[(bn-kt.x)/kt.k,(Vn-kt.y)/kt.k,ea/kt.k]);return function(Si){var ci=fi(Si),Gi=ea/ci[2];this.__chart__=v={x:bn-ci[0]*Gi,y:Vn-ci[1]*Gi,k:Gi},At(Tt)}}).each("interrupt.zoom",function(){nt(Tt)}).each("end.zoom",function(){nt(Tt)}):(this.__chart__=v,tt(Tt),At(Tt),nt(Tt))})},Ve.translate=function(Br){return arguments.length?(v={x:+Br[0],y:+Br[1],k:v.k},rt(),Ve):[v.x,v.y]},Ve.scale=function(Br){return arguments.length?(v={x:v.x,y:v.y,k:null},Gr(+Br),rt(),Ve):v.k},Ve.scaleExtent=function(Br){return arguments.length?(F=Br==null?Un:[+Br[0],+Br[1]],Ve):F},Ve.center=function(Br){return arguments.length?(S=Br&&[+Br[0],+Br[1]],Ve):S},Ve.size=function(Br){return arguments.length?(L=Br&&[+Br[0],+Br[1]],Ve):L},Ve.duration=function(Br){return arguments.length?(Y=+Br,Ve):Y},Ve.x=function(Br){return arguments.length?(Ce=Br,be=Br.copy(),v={x:0,y:0,k:1},Ve):Ce},Ve.y=function(Br){return arguments.length?(Ge=Br,Le=Br.copy(),v={x:0,y:0,k:1},Ve):Ge};function De(Br){return[(Br[0]-v.x)/v.k,(Br[1]-v.y)/v.k]}function wr(Br){return[Br[0]*v.k+v.x,Br[1]*v.k+v.y]}function Gr(Br){v.k=Math.max(F[0],Math.min(F[1],Br))}function jr(Br,Tt){Tt=wr(Tt),v.x+=Br[0]-Tt[0],v.y+=Br[1]-Tt[1]}function Vr(Br,Tt,kt,ea){Br.__chart__={x:v.x,y:v.y,k:v.k},Gr(Math.pow(2,ea)),jr(w=Tt,kt),Br=e.select(Br),Y>0&&(Br=Br.transition().duration(Y)),Br.call(Ve.event)}function rt(){Ce&&Ce.domain(be.range().map(function(Br){return(Br-v.x)/v.k}).map(be.invert)),Ge&&Ge.domain(Le.range().map(function(Br){return(Br-v.y)/v.k}).map(Le.invert))}function tt(Br){N++||Br({type:"zoomstart"})}function At(Br){rt(),Br({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function nt(Br){--N||(Br({type:"zoomend"}),w=null)}function yt(){var Br=this,Tt=Ye.of(Br,arguments),kt=0,ea=e.select(i(Br)).on(ie,Vn).on(oe,fi),Xa=De(e.mouse(Br)),bn=Lr(Br);gt.call(Br),tt(Tt);function Vn(){kt=1,jr(e.mouse(Br),Xa),At(Tt)}function fi(){ea.on(ie,null).on(oe,null),bn(kt),nt(Tt)}}function Qt(){var Br=this,Tt=Ye.of(Br,arguments),kt={},ea=0,Xa,bn=".zoom-"+e.event.changedTouches[0].identifier,Vn="touchmove"+bn,fi="touchend"+bn,Si=[],ci=e.select(Br),Gi=Lr(Br);Yi(),tt(Tt),ci.on(Z,null).on(ye,Yi);function Qn(){var El=e.touches(Br);return Xa=v.k,El.forEach(function(Xn){Xn.identifier in kt&&(kt[Xn.identifier]=De(Xn))}),El}function Yi(){var El=e.event.target;e.select(El).on(Vn,k0).on(fi,xY),Si.push(El);for(var Xn=e.event.changedTouches,zo=0,bu=Xn.length;zo<bu;++zo)kt[Xn[zo].identifier]=null;var No=Qn(),o1=Date.now();if(No.length===1){if(o1-qe<500){var C0=No[0];Vr(Br,C0,kt[C0.identifier],Math.floor(Math.log(v.k)/Math.LN2)+1),Ae()}qe=o1}else if(No.length>1){var C0=No[0],lf=No[1],mp=C0[0]-lf[0],u_=C0[1]-lf[1];ea=mp*mp+u_*u_}}function k0(){var El=e.touches(Br),Xn,zo,bu,No;gt.call(Br);for(var o1=0,C0=El.length;o1<C0;++o1,No=null)if(bu=El[o1],No=kt[bu.identifier]){if(zo)break;Xn=bu,zo=No}if(No){var lf=(lf=bu[0]-Xn[0])*lf+(lf=bu[1]-Xn[1])*lf,mp=ea&&Math.sqrt(lf/ea);Xn=[(Xn[0]+bu[0])/2,(Xn[1]+bu[1])/2],zo=[(zo[0]+No[0])/2,(zo[1]+No[1])/2],Gr(mp*Xa)}qe=null,jr(Xn,zo),At(Tt)}function xY(){if(e.event.touches.length){for(var El=e.event.changedTouches,Xn=0,zo=El.length;Xn<zo;++Xn)delete kt[El[Xn].identifier];for(var bu in kt)return void Qn()}e.selectAll(Si).on(bn,null),ci.on(Z,yt).on(ye,Qt),Gi(),nt(Tt)}}function an(){var Br=Ye.of(this,arguments);ge?clearTimeout(ge):(gt.call(this),g=De(w=S||e.mouse(this)),tt(Br)),ge=setTimeout(function(){ge=null,nt(Br)},50),Ae(),Gr(Math.pow(2,Jr()*.002)*v.k),jr(w,g),At(Br)}function fa(){var Br=e.mouse(this),Tt=Math.log(v.k)/Math.LN2;Vr(this,Br,De(Br),e.event.shiftKey?Math.ceil(Tt)-1:Math.floor(Tt)+1)}return e.rebind(Ve,Ye,"on")};var Un=[0,1/0],Jr,ua;e.color=Rt;function Rt(){}Rt.prototype.toString=function(){return this.rgb()+""},e.hsl=pa;function pa(v,g,w){return this instanceof pa?(this.h=+v,this.s=+g,void(this.l=+w)):arguments.length<2?v instanceof pa?new pa(v.h,v.s,v.l):eu(""+v,ru,pa):new pa(v,g,w)}var ya=pa.prototype=new Rt;ya.brighter=function(v){return v=Math.pow(.7,arguments.length?v:1),new pa(this.h,this.s,this.l/v)},ya.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new pa(this.h,this.s,v*this.l)},ya.rgb=function(){return ba(this.h,this.s,this.l)};function ba(v,g,w){var S,L;v=isNaN(v)?0:(v%=360)<0?v+360:v,g=isNaN(g)||g<0?0:g>1?1:g,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+g):w+g-w*g,S=2*w-L;function F(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(L-S)*N/60:N<180?L:N<240?S+(L-S)*(240-N)/60:S}function Y(N){return Math.round(F(N)*255)}return new $a(Y(v+120),Y(v),Y(v-120))}e.hcl=Yt;function Yt(v,g,w){return this instanceof Yt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Yt?new Yt(v.h,v.c,v.l):v instanceof ma?Ql(v.l,v.a,v.b):Ql((v=ju((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Yt(v,g,w)}var za=Yt.prototype=new Rt;za.brighter=function(v){return new Yt(this.h,this.c,Math.min(100,this.l+aa*(arguments.length?v:1)))},za.darker=function(v){return new Yt(this.h,this.c,Math.max(0,this.l-aa*(arguments.length?v:1)))},za.rgb=function(){return gn(this.h,this.c,this.l).rgb()};function gn(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ma(w,Math.cos(v*=Re)*g,Math.sin(v)*g)}e.lab=ma;function ma(v,g,w){return this instanceof ma?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof ma?new ma(v.l,v.a,v.b):v instanceof Yt?gn(v.h,v.c,v.l):ju((v=$a(v)).r,v.g,v.b):new ma(v,g,w)}var aa=18,La=.95047,Sa=1,ko=1.08883,qi=ma.prototype=new Rt;qi.brighter=function(v){return new ma(Math.min(100,this.l+aa*(arguments.length?v:1)),this.a,this.b)},qi.darker=function(v){return new ma(Math.max(0,this.l-aa*(arguments.length?v:1)),this.a,this.b)},qi.rgb=function(){return Xu(this.l,this.a,this.b)};function Xu(v,g,w){var S=(v+16)/116,L=S+g/500,F=S-w/200;return L=ul(L)*La,S=ul(S)*Sa,F=ul(F)*ko,new $a(sl(3.2404542*L-1.5371385*S-.4985314*F),sl(-.969266*L+1.8760108*S+.041556*F),sl(.0556434*L-.2040259*S+1.0572252*F))}function Ql(v,g,w){return v>0?new Yt(Math.atan2(w,g)*ur,Math.sqrt(g*g+w*w),v):new Yt(NaN,NaN,v)}function ul(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Wu(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function sl(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=$a;function $a(v,g,w){return this instanceof $a?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof $a?new $a(v.r,v.g,v.b):eu(""+v,$a,ba):new $a(v,g,w)}function Pi(v){return new $a(v>>16,v>>8&255,v&255)}function fl(v){return Pi(v)+""}var Ri=$a.prototype=new Rt;Ri.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,S=this.b,L=30;return!g&&!w&&!S?new $a(L,L,L):(g&&g<L&&(g=L),w&&w<L&&(w=L),S&&S<L&&(S=L),new $a(Math.min(255,g/v),Math.min(255,w/v),Math.min(255,S/v)))},Ri.darker=function(v){return v=Math.pow(.7,arguments.length?v:1),new $a(v*this.r,v*this.g,v*this.b)},Ri.hsl=function(){return ru(this.r,this.g,this.b)},Ri.toString=function(){return"#"+Mi(this.r)+Mi(this.g)+Mi(this.b)};function Mi(v){return v<16?"0"+Math.max(0,v).toString(16):Math.min(255,v).toString(16)}function eu(v,g,w){var S=0,L=0,F=0,Y,N,Z;if(Y=/([a-z]+)\((.*)\)/.exec(v=v.toLowerCase()),Y)switch(N=Y[2].split(","),Y[1]){case"hsl":return w(parseFloat(N[0]),parseFloat(N[1])/100,parseFloat(N[2])/100);case"rgb":return g(Zu(N[0]),Zu(N[1]),Zu(N[2]))}return(Z=it.get(v))?g(Z.r,Z.g,Z.b):(v!=null&&v.charAt(0)==="#"&&!isNaN(Z=parseInt(v.slice(1),16))&&(v.length===4?(S=(Z&3840)>>4,S=S>>4|S,L=Z&240,L=L>>4|L,F=Z&15,F=F<<4|F):v.length===7&&(S=(Z&16711680)>>16,L=(Z&65280)>>8,F=Z&255)),g(S,L,F))}function ru(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),L=Math.max(v,g,w),F=L-S,Y,N,Z=(L+S)/2;return F?(N=Z<.5?F/(L+S):F/(2-L-S),v==L?Y=(g-w)/F+(g<w?6:0):g==L?Y=(w-v)/F+2:Y=(v-g)/F+4,Y*=60):(Y=NaN,N=Z>0&&Z<1?0:Y),new pa(Y,N,Z)}function ju(v,g,w){v=tu(v),g=tu(g),w=tu(w);var S=Wu((.4124564*v+.3575761*g+.1804375*w)/La),L=Wu((.2126729*v+.7151522*g+.072175*w)/Sa),F=Wu((.0193339*v+.119192*g+.9503041*w)/ko);return ma(116*L-16,500*(S-L),200*(L-F))}function tu(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Zu(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var it=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});it.forEach(function(v,g){it.set(v,Pi(g))});function lt(v){return typeof v=="function"?v:function(){return v}}e.functor=lt,e.xhr=Ot(I);function Ot(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Or(g,w,v,S)}}function Or(v,g,w,S){var L={},F=e.dispatch("beforesend","progress","load","error"),Y={},N=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(v)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ie:N.onreadystatechange=function(){N.readyState>3&&ie()};function ie(){var oe=N.status,ge;if(!oe&&ia(N)||oe>=200&&oe<300||oe===304){try{ge=w.call(L,N)}catch(ye){F.error.call(L,ye);return}F.load.call(L,ge)}else F.error.call(L,N)}return N.onprogress=function(oe){var ge=e.event;e.event=oe;try{F.progress.call(L,N)}finally{e.event=ge}},L.header=function(oe,ge){return oe=(oe+"").toLowerCase(),arguments.length<2?Y[oe]:(ge==null?delete Y[oe]:Y[oe]=ge+"",L)},L.mimeType=function(oe){return arguments.length?(g=oe==null?null:oe+"",L):g},L.responseType=function(oe){return arguments.length?(Z=oe,L):Z},L.response=function(oe){return w=oe,L},["get","post"].forEach(function(oe){L[oe]=function(){return L.send.apply(L,[oe].concat(t(arguments)))}}),L.send=function(oe,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),N.open(oe,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),N.setRequestHeader)for(var qe in Y)N.setRequestHeader(qe,Y[qe]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),Z!=null&&(N.responseType=Z),ye!=null&&L.on("error",ye).on("load",function(Ye){ye(null,Ye)}),F.beforesend.call(L,N),N.send(ge==null?null:ge),L},L.abort=function(){return N.abort(),L},e.rebind(L,F,"on"),S==null?L:L.get(vn(S))}function vn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function ia(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+`
]`),S=v.charCodeAt(0);function L(ie,oe,ge){arguments.length<3&&(ge=oe,oe=null);var ye=Or(ie,g,oe==null?F:Y(oe),ge);return ye.row=function(qe){return arguments.length?ye.response((oe=qe)==null?F:Y(qe)):oe},ye}function F(ie){return L.parse(ie.responseText)}function Y(ie){return function(oe){return L.parse(oe.responseText,ie)}}L.parse=function(ie,oe){var ge;return L.parseRows(ie,function(ye,qe){if(ge)return ge(ye,qe-1);var Ye=function(be){for(var Ce={},Le=ye.length,Ge=0;Ge<Le;++Ge)Ce[ye[Ge]]=be[Ge];return Ce};ge=oe?function(be,Ce){return oe(Ye(be),Ce)}:Ye})},L.parseRows=function(ie,oe){var ge={},ye={},qe=[],Ye=ie.length,be=0,Ce=0,Le,Ge;function Ve(){if(be>=Ye)return ye;if(Ge)return Ge=!1,ge;var wr=be;if(ie.charCodeAt(wr)===34){for(var Gr=wr;Gr++<Ye;)if(ie.charCodeAt(Gr)===34){if(ie.charCodeAt(Gr+1)!==34)break;++Gr}be=Gr+2;var jr=ie.charCodeAt(Gr+1);return jr===13?(Ge=!0,ie.charCodeAt(Gr+2)===10&&++be):jr===10&&(Ge=!0),ie.slice(wr+1,Gr).replace(/""/g,'"')}for(;be<Ye;){var jr=ie.charCodeAt(be++),Vr=1;if(jr===10)Ge=!0;else if(jr===13)Ge=!0,ie.charCodeAt(be)===10&&(++be,++Vr);else if(jr!==S)continue;return ie.slice(wr,be-Vr)}return ie.slice(wr)}for(;(Le=Ve())!==ye;){for(var De=[];Le!==ge&&Le!==ye;)De.push(Le),Le=Ve();oe&&(De=oe(De,Ce++))==null||qe.push(De)}return qe},L.format=function(ie){if(Array.isArray(ie[0]))return L.formatRows(ie);var oe=new V,ge=[];return ie.forEach(function(ye){for(var qe in ye)oe.has(qe)||ge.push(oe.add(qe))}),[ge.map(Z).join(v)].concat(ie.map(function(ye){return ge.map(function(qe){return Z(ye[qe])}).join(v)})).join(`
`)},L.formatRows=function(ie){return ie.map(N).join(`
`)};function N(ie){return ie.map(Z).join(v)}function Z(ie){return w.test(ie)?'"'+ie.replace(/\"/g,'""')+'"':ie}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ha,Ga,zn,cl,au=this[ne(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){nu.apply(this,arguments)};function nu(v,g,w){var S=arguments.length;S<2&&(g=0),S<3&&(w=Date.now());var L=w+g,F={c:v,t:L,n:null};return Ga?Ga.n=F:Ha=F,Ga=F,zn||(cl=clearTimeout(cl),zn=1,au(zi)),F}function zi(){var v=Co(),g=vl()-v;g>24?(isFinite(g)&&(clearTimeout(cl),cl=setTimeout(zi,g)),zn=0):(zn=1,au(zi))}e.timer.flush=function(){Co(),vl()};function Co(){for(var v=Date.now(),g=Ha;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function vl(){for(var v,g=Ha,w=1/0;g;)g.c?(g.t<w&&(w=g.t),g=(v=g).n):g=v?v.n=g.n:Ha=g.n;return Ga=v,w}e.round=function(v,g){return g?Math.round(v*(g=Math.pow(10,g)))/g:Math.round(v)},e.geom={};function iu(v){return v[0]}function Ju(v){return v[1]}e.geom.hull=function(v){var g=iu,w=Ju;if(arguments.length)return S(v);function S(L){if(L.length<3)return[];var F=lt(g),Y=lt(w),N,Z=L.length,ie=[],oe=[];for(N=0;N<Z;N++)ie.push([+F.call(this,L[N],N),+Y.call(this,L[N],N),N]);for(ie.sort(Nc),N=0;N<Z;N++)oe.push([ie[N][0],-ie[N][1]]);var ge=t0(ie),ye=t0(oe),qe=ye[0]===ge[0],Ye=ye[ye.length-1]===ge[ge.length-1],be=[];for(N=ge.length-1;N>=0;--N)be.push(L[ie[ge[N]][2]]);for(N=+qe;N<ye.length-Ye;++N)be.push(L[ie[ye[N]][2]]);return be}return S.x=function(L){return arguments.length?(g=L,S):g},S.y=function(L){return arguments.length?(w=L,S):w},S};function t0(v){for(var g=v.length,w=[0,1],S=2,L=2;L<g;L++){for(;S>1&&Nt(v[w[S-2]],v[w[S-1]],v[L])<=0;)--S;w[S++]=L}return w.slice(0,S)}function Nc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,$u),v};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var v=-1,g=this.length,w,S=this[g-1],L=0;++v<g;)w=S,S=this[v],L+=w[1]*S[0]-w[0]*S[1];return L*.5},$u.centroid=function(v){var g=-1,w=this.length,S=0,L=0,F,Y=this[w-1],N;for(arguments.length||(v=-1/(6*this.area()));++g<w;)F=Y,Y=this[g],N=F[0]*Y[1]-Y[0]*F[1],S+=(F[0]+Y[0])*N,L+=(F[1]+Y[1])*N;return[S*v,L*v]},$u.clip=function(v){for(var g,w=hl(v),S=-1,L=this.length-hl(this),F,Y,N=this[L-1],Z,ie,oe;++S<L;){for(g=v.slice(),v.length=0,Z=this[S],ie=g[(Y=g.length-w)-1],F=-1;++F<Y;)oe=g[F],Ku(oe,N,Z)?(Ku(ie,N,Z)||v.push(Qu(ie,oe,N,Z)),v.push(oe)):Ku(ie,N,Z)&&v.push(Qu(ie,oe,N,Z)),ie=oe;w&&v.push(v[0]),N=Z}return v};function Ku(v,g,w){return(w[0]-g[0])*(v[1]-g[1])<(w[1]-g[1])*(v[0]-g[0])}function Qu(v,g,w,S){var L=v[0],F=w[0],Y=g[0]-L,N=S[0]-F,Z=v[1],ie=w[1],oe=g[1]-Z,ge=S[1]-ie,ye=(N*(Z-ie)-ge*(L-F))/(ge*Y-N*oe);return[L+ye*Y,Z+ye*oe]}function hl(v){var g=v[0],w=v[v.length-1];return!(g[0]-w[0]||g[1]-w[1])}var So,Eo,to,a0=[],Gs,ou,n0=[];function Bc(){gl(this),this.edge=this.site=this.circle=null}function es(v){var g=a0.pop()||new Bc;return g.site=v,g}function ao(v){Do(v),to.remove(v),a0.push(v),gl(v)}function rs(v){var g=v.circle,w=g.x,S=g.cy,L={x:w,y:S},F=v.P,Y=v.N,N=[v];ao(v);for(var Z=F;Z.circle&&b(w-Z.circle.x)<cr&&b(S-Z.circle.cy)<cr;)F=Z.P,N.unshift(Z),ao(Z),Z=F;N.unshift(Z),Do(Z);for(var ie=Y;ie.circle&&b(w-ie.circle.x)<cr&&b(S-ie.circle.cy)<cr;)Y=ie.N,N.push(ie),ao(ie),ie=Y;N.push(ie),Do(ie);var oe=N.length,ge;for(ge=1;ge<oe;++ge)ie=N[ge],Z=N[ge-1],io(ie.edge,Z.site,ie.site,L);Z=N[0],ie=N[oe-1],ie.edge=uu(Z.site,ie.site,null,L),Lo(Z),Lo(ie)}function Ic(v){for(var g=v.x,w=v.y,S,L,F,Y,N=to._;N;)if(F=ts(N,w)-g,F>cr)N=N.L;else if(Y=g-Rv(N,w),Y>cr){if(!N.R){S=N;break}N=N.R}else{F>-cr?(S=N.P,L=N):Y>-cr?(S=N,L=N.N):S=L=N;break}var Z=es(v);if(to.insert(S,Z),!(!S&&!L)){if(S===L){Do(S),L=es(S.site),to.insert(Z,L),Z.edge=L.edge=uu(S.site,Z.site),Lo(S),Lo(L);return}if(!L){Z.edge=uu(S.site,Z.site);return}Do(S),Do(L);var ie=S.site,oe=ie.x,ge=ie.y,ye=v.x-oe,qe=v.y-ge,Ye=L.site,be=Ye.x-oe,Ce=Ye.y-ge,Le=2*(ye*Ce-qe*be),Ge=ye*ye+qe*qe,Ve=be*be+Ce*Ce,De={x:(Ce*Ge-qe*Ve)/Le+oe,y:(ye*Ve-be*Ge)/Le+ge};io(L.edge,ie,Ye,De),Z.edge=uu(ie,v,null,De),L.edge=uu(v,Ye,null,De),Lo(S),Lo(L)}}function ts(v,g){var w=v.site,S=w.x,L=w.y,F=L-g;if(!F)return S;var Y=v.P;if(!Y)return-1/0;w=Y.site;var N=w.x,Z=w.y,ie=Z-g;if(!ie)return N;var oe=N-S,ge=1/F-1/ie,ye=oe/ie;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(oe*oe/(-2*ie)-Z+ie/2+L-F/2)))/ge+S:(S+N)/2}function Rv(v,g){var w=v.N;if(w)return ts(w,g);var S=v.site;return S.y===g?S.x:1/0}function dl(v){this.site=v,this.edges=[]}dl.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(lu),v.length};function i0(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],L=v[1][1],F,Y,N,Z,ie=Eo,oe=ie.length,ge,ye,qe,Ye,be,Ce;oe--;)if(ge=ie[oe],!(!ge||!ge.prepare()))for(qe=ge.edges,Ye=qe.length,ye=0;ye<Ye;)Ce=qe[ye].end(),N=Ce.x,Z=Ce.y,be=qe[++ye%Ye].start(),F=be.x,Y=be.y,(b(N-F)>cr||b(Z-Y)>cr)&&(qe.splice(ye,0,new pl(Nv(ge.site,Ce,b(N-g)<cr&&L-Z>cr?{x:g,y:b(F-g)<cr?Y:L}:b(Z-L)<cr&&w-N>cr?{x:b(Y-L)<cr?F:w,y:L}:b(N-w)<cr&&Z-S>cr?{x:w,y:b(F-w)<cr?Y:S}:b(Z-S)<cr&&N-g>cr?{x:b(Y-S)<cr?F:g,y:S}:null),ge.site,null)),++Ye)}function lu(v,g){return g.angle-v.angle}function Hc(){gl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Lo(v){var g=v.P,w=v.N;if(!(!g||!w)){var S=g.site,L=v.site,F=w.site;if(S!==F){var Y=L.x,N=L.y,Z=S.x-Y,ie=S.y-N,oe=F.x-Y,Ce=F.y-N,ge=2*(Z*Ce-ie*oe);if(!(ge>=-Xr)){var ye=Z*Z+ie*ie,qe=oe*oe+Ce*Ce,Ye=(Ce*ye-ie*qe)/ge,be=(Z*qe-oe*ye)/ge,Ce=be+N,Le=n0.pop()||new Hc;Le.arc=v,Le.site=L,Le.x=Ye+Y,Le.y=Ce+Math.sqrt(Ye*Ye+be*be),Le.cy=Ce,v.circle=Le;for(var Ge=null,Ve=ou._;Ve;)if(Le.y<Ve.y||Le.y===Ve.y&&Le.x<=Ve.x)if(Ve.L)Ve=Ve.L;else{Ge=Ve.P;break}else if(Ve.R)Ve=Ve.R;else{Ge=Ve;break}ou.insert(Ge,Le),Ge||(Gs=Le)}}}}function Do(v){var g=v.circle;g&&(g.P||(Gs=g.N),ou.remove(g),n0.push(g),gl(g),v.circle=null)}function o0(v,g,w,S){return function(L){var F=L.a,Y=L.b,N=F.x,Z=F.y,ie=Y.x,oe=Y.y,ge=0,ye=1,qe=ie-N,Ye=oe-Z,be;if(be=v-N,!(!qe&&be>0)){if(be/=qe,qe<0){if(be<ge)return;be<ye&&(ye=be)}else if(qe>0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-N,!(!qe&&be<0)){if(be/=qe,qe<0){if(be>ye)return;be>ge&&(ge=be)}else if(qe>0){if(be<ge)return;be<ye&&(ye=be)}if(be=g-Z,!(!Ye&&be>0)){if(be/=Ye,Ye<0){if(be<ge)return;be<ye&&(ye=be)}else if(Ye>0){if(be>ye)return;be>ge&&(ge=be)}if(be=S-Z,!(!Ye&&be<0)){if(be/=Ye,Ye<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ye>0){if(be<ge)return;be<ye&&(ye=be)}return ge>0&&(L.a={x:N+ge*qe,y:Z+ge*Ye}),ye<1&&(L.b={x:N+ye*qe,y:Z+ye*Ye}),L}}}}}}function Ni(v){for(var g=So,w=o0(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,L;S--;)L=g[S],(!zv(L,v)||!w(L)||b(L.a.x-L.b.x)<cr&&b(L.a.y-L.b.y)<cr)&&(L.a=L.b=null,g.splice(S,1))}function zv(v,g){var w=v.b;if(w)return!0;var S=v.a,L=g[0][0],F=g[1][0],Y=g[0][1],N=g[1][1],Z=v.l,ie=v.r,oe=Z.x,ge=Z.y,ye=ie.x,qe=ie.y,Ye=(oe+ye)/2,be=(ge+qe)/2,Ce,Le;if(qe===ge){if(Ye<L||Ye>=F)return;if(oe>ye){if(!S)S={x:Ye,y:Y};else if(S.y>=N)return;w={x:Ye,y:N}}else{if(!S)S={x:Ye,y:N};else if(S.y<Y)return;w={x:Ye,y:Y}}}else if(Ce=(oe-ye)/(qe-ge),Le=be-Ce*Ye,Ce<-1||Ce>1)if(oe>ye){if(!S)S={x:(Y-Le)/Ce,y:Y};else if(S.y>=N)return;w={x:(N-Le)/Ce,y:N}}else{if(!S)S={x:(N-Le)/Ce,y:N};else if(S.y<Y)return;w={x:(Y-Le)/Ce,y:Y}}else if(ge<qe){if(!S)S={x:L,y:Ce*L+Le};else if(S.x>=F)return;w={x:F,y:Ce*F+Le}}else{if(!S)S={x:F,y:Ce*F+Le};else if(S.x<L)return;w={x:L,y:Ce*L+Le}}return v.a=S,v.b=w,!0}function no(v,g){this.l=v,this.r=g,this.a=this.b=null}function uu(v,g,w,S){var L=new no(v,g);return So.push(L),w&&io(L,v,g,w),S&&io(L,g,v,S),Eo[v.i].edges.push(new pl(L,v,g)),Eo[g.i].edges.push(new pl(L,g,v)),L}function Nv(v,g,w){var S=new no(v,null);return S.a=g,S.b=w,So.push(S),S}function io(v,g,w,S){!v.a&&!v.b?(v.a=S,v.l=g,v.r=w):v.l===w?v.b=S:v.a=S}function pl(v,g,w){var S=v.a,L=v.b;this.edge=v,this.site=g,this.angle=w?Math.atan2(w.y-g.y,w.x-g.x):v.l===g?Math.atan2(L.x-S.x,S.y-L.y):Math.atan2(S.x-L.x,L.y-S.y)}pl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function ml(){this._=null}function gl(v){v.U=v.C=v.L=v.R=v.P=v.N=null}ml.prototype={insert:function(v,g){var w,S,L;if(v){if(g.P=v,g.N=v.N,v.N&&(v.N.P=g),v.N=g,v.R){for(v=v.R;v.L;)v=v.L;v.L=g}else v.R=g;w=v}else this._?(v=Ys(this._),g.P=null,g.N=v,v.P=v.L=g,w=v):(g.P=g.N=null,this._=g,w=null);for(g.L=g.R=null,g.U=w,g.C=!0,v=g;w&&w.C;)S=w.U,w===S.L?(L=S.R,L&&L.C?(w.C=L.C=!1,S.C=!0,v=S):(v===w.R&&(Fo(this,w),v=w,w=v.U),w.C=!1,S.C=!0,as(this,S))):(L=S.L,L&&L.C?(w.C=L.C=!1,S.C=!0,v=S):(v===w.L&&(as(this,w),v=w,w=v.U),w.C=!1,S.C=!0,Fo(this,S))),w=v.U;this._.C=!1},remove:function(v){v.N&&(v.N.P=v.P),v.P&&(v.P.N=v.N),v.N=v.P=null;var g=v.U,w,S=v.L,L=v.R,F,Y;if(S?L?F=Ys(L):F=S:F=L,g?g.L===v?g.L=F:g.R=F:this._=F,S&&L?(Y=F.C,F.C=v.C,F.L=S,S.U=F,F!==L?(g=F.U,F.U=v.U,v=F.R,g.L=v,F.R=L,L.U=F):(F.U=g,g=F,v=F.R)):(Y=v.C,v=F),v&&(v.U=g),!Y){if(v&&v.C){v.C=!1;return}do{if(v===this._)break;if(v===g.L){if(w=g.R,w.C&&(w.C=!1,g.C=!0,Fo(this,g),w=g.R),w.L&&w.L.C||w.R&&w.R.C){(!w.R||!w.R.C)&&(w.L.C=!1,w.C=!0,as(this,w),w=g.R),w.C=g.C,g.C=w.R.C=!1,Fo(this,g),v=this._;break}}else if(w=g.L,w.C&&(w.C=!1,g.C=!0,as(this,g),w=g.L),w.L&&w.L.C||w.R&&w.R.C){(!w.L||!w.L.C)&&(w.R.C=!1,w.C=!0,Fo(this,w),w=g.L),w.C=g.C,g.C=w.L.C=!1,as(this,g),v=this._;break}w.C=!0,v=g,g=g.U}while(!v.C);v&&(v.C=!1)}}};function Fo(v,g){var w=g,S=g.R,L=w.U;L?L.L===w?L.L=S:L.R=S:v._=S,S.U=L,w.U=S,w.R=S.L,w.R&&(w.R.U=w),S.L=w}function as(v,g){var w=g,S=g.L,L=w.U;L?L.L===w?L.L=S:L.R=S:v._=S,S.U=L,w.U=S,w.L=S.R,w.L&&(w.L.U=w),S.R=w}function Ys(v){for(;v.L;)v=v.L;return v}function ns(v,g){var w=v.sort(is).pop(),S,L,F;for(So=[],Eo=new Array(v.length),to=new ml,ou=new ml;;)if(F=Gs,w&&(!F||w.y<F.y||w.y===F.y&&w.x<F.x))(w.x!==S||w.y!==L)&&(Eo[w.i]=new dl(w),Ic(w),S=w.x,L=w.y),w=v.pop();else if(F)rs(F.arc);else break;g&&(Ni(g),i0(g));var Y={cells:Eo,edges:So};return to=ou=So=Eo=null,Y}function is(v,g){return g.y-v.y||g.x-v.x}e.geom.voronoi=function(v){var g=iu,w=Ju,S=g,L=w,F=yl;if(v)return Y(v);function Y(Z){var ie=new Array(Z.length),oe=F[0][0],ge=F[0][1],ye=F[1][0],qe=F[1][1];return ns(N(Z),F).cells.forEach(function(Ye,be){var Ce=Ye.edges,Le=Ye.site,Ge=ie[be]=Ce.length?Ce.map(function(Ve){var De=Ve.start();return[De.x,De.y]}):Le.x>=oe&&Le.x<=ye&&Le.y>=ge&&Le.y<=qe?[[oe,qe],[ye,qe],[ye,ge],[oe,ge]]:[];Ge.point=Z[be]}),ie}function N(Z){return Z.map(function(ie,oe){return{x:Math.round(S(ie,oe)/cr)*cr,y:Math.round(L(ie,oe)/cr)*cr,i:oe}})}return Y.links=function(Z){return ns(N(Z)).edges.filter(function(ie){return ie.l&&ie.r}).map(function(ie){return{source:Z[ie.l.i],target:Z[ie.r.i]}})},Y.triangles=function(Z){var ie=[];return ns(N(Z)).cells.forEach(function(oe,ge){for(var ye=oe.site,qe=oe.edges.sort(lu),Ye=-1,be=qe.length,Ce,Le,Ge=qe[be-1].edge,Ve=Ge.l===ye?Ge.r:Ge.l;++Ye<be;)Ce=Ge,Le=Ve,Ge=qe[Ye].edge,Ve=Ge.l===ye?Ge.r:Ge.l,ge<Le.i&&ge<Ve.i&&su(ye,Le,Ve)<0&&ie.push([Z[ge],Z[Le.i],Z[Ve.i]])}),ie},Y.x=function(Z){return arguments.length?(S=lt(g=Z),Y):g},Y.y=function(Z){return arguments.length?(L=lt(w=Z),Y):w},Y.clipExtent=function(Z){return arguments.length?(F=Z==null?yl:Z,Y):F===yl?null:F},Y.size=function(Z){return arguments.length?Y.clipExtent(Z&&[[0,0],Z]):F===yl?null:F&&F[1]},Y};var yl=[[-1e6,-1e6],[1e6,1e6]];function su(v,g,w){return(v.x-w.x)*(g.y-v.y)-(v.x-g.x)*(w.y-v.y)}e.geom.delaunay=function(v){return e.geom.voronoi().triangles(v)},e.geom.quadtree=function(v,g,w,S,L){var F=iu,Y=Ju,N;if(N=arguments.length)return F=fu,Y=Vs,N===3&&(L=w,S=g,w=g=0),Z(v);function Z(ie){var oe,ge=lt(F),ye=lt(Y),qe,Ye,be,Ce,Le,Ge,Ve,De;if(g!=null)Le=g,Ge=w,Ve=S,De=L;else if(Ve=De=-(Le=Ge=1/0),qe=[],Ye=[],Ce=ie.length,N)for(be=0;be<Ce;++be)oe=ie[be],oe.x<Le&&(Le=oe.x),oe.y<Ge&&(Ge=oe.y),oe.x>Ve&&(Ve=oe.x),oe.y>De&&(De=oe.y),qe.push(oe.x),Ye.push(oe.y);else for(be=0;be<Ce;++be){var wr=+ge(oe=ie[be],be),Gr=+ye(oe,be);wr<Le&&(Le=wr),Gr<Ge&&(Ge=Gr),wr>Ve&&(Ve=wr),Gr>De&&(De=Gr),qe.push(wr),Ye.push(Gr)}var jr=Ve-Le,Vr=De-Ge;jr>Vr?De=Ge+jr:Ve=Le+Vr;function rt(nt,yt,Qt,an,fa,Br,Tt,kt){if(!(isNaN(Qt)||isNaN(an)))if(nt.leaf){var ea=nt.x,Xa=nt.y;if(ea!=null)if(b(ea-Qt)+b(Xa-an)<.01)tt(nt,yt,Qt,an,fa,Br,Tt,kt);else{var bn=nt.point;nt.x=nt.y=nt.point=null,tt(nt,bn,ea,Xa,fa,Br,Tt,kt),tt(nt,yt,Qt,an,fa,Br,Tt,kt)}else nt.x=Qt,nt.y=an,nt.point=yt}else tt(nt,yt,Qt,an,fa,Br,Tt,kt)}function tt(nt,yt,Qt,an,fa,Br,Tt,kt){var ea=(fa+Tt)*.5,Xa=(Br+kt)*.5,bn=Qt>=ea,Vn=an>=Xa,fi=Vn<<1|bn;nt.leaf=!1,nt=nt.nodes[fi]||(nt.nodes[fi]=Xs()),bn?fa=ea:Tt=ea,Vn?Br=Xa:kt=Xa,rt(nt,yt,Qt,an,fa,Br,Tt,kt)}var At=Xs();if(At.add=function(nt){rt(At,nt,+ge(nt,++be),+ye(nt,be),Le,Ge,Ve,De)},At.visit=function(nt){Ai(nt,At,Le,Ge,Ve,De)},At.find=function(nt){return Ws(At,nt[0],nt[1],Le,Ge,Ve,De)},be=-1,g==null){for(;++be<Ce;)rt(At,ie[be],qe[be],Ye[be],Le,Ge,Ve,De);--be}else ie.forEach(At.add);return qe=Ye=ie=oe=null,At}return Z.x=function(ie){return arguments.length?(F=ie,Z):F},Z.y=function(ie){return arguments.length?(Y=ie,Z):Y},Z.extent=function(ie){return arguments.length?(ie==null?g=w=S=L=null:(g=+ie[0][0],w=+ie[0][1],S=+ie[1][0],L=+ie[1][1]),Z):g==null?null:[[g,w],[S,L]]},Z.size=function(ie){return arguments.length?(ie==null?g=w=S=L=null:(g=w=0,S=+ie[0],L=+ie[1]),Z):g==null?null:[S-g,L-w]},Z};function fu(v){return v.x}function Vs(v){return v.y}function Xs(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Ai(v,g,w,S,L,F){if(!v(g,w,S,L,F)){var Y=(w+L)*.5,N=(S+F)*.5,Z=g.nodes;Z[0]&&Ai(v,Z[0],w,S,Y,N),Z[1]&&Ai(v,Z[1],Y,S,L,N),Z[2]&&Ai(v,Z[2],w,N,Y,F),Z[3]&&Ai(v,Z[3],Y,N,L,F)}}function Ws(v,g,w,S,L,F,Y){var N=1/0,Z;return(function ie(oe,ge,ye,qe,Ye){if(!(ge>F||ye>Y||qe<S||Ye<L)){if(be=oe.point){var be,Ce=g-oe.x,Le=w-oe.y,Ge=Ce*Ce+Le*Le;if(Ge<N){var Ve=Math.sqrt(N=Ge);S=g-Ve,L=w-Ve,F=g+Ve,Y=w+Ve,Z=be}}for(var De=oe.nodes,wr=(ge+qe)*.5,Gr=(ye+Ye)*.5,jr=g>=wr,Vr=w>=Gr,rt=Vr<<1|jr,tt=rt+4;rt<tt;++rt)if(oe=De[rt&3])switch(rt&3){case 0:ie(oe,ge,ye,wr,Gr);break;case 1:ie(oe,wr,ye,qe,Gr);break;case 2:ie(oe,ge,Gr,wr,Ye);break;case 3:ie(oe,wr,Gr,qe,Ye);break}}})(v,S,L,F,Y),Z}e.interpolateRgb=js;function js(v,g){v=e.rgb(v),g=e.rgb(g);var w=v.r,S=v.g,L=v.b,F=g.r-w,Y=g.g-S,N=g.b-L;return function(Z){return"#"+Mi(Math.round(w+F*Z))+Mi(Math.round(S+Y*Z))+Mi(Math.round(L+N*Z))}}e.interpolateObject=$n;function $n(v,g){var w={},S={},L;for(L in v)L in g?w[L]=bl(v[L],g[L]):S[L]=v[L];for(L in g)L in v||(S[L]=g[L]);return function(F){for(L in w)S[L]=w[L](F);return S}}e.interpolateNumber=hn;function hn(v,g){return v=+v,g=+g,function(w){return v*(1-w)+g*w}}e.interpolateString=Nn;function Nn(v,g){var w=oo.lastIndex=os.lastIndex=0,S,L,F,Y=-1,N=[],Z=[];for(v=v+"",g=g+"";(S=oo.exec(v))&&(L=os.exec(g));)(F=L.index)>w&&(F=g.slice(w,F),N[Y]?N[Y]+=F:N[++Y]=F),(S=S[0])===(L=L[0])?N[Y]?N[Y]+=L:N[++Y]=L:(N[++Y]=null,Z.push({i:Y,x:hn(S,L)})),w=os.lastIndex;return w<g.length&&(F=g.slice(w),N[Y]?N[Y]+=F:N[++Y]=F),N.length<2?Z[0]?(g=Z[0].x,function(ie){return g(ie)+""}):function(){return g}:(g=Z.length,function(ie){for(var oe=0,ge;oe<g;++oe)N[(ge=Z[oe]).i]=ge.x(ie);return N.join("")})}var oo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,os=new RegExp(oo.source,"g");e.interpolate=bl;function bl(v,g){for(var w=e.interpolators.length,S;--w>=0&&!(S=e.interpolators[w](v,g)););return S}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?it.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?js:Nn:g instanceof Rt?js:Array.isArray(g)?cu:w==="object"&&isNaN(g)?$n:hn)(v,g)}],e.interpolateArray=cu;function cu(v,g){var w=[],S=[],L=v.length,F=g.length,Y=Math.min(v.length,g.length),N;for(N=0;N<Y;++N)w.push(bl(v[N],g[N]));for(;N<L;++N)S[N]=v[N];for(;N<F;++N)S[N]=g[N];return function(Z){for(N=0;N<Y;++N)S[N]=w[N](Z);return S}}var l0=function(){return I},Oc=e.map({linear:l0,poly:Gc,quad:function(){return f0},cubic:function(){return c0},sin:function(){return ls},exp:function(){return us},circle:function(){return Bi},elastic:Zs,back:ss,bounce:function(){return Js}}),Bv=e.map({in:I,out:u0,"in-out":s0,"out-in":function(v){return s0(u0(v))}});e.ease=function(v){var g=v.indexOf("-"),w=g>=0?v.slice(0,g):v,S=g>=0?v.slice(g+1):"in";return w=Oc.get(w)||l0,S=Bv.get(S)||I,Iv(S(w.apply(null,r.call(arguments,1))))};function Iv(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function u0(v){return function(g){return 1-v(1-g)}}function s0(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function f0(v){return v*v}function c0(v){return v*v*v}function Uc(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function Gc(v){return function(g){return Math.pow(g,v)}}function ls(v){return 1-Math.cos(v*Me)}function us(v){return Math.pow(2,10*(v-1))}function Bi(v){return 1-Math.sqrt(1-v*v)}function Zs(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Fr*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*Fr/g)}}function ss(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function Js(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=Yc;function Yc(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,L=v.l,F=g.h-w,Y=g.c-S,N=g.l-L;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.c:S),isNaN(F)?(F=0,w=isNaN(w)?g.h:w):F>180?F-=360:F<-180&&(F+=360),function(Z){return gn(w+F*Z,S+Y*Z,L+N*Z)+""}}e.interpolateHsl=v0;function v0(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,L=v.l,F=g.h-w,Y=g.s-S,N=g.l-L;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.s:S),isNaN(F)?(F=0,w=isNaN(w)?g.h:w):F>180?F-=360:F<-180&&(F+=360),function(Z){return ba(w+F*Z,S+Y*Z,L+N*Z)+""}}e.interpolateLab=Hv;function Hv(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,L=v.b,F=g.l-w,Y=g.a-S,N=g.b-L;return function(Z){return Xu(w+F*Z,S+Y*Z,L+N*Z)+""}}e.interpolateRound=qo;function qo(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new $s(S?S.matrix:h0)})(v)};function $s(v){var g=[v.a,v.b],w=[v.c,v.d],S=fs(g),L=vu(g,w),F=fs(cs(w,g,-L))||0;g[0]*w[1]<w[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-w[0],w[1]))*ur,this.translate=[v.e,v.f],this.scale=[S,F],this.skew=F?Math.atan2(L,F)*ur:0}$s.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function vu(v,g){return v[0]*g[0]+v[1]*g[1]}function fs(v){var g=Math.sqrt(vu(v,v));return g&&(v[0]/=g,v[1]/=g),g}function cs(v,g,w){return v[0]+=w*g[0],v[1]+=w*g[1],v}var h0={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=Ks;function Po(v){return v.length?v.pop()+",":""}function Vc(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var L=w.push("translate(",null,",",null,")");S.push({i:L-4,x:hn(v[0],g[0])},{i:L-2,x:hn(v[1],g[1])})}else(g[0]||g[1])&&w.push("translate("+g+")")}function d0(v,g,w,S){v!==g?(v-g>180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(Po(w)+"rotate(",null,")")-2,x:hn(v,g)})):g&&w.push(Po(w)+"rotate("+g+")")}function Xc(v,g,w,S){v!==g?S.push({i:w.push(Po(w)+"skewX(",null,")")-2,x:hn(v,g)}):g&&w.push(Po(w)+"skewX("+g+")")}function p0(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var L=w.push(Po(w)+"scale(",null,",",null,")");S.push({i:L-4,x:hn(v[0],g[0])},{i:L-2,x:hn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Po(w)+"scale("+g+")")}function Ks(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),Vc(v.translate,g.translate,w,S),d0(v.rotate,g.rotate,w,S),Xc(v.skew,g.skew,w,S),p0(v.scale,g.scale,w,S),v=g=null,function(L){for(var F=-1,Y=S.length,N;++F<Y;)w[(N=S[F]).i]=N.x(L);return w.join("")}}function m0(v,g){return g=(g-=v=+v)||1/g,function(w){return(w-v)/g}}function g0(v,g){return g=(g-=v=+v)||1/g,function(w){return Math.max(0,Math.min(1,(w-v)/g))}}e.layout={},e.layout.bundle=function(){return function(v){for(var g=[],w=-1,S=v.length;++w<S;)g.push(Ov(v[w]));return g}};function Ov(v){for(var g=v.source,w=v.target,S=Ii(g,w),L=[g];g!==S;)g=g.parent,L.push(g);for(var F=L.length;w!==S;)L.splice(F,0,w),w=w.parent;return L}function y0(v){for(var g=[],w=v.parent;w!=null;)g.push(v),v=w,w=w.parent;return g.push(v),g}function Ii(v,g){if(v===g)return v;for(var w=y0(v),S=y0(g),L=w.pop(),F=S.pop(),Y=null;L===F;)Y=L,L=w.pop(),F=S.pop();return Y}e.layout.chord=function(){var v={},g,w,S,L,F=0,Y,N,Z;function ie(){var ge={},ye=[],qe=e.range(L),Ye=[],be,Ce,Le,Ge,Ve;for(g=[],w=[],be=0,Ge=-1;++Ge<L;){for(Ce=0,Ve=-1;++Ve<L;)Ce+=S[Ge][Ve];ye.push(Ce),Ye.push(e.range(L)),be+=Ce}for(Y&&qe.sort(function(At,nt){return Y(ye[At],ye[nt])}),N&&Ye.forEach(function(At,nt){At.sort(function(yt,Qt){return N(S[nt][yt],S[nt][Qt])})}),be=(Fr-F*L)/be,Ce=0,Ge=-1;++Ge<L;){for(Le=Ce,Ve=-1;++Ve<L;){var De=qe[Ge],wr=Ye[De][Ve],Gr=S[De][wr],jr=Ce,Vr=Ce+=Gr*be;ge[De+"-"+wr]={index:De,subindex:wr,startAngle:jr,endAngle:Vr,value:Gr}}w[De]={index:De,startAngle:Le,endAngle:Ce,value:ye[De]},Ce+=F}for(Ge=-1;++Ge<L;)for(Ve=Ge-1;++Ve<L;){var rt=ge[Ge+"-"+Ve],tt=ge[Ve+"-"+Ge];(rt.value||tt.value)&&g.push(rt.value<tt.value?{source:tt,target:rt}:{source:rt,target:tt})}Z&&oe()}function oe(){g.sort(function(ge,ye){return Z((ge.source.value+ge.target.value)/2,(ye.source.value+ye.target.value)/2)})}return v.matrix=function(ge){return arguments.length?(L=(S=ge)&&S.length,g=w=null,v):S},v.padding=function(ge){return arguments.length?(F=ge,g=w=null,v):F},v.sortGroups=function(ge){return arguments.length?(Y=ge,g=w=null,v):Y},v.sortSubgroups=function(ge){return arguments.length?(N=ge,g=null,v):N},v.sortChords=function(ge){return arguments.length?(Z=ge,g&&oe(),v):Z},v.chords=function(){return g||ie(),g},v.groups=function(){return w||ie(),w},v},e.layout.force=function(){var v={},g=e.dispatch("start","tick","end"),w,S=[1,1],L,F,Y=.9,N=jc,Z=Uv,ie=-30,oe=Gv,ge=.1,ye=.64,qe=[],Ye=[],be,Ce,Le;function Ge(De){return function(wr,Gr,jr,Vr){if(wr.point!==De){var rt=wr.cx-De.x,tt=wr.cy-De.y,At=Vr-Gr,nt=rt*rt+tt*tt;if(At*At/ye<nt){if(nt<oe){var yt=wr.charge/nt;De.px-=rt*yt,De.py-=tt*yt}return!0}if(wr.point&&nt&&nt<oe){var yt=wr.pointCharge/nt;De.px-=rt*yt,De.py-=tt*yt}}return!wr.charge}}v.tick=function(){if((F*=.99)<.005)return w=null,g.end({type:"end",alpha:F=0}),!0;var De=qe.length,wr=Ye.length,Gr,jr,Vr,rt,tt,At,nt,yt,Qt;for(jr=0;jr<wr;++jr)Vr=Ye[jr],rt=Vr.source,tt=Vr.target,yt=tt.x-rt.x,Qt=tt.y-rt.y,(At=yt*yt+Qt*Qt)&&(At=F*Ce[jr]*((At=Math.sqrt(At))-be[jr])/At,yt*=At,Qt*=At,tt.x-=yt*(nt=rt.weight+tt.weight?rt.weight/(rt.weight+tt.weight):.5),tt.y-=Qt*nt,rt.x+=yt*(nt=1-nt),rt.y+=Qt*nt);if((nt=F*ge)&&(yt=S[0]/2,Qt=S[1]/2,jr=-1,nt))for(;++jr<De;)Vr=qe[jr],Vr.x+=(yt-Vr.x)*nt,Vr.y+=(Qt-Vr.y)*nt;if(ie)for(_l(Gr=e.geom.quadtree(qe),F,Le),jr=-1;++jr<De;)(Vr=qe[jr]).fixed||Gr.visit(Ge(Vr));for(jr=-1;++jr<De;)Vr=qe[jr],Vr.fixed?(Vr.x=Vr.px,Vr.y=Vr.py):(Vr.x-=(Vr.px-(Vr.px=Vr.x))*Y,Vr.y-=(Vr.py-(Vr.py=Vr.y))*Y);g.tick({type:"tick",alpha:F})},v.nodes=function(De){return arguments.length?(qe=De,v):qe},v.links=function(De){return arguments.length?(Ye=De,v):Ye},v.size=function(De){return arguments.length?(S=De,v):S},v.linkDistance=function(De){return arguments.length?(N=typeof De=="function"?De:+De,v):N},v.distance=v.linkDistance,v.linkStrength=function(De){return arguments.length?(Z=typeof De=="function"?De:+De,v):Z},v.friction=function(De){return arguments.length?(Y=+De,v):Y},v.charge=function(De){return arguments.length?(ie=typeof De=="function"?De:+De,v):ie},v.chargeDistance=function(De){return arguments.length?(oe=De*De,v):Math.sqrt(oe)},v.gravity=function(De){return arguments.length?(ge=+De,v):ge},v.theta=function(De){return arguments.length?(ye=De*De,v):Math.sqrt(ye)},v.alpha=function(De){return arguments.length?(De=+De,F?De>0?F=De:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:F=0})):De>0&&(g.start({type:"start",alpha:F=De}),w=nu(v.tick)),v):F},v.start=function(){var De,wr=qe.length,Gr=Ye.length,jr=S[0],Vr=S[1],rt,tt;for(De=0;De<wr;++De)(tt=qe[De]).index=De,tt.weight=0;for(De=0;De<Gr;++De)tt=Ye[De],typeof tt.source=="number"&&(tt.source=qe[tt.source]),typeof tt.target=="number"&&(tt.target=qe[tt.target]),++tt.source.weight,++tt.target.weight;for(De=0;De<wr;++De)tt=qe[De],isNaN(tt.x)&&(tt.x=At("x",jr)),isNaN(tt.y)&&(tt.y=At("y",Vr)),isNaN(tt.px)&&(tt.px=tt.x),isNaN(tt.py)&&(tt.py=tt.y);if(be=[],typeof N=="function")for(De=0;De<Gr;++De)be[De]=+N.call(this,Ye[De],De);else for(De=0;De<Gr;++De)be[De]=N;if(Ce=[],typeof Z=="function")for(De=0;De<Gr;++De)Ce[De]=+Z.call(this,Ye[De],De);else for(De=0;De<Gr;++De)Ce[De]=Z;if(Le=[],typeof ie=="function")for(De=0;De<wr;++De)Le[De]=+ie.call(this,qe[De],De);else for(De=0;De<wr;++De)Le[De]=ie;function At(nt,yt){if(!rt){for(rt=new Array(wr),fa=0;fa<wr;++fa)rt[fa]=[];for(fa=0;fa<Gr;++fa){var Qt=Ye[fa];rt[Qt.source.index].push(Qt.target),rt[Qt.target.index].push(Qt.source)}}for(var an=rt[De],fa=-1,Br=an.length,Tt;++fa<Br;)if(!isNaN(Tt=an[fa][nt]))return Tt;return Math.random()*yt}return v.resume()},v.resume=function(){return v.alpha(.1)},v.stop=function(){return v.alpha(0)},v.drag=function(){if(L||(L=e.behavior.drag().origin(I).on("dragstart.force",b0).on("drag.force",Ve).on("dragend.force",hu)),!arguments.length)return L;this.on("mouseover.force",_0).on("mouseout.force",Wc).call(L)};function Ve(De){De.px=e.event.x,De.py=e.event.y,v.resume()}return e.rebind(v,g,"on")};function b0(v){v.fixed|=2}function hu(v){v.fixed&=-7}function _0(v){v.fixed|=4,v.px=v.x,v.py=v.y}function Wc(v){v.fixed&=-5}function _l(v,g,w){var S=0,L=0;if(v.charge=0,!v.leaf)for(var F=v.nodes,Y=F.length,N=-1,Z;++N<Y;)Z=F[N],Z!=null&&(_l(Z,g,w),v.charge+=Z.charge,S+=Z.charge*Z.cx,L+=Z.charge*Z.cy);if(v.point){v.leaf||(v.point.x+=Math.random()-.5,v.point.y+=Math.random()-.5);var ie=g*w[v.point.index];v.charge+=v.pointCharge=ie,S+=ie*v.point.x,L+=ie*v.point.y}v.cx=S/v.charge,v.cy=L/v.charge}var jc=20,Uv=1,Gv=1/0;e.layout.hierarchy=function(){var v=Zc,g=Yv,w=du;function S(L){var F=[L],Y=[],N;for(L.depth=0;(N=F.pop())!=null;)if(Y.push(N),(ie=g.call(S,N,N.depth))&&(Z=ie.length)){for(var Z,ie,oe;--Z>=0;)F.push(oe=ie[Z]),oe.parent=N,oe.depth=N.depth+1;w&&(N.value=0),N.children=ie}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return Kn(L,function(ge){var ye,qe;v&&(ye=ge.children)&&ye.sort(v),w&&(qe=ge.parent)&&(qe.value+=ge.value)}),Y}return S.sort=function(L){return arguments.length?(v=L,S):v},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(w=L,S):w},S.revalue=function(L){return w&&(Hi(L,function(F){F.children&&(F.value=0)}),Kn(L,function(F){var Y;F.children||(F.value=+w.call(S,F,F.depth)||0),(Y=F.parent)&&(Y.value+=F.value)})),L},S};function lo(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=ui,v}function Hi(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(L=v.children)&&(S=L.length))for(var S,L;--S>=0;)w.push(L[S])}function Kn(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(Y=v.children)&&(F=Y.length))for(var L=-1,F,Y;++L<F;)w.push(Y[L]);for(;(v=S.pop())!=null;)g(v)}function Yv(v){return v.children}function du(v){return v.value}function Zc(v,g){return g.value-v.value}function ui(v){return e.merge(v.map(function(g){return(g.children||[]).map(function(w){return{source:g,target:w}})}))}e.layout.partition=function(){var v=e.layout.hierarchy(),g=[1,1];function w(F,Y,N,Z){var ie=F.children;if(F.x=Y,F.y=F.depth*Z,F.dx=N,F.dy=Z,ie&&(ge=ie.length)){var oe=-1,ge,ye,qe;for(N=F.value?N/F.value:0;++oe<ge;)w(ye=ie[oe],Y,qe=ye.value*N,Z),Y+=qe}}function S(F){var Y=F.children,N=0;if(Y&&(ie=Y.length))for(var Z=-1,ie;++Z<ie;)N=Math.max(N,S(Y[Z]));return 1+N}function L(F,Y){var N=v.call(this,F,Y);return w(N[0],0,g[0],g[1]/S(N[0])),N}return L.size=function(F){return arguments.length?(g=F,L):g},lo(L,v)},e.layout.pie=function(){var v=Number,g=Jc,w=0,S=Fr,L=0;function F(Y){var N=Y.length,Z=Y.map(function(Ge,Ve){return+v.call(F,Ge,Ve)}),ie=+(typeof w=="function"?w.apply(this,arguments):w),oe=(typeof S=="function"?S.apply(this,arguments):S)-ie,ge=Math.min(Math.abs(oe)/N,+(typeof L=="function"?L.apply(this,arguments):L)),ye=ge*(oe<0?-1:1),qe=e.sum(Z),Ye=qe?(oe-N*ye)/qe:0,be=e.range(N),Ce=[],Le;return g!=null&&be.sort(g===Jc?function(Ge,Ve){return Z[Ve]-Z[Ge]}:function(Ge,Ve){return g(Y[Ge],Y[Ve])}),be.forEach(function(Ge){Ce[Ge]={data:Y[Ge],value:Le=Z[Ge],startAngle:ie,endAngle:ie+=Le*Ye+ye,padAngle:ge}}),Ce}return F.value=function(Y){return arguments.length?(v=Y,F):v},F.sort=function(Y){return arguments.length?(g=Y,F):g},F.startAngle=function(Y){return arguments.length?(w=Y,F):w},F.endAngle=function(Y){return arguments.length?(S=Y,F):S},F.padAngle=function(Y){return arguments.length?(L=Y,F):L},F};var Jc={};e.layout.stack=function(){var v=I,g=ef,w=ds,S=Kc,L=$c,F=vs;function Y(N,Z){if(!(Ye=N.length))return N;var ie=N.map(function(Ge,Ve){return v.call(Y,Ge,Ve)}),oe=ie.map(function(Ge){return Ge.map(function(Ve,De){return[L.call(Y,Ve,De),F.call(Y,Ve,De)]})}),ge=g.call(Y,oe,Z);ie=e.permute(ie,ge),oe=e.permute(oe,ge);var ye=w.call(Y,oe,Z),qe=ie[0].length,Ye,be,Ce,Le;for(Ce=0;Ce<qe;++Ce)for(S.call(Y,ie[0][Ce],Le=ye[Ce],oe[0][Ce][1]),be=1;be<Ye;++be)S.call(Y,ie[be][Ce],Le+=oe[be-1][Ce][1],oe[be][Ce][1]);return N}return Y.values=function(N){return arguments.length?(v=N,Y):v},Y.order=function(N){return arguments.length?(g=typeof N=="function"?N:Qs.get(N)||ef,Y):g},Y.offset=function(N){return arguments.length?(w=typeof N=="function"?N:hs.get(N)||ds,Y):w},Y.x=function(N){return arguments.length?(L=N,Y):L},Y.y=function(N){return arguments.length?(F=N,Y):F},Y.out=function(N){return arguments.length?(S=N,Y):S},Y};function $c(v){return v.x}function vs(v){return v.y}function Kc(v,g,w){v.y0=g,v.y=w}var Qs=e.map({"inside-out":function(v){var g=v.length,w,S,L=v.map(Vv),F=v.map(ps),Y=e.range(g).sort(function(ge,ye){return L[ge]-L[ye]}),N=0,Z=0,ie=[],oe=[];for(w=0;w<g;++w)S=Y[w],N<Z?(N+=F[S],ie.push(S)):(Z+=F[S],oe.push(S));return oe.reverse().concat(ie)},reverse:function(v){return e.range(v.length).reverse()},default:ef}),hs=e.map({silhouette:function(v){var g=v.length,w=v[0].length,S=[],L=0,F,Y,N,Z=[];for(Y=0;Y<w;++Y){for(F=0,N=0;F<g;F++)N+=v[F][Y][1];N>L&&(L=N),S.push(N)}for(Y=0;Y<w;++Y)Z[Y]=(L-S[Y])/2;return Z},wiggle:function(v){var g=v.length,w=v[0],S=w.length,L,F,Y,N,Z,ie,oe,ge,ye,qe=[];for(qe[0]=ge=ye=0,F=1;F<S;++F){for(L=0,N=0;L<g;++L)N+=v[L][F][1];for(L=0,Z=0,oe=w[F][0]-w[F-1][0];L<g;++L){for(Y=0,ie=(v[L][F][1]-v[L][F-1][1])/(2*oe);Y<L;++Y)ie+=(v[Y][F][1]-v[Y][F-1][1])/oe;Z+=ie*v[L][F][1]}qe[F]=ge-=N?Z/N*oe:0,ge<ye&&(ye=ge)}for(F=0;F<S;++F)qe[F]-=ye;return qe},expand:function(v){var g=v.length,w=v[0].length,S=1/g,L,F,Y,N=[];for(F=0;F<w;++F){for(L=0,Y=0;L<g;L++)Y+=v[L][F][1];if(Y)for(L=0;L<g;L++)v[L][F][1]/=Y;else for(L=0;L<g;L++)v[L][F][1]=S}for(F=0;F<w;++F)N[F]=0;return N},zero:ds});function ef(v){return e.range(v.length)}function ds(v){for(var g=-1,w=v[0].length,S=[];++g<w;)S[g]=0;return S}function Vv(v){for(var g=1,w=0,S=v[0][1],L,F=v.length;g<F;++g)(L=v[g][1])>S&&(w=g,S=L);return w}function ps(v){return v.reduce(xl,0)}function xl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=pu,S=ms;function L(F,ye){for(var N=[],Z=F.map(g,this),ie=w.call(this,Z,ye),oe=S.call(this,ie,Z,ye),ge,ye=-1,qe=Z.length,Ye=oe.length-1,be=v?1:1/qe,Ce;++ye<Ye;)ge=N[ye]=[],ge.dx=oe[ye+1]-(ge.x=oe[ye]),ge.y=0;if(Ye>0)for(ye=-1;++ye<qe;)Ce=Z[ye],Ce>=ie[0]&&Ce<=ie[1]&&(ge=N[e.bisect(oe,Ce,1,Ye)-1],ge.y+=be,ge.push(F[ye]));return N}return L.value=function(F){return arguments.length?(g=F,L):g},L.range=function(F){return arguments.length?(w=lt(F),L):w},L.bins=function(F){return arguments.length?(S=typeof F=="number"?function(Y){return wl(Y,F)}:lt(F),L):S},L.frequency=function(F){return arguments.length?(v=!!F,L):v},L};function ms(v,g){return wl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function wl(v,g){for(var w=-1,S=+v[0],L=(v[1]-S)/g,F=[];++w<=g;)F[w]=L*w+S;return F}function pu(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(rf),g=0,w=[1,1],S;function L(F,Y){var N=v.call(this,F,Y),Z=N[0],ie=w[0],oe=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,Kn(Z,function(qe){qe.r=+ge(qe.value)}),Kn(Z,e1),g){var ye=g*(S?1:Math.max(2*Z.r/ie,2*Z.r/oe))/2;Kn(Z,function(qe){qe.r+=ye}),Kn(Z,e1),Kn(Z,function(qe){qe.r-=ye})}return af(Z,ie/2,oe/2,S?1:1/Math.max(2*Z.r/ie,2*Z.r/oe)),N}return L.size=function(F){return arguments.length?(w=F,L):w},L.radius=function(F){return arguments.length?(S=F==null||typeof F=="function"?F:+F,L):S},L.padding=function(F){return arguments.length?(g=+F,L):g},lo(L,v)};function rf(v,g){return v.value-g.value}function gs(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function Qc(v,g){v._pack_next=g,g._pack_prev=v}function tf(v,g){var w=g.x-v.x,S=g.y-v.y,L=v.r+g.r;return .999*L*L>w*w+S*S}function e1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,L=1/0,F=-1/0,Y,N,Z,ie,oe,ge,ye;function qe(De){w=Math.min(De.x-De.r,w),S=Math.max(De.x+De.r,S),L=Math.min(De.y-De.r,L),F=Math.max(De.y+De.r,F)}if(g.forEach(r1),Y=g[0],Y.x=-Y.r,Y.y=0,qe(Y),ye>1&&(N=g[1],N.x=N.r,N.y=0,qe(N),ye>2))for(Z=g[2],tn(Y,N,Z),qe(Z),gs(Y,Z),Y._pack_prev=Z,gs(Z,N),N=Y._pack_next,ie=3;ie<ye;ie++){tn(Y,N,Z=g[ie]);var Ye=0,be=1,Ce=1;for(oe=N._pack_next;oe!==N;oe=oe._pack_next,be++)if(tf(oe,Z)){Ye=1;break}if(Ye==1)for(ge=Y._pack_prev;ge!==oe._pack_prev&&!tf(ge,Z);ge=ge._pack_prev,Ce++);Ye?(be<Ce||be==Ce&&N.r<Y.r?Qc(Y,N=oe):Qc(Y=ge,N),ie--):(gs(Y,Z),N=Z,qe(Z))}var Le=(w+S)/2,Ge=(L+F)/2,Ve=0;for(ie=0;ie<ye;ie++)Z=g[ie],Z.x-=Le,Z.y-=Ge,Ve=Math.max(Ve,Z.r+Math.sqrt(Z.x*Z.x+Z.y*Z.y));v.r=Ve,g.forEach(x0)}function r1(v){v._pack_next=v._pack_prev=v}function x0(v){delete v._pack_next,delete v._pack_prev}function af(v,g,w,S){var L=v.children;if(v.x=g+=S*v.x,v.y=w+=S*v.y,v.r*=S,L)for(var F=-1,Y=L.length;++F<Y;)af(L[F],g,w,S)}function tn(v,g,w){var S=v.r+w.r,L=g.x-v.x,F=g.y-v.y;if(S&&(L||F)){var Y=g.r+w.r,N=L*L+F*F;Y*=Y,S*=S;var Z=.5+(S-Y)/(2*N),ie=Math.sqrt(Math.max(0,2*Y*(S+N)-(S-=N)*S-Y*Y))/(2*N);w.x=v.x+Z*L+ie*F,w.y=v.y+Z*F-ie*L}else w.x=v.x+S,w.y=v.y}e.layout.tree=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ti,w=[1,1],S=null;function L(oe,ge){var ye=v.call(this,oe,ge),qe=ye[0],Ye=F(qe);if(Kn(Ye,Y),Ye.parent.m=-Ye.z,Hi(Ye,N),S)Hi(qe,ie);else{var be=qe,Ce=qe,Le=qe;Hi(qe,function(wr){wr.x<be.x&&(be=wr),wr.x>Ce.x&&(Ce=wr),wr.depth>Le.depth&&(Le=wr)});var Ge=g(be,Ce)/2-be.x,Ve=w[0]/(Ce.x+g(Ce,be)/2+Ge),De=w[1]/(Le.depth||1);Hi(qe,function(wr){wr.x=(wr.x+Ge)*Ve,wr.y=wr.depth*De})}return ye}function F(oe){for(var ge={A:null,children:[oe]},ye=[ge],qe;(qe=ye.pop())!=null;)for(var Ye=qe.children,be,Ce=0,Le=Ye.length;Ce<Le;++Ce)ye.push((Ye[Ce]=be={_:Ye[Ce],parent:qe,children:(be=Ye[Ce].children)&&be.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ce}).a=be);return ge.children[0]}function Y(oe){var ge=oe.children,ye=oe.parent.children,qe=oe.i?ye[oe.i-1]:null;if(ge.length){w0(oe);var Ye=(ge[0].z+ge[ge.length-1].z)/2;qe?(oe.z=qe.z+g(oe._,qe._),oe.m=oe.z-Ye):oe.z=Ye}else qe&&(oe.z=qe.z+g(oe._,qe._));oe.parent.A=Z(oe,qe,oe.parent.A||ye[0])}function N(oe){oe._.x=oe.z+oe.parent.m,oe.m+=oe.parent.m}function Z(oe,ge,ye){if(ge){for(var qe=oe,Ye=oe,be=ge,Ce=qe.parent.children[0],Le=qe.m,Ge=Ye.m,Ve=be.m,De=Ce.m,wr;be=nf(be),qe=mu(qe),be&&qe;)Ce=mu(Ce),Ye=nf(Ye),Ye.a=oe,wr=be.z+Ve-qe.z-Le+g(be._,qe._),wr>0&&(ys(O(be,oe,ye),oe,wr),Le+=wr,Ge+=wr),Ve+=be.m,Le+=qe.m,De+=Ce.m,Ge+=Ye.m;be&&!nf(Ye)&&(Ye.t=be,Ye.m+=Ve-Ge),qe&&!mu(Ce)&&(Ce.t=qe,Ce.m+=Le-De,ye=oe)}return ye}function ie(oe){oe.x*=w[0],oe.y=oe.depth*w[1]}return L.separation=function(oe){return arguments.length?(g=oe,L):g},L.size=function(oe){return arguments.length?(S=(w=oe)==null?ie:null,L):S?null:w},L.nodeSize=function(oe){return arguments.length?(S=(w=oe)==null?null:ie,L):S?w:null},lo(L,v)};function Ti(v,g){return v.parent==g.parent?1:2}function mu(v){var g=v.children;return g.length?g[0]:v.t}function nf(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function ys(v,g,w){var S=w/(g.i-v.i);g.c-=S,g.s+=w,v.c+=S,g.z+=w,g.m+=w}function w0(v){for(var g=0,w=0,S=v.children,L=S.length,F;--L>=0;)F=S[L],F.z+=g,F.m+=g,g+=F.s+(w+=F.c)}function O(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ti,w=[1,1],S=!1;function L(F,Y){var N=v.call(this,F,Y),Z=N[0],ie,oe=0;Kn(Z,function(be){var Ce=be.children;Ce&&Ce.length?(be.x=he(Ce),be.y=J(Ce)):(be.x=ie?oe+=g(be,ie):0,be.y=0,ie=be)});var ge=ue(Z),ye=xe(Z),qe=ge.x-g(ge,ye)/2,Ye=ye.x+g(ye,ge)/2;return Kn(Z,S?function(be){be.x=(be.x-Z.x)*w[0],be.y=(Z.y-be.y)*w[1]}:function(be){be.x=(be.x-qe)/(Ye-qe)*w[0],be.y=(1-(Z.y?be.y/Z.y:1))*w[1]}),N}return L.separation=function(F){return arguments.length?(g=F,L):g},L.size=function(F){return arguments.length?(S=(w=F)==null,L):S?null:w},L.nodeSize=function(F){return arguments.length?(S=(w=F)!=null,L):S?w:null},lo(L,v)};function J(v){return 1+e.max(v,function(g){return g.y})}function he(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function ue(v){var g=v.children;return g&&g.length?ue(g[0]):v}function xe(v){var g=v.children,w;return g&&(w=g.length)?xe(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,L=He,F=!1,Y,N="squarify",Z=.5*(1+Math.sqrt(5));function ie(be,Ce){for(var Le=-1,Ge=be.length,Ve,De;++Le<Ge;)De=(Ve=be[Le]).value*(Ce<0?0:Ce),Ve.area=isNaN(De)||De<=0?0:De}function oe(be){var Ce=be.children;if(Ce&&Ce.length){var Le=L(be),Ge=[],Ve=Ce.slice(),De,wr=1/0,Gr,jr=N==="slice"?Le.dx:N==="dice"?Le.dy:N==="slice-dice"?be.depth&1?Le.dy:Le.dx:Math.min(Le.dx,Le.dy),Vr;for(ie(Ve,Le.dx*Le.dy/be.value),Ge.area=0;(Vr=Ve.length)>0;)Ge.push(De=Ve[Vr-1]),Ge.area+=De.area,N!=="squarify"||(Gr=ye(Ge,jr))<=wr?(Ve.pop(),wr=Gr):(Ge.area-=Ge.pop().area,qe(Ge,jr,Le,!1),jr=Math.min(Le.dx,Le.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(qe(Ge,jr,Le,!0),Ge.length=Ge.area=0),Ce.forEach(oe)}}function ge(be){var Ce=be.children;if(Ce&&Ce.length){var Le=L(be),Ge=Ce.slice(),Ve,De=[];for(ie(Ge,Le.dx*Le.dy/be.value),De.area=0;Ve=Ge.pop();)De.push(Ve),De.area+=Ve.area,Ve.z!=null&&(qe(De,Ve.z?Le.dx:Le.dy,Le,!Ge.length),De.length=De.area=0);Ce.forEach(ge)}}function ye(be,Ce){for(var Le=be.area,Ge,Ve=0,De=1/0,wr=-1,Gr=be.length;++wr<Gr;)(Ge=be[wr].area)&&(Ge<De&&(De=Ge),Ge>Ve&&(Ve=Ge));return Le*=Le,Ce*=Ce,Le?Math.max(Ce*Ve*Z/Le,Le/(Ce*De*Z)):1/0}function qe(be,Ce,Le,Ge){var Ve=-1,De=be.length,wr=Le.x,Gr=Le.y,jr=Ce?g(be.area/Ce):0,Vr;if(Ce==Le.dx){for((Ge||jr>Le.dy)&&(jr=Le.dy);++Ve<De;)Vr=be[Ve],Vr.x=wr,Vr.y=Gr,Vr.dy=jr,wr+=Vr.dx=Math.min(Le.x+Le.dx-wr,jr?g(Vr.area/jr):0);Vr.z=!0,Vr.dx+=Le.x+Le.dx-wr,Le.y+=jr,Le.dy-=jr}else{for((Ge||jr>Le.dx)&&(jr=Le.dx);++Ve<De;)Vr=be[Ve],Vr.x=wr,Vr.y=Gr,Vr.dx=jr,Gr+=Vr.dy=Math.min(Le.y+Le.dy-Gr,jr?g(Vr.area/jr):0);Vr.z=!1,Vr.dy+=Le.y+Le.dy-Gr,Le.x+=jr,Le.dx-=jr}}function Ye(be){var Ce=Y||v(be),Le=Ce[0];return Le.x=Le.y=0,Le.value?(Le.dx=w[0],Le.dy=w[1]):Le.dx=Le.dy=0,Y&&v.revalue(Le),ie([Le],Le.dx*Le.dy/Le.value),(Y?ge:oe)(Le),F&&(Y=Ce),Ce}return Ye.size=function(be){return arguments.length?(w=be,Ye):w},Ye.padding=function(be){if(!arguments.length)return S;function Ce(Ve){var De=be.call(Ye,Ve,Ve.depth);return De==null?He(Ve):je(Ve,typeof De=="number"?[De,De,De,De]:De)}function Le(Ve){return je(Ve,be)}var Ge;return L=(S=be)==null?He:(Ge=typeof be)=="function"?Ce:(Ge==="number"&&(be=[be,be,be,be]),Le),Ye},Ye.round=function(be){return arguments.length?(g=be?Math.round:Number,Ye):g!=Number},Ye.sticky=function(be){return arguments.length?(F=be,Y=null,Ye):F},Ye.ratio=function(be){return arguments.length?(Z=be,Ye):Z},Ye.mode=function(be){return arguments.length?(N=be+"",Ye):N},lo(Ye,v)};function He(v){return{x:v.x,y:v.y,dx:v.dx,dy:v.dy}}function je(v,g){var w=v.x+g[3],S=v.y+g[0],L=v.dx-g[1]-g[3],F=v.dy-g[0]-g[2];return L<0&&(w+=L/2,L=0),F<0&&(S+=F/2,F=0),{x:w,y:S,dx:L,dy:F}}e.random={normal:function(v,g){var w=arguments.length;return w<2&&(g=1),w<1&&(v=0),function(){var S,L,F;do S=Math.random()*2-1,L=Math.random()*2-1,F=S*S+L*L;while(!F||F>1);return v+g*S*Math.sqrt(-2*Math.log(F)/F)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w<v;w++)g+=Math.random();return g}}},e.scale={};function rr(v){var g=v[0],w=v[v.length-1];return g<w?[g,w]:[w,g]}function ar(v){return v.rangeExtent?v.rangeExtent():rr(v.range())}function br(v,g,w,S){var L=w(v[0],v[1]),F=S(g[0],g[1]);return function(Y){return F(L(Y))}}function Je(v,g){var w=0,S=v.length-1,L=v[w],F=v[S],Y;return F<L&&(Y=w,w=S,S=Y,Y=L,L=F,F=Y),v[w]=g.floor(L),v[S]=g.ceil(F),v}function lr(v){return v?{floor:function(g){return Math.floor(g/v)*v},ceil:function(g){return Math.ceil(g/v)*v}}:nr}var nr={floor:I,ceil:I};function Ar(v,g,w,S){var L=[],F=[],Y=0,N=Math.min(v.length,g.length)-1;for(v[N]<v[0]&&(v=v.slice().reverse(),g=g.slice().reverse());++Y<=N;)L.push(w(v[Y-1],v[Y])),F.push(S(g[Y-1],g[Y]));return function(Z){var ie=e.bisect(v,Z,1,N)-1;return F[ie](L[ie](Z))}}e.scale.linear=function(){return Er([0,1],[0,1],bl,!1)};function Er(v,g,w,S){var L,F;function Y(){var Z=Math.min(v.length,g.length)>2?Ar:br,ie=S?g0:m0;return L=Z(v,g,ie,w),F=Z(g,v,ie,bl),N}function N(Z){return L(Z)}return N.invert=function(Z){return F(Z)},N.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},N.range=function(Z){return arguments.length?(g=Z,Y()):g},N.rangeRound=function(Z){return N.range(Z).interpolate(qo)},N.clamp=function(Z){return arguments.length?(S=Z,Y()):S},N.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},N.ticks=function(Z){return st(v,Z)},N.tickFormat=function(Z,ie){return d3_scale_linearTickFormat(v,Z,ie)},N.nice=function(Z){return et(v,Z),Y()},N.copy=function(){return Er(v,g,w,S)},Y()}function ot(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function et(v,g){return Je(v,lr(ut(v,g)[2])),Je(v,lr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=rr(v),S=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),F=g/S*L;return F<=.15?L*=10:F<=.35?L*=5:F<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function st(v,g){return e.range.apply(e,ut(v,g))}var qr={s:1,g:1,p:1,r:1,e:1};function Ur(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function ct(v,g){var w=Ur(g[2]);return v in qr?Math.abs(w-Ur(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return _t(e.scale.linear().domain([0,1]),10,!0,[1,10])};function _t(v,g,w,S){function L(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function F(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function Y(N){return v(L(N))}return Y.invert=function(N){return F(v.invert(N))},Y.domain=function(N){return arguments.length?(w=N[0]>=0,v.domain((S=N.map(Number)).map(L)),Y):S},Y.base=function(N){return arguments.length?(g=+N,v.domain(S.map(L)),Y):g},Y.nice=function(){var N=Je(S.map(L),w?Math:Vt);return v.domain(N),S=N.map(F),Y},Y.ticks=function(){var N=rr(S),Z=[],ie=N[0],oe=N[1],ge=Math.floor(L(ie)),ye=Math.ceil(L(oe)),qe=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge<ye;ge++)for(var Ye=1;Ye<qe;Ye++)Z.push(F(ge)*Ye);Z.push(F(ge))}else for(Z.push(F(ge));ge++<ye;)for(var Ye=qe-1;Ye>0;Ye--)Z.push(F(ge)*Ye);for(ge=0;Z[ge]<ie;ge++);for(ye=Z.length;Z[ye-1]>oe;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return _t(v.copy(),g,w,S)},ot(Y,v)}var Vt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return oa(e.scale.linear(),1,[0,1])};function oa(v,g,w){var S=Zt(g),L=Zt(1/g);function F(Y){return v(S(Y))}return F.invert=function(Y){return L(v.invert(Y))},F.domain=function(Y){return arguments.length?(v.domain((w=Y.map(Number)).map(S)),F):w},F.ticks=function(Y){return st(w,Y)},F.tickFormat=function(Y,N){return d3_scale_linearTickFormat(w,Y,N)},F.nice=function(Y){return F.domain(et(w,Y))},F.exponent=function(Y){return arguments.length?(S=Zt(g=Y),L=Zt(1/g),v.domain(w.map(S)),F):g},F.copy=function(){return oa(v.copy(),g,w)},ot(F,v)}function Zt(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return _a([],{t:"range",a:[[]]})};function _a(v,g){var w,S,L;function F(N){return S[((w.get(N)||(g.t==="range"?w.set(N,v.push(N)):NaN))-1)%S.length]}function Y(N,Z){return e.range(v.length).map(function(ie){return N+Z*ie})}return F.domain=function(N){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,ie=N.length,oe;++Z<ie;)w.has(oe=N[Z])||w.set(oe,v.push(oe));return F[g.t].apply(F,g.a)},F.range=function(N){return arguments.length?(S=N,L=0,g={t:"range",a:arguments},F):S},F.rangePoints=function(N,Z){arguments.length<2&&(Z=0);var ie=N[0],oe=N[1],ge=v.length<2?(ie=(ie+oe)/2,0):(oe-ie)/(v.length-1+Z);return S=Y(ie+ge*Z/2,ge),L=0,g={t:"rangePoints",a:arguments},F},F.rangeRoundPoints=function(N,Z){arguments.length<2&&(Z=0);var ie=N[0],oe=N[1],ge=v.length<2?(ie=oe=Math.round((ie+oe)/2),0):(oe-ie)/(v.length-1+Z)|0;return S=Y(ie+Math.round(ge*Z/2+(oe-ie-(v.length-1+Z)*ge)/2),ge),L=0,g={t:"rangeRoundPoints",a:arguments},F},F.rangeBands=function(N,Z,ie){arguments.length<2&&(Z=0),arguments.length<3&&(ie=Z);var oe=N[1]<N[0],ge=N[oe-0],ye=N[1-oe],qe=(ye-ge)/(v.length-Z+2*ie);return S=Y(ge+qe*ie,qe),oe&&S.reverse(),L=qe*(1-Z),g={t:"rangeBands",a:arguments},F},F.rangeRoundBands=function(N,Z,ie){arguments.length<2&&(Z=0),arguments.length<3&&(ie=Z);var oe=N[1]<N[0],ge=N[oe-0],ye=N[1-oe],qe=Math.floor((ye-ge)/(v.length-Z+2*ie));return S=Y(ge+Math.round((ye-ge-(v.length-Z)*qe)/2),qe),oe&&S.reverse(),L=Math.round(qe*(1-Z)),g={t:"rangeRoundBands",a:arguments},F},F.rangeBand=function(){return L},F.rangeExtent=function(){return rr(g.a[0])},F.copy=function(){return _a(v,g)},F.domain(v)}e.scale.category10=function(){return e.scale.ordinal().range(Dt)},e.scale.category20=function(){return e.scale.ordinal().range(yn)},e.scale.category20b=function(){return e.scale.ordinal().range(Ya)},e.scale.category20c=function(){return e.scale.ordinal().range(xa)};var Dt=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(fl),yn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(fl),Ya=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(fl),xa=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(fl);e.scale.quantile=function(){return Yr([],[])};function Yr(v,g){var w;function S(){var F=0,Y=g.length;for(w=[];++F<Y;)w[F-1]=e.quantile(v,F/Y);return L}function L(F){if(!isNaN(F=+F))return g[e.bisect(w,F)]}return L.domain=function(F){return arguments.length?(v=F.map(h).filter(d).sort(c),S()):v},L.range=function(F){return arguments.length?(g=F,S()):g},L.quantiles=function(){return w},L.invertExtent=function(F){return F=g.indexOf(F),F<0?[NaN,NaN]:[F>0?w[F-1]:v[0],F<w.length?w[F]:v[v.length-1]]},L.copy=function(){return Yr(v,g)},S()}e.scale.quantize=function(){return Xt(0,1,[0,1])};function Xt(v,g,w){var S,L;function F(N){return w[Math.max(0,Math.min(L,Math.floor(S*(N-v))))]}function Y(){return S=w.length/(g-v),L=w.length-1,F}return F.domain=function(N){return arguments.length?(v=+N[0],g=+N[N.length-1],Y()):[v,g]},F.range=function(N){return arguments.length?(w=N,Y()):w},F.invertExtent=function(N){return N=w.indexOf(N),N=N<0?NaN:N/S+v,[N,N+1/S]},F.copy=function(){return Xt(v,g,w)},Y()}e.scale.threshold=function(){return Ka([.5],[0,1])};function Ka(v,g){function w(S){if(S<=S)return g[e.bisect(v,S)]}return w.domain=function(S){return arguments.length?(v=S,w):v},w.range=function(S){return arguments.length?(g=S,w):g},w.invertExtent=function(S){return S=g.indexOf(S),[v[S-1],v[S]]},w.copy=function(){return Ka(v,g)},w}e.scale.identity=function(){return Cn([0,1])};function Cn(v){function g(w){return+w}return g.invert=g,g.domain=g.range=function(w){return arguments.length?(v=w.map(g),g):v},g.ticks=function(w){return st(v,w)},g.tickFormat=function(w,S){return d3_scale_linearTickFormat(v,w,S)},g.copy=function(){return Cn(v)},g}e.svg={};function si(){return 0}e.svg.arc=function(){var v=Oi,g=Ml,w=si,S=uo,L=ki,F=Al,Y=gu;function N(){var ie=Math.max(0,+v.apply(this,arguments)),oe=Math.max(0,+g.apply(this,arguments)),ge=L.apply(this,arguments)-Me,ye=F.apply(this,arguments)-Me,qe=Math.abs(ye-ge),Ye=ge>ye?0:1;if(oe<ie&&(be=oe,oe=ie,ie=be),qe>=Wr)return Z(oe,Ye)+(ie?Z(ie,1-Ye):"")+"Z";var be,Ce,Le,Ge,Ve=0,De=0,wr,Gr,jr,Vr,rt,tt,At,nt,yt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Le=S===uo?Math.sqrt(ie*ie+oe*oe):+S.apply(this,arguments),Ye||(De*=-1),oe&&(De=na(Le/oe*Math.sin(Ge))),ie&&(Ve=na(Le/ie*Math.sin(Ge)))),oe){wr=oe*Math.cos(ge+De),Gr=oe*Math.sin(ge+De),jr=oe*Math.cos(ye-De),Vr=oe*Math.sin(ye-De);var Qt=Math.abs(ye-ge-2*De)<=Kr?0:1;if(De&&of(wr,Gr,jr,Vr)===Ye^Qt){var an=(ge+ye)/2;wr=oe*Math.cos(an),Gr=oe*Math.sin(an),jr=Vr=null}}else wr=Gr=0;if(ie){rt=ie*Math.cos(ye-Ve),tt=ie*Math.sin(ye-Ve),At=ie*Math.cos(ge+Ve),nt=ie*Math.sin(ge+Ve);var fa=Math.abs(ge-ye+2*Ve)<=Kr?0:1;if(Ve&&of(rt,tt,At,nt)===1-Ye^fa){var Br=(ge+ye)/2;rt=ie*Math.cos(Br),tt=ie*Math.sin(Br),At=nt=null}}else rt=tt=0;if(qe>cr&&(be=Math.min(Math.abs(oe-ie)/2,+w.apply(this,arguments)))>.001){Ce=ie<oe^Ye?0:1;var Tt=be,kt=be;if(qe<Kr){var ea=At==null?[rt,tt]:jr==null?[wr,Gr]:Qu([wr,Gr],[At,nt],[jr,Vr],[rt,tt]),Xa=wr-ea[0],bn=Gr-ea[1],Vn=jr-ea[0],fi=Vr-ea[1],Si=1/Math.sin(Math.acos((Xa*Vn+bn*fi)/(Math.sqrt(Xa*Xa+bn*bn)*Math.sqrt(Vn*Vn+fi*fi)))/2),ci=Math.sqrt(ea[0]*ea[0]+ea[1]*ea[1]);kt=Math.min(be,(ie-ci)/(Si-1)),Tt=Math.min(be,(oe-ci)/(Si+1))}if(jr!=null){var Gi=t1(At==null?[rt,tt]:[At,nt],[wr,Gr],oe,Tt,Ye),Qn=t1([jr,Vr],[rt,tt],oe,Tt,Ye);be===Tt?yt.push("M",Gi[0],"A",Tt,",",Tt," 0 0,",Ce," ",Gi[1],"A",oe,",",oe," 0 ",1-Ye^of(Gi[1][0],Gi[1][1],Qn[1][0],Qn[1][1]),",",Ye," ",Qn[1],"A",Tt,",",Tt," 0 0,",Ce," ",Qn[0]):yt.push("M",Gi[0],"A",Tt,",",Tt," 0 1,",Ce," ",Qn[0])}else yt.push("M",wr,",",Gr);if(At!=null){var Yi=t1([wr,Gr],[At,nt],ie,-kt,Ye),k0=t1([rt,tt],jr==null?[wr,Gr]:[jr,Vr],ie,-kt,Ye);be===kt?yt.push("L",k0[0],"A",kt,",",kt," 0 0,",Ce," ",k0[1],"A",ie,",",ie," 0 ",Ye^of(k0[1][0],k0[1][1],Yi[1][0],Yi[1][1]),",",1-Ye," ",Yi[1],"A",kt,",",kt," 0 0,",Ce," ",Yi[0]):yt.push("L",k0[0],"A",kt,",",kt," 0 0,",Ce," ",Yi[0])}else yt.push("L",rt,",",tt)}else yt.push("M",wr,",",Gr),jr!=null&&yt.push("A",oe,",",oe," 0 ",Qt,",",Ye," ",jr,",",Vr),yt.push("L",rt,",",tt),At!=null&&yt.push("A",ie,",",ie," 0 ",fa,",",1-Ye," ",At,",",nt);return yt.push("Z"),yt.join("")}function Z(ie,oe){return"M0,"+ie+"A"+ie+","+ie+" 0 1,"+oe+" 0,"+-ie+"A"+ie+","+ie+" 0 1,"+oe+" 0,"+ie}return N.innerRadius=function(ie){return arguments.length?(v=lt(ie),N):v},N.outerRadius=function(ie){return arguments.length?(g=lt(ie),N):g},N.cornerRadius=function(ie){return arguments.length?(w=lt(ie),N):w},N.padRadius=function(ie){return arguments.length?(S=ie==uo?uo:lt(ie),N):S},N.startAngle=function(ie){return arguments.length?(L=lt(ie),N):L},N.endAngle=function(ie){return arguments.length?(F=lt(ie),N):F},N.padAngle=function(ie){return arguments.length?(Y=lt(ie),N):Y},N.centroid=function(){var ie=(+v.apply(this,arguments)+ +g.apply(this,arguments))/2,oe=(+L.apply(this,arguments)+ +F.apply(this,arguments))/2-Me;return[Math.cos(oe)*ie,Math.sin(oe)*ie]},N};var uo="auto";function Oi(v){return v.innerRadius}function Ml(v){return v.outerRadius}function ki(v){return v.startAngle}function Al(v){return v.endAngle}function gu(v){return v&&v.padAngle}function of(v,g,w,S){return(v-w)*g-(g-S)*v>0?0:1}function t1(v,g,w,S,L){var F=v[0]-g[0],Y=v[1]-g[1],N=(L?S:-S)/Math.sqrt(F*F+Y*Y),Z=N*Y,ie=-N*F,oe=v[0]+Z,ge=v[1]+ie,ye=g[0]+Z,qe=g[1]+ie,Ye=(oe+ye)/2,be=(ge+qe)/2,Ce=ye-oe,Le=qe-ge,Ge=Ce*Ce+Le*Le,Ve=w-S,De=oe*qe-ye*ge,wr=(Le<0?-1:1)*Math.sqrt(Math.max(0,Ve*Ve*Ge-De*De)),Gr=(De*Le-Ce*wr)/Ge,jr=(-De*Ce-Le*wr)/Ge,Vr=(De*Le+Ce*wr)/Ge,rt=(-De*Ce+Le*wr)/Ge,tt=Gr-Ye,At=jr-be,nt=Vr-Ye,yt=rt-be;return tt*tt+At*At>nt*nt+yt*yt&&(Gr=Vr,jr=rt),[[Gr-Z,jr-ie],[Gr*w/Ve,jr*w/Ve]]}function a1(){return!0}function sp(v){var g=iu,w=Ju,S=a1,L=so,F=L.key,Y=.7;function N(Z){var ie=[],oe=[],ge=-1,ye=Z.length,qe,Ye=lt(g),be=lt(w);function Ce(){ie.push("M",L(v(oe),Y))}for(;++ge<ye;)S.call(this,qe=Z[ge],ge)?oe.push([+Ye.call(this,qe,ge),+be.call(this,qe,ge)]):oe.length&&(Ce(),oe=[]);return oe.length&&Ce(),ie.length?ie.join(""):null}return N.x=function(Z){return arguments.length?(g=Z,N):g},N.y=function(Z){return arguments.length?(w=Z,N):w},N.defined=function(Z){return arguments.length?(S=Z,N):S},N.interpolate=function(Z){return arguments.length?(typeof Z=="function"?F=L=Z:F=(L=M0.get(Z)||so).key,N):F},N.tension=function(Z){return arguments.length?(Y=Z,N):Y},N}e.svg.line=function(){return sp(I)};var M0=e.map({linear:so,"linear-closed":fp,step:cp,"step-before":n1,"step-after":Xv,basis:pp,"basis-open":Wv,"basis-closed":sy,bundle:jv,cardinal:dp,"cardinal-open":vp,"cardinal-closed":hp,monotone:ce});M0.forEach(function(v,g){g.key=v,g.closed=/-closed$/.test(v)});function so(v){return v.length>1?v.join("L"):v+"Z"}function fp(v){return v.join("L")+"Z"}function cp(v){for(var g=0,w=v.length,S=v[0],L=[S[0],",",S[1]];++g<w;)L.push("H",(S[0]+(S=v[g])[0])/2,"V",S[1]);return w>1&&L.push("H",S[0]),L.join("")}function n1(v){for(var g=0,w=v.length,S=v[0],L=[S[0],",",S[1]];++g<w;)L.push("V",(S=v[g])[1],"H",S[0]);return L.join("")}function Xv(v){for(var g=0,w=v.length,S=v[0],L=[S[0],",",S[1]];++g<w;)L.push("H",(S=v[g])[0],"V",S[1]);return L.join("")}function vp(v,g){return v.length<4?so(v):v[1]+i1(v.slice(1,-1),A0(v,g))}function hp(v,g){return v.length<3?fp(v):v[0]+i1((v.push(v[0]),v),A0([v[v.length-2]].concat(v,[v[1]]),g))}function dp(v,g){return v.length<3?so(v):v[0]+i1(v,A0(v,g))}function i1(v,g){if(g.length<1||v.length!=g.length&&v.length!=g.length+2)return so(v);var w=v.length!=g.length,S="",L=v[0],F=v[1],Y=g[0],N=Y,Z=1;if(w&&(S+="Q"+(F[0]-Y[0]*2/3)+","+(F[1]-Y[1]*2/3)+","+F[0]+","+F[1],L=v[1],Z=2),g.length>1){N=g[1],F=v[Z],Z++,S+="C"+(L[0]+Y[0])+","+(L[1]+Y[1])+","+(F[0]-N[0])+","+(F[1]-N[1])+","+F[0]+","+F[1];for(var ie=2;ie<g.length;ie++,Z++)F=v[Z],N=g[ie],S+="S"+(F[0]-N[0])+","+(F[1]-N[1])+","+F[0]+","+F[1]}if(w){var oe=v[Z];S+="Q"+(F[0]+N[0]*2/3)+","+(F[1]+N[1]*2/3)+","+oe[0]+","+oe[1]}return S}function A0(v,g){for(var w=[],S=(1-g)/2,L,F=v[0],Y=v[1],N=1,Z=v.length;++N<Z;)L=F,F=Y,Y=v[N],w.push([S*(Y[0]-L[0]),S*(Y[1]-L[1])]);return w}function pp(v){if(v.length<3)return so(v);var g=1,w=v.length,S=v[0],L=S[0],F=S[1],Y=[L,L,L,(S=v[1])[0]],N=[F,F,F,S[1]],Z=[L,",",F,"L",Ui(q,Y),",",Ui(q,N)];for(v.push(v[w-1]);++g<=w;)S=v[g],Y.shift(),Y.push(S[0]),N.shift(),N.push(S[1]),R(Z,Y,N);return v.pop(),Z.push("L",S),Z.join("")}function Wv(v){if(v.length<4)return so(v);for(var g=[],w=-1,S=v.length,L,F=[0],Y=[0];++w<3;)L=v[w],F.push(L[0]),Y.push(L[1]);for(g.push(Ui(q,F)+","+Ui(q,Y)),--w;++w<S;)L=v[w],F.shift(),F.push(L[0]),Y.shift(),Y.push(L[1]),R(g,F,Y);return g.join("")}function sy(v){for(var g,w=-1,S=v.length,L=S+4,F,Y=[],N=[];++w<4;)F=v[w%S],Y.push(F[0]),N.push(F[1]);for(g=[Ui(q,Y),",",Ui(q,N)],--w;++w<L;)F=v[w%S],Y.shift(),Y.push(F[0]),N.shift(),N.push(F[1]),R(g,Y,N);return g.join("")}function jv(v,g){var w=v.length-1;if(w)for(var S=v[0][0],L=v[0][1],F=v[w][0]-S,Y=v[w][1]-L,N=-1,Z,ie;++N<=w;)Z=v[N],ie=N/w,Z[0]=g*Z[0]+(1-g)*(S+ie*F),Z[1]=g*Z[1]+(1-g)*(L+ie*Y);return pp(v)}function Ui(v,g){return v[0]*g[0]+v[1]*g[1]+v[2]*g[2]+v[3]*g[3]}var k=[0,2/3,1/3,0],E=[0,1/3,2/3,0],q=[0,1/6,2/3,1/6];function R(v,g,w){v.push("C",Ui(k,g),",",Ui(k,w),",",Ui(E,g),",",Ui(E,w),",",Ui(q,g),",",Ui(q,w))}function G(v,g){return(g[1]-v[1])/(g[0]-v[0])}function U(v){for(var g=0,w=v.length-1,S=[],L=v[0],F=v[1],Y=S[0]=G(L,F);++g<w;)S[g]=(Y+(Y=G(L=F,F=v[g+1])))/2;return S[g]=Y,S}function W(v){for(var g=[],w,S,L,F,Y=U(v),N=-1,Z=v.length-1;++N<Z;)w=G(v[N],v[N+1]),b(w)<cr?Y[N]=Y[N+1]=0:(S=Y[N]/w,L=Y[N+1]/w,F=S*S+L*L,F>9&&(F=w*3/Math.sqrt(F),Y[N]=F*S,Y[N+1]=F*L));for(N=-1;++N<=Z;)F=(v[Math.min(Z,N+1)][0]-v[Math.max(0,N-1)][0])/(6*(1+Y[N]*Y[N])),g.push([F||0,Y[N]*F||0]);return g}function ce(v){return v.length<3?so(v):v[0]+i1(v,W(v))}e.svg.line.radial=function(){var v=sp(de);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function de(v){for(var g,w=-1,S=v.length,L,F;++w<S;)g=v[w],L=g[0],F=g[1]-Me,g[0]=L*Math.cos(F),g[1]=L*Math.sin(F);return v}function se(v){var g=iu,w=iu,S=0,L=Ju,F=a1,Y=so,N=Y.key,Z=Y,ie="L",oe=.7;function ge(ye){var qe=[],Ye=[],be=[],Ce=-1,Le=ye.length,Ge,Ve=lt(g),De=lt(S),wr=g===w?function(){return jr}:lt(w),Gr=S===L?function(){return Vr}:lt(L),jr,Vr;function rt(){qe.push("M",Y(v(be),oe),ie,Z(v(Ye.reverse()),oe),"Z")}for(;++Ce<Le;)F.call(this,Ge=ye[Ce],Ce)?(Ye.push([jr=+Ve.call(this,Ge,Ce),Vr=+De.call(this,Ge,Ce)]),be.push([+wr.call(this,Ge,Ce),+Gr.call(this,Ge,Ce)])):Ye.length&&(rt(),Ye=[],be=[]);return Ye.length&&rt(),qe.length?qe.join(""):null}return ge.x=function(ye){return arguments.length?(g=w=ye,ge):w},ge.x0=function(ye){return arguments.length?(g=ye,ge):g},ge.x1=function(ye){return arguments.length?(w=ye,ge):w},ge.y=function(ye){return arguments.length?(S=L=ye,ge):L},ge.y0=function(ye){return arguments.length?(S=ye,ge):S},ge.y1=function(ye){return arguments.length?(L=ye,ge):L},ge.defined=function(ye){return arguments.length?(F=ye,ge):F},ge.interpolate=function(ye){return arguments.length?(typeof ye=="function"?N=Y=ye:N=(Y=M0.get(ye)||so).key,Z=Y.reverse||Y,ie=Y.closed?"M":"L",ge):N},ge.tension=function(ye){return arguments.length?(oe=ye,ge):oe},ge}n1.reverse=Xv,Xv.reverse=n1,e.svg.area=function(){return se(I)},e.svg.area.radial=function(){var v=se(de);return v.radius=v.x,delete v.x,v.innerRadius=v.x0,delete v.x0,v.outerRadius=v.x1,delete v.x1,v.angle=v.y,delete v.y,v.startAngle=v.y0,delete v.y0,v.endAngle=v.y1,delete v.y1,v};function pe(v){return v.source}function _e(v){return v.target}e.svg.chord=function(){var v=pe,g=_e,w=Se,S=ki,L=Al;function F(oe,ge){var ye=Y(this,v,oe,ge),qe=Y(this,g,oe,ge);return"M"+ye.p0+Z(ye.r,ye.p1,ye.a1-ye.a0)+(N(ye,qe)?ie(ye.r,ye.p1,ye.r,ye.p0):ie(ye.r,ye.p1,qe.r,qe.p0)+Z(qe.r,qe.p1,qe.a1-qe.a0)+ie(qe.r,qe.p1,ye.r,ye.p0))+"Z"}function Y(oe,ge,ye,qe){var Ye=ge.call(oe,ye,qe),be=w.call(oe,Ye,qe),Ce=S.call(oe,Ye,qe)-Me,Le=L.call(oe,Ye,qe)-Me;return{r:be,a0:Ce,a1:Le,p0:[be*Math.cos(Ce),be*Math.sin(Ce)],p1:[be*Math.cos(Le),be*Math.sin(Le)]}}function N(oe,ge){return oe.a0==ge.a0&&oe.a1==ge.a1}function Z(oe,ge,ye){return"A"+oe+","+oe+" 0 "+ +(ye>Kr)+",1 "+ge}function ie(oe,ge,ye,qe){return"Q 0,0 "+qe}return F.radius=function(oe){return arguments.length?(w=lt(oe),F):w},F.source=function(oe){return arguments.length?(v=lt(oe),F):v},F.target=function(oe){return arguments.length?(g=lt(oe),F):g},F.startAngle=function(oe){return arguments.length?(S=lt(oe),F):S},F.endAngle=function(oe){return arguments.length?(L=lt(oe),F):L},F};function Se(v){return v.radius}e.svg.diagonal=function(){var v=pe,g=_e,w=ze;function S(L,F){var Y=v.call(this,L,F),N=g.call(this,L,F),Z=(Y.y+N.y)/2,ie=[Y,{x:Y.x,y:Z},{x:N.x,y:Z},N];return ie=ie.map(w),"M"+ie[0]+"C"+ie[1]+" "+ie[2]+" "+ie[3]}return S.source=function(L){return arguments.length?(v=lt(L),S):v},S.target=function(L){return arguments.length?(g=lt(L),S):g},S.projection=function(L){return arguments.length?(w=L,S):w},S};function ze(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=ze,w=v.projection;return v.projection=function(S){return arguments.length?w(Ke(g=S)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],S=g[1]-Me;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var v=Tr,g=or;function w(S,L){return(ft.get(v.call(this,S,L))||$r)(g.call(this,S,L))}return w.type=function(S){return arguments.length?(v=lt(S),w):v},w.size=function(S){return arguments.length?(g=lt(S),w):g},w};function or(){return 64}function Tr(){return"circle"}function $r(v){var g=Math.sqrt(v/Kr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ft=e.map({circle:$r,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*dt)),w=g*dt;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/vt),w=g*vt/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/vt),w=g*vt/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ft.keys();var vt=Math.sqrt(3),dt=Math.tan(30*Re);K.transition=function(v){for(var g=Sn||++Va,w=Gn(v),S=[],L,F,Y=Ci||{time:Date.now(),ease:Uc,delay:0,duration:250},N=-1,Z=this.length;++N<Z;){S.push(L=[]);for(var ie=this[N],oe=-1,ge=ie.length;++oe<ge;)(F=ie[oe])&&Yn(F,oe,w,g,Y),L.push(F)}return Ea(S,w,g)},K.interrupt=function(v){return this.each(v==null?gt:sa(Gn(v)))};var gt=sa(Gn());function sa(v){return function(){var g,w,S;(g=this[v])&&(S=g[w=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[w]:delete this[v],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Ea(v,g,w){return ke(v,It),v.namespace=g,v.id=w,v}var It=[],Va=0,Sn,Ci;It.call=K.call,It.empty=K.empty,It.node=K.node,It.size=K.size,e.transition=function(v,g){return v&&v.transition?Sn?v.transition(g):v:e.selection().transition(v)},e.transition.prototype=It,It.select=function(v){var g=this.id,w=this.namespace,S=[],L,F,Y;v=$(v);for(var N=-1,Z=this.length;++N<Z;){S.push(L=[]);for(var ie=this[N],oe=-1,ge=ie.length;++oe<ge;)(Y=ie[oe])&&(F=v.call(Y,Y.__data__,oe,N))?("__data__"in Y&&(F.__data__=Y.__data__),Yn(F,oe,w,g,Y[w][g]),L.push(F)):L.push(null)}return Ea(S,w,g)},It.selectAll=function(v){var g=this.id,w=this.namespace,S=[],L,F,Y,N,Z;v=le(v);for(var ie=-1,oe=this.length;++ie<oe;)for(var ge=this[ie],ye=-1,qe=ge.length;++ye<qe;)if(Y=ge[ye]){Z=Y[w][g],F=v.call(Y,Y.__data__,ye,ie),S.push(L=[]);for(var Ye=-1,be=F.length;++Ye<be;)(N=F[Ye])&&Yn(N,Ye,w,g,Z),L.push(N)}return Ea(S,w,g)},It.filter=function(v){var g=[],w,S,L;typeof v!="function"&&(v=Te(v));for(var F=0,Y=this.length;F<Y;F++){g.push(w=[]);for(var S=this[F],N=0,Z=S.length;N<Z;N++)(L=S[N])&&v.call(L,L.__data__,N,F)&&w.push(L)}return Ea(g,this.namespace,this.id)},It.tween=function(v,g){var w=this.id,S=this.namespace;return arguments.length<2?this.node()[S][w].tween.get(v):Mr(this,g==null?function(L){L[S][w].tween.remove(v)}:function(L){L[S][w].tween.set(v,g)})};function Tl(v,g,w,S){var L=v.id,F=v.namespace;return Mr(v,typeof w=="function"?function(Y,N,Z){Y[F][L].tween.set(g,S(w.call(Y,Y.__data__,N,Z)))}:(w=S(w),function(Y){Y[F][L].tween.set(g,w)}))}It.attr=function(v,g){if(arguments.length<2){for(g in v)this.attr(g,v[g]);return this}var w=v=="transform"?Ks:bl,S=e.ns.qualify(v);function L(){this.removeAttribute(S)}function F(){this.removeAttributeNS(S.space,S.local)}function Y(Z){return Z==null?L:(Z+="",function(){var ie=this.getAttribute(S),oe;return ie!==Z&&(oe=w(ie,Z),function(ge){this.setAttribute(S,oe(ge))})})}function N(Z){return Z==null?F:(Z+="",function(){var ie=this.getAttributeNS(S.space,S.local),oe;return ie!==Z&&(oe=w(ie,Z),function(ge){this.setAttributeNS(S.space,S.local,oe(ge))})})}return Tl(this,"attr."+v,g,S.local?N:Y)},It.attrTween=function(v,g){var w=e.ns.qualify(v);function S(F,Y){var N=g.call(this,F,Y,this.getAttribute(w));return N&&function(Z){this.setAttribute(w,N(Z))}}function L(F,Y){var N=g.call(this,F,Y,this.getAttributeNS(w.space,w.local));return N&&function(Z){this.setAttributeNS(w.space,w.local,N(Z))}}return this.tween("attr."+v,w.local?L:S)},It.style=function(v,g,w){var S=arguments.length;if(S<3){if(typeof v!="string"){S<2&&(g="");for(w in v)this.style(w,v[w],g);return this}w=""}function L(){this.style.removeProperty(v)}function F(Y){return Y==null?L:(Y+="",function(){var N=i(this).getComputedStyle(this,null).getPropertyValue(v),Z;return N!==Y&&(Z=bl(N,Y),function(ie){this.style.setProperty(v,Z(ie),w)})})}return Tl(this,"style."+v,g,F)},It.styleTween=function(v,g,w){arguments.length<3&&(w="");function S(L,F){var Y=g.call(this,L,F,i(this).getComputedStyle(this,null).getPropertyValue(v));return Y&&function(N){this.style.setProperty(v,Y(N),w)}}return this.tween("style."+v,S)},It.text=function(v){return Tl(this,"text",v,bs)};function bs(v){return v==null&&(v=""),function(){this.textContent=v}}It.remove=function(){var v=this.namespace;return this.each("end.transition",function(){var g;this[v].count<2&&(g=this.parentNode)&&g.removeChild(this)})},It.ease=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].ease:(typeof v!="function"&&(v=e.ease.apply(e,arguments)),Mr(this,function(S){S[w][g].ease=v}))},It.delay=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].delay:Mr(this,typeof v=="function"?function(S,L,F){S[w][g].delay=+v.call(S,S.__data__,L,F)}:(v=+v,function(S){S[w][g].delay=v}))},It.duration=function(v){var g=this.id,w=this.namespace;return arguments.length<1?this.node()[w][g].duration:Mr(this,typeof v=="function"?function(S,L,F){S[w][g].duration=Math.max(1,v.call(S,S.__data__,L,F))}:(v=Math.max(1,v),function(S){S[w][g].duration=v}))},It.each=function(v,g){var w=this.id,S=this.namespace;if(arguments.length<2){var L=Ci,F=Sn;try{Sn=w,Mr(this,function(Y,N,Z){Ci=Y[S][w],v.call(Y,Y.__data__,N,Z)})}finally{Ci=L,Sn=F}}else Mr(this,function(Y){var N=Y[S][w];(N.event||(N.event=e.dispatch("start","end","interrupt"))).on(v,g)});return this},It.transition=function(){for(var v=this.id,g=++Va,w=this.namespace,S=[],L,F,Y,N,Z=0,ie=this.length;Z<ie;Z++){S.push(L=[]);for(var F=this[Z],oe=0,ge=F.length;oe<ge;oe++)(Y=F[oe])&&(N=Y[w][v],Yn(Y,oe,w,g,{time:N.time,ease:N.ease,delay:N.delay+N.duration,duration:N.duration})),L.push(Y)}return Ea(S,w,g)};function Gn(v){return v==null?"__transition__":"__transition_"+v+"__"}function Yn(v,g,w,S,L){var F=v[w]||(v[w]={active:0,count:0}),Y=F[S],N,Z,ie,oe,ge;function ye(be){var Ce=Y.delay;if(Z.t=Ce+N,Ce<=be)return qe(be-Ce);Z.c=qe}function qe(be){var Ce=F.active,Le=F[Ce];Le&&(Le.timer.c=null,Le.timer.t=NaN,--F.count,delete F[Ce],Le.event&&Le.event.interrupt.call(v,v.__data__,Le.index));for(var Ge in F)if(+Ge<S){var Ve=F[Ge];Ve.timer.c=null,Ve.timer.t=NaN,--F.count,delete F[Ge]}Z.c=Ye,nu(function(){return Z.c&&Ye(be||1)&&(Z.c=null,Z.t=NaN),1},0,N),F.active=S,Y.event&&Y.event.start.call(v,v.__data__,g),ge=[],Y.tween.forEach(function(De,wr){(wr=wr.call(v,v.__data__,g))&&ge.push(wr)}),oe=Y.ease,ie=Y.duration}function Ye(be){for(var Ce=be/ie,Le=oe(Ce),Ge=ge.length;Ge>0;)ge[--Ge].call(v,Le);if(Ce>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--F.count?delete F[S]:delete v[w],1}Y||(N=L.time,Z=nu(ye,0,N),Y=F[S]={tween:new _,time:N,timer:Z,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++F.count)}e.svg.axis=function(){var v=e.scale.linear(),g=fo,w=6,S=6,L=3,F=[10],Y=null,N;function Z(ie){ie.each(function(){var oe=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),qe=Y==null?ye.ticks?ye.ticks.apply(ye,F):ye.domain():Y,Ye=N==null?ye.tickFormat?ye.tickFormat.apply(ye,F):I:N,be=oe.selectAll(".tick").data(qe,ye),Ce=be.enter().insert("g",".domain").attr("class","tick").style("opacity",cr),Le=e.transition(be.exit()).style("opacity",cr).remove(),Ge=e.transition(be.order()).style("opacity",1),Ve=Math.max(w,0)+L,De,wr=ar(ye),Gr=oe.selectAll(".domain").data([0]),jr=(Gr.enter().append("path").attr("class","domain"),e.transition(Gr));Ce.append("line"),Ce.append("text");var Vr=Ce.select("line"),rt=Ge.select("line"),tt=be.select("text").text(Ye),At=Ce.select("text"),nt=Ge.select("text"),yt=g==="top"||g==="left"?-1:1,Qt,an,fa,Br;if(g==="bottom"||g==="top"?(De=Cl,Qt="x",fa="y",an="x2",Br="y2",tt.attr("dy",yt<0?"0em":".71em").style("text-anchor","middle"),jr.attr("d","M"+wr[0]+","+yt*S+"V0H"+wr[1]+"V"+yt*S)):(De=Sl,Qt="y",fa="x",an="y2",Br="x2",tt.attr("dy",".32em").style("text-anchor",yt<0?"end":"start"),jr.attr("d","M"+yt*S+","+wr[0]+"H0V"+wr[1]+"H"+yt*S)),Vr.attr(Br,yt*w),At.attr(fa,yt*Ve),rt.attr(an,0).attr(Br,yt*w),nt.attr(Qt,0).attr(fa,yt*Ve),ye.rangeBand){var Tt=ye,kt=Tt.rangeBand()/2;ge=ye=function(ea){return Tt(ea)+kt}}else ge.rangeBand?ge=ye:Le.call(De,ye,ge);Ce.call(De,ge,ye),Ge.call(De,ye,ye)})}return Z.scale=function(ie){return arguments.length?(v=ie,Z):v},Z.orient=function(ie){return arguments.length?(g=ie in kl?ie+"":fo,Z):g},Z.ticks=function(){return arguments.length?(F=t(arguments),Z):F},Z.tickValues=function(ie){return arguments.length?(Y=ie,Z):Y},Z.tickFormat=function(ie){return arguments.length?(N=ie,Z):N},Z.tickSize=function(ie){var oe=arguments.length;return oe?(w=+ie,S=+arguments[oe-1],Z):w},Z.innerTickSize=function(ie){return arguments.length?(w=+ie,Z):w},Z.outerTickSize=function(ie){return arguments.length?(S=+ie,Z):S},Z.tickPadding=function(ie){return arguments.length?(L=+ie,Z):L},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var fo="bottom",kl={top:1,right:1,bottom:1,left:1};function Cl(v,g,w){v.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:w(S))+",0)"})}function Sl(v,g,w){v.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:w(S))+")"})}e.svg.brush=function(){var v=Be(oe,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],L=[0,0],F,Y,N=!0,Z=!0,ie=Ro[0];function oe(be){be.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ye).on("touchstart.brush",Ye),Le=Ce.selectAll(".background").data([0]);Le.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ie,I);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Gr){return"resize "+Gr}).style("cursor",function(Gr){return yu[Gr]}).append("rect").attr("x",function(Gr){return/[ew]$/.test(Gr)?-3:null}).attr("y",function(Gr){return/^[ns]/.test(Gr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",oe.empty()?"none":null);var Ve=e.transition(Ce),De=e.transition(Le),wr;g&&(wr=ar(g),De.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(Ve)),w&&(wr=ar(w),De.attr("y",wr[0]).attr("height",wr[1]-wr[0]),qe(Ve)),ge(Ve)})}oe.event=function(be){be.each(function(){var Ce=v.of(this,arguments),Le={x:S,y:L,i:F,j:Y},Ge=this.__chart__||Le;this.__chart__=Le,Sn?e.select(this).transition().each("start.brush",function(){F=Ge.i,Y=Ge.j,S=Ge.x,L=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var Ve=cu(S,Le.x),De=cu(L,Le.y);return F=Y=null,function(wr){S=Le.x=Ve(wr),L=Le.y=De(wr),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){F=Le.i,Y=Le.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+L[+/^s/.test(Ce)]+")"})}function ye(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function qe(be){be.select(".extent").attr("y",L[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ye(){var be=this,Ce=e.select(e.event.target),Le=v.of(be,arguments),Ge=e.select(be),Ve=Ce.datum(),De=!/^(n|s)$/.test(Ve)&&g,wr=!/^(e|w)$/.test(Ve)&&w,Gr=Ce.classed("extent"),jr=Lr(be),Vr,rt=e.mouse(be),tt,At=e.select(i(be)).on("keydown.brush",Qt).on("keyup.brush",an);if(e.event.changedTouches?At.on("touchmove.brush",fa).on("touchend.brush",Tt):At.on("mousemove.brush",fa).on("mouseup.brush",Tt),Ge.interrupt().selectAll("*").interrupt(),Gr)rt[0]=S[0]-rt[0],rt[1]=L[0]-rt[1];else if(Ve){var nt=+/w$/.test(Ve),yt=+/^n/.test(Ve);tt=[S[1-nt]-rt[0],L[1-yt]-rt[1]],rt[0]=S[nt],rt[1]=L[yt]}else e.event.altKey&&(Vr=rt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Le({type:"brushstart"}),fa();function Qt(){e.event.keyCode==32&&(Gr||(Vr=null,rt[0]-=S[1],rt[1]-=L[1],Gr=2),Ae())}function an(){e.event.keyCode==32&&Gr==2&&(rt[0]+=S[1],rt[1]+=L[1],Gr=0,Ae())}function fa(){var kt=e.mouse(be),ea=!1;tt&&(kt[0]+=tt[0],kt[1]+=tt[1]),Gr||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),rt[0]=S[+(kt[0]<Vr[0])],rt[1]=L[+(kt[1]<Vr[1])]):Vr=null),De&&Br(kt,g,0)&&(ye(Ge),ea=!0),wr&&Br(kt,w,1)&&(qe(Ge),ea=!0),ea&&(ge(Ge),Le({type:"brush",mode:Gr?"move":"resize"}))}function Br(kt,ea,Xa){var bn=ar(ea),Vn=bn[0],fi=bn[1],Si=rt[Xa],ci=Xa?L:S,Gi=ci[1]-ci[0],Qn,Yi;if(Gr&&(Vn-=Si,fi-=Gi+Si),Qn=(Xa?Z:N)?Math.max(Vn,Math.min(fi,kt[Xa])):kt[Xa],Gr?Yi=(Qn+=Si)+Gi:(Vr&&(Si=Math.max(Vn,Math.min(fi,2*Vr[Xa]-Qn))),Si<Qn?(Yi=Qn,Qn=Si):Yi=Si),ci[0]!=Qn||ci[1]!=Yi)return Xa?Y=null:F=null,ci[0]=Qn,ci[1]=Yi,!0}function Tt(){fa(),Ge.style("pointer-events","all").selectAll(".resize").style("display",oe.empty()?"none":null),e.select("body").style("cursor",null),At.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),jr(),Le({type:"brushend"})}}return oe.x=function(be){return arguments.length?(g=be,ie=Ro[!g<<1|!w],oe):g},oe.y=function(be){return arguments.length?(w=be,ie=Ro[!g<<1|!w],oe):w},oe.clamp=function(be){return arguments.length?(g&&w?(N=!!be[0],Z=!!be[1]):g?N=!!be:w&&(Z=!!be),oe):g&&w?[N,Z]:g?N:w?Z:null},oe.extent=function(be){var Ce,Le,Ge,Ve,De;return arguments.length?(g&&(Ce=be[0],Le=be[1],w&&(Ce=Ce[0],Le=Le[0]),F=[Ce,Le],g.invert&&(Ce=g(Ce),Le=g(Le)),Le<Ce&&(De=Ce,Ce=Le,Le=De),(Ce!=S[0]||Le!=S[1])&&(S=[Ce,Le])),w&&(Ge=be[0],Ve=be[1],g&&(Ge=Ge[1],Ve=Ve[1]),Y=[Ge,Ve],w.invert&&(Ge=w(Ge),Ve=w(Ve)),Ve<Ge&&(De=Ge,Ge=Ve,Ve=De),(Ge!=L[0]||Ve!=L[1])&&(L=[Ge,Ve])),oe):(g&&(F?(Ce=F[0],Le=F[1]):(Ce=S[0],Le=S[1],g.invert&&(Ce=g.invert(Ce),Le=g.invert(Le)),Le<Ce&&(De=Ce,Ce=Le,Le=De))),w&&(Y?(Ge=Y[0],Ve=Y[1]):(Ge=L[0],Ve=L[1],w.invert&&(Ge=w.invert(Ge),Ve=w.invert(Ve)),Ve<Ge&&(De=Ge,Ge=Ve,Ve=De))),g&&w?[[Ce,Ge],[Le,Ve]]:g?[Ce,Le]:w&&[Ge,Ve])},oe.clear=function(){return oe.empty()||(S=[0,0],L=[0,0],F=Y=null),oe},oe.empty=function(){return!!g&&S[0]==S[1]||!!w&&L[0]==L[1]},e.rebind(oe,v,"on")};var yu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ro=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=Ot(function(v){return v.responseText}),e.json=function(v,g){return Or(v,"application/json",_s,g)};function _s(v){return JSON.parse(v.responseText)}e.html=function(v,g){return Or(v,"text/html",T0,g)};function T0(v){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(v.responseText)}e.xml=Ot(function(v){return v.responseXML}),typeof yp=="object"&&yp.exports?yp.exports=e:this.d3=e}).apply(self)});var cy=ae((bp,m_)=>{(function(e,r){typeof bp=="object"&&typeof m_!="undefined"?r(bp):(e=e||self,r(e.d3=e.d3||{}))})(bp,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Oe,Mr,Nr){function Qe(Ie){return Te(Ie=arguments.length===0?new Date:new Date(+Ie)),Ie}return Qe.floor=function(Ie){return Te(Ie=new Date(+Ie)),Ie},Qe.ceil=function(Ie){return Te(Ie=new Date(Ie-1)),Oe(Ie,1),Te(Ie),Ie},Qe.round=function(Ie){var Xe=Qe(Ie),yr=Qe.ceil(Ie);return Ie-Xe<yr-Ie?Xe:yr},Qe.offset=function(Ie,Xe){return Oe(Ie=new Date(+Ie),Xe==null?1:Math.floor(Xe)),Ie},Qe.range=function(Ie,Xe,yr){var kr=[],pr;if(Ie=Qe.ceil(Ie),yr=yr==null?1:Math.floor(yr),!(Ie<Xe)||!(yr>0))return kr;do kr.push(pr=new Date(+Ie)),Oe(Ie,yr),Te(Ie);while(pr<Ie&&Ie<Xe);return kr},Qe.filter=function(Ie){return a(function(Xe){if(Xe>=Xe)for(;Te(Xe),!Ie(Xe);)Xe.setTime(Xe-1)},function(Xe,yr){if(Xe>=Xe)if(yr<0)for(;++yr<=0;)for(;Oe(Xe,-1),!Ie(Xe););else for(;--yr>=0;)for(;Oe(Xe,1),!Ie(Xe););})},Mr&&(Qe.count=function(Ie,Xe){return r.setTime(+Ie),t.setTime(+Xe),Te(r),Te(t),Math.floor(Mr(r,t))},Qe.every=function(Ie){return Ie=Math.floor(Ie),!isFinite(Ie)||!(Ie>0)?null:Ie>1?Qe.filter(Nr?function(Xe){return Nr(Xe)%Ie===0}:function(Xe){return Qe.count(0,Xe)%Ie===0}):Qe}),Qe}var n=a(function(){},function(Te,Oe){Te.setTime(+Te+Oe)},function(Te,Oe){return Oe-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Oe){Oe.setTime(Math.floor(Oe/Te)*Te)},function(Oe,Mr){Oe.setTime(+Oe+Mr*Te)},function(Oe,Mr){return(Mr-Oe)/Te}):n};var i=n.range,o=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Oe){Te.setTime(+Te+Oe*o)},function(Te,Oe){return(Oe-Te)/o},function(Te){return Te.getUTCSeconds()}),h=c.range,d=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Oe){Te.setTime(+Te+Oe*u)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getHours()}),y=p.range,b=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Oe){Te.setDate(Te.getDate()+Oe)},function(Te,Oe){return(Oe-Te-(Oe.getTimezoneOffset()-Te.getTimezoneOffset())*l)/s},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return a(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-Te)%7),Oe.setHours(0,0,0,0)},function(Oe,Mr){Oe.setDate(Oe.getDate()+Mr*7)},function(Oe,Mr){return(Mr-Oe-(Mr.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var _=x(0),M=x(1),T=x(2),A=x(3),D=x(4),P=x(5),z=x(6),B=_.range,X=M.range,H=T.range,V=A.range,I=D.range,Q=P.range,ne=z.range,te=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setMonth(Te.getMonth()+Oe)},function(Te,Oe){return Oe.getMonth()-Te.getMonth()+(Oe.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),ee=te.range,fe=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setFullYear(Te.getFullYear()+Oe)},function(Te,Oe){return Oe.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});fe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/Te)*Te),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,Mr){Oe.setFullYear(Oe.getFullYear()+Mr*Te)})};var ve=fe.range,Ae=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getUTCMinutes()}),Ee=Ae.range,Be=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Oe){Te.setTime(+Te+Oe*u)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getUTCHours()}),Ue=Be.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCDate(Te.getUTCDate()+Oe)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getUTCDate()-1}),We=ke.range;function j(Te){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-Te)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,Mr){Oe.setUTCDate(Oe.getUTCDate()+Mr*7)},function(Oe,Mr){return(Mr-Oe)/f})}var re=j(0),me=j(1),K=j(2),$=j(3),le=j(4),we=j(5),Ne=j(6),$e=re.range,er=me.range,ir=K.range,sr=$.range,Pe=le.range,vr=we.range,hr=Ne.range,dr=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCMonth(Te.getUTCMonth()+Oe)},function(Te,Oe){return Oe.getUTCMonth()-Te.getUTCMonth()+(Oe.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Ze=dr.range,fr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCFullYear(Te.getUTCFullYear()+Oe)},function(Te,Oe){return Oe.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});fr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/Te)*Te),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,Mr){Oe.setUTCFullYear(Oe.getUTCFullYear()+Mr*Te)})};var Dr=fr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=p,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=X,e.timeMonth=te,e.timeMonths=ee,e.timeSaturday=z,e.timeSaturdays=ne,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=B,e.timeThursday=D,e.timeThursdays=I,e.timeTuesday=T,e.timeTuesdays=H,e.timeWednesday=A,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=B,e.timeYear=fe,e.timeYears=ve,e.utcDay=ke,e.utcDays=We,e.utcFriday=we,e.utcFridays=vr,e.utcHour=Be,e.utcHours=Ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Ae,e.utcMinutes=Ee,e.utcMonday=me,e.utcMondays=er,e.utcMonth=dr,e.utcMonths=Ze,e.utcSaturday=Ne,e.utcSaturdays=hr,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=re,e.utcSundays=$e,e.utcThursday=le,e.utcThursdays=Pe,e.utcTuesday=K,e.utcTuesdays=ir,e.utcWednesday=$,e.utcWednesdays=sr,e.utcWeek=re,e.utcWeeks=$e,e.utcYear=fr,e.utcYears=Dr,Object.defineProperty(e,"__esModule",{value:!0})})});var s1=ae((_p,g_)=>{(function(e,r){typeof _p=="object"&&typeof g_!="undefined"?r(_p,cy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(_p,function(e,r){"use strict";function t(Me){if(0<=Me.y&&Me.y<100){var Re=new Date(-1,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L);return Re.setFullYear(Me.y),Re}return new Date(Me.y,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L)}function a(Me){if(0<=Me.y&&Me.y<100){var Re=new Date(Date.UTC(-1,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L));return Re.setUTCFullYear(Me.y),Re}return new Date(Date.UTC(Me.y,Me.m,Me.d,Me.H,Me.M,Me.S,Me.L))}function n(Me,Re,ur){return{y:Me,m:Re,d:ur,H:0,M:0,S:0,L:0}}function i(Me){var Re=Me.dateTime,ur=Me.date,gr=Me.time,Nt=Me.periods,Gt=Me.days,na=Me.shortDays,Aa=Me.months,Bt=Me.shortMonths,jt=h(Nt),da=d(Nt),Kt=h(Gt),mn=d(Gt),rn=h(na),Un=d(na),Jr=h(Aa),ua=d(Aa),Rt=h(Bt),pa=d(Bt),ya={a:Wu,A:sl,b:$a,B:Pi,c:null,d:te,e:te,f:Ee,g:we,G:$e,H:ee,I:fe,j:ve,L:Ae,m:Be,M:Ue,p:fl,q:Ri,Q:Lr,s:Hr,S:ke,u:We,U:j,V:me,w:K,W:$,x:null,X:null,y:le,Y:Ne,Z:er,"%":Pr},ba={a:Mi,A:eu,b:ru,B:ju,c:null,d:ir,e:ir,f:dr,g:yr,G:pr,H:sr,I:Pe,j:vr,L:hr,m:Ze,M:fr,p:tu,q:Zu,Q:Lr,s:Hr,S:Dr,u:Te,U:Oe,V:Nr,w:Qe,W:Ie,x:null,X:null,y:Xe,Y:kr,Z:xr,"%":Pr},Yt={a:La,A:Sa,b:ko,B:qi,c:Xu,d:D,e:D,f:V,g:_,G:x,H:z,I:z,j:P,L:H,m:A,M:B,p:aa,q:T,Q,s:ne,S:X,u:p,U:y,V:b,w:m,W:C,x:Ql,X:ul,y:_,Y:x,Z:M,"%":I};ya.x=za(ur,ya),ya.X=za(gr,ya),ya.c=za(Re,ya),ba.x=za(ur,ba),ba.X=za(gr,ba),ba.c=za(Re,ba);function za(it,lt){return function(Ot){var Or=[],vn=-1,ia=0,Ha=it.length,Ga,zn,cl;for(Ot instanceof Date||(Ot=new Date(+Ot));++vn<Ha;)it.charCodeAt(vn)===37&&(Or.push(it.slice(ia,vn)),(zn=o[Ga=it.charAt(++vn)])!=null?Ga=it.charAt(++vn):zn=Ga==="e"?" ":"0",(cl=lt[Ga])&&(Ga=cl(Ot,zn)),Or.push(Ga),ia=vn+1);return Or.push(it.slice(ia,vn)),Or.join("")}}function gn(it,lt){return function(Ot){var Or=n(1900,void 0,1),vn=ma(Or,it,Ot+="",0),ia,Ha;if(vn!=Ot.length)return null;if("Q"in Or)return new Date(Or.Q);if("s"in Or)return new Date(Or.s*1e3+("L"in Or?Or.L:0));if(lt&&!("Z"in Or)&&(Or.Z=0),"p"in Or&&(Or.H=Or.H%12+Or.p*12),Or.m===void 0&&(Or.m="q"in Or?Or.q:0),"V"in Or){if(Or.V<1||Or.V>53)return null;"w"in Or||(Or.w=1),"Z"in Or?(ia=a(n(Or.y,0,1)),Ha=ia.getUTCDay(),ia=Ha>4||Ha===0?r.utcMonday.ceil(ia):r.utcMonday(ia),ia=r.utcDay.offset(ia,(Or.V-1)*7),Or.y=ia.getUTCFullYear(),Or.m=ia.getUTCMonth(),Or.d=ia.getUTCDate()+(Or.w+6)%7):(ia=t(n(Or.y,0,1)),Ha=ia.getDay(),ia=Ha>4||Ha===0?r.timeMonday.ceil(ia):r.timeMonday(ia),ia=r.timeDay.offset(ia,(Or.V-1)*7),Or.y=ia.getFullYear(),Or.m=ia.getMonth(),Or.d=ia.getDate()+(Or.w+6)%7)}else("W"in Or||"U"in Or)&&("w"in Or||(Or.w="u"in Or?Or.u%7:"W"in Or?1:0),Ha="Z"in Or?a(n(Or.y,0,1)).getUTCDay():t(n(Or.y,0,1)).getDay(),Or.m=0,Or.d="W"in Or?(Or.w+6)%7+Or.W*7-(Ha+5)%7:Or.w+Or.U*7-(Ha+6)%7);return"Z"in Or?(Or.H+=Or.Z/100|0,Or.M+=Or.Z%100,a(Or)):t(Or)}}function ma(it,lt,Ot,Or){for(var vn=0,ia=lt.length,Ha=Ot.length,Ga,zn;vn<ia;){if(Or>=Ha)return-1;if(Ga=lt.charCodeAt(vn++),Ga===37){if(Ga=lt.charAt(vn++),zn=Yt[Ga in o?lt.charAt(vn++):Ga],!zn||(Or=zn(it,Ot,Or))<0)return-1}else if(Ga!=Ot.charCodeAt(Or++))return-1}return Or}function aa(it,lt,Ot){var Or=jt.exec(lt.slice(Ot));return Or?(it.p=da[Or[0].toLowerCase()],Ot+Or[0].length):-1}function La(it,lt,Ot){var Or=rn.exec(lt.slice(Ot));return Or?(it.w=Un[Or[0].toLowerCase()],Ot+Or[0].length):-1}function Sa(it,lt,Ot){var Or=Kt.exec(lt.slice(Ot));return Or?(it.w=mn[Or[0].toLowerCase()],Ot+Or[0].length):-1}function ko(it,lt,Ot){var Or=Rt.exec(lt.slice(Ot));return Or?(it.m=pa[Or[0].toLowerCase()],Ot+Or[0].length):-1}function qi(it,lt,Ot){var Or=Jr.exec(lt.slice(Ot));return Or?(it.m=ua[Or[0].toLowerCase()],Ot+Or[0].length):-1}function Xu(it,lt,Ot){return ma(it,Re,lt,Ot)}function Ql(it,lt,Ot){return ma(it,ur,lt,Ot)}function ul(it,lt,Ot){return ma(it,gr,lt,Ot)}function Wu(it){return na[it.getDay()]}function sl(it){return Gt[it.getDay()]}function $a(it){return Bt[it.getMonth()]}function Pi(it){return Aa[it.getMonth()]}function fl(it){return Nt[+(it.getHours()>=12)]}function Ri(it){return 1+~~(it.getMonth()/3)}function Mi(it){return na[it.getUTCDay()]}function eu(it){return Gt[it.getUTCDay()]}function ru(it){return Bt[it.getUTCMonth()]}function ju(it){return Aa[it.getUTCMonth()]}function tu(it){return Nt[+(it.getUTCHours()>=12)]}function Zu(it){return 1+~~(it.getUTCMonth()/3)}return{format:function(it){var lt=za(it+="",ya);return lt.toString=function(){return it},lt},parse:function(it){var lt=gn(it+="",!1);return lt.toString=function(){return it},lt},utcFormat:function(it){var lt=za(it+="",ba);return lt.toString=function(){return it},lt},utcParse:function(it){var lt=gn(it+="",!0);return lt.toString=function(){return it},lt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Me,Re,ur){var gr=Me<0?"-":"",Nt=(gr?-Me:Me)+"",Gt=Nt.length;return gr+(Gt<ur?new Array(ur-Gt+1).join(Re)+Nt:Nt)}function c(Me){return Me.replace(s,"\\$&")}function h(Me){return new RegExp("^(?:"+Me.map(c).join("|")+")","i")}function d(Me){for(var Re={},ur=-1,gr=Me.length;++ur<gr;)Re[Me[ur].toLowerCase()]=ur;return Re}function m(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+1));return gr?(Me.w=+gr[0],ur+gr[0].length):-1}function p(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+1));return gr?(Me.u=+gr[0],ur+gr[0].length):-1}function y(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.U=+gr[0],ur+gr[0].length):-1}function b(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.V=+gr[0],ur+gr[0].length):-1}function C(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.W=+gr[0],ur+gr[0].length):-1}function x(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+4));return gr?(Me.y=+gr[0],ur+gr[0].length):-1}function _(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.y=+gr[0]+(+gr[0]>68?1900:2e3),ur+gr[0].length):-1}function M(Me,Re,ur){var gr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Re.slice(ur,ur+6));return gr?(Me.Z=gr[1]?0:-(gr[2]+(gr[3]||"00")),ur+gr[0].length):-1}function T(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+1));return gr?(Me.q=gr[0]*3-3,ur+gr[0].length):-1}function A(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.m=gr[0]-1,ur+gr[0].length):-1}function D(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.d=+gr[0],ur+gr[0].length):-1}function P(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+3));return gr?(Me.m=0,Me.d=+gr[0],ur+gr[0].length):-1}function z(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.H=+gr[0],ur+gr[0].length):-1}function B(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.M=+gr[0],ur+gr[0].length):-1}function X(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+2));return gr?(Me.S=+gr[0],ur+gr[0].length):-1}function H(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+3));return gr?(Me.L=+gr[0],ur+gr[0].length):-1}function V(Me,Re,ur){var gr=l.exec(Re.slice(ur,ur+6));return gr?(Me.L=Math.floor(gr[0]/1e3),ur+gr[0].length):-1}function I(Me,Re,ur){var gr=u.exec(Re.slice(ur,ur+1));return gr?ur+gr[0].length:-1}function Q(Me,Re,ur){var gr=l.exec(Re.slice(ur));return gr?(Me.Q=+gr[0],ur+gr[0].length):-1}function ne(Me,Re,ur){var gr=l.exec(Re.slice(ur));return gr?(Me.s=+gr[0],ur+gr[0].length):-1}function te(Me,Re){return f(Me.getDate(),Re,2)}function ee(Me,Re){return f(Me.getHours(),Re,2)}function fe(Me,Re){return f(Me.getHours()%12||12,Re,2)}function ve(Me,Re){return f(1+r.timeDay.count(r.timeYear(Me),Me),Re,3)}function Ae(Me,Re){return f(Me.getMilliseconds(),Re,3)}function Ee(Me,Re){return Ae(Me,Re)+"000"}function Be(Me,Re){return f(Me.getMonth()+1,Re,2)}function Ue(Me,Re){return f(Me.getMinutes(),Re,2)}function ke(Me,Re){return f(Me.getSeconds(),Re,2)}function We(Me){var Re=Me.getDay();return Re===0?7:Re}function j(Me,Re){return f(r.timeSunday.count(r.timeYear(Me)-1,Me),Re,2)}function re(Me){var Re=Me.getDay();return Re>=4||Re===0?r.timeThursday(Me):r.timeThursday.ceil(Me)}function me(Me,Re){return Me=re(Me),f(r.timeThursday.count(r.timeYear(Me),Me)+(r.timeYear(Me).getDay()===4),Re,2)}function K(Me){return Me.getDay()}function $(Me,Re){return f(r.timeMonday.count(r.timeYear(Me)-1,Me),Re,2)}function le(Me,Re){return f(Me.getFullYear()%100,Re,2)}function we(Me,Re){return Me=re(Me),f(Me.getFullYear()%100,Re,2)}function Ne(Me,Re){return f(Me.getFullYear()%1e4,Re,4)}function $e(Me,Re){var ur=Me.getDay();return Me=ur>=4||ur===0?r.timeThursday(Me):r.timeThursday.ceil(Me),f(Me.getFullYear()%1e4,Re,4)}function er(Me){var Re=Me.getTimezoneOffset();return(Re>0?"-":(Re*=-1,"+"))+f(Re/60|0,"0",2)+f(Re%60,"0",2)}function ir(Me,Re){return f(Me.getUTCDate(),Re,2)}function sr(Me,Re){return f(Me.getUTCHours(),Re,2)}function Pe(Me,Re){return f(Me.getUTCHours()%12||12,Re,2)}function vr(Me,Re){return f(1+r.utcDay.count(r.utcYear(Me),Me),Re,3)}function hr(Me,Re){return f(Me.getUTCMilliseconds(),Re,3)}function dr(Me,Re){return hr(Me,Re)+"000"}function Ze(Me,Re){return f(Me.getUTCMonth()+1,Re,2)}function fr(Me,Re){return f(Me.getUTCMinutes(),Re,2)}function Dr(Me,Re){return f(Me.getUTCSeconds(),Re,2)}function Te(Me){var Re=Me.getUTCDay();return Re===0?7:Re}function Oe(Me,Re){return f(r.utcSunday.count(r.utcYear(Me)-1,Me),Re,2)}function Mr(Me){var Re=Me.getUTCDay();return Re>=4||Re===0?r.utcThursday(Me):r.utcThursday.ceil(Me)}function Nr(Me,Re){return Me=Mr(Me),f(r.utcThursday.count(r.utcYear(Me),Me)+(r.utcYear(Me).getUTCDay()===4),Re,2)}function Qe(Me){return Me.getUTCDay()}function Ie(Me,Re){return f(r.utcMonday.count(r.utcYear(Me)-1,Me),Re,2)}function Xe(Me,Re){return f(Me.getUTCFullYear()%100,Re,2)}function yr(Me,Re){return Me=Mr(Me),f(Me.getUTCFullYear()%100,Re,2)}function kr(Me,Re){return f(Me.getUTCFullYear()%1e4,Re,4)}function pr(Me,Re){var ur=Me.getUTCDay();return Me=ur>=4||ur===0?r.utcThursday(Me):r.utcThursday.ceil(Me),f(Me.getUTCFullYear()%1e4,Re,4)}function xr(){return"+0000"}function Pr(){return"%"}function Lr(Me){return+Me}function Hr(Me){return Math.floor(+Me/1e3)}var tr;Cr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Cr(Me){return tr=i(Me),e.timeFormat=tr.format,e.timeParse=tr.parse,e.utcFormat=tr.utcFormat,e.utcParse=tr.utcParse,tr}var cr="%Y-%m-%dT%H:%M:%S.%LZ";function Xr(Me){return Me.toISOString()}var Kr=Date.prototype.toISOString?Xr:e.utcFormat(cr);function Fr(Me){var Re=new Date(Me);return isNaN(Re)?null:Re}var Wr=+new Date("2000-01-01T00:00:00.000Z")?Fr:e.utcParse(cr);e.isoFormat=Kr,e.isoParse=Wr,e.timeFormatDefaultLocale=Cr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var vy=ae((xp,y_)=>{(function(e,r){typeof xp=="object"&&typeof y_!="undefined"?r(xp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(xp,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,D){if((P=(A=D?A.toExponential(D-1):A.toExponential()).indexOf("e"))<0)return null;var P,z=A.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+A.slice(P+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,D){return function(P,z){for(var B=P.length,X=[],H=0,V=A[0],I=0;B>0&&V>0&&(I+V+1>z&&(V=Math.max(1,z-I)),X.push(P.substring(B-=V,B+V)),!((I+=V+1)>z));)V=A[H=(H+1)%A.length];return X.reverse().join(D)}}function i(A){return function(D){return D.replace(/[0-9]/g,function(P){return A[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(A){if(!(D=o.exec(A)))throw new Error("invalid format: "+A);var D;return new u({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=u.prototype;function u(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(A){e:for(var D=A.length,P=1,z=-1,B;P<D;++P)switch(A[P]){case".":z=B=P;break;case"0":z===0&&(z=P),B=P;break;default:if(!+A[P])break e;z>0&&(z=0);break}return z>0?A.slice(0,z)+A.slice(B+1):A}var f;function c(A,D){var P=t(A,D);if(!P)return A+"";var z=P[0],B=P[1],X=B-(f=Math.max(-8,Math.min(8,Math.floor(B/3)))*3)+1,H=z.length;return X===H?z:X>H?z+new Array(X-H+1).join("0"):X>0?z.slice(0,X)+"."+z.slice(X):"0."+new Array(1-X).join("0")+t(A,Math.max(0,D+X-1))[0]}function h(A,D){var P=t(A,D);if(!P)return A+"";var z=P[0],B=P[1];return B<0?"0."+new Array(-B).join("0")+z:z.length>B+1?z.slice(0,B+1)+"."+z.slice(B+1):z+new Array(B-z.length+2).join("0")}var d={"%":function(A,D){return(A*100).toFixed(D)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,D){return A.toExponential(D)},f:function(A,D){return A.toFixed(D)},g:function(A,D){return A.toPrecision(D)},o:function(A){return Math.round(A).toString(8)},p:function(A,D){return h(A*100,D)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function m(A){return A}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var D=A.grouping===void 0||A.thousands===void 0?m:n(p.call(A.grouping,Number),A.thousands+""),P=A.currency===void 0?"":A.currency[0]+"",z=A.currency===void 0?"":A.currency[1]+"",B=A.decimal===void 0?".":A.decimal+"",X=A.numerals===void 0?m:i(p.call(A.numerals,String)),H=A.percent===void 0?"%":A.percent+"",V=A.minus===void 0?"-":A.minus+"",I=A.nan===void 0?"NaN":A.nan+"";function Q(te){te=l(te);var ee=te.fill,fe=te.align,ve=te.sign,Ae=te.symbol,Ee=te.zero,Be=te.width,Ue=te.comma,ke=te.precision,We=te.trim,j=te.type;j==="n"?(Ue=!0,j="g"):d[j]||(ke===void 0&&(ke=12),We=!0,j="g"),(Ee||ee==="0"&&fe==="=")&&(Ee=!0,ee="0",fe="=");var re=Ae==="$"?P:Ae==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",me=Ae==="$"?z:/[%p]/.test(j)?H:"",K=d[j],$=/[defgprs%]/.test(j);ke=ke===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function le(we){var Ne=re,$e=me,er,ir,sr;if(j==="c")$e=K(we)+$e,we="";else{we=+we;var Pe=we<0||1/we<0;if(we=isNaN(we)?I:K(Math.abs(we),ke),We&&(we=s(we)),Pe&&+we==0&&ve!=="+"&&(Pe=!1),Ne=(Pe?ve==="("?ve:V:ve==="-"||ve==="("?"":ve)+Ne,$e=(j==="s"?y[8+f/3]:"")+$e+(Pe&&ve==="("?")":""),$){for(er=-1,ir=we.length;++er<ir;)if(sr=we.charCodeAt(er),48>sr||sr>57){$e=(sr===46?B+we.slice(er+1):we.slice(er))+$e,we=we.slice(0,er);break}}}Ue&&!Ee&&(we=D(we,1/0));var vr=Ne.length+we.length+$e.length,hr=vr<Be?new Array(Be-vr+1).join(ee):"";switch(Ue&&Ee&&(we=D(hr+we,hr.length?Be-$e.length:1/0),hr=""),fe){case"<":we=Ne+we+$e+hr;break;case"=":we=Ne+hr+we+$e;break;case"^":we=hr.slice(0,vr=hr.length>>1)+Ne+we+$e+hr.slice(vr);break;default:we=hr+Ne+we+$e;break}return X(we)}return le.toString=function(){return te+""},le}function ne(te,ee){var fe=Q((te=l(te),te.type="f",te)),ve=Math.max(-8,Math.min(8,Math.floor(a(ee)/3)))*3,Ae=Math.pow(10,-ve),Ee=y[8+ve/3];return function(Be){return fe(Ae*Be)+Ee}}return{format:Q,formatPrefix:ne}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(A){return C=b(A),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(A){return Math.max(0,-a(Math.abs(A)))}function M(A,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(D)/3)))*3-a(Math.abs(A)))}function T(A,D){return A=Math.abs(A),D=Math.abs(D)-A,Math.max(0,a(D)-a(A))+1}e.FormatSpecifier=u,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=M,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var __=ae((Nme,b_)=>{"use strict";b_.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Wt=ae((Bme,x_)=>{"use strict";var EY=__();x_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&EY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Oa=ae((Ime,w_)=>{"use strict";w_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var hy=ae((wp,M_)=>{(function(e,r){typeof wp=="object"&&typeof M_!="undefined"?r(wp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(wp,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),u,s=l.length,f="";for(u=0;u<s;u+=3)f+=r[l[u]>>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,u=o.length,s,f=0,c,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(s=0;s<u;s+=4)c=t[o.charCodeAt(s)],h=t[o.charCodeAt(s+1)],d=t[o.charCodeAt(s+2)],m=t[o.charCodeAt(s+3)],y[f++]=c<<2|h>>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var uf=ae((Hme,A_)=>{"use strict";A_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vi=ae(Ll=>{"use strict";var LY=hy().decode,DY=uf(),dy=Array.isArray,FY=ArrayBuffer,qY=DataView;function T_(e){return FY.isView(e)&&!(e instanceof qY)}Ll.isTypedArray=T_;function Mp(e){return dy(e)||T_(e)}Ll.isArrayOrTypedArray=Mp;function PY(e){return!Mp(e[0])}Ll.isArray1D=PY;Ll.ensureArray=function(e,r){return dy(e)||(e=[]),e.length=r,e};var Bn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Bn.uint8c=Bn.u1c;Bn.uint8=Bn.u1;Bn.int8=Bn.i1;Bn.uint16=Bn.u2;Bn.int16=Bn.i2;Bn.uint32=Bn.u4;Bn.int32=Bn.i4;Bn.float32=Bn.f4;Bn.float64=Bn.f8;function py(e){return e.constructor===ArrayBuffer}Ll.isArrayBuffer=py;Ll.decodeTypedArraySpec=function(e){var r=[],t=RY(e),a=t.dtype,n=Bn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;py(o)||(o=LY(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],h=i*c,d=0;if(u===1)r=new n(o);else if(u===2)for(s=+l[1],f=0;f<s;f++)r[f]=new n(o,d,c),d+=h;else if(u===3){s=+l[1];for(var m=+l[2],p=0;p<m;p++)for(r[p]=[],f=0;f<s;f++)r[p][f]=new n(o,d,c),d+=h}else throw new Error("ndim: "+u+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};Ll.isTypedArraySpec=function(e){return DY(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||py(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function RY(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Ll.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,u,s,f;for(i=0;i<arguments.length;i++)o=arguments[i],u=o.length,u&&(n?e.push(o):(n=o,l=u),dy(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=u);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(s=new a(t),s.set(n),i=0;i<e.length;i++)o=e[i],s.set(o,l),l+=o.length;return s}for(s=new Array(t),f=0;f<n.length;f++)s[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)s[l+f]=o[f];l+=f}return s};Ll.maxRowLength=function(e){return k_(e,Math.max,0)};Ll.minRowLength=function(e){return k_(e,Math.min,1/0)};function k_(e,r,t){if(Mp(e))if(Mp(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var $v=ae((Ume,D_)=>{"use strict";var C_=Wt(),gy=Vi().isArrayOrTypedArray;D_.exports=function(r,t){if(C_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?IY(r,t,a):{set:E_(r,a,t),get:S_(r,a),astr:t,parts:a,obj:r}};function S_(e,r){return function(t){var a=e,n,i,o,l,u;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],u=0;u<a.length;u++)o[u]=S_(a[u],r.slice(l+1))(t),o[u]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!gy(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var zY=/(^|\.)args\[/;function my(e,r){return e===void 0||e===null&&!r.match(zY)}function E_(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=my(a,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!gy(n))throw"array index but container is not an array";if(u===-1){if(l=!BY(n,r.slice(s+1),a,t),l)break;return}if(!L_(n,u,r[s+1],l))break;if(n=n[u],typeof n!="object"||n===null)throw"container is not an object";i=NY(i,u),o.push([n,i])}if(l){if(s===r.length-1&&(delete n[r[s]],Array.isArray(n)&&+r[s]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[s]]=a}}function NY(e,r){var t=r;return C_(r)?t="["+r+"]":e&&(t="."+r),e+t}function BY(e,r,t,a){var n=gy(t),i=!0,o=t,l=a.replace("-1",0),u=n?!1:my(t,l),s=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],u=my(o,l)),u&&(i=!1),L_(e,f,s,u)&&E_(e[f],r,a.replace("-1",f))(o);return i}function L_(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function IY(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var R_=ae((Gme,P_)=>{"use strict";var f1=$v(),HY=/^\w*$/,OY=0,F_=1,Ap=2,q_=3,S0=4;P_.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,u={};t&&t.length?(l=f1(r,t),o=l.get()):o=r,t=t||"";var s={};if(o)for(i=0;i<o.length;i++)s[o[i][a]]=i;var f=HY.test(n),c={set:function(h,d){var m=d===null?S0:OY;if(!o){if(!l||m===S0)return;o=[],l.set(o)}var p=s[h];if(p===void 0){if(m===S0)return;m=m|q_,p=o.length,s[h]=p}else d!==(f?o[p][n]:f1(o[p],n).get())&&(m=m|Ap);var y=o[p]=o[p]||{};return y[a]=h,f?y[n]=d:f1(y,n).set(d),d!==null&&(m=m&~S0),u[p]=u[p]|m,c},get:function(h){if(o){var d=s[h];if(d!==void 0)return f?o[d][n]:f1(o[d],n).get()}},rename:function(h,d){var m=s[h];return m===void 0||(u[m]=u[m]|F_,s[d]=m,delete s[h],o[m][a]=d),c},remove:function(h){var d=s[h];if(d===void 0)return c;var m=o[d];if(Object.keys(m).length>2)return u[d]=u[d]|Ap,c.set(h,null);if(f){for(i=d;i<o.length;i++)u[i]=u[i]|q_;for(i=d;i<o.length;i++)s[o[i][a]]--;o.splice(d,1),delete s[h]}else f1(m,n).set(null),u[d]=u[d]|Ap|S0;return c},constructUpdate:function(){for(var h,d,m={},p=Object.keys(u),y=0;y<p.length;y++)d=p[y],h=t+"["+d+"]",o[d]?(u[d]&F_&&(m[h+"."+a]=o[d][a]),u[d]&Ap&&(f?m[h+"."+n]=u[d]&S0?null:o[d][n]:m[h+"."+n]=u[d]&S0?null:f1(o[d],n).get())):m[h]=null;return m}};return c}});var N_=ae((Yme,z_)=>{"use strict";var UY=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,GY=/^[^\.\[\]]+$/;z_.exports=function(e,r){for(;r;){var t=e.match(UY);if(t)e=t[1];else if(e.match(GY))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Tp=ae((Vme,B_)=>{"use strict";var YY=Wt();B_.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return YY(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var O_=ae((Xme,H_)=>{"use strict";var I_=Vi().isArrayOrTypedArray,Kv=uf();H_.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(I_(n)&&I_(i)&&Kv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&Kv(n[l])&&Kv(i[l])&&e(i[l],n[l])}else Kv(n)&&Kv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var c1={};u1(c1,{mod:()=>VY,modHalf:()=>XY});function VY(e,r){let t=e%r;return t<0?t+r:t}function XY(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var v1=l1(()=>{"use strict"});var _n=ae(rh=>{"use strict";var U_=uf(),Qv=Array.isArray;function WY(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}rh.extendFlat=function(...e){return eh(e,!1,!1,!1)};rh.extendDeep=function(...e){return eh(e,!0,!1,!1)};rh.extendDeepAll=function(...e){return eh(e,!0,!0,!1)};rh.extendDeepNoArrays=function(...e){return eh(e,!0,!1,!0)};function eh(e,r,t,a){var n=e[0],i=e.length,o,l,u,s,f,c,h;if(i===2&&Qv(n)&&Qv(e[1])&&n.length===0){if(h=WY(e[1],n),h)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)u=n[l],s=o[l],a&&Qv(s)?n[l]=s:r&&s&&(U_(s)||(f=Qv(s)))?(f?(f=!1,c=u&&Qv(u)?u:[]):c=u&&U_(u)?u:{},n[l]=eh([c,s],r,t,a)):(typeof s!="undefined"||t)&&(n[l]=s)}return n}});var vi=ae((jme,G_)=>{"use strict";G_.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var th=ae((Zme,Y_)=>{"use strict";Y_.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var h1=ae((Jme,W_)=>{"use strict";var V_=th(),X_=vi(),yy=X_({editType:"none"});yy.family.dflt=V_.HOVERFONT;yy.size.dflt=V_.HOVERFONTSIZE;W_.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:yy,grouptitlefont:X_({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var kp=ae(($me,j_)=>{"use strict";var jY=vi(),ah=h1().hoverlabel,nh=_n().extendFlat;j_.exports={hoverlabel:{bgcolor:nh({},ah.bgcolor,{arrayOk:!0}),bordercolor:nh({},ah.bordercolor,{arrayOk:!0}),font:jY({arrayOk:!0,editType:"none"}),align:nh({},ah.align,{arrayOk:!0}),namelength:nh({},ah.namelength,{arrayOk:!0}),showarrow:nh({},ah.showarrow),editType:"none"}}});var Bo=ae((Kme,Z_)=>{"use strict";var ZY=vi(),JY=kp();Z_.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:ZY({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:JY.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Ow=ae((i2e,Hw)=>{var f4=Object.defineProperty,$Y=Object.getOwnPropertyDescriptor,KY=Object.getOwnPropertyNames,QY=Object.prototype.hasOwnProperty,eV=(e,r)=>{for(var t in r)f4(e,t,{get:r[t],enumerable:!0})},rV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of KY(r))!QY.call(e,n)&&n!==t&&f4(e,n,{get:()=>r[n],enumerable:!(a=$Y(r,n))||a.enumerable});return e},tV=e=>rV(f4({},"__esModule",{value:!0}),e),ix={};eV(ix,{a98:()=>Wj,average:()=>KV,averageAngle:()=>wu,averageNumber:()=>wx,blend:()=>$W,blerp:()=>Yy,clampChroma:()=>gj,clampGamut:()=>N4,clampRgb:()=>mj,colorsNamed:()=>lx,convertA98ToXyz65:()=>Vy,convertCubehelixToRgb:()=>_x,convertDlchToLab65:()=>Rp,convertHsiToRgb:()=>Lx,convertHslToRgb:()=>qx,convertHsvToRgb:()=>m4,convertHwbToRgb:()=>Nx,convertItpToXyz65:()=>Wy,convertJabToJch:()=>Zy,convertJabToRgb:()=>w4,convertJabToXyz65:()=>_4,convertJchToJab:()=>Jy,convertLab65ToDlch:()=>zp,convertLab65ToRgb:()=>vh,convertLab65ToXyz65:()=>h4,convertLabToLch:()=>xs,convertLabToRgb:()=>A4,convertLabToXyz50:()=>Xp,convertLchToLab:()=>ws,convertLchuvToLuv:()=>C4,convertLrgbToOklab:()=>S4,convertLrgbToRgb:()=>R0,convertLuvToLchuv:()=>k4,convertLuvToXyz50:()=>Bp,convertOkhslToOklab:()=>Qy,convertOkhsvToOklab:()=>r4,convertOklabToLrgb:()=>x1,convertOklabToOkhsl:()=>Ky,convertOklabToOkhsv:()=>e4,convertOklabToRgb:()=>ph,convertP3ToXyz65:()=>t4,convertProphotoToXyz50:()=>i4,convertRec2020ToXyz65:()=>l4,convertRgbToCubehelix:()=>bx,convertRgbToHsi:()=>Dx,convertRgbToHsl:()=>Px,convertRgbToHsv:()=>g4,convertRgbToHwb:()=>Bx,convertRgbToJab:()=>x4,convertRgbToLab:()=>T4,convertRgbToLab65:()=>hh,convertRgbToLrgb:()=>P0,convertRgbToOklab:()=>dh,convertRgbToXyb:()=>vw,convertRgbToXyz50:()=>_1,convertRgbToXyz65:()=>sf,convertRgbToYiq:()=>bw,convertXybToRgb:()=>hw,convertXyz50ToLab:()=>Wp,convertXyz50ToLuv:()=>Np,convertXyz50ToProphoto:()=>n4,convertXyz50ToRgb:()=>b1,convertXyz50ToXyz65:()=>gw,convertXyz65ToA98:()=>Xy,convertXyz65ToItp:()=>jy,convertXyz65ToJab:()=>b4,convertXyz65ToLab65:()=>d4,convertXyz65ToP3:()=>a4,convertXyz65ToRec2020:()=>o4,convertXyz65ToRgb:()=>ff,convertXyz65ToXyz50:()=>mw,convertYiqToRgb:()=>_w,converter:()=>Da,cubehelix:()=>jj,differenceCie76:()=>VV,differenceCie94:()=>XV,differenceCiede2000:()=>WV,differenceCmc:()=>jV,differenceEuclidean:()=>y1,differenceHueChroma:()=>ch,differenceHueNaive:()=>xx,differenceHueSaturation:()=>fh,differenceHyab:()=>ZV,differenceItp:()=>$V,differenceKotsarenkoRamos:()=>JV,displayable:()=>z4,dlab:()=>Zj,dlch:()=>Jj,easingGamma:()=>Rw,easingInOutSine:()=>Vj,easingMidpoint:()=>Sw,easingSmootherstep:()=>Gj,easingSmoothstep:()=>Hj,easingSmoothstepInverse:()=>Oj,filterBrightness:()=>kj,filterContrast:()=>Cj,filterDeficiencyDeuter:()=>Bj,filterDeficiencyProt:()=>Nj,filterDeficiencyTrit:()=>Ij,filterGrayscale:()=>Lj,filterHueRotate:()=>Fj,filterInvert:()=>Dj,filterSaturate:()=>Ej,filterSepia:()=>Sj,fixupAlpha:()=>Ln,fixupHueDecreasing:()=>HV,fixupHueIncreasing:()=>IV,fixupHueLonger:()=>BV,fixupHueShorter:()=>xu,formatCss:()=>YW,formatHex:()=>VW,formatHex8:()=>XW,formatHsl:()=>jW,formatRgb:()=>WW,getMode:()=>hi,hsi:()=>$j,hsl:()=>Kj,hsv:()=>Qj,hwb:()=>eZ,inGamut:()=>Jp,interpolate:()=>oj,interpolateWith:()=>Lw,interpolateWithPremultipliedAlpha:()=>lj,interpolatorLinear:()=>at,interpolatorPiecewise:()=>gx,interpolatorSplineBasis:()=>Fw,interpolatorSplineBasisClosed:()=>qw,interpolatorSplineMonotone:()=>fj,interpolatorSplineMonotone2:()=>cj,interpolatorSplineMonotoneClosed:()=>vj,interpolatorSplineNatural:()=>uj,interpolatorSplineNaturalClosed:()=>sj,itp:()=>rZ,jab:()=>tZ,jch:()=>aZ,lab:()=>nZ,lab65:()=>iZ,lch:()=>oZ,lch65:()=>lZ,lchuv:()=>uZ,lerp:()=>L0,lrgb:()=>sZ,luv:()=>fZ,mapAlphaDivide:()=>Cw,mapAlphaMultiply:()=>kw,mapTransferGamma:()=>tj,mapTransferLinear:()=>q4,mapper:()=>mh,modeA98:()=>yx,modeCubehelix:()=>Mx,modeDlab:()=>Sx,modeDlch:()=>Ex,modeHsi:()=>Fx,modeHsl:()=>p4,modeHsv:()=>y4,modeHwb:()=>Hx,modeItp:()=>Gx,modeJab:()=>Yx,modeJch:()=>Vx,modeLab:()=>jp,modeLab65:()=>Wx,modeLch:()=>Zp,modeLch65:()=>Zx,modeLchuv:()=>Kx,modeLrgb:()=>Qx,modeLuv:()=>ew,modeOkhsl:()=>tw,modeOkhsv:()=>aw,modeOklab:()=>iw,modeOklch:()=>lw,modeP3:()=>uw,modeProphoto:()=>sw,modeRec2020:()=>fw,modeRgb:()=>q0,modeXyb:()=>dw,modeXyz50:()=>pw,modeXyz65:()=>yw,modeYiq:()=>xw,nearest:()=>_j,okhsl:()=>cZ,okhsv:()=>vZ,oklab:()=>hZ,oklch:()=>dZ,p3:()=>pZ,parse:()=>dx,parseHex:()=>sx,parseHsl:()=>zx,parseHslLegacy:()=>Rx,parseHwb:()=>Ix,parseLab:()=>Xx,parseLch:()=>jx,parseNamed:()=>ux,parseOklab:()=>nw,parseOklch:()=>ow,parseRgb:()=>px,parseRgbLegacy:()=>fx,parseTransparent:()=>mx,prophoto:()=>mZ,random:()=>rj,rec2020:()=>gZ,removeParser:()=>mV,rgb:()=>yZ,round:()=>ww,samples:()=>pj,serializeHex:()=>F4,serializeHex8:()=>Mw,serializeHsl:()=>Tw,serializeRgb:()=>Aw,toGamut:()=>yj,trilerp:()=>CV,unlerp:()=>kV,useMode:()=>wa,useParser:()=>vx,wcagContrast:()=>Xj,wcagLuminance:()=>s4,xyb:()=>bZ,xyz50:()=>_Z,xyz65:()=>xZ,yiq:()=>wZ});Hw.exports=tV(ix);var aV=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},ox=aV,nV={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},lx=nV,iV=e=>ox(lx[e.toLowerCase()],6),ux=iV,oV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,lV=e=>{let r;return(r=e.match(oV))?ox(parseInt(r[1],16),r[1].length):void 0},sx=lV,Xi="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Qme=`(?:${Xi}|none)`,lh=`${Xi}%`,e2e=`(?:${Xi}%|none)`,c4=`(?:${Xi}%|${Xi})`,uV=`(?:${Xi}%|${Xi}|none)`,sV=`(?:${Xi}(deg|grad|rad|turn)|${Xi})`,r2e=`(?:${Xi}(deg|grad|rad|turn)|${Xi}|none)`,m1="\\s*,\\s*",t2e=new RegExp("^"+uV+"$"),fV=new RegExp(`^rgba?\\(\\s*${Xi}${m1}${Xi}${m1}${Xi}\\s*(?:,\\s*${c4}\\s*)?\\)$`),cV=new RegExp(`^rgba?\\(\\s*${lh}${m1}${lh}${m1}${lh}\\s*(?:,\\s*${c4}\\s*)?\\)$`),vV=e=>{let r={mode:"rgb"},t;if(t=e.match(fV))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(cV))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},fx=vV,hV=(e,r)=>e===void 0?void 0:typeof e!="object"?dx(e):e.mode!==void 0?e:r?Na(ha({},e),{mode:r}):void 0,Dl=hV,dV=(e="rgb")=>r=>(r=Dl(r,e))!==void 0?r.mode===e?r:_u[r.mode][e]?_u[r.mode][e](r):e==="rgb"?_u[r.mode].rgb(r):_u.rgb[e](_u[r.mode].rgb(r)):void 0,Da=dV,_u={},cx={},g1=[],v4={},pV=e=>e,wa=e=>(_u[e.mode]=ha(ha({},_u[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{_u[r]||(_u[r]={}),_u[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=pV)}),cx[e.mode]=e,(e.parse||[]).forEach(r=>{vx(r,e.mode)}),Da(e.mode)),hi=e=>cx[e],vx=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");v4[e]=r}else typeof e=="function"&&g1.indexOf(e)<0&&g1.push(e)},mV=e=>{if(typeof e=="string")delete v4[e];else if(typeof e=="function"){let r=g1.indexOf(e);r>0&&g1.splice(r,1)}},Uy=/[^\x00-\x7F]|[a-zA-Z_]/,gV=/[^\x00-\x7F]|[-\w]/,Zr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},St=0;function Cp(e){let r=e[St],t=e[St+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[St+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Gy(e){if(St>=e.length)return!1;let r=e[St];if(Uy.test(r))return!0;if(r==="-"){if(e.length-St<2)return!1;let t=e[St+1];return!!(t==="-"||Uy.test(t))}return!1}var yV={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function ih(e){let r="";if((e[St]==="-"||e[St]==="+")&&(r+=e[St++]),r+=Sp(e),e[St]==="."&&/\d/.test(e[St+1])&&(r+=e[St++]+Sp(e)),(e[St]==="e"||e[St]==="E")&&((e[St+1]==="-"||e[St+1]==="+")&&/\d/.test(e[St+2])?r+=e[St++]+e[St++]+Sp(e):/\d/.test(e[St+1])&&(r+=e[St++]+Sp(e))),Gy(e)){let t=Dp(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Zr.Hue,value:r*yV[t]}:void 0}return e[St]==="%"?(St++,{type:Zr.Percentage,value:+r}):{type:Zr.Number,value:+r}}function Sp(e){let r="";for(;/\d/.test(e[St]);)r+=e[St++];return r}function Dp(e){let r="";for(;St<e.length&&gV.test(e[St]);)r+=e[St++];return r}function bV(e){let r=Dp(e);return e[St]==="("?(St++,{type:Zr.Function,value:r}):r==="none"?{type:Zr.None,value:void 0}:{type:Zr.Ident,value:r}}function _V(e=""){let r=e.trim(),t=[],a;for(St=0;St<r.length;){if(a=r[St++],a===`
`||a===" "||a===" "){for(;St<r.length&&(r[St]===`
`||r[St]===" "||r[St]===" ");)St++;continue}if(a===",")return;if(a===")"){t.push({type:Zr.ParenClose});continue}if(a==="+"){if(St--,Cp(r)){t.push(ih(r));continue}return}if(a==="-"){if(St--,Cp(r)){t.push(ih(r));continue}if(Gy(r)){t.push({type:Zr.Ident,value:Dp(r)});continue}return}if(a==="."){if(St--,Cp(r)){t.push(ih(r));continue}return}if(a==="/"){for(;St<r.length&&(r[St]===`
`||r[St]===" "||r[St]===" ");)St++;let n;if(Cp(r)&&(n=ih(r),n.type!==Zr.Hue)){t.push({type:Zr.Alpha,value:n});continue}if(Gy(r)&&Dp(r)==="none"){t.push({type:Zr.Alpha,value:{type:Zr.None,value:void 0}});continue}return}if(/\d/.test(a)){St--,t.push(ih(r));continue}if(Uy.test(a)){St--,t.push(bV(r));continue}return}return t}function xV(e){e._i=0;let r=e[e._i++];if(!r||r.type!==Zr.Function||r.value!=="color"||(r=e[e._i++],r.type!==Zr.Ident))return;let t=v4[r.value];if(!t)return;let a={mode:t},n=hx(e,!1);if(!n)return;let i=hi(t).channels;for(let o=0,l,u;o<i.length;o++)l=n[o],u=i[o],l.type!==Zr.None&&(a[u]=l.type===Zr.Number?l.value:l.value/100,u==="alpha"&&(a[u]=Math.max(0,Math.min(1,a[u]))));return a}function hx(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===Zr.None||a.type===Zr.Number||a.type===Zr.Alpha||a.type===Zr.Percentage||r&&a.type===Zr.Hue){t.push(a);continue}if(a.type===Zr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==Zr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Zr.None,value:void 0}),t.every(n=>n.type!==Zr.Alpha)?t:void 0}}function wV(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Zr.Function)return;let a=hx(e,r);if(a)return a.unshift(t.value),a}var MV=e=>{if(typeof e!="string")return;let r=_V(e),t=r?wV(r,!0):void 0,a,n=0,i=g1.length;for(;n<i;)if((a=g1[n++](e,t))!==void 0)return a;return r?xV(r):void 0},dx=MV;function AV(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.r=a.type===Zr.Number?a.value/255:a.value/100),n.type!==Zr.None&&(t.g=n.type===Zr.Number?n.value/255:n.value/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value/255:i.value/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var px=AV,TV=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,mx=TV,L0=(e,r,t)=>e+t*(r-e),kV=(e,r,t)=>(t-e)/(r-e),Yy=(e,r,t,a,n,i)=>L0(L0(e,r,n),L0(t,a,n),i),CV=(e,r,t,a,n,i,o,l,u,s,f)=>L0(Yy(e,r,t,a,u,s),Yy(n,i,o,l,u,s),f),SV=e=>{let r=[];for(let t=0;t<e.length-1;t++){let a=e[t],n=e[t+1];a===void 0&&n===void 0?r.push(void 0):a!==void 0&&n!==void 0?r.push([a,n]):r.push(a!==void 0?[a,a]:[n,n])}return r},gx=e=>r=>{let t=SV(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},at=gx(L0),Ln=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},EV={mode:"rgb",channels:["r","g","b","alpha"],parse:[px,sx,fx,ux,mx,"srgb"],serialize:"srgb",interpolate:{r:at,g:at,b:at,alpha:{use:at,fixup:Ln}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},q0=EV,by=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),LV=e=>{let r=by(e.r),t=by(e.g),a=by(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Vy=LV,_y=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),DV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:_y(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:_y(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:_y(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},Xy=DV,xy=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},FV=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:xy(e),g:xy(r),b:xy(t)};return a!==void 0&&(n.alpha=a),n},P0=FV,qV=e=>{let{r,g:t,b:a,alpha:n}=P0(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},sf=qV,wy=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},PV=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:wy(e),g:wy(r),b:wy(t)};return a!==void 0&&(i.alpha=a),i},R0=PV,RV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=R0({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},ff=RV,zV=Na(ha({},q0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Xy(sf(e)),xyz65:Xy},toMode:{rgb:e=>ff(Vy(e)),xyz65:Vy}}),yx=zV,NV=e=>(e=e%360)<0?e+360:e,ri=NV,Hp=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ri(t);return a===0||e[a-1]===void 0?i:r(i-ri(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),xu=e=>Hp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),BV=e=>Hp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),IV=e=>Hp(e,r=>r>=0?r:r+360),HV=e=>Hp(e,r=>r<=0?r:r-360),Wn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],OV=Math.PI/180,UV=180/Math.PI,J_=Wn[3]*Wn[4],$_=Wn[1]*Wn[4],K_=Wn[1]*Wn[2]-Wn[0]*Wn[3],GV=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(K_*t+e*J_-r*$_)/(K_+J_-$_),i=t-n,o=(Wn[4]*(r-n)-Wn[2]*i)/Wn[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Wn[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*UV-120),a!==void 0&&(l.alpha=a),l},bx=GV,YV=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*OV,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(Wn[0]*o+Wn[1]*l),n.g=t+i*(Wn[2]*o+Wn[3]*l),n.b=t+i*(Wn[4]*o+Wn[5]*l),a!==void 0&&(n.alpha=a),n},_x=YV,fh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ri(e.h),a=ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},xx=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ri(e.h),a=ri(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},ch=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ri(e.h),a=ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},y1=(e="rgb",r=[1,1,1,0])=>{let t=hi(e),a=t.channels,n=t.difference,i=Da(e);return(o,l)=>{let u=i(o),s=i(l);return Math.sqrt(a.reduce((f,c,h)=>{let d=n[c]?n[c](u,s):u[c]-s[c];return f+(r[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},VV=()=>y1("lab65"),XV=(e=1,r=.045,t=.015)=>{let a=Da("lab65");return(n,i)=>{let o=a(n),l=a(i),u=o.l,s=o.a,f=o.b,c=Math.sqrt(s*s+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=Math.pow(u-h,2),b=Math.pow(c-p,2),C=Math.pow(s-d,2)+Math.pow(f-m,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},WV=(e=1,r=1,t=1)=>{let a=Da("lab65");return(n,i)=>{let o=a(n),l=a(i),u=o.l,s=o.a,f=o.b,c=Math.sqrt(s*s+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=(c+p)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),C=s*(1+b),x=d*(1+b),_=Math.sqrt(C*C+f*f),M=Math.sqrt(x*x+m*m),T=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);T+=(T<0)*2*Math.PI;let A=Math.abs(x)+Math.abs(m)===0?0:Math.atan2(m,x);A+=(A<0)*2*Math.PI;let D=h-u,P=M-_,z=_*M===0?0:A-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let B=2*Math.sqrt(_*M)*Math.sin(z/2),X=(u+h)/2,H=(_+M)/2,V;_*M===0?V=T+A:(V=(T+A)/2,V-=(Math.abs(T-A)>Math.PI)*Math.PI,V+=(V<0)*2*Math.PI);let I=Math.pow(X-50,2),Q=1-.17*Math.cos(V-Math.PI/6)+.24*Math.cos(2*V)+.32*Math.cos(3*V+Math.PI/30)-.2*Math.cos(4*V-63*Math.PI/180),ne=1+.015*I/Math.sqrt(20+I),te=1+.045*H,ee=1+.015*H*Q,fe=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*V-275)/25,2)),ve=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),Ae=-1*Math.sin(2*fe)*ve;return Math.sqrt(Math.pow(D/(e*ne),2)+Math.pow(P/(r*te),2)+Math.pow(B/(t*ee),2)+Ae*P/(r*te)*B/(t*ee))}},jV=(e=1,r=1)=>{let t=Da("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,u=i.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(n),h=c.l,d=c.a,m=c.b,p=Math.sqrt(d*d+m*m),y=Math.pow(o-h,2),b=Math.pow(s-p,2),C=Math.pow(l-d,2)+Math.pow(u-m,2)-b,x=Math.sqrt(Math.pow(s,4)/(Math.pow(s,4)+1900)),_=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=o<16?.511:.040975*o/(1+.01765*o),T=.0638*s/(1+.0131*s)+.638,A=T*(x*_+1-x);return Math.sqrt(y/Math.pow(e*M,2)+b/Math.pow(r*T,2)+C/Math.pow(A,2))}},ZV=()=>{let e=Da("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},JV=()=>y1("yiq",[.5053,.299,.1957]),$V=()=>y1("itp",[518400,129600,518400]),wu=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},wx=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},My=e=>typeof e=="function";function KV(e,r="rgb",t){let a=hi(r),n=e.map(Da(r));return a.channels.reduce((i,o)=>{let l=n.map(u=>u[o]).filter(u=>u!==void 0);if(l.length){let u;My(t)?u=t:t&&My(t[o])?u=t[o]:a.average&&My(a.average[o])?u=a.average[o]:u=wx,i[o]=u(l,o)}return i},{mode:r})}var QV={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:bx},toMode:{rgb:_x},interpolate:{h:{use:at,fixup:xu},s:at,l:at,alpha:{use:at,fixup:Ln}},difference:{h:fh},average:{h:wu}},Mx=QV,eX=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},xs=eX,rX=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},ws=rX,Ax=Math.pow(29,3)/Math.pow(3,3),Tx=Math.pow(6,3)/Math.pow(29,3),En={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},p1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},a2e=Math.pow(29,3)/Math.pow(3,3),n2e=Math.pow(6,3)/Math.pow(29,3),Ay=e=>Math.pow(e,3)>Tx?Math.pow(e,3):(116*e-16)/Ax,tX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:Ay(i)*p1.X,y:Ay(n)*p1.Y,z:Ay(o)*p1.Z};return a!==void 0&&(l.alpha=a),l},h4=tX,aX=e=>ff(h4(e)),vh=aX,Ty=e=>e>Tx?Math.cbrt(e):(Ax*e+16)/116,nX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ty(e/p1.X),i=Ty(r/p1.Y),o=Ty(t/p1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},d4=nX,iX=e=>{let r=d4(sf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},hh=iX,Fp=1,kx=1,sh=26/180*Math.PI,qp=Math.cos(sh),Pp=Math.sin(sh),Cx=100/Math.log(139/100),oX=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Fp/Cx)-1)/.0039},i=(Math.exp(.0435*r*kx*Fp)-1)/.075,o=i*Math.cos(t/180*Math.PI-sh),l=i*Math.sin(t/180*Math.PI-sh);return n.a=o*qp-l/.83*Pp,n.b=o*Pp+l/.83*qp,a!==void 0&&(n.alpha=a),n},Rp=oX,lX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*qp+t*Pp,i=.83*(t*qp-r*Pp),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Cx/Fp*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*kx*Fp)};return l.c&&(l.h=ri((Math.atan2(i,n)+sh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},zp=lX,Q_=e=>Rp(xs(e,"dlch")),ex=e=>ws(zp(e),"dlab"),uX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Q_,rgb:e=>vh(Q_(e))},fromMode:{lab65:ex,rgb:e=>ex(hh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:at,a:at,b:at,alpha:{use:at,fixup:Ln}}},Sx=uX,sX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Rp,dlab:e=>ws(e,"dlab"),rgb:e=>vh(Rp(e))},fromMode:{lab65:zp,dlab:e=>xs(e,"dlch"),rgb:e=>zp(hh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:at,c:at,h:{use:at,fixup:xu},alpha:{use:at,fixup:Ln}},difference:{h:ch},average:{h:wu}},Ex=sX;function Lx({h:e,s:r,i:t,alpha:a}){e=ri(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Dx({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var fX={mode:"hsi",toMode:{rgb:Lx},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Dx},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:at,fixup:xu},s:at,i:at,alpha:{use:at,fixup:Ln}},difference:{h:fh},average:{h:wu}},Fx=fX;function qx({h:e,s:r,l:t,alpha:a}){e=ri(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t+r*(t<.5?t:1-t),i=n-(n-t)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:i,b:2*t-n};break;case 1:o={r:i,g:n,b:2*t-n};break;case 2:o={r:2*t-n,g:n,b:i};break;case 3:o={r:2*t-n,g:i,b:n};break;case 4:o={r:i,g:2*t-n,b:n};break;case 5:o={r:n,g:2*t-n,b:i};break;default:o={r:2*t-n,g:2*t-n,b:2*t-n}}return o.mode="rgb",a!==void 0&&(o.alpha=a),o}function Px({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var cX=(e,r)=>{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},vX=cX,hX=new RegExp(`^hsla?\\(\\s*${sV}${m1}${lh}${m1}${lh}\\s*(?:,\\s*${c4}\\s*)?\\)$`),dX=e=>{let r=e.match(hX);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=vX(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},Rx=dX;function pX(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Percentage)return;t.h=a.value}if(n.type!==Zr.None){if(n.type===Zr.Hue)return;t.s=n.value/100}if(i.type!==Zr.None){if(i.type===Zr.Hue)return;t.l=i.value/100}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var zx=pX,mX={mode:"hsl",toMode:{rgb:qx},fromMode:{rgb:Px},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zx,Rx],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:at,fixup:xu},s:at,l:at,alpha:{use:at,fixup:Ln}},difference:{h:fh},average:{h:wu}},p4=mX;function m4({h:e,s:r,v:t,alpha:a}){e=ri(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function g4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var gX={mode:"hsv",toMode:{rgb:m4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:g4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:at,fixup:xu},s:at,v:at,alpha:{use:at,fixup:Ln}},difference:{h:fh},average:{h:wu}},y4=gX;function Nx({h:e,w:r,b:t,alpha:a}){if(r===void 0&&(r=0),t===void 0&&(t=0),r+t>1){let n=r+t;r/=n,t/=n}return m4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function Bx(e){let r=g4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function yX(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Percentage)return;t.h=a.value}if(n.type!==Zr.None){if(n.type===Zr.Hue)return;t.w=n.value/100}if(i.type!==Zr.None){if(i.type===Zr.Hue)return;t.b=i.value/100}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var Ix=yX,bX={mode:"hwb",toMode:{rgb:Nx},fromMode:{rgb:Bx},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Ix],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:at,fixup:xu},w:at,b:at,alpha:{use:at,fixup:Ln}},difference:{h:xx},average:{h:wu}},Hx=bX,Ox=203,Op=.1593017578125,Ux=78.84375,Up=.8359375,Gp=18.8515625,Yp=18.6875;function ky(e){if(e<0)return 0;let r=Math.pow(e,1/Ux);return 1e4*Math.pow(Math.max(0,r-Up)/(Gp-Yp*r),1/Op)}function Cy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Op);return Math.pow((Up+Gp*r)/(1+Yp*r),Ux)}var Sy=e=>Math.max(e/Ox,0),_X=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=ky(e+.008609037037932761*r+.11102962500302593*t),i=ky(e-.00860903703793275*r-.11102962500302599*t),o=ky(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Sy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:Sy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:Sy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Wy=_X,Ey=(e=0)=>Math.max(e*Ox,0),xX=({x:e,y:r,z:t,alpha:a})=>{let n=Ey(e),i=Ey(r),o=Ey(t),l=Cy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),u=Cy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),s=Cy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,h=4.378173828125*l-4.24560546875*u-.132568359375*s,d={mode:"itp",i:f,t:c,p:h};return a!==void 0&&(d.alpha=a),d},jy=xX,wX={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Wy,rgb:e=>ff(Wy(e))},fromMode:{xyz65:jy,rgb:e=>jy(sf(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:at,t:at,p:at,alpha:{use:at,fixup:Ln}}},Gx=wX,MX=134.03437499999998,AX=16295499532821565e-27,Ly=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Op);return Math.pow((Up+Gp*r)/(1+Yp*r),MX)},Dy=(e=0)=>Math.max(e*203,0),TX=({x:e,y:r,z:t,alpha:a})=>{e=Dy(e),r=Dy(r),t=Dy(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Ly(.41478972*n+.579999*i+.014648*t),l=Ly(-.20151*n+1.120649*i+.0531008*t),u=Ly(-.0166008*n+.2648*i+.6684799*t),s=(o+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-AX,a:3.524*o-4.066708*l+.542708*u,b:.199076*o+1.096799*l-1.295875*u};return a!==void 0&&(f.alpha=a),f},b4=TX,kX=134.03437499999998,rx=16295499532821565e-27,Fy=e=>{if(e<0)return 0;let r=Math.pow(e,1/kX);return 1e4*Math.pow((Up-r)/(Yp*r-Gp),1/Op)},qy=e=>e/203,CX=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+rx)/(.44+.56*(e+rx)),i=Fy(n+.13860504*r+.058047316*t),o=Fy(n-.13860504*r-.058047316*t),l=Fy(n-.096019242*r-.8118919*t),u={mode:"xyz65",x:qy(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:qy(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:qy(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(u.alpha=a),u},_4=CX,SX=e=>{let r=b4(sf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x4=SX,EX=e=>ff(_4(e)),w4=EX,LX={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x4,xyz65:b4},toMode:{rgb:w4,xyz65:_4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:at,a:at,b:at,alpha:{use:at,fixup:Ln}}},Yx=LX,DX=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Zy=DX,FX=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Jy=FX,qX={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Jy,rgb:e=>w4(Jy(e))},fromMode:{rgb:e=>Zy(x4(e)),jab:Zy},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:at,fixup:xu},c:at,j:at,alpha:{use:at,fixup:Ln}},difference:{h:ch},average:{h:wu}},Vx=qX,Vp=Math.pow(29,3)/Math.pow(3,3),M4=Math.pow(6,3)/Math.pow(29,3),Py=e=>Math.pow(e,3)>M4?Math.pow(e,3):(116*e-16)/Vp,PX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:Py(i)*En.X,y:Py(n)*En.Y,z:Py(o)*En.Z};return a!==void 0&&(l.alpha=a),l},Xp=PX,RX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=R0({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},b1=RX,zX=e=>b1(Xp(e)),A4=zX,NX=e=>{let{r,g:t,b:a,alpha:n}=P0(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},_1=NX,Ry=e=>e>M4?Math.cbrt(e):(Vp*e+16)/116,BX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ry(e/En.X),i=Ry(r/En.Y),o=Ry(t/En.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},Wp=BX,IX=e=>{let r=Wp(_1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T4=IX;function HX(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Zr.None&&(t.a=n.type===Zr.Number?n.value:n.value*125/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value:i.value*125/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var Xx=HX,OX={mode:"lab",toMode:{xyz50:Xp,rgb:A4},fromMode:{xyz50:Wp,rgb:T4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Xx],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:at,a:at,b:at,alpha:{use:at,fixup:Ln}}},jp=OX,UX=Na(ha({},jp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:h4,rgb:vh},fromMode:{xyz65:d4,rgb:hh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Wx=UX;function GX(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Zr.None&&(t.c=Math.max(0,n.type===Zr.Number?n.value:n.value*150/100)),i.type!==Zr.None){if(i.type===Zr.Percentage)return;t.h=i.value}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var jx=GX,YX={mode:"lch",toMode:{lab:ws,rgb:e=>A4(ws(e))},fromMode:{rgb:e=>xs(T4(e)),lab:xs},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[jx],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:at,fixup:xu},c:at,l:at,alpha:{use:at,fixup:Ln}},difference:{h:ch},average:{h:wu}},Zp=YX,VX=Na(ha({},Zp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ws(e,"lab65"),rgb:e=>vh(ws(e,"lab65"))},fromMode:{rgb:e=>xs(hh(e),"lch65"),lab65:e=>xs(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Zx=VX,XX=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},k4=XX,WX=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},C4=WX,Jx=(e,r,t)=>4*e/(e+15*r+3*t),$x=(e,r,t)=>9*r/(e+15*r+3*t),jX=Jx(En.X,En.Y,En.Z),ZX=$x(En.X,En.Y,En.Z),JX=e=>e<=M4?Vp*e:116*Math.cbrt(e)-16,$X=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=JX(r/En.Y),i=Jx(e,r,t),o=$x(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-jX),o=13*n*(o-ZX));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Np=$X,KX=(e,r,t)=>4*e/(e+15*r+3*t),QX=(e,r,t)=>9*r/(e+15*r+3*t),eW=KX(En.X,En.Y,En.Z),rW=QX(En.X,En.Y,En.Z),tW=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+eW,i=t/(13*e)+rW,o=En.Y*(e<=8?e/Vp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),u=o*(12-3*n-20*i)/(4*i),s={mode:"xyz50",x:l,y:o,z:u};return a!==void 0&&(s.alpha=a),s},Bp=tW,aW=e=>k4(Np(_1(e))),nW=e=>b1(Bp(C4(e))),iW={mode:"lchuv",toMode:{luv:C4,rgb:nW},fromMode:{rgb:aW,luv:k4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:at,fixup:xu},c:at,l:at,alpha:{use:at,fixup:Ln}},difference:{h:ch},average:{h:wu}},Kx=iW,oW=Na(ha({},q0),{mode:"lrgb",toMode:{rgb:R0},fromMode:{rgb:P0},parse:["srgb-linear"],serialize:"srgb-linear"}),Qx=oW,lW={mode:"luv",toMode:{xyz50:Bp,rgb:e=>b1(Bp(e))},fromMode:{xyz50:Np,rgb:e=>Np(_1(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:at,u:at,v:at,alpha:{use:at,fixup:Ln}}},ew=lW,uW=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},S4=uW,sW=e=>{let r=S4(P0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=sW,fW=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},x1=fW,cW=e=>R0(x1(e)),ph=cW;function $y(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Ip(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function vW(e,r){let t,a,n,i,o,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,h=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let m=1+f*c,p=1+f*h,y=1+f*d,b=m*m*m,C=p*p*p,x=y*y*y,_=3*c*m*m,M=3*h*p*p,T=3*d*y*y,A=6*c*c*m,D=6*h*h*p,P=6*d*d*y,z=l*b+u*C+s*x,B=l*_+u*M+s*T,X=l*A+u*D+s*P;f=f-z*B/(B*B-.5*z*X)}return f}function E4(e,r){let t=vW(e,r),a=x1({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function hW(e,r,t,a,n,i=null){i||(i=E4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,u=a,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,h=l+u*s,d=l+u*f,m=l+u*c;{let p=n*(1-o)+o*t,y=o*a,b=p+y*s,C=p+y*f,x=p+y*c,_=b*b*b,M=C*C*C,T=x*x*x,A=3*h*b*b,D=3*d*C*C,P=3*m*x*x,z=6*h*h*b,B=6*d*d*C,X=6*m*m*x,H=4.0767416621*_-3.3077115913*M+.2309699292*T-1,V=4.0767416621*A-3.3077115913*D+.2309699292*P,I=4.0767416621*z-3.3077115913*B+.2309699292*X,Q=V/(V*V-.5*H*I),ne=-H*Q,te=-1.2684380046*_+2.6097574011*M-.3413193965*T-1,ee=-1.2684380046*A+2.6097574011*D-.3413193965*P,fe=-1.2684380046*z+2.6097574011*B-.3413193965*X,ve=ee/(ee*ee-.5*te*fe),Ae=-te*ve,Ee=-.0041960863*_-.7034186147*M+1.707614701*T-1,Be=-.0041960863*A-.7034186147*D+1.707614701*P,Ue=-.0041960863*z-.7034186147*B+1.707614701*X,ke=Be/(Be*Be-.5*Ee*Ue),We=-Ee*ke;ne=Q>=0?ne:1e6,Ae=ve>=0?Ae:1e6,We=ke>=0?We:1e6,o+=Math.min(ne,Math.min(Ae,We))}}}return o}function L4(e,r,t=null){t||(t=E4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function rw(e,r,t){let a=E4(r,t),n=hW(r,t,e,1,e,a),i=L4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),u=n/Math.min(e*i[0],(1-e)*i[1]),s=e*o,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,n]}function Ky(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:$y(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,u]=rw(r,t/i,a/i),s;if(i<l){let f=0,c=.8*o,h=1-c/l;s=(i-f)/(c+h*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,h=1-c/(u-l);s=.8+.2*((i-f)/(c+h*(i-f)))}return s&&(n.s=s,n.h=ri(Math.atan2(a,t)*180/Math.PI)),n}function Qy(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,n={mode:"oklab",l:Ip(a)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!t||a===1)return n.a=n.b=0,n;let i=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[l,u,s]=rw(n.l,i,o),f,c,h,d;t<.8?(f=1.25*t,c=0,h=.8*l,d=1-h/u):(f=5*(t-.8),c=u,h=.2*u*u*1.25*1.25/l,d=1-h/(s-u));let m=c+f*h/(1-d*f);return n.a=m*i,n.b=m*o,n}var dW=Na(ha({},p4),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Ky,rgb:e=>Ky(dh(e))},toMode:{oklab:Qy,rgb:e=>ph(Qy(e))}}),tw=dW;function e4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,u]=L4(i,o),s=.5,f=1-s/l,c=u/(n+r*u),h=c*r,d=c*n,m=Ip(h),p=d*m/h,y=x1({l:m,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*$y(r)/r,r=$y(r);let C={mode:"okhsv",s:n?(s+u)*d/(u*s+u*f*d):0,v:r?r/h:0};return C.s&&(C.h=ri(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function r4(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,u]=L4(i,o),s=.5,f=1-s/l,c=1-a*s/(s+u-u*f*a),h=a*u*s/(s+u-u*f*a),d=Ip(c),m=h*d/c,p=x1({l:d,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(p.r,p.g,p.b,0)),b=Ip(n*c),C=h*b/c;return r.l=b*y,r.a=C*i*y,r.b=C*o*y,r}var pW=Na(ha({},y4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:e4,rgb:e=>e4(dh(e))},toMode:{oklab:r4,rgb:e=>ph(r4(e))}}),aw=pW;function mW(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Zr.Hue||n.type===Zr.Hue||i.type===Zr.Hue))return a.type!==Zr.None&&(t.l=Math.min(Math.max(0,a.type===Zr.Number?a.value:a.value/100),1)),n.type!==Zr.None&&(t.a=n.type===Zr.Number?n.value:n.value*.4/100),i.type!==Zr.None&&(t.b=i.type===Zr.Number?i.value:i.value*.4/100),o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var nw=mW,gW=Na(ha({},jp),{mode:"oklab",toMode:{lrgb:x1,rgb:ph},fromMode:{lrgb:S4,rgb:dh},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[nw],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),iw=gW;function yW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Zr.None){if(a.type===Zr.Hue)return;t.l=Math.min(Math.max(0,a.type===Zr.Number?a.value:a.value/100),1)}if(n.type!==Zr.None&&(t.c=Math.max(0,n.type===Zr.Number?n.value:n.value*.4/100)),i.type!==Zr.None){if(i.type===Zr.Percentage)return;t.h=i.value}return o.type!==Zr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Zr.Number?o.value:o.value/100))),t}var ow=yW,bW=Na(ha({},Zp),{mode:"oklch",toMode:{oklab:e=>ws(e,"oklab"),rgb:e=>ph(ws(e,"oklab"))},fromMode:{rgb:e=>xs(dh(e),"oklch"),oklab:e=>xs(e,"oklch")},parse:[ow],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),lw=bW,_W=e=>{let{r,g:t,b:a,alpha:n}=P0(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},t4=_W,xW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=R0({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},a4=xW,wW=Na(ha({},q0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>a4(sf(e)),xyz65:a4},toMode:{rgb:e=>ff(t4(e)),xyz65:t4}}),uw=wW,zy=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},MW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:zy(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:zy(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:zy(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},n4=MW,Ny=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},AW=e=>{let r=Ny(e.r),t=Ny(e.g),a=Ny(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},i4=AW,TW=Na(ha({},q0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:n4,rgb:e=>n4(_1(e))},toMode:{xyz50:i4,rgb:e=>b1(i4(e))}}),sw=TW,tx=1.09929682680944,kW=.018053968510807,By=e=>{let r=Math.abs(e);return r>kW?(Math.sign(e)||1)*(tx*Math.pow(r,.45)-(tx-1)):4.5*e},CW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:By(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:By(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:By(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},o4=CW,ax=1.09929682680944,SW=.018053968510807,Iy=(e=0)=>{let r=Math.abs(e);return r<SW*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+ax-1)/ax,1/.45)},EW=e=>{let r=Iy(e.r),t=Iy(e.g),a=Iy(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},l4=EW,LW=Na(ha({},q0),{mode:"rec2020",fromMode:{xyz65:o4,rgb:e=>o4(sf(e))},toMode:{xyz65:l4,rgb:e=>ff(l4(e))},parse:["rec2020"],serialize:"rec2020"}),fw=LW,D0=.0037930732552754493,cw=Math.cbrt(D0),Hy=e=>Math.cbrt(e)-cw,DW=e=>{let{r,g:t,b:a,alpha:n}=P0(e),i=Hy(.3*r+.622*t+.078*a+D0),o=Hy(.23*r+.692*t+.078*a+D0),l=Hy(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+D0),u={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(u.alpha=n),u},vw=DW,Oy=e=>Math.pow(e+cw,3),FW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Oy(e+r)-D0,i=Oy(r-e)-D0,o=Oy(t+r)-D0,l=R0({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},hw=FW,qW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:hw},fromMode:{rgb:vw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:at,y:at,b:at,alpha:{use:at,fixup:Ln}}},dw=qW,PW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:b1,lab:Wp},fromMode:{rgb:_1,lab:Xp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:at,y:at,z:at,alpha:{use:at,fixup:Ln}}},pw=PW,RW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},mw=RW,zW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},gw=zW,NW={mode:"xyz65",toMode:{rgb:ff,xyz50:mw},fromMode:{rgb:sf,xyz50:gw},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:at,y:at,z:at,alpha:{use:at,fixup:Ln}}},yw=NW,BW=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},bw=BW,IW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},_w=IW,HW={mode:"yiq",toMode:{rgb:_w},fromMode:{rgb:bw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:at,i:at,q:at,alpha:{use:at,fixup:Ln}}},xw=HW,OW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,UW=(e=4)=>r=>typeof r=="number"?OW(r,e):r,ww=UW,oh=ww(2),uh=e=>Math.max(0,Math.min(1,e||0)),F0=e=>Math.round(uh(e)*255),D4=Da("rgb"),GW=Da("hsl"),F4=e=>{if(e===void 0)return;let r=F0(e.r),t=F0(e.g),a=F0(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},Mw=e=>{if(e===void 0)return;let r=F0(e.alpha!==void 0?e.alpha:1);return F4(e)+(256|r).toString(16).slice(1)},Aw=e=>{if(e===void 0)return;let r=F0(e.r),t=F0(e.g),a=F0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${oh(uh(e.alpha))})`},Tw=e=>{if(e===void 0)return;let r=oh(e.h||0),t=oh(uh(e.s)*100)+"%",a=oh(uh(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${oh(uh(e.alpha))})`},YW=e=>{let r=Dl(e);if(!r)return;let t=hi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},VW=e=>F4(D4(e)),XW=e=>Mw(D4(e)),WW=e=>Aw(D4(e)),jW=e=>Tw(GW(e)),ZW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},JW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:ZW[r],n=Da(t),i=hi(t).channels;return e.map(l=>{let u=n(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*a(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},$W=JW,KW=([e,r])=>e+Math.random()*(r-e),QW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),ej=(e="rgb",r={})=>{let t=hi(e),a=QW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=KW(a[i]||t.ranges[i])),n),{mode:e})},rj=ej,mh=(e,r="rgb",t=!1)=>{let a=r?hi(r).channels:null,n=r?Da(r):Dl;return i=>{let o=n(i);if(!o)return;let l=(a||hi(o.mode).channels).reduce((s,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:o.mode});if(!t)return l;let u=Dl(i);return u&&u.mode!==l.mode?Da(u.mode)(l):l}},kw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,Cw=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,q4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,tj=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,aj=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;r<e.length;){if(e[r]===void 0){for(a=r,n=e[r-1],t=r;e[t]===void 0;)t++;for(i=(e[t]-n)/(t-r+1);r<t;)e[r]=n+(r+1-a)*i,r++}else e[r]<e[r-1]&&(e[r]=e[r-1]);r++}return e},nj=aj,ij=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),Sw=ij,Ep=e=>typeof e=="function",E0=e=>e&&typeof e=="object",nx=e=>typeof e=="number",Ew=(e,r="rgb",t,a)=>{let n=hi(r),i=Da(r),o=[],l=[],u={};e.forEach(h=>{Array.isArray(h)?(o.push(i(h[0])),l.push(h[1])):nx(h)||Ep(h)?u[l.length]=h:(o.push(i(h)),l.push(void 0))}),nj(l);let s=n.channels.reduce((h,d)=>{let m;return E0(t)&&E0(t[d])&&t[d].fixup?m=t[d].fixup:E0(n.interpolate[d])&&n.interpolate[d].fixup?m=n.interpolate[d].fixup:m=p=>p,h[d]=m(o.map(p=>p[d])),h},{});if(a){let h=o.map((d,m)=>n.channels.reduce((p,y)=>(p[y]=s[y][m],p),{mode:r}));s=n.channels.reduce((d,m)=>(d[m]=h.map(p=>{let y=a(p[m],m,p,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let m;return Ep(t)?m=t:E0(t)&&Ep(t[d])?m=t[d]:E0(t)&&E0(t[d])&&t[d].use?m=t[d].use:Ep(n.interpolate[d])?m=n.interpolate[d]:E0(n.interpolate[d])&&(m=n.interpolate[d].use),h[d]=m(s[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=l[0])return o[0];if(h>l[c])return o[c];let d=0;for(;l[d]<h;)d++;let m=l[d-1],p=l[d]-m,y=(h-m)/p,b=u[d]||u[0];b!==void 0&&(nx(b)&&(b=Sw((b-m)/p)),y=b(y));let C=(d-1+y)/c;return n.channels.reduce((x,_)=>{let M=f[_](C);return M!==void 0&&(x[_]=M),x},{mode:r})}},oj=(e,r="rgb",t)=>Ew(e,r,t),Lw=(e,r)=>(t,a="rgb",n)=>{let i=r?mh(r,a):void 0,o=Ew(t,a,n,e);return i?l=>i(o(l)):o},lj=Lw(kw,Cw),Lp=(e,r)=>(e+r)%r,Dw=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},Fw=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return Dw(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],a<t-1?e[a+2]:2*e[a+1]-e[a],(r-a/t)*t)},qw=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return Dw(e[Lp(a-1,e.length)],e[Lp(a,e.length)],e[Lp(a+1,e.length)],e[Lp(a+2,e.length)],(r-a/t)*t)},Pw=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r<t;++r)a[r]=1/(4-a[r-1]),n[r]=(6*e[r]-(r==t-1?e[t]:0)-n[r-1])*a[r];for(i[0]=e[0],i[t]=e[t],t-1>0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},uj=e=>Fw(Pw(e)),sj=e=>qw(Pw(e)),d1=Math.sign,u4=Math.min,co=Math.abs,P4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i<r;i++)t.push((e[i+1]-e[i])*r),a.push(i>0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(d1(t[i-1])+d1(t[i]))*u4(co(t[i-1]),co(t[i]),.5*co(a[i])):void 0);return[t,a,n]},R4=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,u=l*l,s=u*l;return(r[o]+r[o+1]-2*t[o])*n*s+(3*t[o]-2*r[o]-r[o+1])*a*u+r[o]*l+e[o]}},fj=e=>{if(e.length<3)return at(e);let r=e.length-1,[t,,a]=P4(e);return a[0]=t[0],a[r]=t[r-1],R4(e,a,t)},cj=e=>{if(e.length<3)return at(e);let r=e.length-1,[t,a,n]=P4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:co(a[0])>2*co(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:co(a[r])>2*co(t[r-1])?2*t[r-1]:a[r],R4(e,n,t)},vj=e=>{let r=e.length-1,[t,a,n]=P4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(d1(i)+d1(t[0]))*u4(co(i),co(t[0]),.5*co(a[0])),n[r]=(d1(t[r-1])+d1(o))*u4(co(t[r-1]),co(o),.5*co(a[r])),R4(e,n,t)},hj=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),Rw=hj,dj=(e=2,r=1)=>{let t=Rw(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n<e;n++)a.push(t(n/(e-1)));return a},pj=dj,zw=Da("rgb"),Nw=e=>{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},Bw=e=>Nw(zw(e)),Iw=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function z4(e){return Iw(zw(e))}function Jp(e="rgb"){let{gamut:r}=hi(e);if(!r)return a=>!0;let t=Da(typeof r=="string"?r:e);return a=>Iw(t(a))}function mj(e){return e=Dl(e),e===void 0||z4(e)?e:Da(e.mode)(Bw(e))}function N4(e="rgb"){let{gamut:r}=hi(e);if(!r)return i=>Dl(i);let t=typeof r=="string"?r:e,a=Da(t),n=Jp(t);return i=>{let o=Dl(i);if(!o)return;let l=a(o);if(n(l))return o;let u=Nw(l);return o.mode===u.mode?u:Da(o.mode)(u)}}function gj(e,r="lch",t="rgb"){e=Dl(e);let a=t==="rgb"?z4:Jp(t),n=t==="rgb"?Bw:N4(t);if(e===void 0||a(e))return e;let i=Da(e.mode);e=Da(r)(e);let o=Na(ha({},e),{c:0});if(!a(o))return i(n(o));let l=0,u=e.c!==void 0?e.c:0,s=hi(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=o.c;for(;u-l>f;)o.c=l+(u-l)*.5,a(o)?(c=o.c,l=o.c):u=o.c;return i(a(o)?o:Na(ha({},o),{c}))}function yj(e="rgb",r="oklch",t=y1("oklch"),a=.02){let n=Da(e),i=hi(e);if(!i.gamut)return f=>n(f);let o=Jp(e),l=N4(e),u=Da(r),{ranges:s}=hi(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=Dl(f),f===void 0)return;let c=ha({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let y=Na(ha({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=s.l[0]){let y=Na(ha({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,m=(s.c[1]-s.c[0])/4e3,p=l(c);for(;d-h>m;)c.c=(h+d)*.5,p=l(c),o(c)||t&&a>0&&t(c,p)<=a?h=c.c:d=c.c;return n(o(c)?c:p)}}var bj=(e,r=y1(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,u)=>l.d-u.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},_j=bj,B4=e=>Math.max(e,0),I4=e=>Math.max(Math.min(e,1),0),xj=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),wj=e=>{let r=1-I4(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},Mj=e=>{let r=B4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},Aj=e=>{let r=1-I4(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},Tj=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},$p=(e,r,t=!1)=>{let a=Da(r),n=hi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},u,s=n.length;for(let c=0;c<e.length;c++)u=n[Math.floor(c/s)],o[u]!==void 0&&(l[u]=(l[u]||0)+e[c]*(o[n[c%s]]||0));if(!t)return l;let f=Dl(i);return f&&l.mode!==f.mode?Da(f.mode)(l):l}},kj=(e=1,r="rgb")=>{let t=B4(e);return mh(q4(t),r,!0)},Cj=(e=1,r="rgb")=>{let t=B4(e);return mh(q4(t,(1-t)/2),r,!0)},Sj=(e=1,r="rgb")=>$p(wj(e),r,!0),Ej=(e=1,r="rgb")=>$p(Mj(e),r,!0),Lj=(e=1,r="rgb")=>$p(Aj(e),r,!0),Dj=(e=1,r="rgb")=>{let t=I4(e);return mh((a,n)=>n==="alpha"?a:xj(t,1-t,a),r,!0)},Fj=(e=0,r="rgb")=>$p(Tj(e),r,!0),qj=Da("rgb"),Pj=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],Rj=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],zj=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],H4=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&a<e.length-1){let o=e[a+1];i=i.map((l,u)=>L0(i[u],o[u],n))}return o=>{let l=Dl(o);if(l===void 0)return;let{r:u,g:s,b:f}=qj(l),c={mode:"rgb",r:i[0]*u+i[1]*s+i[2]*f,g:i[3]*u+i[4]*s+i[5]*f,b:i[6]*u+i[7]*s+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Da(l.mode)(c)}},Nj=(e=1)=>H4(Pj,e),Bj=(e=1)=>H4(Rj,e),Ij=(e=1)=>H4(zj,e),Hj=e=>e*e*(3-2*e),Oj=e=>.5-Math.sin(Math.asin(1-2*e)/3),Uj=e=>e*e*e*(e*(e*6-15)+10),Gj=Uj,Yj=e=>(1-Math.cos(e*Math.PI))/2,Vj=Yj;function s4(e){let r=Da("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function Xj(e,r){let t=s4(e),a=s4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Wj=wa(yx),jj=wa(Mx),Zj=wa(Sx),Jj=wa(Ex),$j=wa(Fx),Kj=wa(p4),Qj=wa(y4),eZ=wa(Hx),rZ=wa(Gx),tZ=wa(Yx),aZ=wa(Vx),nZ=wa(jp),iZ=wa(Wx),oZ=wa(Zp),lZ=wa(Zx),uZ=wa(Kx),sZ=wa(Qx),fZ=wa(ew),cZ=wa(tw),vZ=wa(aw),hZ=wa(iw),dZ=wa(lw),pZ=wa(uw),mZ=wa(sw),gZ=wa(fw),yZ=wa(q0),bZ=wa(dw),_Z=wa(pw),xZ=wa(yw),wZ=wa(xw)});var cf=ae((l2e,Vw)=>{"use strict";var Uw={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Gw={};function Yw(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),Yw(a,r[t]))}}Yw(Uw,Gw);Vw.exports={configAttributes:Uw,dfltConfig:Gw}});var U4=ae((u2e,Xw)=>{"use strict";var O4=Et(),MZ=Wt(),gh=[];Xw.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||gh.indexOf(e)!==-1)return;gh.push(e);var a=1e3;MZ(r)?a=r:r==="long"&&(a=3e3);var n=O4.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(gh);function o(u){u.duration(700).style("opacity",0).each("end",function(s){var f=gh.indexOf(s);f!==-1&&gh.splice(f,1),O4.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=O4.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(o)});for(var f=s.append("p"),c=u.split(/<br\s*\/?>/g),h=0;h<c.length;h++)h&&f.append("br"),f.append("span").text(c[h]);r==="stick"?s.transition().duration(350).style("opacity",1):s.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var Ms=ae((s2e,Ww)=>{"use strict";var w1=cf().dfltConfig,G4=U4(),Y4=Ww.exports={};Y4.log=function(){var e;if(w1.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(w1.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"long")}};Y4.warn=function(){var e;if(w1.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(w1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"stick")}};Y4.error=function(){var e;if(w1.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(w1.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G4(t.join("<br>"),"stick")}}});var Fl=ae(z0=>{"use strict";z0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];z0.defaultLine="#444";z0.lightLine="#eee";z0.background="#fff";z0.borderLine="#BEC8D9";z0.lightFraction=1e3/11});var Ft=ae((c2e,rM)=>{"use strict";var{converter:jw,formatHex:AZ,formatRgb:TZ,wcagContrast:kZ,wcagLuminance:CZ}=Ow(),{isArrayOrTypedArray:SZ}=Vi(),{warn:EZ}=Ms(),{background:bh,defaultLine:W4,defaults:LZ,lightLine:DZ}=Fl(),Zw=jw("rgb"),FZ=jw("hsl"),Jw=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return Zw(r)}catch(t){return}},di=e=>e>0?e>1?1:e:0,qZ={mode:"rgb",r:0,g:0,b:0,alpha:1},V4=e=>Math.round(e*255e6)/255e6,$w=e=>Na(ha({},e),{r:V4(e.r),g:V4(e.g),b:V4(e.b)}),vo=e=>TZ($w(e)),PZ=e=>AZ($w(e)),Wa=(e,r)=>{var a;let t=Jw(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&EZ(`Invalid color specifier: "${e}". Defaulting to "#000"`),qZ)},yh=e=>vo(Na(ha({},Wa(e)),{alpha:1})),RZ=e=>e?Wa(e).alpha:0,Kw=e=>SZ(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),zZ=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},NZ=(e,r)=>{let t=Kw(e)?zZ(e):Wa(e,!0),a=[di(t.r),di(t.g),di(t.b),di(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},BZ=(e,r)=>vo(Na(ha({},Wa(e)),{alpha:di(r)})),Qw=(e,r)=>{let t=Wa(e),a=t.alpha;if(a===1)return vo(t);let n=Wa(r||bh),i=n.alpha,o=(l,u)=>(i===1?u:1-i+u*i)*(1-a)+l*a;return vo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},IZ=(e,r,t)=>{let a=Wa(e),n=Wa(r),i=(o,l)=>t*o+(1-t)*l;return vo({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},X4=(e,r)=>{let t=Wa(e),a=FZ(t)||{mode:"hsl",h:0,s:0,l:0};return vo(Zw(Na(ha({},a),{l:di((a.l*100+r)/100),alpha:t.alpha})))},Kp=(e,r)=>kZ(Wa(e),Wa(r)),eM=e=>Kp(e,bh)>Kp(e,W4),HZ=vo(Wa(bh)),OZ=vo(Wa(W4)),UZ=(e,r,t)=>(Wa(e).alpha!==1&&(e=Qw(e,bh)),eM(e)?r?X4(e,r):HZ:t?X4(e,-t):OZ),GZ=(e,r)=>{e.style({stroke:yh(r),"stroke-opacity":Wa(r).alpha})},YZ=(e,r)=>{e.style({fill:yh(r),"fill-opacity":Wa(r).alpha})},VZ=(e,r)=>!!(e&&r&&yh(e)===yh(r)),XZ=e=>Jw(e)!==void 0,WZ=(e,r)=>{r=r===0?0:r||10;let t=Wa(e),a=r/100;return vo(Na(ha({},t),{r:di(t.r+a),g:di(t.g+a),b:di(t.b+a)}))},jZ=(e,r,t)=>{let a=Wa(e),n=Wa(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,u=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,s=1-u,f=(c,h)=>s*c+u*h;return vo({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},ZZ=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Kp(e,n);i>a&&(a=i,t=vo(Wa(n)))}return t},JZ=e=>vo(Wa(e)),$Z=e=>PZ(Wa(e)).toUpperCase(),KZ=e=>{let r=Wa(e);return[di(r.r)*255,di(r.g)*255,di(r.b)*255,di(r.alpha)]},QZ=([e,r,t,a])=>vo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),eJ=e=>{let r=Wa(e);return CZ({mode:"rgb",r:di(r.r),g:di(r.g),b:di(r.b)})};rM.exports={addOpacity:BZ,adjustLightness:X4,background:bh,brighten:WZ,combine:Qw,contrast:UZ,defaultLine:W4,defaults:LZ,equals:VZ,fill:YZ,hexString:$Z,interpolate:IZ,isChannelArray:Kw,isDark:eM,isValid:XZ,lightLine:DZ,luminosity:eJ,mix:jZ,mostReadable:ZZ,normalize:NZ,opacity:RZ,parse:Wa,rgb:yh,rgbaArray:KZ,rgbaArrayToString:QZ,rgbaString:JZ,stroke:GZ,wcagContrast:Kp}});var N0=ae((h2e,nM)=>{"use strict";var rJ=Ft(),Qp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},tM=Qp.RdBu;function tJ(e,r){if(r||(r=tM),!e)return r;function t(){try{e=Qp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),aM(e)?e:r}function aM(e){var r=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 t=0;t<e.length;t++){var a=e[t];if(a.length!==2||+a[0]<r||!rJ.isValid(a[1]))return!1;r=+a[0]}return!0}function aJ(e){return Qp[e]!==void 0?!0:aM(e)}nM.exports={scales:Qp,defaultScale:tM,get:tJ,isValid:aJ}});var em=ae((d2e,iM)=>{"use strict";iM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var M1={};u1(M1,{counter:()=>nJ});function nJ(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+j4+"y"+j4+n):new RegExp(i+e+j4+n)}var j4,A1=l1(()=>{"use strict";j4="([2-9]|[1-9][0-9]+)?"});var uM=ae(Wi=>{"use strict";var Z4=Wt(),oM=_n().extendFlat,iJ=Bo(),oJ=N0(),J4=Ft(),lJ=em().DESELECTDIM,T1=$v(),lM=(A1(),ei(M1)).counter,uJ=(v1(),ei(c1)).modHalf,ql=Vi().isArrayOrTypedArray,vf=Vi().isTypedArraySpec,hf=Vi().decodeTypedArraySpec;Wi.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ql(e)?e:vf(e)?hf(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.slice(1,-1));if(i.test(e))return!0}else if(e===t[a])return!0}return!1}},boolean:{coerceFunction:function(e,r,t,a){let n=i=>i===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){vf(e)&&(e=hf(e)),!Z4(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}vf(e)&&(e=hf(e)),e%1||!Z4(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){vf(e)&&(e=hf(e)),J4.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>J4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(oJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){vf(e)&&(e=hf(e)),e==="auto"?r.set("auto"):Z4(e)?r.set(uJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||lM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&ql(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!lM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(vf(e)?hf(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(C,x,_){var M,T={set:function(A){M=A}};return _===void 0&&(_=x.dflt),Wi.valObjectMeta[x.valType].coerceFunction(C,T,_,x),M}if(vf(e)&&(e=hf(e)),!ql(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&ql(e[0]),o=a.items,l=[],u=Array.isArray(o),s=u&&i&&ql(o[0]),f=i&&u&&!s,c=u&&!f?o.length:e.length,h,d,m,p,y,b;if(t=Array.isArray(t)?t:[],i)for(h=0;h<c;h++)for(l[h]=[],m=ql(e[h])?e[h]:[],f?y=o.length:u?y=o[h].length:y=m.length,d=0;d<y;d++)f?p=o[d]:u?p=o[h][d]:p=o,b=n(m[d],p,(t[h]||[])[d]),b!==void 0&&(l[h][d]=b);else for(h=0;h<c;h++)b=n(e[h],u?o[h]:o,t[h]),b!==void 0&&(l[h]=b);r.set(l)},validateFunction:function(e,r){if(!ql(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!ql(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!rm(e[i][o],a?t[i][o]:t))return!1}else if(!rm(e[i],a?t[i]:t))return!1;return!0}}};Wi.coerce=function(e,r,t,a,n){var i=T1(t,a).get(),o=T1(e,a),l=T1(r,a),u=o.get(),s=r._template;if(u===void 0&&s&&(u=T1(s,a).get(),s=0),n===void 0&&(n=i.dflt),i.arrayOk){if(ql(u))return l.set(u),u;if(vf(u))return u=hf(u),l.set(u),u}var f=Wi.valObjectMeta[i.valType].coerceFunction;f(u,l,n,i);var c=l.get();return s&&c===n&&!rm(u,i)&&(u=T1(s,a).get(),f(u,l,n,i),c=l.get()),c};Wi.coerce2=function(e,r,t,a,n){var i=T1(e,a),o=Wi.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};Wi.coerceFont=function(e,r,t,a){a||(a={}),t=oM({},t),t=oM(t,a.overrideDflt||{});var n={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};Wi.coercePattern=function(e,r,t,a){var n=e(r+".shape"),i;if(n||(i=e(r+".path")),n||i){n&&e(r+".solidity"),e(r+".size");var o=e(r+".fillmode"),l=o==="overlay";if(!a){var u=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?J4.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};Wi.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:iJ,i=n.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return Wi.coerce(e,r,n,"hoverinfo",o)};Wi.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!ql(t)&&!e.selected&&!e.unselected&&(a=t,n=lJ*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function rm(e,r){var t=Wi.valObjectMeta[r.valType];if(r.arrayOk&&ql(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}Wi.validate=rm});var tm=ae((m2e,sM)=>{"use strict";sM.exports=function(){}});var $4=ae((g2e,fM)=>{"use strict";fM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var vM=ae((y2e,cM)=>{cM.exports=sJ;function sJ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dM=ae((b2e,hM)=>{hM.exports=fJ;function fJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var mM=ae((_2e,pM)=>{pM.exports=cJ;function cJ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var K4=ae((x2e,gM)=>{gM.exports=vJ;function vJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bM=ae((w2e,yM)=>{yM.exports=hJ;function hJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var xM=ae((M2e,_M)=>{_M.exports=dJ;function dJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-a*o,x=t*u-n*o,_=t*s-i*o,M=a*u-n*l,T=a*s-i*l,A=n*s-i*u,D=f*p-c*m,P=f*y-h*m,z=f*b-d*m,B=c*y-h*p,X=c*b-d*p,H=h*b-d*y,V=C*H-x*X+_*B+M*z-T*P+A*D;return V?(V=1/V,e[0]=(l*H-u*X+s*B)*V,e[1]=(n*X-a*H-i*B)*V,e[2]=(p*A-y*T+b*M)*V,e[3]=(h*T-c*A-d*M)*V,e[4]=(u*z-o*H-s*P)*V,e[5]=(t*H-n*z+i*P)*V,e[6]=(y*_-m*A-b*x)*V,e[7]=(f*A-h*_+d*x)*V,e[8]=(o*X-l*z+s*D)*V,e[9]=(a*z-t*X-i*D)*V,e[10]=(m*T-p*_+b*C)*V,e[11]=(c*_-f*T-d*C)*V,e[12]=(l*P-o*B-u*D)*V,e[13]=(t*B-a*P+n*D)*V,e[14]=(p*x-m*M-y*C)*V,e[15]=(f*M-c*x+h*C)*V,e):null}});var MM=ae((A2e,wM)=>{wM.exports=pJ;function pJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-c*(u*b-s*y)+p*(u*d-s*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+p*(n*d-i*h)),e[2]=a*(u*b-s*y)-l*(n*b-i*y)+p*(n*s-i*u),e[3]=-(a*(u*d-s*h)-l*(n*d-i*h)+c*(n*s-i*u)),e[4]=-(o*(h*b-d*y)-f*(u*b-s*y)+m*(u*d-s*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+m*(n*d-i*h),e[6]=-(t*(u*b-s*y)-o*(n*b-i*y)+m*(n*s-i*u)),e[7]=t*(u*d-s*h)-o*(n*d-i*h)+f*(n*s-i*u),e[8]=o*(c*b-d*p)-f*(l*b-s*p)+m*(l*d-s*c),e[9]=-(t*(c*b-d*p)-f*(a*b-i*p)+m*(a*d-i*c)),e[10]=t*(l*b-s*p)-o*(a*b-i*p)+m*(a*s-i*l),e[11]=-(t*(l*d-s*c)-o*(a*d-i*c)+f*(a*s-i*l)),e[12]=-(o*(c*y-h*p)-f*(l*y-u*p)+m*(l*h-u*c)),e[13]=t*(c*y-h*p)-f*(a*y-n*p)+m*(a*h-n*c),e[14]=-(t*(l*y-u*p)-o*(a*y-n*p)+m*(a*u-n*l)),e[15]=t*(l*h-u*c)-o*(a*h-n*c)+f*(a*u-n*l),e}});var TM=ae((T2e,AM)=>{AM.exports=mJ;function mJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-a*i,x=r*u-n*i,_=t*l-a*o,M=t*u-n*o,T=a*u-n*l,A=s*m-f*d,D=s*p-c*d,P=s*y-h*d,z=f*p-c*m,B=f*y-h*m,X=c*y-h*p;return b*X-C*B+x*z+_*P-M*D+T*A}});var CM=ae((k2e,kM)=>{kM.exports=gJ;function gJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],M=t[2],T=t[3];return e[0]=x*a+_*l+M*c+T*p,e[1]=x*n+_*u+M*h+T*y,e[2]=x*i+_*s+M*d+T*b,e[3]=x*o+_*f+M*m+T*C,x=t[4],_=t[5],M=t[6],T=t[7],e[4]=x*a+_*l+M*c+T*p,e[5]=x*n+_*u+M*h+T*y,e[6]=x*i+_*s+M*d+T*b,e[7]=x*o+_*f+M*m+T*C,x=t[8],_=t[9],M=t[10],T=t[11],e[8]=x*a+_*l+M*c+T*p,e[9]=x*n+_*u+M*h+T*y,e[10]=x*i+_*s+M*d+T*b,e[11]=x*o+_*f+M*m+T*C,x=t[12],_=t[13],M=t[14],T=t[15],e[12]=x*a+_*l+M*c+T*p,e[13]=x*n+_*u+M*h+T*y,e[14]=x*i+_*s+M*d+T*b,e[15]=x*o+_*f+M*m+T*C,e}});var EM=ae((C2e,SM)=>{SM.exports=yJ;function yJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,u,s,f,c,h,d,m,p,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*a+f*n+m*i+r[12],e[13]=l*a+c*n+p*i+r[13],e[14]=u*a+h*n+y*i+r[14],e[15]=s*a+d*n+b*i+r[15]),e}});var DM=ae((S2e,LM)=>{LM.exports=bJ;function bJ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var qM=ae((E2e,FM)=>{FM.exports=_J;function _J(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),u,s,f,c,h,d,m,p,y,b,C,x,_,M,T,A,D,P,z,B,X,H,V,I;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],M=r[10],T=r[11],A=n*n*f+s,D=i*n*f+o*u,P=o*n*f-i*u,z=n*i*f-o*u,B=i*i*f+s,X=o*i*f+n*u,H=n*o*f+i*u,V=i*o*f-n*u,I=o*o*f+s,e[0]=c*A+p*D+x*P,e[1]=h*A+y*D+_*P,e[2]=d*A+b*D+M*P,e[3]=m*A+C*D+T*P,e[4]=c*z+p*B+x*X,e[5]=h*z+y*B+_*X,e[6]=d*z+b*B+M*X,e[7]=m*z+C*B+T*X,e[8]=c*H+p*V+x*I,e[9]=h*H+y*V+_*I,e[10]=d*H+b*V+M*I,e[11]=m*H+C*V+T*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var RM=ae((L2e,PM)=>{PM.exports=xJ;function xJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+s*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=u*n+h*a,e[8]=s*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=h*n-u*a,e}});var NM=ae((D2e,zM)=>{zM.exports=wJ;function wJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-s*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=u*n-h*a,e[8]=i*a+s*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=u*a+h*n,e}});var IM=ae((F2e,BM)=>{BM.exports=MJ;function MJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+s*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=u*n+h*a,e[4]=s*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=h*n-u*a,e}});var OM=ae((q2e,HM)=>{HM.exports=AJ;function AJ(e,r,t){var a,n,i,o=t[0],l=t[1],u=t[2],s=Math.sqrt(o*o+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,o*=s,l*=s,u*=s,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+u*a,e[2]=u*o*i-l*a,e[3]=0,e[4]=o*l*i-u*a,e[5]=l*l*i+n,e[6]=u*l*i+o*a,e[7]=0,e[8]=o*u*i+l*a,e[9]=l*u*i-o*a,e[10]=u*u*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var GM=ae((P2e,UM)=>{UM.exports=TJ;function TJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,u=n+n,s=i+i,f=a*l,c=a*u,h=a*s,d=n*u,m=n*s,p=i*s,y=o*l,b=o*u,C=o*s;return e[0]=1-(d+p),e[1]=c+C,e[2]=h-b,e[3]=0,e[4]=c-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var VM=ae((R2e,YM)=>{YM.exports=kJ;function kJ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var WM=ae((z2e,XM)=>{XM.exports=CJ;function CJ(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var ZM=ae((N2e,jM)=>{jM.exports=SJ;function SJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $M=ae((B2e,JM)=>{JM.exports=EJ;function EJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var QM=ae((I2e,KM)=>{KM.exports=LJ;function LJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var rA=ae((H2e,eA)=>{eA.exports=DJ;function DJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,u=n+n,s=t*o,f=a*o,c=a*l,h=n*o,d=n*l,m=n*u,p=i*o,y=i*l,b=i*u;return e[0]=1-c-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-s-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var aA=ae((O2e,tA)=>{tA.exports=FJ;function FJ(e,r,t,a,n,i,o){var l=1/(t-r),u=1/(n-a),s=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*u,e[10]=(o+i)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*s,e[15]=0,e}});var iA=ae((U2e,nA)=>{nA.exports=qJ;function qJ(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var lA=ae((G2e,oA)=>{oA.exports=PJ;function PJ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(o+l),s=2/(n+i);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((o-l)*u*.5),e[9]=(n-i)*s*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var sA=ae((Y2e,uA)=>{uA.exports=RJ;function RJ(e,r,t,a,n,i,o){var l=1/(r-t),u=1/(a-n),s=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*u,e[14]=(o+i)*s,e[15]=1,e}});var cA=ae((V2e,fA)=>{var zJ=K4();fA.exports=NJ;function NJ(e,r,t,a){var n,i,o,l,u,s,f,c,h,d,m=r[0],p=r[1],y=r[2],b=a[0],C=a[1],x=a[2],_=t[0],M=t[1],T=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-M)<1e-6&&Math.abs(y-T)<1e-6?zJ(e):(f=m-_,c=p-M,h=y-T,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=C*h-x*c,i=x*f-b*h,o=b*c-C*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-h*i,u=h*n-f*o,s=f*i-c*n,d=Math.sqrt(l*l+u*u+s*s),d?(d=1/d,l*=d,u*=d,s*=d):(l=0,u=0,s=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=s,e[10]=h,e[11]=0,e[12]=-(n*m+i*p+o*y),e[13]=-(l*m+u*p+s*y),e[14]=-(f*m+c*p+h*y),e[15]=1,e)}});var hA=ae((X2e,vA)=>{vA.exports=BJ;function BJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Q4=ae((W2e,dA)=>{dA.exports={create:vM(),clone:dM(),copy:mM(),identity:K4(),transpose:bM(),invert:xM(),adjoint:MM(),determinant:TM(),multiply:CM(),translate:EM(),scale:DM(),rotate:qM(),rotateX:RM(),rotateY:NM(),rotateZ:IM(),fromRotation:OM(),fromRotationTranslation:GM(),fromScaling:VM(),fromTranslation:WM(),fromXRotation:ZM(),fromYRotation:$M(),fromZRotation:QM(),fromQuat:rA(),frustum:aA(),perspective:iA(),perspectiveFromFieldOfView:lA(),ortho:sA(),lookAt:cA(),str:hA()}});var am=ae(nn=>{"use strict";var IJ=Q4();nn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};nn.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};nn.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=nn.dot(e[n],r);else if(r[0].length){var i=nn.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=nn.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};nn.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};nn.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};nn.rotationXYMatrix=function(e,r,t){return nn.dot(nn.dot(nn.translationMatrix(r,t),nn.rotationMatrix(e)),nn.translationMatrix(-r,-t))};nn.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return nn.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};nn.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return nn.dot(e,[t[0],t[1],1]).slice(0,2)}};nn.apply2DTransform2=function(e){var r=nn.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};nn.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};nn.inverseTransformMatrix=function(e){var r=[];return IJ.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var _h=ae((Z2e,_A)=>{"use strict";var HJ=Et(),pA=Ms(),OJ=am(),UJ=Q4();function GJ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function YJ(e){var r=HJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function mA(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function VJ(e,r){gA("global",e,r)}function gA(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):pA.warn("addStyleRule failed"):pA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function XJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&mA(t)}function WJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),u="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function jJ(e){var r=bA(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=yA(a);if(n){var i=OJ.convertCssMatrix(n);t=UJ.multiply(t,t,i)}}),t}function yA(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function bA(e){for(var r=[];ZJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function ZJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function JJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}_A.exports={getGraphDiv:GJ,isPlotDiv:YJ,removeElement:mA,addStyleRule:VJ,addRelatedStyleRule:gA,deleteRelatedStyleRule:XJ,setStyleOnHover:WJ,getFullTransformMatrix:jJ,getElementTransformMatrix:yA,getElementAndAncestors:bA,equalDomRects:JJ}});var xh=ae((J2e,xA)=>{"use strict";xA.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Io=ae(($2e,SA)=>{"use strict";var MA=_n().extendFlat,$J=uf(),AA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},TA={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},KJ=AA.flags.slice().concat(["fullReplot"]),QJ=TA.flags.slice().concat("layoutReplot");SA.exports={traces:AA,layout:TA,traceFlags:function(){return wA(KJ)},layoutFlags:function(){return wA(QJ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:kA};function wA(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function kA(e,r,t){var a=MA({},e);for(var n in a){var i=a[n];$J(i)&&(a[n]=CA(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function CA(e,r,t,a){if(e.valType){var n=MA({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=CA(e.items[i],r,"from-root")}return n}else return kA(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Mu=ae(e5=>{"use strict";e5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};e5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var r5=ae((Q2e,EA)=>{"use strict";EA.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var B0=ae(k1=>{"use strict";var{DATE_FORMAT_LINK:e$,FORMAT_LINK:r$}=r5(),t$=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function a$({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,r$,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,e$,"for details on the date formatting syntax.",t$].join(" ")}k1.templateFormatStringDescription=a$;k1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ha({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});k1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ha({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});k1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});k1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var om=ae((tge,RA)=>{"use strict";function df(e,r){return r?r.d2l(e):e}function LA(e,r){return r?r.l2d(e):e}function n$(e){return e.x0}function i$(e){return e.x1}function o$(e){return e.y0}function l$(e){return e.y1}function DA(e){return e.x0shift||0}function FA(e){return e.x1shift||0}function qA(e){return e.y0shift||0}function PA(e){return e.y1shift||0}function nm(e,r){return df(e.x1,r)+FA(e)-df(e.x0,r)-DA(e)}function im(e,r,t){return df(e.y1,t)+PA(e)-df(e.y0,t)-qA(e)}function u$(e,r){return Math.abs(nm(e,r))}function s$(e,r,t){return Math.abs(im(e,r,t))}function f$(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(nm(e,r),2)+Math.pow(im(e,r,t),2))}function c$(e,r){return LA((df(e.x1,r)+FA(e)+df(e.x0,r)+DA(e))/2,r)}function v$(e,r,t){return LA((df(e.y1,t)+PA(e)+df(e.y0,t)+qA(e))/2,t)}function h$(e,r,t){return e.type!=="line"?void 0:im(e,r,t)/nm(e,r)}var d$=["x0","x1","y0","y1","dy","height","ycenter"],p$=["x0","x1","y0","y1","dx","width","xcenter"];RA.exports={x0:n$,x1:i$,y0:o$,y1:l$,slope:h$,dx:nm,dy:im,width:u$,height:s$,length:f$,xcenter:c$,ycenter:v$,simpleXVariables:d$,simpleYVariables:p$}});var BA=ae((age,NA)=>{"use strict";var m$=Io().overrideAll,I0=Bo(),zA=vi(),g$=Mu().dash,pf=_n().extendFlat,{shapeTexttemplateAttrs:y$,templatefallbackAttrs:b$}=B0(),_$=om();NA.exports=m$({newshape:{visible:pf({},I0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:pf({},I0.legend,{}),legendgroup:pf({},I0.legendgroup,{}),legendgrouptitle:{text:pf({},I0.legendgrouptitle.text,{}),font:zA({})},legendrank:pf({},I0.legendrank,{}),legendwidth:pf({},I0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:pf({},g$,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:pf({},I0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:y$({newshape:!0},{keys:Object.keys(_$)}),texttemplatefallback:b$({editType:"arraydraw"}),font:zA({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var HA=ae((nge,IA)=>{"use strict";var x$=Mu().dash,w$=_n().extendFlat;IA.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:w$({},x$,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var lm=ae((ige,OA)=>{"use strict";OA.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var C1=ae((oge,VA)=>{"use strict";var t5=vi(),M$=xh(),um=Fl(),UA=BA(),GA=HA(),A$=lm(),YA=_n().extendFlat,sm=t5({editType:"calc"});sm.family.dflt='"Open Sans", verdana, arial, sans-serif';sm.size.dflt=12;sm.color.dflt=um.defaultLine;VA.exports={font:sm,title:{text:{valType:"string",editType:"layoutstyle"},font:t5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:t5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:YA(A$({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:um.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:um.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:um.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:UA.newshape,activeshape:UA.activeshape,newselection:GA.newselection,activeselection:GA.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:YA({},M$.transition,{editType:"none"})}});var XA=ae(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var bt=ae(qt=>{"use strict";var a5=Ms(),WA=tm(),jA=$4(),sge=_h().addStyleRule,ZA=_n(),T$=Bo(),k$=C1(),C$=ZA.extendFlat,n5=ZA.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":S$(a);break;case"component":L$(a);break;case"locale":D$(a);break;case"apiMethod":var n=a.name;qt.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};qt.getModule=function(e){var r=qt.modules[QA(e)];return r?r._module:!1};qt.traceIs=function(e,r){if(e=QA(e),e==="various")return!1;var t=qt.modules[e];return t||(e&&a5.log("Unrecognized trace type "+e+"."),t=qt.modules[T$.type.dflt]),!!t.categories[r]};qt.getComponentMethod=function(e,r){var t=qt.componentsRegistry[e];return t&&t[r]||WA};qt.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return qt.apiMethodRegistry[e].apply(null,r)};function S$(e){var r=e.name,t=e.categories,a=e.meta;if(qt.modules[r]){a5.log("Type "+r+" already registered");return}qt.subplotsRegistry[e.basePlotModule.name]||E$(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,qt.allCategories[t[i]]=!0;qt.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(qt.modules[r].meta=a),qt.allTypes.push(r);for(var o in qt.componentsRegistry)$A(o,r);e.layoutAttributes&&C$(qt.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&XA(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function E$(e){var r=e.name;if(qt.subplotsRegistry[r]){a5.log("Plot type "+r+" already registered.");return}JA(e),qt.subplotsRegistry[r]=e;for(var t in qt.componentsRegistry)KA(t,e.name)}function L$(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;qt.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&jA(qt.layoutArrayContainers,r),JA(e));for(var t in qt.modules)$A(r,t);for(var a in qt.subplotsRegistry)KA(r,a);e.schema&&e.schema.layout&&n5(k$,e.schema.layout)}function D$(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=qt.localeRegistry,u=l[r];if(u||(l[r]=u={}),t!==r){var s=l[t];s||(l[t]=s={}),i&&s.dictionary===u.dictionary&&(s.dictionary=a),o&&s.format===u.format&&(s.format=n)}i&&(u.dictionary=a),o&&(u.format=n)}function JA(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)jA(qt.layoutArrayRegexes,r[t])}}function $A(e,r){var t=qt.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&n5(qt.modules[r]._module.attributes,a)}}function KA(e,r){var t=qt.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=qt.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&n5(n,o)}}function QA(e){return typeof e=="object"&&(e=e.type),e}});var uT=ae(on=>{"use strict";var F$=s1().timeFormat,oT=Wt(),i5=Ms(),gf=(v1(),ei(c1)).mod,L1=Oa(),Ho=L1.BADNUM,ji=L1.ONEDAY,wh=L1.ONEHOUR,mf=L1.ONEMIN,E1=L1.ONESEC,Mh=L1.EPOCHJD,As=bt(),eT=s1().utcFormat,q$=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,P$=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,rT=new Date().getFullYear()-70;function Ts(e){return e&&As.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}on.dateTick0=function(e,r){var t=R$(e,!!r);if(r<2)return t;var a=on.dateTime2ms(t,e);return a+=ji*(r-1),on.ms2DateTime(a,0,e)};function R$(e,r){return Ts(e)?r?As.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:As.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}on.dfltRange=function(e){return Ts(e)?As.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};on.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var cm,vm;on.dateTime2ms=function(e,r){if(on.isJSDate(e)){var t=e.getTimezoneOffset()*mf,a=(e.getUTCMinutes()-e.getMinutes())*mf+(e.getUTCSeconds()-e.getSeconds())*E1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*mf;t=t-n/2+gf(a-t+n/2,n)}return e=Number(e)-t,e>=cm&&e<=vm?e:Ho}if(typeof e!="string"&&typeof e!="number")return Ho;e=String(e);var i=Ts(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",u=e.match(l?P$:q$);if(!u)return Ho;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),m=Number(u[11]||0);if(i){if(s.length===2)return Ho;s=Number(s);var p;try{var y=As.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(s,y.toMonthIndex(s,f,b),c)}else p=y.newDate(s,Number(f),c)}catch(x){return Ho}return p?(p.toJD()-Mh)*ji+h*wh+d*mf+m*E1:Ho}s.length===2?s=(Number(s)+2e3-rT)%100+rT:s=Number(s),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(s),C.getUTCMonth()!==f||C.getUTCDate()!==c?Ho:C.getTime()+m*E1};cm=on.MIN_MS=on.dateTime2ms("-9999");vm=on.MAX_MS=on.dateTime2ms("9999-12-31 23:59:59.9999");on.isDateTime=function(e,r){return on.dateTime2ms(e,r)!==Ho};function S1(e,r){return String(e+Math.pow(10,r)).slice(1)}var fm=90*ji,tT=3*wh,aT=5*mf;on.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=cm&&e<=vm))return Ho;r||(r=0);var a=Math.floor(gf(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,u,s,f;if(Ts(t)){var c=Math.floor(n/ji)+Mh,h=Math.floor(gf(e,ji));try{i=As.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=eT("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<fm?Math.floor(h/wh):0,l=r<fm?Math.floor(h%wh/mf):0,u=r<tT?Math.floor(h%mf/E1):0,s=r<aT?h%E1*10+a:0}else f=new Date(n),i=eT("%Y-%m-%d")(f),o=r<fm?f.getUTCHours():0,l=r<fm?f.getUTCMinutes():0,u=r<tT?f.getUTCSeconds():0,s=r<aT?f.getUTCMilliseconds()*10+a:0;return lT(i,o,l,u,s)};on.ms2DateTimeLocal=function(e){if(!(e>=cm+ji&&e<=vm-ji))return Ho;var r=Math.floor(gf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=F$("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return lT(a,n,i,o,l)};function lT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+S1(r,2)+":"+S1(t,2),(a||n)&&(e+=":"+S1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+S1(n,i)}return e}on.cleanDate=function(e,r,t){if(e===Ho)return r;if(on.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ts(t))return i5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=on.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!on.isDateTime(e,t))return i5.error("unrecognized date",e),r;return e};var z$=/%\d?f/g,N$=/%h/g,B$={1:"1",2:"1",3:"2",4:"2"};function nT(e,r,t,a){e=e.replace(z$,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(N$,function(){return B$[t("%q")(n)]}),Ts(a))try{e=As.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var I$=[59,59.9,59.99,59.999,59.9999];function H$(e,r){var t=gf(e+.05,ji),a=S1(Math.floor(t/wh),2)+":"+S1(gf(Math.floor(t/mf),60),2);if(r!=="M"){oT(r)||(r=0);var n=Math.min(gf(e/E1,60),I$[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}on.formatDate=function(e,r,t,a,n,i){if(n=Ts(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
`+i.year;else return H$(e,t)+`
`+nT(i.dayMonthYear,e,a,n);return nT(r,e,a,n)};var iT=3*ji;on.incrementMonth=function(e,r,t){t=Ts(t)&&t;var a=gf(e,ji);if(e=Math.round(e-a),t)try{var n=Math.round(e/ji)+Mh,i=As.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mh)*ji+a}catch(u){i5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+iT);return l.setUTCMonth(l.getUTCMonth()+r)+a-iT};on.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,u=Ts(r)&&As.getComponentMethod("calendars","getCal")(r),s=0;s<e.length;s++){if(l=e[s],!oT(l)){i++;continue}if(!(l%ji))if(u)try{o=u.fromJD(l/ji+Mh),o.day()===1?o.month()===1?t++:a++:n++}catch(c){}else o=new Date(l),o.getUTCDate()===1?o.getUTCMonth()===0?t++:a++:n++}a+=t,n+=a;var f=e.length-i;return{exactYears:t/f,exactMonths:a/f,exactDays:n/f}}});var hm=ae((vge,sT)=>{"use strict";sT.exports=function(r){return r}});var l5=ae(ks=>{"use strict";var O$=Wt(),U$=Ms(),G$=hm(),Y$=Oa().BADNUM,o5=1e-9;ks.findBin=function(e,r,t){if(O$(r.start))return t?Math.ceil((e-r.start)/r.size-o5)-1:Math.floor((e-r.start)/r.size+o5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,u;for(o>=0?u=t?V$:X$:u=t?j$:W$,e+=o*o5*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),u(r[l],e)?a=l+1:n=l;return i>90&&U$.log("Long binary search..."),a-1};function V$(e,r){return e<r}function X$(e,r){return e<=r}function W$(e,r){return e>r}function j$(e,r){return e>=r}ks.sorterAsc=function(e,r){return e-r};ks.sorterDes=function(e,r){return r-e};ks.distinctVals=function(e){var r=e.slice();r.sort(ks.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Y$;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var u=r[l],s=u-o;o===void 0?(i.push(u),o=u):s>n&&(a=Math.min(a,s),i.push(u),o=u)}return{vals:i,minDiff:a}};ks.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;a<n&&o++<100;)i=s((a+n)/2),r[i]<=e?a=i+l:n=i-u;return r[a]};ks.sort=function(e,r){for(var t=0,a=0,n=1;n<e.length;n++){var i=r(e[n],e[n-1]);if(i<0?t=1:i>0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ks.findIndexOfMin=function(e,r){r=r||G$;for(var t=1/0,a,n=0;n<e.length;n++){var i=r(e[n]);i<t&&(t=i,a=n)}return a}});var dm={};u1(dm,{default:()=>J$});function Z$(e){return Object.keys(e).sort()}var J$,pm=l1(()=>{"use strict";J$=Z$});var fT=ae(ln=>{"use strict";var Ah=Wt(),$$=Vi().isArrayOrTypedArray;ln.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Ah(r)||(r=!1),$$(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=ln.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)Ah(r)?Ah(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};ln.len=function(e){return ln.aggNums(function(r){return r+1},0,e)};ln.mean=function(e,r){return r||(r=ln.len(e)),ln.aggNums(function(t,a){return t+a},0,e)/r};ln.geometricMean=function(e,r){return r||(r=ln.len(e)),Math.pow(ln.aggNums(function(t,a){return t*a},1,e),1/r)};ln.midRange=function(e){if(!(e===void 0||e.length===0))return(ln.aggNums(Math.max,null,e)+ln.aggNums(Math.min,null,e))/2};ln.variance=function(e,r,t){return r||(r=ln.len(e)),Ah(t)||(t=ln.mean(e,r)),ln.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};ln.stdev=function(e,r,t){return Math.sqrt(ln.variance(e,r,t))};ln.median=function(e){var r=e.slice().sort();return ln.interp(r,.5)};ln.interp=function(e,r){if(!Ah(r))throw"n should be a finite number";if(r=r*e.length-.5,r<0)return e[0];if(r>e.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var pT=ae((pge,dT)=>{"use strict";var cT=(v1(),ei(c1)),u5=cT.mod,K$=cT.modHalf,Th=Math.PI,yf=2*Th;function Q$(e){return e/180*Th}function eK(e){return e/Th*180}function s5(e){return Math.abs(e[1]-e[0])>yf-1e-14}function vT(e,r){return K$(r-e,yf)}function rK(e,r){return Math.abs(vT(e,r))}function hT(e,r){if(s5(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=u5(t,yf),a=u5(a,yf),t>a&&(a+=yf);var n=u5(e,yf),i=n+yf;return n>=t&&n<=a||i>=t&&i<=a}function tK(e,r,t,a){if(!hT(r,a))return!1;var n,i;return t[0]<t[1]?(n=t[0],i=t[1]):(n=t[1],i=t[0]),e>=n&&e<=i}function f5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=s5([t,a]),u,s,f,c,h;l?(u=0,s=Th,f=yf):t<a?(u=t,f=a):(u=a,f=t),e<r?(c=e,h=r):(c=r,h=e);function d(b,C){return[b*Math.cos(C)+n,i-b*Math.sin(C)]}var m=Math.abs(f-u)<=Th?0:1;function p(b,C,x){return"A"+[b,b]+" "+[0,m,x]+" "+d(b,C)}var y;return l?c===null?y="M"+d(h,u)+p(h,s,0)+p(h,f,0)+"Z":y="M"+d(c,u)+p(c,s,0)+p(c,f,0)+"ZM"+d(h,u)+p(h,s,1)+p(h,f,1)+"Z":c===null?(y="M"+d(h,u)+p(h,f,0),o&&(y+="L0,0Z")):y="M"+d(c,u)+"L"+d(h,u)+p(h,f,0)+"L"+d(c,f)+p(c,u,1)+"Z",y}function aK(e,r,t,a,n){return f5(null,e,r,t,a,n,0)}function nK(e,r,t,a,n){return f5(null,e,r,t,a,n,1)}function iK(e,r,t,a,n,i){return f5(e,r,t,a,n,i,1)}dT.exports={deg2rad:Q$,rad2deg:eK,angleDelta:vT,angleDist:rK,isFullCircle:s5,isAngleInsideSector:hT,isPtInsideSector:tK,pathArc:aK,pathSector:nK,pathAnnulus:iK}});var mT=ae(H0=>{"use strict";H0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};H0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};H0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};H0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};H0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};H0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var bT=ae(O0=>{"use strict";var c5=(v1(),ei(c1)).mod;O0.segmentsIntersect=yT;function yT(e,r,t,a,n,i,o,l){var u=t-e,s=n-e,f=o-n,c=a-r,h=i-r,d=l-i,m=u*d-f*c;if(m===0)return null;var p=(s*d-f*h)/m,y=(s*c-u*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+u*p,y:r+c*p}}O0.segmentDistance=function(r,t,a,n,i,o,l,u){if(yT(r,t,a,n,i,o,l,u))return 0;var s=a-r,f=n-t,c=l-i,h=u-o,d=s*s+f*f,m=c*c+h*h,p=Math.min(mm(s,f,d,i-r,o-t),mm(s,f,d,l-r,u-t),mm(c,h,m,r-i,t-o),mm(c,h,m,a-i,n-o));return Math.sqrt(p)};function mm(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var u=a*r-n*e;return u*u/t}}var gm,v5,gT;O0.getTextLocation=function(r,t,a,n){if((r!==v5||n!==gT)&&(gm={},v5=r,gT=n),gm[a])return gm[a];var i=r.getPointAtLength(c5(a-n/2,t)),o=r.getPointAtLength(c5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),u=r.getPointAtLength(c5(a,t)),s=(u.x*4+i.x+o.x)/6,f=(u.y*4+i.y+o.y)/6,c={x:s,y:f,theta:l};return gm[a]=c,c};O0.clearLocationCache=function(){v5=null};O0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,h;function d(p){var y=r.getPointAtLength(p);p===0?c=y:p===s&&(h=y);var b=y.x<n?n-y.x:y.x>i?y.x-i:0,C=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(u);m;){if(u+=m+a,u>f)return;m=d(u)}for(m=d(f);m;){if(f-=m+a,u>f)return;m=d(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};O0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,u=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,s=0,f=0,c=i,h,d,m;s<l;){if(h=(f+c)/2,d=r.getPointAtLength(h),m=d[a]-t,Math.abs(m)<o)return d;u*m>0?c=h:f=h,s++}return d}});var ym=ae(kh=>{"use strict";var Cs={};kh.throttle=function(r,t,a){var n=Cs[r],i=Date.now();if(!n){for(var o in Cs)Cs[o].ts<i-6e4&&delete Cs[o];n=Cs[r]={ts:0,timer:null}}_T(n);function l(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};kh.done=function(e){var r=Cs[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};kh.clear=function(e){if(e)_T(Cs[e]),delete Cs[e];else for(var r in Cs)kh.clear(r)};function _T(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var wT=ae((bge,xT)=>{"use strict";xT.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var MT=ae((_ge,bm)=>{"use strict";bm.exports=h5;bm.exports.isMobile=h5;bm.exports.default=h5;var oK=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,lK=/CrOS/,uK=/android|ipad|playbook|silk/i;function h5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=oK.test(r)&&!lK.test(r)||!!e.tablet&&uK.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var TT=ae((xge,AT)=>{"use strict";var sK=Wt(),fK=MT();AT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=cK(),typeof t!="string")return!0;var a=fK({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var o=n[i];if(o.indexOf("Safari")!==-1)for(var l=i-1;l>-1;l--){var u=n[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(sK(s)&&(s=+s),s>=13)return!0}}}return a};function cK(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var CT=ae((wge,kT)=>{"use strict";var vK=Et();kT.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=vK.select(this)}),n}});var ET=ae((Mge,ST)=>{"use strict";var hK=bt();ST.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var u=l[t];if(u)return u}i=hK.localeRegistry}var s=a.split("-")[0];if(s===a)break;a=s}return t}});var DT=ae((Age,LT)=>{"use strict";LT.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var o=r[i];t[o]!==1&&(t[o]=1,a[n++]=o)}return a}});var qT=ae((Tge,FT)=>{"use strict";FT.exports=function(r){for(var t=mK(r)?pK:dK,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function dK(e){return e.visible===!0}function pK(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function mK(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var RT=ae((kge,PT)=>{"use strict";PT.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var u=parseFloat(n).toPrecision(12);u.indexOf("e+")===-1&&(n=+u)}}return n}});var BT={};u1(BT,{default:()=>bK});function yK(e){return typeof e=="string"&&(e=e.replace(gK,"")),(0,zT.default)(e)?Number(e):NT.BADNUM}var zT,NT,gK,bK,IT=l1(()=>{"use strict";zT=fy(Wt()),NT=fy(Oa()),gK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;bK=yK});var UT=ae((Cge,OT)=>{"use strict";var _K=/<[^>]*>/g,xK=/[\p{S}\p{P}]/gu,wK=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,MK=/�/g,AK=/\s+/g,_m="-",HT=_m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),TK=new RegExp(HT+"{3,}","g"),kK=new RegExp(HT+"$","g"),CK=60;function SK(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}OT.exports=function(r,t=CK){var a=SK(r!=null?r:"").replace(MK,"").replace(_K," ").replace(xK,n=>n===_m?n:"").toLowerCase().trim().replace(AK,_m).replace(wK,"").replace(TK,_m);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(kK,"")}});var mr=ae((Sge,ek)=>{"use strict";var Ch=Et(),EK=s1().utcFormat,LK=vy().format,jT=Wt(),ZT=Oa(),JT=ZT.FP_SAFE,DK=-JT,GT=ZT.BADNUM,Fe=ek.exports={};Fe.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var YT={};Fe.warnBadFormat=function(e){var r=String(e);YT[r]||(YT[r]=1,Fe.warn('encountered bad format: "'+r+'"'))};Fe.noFormat=function(e){return String(e)};Fe.numberFormat=function(e){var r;try{r=LK(Fe.adjustFormat(e))}catch(t){return Fe.warnBadFormat(e),Fe.noFormat}return r};Fe.nestedProperty=$v();Fe.keyedContainer=R_();Fe.relativeAttr=N_();Fe.isPlainObject=uf();Fe.toLogRange=Tp();Fe.relinkPrivateKeys=O_();var bf=Vi();Fe.isArrayBuffer=bf.isArrayBuffer;Fe.isTypedArray=bf.isTypedArray;Fe.isArrayOrTypedArray=bf.isArrayOrTypedArray;Fe.isArray1D=bf.isArray1D;Fe.ensureArray=bf.ensureArray;Fe.concat=bf.concat;Fe.maxRowLength=bf.maxRowLength;Fe.minRowLength=bf.minRowLength;var $T=(v1(),ei(c1));Fe.mod=$T.mod;Fe.modHalf=$T.modHalf;var _f=uM();Fe.valObjectMeta=_f.valObjectMeta;Fe.coerce=_f.coerce;Fe.coerce2=_f.coerce2;Fe.coerceFont=_f.coerceFont;Fe.coercePattern=_f.coercePattern;Fe.coerceHoverinfo=_f.coerceHoverinfo;Fe.coerceSelectionMarkerOpacity=_f.coerceSelectionMarkerOpacity;Fe.validate=_f.validate;var ho=uT();Fe.dateTime2ms=ho.dateTime2ms;Fe.isDateTime=ho.isDateTime;Fe.ms2DateTime=ho.ms2DateTime;Fe.ms2DateTimeLocal=ho.ms2DateTimeLocal;Fe.cleanDate=ho.cleanDate;Fe.isJSDate=ho.isJSDate;Fe.formatDate=ho.formatDate;Fe.incrementMonth=ho.incrementMonth;Fe.dateTick0=ho.dateTick0;Fe.dfltRange=ho.dfltRange;Fe.findExactDates=ho.findExactDates;Fe.MIN_MS=ho.MIN_MS;Fe.MAX_MS=ho.MAX_MS;var U0=l5();Fe.findBin=U0.findBin;Fe.sorterAsc=U0.sorterAsc;Fe.sorterDes=U0.sorterDes;Fe.distinctVals=U0.distinctVals;Fe.roundUp=U0.roundUp;Fe.sort=U0.sort;Fe.findIndexOfMin=U0.findIndexOfMin;Fe.sortObjectKeys=(pm(),ei(dm)).default;var Ss=fT();Fe.aggNums=Ss.aggNums;Fe.len=Ss.len;Fe.mean=Ss.mean;Fe.geometricMean=Ss.geometricMean;Fe.median=Ss.median;Fe.midRange=Ss.midRange;Fe.variance=Ss.variance;Fe.stdev=Ss.stdev;Fe.interp=Ss.interp;var Pl=am();Fe.init2dArray=Pl.init2dArray;Fe.transposeRagged=Pl.transposeRagged;Fe.dot=Pl.dot;Fe.translationMatrix=Pl.translationMatrix;Fe.rotationMatrix=Pl.rotationMatrix;Fe.rotationXYMatrix=Pl.rotationXYMatrix;Fe.apply3DTransform=Pl.apply3DTransform;Fe.apply2DTransform=Pl.apply2DTransform;Fe.apply2DTransform2=Pl.apply2DTransform2;Fe.convertCssMatrix=Pl.convertCssMatrix;Fe.inverseTransformMatrix=Pl.inverseTransformMatrix;var Au=pT();Fe.deg2rad=Au.deg2rad;Fe.rad2deg=Au.rad2deg;Fe.angleDelta=Au.angleDelta;Fe.angleDist=Au.angleDist;Fe.isFullCircle=Au.isFullCircle;Fe.isAngleInsideSector=Au.isAngleInsideSector;Fe.isPtInsideSector=Au.isPtInsideSector;Fe.pathArc=Au.pathArc;Fe.pathSector=Au.pathSector;Fe.pathAnnulus=Au.pathAnnulus;var F1=mT();Fe.isLeftAnchor=F1.isLeftAnchor;Fe.isCenterAnchor=F1.isCenterAnchor;Fe.isRightAnchor=F1.isRightAnchor;Fe.isTopAnchor=F1.isTopAnchor;Fe.isMiddleAnchor=F1.isMiddleAnchor;Fe.isBottomAnchor=F1.isBottomAnchor;var q1=bT();Fe.segmentsIntersect=q1.segmentsIntersect;Fe.segmentDistance=q1.segmentDistance;Fe.getTextLocation=q1.getTextLocation;Fe.clearLocationCache=q1.clearLocationCache;Fe.getVisibleSegment=q1.getVisibleSegment;Fe.findPointOnPath=q1.findPointOnPath;var Mm=_n();Fe.extendFlat=Mm.extendFlat;Fe.extendDeep=Mm.extendDeep;Fe.extendDeepAll=Mm.extendDeepAll;Fe.extendDeepNoArrays=Mm.extendDeepNoArrays;var d5=Ms();Fe.log=d5.log;Fe.warn=d5.warn;Fe.error=d5.error;var FK=(A1(),ei(M1));Fe.counterRegex=FK.counter;var p5=ym();Fe.throttle=p5.throttle;Fe.throttleDone=p5.done;Fe.clearThrottle=p5.clear;var Rl=_h();Fe.getGraphDiv=Rl.getGraphDiv;Fe.isPlotDiv=Rl.isPlotDiv;Fe.removeElement=Rl.removeElement;Fe.addStyleRule=Rl.addStyleRule;Fe.addRelatedStyleRule=Rl.addRelatedStyleRule;Fe.deleteRelatedStyleRule=Rl.deleteRelatedStyleRule;Fe.setStyleOnHover=Rl.setStyleOnHover;Fe.getFullTransformMatrix=Rl.getFullTransformMatrix;Fe.getElementTransformMatrix=Rl.getElementTransformMatrix;Fe.getElementAndAncestors=Rl.getElementAndAncestors;Fe.equalDomRects=Rl.equalDomRects;Fe.clearResponsive=wT();Fe.preserveDrawingBuffer=TT();Fe.makeTraceGroups=CT();Fe._=ET();Fe.notifier=U4();Fe.filterUnique=DT();Fe.filterVisible=qT();Fe.pushUnique=$4();Fe.increment=RT();Fe.cleanNumber=(IT(),ei(BT)).default;Fe.slugify=UT();Fe.ensureNumber=function(r){return jT(r)?(r=Number(r),r>JT||r<DK?GT:r):GT};Fe.isIndex=function(e,r){return r!==void 0&&e>=r?!1:jT(e)&&e>=0&&e%1===0};Fe.noop=tm();Fe.identity=hm();Fe.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};Fe.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],o=Fe.nestedProperty(e,i.replace("?",t)),l=Fe.nestedProperty(e,i.replace("?",a)),u=o.get();o.set(l.get()),l.set(u)}};Fe.raiseToTop=function(r){r.parentNode.appendChild(r)};Fe.cancelTransition=function(e){return e.transition().duration(0)};Fe.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Fe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Fe.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=r(e[l],t,a,n);return o};Fe.randstr=function e(r,t,a,n){if(a||(a=16),t===void 0&&(t=24),t<=0)return"0";var i=Math.log(Math.pow(2,t))/Math.log(a),o="",l,u,s;for(l=2;i===1/0;l*=2)i=Math.log(Math.pow(2,t/l))/Math.log(a)*l;var f=i-Math.floor(i);for(l=0;l<Math.floor(i);l++)s=Math.floor(Math.random()*a).toString(a),o=s+o;f&&(u=Math.pow(a,f),s=Math.floor(Math.random()*u).toString(a),o=s+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(Fe.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};Fe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};Fe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,u,s,f;for(l=0;l<n;l++)i[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,u=0;u<n;u++)s=l+u+1-r,s<-t?s-=a*Math.round(s/a):s>=a&&(s-=a*Math.floor(s/a)),s<0?s=-1-s:s>=t&&(s=a-1-s),f+=e[s]*i[u];o[l]=f}return o};Fe.syncOrAsync=function(e,r,t){var a,n;function i(){return Fe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};Fe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Fe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i<t.length;i++)o=e[t[i]],o!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};Fe.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(Fe.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),o=0;o<i;o++){var l=e[o];r[o][t]=n?a(l):l}};Fe.mergeArrayCastPositive=function(e,r,t){return Fe.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};Fe.fillArray=function(e,r,t,a){if(a=a||Fe.identity,Fe.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};Fe.castOption=function(e,r,t,a){a=a||Fe.identity;var n=Fe.nestedProperty(e,t).get();return Fe.isArrayOrTypedArray(n)?Array.isArray(r)&&Fe.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};Fe.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=Fe.nestedProperty(r,a).get();if(!Array.isArray(n))return n};Fe.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(s){return s!==void 0&&s<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(Fe.isIndex(o)||Fe.isArrayOrTypedArray(o)&&Fe.isIndex(o[0])&&Fe.isIndex(o[1])){var l=o,u=t?t[l]:l;n(u)&&(e[u].selected=1)}}};Fe.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=Fe.nestedProperty(e,t).get();return Fe.isArrayOrTypedArray(a)?a:!1}else if(Fe.isArrayOrTypedArray(t))return t;return!1};function KT(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,u;for(o=0;o<i.length;o++)l=i[o],u=e[l],!(l.charAt(0)==="_"||typeof u=="function")&&(l==="module"?a[l]=u:Array.isArray(u)?l==="colorscale"||n===-1?a[l]=u.slice():a[l]=u.slice(0,n):Fe.isTypedArray(u)?n===-1?a[l]=u.subarray():a[l]=u.subarray(0,n):u&&typeof u=="object"?a[l]=KT(e[l],r[l],t):a[l]=u);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],u=r[l],(typeof u!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=u);return a}Fe.minExtend=KT;Fe.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Fe.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var qK=/Version\/[\d\.]+.*Safari/;Fe.isSafari=function(){return qK.test(window.navigator.userAgent)};var PK=/iPad|iPhone|iPod/;Fe.isIOS=function(){return PK.test(window.navigator.userAgent)};var RK=/Macintosh.+AppleWebKit.+Gecko\)$/;Fe.isMacWKWebView=()=>RK.test(window.navigator.userAgent);var zK=/Firefox\/(\d+)\.\d+/;Fe.getFirefoxVersion=function(){var e=zK.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Fe.isD3Selection=function(e){return e instanceof Ch.selection};Fe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};Fe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};Fe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,u=t[i].match(/(.*)\[([0-9]+)\]/);u?(o=u[1],l=u[2],a=a[o]=[],i===t.length-1?a[l]=r:a[l]={},a=a[l]):(i===t.length-1?a[o]=r:a[o]={},a=a[o])}return n};var NK=/^([^\[\.]+)\.(.+)?/,BK=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function xm(e){return e.slice(0,2)==="__"}Fe.expandObjectPaths=function(e){var r,t,a,n,i,o,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(NK)){if(n=e[t],a=r[1],xm(a))continue;delete e[t],e[a]=Fe.extendDeepNoArrays(e[a]||{},Fe.objectFromPath(t,Fe.expandObjectPaths(n))[a])}else if(r=t.match(BK)){if(n=e[t],a=r[1],xm(a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},Fe.extendDeepNoArrays(o,Fe.objectFromPath(l,Fe.expandObjectPaths(n)));else{if(xm(a))continue;e[a][i]=Fe.expandObjectPaths(n)}}else{if(xm(t))continue;e[t]=Fe.expandObjectPaths(e[t])}}return e};Fe.numSeparate=function(e,r,t){if(t||(t=!1),typeof r!="string"||r.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var a=/(\d+)(\d{3})/,n=r.charAt(0),i=r.charAt(1),o=e.split("."),l=o[0],u=o.length>1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+u};Fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var QT=/^\w*$/;Fe.templateString=function(e,r){var t={};return e.replace(Fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return QT.test(n)?i=r[n]:(t[n]=t[n]||Fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var IK={max:10,count:0,name:"hovertemplate"};Fe.hovertemplateString=e=>m5(Na(ha({},e),{opts:IK}));var HK={max:10,count:0,name:"texttemplate"};Fe.texttemplateString=e=>m5(Na(ha({},e),{opts:HK}));var OK=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function UK(e){var r=e.match(OK);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var GK={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Fe.texttemplateStringForShapes=e=>m5(Na(ha({},e),{opts:GK}));var VT=/^[:|\|]/;function m5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(Fe.TEMPLATE_STRING_REGEX,(o,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=s||f||h||c;(f||c)&&(l=l.substring(1)),(h||c)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(n.parseMultDiv){var y=UK(l);l=y.key,m=y.op,p=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){b=M[l];break}if(QT.test(l)||(b=Fe.nestedProperty(M,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:T,name:A}=n,D=t===!1?o:t;return M<T&&Fe.warn([`Variable '${l}' in ${A} could not be found!`,"Please verify that the template is correct.",`Using value: '${D}'.`].join(" ")),M===T&&Fe.warn(`Too many '${A}' warnings - additional warnings will be suppressed.`),n.count++,D}if(m==="*"&&(b*=p),m==="/"&&(b/=p),u){var C;if(u[0]===":"&&(C=r?r.numberFormat:Fe.numberFormat,b!==""&&(b=C(u.replace(VT,""))(b))),u[0]==="|"){C=r?r.timeFormat:EK;var x=Fe.dateTime2ms(b);b=Fe.formatDate(x,u.replace(VT,""),!1,C)}}else{var _=l+"Label";a.hasOwnProperty(_)&&(b=a[_])}return d&&(b="("+b+")",(f||c)&&(b=" "+b),(h||c)&&(b=b+" ")),b})}var wm=48,XT=57;Fe.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var o=e.charCodeAt(i)||0,l=r.charCodeAt(i)||0,u=o>=wm&&o<=XT,s=l>=wm&&l<=XT;if(u&&(a=10*a+o-wm),s&&(n=10*n+l-wm),!u||!s){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var D1=2e9;Fe.seedPseudoRandom=function(){D1=2e9};Fe.pseudoRandom=function(){var e=D1;return D1=(69069*D1+1)%4294967296,Math.abs(D1-e)<429496729?Fe.pseudoRandom():D1/4294967296};Fe.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=Fe.extractOption(e,r,"htx","hovertext");if(Fe.isValidTextValue(n))return a(n);var i=Fe.extractOption(e,r,"tx","text");if(Fe.isValidTextValue(i))return a(i)};Fe.isValidTextValue=function(e){return e||e===0};Fe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a<r;a++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};Fe.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Fe.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Fe.strRotate=function(e){return e?"rotate("+e+")":""};Fe.strScale=function(e){return e!==1?"scale("+e+")":""};Fe.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,u=e.rotate,s=e.scale;return s?s>1&&(s=1):s=0,Fe.strTranslate(n-s*(t+o),i-s*(a+l))+Fe.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+a)+")":"")};Fe.setTransormAndDisplay=function(e,r){e.attr("transform",Fe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Fe.ensureUniformFontSize=function(e,r){var t=Fe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Fe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};Fe.bigFont=function(e){return Math.round(1.2*e)};var WT=Fe.getFirefoxVersion(),YK=WT!==null&&WT<86;Fe.getPositionFromD3Event=function(){return YK?[Ch.event.layerX,Ch.event.layerY]:[Ch.event.offsetX,Ch.event.offsetY]}});var ak=ae(()=>{"use strict";var VK=mr(),rk={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(g5 in rk)tk=g5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),VK.addStyleRule(tk,rk[g5]);var tk,g5});var y5=ae((Fge,nk)=>{nk.exports=!0});var _5=ae((qge,ik)=>{"use strict";var XK=y5(),b5;typeof window.matchMedia=="function"?b5=!window.matchMedia("(hover: none)").matches:b5=XK;ik.exports=b5});var km=ae((Pge,x5)=>{"use strict";var P1=typeof Reflect=="object"?Reflect:null,ok=P1&&typeof P1.apply=="function"?P1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Am;P1&&typeof P1.ownKeys=="function"?Am=P1.ownKeys:Object.getOwnPropertySymbols?Am=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Am=function(r){return Object.getOwnPropertyNames(r)};function WK(e){console&&console.warn&&console.warn(e)}var uk=Number.isNaN||function(r){return r!==r};function Fa(){Fa.init.call(this)}x5.exports=Fa;x5.exports.once=$K;Fa.EventEmitter=Fa;Fa.prototype._events=void 0;Fa.prototype._eventsCount=0;Fa.prototype._maxListeners=void 0;var lk=10;function Tm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Fa,"defaultMaxListeners",{enumerable:!0,get:function(){return lk},set:function(e){if(typeof e!="number"||e<0||uk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lk=e}});Fa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Fa.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||uk(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function sk(e){return e._maxListeners===void 0?Fa.defaultMaxListeners:e._maxListeners}Fa.prototype.getMaxListeners=function(){return sk(this)};Fa.prototype.emit=function(r){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var n=r==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var u=i[r];if(u===void 0)return!1;if(typeof u=="function")ok(u,this,t);else for(var s=u.length,f=dk(u,s),a=0;a<s;++a)ok(f[a],this,t);return!0};function fk(e,r,t,a){var n,i,o;if(Tm(t),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),i=e._events),o=i[r]),o===void 0)o=i[r]=t,++e._eventsCount;else if(typeof o=="function"?o=i[r]=a?[t,o]:[o,t]:a?o.unshift(t):o.push(t),n=sk(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,WK(l)}return e}Fa.prototype.addListener=function(r,t){return fk(this,r,t,!1)};Fa.prototype.on=Fa.prototype.addListener;Fa.prototype.prependListener=function(r,t){return fk(this,r,t,!0)};function jK(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ck(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=jK.bind(a);return n.listener=t,a.wrapFn=n,n}Fa.prototype.once=function(r,t){return Tm(t),this.on(r,ck(this,r,t)),this};Fa.prototype.prependOnceListener=function(r,t){return Tm(t),this.prependListener(r,ck(this,r,t)),this};Fa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Tm(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():ZK(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Fa.prototype.off=Fa.prototype.removeListener;Fa.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=a[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(r,t[n]);return this};function vk(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?JK(n):dk(n,n.length)}Fa.prototype.listeners=function(r){return vk(this,r,!0)};Fa.prototype.rawListeners=function(r){return vk(this,r,!1)};Fa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):hk.call(e,r)};Fa.prototype.listenerCount=hk;function hk(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Fa.prototype.eventNames=function(){return this._eventsCount>0?Am(this._events):[]};function dk(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function ZK(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function JK(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function $K(e,r){return new Promise(function(t,a){function n(o){e.removeListener(r,i),a(o)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}pk(e,r,i,{once:!0}),r!=="error"&&KK(e,n,{once:!0})})}function KK(e,r,t){typeof e.on=="function"&&pk(e,"error",r,t)}function pk(e,r,t,a){if(typeof e.on=="function")a.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function n(i){a.once&&e.removeEventListener(r,n),t(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Sh=ae((Rge,mk)=>{"use strict";var w5=km().EventEmitter,QK={init:function(e){if(e._ev instanceof w5)return e;var r=new w5,t=new w5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(u){if(u.listener){if(n.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(n,[t])}else return u.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l<i.length-1;l++)o(i[l]);return a=o(i[l]),a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};mk.exports=QK});var bk=ae((zge,yk)=>{"use strict";var gk=mr(),eQ=cf().dfltConfig;function rQ(e,r){for(var t=[],a,n=0;n<r.length;n++)a=r[n],a===e?t[n]=a:typeof a=="object"?t[n]=Array.isArray(a)?gk.extendDeep([],a):gk.extendDeepAll({},a):t[n]=a;return t}var Es={};Es.add=function(e,r,t,a,n){var i,o;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,i),e.undoQueue.index+=1):i=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(r),i.undo.args.unshift(t),i.redo.calls.push(a),i.redo.args.push(n)),e.undoQueue.queue.length>eQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Es.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Es.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Es.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a<t.undo.calls.length;a++)Es.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Es.redo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index>=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a<t.redo.calls.length;a++)Es.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Es.plotDo=function(e,r,t){e.autoplay=!0,t=rQ(e,t),r.apply(null,t)};yk.exports=Es});var M5=ae((Nge,_k)=>{"use strict";_k.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var N1=ae(xn=>{"use strict";var Oo=bt(),Eh=mr(),Sm=Bo(),A5=C1(),tQ=M5(),aQ=xh(),nQ=cf().configAttributes,xk=Io(),zl=Eh.extendDeepAll,R1=Eh.isPlainObject,iQ=Eh.isArrayOrTypedArray,Em=Eh.nestedProperty,oQ=Eh.valObjectMeta,T5="_isSubplotObj",Lm="_isLinkedToArray",lQ="_arrayAttrRegexps",Mk="_deprecated",k5=[T5,Lm,lQ,Mk];xn.IS_SUBPLOT_OBJ=T5;xn.IS_LINKED_TO_ARRAY=Lm;xn.DEPRECATED=Mk;xn.UNDERSCORE_ATTRS=k5;xn.get=function(){var e={};return Oo.allTypes.forEach(function(r){e[r]=sQ(r)}),{defs:{valObjects:oQ,metaKeys:k5.concat(["description","role","editType","impliedEdits"]),editType:{traces:xk.traces,layout:xk.layout},impliedEdits:{}},traces:e,layout:fQ(),frames:cQ(),animation:z1(aQ),config:z1(nQ)}};xn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(k5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!xn.isValObject(o)&&R1(o)&&i!=="impliedEdits"&&xn.crawl(o,r,n+1,l)}})};xn.isValObject=function(e){return e&&e.valType!==void 0};xn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(u,s,f,c){t=t.slice(0,c).concat([s]),a=a.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));h&&l(n,0,"")}function l(u,s,f){var c=u[t[s]],h=f+t[s];if(s===t.length-1)iQ(c)&&r.push(i+h);else if(a[s]){if(Array.isArray(c))for(var d=0;d<c.length;d++)R1(c[d])&&l(c[d],s+1,h+"["+d+"].")}else R1(c)&&l(c,s+1,h+".")}return n=e,i="",xn.crawl(Sm,o),e._module&&e._module.attributes&&xn.crawl(e._module.attributes,o),r};xn.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Oo.modules[e.type||Sm.type.dflt]||{})._module),!o)return!1;if(n=o.attributes,i=n&&n[t],!i){var l=o.basePlotModule;l&&l.attributes&&(i=l.attributes[t])}return i||(i=Sm[t]),Ak(i,r,a)};xn.getLayoutValObject=function(e,r){var t=uQ(e,r[0]);return Ak(t,r,1)};function uQ(e,r){var t,a,n,i,o=e._basePlotModules;if(o){var l;for(t=0;t<o.length;t++){if(n=o[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!l&&n.layoutAttributes&&(l=n.layoutAttributes)}var u=n.baseLayoutAttrOverrides;if(u&&r in u)return u[r]}if(l)return l}var s=e._modules;if(s){for(t=0;t<s.length;t++)if(i=s[t].layoutAttributes,i&&r in i)return i[r]}for(a in Oo.componentsRegistry){if(n=Oo.componentsRegistry[a],n.name==="colorscale"&&r.indexOf("coloraxis")===0)return n.layoutAttributes[r];if(!n.schema&&r===n.name)return n.layoutAttributes}return r in A5?A5[r]:!1}function Ak(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Cm(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(R1(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Cm(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Cm(n))return!1;var i=e.items;if(Array.isArray(i)){if(n>=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Cm(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Cm(e){return e===Math.round(e)&&e>=0}function sQ(e){var r,t;r=Oo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=zl({},Sm),i=zl({},r.attributes);xn.crawl(i,function(u,s,f,c,h){Em(n,h).set(void 0),u===void 0&&Em(i,h).set(void 0)}),zl(a,n),Oo.traceIs(e,"noOpacity")&&delete a.opacity,Oo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Oo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,zl(a,i),t.attributes&&zl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:z1(a)};if(r.layoutAttributes){var l={};zl(l,r.layoutAttributes),o.layoutAttributes=z1(l)}return r.animatable||xn.crawl(o,function(u){xn.isValObject(u)&&"anim"in u&&delete u.anim}),o}function fQ(){var e={},r,t;zl(e,A5);for(r in Oo.subplotsRegistry)if(t=Oo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)wk(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;wk(e,t,n)}for(r in Oo.componentsRegistry){t=Oo.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var o=i.subplots;if(o&&o.xaxis&&!o.yaxis)for(var l in o.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?zl(e,t.layoutAttributes):t.layoutAttributes&&pQ(e,t.layoutAttributes,t.name)}return{layoutAttributes:z1(e)}}function cQ(){var e={frames:zl({},tQ)};return z1(e),e.frames}function z1(e){return vQ(e),hQ(e),dQ(e),e}function vQ(e){function r(t,a,n){!xn.isValObject(t)&&R1(t)&&(t.role="object")}xn.crawl(e,r)}function hQ(e){function r(t,a,n){if(t){var i=t[Lm];i&&(delete t[Lm],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}xn.crawl(e,r)}function dQ(e){function r(t){for(var a in t)if(R1(t[a]))r(t[a]);else if(Array.isArray(t[a]))for(var n=0;n<t[a].length;n++)r(t[a][n]);else t[a]instanceof RegExp&&(t[a]=t[a].toString())}r(e)}function wk(e,r,t){var a=Em(e,t),n=zl({},r.layoutAttributes);n[T5]=!0,a.set(n)}function pQ(e,r,t){var a=Em(e,t);a.set(zl(a.get()||{},r))}});var Ta=ae(G0=>{"use strict";var B1=mr(),mQ=Bo(),xf="templateitemname",C5={name:{valType:"string",editType:"none"}};C5[xf]={valType:"string",editType:"calc"};G0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=C5.name,r[xf]=C5[xf],r};G0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=B1.coerce(i,{},mQ,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};G0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);B1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};G0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[kk(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(s){var f={name:s.name,_input:s},c=f[xf]=s[xf];if(!Tk(c))return f._template=n,f;for(var h=0;h<i.length;h++){var d=i[h];if(d.name===c)return o[c]=1,f._template=d,f}return f[t]=s[t]||!1,f._template=!1,f}function u(){for(var s=[],f=0;f<i.length;f++){var c=i[f],h=c.name;if(Tk(h)&&!o[h]){var d={_template:c,name:h,_input:{_templateitemname:h}};d[xf]=c[xf],s.push(d),o[h]=1}}return s}return{newItem:l,defaultItems:u}};function Tk(e){return e&&typeof e=="string"}function kk(e){var r=e.length-1;return e.charAt(r)!=="s"&&B1.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}G0.arrayDefaultKey=kk;G0.arrayEditor=function(e,r,t){var a=(B1.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function u(){l={},i&&(l[o]={},l[o][xf]=i)}u();function s(d,m){l[d]=m}function f(d,m){i?B1.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function c(){var d=l;return u(),d}function h(d,m){d&&f(d,m);var p=c();for(var y in p)B1.nestedProperty(e,y).set(p[y])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Dn=ae((Hge,Ck)=>{"use strict";var Lh=(A1(),ei(M1)).counter;Ck.exports={idRegex:{x:Lh("x","( domain)?"),y:Lh("y","( domain)?")},attrRegex:Lh("[xy]axis"),xAxisMatch:Lh("xaxis"),yAxisMatch:Lh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var wn=ae(Zi=>{"use strict";var gQ=bt(),S5=Dn();Zi.id2name=function(r){if(!(typeof r!="string"||!r.match(S5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Zi.name2id=function(r){if(r.match(S5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Zi.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(S5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Zi.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Zi.listIds(e,r),i=new Array(n.length),o;for(o=0;o<n.length;o++){var l=n[o];i[o]=a[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var u=a._subplots.gl3d||[];for(o=0;o<u.length;o++){var s=a[u[o]];r?i.push(s[r+"axis"]):i.push(s.xaxis,s.yaxis,s.zaxis)}}return i};Zi.listIds=function(e,r){var t=e._fullLayout;if(!t)return[];var a=t._subplots;return r?a[r+"axis"]:a.xaxis.concat(a.yaxis)};Zi.getFromId=function(e,r,t){var a=e._fullLayout;return r=r===void 0||typeof r!="string"?r:r.replace(" domain",""),t==="x"?r=r.replace(/y[0-9]*/,""):t==="y"&&(r=r.replace(/x[0-9]*/,"")),a[Zi.id2name(r)]};Zi.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(gQ.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=Zi.getFromId(e,r[t+"axis"]||t);return n};Zi.idSort=function(e,r){var t=e.charAt(0),a=r.charAt(0);return t!==a?t>a?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Zi.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Sk(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Zi.isLinked=function(e,r){return Sk(r,e._axisMatchGroups)||Sk(r,e._axisConstraintGroups)}});var wf=ae((Uge,Ek)=>{"use strict";function yQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function bQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Ek.exports={clearOutlineControllers:yQ,clearOutline:bQ}});var Dm=ae((Gge,Lk)=>{"use strict";Lk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Dh=ae(qm=>{"use strict";var Fm=bt(),Yge=Dn().SUBPLOT_PATTERN;qm.getSubplotCalcData=function(e,r,t){var a=Fm.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],u=l[0].trace;u[n]===t&&i.push(l)}return i};qm.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=Fm.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var o=t,l=0;l<e.length;l++){var u=e[l],s=u[0].trace,f=s.zorder!==void 0;s.visible!==!0||s._length===0||(s._module&&s._module.plot===i&&(!f||s.zorder===o)?a.push(u):n.push(u))}return[a,n]};qm.getSubplotData=function(r,t,a){if(!Fm.subplotsRegistry[t])return[];for(var n=Fm.subplotsRegistry[t].attr,i=[],o,l,u,s=0;s<r.length;s++)o=r[s],o[n]===a&&i.push(o);return i}});var Pk=ae(Y0=>{"use strict";var _Q=bt(),I1=mr();Y0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Y0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){Dk(e,o,n.cache),n.check=function(){if(i){var f=Dk(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u<l.length;u++)e._internalOn(l[u],n.check);n.remove=function(){for(var s=0;s<l.length;s++)e._removeInternalListener(l[s],n.check)}}else I1.log("Unable to automatically bind plot updates to API command"),n.lookupTable={},n.remove=function(){};return n.disable=function(){i=!1},n.enable=function(){i=!0},r&&(r._commandObserver=n),n};Y0.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],u=l.method,s=l.args;if(Array.isArray(s)||(s=[]),!u)return!1;var f=Y0.computeAPICommandBindings(e,u,s);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(o=f[0],o.type!==i.type||o.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(o.traces)){o.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==o.traces[c])return!1}else return!1;else if(o.prop!==i.prop)return!1}o=f[0];var h=o.value;if(Array.isArray(h))if(h.length===1)h=h[0];else return!1;t&&(t[h]=a)}return i};function Dk(e,r,t){var a,n,i,o=!1;if(r.type==="data")a=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")a=e._fullLayout;else return!1;return n=I1.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(o=!0),i[r.prop]=n,{changed:o,value:n}}Y0.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=_Q.apiMethodRegistry[r],n=[e];Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)n.push(t[i]);return a.apply(null,n).catch(function(o){return I1.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Y0.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=qk(e,t);break;case"relayout":a=Fk(e,t);break;case"update":a=qk(e,[t[0],t[2]]).concat(Fk(e,[t[1]]));break;case"animate":a=xQ(e,t);break;default:a=[]}return a};function xQ(e,r){return Array.isArray(r[0])&&r[0].length===1&&["string","number"].indexOf(typeof r[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:r[0][0].toString()}]:[]}function Fk(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(I1.isPlainObject(a))n=a;else return t;return E5(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function qk(e,r){var t,a,n,i,o=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if(I1.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),E5(i,function(l,u,s){var f,c;if(Array.isArray(s)){c=s.slice();var h=Math.min(c.length,e.data.length);t&&(h=Math.min(h,t.length)),f=[];for(var d=0;d<h;d++)f[d]=t?t[d]:d}else c=s,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var m=c;c=[];for(var p=0;p<f.length;p++)c[p]=m}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function E5(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;I1.isPlainObject(i)?E5(i,r,o,a+1):r(o,n,i)}})}});var Mn=ae((jge,Yk)=>{"use strict";var Wge=Et(),wQ=s1().timeFormatLocale,MQ=vy().formatLocale,Fh=Wt(),AQ=hy(),TQ=Jv().version,Jt=bt(),kQ=N1(),CQ=Ta(),Qr=mr(),SQ=Ft(),Rk=Oa().BADNUM,Ji=wn(),EQ=wf().clearOutline,LQ=Dm(),L5=xh(),DQ=M5(),FQ=Dh().getModuleCalcData,zk=Qr.relinkPrivateKeys,V0=Qr._,Rr=Yk.exports={};Qr.extendFlat(Rr,Jt);Rr.attributes=Bo();Rr.attributes.type.values=Rr.allTypes;Rr.fontAttrs=vi();Rr.layoutAttributes=C1();var Rm=Pk();Rr.executeAPICommand=Rm.executeAPICommand;Rr.computeAPICommandBindings=Rm.computeAPICommandBindings;Rr.manageCommandObserver=Rm.manageCommandObserver;Rr.hasSimpleAPICommandBindings=Rm.hasSimpleAPICommandBindings;Rr.redrawText=function(e){return e=Qr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Jt.getComponentMethod("annotations","draw")(e),Jt.getComponentMethod("legend","draw")(e),Jt.getComponentMethod("colorbar","draw")(e),r(Rr.previousPromises(e)))},300)})};Rr.resize=function(e){e=Qr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Qr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Qr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Jt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Rr.graphJson(e,!1,"object");a.version=TQ;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var qQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],PQ=["year","month","dayMonth","dayMonthYear"];Rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||Rr.createTransitionData(e),n._dfltTitle={plot:V0(e,"Click to enter Plot title"),subtitle:V0(e,"Click to enter Plot subtitle"),x:V0(e,"Click to enter X axis title"),y:V0(e,"Click to enter Y axis title"),colorbar:V0(e,"Click to enter Colorscale title"),annotation:V0(e,"new text")},n._traceWord=V0(e,"trace");var h=Nk(e,qQ);if(a._initialAutoSizeIsDone){var d=a.width,m=a.height;Rr.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Rr.sanitizeMargins(n)}else{Rr.supplyLayoutGlobalDefaults(i,n,h);var p=!i.width||!i.height,y=n.autosize,b=f.autosizable,C=p&&(y||b);C?Rr.plotAutoSize(e,i,n):p&&Rr.sanitizeMargins(n),!y&&p&&(i.width=n.width,i.height=n.height)}n._d3locale=NQ(h,n.separators),n._extraFormat=Nk(e,PQ),n._initialAutoSizeIsDone=!0,n._dataLength=u.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=zQ(),_=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=RQ(o,u),Rr.supplyDataDefaults(u,l,i,n);var T=Object.keys(_.x),A=Object.keys(_.y);if(T.length>1&&A.length>1){for(Jt.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<T.length;c++)Qr.pushUnique(x.xaxis,T[c]);for(c=0;c<A.length;c++)Qr.pushUnique(x.yaxis,A[c]);for(var D in M)Qr.pushUnique(x.cartesian,D)}if(n._has=Rr._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)zk(l[c],o[c]);Rr.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var P=n._visibleModules,z=[];for(c=0;c<P.length;c++){var B=P[c].crossTraceDefaults;B&&Qr.pushUnique(z,B)}for(c=0;c<z.length;c++)z[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&T.length>15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Rr.linkSubplots(l,n,o,a),Rr.cleanPlot(l,n,o,a);var X=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=X,I=H;V&&!I?a._bgLayer.remove():I&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&EQ({_fullLayout:a}),BQ(l,n),zk(n,a),Jt.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,ne={},te;for(te in Q)ne[te]="old";for(c=0;c<l.length;c++)te=l[c].uid,ne[te]||(Q[te]={}),ne[te]="new";for(te in ne)ne[te]==="old"&&delete Q[te];Hk(n),Jt.getComponentMethod("rangeslider","makeData")(n),!t&&s.length===l.length&&Rr.supplyDefaultsUpdateCalc(s,l)};Rr.supplyDefaultsUpdateCalc=function(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=(e[t]||[])[0];n&&n.trace&&(n.trace=a)}};function RQ(e,r){var t=r.length,a,n=e.length,i=new Array(t),o={};function l(f,c){i[c]=f,o[f]=1}function u(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var s=r[a].uid;typeof s=="number"&&(s=String(s)),!u(s,a)&&(a<n&&u(e[a].uid,a)||l(Qr.randstr(o),a))}return i}function zQ(){var e=Jt.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=Jt.subplotsRegistry;for(var i in n){var o=n[i],l=o.attr;if(l&&(e.push(i),Array.isArray(l)))for(a=0;a<l.length;a++)Qr.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function Nk(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var h=!0,d=0;d<r.length;d++){var m=r[d];n[m]||(c[m]?n[m]=c[m]:h=!1)}h&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,u=0;u<2;u++){var s=(l[t]||{}).format;if(s&&(i(s),a))break;l=Jt.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(Jt.localeRegistry.en.format),n}function NQ(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=MQ(e).format(Qr.adjustFormat(t))}catch(a){return Qr.warnBadFormat(t),Qr.noFormat}return t},timeFormat:wQ(e).utcFormat}}function BQ(e,r){var t,a=[];r.meta&&(t=r._meta={meta:r.meta,layout:{meta:r.meta}});for(var n=0;n<e.length;n++){var i=e[n];i.meta?a[i.index]=i._meta={meta:i.meta}:r.meta&&(i._meta={meta:r.meta}),r.meta&&(i._meta.layout={meta:r.meta})}a.length&&(t||(t=r._meta={}),t.data=a)}Rr.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])};Rr._hasPlotType=function(e){var r,t=this._basePlotModules||[];for(r=0;r<t.length;r++)if(t[r].name===e)return!0;var a=this._modules||[];for(r=0;r<a.length;r++){var n=a[r].name;if(n===e)return!0;var i=Jt.modules[n];if(i&&i.categories[e])return!0}return!1};Rr.cleanPlot=function(e,r,t,a){var n,i,o=a._basePlotModules||[];for(n=0;n<o.length;n++){var l=o[n];l.clean&&l.clean(e,r,t,a)}var u=a._has&&a._has("gl"),s=r._has&&r._has("gl");u&&!s&&a._glcontainer!==void 0&&(a._glcontainer.selectAll(".gl-canvas").remove(),a._glcontainer.selectAll(".no-webgl").remove(),a._glcanvas=null);var f=!!a._infolayer;e:for(n=0;n<t.length;n++){var c=t[n],h=c.uid;for(i=0;i<e.length;i++){var d=e[i];if(h===d.uid)continue e}f&&a._infolayer.select(".cb"+h).remove()}};Rr.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},u=r._subplots,s={_fullData:e,_fullLayout:r},f=u.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],h=o[c],d=Ji.getFromId(s,c,"x"),m=Ji.getFromId(s,c,"y"),p;for(h?p=l[c]=h:(p=l[c]={},p.id=c),d._counterAxes.push(m._id),m._counterAxes.push(d._id),d._subplotsWith.push(c),m._subplotsWith.push(c),p.xaxis=d,p.yaxis=m,p._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===p.xaxis._id&&y.yaxis===p.yaxis._id&&y.cliponaxis===!1){p._hasClipOnAxisFalse=!0;break}}}var b=Ji.list(s,null,!0),C;for(n=0;n<b.length;n++){C=b[n];var x=null;C.overlaying&&(x=Ji.getFromId(s,C.overlaying),x&&x.overlaying&&(C.overlaying=!1,x=null)),C._mainAxis=x||C,x&&(C.domain=x.domain.slice()),C._anchorAxis=C.anchor==="free"?null:Ji.getFromId(s,C.anchor)}for(n=0;n<b.length;n++)if(C=b[n],C._counterAxes.sort(Ji.idSort),C._subplotsWith.sort(Qr.subplotSort),C._mainSubplot=IQ(C,r),C._counterAxes.length&&(C.spikemode&&C.spikemode.indexOf("across")!==-1||C.automargin&&C.mirror&&C.anchor!=="free"||Jt.getComponentMethod("rangeslider","isVisible")(C))){var _=1,M=0;for(i=0;i<C._counterAxes.length;i++){var T=Ji.getFromId(s,C._counterAxes[i]);_=Math.min(_,T.domain[0]),M=Math.max(M,T.domain[1])}_<M&&(C._counterDomainMin=_,C._counterDomainMax=M)}};function IQ(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",o="",l="";if(n&&(l=n._mainAxis._id,i=a?e._id+l:l+e._id),!i||!r._plots[i]){i="";for(var u=e._counterAxes,s=0;s<u.length;s++){var f=u[s],c=a?e._id+f:f+e._id;o||(o=c);var h=Ji.getFromId(t,f);if(l&&h.overlaying===l){i=c;break}}}return i||o}Rr.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,u=0,s,f,c;function h(C){r.push(C);var x=C._module;x&&(Qr.pushUnique(n,x),C.visible===!0&&Qr.pushUnique(i,x),Qr.pushUnique(o,C._module.basePlotModule),l++,C._input.visible!==!1&&u++)}var d={},m=[],p=(t.template||{}).data||{},y=CQ.traceTemplater(p);for(s=0;s<e.length;s++)c=e[s],f=y.newTrace(c),f.uid=a._traceUids[s],Rr.supplyTraceDefaults(c,f,u,a,s),f.index=s,f._input=c,h(f),Jt.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),Jt.traceIs(f,"carpetDependent")&&m.push(s);for(s=0;s<m.length;s++)if(f=r[m[s]],!!f.visible){var b=d[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};Rr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return Qr.coerce(e||{},t,L5,n,i)}if(a("mode"),a("direction"),a("fromcurrent"),Array.isArray(e.frame))for(t.frame=[],r=0;r<e.frame.length;r++)t.frame[r]=Rr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=Rr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=Rr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=Rr.supplyAnimationTransitionDefaults(e.transition||{});return t};Rr.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,L5.frame,a,n)}return t("duration"),t("redraw"),r};Rr.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e||{},r,L5.transition,a,n)}return t("duration"),t("easing"),r};Rr.supplyFrameDefaults=function(e){var r={};function t(a,n){return Qr.coerce(e,r,DQ,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};Rr.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||SQ.defaults,o=i[t%i.length],l;function u(x,_){return Qr.coerce(e,r,Rr.attributes,x,_)}var s=u("visible");u("type"),u("name",a._traceWord+" "+n),u("uirevision",a.uirevision);var f=Rr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,h=c.attr,d=c.attributes;if(h&&d){var m=a._subplots,p="";if(Array.isArray(h))for(l=0;l<h.length;l++){var y=h[l],b=Qr.coerce(e,r,d,y);m[y]&&Qr.pushUnique(m[y],b),p+=b}else p=Qr.coerce(e,r,d,h);m[c.name]&&Qr.pushUnique(m[c.name],p)}}if(s&&(u("customdata"),u("ids"),u("meta"),Jt.traceIs(r,"showLegend")?(Qr.coerce(e,r,f.attributes.showlegend?f.attributes:Rr.attributes,"showlegend"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Rr.attributes,"legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),Qr.coerce(e,r,f.attributes.legend?f.attributes:Rr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),Jt.traceIs(r,"noOpacity")||u("opacity"),Jt.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),Jt.traceIs(r,"noHover")||(r.hovertemplate||Qr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&Jt.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var C=u("selectedpoints");Qr.isTypedArray(C)&&(r.selectedpoints=Array.from(C))}return r};Rr.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,h){return Qr.coerce(e,r,Rr.layoutAttributes,c,h)}var n=e.template;Qr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=Qr.coerceFont(a,"font"),o=i.size;Qr.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(o*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var l=a("title.yref");a("title.pad.t"),a("title.pad.r"),a("title.pad.b"),a("title.pad.l");var u=a("title.automargin");a("title.x"),a("title.xanchor"),a("title.y"),a("title.yanchor"),a("title.subtitle.text",r._dfltTitle.subtitle),Qr.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),u&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var s=a("uniformtext.mode");s&&a("uniformtext.minsize"),a("autosize",!(e.width&&e.height)),a("width"),a("height"),a("minreducedwidth"),a("minreducedheight"),a("margin.l"),a("margin.r"),a("margin.t"),a("margin.b"),a("margin.pad"),a("margin.autoexpand"),e.width&&e.height&&Rr.sanitizeMargins(r),Jt.getComponentMethod("grid","sizeDefaults")(e,r),a("paper_bgcolor"),a("separators",t.decimal+t.thousands),a("colorway"),a("datarevision");var f=a("uirevision");a("editrevision",f),a("selectionrevision",f),Jt.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),Jt.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),Jt.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),Qr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),Jt.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),Jt.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),Qr.coerce(e,r,LQ,"scattermode")};function Pm(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}Rr.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,u=Qr.isPlotDiv(r);if(u&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var s=u?window.getComputedStyle(r):{};if(o=Pm(s.width)||Pm(s.maxWidth)||a.width,l=Pm(s.height)||Pm(s.maxHeight)||a.height,Fh(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Rr.layoutAttributes.width.min,h=Rr.layoutAttributes.height.min;o<c&&(o=c),l<h&&(l=h);var d=!t.width&&Math.abs(a.width-o)>1,m=!t.height&&Math.abs(a.height-l)>1;(m||d)&&(d&&(a.width=o),m&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Rr.sanitizeMargins(a)};Rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Jt.componentsRegistry,i=r._basePlotModules,o,l,u,s=Jt.subplotsRegistry.cartesian;for(o in n)u=n[o],u.includeBasePlot&&u.includeBasePlot(e,r);i.length||i.push(s),r._has("cartesian")&&(Jt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Qr.subplotSort);for(l=0;l<i.length;l++)u=i[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)u=c[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);for(o in n)u=n[o],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t)};Rr.purge=function(e){var r=e._fullLayout||{};r._glcontainer!==void 0&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.remove(),r._glcanvas=null),r._modeBar&&r._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),Qr.clearThrottle(),Qr.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};Rr.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&Qr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};Rr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,a=e.margin,n=r-(a.l+a.r),i=t-(a.t+a.b),o;n<0&&(o=(r-1)/(a.l+a.r),a.l=Math.floor(o*a.l),a.r=Math.floor(o*a.r)),i<0&&(o=(t-1)/(a.t+a.b),a.t=Math.floor(o*a.t),a.b=Math.floor(o*a.b))}};Rr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};Rr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function Hk(e){var r=e.margin;if(!e._size){var t=e._size={l:Math.round(r.l),r:Math.round(r.r),t:Math.round(r.t),b:Math.round(r.b),p:Math.round(r.pad)};t.w=Math.round(e.width)-t.l-t.r,t.h=Math.round(e.height)-t.t-t.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}var Ok=2,Uk=2;Rr.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,u=a.minreducedheight,s=Qr.constrain(n-o.l-o.r,Ok,l),f=Qr.constrain(i-o.t-o.b,Uk,u),c=Math.max(0,n-s),h=Math.max(0,i-f),d=a._pushmargin,m=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete m[r];else{var p=t.pad;if(p===void 0&&(p=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:M,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!a._replotting)return Rr.doAutoMargin(e)}};function HQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ji.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Hk(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Qr.extendFlat({},n),u=i.l,s=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var T=0;for(var A in h)A!=="base"&&Fh(h[A][M].size)&&(T=h[A][M].size>T?h[A][M].size:T);var D=Math.max(0,i[M]-T);o[M]=Math.max(0,o[M]-D)}for(var P in h){var z=h[P].l||{},B=h[P].b||{},X=z.val,H=z.size,V=B.val,I=B.size,Q=t-o.r-o.l,ne=a-o.t-o.b;for(var te in h){if(Fh(H)&&h[te].r){var ee=h[te].r.val,fe=h[te].r.size;if(ee>X){var ve=(H*ee+(fe-Q)*X)/(ee-X),Ae=(fe*(1-X)+(H-Q)*(1-ee))/(ee-X);ve+Ae>u+s&&(u=ve,s=Ae)}}if(Fh(I)&&h[te].t){var Ee=h[te].t.val,Be=h[te].t.size;if(Ee>V){var Ue=(I*Ee+(Be-ne)*V)/(Ee-V),ke=(Be*(1-V)+(I-ne)*(1-Ee))/(Ee-V);Ue+ke>c+f&&(c=Ue,f=ke)}}}}}var We=Qr.constrain(t-i.l-i.r,Ok,m),j=Qr.constrain(a-i.t-i.b,Uk,p),re=Math.max(0,t-We),me=Math.max(0,a-j);if(re){var K=(u+s)/re;K>1&&(u/=K,s/=K)}if(me){var $=(c+f)/me;$>1&&(c/=$,f/=$)}if(n.l=Math.round(u)+o.l,n.r=Math.round(s)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Rr.didMarginChange(l,n)||HQ(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var le=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<le)return Jt.call("_doPlot",e);r._size=l,Qr.warn("Too many auto-margin redraws.")}OQ(e)};function OQ(e){var r=Ji.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var Bk=["l","r","t","b","p","w","h"];Rr.didMarginChange=function(e,r){for(var t=0;t<Bk.length;t++){var a=Bk[t],n=e[a],i=r[a];if(!Fh(n)||Math.abs(i-n)>1)return!0}return!1};Rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Rr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,h){if(typeof c=="function")return h?"_function_":null;if(Qr.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){h&&(d[b]="_function");return}d[b]=u(c[b],h)}}),d}var m=Array.isArray(c),p=Qr.isTypedArray(c);if((m||p)&&c.dtype&&c.shape){var y=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:Qr.isArrayBuffer(y)?AQ.encode(y):y},h)}return m?c.map(function(b){return u(b,h)}):p?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.ms2DateTimeLocal(+c):c}var s={data:(i||[]).map(function(c){var h=u(c);return r&&delete h.fit,h})};if(!r&&(s.layout=u(o),a)){var f=o._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),n&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};Rr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var l=(i[a.index]||{}).name,u=n.name;i[a.index]=o[u]=n,u!==l&&(delete o[l],o[u]=n);break;case"insert":n=a.value,o[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete o[n.name],i.splice(a.index,1);break}return Promise.resolve()};Rr.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,o;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var u=[l],s=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&s.indexOf(l.name)===-1;)u.push(l),s.push(l.name);for(var f={};l=u.pop();)if(l.layout&&(f.layout=Rr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),n=l.traces,!n)for(n=[],a=0;a<l.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<l.data.length;a++)i=n[a],i!=null&&(o=f.traces.indexOf(i),o===-1&&(o=f.data.length,f.traces[o]=i),f.data[o]=Rr.extendTrace(f.data[o],l.data[a]))}return f};Rr.recomputeFrameHash=function(e){for(var r=e._transitionData._frameHash={},t=e._transitionData._frames,a=0;a<t.length;a++){var n=t[a];n&&n.name&&(r[n.name]=n)}};Rr.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,u,s,f,c=Qr.extendDeepNoArrays({},r||{}),h=Qr.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=Qr.nestedProperty(h,t[i]),n=a.get(),n===void 0?Qr.nestedProperty(d,t[i]).set(null):(a.set(null),Qr.nestedProperty(d,t[i]).set(n));if(e=Qr.extendDeepNoArrays(e||{},h),t&&t.length){for(i=0;i<t.length;i++)if(l=Qr.nestedProperty(d,t[i]),s=l.get(),!!s){for(u=Qr.nestedProperty(e,t[i]),f=u.get(),Array.isArray(f)||(f=[],u.set(f)),o=0;o<s.length;o++){var m=s[o];m===null?f[o]=null:f[o]=Rr.extendObjectWithContainers(f[o],m)}u.set(f)}}return e};Rr.dataArrayContainers=["dimensions"];Rr.layoutArrayContainers=Jt.layoutArrayContainers;Rr.extendTrace=function(e,r){return Rr.extendObjectWithContainers(e,r,Rr.dataArrayContainers)};Rr.extendLayout=function(e,r){return Rr.extendObjectWithContainers(e,r,Rr.layoutArrayContainers)};Rr.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},u=[];return o.prepareFn=function(){for(var s=Array.isArray(r)?r.length:0,f=a.slice(0,s),c=0;c<f.length;c++){var h=f[c],d=e._fullData[h],m=d._module;if(m){if(m.animatable){var p=m.basePlotModule.name;l[p]||(l[p]=[]),l[p].push(h)}e.data[f[c]]=Rr.extendTrace(e.data[f[c]],r[c])}}var y=Qr.expandObjectPaths(Qr.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var C in y)b.test(C)&&delete y[C].range;Rr.extendLayout(e.layout,y),delete e.calcdata,Rr.supplyDefaults(e),Rr.doCalcdata(e);var x=Qr.expandObjectPaths(t);if(x){var _=e._fullLayout._plots;for(var M in _){var T=_[M],A=T.xaxis,D=T.yaxis,P=A.range.slice(),z=D.range.slice(),B=null,X=null,H=null,V=null;Array.isArray(x[A._name+".range"])?B=x[A._name+".range"].slice():Array.isArray((x[A._name]||{}).range)&&(B=x[A._name].range.slice()),Array.isArray(x[D._name+".range"])?X=x[D._name+".range"].slice():Array.isArray((x[D._name]||{}).range)&&(X=x[D._name].range.slice()),P&&B&&(A.r2l(P[0])!==A.r2l(B[0])||A.r2l(P[1])!==A.r2l(B[1]))&&(H={xr0:P,xr1:B}),z&&X&&(D.r2l(z[0])!==D.r2l(X[0])||D.r2l(z[1])!==D.r2l(X[1]))&&(V={yr0:z,yr1:X}),(H||V)&&u.push(Qr.extendFlat({plotinfo:T},H,V))}}return Promise.resolve()},o.runFn=function(s){var f,c=e._fullLayout._basePlotModules,h=u.length,d;if(t)for(d=0;d<c.length;d++)c[d].transitionAxes&&c[d].transitionAxes(e,u,i,s);h?(f=Qr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var m in l){var p=l[m],y=e._fullData[p[0]]._module;y.basePlotModule.plot(e,p,f,s)}},Gk(e,i,o)};Rr.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var u=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var s in u){var f=u[s],c=f.xaxis,h=f.yaxis,d=a[c._name].range.slice(),m=a[h._name].range.slice(),p=c.range.slice(),y=h.range.slice();c.setScale(),h.setScale();var b=null,C=null;(c.r2l(d[0])!==c.r2l(p[0])||c.r2l(d[1])!==c.r2l(p[1]))&&(b={xr0:d,xr1:p}),(h.r2l(m[0])!==h.r2l(y[0])||h.r2l(m[1])!==h.r2l(y[1]))&&(C={yr0:m,yr1:y}),(b||C)&&l.push(Qr.extendFlat({plotinfo:f},b,C))}return Promise.resolve()},o.runFn=function(u){for(var s=e._fullData,f=e._fullLayout,c=f._basePlotModules,h,d,m,p=[],y=0;y<s.length;y++)p.push(y);function b(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,l,h,u)}function C(){if(e._fullLayout)for(var x=0;x<c.length;x++)c[x].plot(e,m,d,u)}l.length&&r.anim?i.ordering==="traces first"?(h=Qr.extendFlat({},i,{duration:0}),m=p,d=i,setTimeout(b,i.duration),C()):(h=i,m=null,d=Qr.extendFlat({},i,{duration:0}),setTimeout(C,h.duration),b()):l.length?(h=i,b()):r.anim&&(m=p,d=i,C())},Gk(e,i,o)};function Gk(e,r,t){var a=!1;function n(c){var h=Promise.resolve();if(!c)return h;for(;c.length;)h=h.then(c.shift());return h}function i(c){if(c)for(;c.length;)c.shift()}function o(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Jt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&l(c)}}t.runFn(m),setTimeout(m())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Jt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var s=[Rr.previousPromises,u,t.prepareFn,Rr.rehover,Rr.reselect,o],f=Qr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Rr.doCalcdata=function(e,r){var t=Ji.list(e),a=e._fullData,n=e._fullLayout,i,o,l,u=new Array(a.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l<a.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){u[l]=s[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=kQ.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(l=0;l<f.length;l++)t.push(n[f[l]].radialaxis,n[f[l]].angularaxis);for(var c in n._colorAxes){var h=n[c];h.cauto!==!1&&(delete h.cmin,delete h.cmax)}function d(p,y){if(i=a[p],o=i._module,!!o.isContainer===y){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:Rk,y:Rk}]),b[0].t||(b[0].t={}),b[0].trace=i,u[p]=b}}for(YQ(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);Ik(e);var m=GQ(t,e);if(m.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<m.length;l++)d(m[l],!0);for(l=0;l<m.length;l++)d(m[l],!1);Ik(e)}Jt.getComponentMethod("fx","calc")(e),Jt.getComponentMethod("errorbars","calc")(e)};var UQ=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function GQ(e,r){var t=[],a,n,i,o,l;function u(te,ee,fe){var ve=ee._id.charAt(0);if(te==="histogram2dcontour"){var Ae=ee._counterAxes[0],Ee=Ji.getFromId(r,Ae),Be=ve==="x"||Ae==="x"&&Ee.type==="category",Ue=ve==="y"||Ae==="y"&&Ee.type==="category";return function(ke,We){return ke===0||We===0||Be&&ke===fe[We].length-1||Ue&&We===fe.length-1?-1:(ve==="y"?We:ke)-1}}else return function(ke,We){return ve==="y"?We:ke}}var s={min:function(te){return Qr.aggNums(Math.min,null,te)},max:function(te){return Qr.aggNums(Math.max,null,te)},sum:function(te){return Qr.aggNums(function(ee,fe){return ee+fe},null,te)},total:function(te){return Qr.aggNums(function(ee,fe){return ee+fe},null,te)},mean:function(te){return Qr.mean(te)},"geometric mean":function(te){return Qr.geometricMean(te)},median:function(te){return Qr.median(te)}};function f(te,ee){return te[1]-ee[1]}function c(te,ee){return ee[1]-te[1]}for(a=0;a<e.length;a++){var h=e[a];if(h.type==="category"){var d=h.categoryorder.match(UQ);if(d){var m=d[1],p=d[2],y=h._id.charAt(0),b=y==="x",C=[];for(n=0;n<h._categories.length;n++)C.push([h._categories[n],[]]);for(n=0;n<h._traceIndices.length;n++){var x=h._traceIndices[n],_=r._fullData[x];if(_.visible===!0){var M=_.type;Jt.traceIs(_,"histogram")&&(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=M==="splom",A=M==="scattergl",D=r.calcdata[x];for(i=0;i<D.length;i++){var P=D[i],z,B;if(T){var X=_._axesDim[h._id];if(!b){var H=_._diag[X][0];H&&(h=r._fullLayout[Ji.id2name(H)])}var V=P.trace.dimensions[X].values;for(o=0;o<V.length;o++)for(z=h._categoriesMap[V[o]],l=0;l<P.trace.dimensions.length;l++)if(l!==X){var I=P.trace.dimensions[l];C[z][1].push(I.values[o])}}else if(A){for(o=0;o<P.t.x.length;o++)b?(z=P.t.x[o],B=P.t.y[o]):(z=P.t.y[o],B=P.t.x[o]),C[z][1].push(B);P.t&&P.t._scene&&delete P.t._scene.dirty}else if(P.hasOwnProperty("z")){B=P.z;var Q=u(_.type,h,B);for(o=0;o<B.length;o++)for(l=0;l<B[o].length;l++)z=Q(l,o),z+1&&C[z][1].push(B[o][l])}else{if(z=P.p,z===void 0&&(z=P[y]),isNaN(z)||z<0)continue;for(B=P.s,B===void 0&&(B=P.v),B===void 0&&(B=b?P.y:P.x),Array.isArray(B)||(B===void 0?B=[]:B=[B]),o=0;o<B.length;o++)C[z][1].push(B[o])}}}}h._categoriesValue=C;var ne=[];for(n=0;n<C.length;n++)ne.push([C[n][0],s[m](C[n][1])]);ne.sort(p==="descending"?c:f),h._categoriesAggregatedValue=ne,h._initialCategories=ne.map(function(te){return te[0]}),t=t.concat(h.sortByInitialCategories())}}}return t}function YQ(e,r,t){var a={};function n(u){u.clearCalc(),u.type==="multicategory"&&u.setupMultiCategory(r),a[u._id]=1}Qr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[Ji.id2name(l)])}function Ik(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],u=l.crossTraceCalc;if(u){var s=l.basePlotModule.name;a[s]?Qr.pushUnique(a[s],u):a[s]=[u]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var h=c[n],d=o==="cartesian"?r._plots[h]:r[h];for(i=0;i<f.length;i++)f[i](e,d,h)}else for(i=0;i<f.length;i++)f[i](e)}}Rr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};Rr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};Rr.reselect=function(e){var r=e._fullLayout,t=(e.layout||{}).selections,a=r._previousSelections;r._previousSelections=t;var n=r._reselect||JSON.stringify(t)!==JSON.stringify(a);Jt.getComponentMethod("selections","reselect")(e,n)};Rr.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],u=l[0].trace;u.visible&&(i[u.type]=i[u.type]||[],i[u.type].push(l))}for(var s in n)if(!i[s]){var f=n[s][0],c=f[0].trace;c.visible=!1,i[s]=[f]}for(var h in i){var d=i[h],m=d[0][0].trace._module;m.plot(e,r,Qr.filterVisible(d),a)}r.traceHash=i};Rr.plotBasePlot=function(e,r,t,a,n){var i=Jt.getModule(e),o=FQ(r.calcdata,i)[0];i.plot(r,o,a,n)};Rr.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),o=t._has&&t._has(e);i&&!o&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var W0=ae(X0=>{"use strict";X0.xmlns="http://www.w3.org/2000/xmlns/";X0.svg="http://www.w3.org/2000/svg";X0.xlink="http://www.w3.org/1999/xlink";X0.svgAttrs={xmlns:X0.svg,"xmlns:xlink":X0.xlink}});var ti=ae((Jge,Vk)=>{"use strict";Vk.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ai=ae(po=>{"use strict";var An=Et(),Uo=mr(),VQ=Uo.strTranslate,D5=W0(),XQ=ti().LINE_SPACING,WQ=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,$k=e=>e?e.match(WQ):null;po.matchTex=$k;po.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&$k(a);n&&!$Q()&&(n=null);var i=An.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=lee(e.node(),a);u&&e.style("pointer-events","all"),po.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");KQ(n[2],f,function(h,d,m){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=h&&h.select("svg");if(!p||!p.node()){l(),u();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),d&&d.node()&&p.node().insertBefore(d.node().cloneNode(!0),p.node().firstChild);var b=m.width,C=m.height;p.attr({class:o,height:C,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var x=e.node().style.fill||"black",_=p.select("g");_.attr({fill:x,stroke:x});var M=_.node().getBoundingClientRect(),T=M.width,A=M.height;(T>b||A>C)&&(p.style("overflow","hidden"),M=p.node().getBoundingClientRect(),T=M.width,A=M.height);var D=+e.attr("x"),P=+e.attr("y"),z=s||e.node().getBoundingClientRect().height,B=-z/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,D,P]+")"+VQ(-T/2,B-A/2)}):o[0]==="l"?P=B-A/2:o[0]==="a"&&o.indexOf("atitle")!==0?(D=0,P=B):(D=D-T*(c==="middle"?.5:c==="end"?1:0),P=P+B-A/2),p.attr({x:D,y:P}),t&&t.call(e,y),u(y)})})):l(),e};var jQ=/(<|<|<)/g,ZQ=/(>|>|>)/g;function JQ(e){return e.replace(jQ,"\\lt ").replace(ZQ,"\\gt ")}var F5=null,Kk=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Xk=!1,Wk=!1;function $Q(){let e=Kk();return e===3||e===4?!0:(e===null?Xk||(Xk=!0,Uo.warn("MathJax is not loaded. Math equations will not be rendered.")):Wk||(Wk=!0,Uo.warn("Unsupported MathJax version:",MathJax.version)),!1)}function KQ(e,r,t){let a=Kk();var n;let i=function(){if(!F5){let s=MathJax._.output.svg_ts.SVG,f=Uo.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Uo.extendFlat({},f.linebreaks,{inline:!1})),F5=MathJax._.mathjax.mathjax.document(document,Uo.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+Uo.randstr({},64);n=An.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=JQ(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return F5.convert(u,{display:!1})}).then(function(s){n.node().appendChild(s)})},o=function(){let l=n.select(".MathJax"),u=!l.empty()&&n.select("svg").node();if(!u)Uo.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Uo.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var Qk={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},QQ={sub:"0.3em",sup:"-0.6em"},eee={sub:"-0.21em",sup:"0.42em"},jk="\u200B",Zk=["http:","https:","mailto:","",void 0,":"],eC=po.NEWLINES=/(\r\n?|\n)/g,P5=/(<[^<>]*>)/,R5=/<(\/?)([^ >]*)(\s+(.*))?>/i,ree=/<br(\s+.*)?>/i;po.BR_TAG_ALL=/<br(\s+.*)?>/gi;var rC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,tC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,aC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,tee=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function j0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&zm(a)}var aee=/(^|;)\s*color:/;po.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(P5),l=[],u="",s=0,f=0;f<o.length;f++){var c=o[f],h=c.match(R5),d=h&&h[2].toLowerCase();if(d)a.indexOf(d)!==-1&&(l.push(c),u=d);else{var m=c.length;if(s+m<t)l.push(c),s+=m;else if(s<t){var p=t-s;u&&(u!=="br"||p<=i||m<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,p-i))+n):l.push(c.slice(0,p));break}u=""}}return l.join("")};var nee={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},iee=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function zm(e){return e.replace(iee,function(r,t){var a;return t.charAt(0)==="#"?a=oee(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=nee[t],a||r})}po.convertEntities=zm;function oee(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function lee(e,r){r=r.replace(eC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(D5.svg,"tspan");An.select(T).attr({class:"line",dy:i*XQ+"em"}),e.appendChild(T),n=T;var A=a;if(a=[{node:T}],A.length>1)for(var D=1;D<A.length;D++)l(A[D])}function l(T){var A=T.type,D={},P;if(A==="a"){P="a";var z=T.target,B=T.href,X=T.popup;B&&(D={"xlink:xlink:show":z==="_blank"||z.charAt(0)!=="_"?"new":"replace",target:z,"xlink:xlink:href":B},X&&(D.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+X+'");return false;'))}else P="tspan";T.style&&(D.style=T.style);var H=document.createElementNS(D5.svg,P);if(A==="sup"||A==="sub"){u(n,jk),n.appendChild(H);var V=document.createElementNS(D5.svg,"tspan");u(V,jk),An.select(V).attr("dy",eee[A]),D.dy=QQ[A],n.appendChild(H),n.appendChild(V)}else n.appendChild(H);An.select(H).attr(D),n=T.node=H,a.push(T)}function u(T,A){T.appendChild(document.createTextNode(A))}function s(T){if(a.length===1){Uo.log("Ignoring unexpected end tag </"+T+">.",r);return}var A=a.pop();T!==A.type&&Uo.log("Start tag <"+A.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=ree.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(P5),h=0;h<c.length;h++){var d=c[h],m=d.match(R5),p=m&&m[2].toLowerCase(),y=Qk[p];if(p==="br")o();else if(y===void 0)u(n,zm(d));else if(m[1])s(p);else{var b=m[4],C={type:p},x=j0(b,rC);if(x?(x=x.replace(aee,"$1 fill:"),y&&(x+=";"+y)):y&&(x=y),x&&(C.style=x),p==="a"){t=!0;var _=j0(b,tC);if(_){var M=nC(_);M&&(C.href=M,C.target=j0(b,aC)||"_blank",C.popup=j0(b,tee))}}l(C)}}return t}function nC(e){var r=encodeURI(decodeURI(e)),t=document.createElement("a"),a=document.createElement("a");t.href=e,a.href=r;var n=t.protocol,i=a.protocol;return Zk.indexOf(n)!==-1&&Zk.indexOf(i)!==-1?r:""}po.sanitizeHTML=function(r){r=r.replace(eC," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(P5),o=0;o<i.length;o++){var l=i[o],u=l.match(R5),s=u&&u[2].toLowerCase();if(s in Qk)if(u[1])n.length&&(a=n.pop());else{var f=u[4],c=j0(f,rC),h=c?{style:c}:{};if(s==="a"){var d=j0(f,tC);if(d){var m=nC(d);if(m){h.href=m;var p=j0(f,aC);p&&(h.target=p)}}}var y=document.createElement(s);a.appendChild(y),An.select(y).attr(h),a=y,n.push(y)}else a.appendChild(document.createTextNode(zm(l)))}var b="innerHTML";return t[b]};po.lineCount=function(r){return r.selectAll("tspan.line").size()||1};po.positionText=function(r,t,a){return r.each(function(){var n=An.select(this);function i(u,s){return s===void 0?(s=n.attr(u),s===null&&(n.attr(u,0),s=0)):n.attr(u,s),s}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function Jk(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,u,s;return n==="bottom"?u=function(){return i.bottom-l.height}:n==="middle"?u=function(){return i.top+(i.height-l.height)/2}:u=function(){return i.top},a==="right"?s=function(){return i.right-l.width}:a==="center"?s=function(){return i.left+(i.width-l.width)/2}:s=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=s()-o.left,c=u()-o.top,h=t.gd||{};if(t.gd){h._fullLayout._calcInverseTransform(h);var d=Uo.apply3DTransform(h._fullLayout._invTransform)(f,c);f=d[0],c=d[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var q5="1px ";po.makeTextShadow=function(e){var r=q5,t=q5,a=q5;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};po.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=An.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){u(),e.style({opacity:0});var s=i.attr("class"),f;s?f="."+s.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&An.select(e.node().parentNode).select(f).style({opacity:0})}function l(s){var f=s.node(),c=document.createRange();c.selectNodeContents(f);var h=window.getSelection();h.removeAllRanges(),h.addRange(c),f.focus()}function u(){var s=An.select(t),f=s.select(".svg-container"),c=f.append("div"),h=e.node().style,d=parseFloat(h.fontSize||12),m=r.text;m===void 0&&(m=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":h.fontFamily||"Arial","font-size":d,color:r.fill||h.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(m).call(Jk(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var p=An.select(this).attr("class"),y;p?y="."+p.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&An.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;An.select(this).transition().duration(0).remove(),An.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var p=this;t._editing=!0,An.select(document).on("mouseup",function(){if(An.event.target===p)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){An.event.which===27?(t._editing=!1,e.style({opacity:1}),An.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),An.select(this).call(Jk(e,f,r)))}).on("keydown",function(){An.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),An.rebind(e,n,"on")}});var Tu=ae((Kge,fC)=>{"use strict";var uee=Et(),Ph=Wt(),Nm=mr(),Z0=Ft(),see=N0().isValid;function fee(e,r,t){var a=r?Nm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Nm.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Ph(n[o])){i=!0;break}}return Nm.isPlainObject(a)&&(i||a.showscale===!0||Ph(a.cmin)&&Ph(a.cmax)||see(a.colorscale)||Nm.isPlainObject(a.colorbar))}var iC=["showscale","autocolorscale","colorscale","reversescale","colorbar"],qh=["min","max","mid","auto"];function oC(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<iC.length;i++)o=iC[i],a[o]=t[o];if(r)for(n="c",i=0;i<qh.length;i++)o=qh[i],a[o]=t["c"+o];else{var l;for(i=0;i<qh.length;i++){if(o=qh[i],l="c"+o,l in t){a[o]=t[l];continue}l="z"+o,l in t&&(a[o]=t[l])}n=l.charAt(0)}return a._sync=function(u,s){var f=qh.indexOf(u)!==-1?n+u:u;t[f]=t["_"+f]=s},a}function lC(e){for(var r=oC(e),t=r.min,a=r.max,n=r.reversescale?uC(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),u=0;u<i;u++){var s=n[u];o[u]=t+s[0]*(a-t),l[u]=s[1]}return{domain:o,range:l}}function uC(e){for(var r=e.length,t=new Array(r),a=r-1,n=0;a>=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function sC(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o<n;o++)i[o]=Z0.rgbaArray(a[o]);var l=uee.scale.linear().domain(t).range(i).clamp(!0),u=r.noNumericCheck,s=r.returnArray,f;return u&&s?f=l:u?f=function(c){return Z0.rgbaArrayToString(l(c))}:s?f=function(c){return Ph(c)?l(c):Z0.isValid(c)?c:Z0.defaultLine}:f=function(c){return Ph(c)?Z0.rgbaArrayToString(l(c)):Z0.isValid(c)?c:Z0.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function cee(e,r){return sC(lC(e),r)}fC.exports={hasColorscale:fee,extractOpts:oC,extractScale:lC,flipScale:uC,makeColorScaleFunc:sC,makeColorScaleFuncFromTrace:cee}});var N5=ae((Qge,hC)=>{"use strict";var cC=r5(),vee=cC.FORMAT_LINK,hee=cC.DATE_FORMAT_LINK;function dee(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?z5:vC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function z5(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+vee+"."].join(" ")}function vC(e,r){return z5(e,r)+[" And for dates see: "+hee+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}hC.exports={axisHoverFormat:dee,descriptionOnlyNumbers:z5,descriptionWithDates:vC}});var Nl=ae((r3e,LC)=>{"use strict";var dC=vi(),H1=Fl(),EC=Mu().dash,I5=_n().extendFlat,pC=Ta().templatedArray,e3e=B0().templateFormatStringDescription,mC=N5().descriptionWithDates,pee=Oa().ONEDAY,ku=Dn(),mee=ku.HOUR_PATTERN,gee=ku.WEEKDAY_PATTERN,B5={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},yee=I5({},B5,{values:B5.values.slice().concat(["sync"])});function gC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var yC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},bC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},_C={valType:"data_array",editType:"ticks"},xC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function wC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function MC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var AC={valType:"color",dflt:H1.defaultLine,editType:"ticks"},TC={valType:"color",dflt:H1.lightLine,editType:"ticks"};function kC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var CC=I5({},EC,{editType:"ticks"}),SC={valType:"boolean",editType:"ticks"};LC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:H1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:dC({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[ku.idRegex.x.toString(),ku.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"calc"},rangebreaks:pC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[gee,mee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:pee},editType:"calc"}),tickmode:yee,nticks:gC(),tick0:yC,dtick:bC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:_C,ticktext:{valType:"data_array",editType:"ticks"},ticks:xC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:wC(),tickwidth:MC(),tickcolor:AC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:I5({},EC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:dC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:mC("tick label")},tickformatstops:pC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:mC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:H1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:SC,gridcolor:TC,gridwidth:kC(),griddash:CC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:H1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:H1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ku.idRegex.x.toString(),ku.idRegex.y.toString()],editType:"plot"},minor:{tickmode:B5,nticks:gC("minor"),tick0:yC,dtick:bC,tickvals:_C,ticks:xC,ticklen:wC("minor"),tickwidth:MC("minor"),tickcolor:AC,gridcolor:TC,gridwidth:kC("minor"),griddash:CC,showgrid:SC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Bm=ae((t3e,qC)=>{"use strict";var qa=Nl(),DC=vi(),FC=_n().extendFlat,bee=Io().overrideAll;qC.exports=bee({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:qa.linecolor,outlinewidth:qa.linewidth,bordercolor:qa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:qa.minor.tickmode,nticks:qa.nticks,tick0:qa.tick0,dtick:qa.dtick,tickvals:qa.tickvals,ticktext:qa.ticktext,ticks:FC({},qa.ticks,{dflt:""}),ticklabeloverflow:FC({},qa.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:qa.ticklen,tickwidth:qa.tickwidth,tickcolor:qa.tickcolor,ticklabelstep:qa.ticklabelstep,showticklabels:qa.showticklabels,labelalias:qa.labelalias,tickfont:DC({description:"Sets the color bar's tick label font"}),tickangle:qa.tickangle,tickformat:qa.tickformat,tickformatstops:qa.tickformatstops,tickprefix:qa.tickprefix,showtickprefix:qa.showtickprefix,ticksuffix:qa.ticksuffix,showticksuffix:qa.showticksuffix,separatethousands:qa.separatethousands,exponentformat:qa.exponentformat,minexponent:qa.minexponent,showexponent:qa.showexponent,title:{text:{valType:"string"},font:DC({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var O1=ae((n3e,RC)=>{"use strict";var _ee=Bm(),xee=(A1(),ei(M1)).counter,wee=(pm(),ei(dm)).default,PC=N0().scales,a3e=wee(PC);function Im(e){return"`"+e+"`"}RC.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?PC[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Im(s+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",m=a+"min",p=a+"max",y=a+"mid",b=Im(s+d),C=Im(s+m),x=Im(s+p),_=C+" and "+x,M={};M[m]=M[p]=void 0;var T={};T[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:T},A[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:T},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=_ee),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:xee("coloraxis"),dflt:null,editType:"calc"}),A}});var O5=ae((i3e,zC)=>{"use strict";var Mee=_n().extendFlat,Aee=O1(),H5=N0().scales;zC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:H5.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:H5.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:H5.RdBu,editType:"calc"}},coloraxis:Mee({_isSubplotObj:!0,editType:"calc"},Aee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var U5=ae((o3e,NC)=>{"use strict";var Tee=mr();NC.exports=function(r){return Tee.isPlainObject(r.colorbar)}});var V5=ae(Y5=>{"use strict";var G5=Wt(),BC=mr(),IC=Oa(),kee=IC.ONEDAY,Cee=IC.ONEWEEK;Y5.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?kee:1;if(!e)return i;if(G5(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=G5(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};Y5.tick0=function(e,r,t,a){if(r==="date")return BC.cleanDate(e,BC.dateTick0(t,a%Cee===0?1:0));if(!(a==="D1"||a==="D2"))return G5(e)?Number(e):0}});var X5=ae((u3e,OC)=>{"use strict";var HC=V5(),See=mr().isArrayOrTypedArray,Eee=Vi().isTypedArraySpec,Lee=Vi().decodeTypedArraySpec;OC.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,u=o?t.minor:t,s=o?"minor.":"";function f(_){var M=l[_];return Eee(M)&&(M=Lee(M)),M!==void 0?M:(u._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),m=f("overlaying"),p=n==="category"||n==="multicategory",y;See(d)?y="array":h?y="linear":m&&!p?y="sync":y="auto";var b=a(s+"tickmode",y);if(b==="auto"||b==="sync")a(s+"nticks");else if(b==="linear"){var C=u.dtick=HC.dtick(h,n);u.tick0=HC.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(s+"tickvals");x===void 0?u.tickmode="auto":o||a("ticktext")}}});var j5=ae((s3e,GC)=>{"use strict";var W5=mr(),UC=Nl();GC.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,u=i?UC.minor:UC,s=i?"minor.":"",f=W5.coerce2(o,l,u,"ticklen",i?(t.ticklen||5)*.6:void 0),c=W5.coerce2(o,l,u,"tickwidth",i?t.tickwidth||1:void 0),h=W5.coerce2(o,l,u,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(s+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Z5=ae((f3e,YC)=>{"use strict";YC.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Bl=ae((c3e,VC)=>{"use strict";var Hm=mr(),Dee=Ta();VC.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Hm.isArrayOrTypedArray(r[n])?r[n]:[],u=t[n]=[],s=Dee.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var h=l[f];Hm.isPlainObject(h)?c=s.newItem(h):(c=s.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(h,c,t,a),u.push(c)}var d=s.defaultItems();for(f=0;f<d.length;f++)c=d[f],c._index=u.length,a.handleItemDefaults({},c,t,a,{}),u.push(c);if(Hm.isArrayOrTypedArray(o)){var m=Math.min(o.length,u.length);for(f=0;f<m;f++)Hm.relinkPrivateKeys(u[f],o[f])}return u}});var $5=ae((v3e,WC)=>{"use strict";var J5=mr(),Fee=Ft().contrast,XC=Nl(),qee=Z5(),Pee=Bl();WC.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");J5.isPlainObject(o)||delete t.labelalias;var l=qee(r),u=a("showticklabels");if(u){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var s=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?Fee(i.bgColor):f&&f!==XC.color.dflt?f:s.color;if(J5.coerceFont(a,"tickfont",s,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");Pee(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Ree}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Ree(e,r){function t(n,i){return J5.coerce(e,r,XC.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var K5=ae((h3e,jC)=>{"use strict";var zee=Z5();jC.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=zee(r),u=a("tickprefix");u&&a("showtickprefix",l);var s=a("ticksuffix",o);s&&a("showticksuffix",l)}});var Q5=ae((d3e,ZC)=>{"use strict";var Mf=mr(),Nee=Ta(),Bee=X5(),Iee=j5(),Hee=$5(),Oee=K5(),Uee=Bm();ZC.exports=function(r,t,a){var n=Nee.newContainer(t,"colorbar"),i=r.colorbar||{};function o(B,X){return Mf.coerce(i,n,Uee,B,X)}var l=a.margin||{t:0,b:0,l:0,r:0},u=a.width-l.l-l.r,s=a.height-l.t-l.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:s):30);var d=o("lenmode");o("len",d==="fraction"?1:c?s:u);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,M="left";c?(_="middle",M=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",M="center",C=.5,x=y?1.02:1),Mf.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),Mf.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",M),o("xpad"),o("yanchor",_),o("ypad"),Mf.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=Mf.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),Bee(i,n,o,"linear");var A=a.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};T.indexOf("inside")!==-1&&(D.bgColor="black"),Oee(i,n,o,"linear",D),Hee(i,n,o,"linear",D),Iee(i,n,o,"linear",D),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:A,z=Mf.extendFlat({},A,{family:P.family,size:Mf.bigFont(P.size)});Mf.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var U1=ae((p3e,KC)=>{"use strict";var JC=Wt(),r6=mr(),Gee=U5(),Yee=Q5(),$C=N0().isValid,Vee=bt().traceIs;function e6(e,r){var t=r.slice(0,r.length-1);return r?r6.nestedProperty(e,t).get()||{}:e}KC.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,u="_module"in t,s=e6(r,o),f=e6(t,o),c=e6(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(u){var d=a._colorAxes||{},m=n(o+"coloraxis");if(m){var p=Vee(t,"contour")&&r6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,r6.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=s[l+"min"],C=s[l+"max"],x=JC(b)&&JC(C)&&b<C,_=n(o+l+"auto",!x);_?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var M=s.colorscale,T=c.colorscale,A;if(M!==void 0&&(A=!$C(M)),T!==void 0&&(A=!$C(T)),n(o+"autocolorscale",A),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var D;o&&u&&(D=Gee(s));var P=n(o+"showscale",D);P&&(o&&c&&(f._template=c),Yee(s,f,a))}}});var tS=ae((m3e,rS)=>{"use strict";var QC=mr(),Xee=Ta(),eS=O5(),Wee=U1();rS.exports=function(r,t){function a(c,h){return QC.coerce(r,t,eS,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,h){return QC.coerce(i,o,eS.coloraxis,c,h)}for(var u in n){var s=n[u];if(s[0])i=r[u]||{},o=Xee.newContainer(t,u,"coloraxis"),o._name=u,Wee(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<s[2].length;f++)s[2][f]();delete t._colorAxes[u]}}}});var nS=ae((g3e,aS)=>{"use strict";var jee=mr(),Zee=Tu().hasColorscale,Jee=Tu().extractOpts;aS.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?jee.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=Jee(h),m=d.auto;(m||d.min===void 0)&&a(h,c.min),(m||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i<r.length;i++){var o=r[i],l=o._module.colorbar;if(l)if(Array.isArray(l))for(var u=0;u<l.length;u++)n(o,l[u]);else n(o,l);Zee(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in t._colorAxes)n(t[s],{min:"cmin",max:"cmax"})}});var Om=ae((y3e,oS)=>{"use strict";var iS=Wt(),t6=mr(),$ee=Tu().extractOpts;oS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?t6.nestedProperty(t,o).get():t,u=$ee(l),s=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return t6.aggNums(Math.min,null,i)},m=function(){return t6.aggNums(Math.max,null,i)};if(f===void 0?f=d():s&&(l._colorAx&&iS(f)?f=Math.min(f,d()):f=d()),c===void 0?c=m():s&&(l._colorAx&&iS(c)?c=Math.max(c,m()):c=m()),s&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h<h-f&&(c=h+(h-f))),f===c&&(f-=.5,c+=.5),u._sync("min",f),u._sync("max",c),u.autocolorscale){var p;f*c<0?p=n.colorscale.diverging:f>=0?p=n.colorscale.sequential:p=n.colorscale.sequentialminus,u._sync("colorscale",p)}}});var Gm=ae((b3e,lS)=>{"use strict";var Um=N0(),G1=Tu();lS.exports={moduleType:"component",name:"colorscale",attributes:O1(),layoutAttributes:O5(),supplyLayoutDefaults:tS(),handleDefaults:U1(),crossTraceDefaults:nS(),calc:Om(),scales:Um.scales,defaultScale:Um.defaultScale,getScale:Um.get,isValidScale:Um.isValid,hasColorscale:G1.hasColorscale,extractOpts:G1.extractOpts,extractScale:G1.extractScale,flipScale:G1.flipScale,makeColorScaleFunc:G1.makeColorScaleFunc,makeColorScaleFuncFromTrace:G1.makeColorScaleFuncFromTrace}});var pi=ae((_3e,sS)=>{"use strict";var uS=mr(),Kee=Vi().isTypedArraySpec;sS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return uS.isPlainObject(r)&&(uS.isArrayOrTypedArray(r.size)||Kee(r.size))}}});var cS=ae((x3e,fS)=>{"use strict";var Qee=Wt();fS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var u=o(l/t);return Qee(u)&&u>0?Math.max(u,i):0}}});var Ls=ae(jn=>{"use strict";var Rh=mr();jn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};jn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n<t.length;n++)for(var i=0;i<a.length;i++)if(r.indexOf(t[n]+a[i])!==-1)return!0;return!1}return r.indexOf(jn.getSubplot(e))!==-1};jn.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};jn.p2c=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=e[a].p2c(r);return t};jn.c2dApply=function(e,r){e.length!==r.length&&Rh.warn("c2dApply: axArray and valArray must be the same length");for(var t=new Array(r.length),a=0;a<r.length;a++){var n=e&&e[a];t[a]=n&&n.c2d?n.c2d(r[a]):r[a]}return t};jn.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||jn.quadrature(r,t):e.charAt(0)==="x"?r:t};jn.getClosest=function(e,r,t){if(t.index!==!1)t.index>=0&&t.index<e.length?t.distance=0:t.index=!1;else for(var a=1/0,n=e.length,i=0;i<n;i++)a=r(e[i]),a<=t.distance&&(t.index=i,t.distance=a);return t};jn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};jn.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};jn.makeEventData=function(e,r,t){var a="index"in e?e.index:e.pointNumber,n={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};return n.pointIndex=a,r._module.eventData?n=r._module.eventData(n,e,r,t,a):("xVal"in e?n.x=e.xVal:"x"in e&&(n.x=e.x),"yVal"in e?n.y=e.yVal:"y"in e&&(n.y=e.y),e.xa&&(n.xaxis=e.xa),e.ya&&(n.yaxis=e.ya),e.zLabelVal!==void 0&&(n.z=e.zLabelVal)),jn.appendArrayPointValue(n,r,a),n};jn.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=vS(i);if(e[o]===void 0){var l=Rh.nestedProperty(r,i).get(),u=hS(l,t);u!==void 0&&(e[o]=u)}}};jn.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=vS(i);if(e[o]===void 0){for(var l=Rh.nestedProperty(r,i).get(),u=new Array(t.length),s=0;s<t.length;s++)u[s]=hS(l,t[s]);e[o]=u}}};var ere={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function vS(e){return ere[e]||e}function hS(e,r){if(Array.isArray(r)){if(Rh.isArrayOrTypedArray(e)&&Rh.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var rre={x:!0,y:!0},tre={"x unified":!0,"y unified":!0};jn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!tre[e]};jn.isXYhover=function(e){return typeof e!="string"?!1:!!rre[e]}});var n6=ae((M3e,dS)=>{var a6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},are=/([astvzqmhlc])([^astvzqmhlc]*)/gi,nre=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function ire(e){let r=[];return e.replace(are,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=ore(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===a6[i])return r.push([o,...l]),"";if(l.length<a6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,a6[i])])}}),r}function ore(e){let r=e.match(nre);return r?r.map(Number):[]}dS.exports=ire});var xS=ae((A3e,_S)=>{"use strict";var lre=n6(),Sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},xt="M0,0Z",pS=Math.sqrt(2),Af=Math.sqrt(3),i6=Math.PI,o6=Math.cos,l6=Math.sin;_S.exports={circle:{n:0,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Mt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.4,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.8/pS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Mt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2/Af,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2/Af,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2/Af,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2/Af,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.951,2),n=Sr(e*.588,2),i=Sr(-e,2),o=Sr(e*-.309,2),l=Sr(e*.809,2);return Mt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*Af/2,2);return Mt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*Af/2,2);return Mt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.924,2),n=Sr(e*.383,2);return Mt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(wt(r))return xt;var a=e*1.4,n=Sr(a*.225,2),i=Sr(a*.951,2),o=Sr(a*.363,2),l=Sr(a*.588,2),u=Sr(-a,2),s=Sr(a*-.309,2),f=Sr(a*.118,2),c=Sr(a*.809,2),h=Sr(a*.382,2);return Mt(r,t,"M"+n+","+s+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+h+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+s+"H-"+n+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.66,2),n=Sr(e*.38,2),i=Sr(e*.76,2);return Mt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*Af*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*Af*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.1,2),n=Sr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.4,2),n=Sr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*.7,2),n=Sr(e*1.4,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.4,2),n=Sr(e*.7,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e/pS,2);return Mt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.3,2),n=Sr(e*.65,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.2,2),n=Sr(e*.85,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e/2,2),n=Sr(e,2);return Mt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.4,2);return Mt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(wt(r))return xt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(wt(r))return xt;var a=i6/2.5,n=2*e*o6(a),i=2*e*l6(a);return Mt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(wt(r))return xt;var a=i6/4,n=2*e*o6(a),i=2*e*l6(a);return Mt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function wt(e){return e===null}var mS,gS,yS,bS;function Mt(e,r,t){if((!e||e%360===0)&&!r)return t;if(yS===e&&bS===r&&mS===t)return gS;yS=e,bS=r,mS=t;function a(y,b){var C=o6(y),x=l6(y),_=b[0],M=b[1]+(r||0);return[_*C-M*x,_*x+M*C]}for(var n=e/180*i6,i=0,o=0,l=lre(t),u="",s=0;s<l.length;s++){var f=l[s],c=f[0],h=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var m=a(n,[+f[6],+f[7]]);f[6]=m[0],f[7]=m[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=h,o-=d);var p=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=p[0],f[2]=p[1]),f[0]=c,u+=f[0]+f.slice(1).join(",")}return gS=u,u}});var va=ae((T3e,OS)=>{"use strict";var Fn=Et(),ca=mr(),ure=ca.numberFormat,Tf=Wt(),Vm=bt(),Tn=Ft(),sre=Gm(),Nh=ca.strTranslate,Xm=ai(),fre=W0(),cre=ti(),vre=cre.LINE_SPACING,DS=em().DESELECTDIM,hre=pi(),dre=cS(),pre=Ls().appendArrayPointValue,zr=OS.exports={};zr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Tn.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",u6(gre(f))),u&&e.style("text-shadow",u==="auto"?Xm.makeTextShadow(Tn.contrast(i)):u6(u)),s&&e.style("text-decoration-line",u6(yre(s)))};function u6(e){return e==="none"?void 0:e}var mre={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function gre(e){return mre[e]}function yre(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}zr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};zr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};zr.setRect=function(e,r,t,a,n){e.call(zr.setPosition,r,t).call(zr.setSize,a,n)};zr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Tf(n)&&Tf(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Nh(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=Fn.select(this);zr.translatePoint(a,n,r,t)})};zr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};zr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,u=Vm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){zr.hideOutsideRangePoint(s,Fn.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!Tf(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};zr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Tn.stroke(r,a||i.color),zr.dashLine(r,l,o)};zr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Fn.select(this).call(Tn.stroke,t||i.color).call(zr.dashLine,l,o)})};zr.dashLine=function(e,r,t){t=+t||0,r=zr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};zr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function FS(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=zr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var u=o(n.bgcolor,0,null),s=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=r.uid;zr.pattern(e,"point",t,d,l,c,h,void 0,n.fillmode,u,s,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(a&&(p="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(RS,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(zr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Tn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=Fn.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};FS(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Fn.select(this);a[0].trace&&FS(n,a[0].trace,r,t)})};var wS=xS();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(wS).forEach(function(e){var r=wS[e],t=r.n;zr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),zr.symbolNames[t]=e,zr.symbolFuncs[t]=r.f,zr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(zr.symbolNeedLines[t]=!0),r.noDot?zr.symbolNoDot[t]=!0:zr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(zr.symbolNoFill[t]=!0)});var bre=zr.symbolNames.length,_re="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(Tf(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=zr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=bre||e>=400?0:Math.floor(Math.max(e,0))};function qS(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?_re:"")}var MS=ure("~f"),PS={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};zr.gradient=function(e,r,t,a,n,i){var o=PS[a];return RS(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function RS(e,r,t,a,n,i,o,l,u,s){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:a==="radial"&&(c={node:"radialGradient",reversed:s});for(var h=new Array(f),d=0;d<f;d++)c.reversed?h[f-1-d]=[MS((1-n[d][0])*100),n[d][1]]:h[d]=[MS(n[d][0]*100),n[d][1]];var m=r._fullLayout,p="g"+m._uid+"-"+t,y=m._defs.select(".gradients").selectAll("#"+p).data([a+h.join(";")],ca.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=Fn.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",p);var C=b.selectAll("stop").data(h);C.exit().remove(),C.enter().append("stop"),C.each(function(x){Fn.select(this).attr({offset:x[0]+"%","stop-color":Tn.rgb(x[1]),"stop-opacity":Tn.parse(x[1]).alpha})})}),e.style(i,h6(p,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}zr.pattern=function(e,r,t,a,n,i,o,l,u,s,f,c){var h=r==="legend";l&&(u==="overlay"?(s=l,f=Tn.contrast(s)):(s=void 0,f=l));var d=t._fullLayout,m="p"+d._uid+"-"+a,p,y,b=function(X,H,V,I,Q){return I+(Q-I)*(X-H)/(V-H)},C,x,_,M,T={},A=Tn.rgb(f),D=Tn.parse(f).alpha,P=c*D;switch(n){case"/":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"\\":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"x":p=i*Math.sqrt(2),y=i*Math.sqrt(2),C="M-"+p/4+","+y/4+"l"+p/2+",-"+y/2+"M0,"+y+"L"+p+",0M"+p/4*3+","+y/4*5+"l"+p/2+",-"+y/2+"M"+p/4*3+",-"+y/4+"l"+p/2+","+y/2+"M0,0L"+p+","+y+"M-"+p/4+","+y/4*3+"l"+p/2+","+y/2,x=i-i*Math.sqrt(1-o),M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"|":p=i,y=i,M="path",C="M"+p/2+",0L"+p/2+","+y,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"-":p=i,y=i,M="path",C="M0,"+y/2+"L"+p+","+y/2,x=o*i,M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case"+":p=i,y=i,M="path",C="M"+p/2+",0L"+p/2+","+y+"M0,"+y/2+"L"+p+","+y/2,x=i-i*Math.sqrt(1-o),M="path",T={d:C,opacity:P,stroke:A,"stroke-width":x+"px"};break;case".":p=i,y=i,o<Math.PI/4?_=Math.sqrt(o*i*i/Math.PI):_=b(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),M="circle",T={cx:p/2,cy:y/2,r:_,opacity:P,fill:A};break;default:p=i,y=i,M="path",T={d:n,opacity:P,fill:A};break}var z=[n||"noSh",s||"noBg",f||"noFg",i,o].join(";"),B=d._defs.select(".patterns").selectAll("#"+m).data([z],ca.identity);B.exit().remove(),B.enter().append("pattern").each(function(){var X=Fn.select(this);if(X.attr({id:m,width:p+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:h?"scale(0.8)":""}),s){var H=Tn.rgb(s),V=Tn.parse(s).alpha,I=X.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:p+"px",height:y+"px",fill:H,"fill-opacity":V})}var Q=X.selectAll(M).data([0]);Q.exit().remove(),Q.enter().append(M).attr(T)}),e.style("fill",h6(m,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};zr.initGradients=function(e){var r=e._fullLayout,t=ca.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Fn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};zr.initPatterns=function(e){var r=e._fullLayout,t=ca.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Fn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};zr.getPatternAttr=function(e,r,t){return e&&ca.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};zr.pointStyle=function(e,r,t,a){if(e.size()){var n=zr.makePointStyleFns(r);e.each(function(i){zr.singlePointStyle(i,Fn.select(this),r,n,t,a)})}};zr.singlePointStyle=function(e,r,t,a,n,i){var o=t.marker,l=o.line;if(i&&i.i>=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=a.ms2mrc(e.ms),e.mrc=u,a.selectedSizeFn&&(u=e.mrc=a.selectedSizeFn(e));var s=zr.symbolNumber(e.mx||o.symbol)||0;e.om=s%200>=100;var f=p6(e,t),c=d6(e,t);r.attr("d",qS(s,u,f,c))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):ca.isArrayOrTypedArray(l.color)?m=Tn.defaultLine:m=l.color,ca.isArrayOrTypedArray(o.color)&&(d=Tn.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&zr.dashLine(r,b,p),e.om)r.call(Tn.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,ca.isArrayOrTypedArray(x)&&(x=x[0],PS[x]||(x=0));var _=o.pattern,M=zr.getPatternAttr,T=_&&(M(_.shape,e.i,"")||M(_.path,e.i,""));if(x&&x!=="none"){var A=e.mgc;A?h=!0:A=C.color;var D=t.uid;h&&(D+="-"+e.i),zr.gradient(r,n,D,x,[[0,A],[1,d]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var B=M(z,e.i,i&&i.color||null),X=M(_.bgcolor,e.i,null),H=_.fgopacity,V=M(_.size,e.i,8),I=M(_.solidity,e.i,.3);P=P||e.mcc||ca.isArrayOrTypedArray(_.shape)||ca.isArrayOrTypedArray(_.path)||ca.isArrayOrTypedArray(_.bgcolor)||ca.isArrayOrTypedArray(_.fgcolor)||ca.isArrayOrTypedArray(_.size)||ca.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,T,V,I,e.mcc,_.fillmode,X,B,H)}else ca.isArrayOrTypedArray(d)?Tn.fill(r,d[e.i]):Tn.fill(r,d);p&&Tn.stroke(r,m)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),Vm.traceIs(e,"symbols")&&(r.ms2mrc=hre.isBubble(e)?dre(e):function(){return(t.size||6)/2}),e.selectedpoints&&ca.extendFlat(r,zr.makeSelectedPointStyleFns(e)),r};zr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,u=i.opacity,s=o.opacity,f=u!==void 0,c=s!==void 0;(ca.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var M=_.mo===void 0?n.opacity:_.mo;return _.selected?f?u:M:c?s:DS*M});var h=n.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var M=_.mcc||h;return _.selected?d||M:m||M});var p=n.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return Vm.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var M=_.mrc||p/2;return _.selected?C?y/2:M:x?b/2:M}),r};zr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,u=i.color,s=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:Tn.addOpacity(c,DS))},r};zr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Tn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,u=t.selectedSizeFn(o);i.attr("d",qS(zr.symbolNumber(l),u,p6(o,r),d6(o,r))),o.mrc2=u}),n.length&&e.each(function(i){for(var o=Fn.select(this),l=0;l<n.length;l++)n[l](o,i)})}};zr.tryColorscale=function(e,r){var t=r?ca.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&ca.isArrayOrTypedArray(a))return sre.makeColorScaleFuncFromTrace(t)}return ca.identity};var s6={start:1,end:-1,middle:0,bottom:1,top:-1};function zS(e,r,t,a,n){var i=Fn.select(e.node().parentNode),o=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",u=a?a/.8+1:0,s=(Xm.lineCount(e)-1)*vre+1,f=s6[l]*u,c=t*.75+s6[o]*u+(s6[o]-1)*s*t/2;e.attr("text-anchor",l),n||i.attr("transform",Nh(f,c))}function NS(e,r){var t=e.ts||r.textfont.size;return Tf(t)&&t>0?t:0}zr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=zr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var u=Fn.select(this),s=i?ca.extractOption(l,r,"txt","texttemplate"):ca.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},h={};pre(h,r,l.i),s=ca.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:s})}var d=l.tp||r.textposition,m=NS(l,r),p=a?a(l):l.tc||r.textfont.color;u.call(zr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:p}).text(s).call(Xm.convertToTspans,t).call(zS,d,m,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Fn.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=NS(a,r);Tn.fill(n,i);var u=Vm.traceIs(r,"bar-like");zS(n,o,l,a.mrc2||a.mrc,u)})}};var AS=.5;zr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n<e.length-1;n++)a.push(Ym(e[n-1],e[n],e[n+1],r));for(t+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)t+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return t+="Q"+a[e.length-3][1]+" "+e[e.length-1],t};zr.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[Ym(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(Ym(e[i-1],e[i],e[i+1],r));for(n.push(Ym(e[a-1],e[a],e[0],r)),i=1;i<=a;i++)t+="C"+n[i-1][1]+" "+n[i][0]+" "+e[i];return t+="C"+n[a][1]+" "+n[0][0]+" "+e[0]+"Z",t};var BS,IS;function Y1(e,r,t){return t&&(e=HS(e)),r?K0(e[1]):$0(e[0])}function $0(e){var r=Fn.round(e,2);return BS=r,r}function K0(e){var r=Fn.round(e,2);return IS=r,r}function Ym(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],o=t[0]-r[0],l=t[1]-r[1],u=Math.pow(n*n+i*i,AS/2),s=Math.pow(o*o+l*l,AS/2),f=(s*s*n-u*u*o)*a,c=(s*s*i-u*u*l)*a,h=3*s*(u+s),d=3*u*(u+s);return[[$0(r[0]+(h&&f/h)),K0(r[1]+(h&&c/h))],[$0(r[0]-(d&&f/d)),K0(r[1]-(d&&c/d))]]}var xre={hv:function(e,r,t){return"H"+$0(r[0])+"V"+Y1(r,1,t)},vh:function(e,r,t){return"V"+K0(r[1])+"H"+Y1(r,0,t)},hvh:function(e,r,t){return"H"+$0((e[0]+r[0])/2)+"V"+K0(r[1])+"H"+Y1(r,0,t)},vhv:function(e,r,t){return"V"+K0((e[1]+r[1])/2)+"H"+$0(r[0])+"V"+Y1(r,1,t)}},wre=function(e,r,t){return"L"+Y1(r,0,t)+","+Y1(r,1,t)};zr.steps=function(e){var r=xre[e]||wre;return function(t){for(var a="M"+$0(t[0][0])+","+K0(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function HS(e,r){var t=e.backoff,a=e.trace,n=e.d,i=e.i;if(t&&a&&a.marker&&a.marker.angle%360===0&&a.line&&a.line.shape!=="spline"){var o=ca.isArrayOrTypedArray(t),l=e,u=r?r[0]:BS||0,s=r?r[1]:IS||0,f=l[0],c=l[1],h=f-u,d=c-s,m=Math.atan2(d,h),p=o?t[i]:t;if(p==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,C=b.symbol;ca.isArrayOrTypedArray(C)&&(C=C[y]);var x=b.size;ca.isArrayOrTypedArray(x)&&(x=x[y]),p=b?zr.symbolBackOffs[zr.symbolNumber(C)]*x:0,p+=zr.getMarkerStandoff(n[y],a)||0}var _=f-p*Math.cos(m),M=c-p*Math.sin(m);(_<=f&&_>=u||_>=f&&_<=u)&&(M<=c&&M>=s||M>=c&&M<=s)&&(e=[_,M])}return e}zr.applyBackoff=HS;zr.makeTester=function(){var e=ca.ensureSingleById(Fn.select("body"),"svg","js-plotly-tester",function(t){t.attr(fre.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ca.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});zr.tester=e,zr.testref=r};zr.savedBBoxes={};var f6=0,Mre=1e4;zr.bBox=function(e,r,t){t||(t=TS(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return ca.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=TS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var u=zr.bBox(n,!1,t);return i&&(u.left+=i,u.right+=i),o&&(u.top+=o,u.bottom+=o),u}if(t+="~"+i+"~"+o+"~"+l,a=zr.savedBBoxes[t],a)return ca.extendFlat({},a)}}var s,f;r?s=e:(f=zr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),Fn.select(s).attr("transform",null).call(Xm.positionText,0,0);var c=s.getBoundingClientRect(),h=zr.testref.node().getBoundingClientRect();r||f.removeChild(s);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return f6>=Mre&&(zr.savedBBoxes={},f6=0),t&&(zr.savedBBoxes[t]=d),f6++,ca.extendFlat({},d)};function TS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}zr.setClipUrl=function(e,r,t){e.attr("clip-path",h6(r,t))};function h6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}zr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};zr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Nh(r,t),o=o.trim(),e[i]("transform",o),o};zr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};zr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Are=/\s*sc.*/;zr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Are,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Tre=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Fn.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),u=(n.attr("transform")||"").match(Tre);r===1&&t===1?a=[]:a=[Nh(o,l),"scale("+r+","+t+")",Nh(-o,-l)],u&&a.push(u),n.attr("transform",a.join(""))}})};function d6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}zr.getMarkerStandoff=d6;var zh=Math.atan2,J0=Math.cos,V1=Math.sin;function kS(e,r){var t=r[0],a=r[1];return[t*J0(e)-a*V1(e),t*V1(e)+a*J0(e)]}var CS,SS,ES,LS,c6,v6;function p6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Tf(t)||ca.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,u=r._yA;if(l&&u)a=l.c2p(e.x),n=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),h=r._geo.project([s+1e-5,f]),d=zh(h[1]-n,h[0]-a),m=zh(c[1]-n,c[0]-a),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=s/180*Math.PI,b=f/180*Math.PI,C=CS/180*Math.PI,x=SS/180*Math.PI,_=C-y,M=J0(x)*V1(_),T=V1(x)*J0(b)-J0(x)*V1(b)*J0(_);p=-zh(M,T)-Math.PI,CS=s,SS=f}var A=kS(d,[J0(p),0]),D=kS(m,[V1(p),0]);t=zh(A[1]+D[1],A[0]+D[0])/Math.PI*180,i==="previous"&&!(v6===r.uid&&e.i===c6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(v6===r.uid&&e.i===c6+1&&Tf(a)&&Tf(n)){var P=a-ES,z=n-LS,B=r.line&&r.line.shape||"",X=B.slice(B.length-1);X==="h"&&(z=0),X==="v"&&(P=0),t+=zh(z,P)/Math.PI*180+90}else t=null}return ES=a,LS=n,c6=e.i,v6=r.uid,t}zr.getMarkerAngle=p6});var Bh=ae((k3e,VS)=>{"use strict";var X1=Et(),kre=Wt(),Cre=Mn(),m6=bt(),Q0=mr(),US=Q0.strTranslate,Wm=va(),jm=Ft(),W1=ai(),GS=em(),Sre=ti().OPPOSITE_SIDE,YS=/ [XY][0-9]* /,g6=1.6,y6=1.6;function Ere(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,M=y.style,T=y.variant,A=y.textcase,D=y.lineposition,P=y.shadow,z=t.subtitlePropName,B=!!z,X=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),I=!1,Q=1,ne=H.font,te=ne.family,ee=ne.size,fe=ne.color,ve=ne.weight,Ae=ne.style,Ee=ne.variant,Be=ne.textcase,Ue=ne.lineposition,ke=ne.shadow,We;i==="title.text"?We="titleText":i.indexOf("axis")!==-1?We="axisTitleText":i.indexOf("colorbar")!==-1&&(We="colorbarTitleText");var j=e._context.edits[We];function re(hr,dr){return hr===void 0||dr===void 0?!1:hr.replace(YS," % ")===dr.replace(YS," % ")}m===""?h=0:re(m,o)&&(j||(m=""),h=.2,p=!0),B&&(V===""?Q=0:re(V,X)&&(j||(V=""),Q=.2,I=!0)),t._meta?m=Q0.templateString(m,t._meta):a._meta&&(m=Q0.templateString(m,a._meta));var me=m||V||j,K;c||(c=Q0.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var $=c.selectAll("text."+r).data(me?[0]:[]);$.enter().append("text"),$.text(m).attr("class",r),$.exit().remove();var le=null,we=r+"-subtitle",Ne=V||j;if(B&&(le=c.selectAll("text."+we).data(Ne?[0]:[]),le.enter().append("text"),le.text(V).attr("class",we),le.exit().remove()),!me)return c;function $e(hr,dr){Q0.syncOrAsync([er,ir],{title:hr,subtitle:dr})}function er(hr){var dr=hr.title,Ze=hr.subtitle,fr;!f&&K&&(f={}),f?(fr="",f.rotate&&(fr+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||K)&&(fr+=US(0,(f.offset||0)-(K||0)))):fr=null,dr.attr("transform",fr);function Dr(Ie){if(Ie){var Xe=X1.select(Ie.node().parentNode).select("."+we);if(!Xe.empty()){var yr=Ie.node().getBBox();if(yr.height){var kr=yr.y+yr.height+g6*ee;Xe.attr("y",kr)}}}}if(dr.style("opacity",h*jm.opacity(x)).call(Wm.font,{color:jm.rgb(x),size:X1.round(C,2),family:b,weight:_,style:M,variant:T,textcase:A,shadow:P,lineposition:D}).attr(s).call(W1.convertToTspans,e,Dr),Ze&&!Ze.empty()){var Te=c.select("."+r+"-math-group"),Oe=dr.node().getBBox(),Mr=Te.node()?Te.node().getBBox():void 0,Nr=Mr?Mr.y+Mr.height+g6*ee:Oe.y+Oe.height+y6*ee,Qe=Q0.extendFlat({},s,{y:Nr});Ze.attr("transform",fr),Ze.style("opacity",Q*jm.opacity(fe)).call(Wm.font,{color:jm.rgb(fe),size:X1.round(ee,2),family:te,weight:ve,style:Ae,variant:Ee,textcase:Be,shadow:ke,lineposition:Ue}).attr(Qe).call(W1.convertToTspans,e)}return Cre.previousPromises(e)}function ir(hr){var dr=hr.title,Ze=X1.select(dr.node().parentNode);if(u&&u.selection&&u.side&&m){Ze.attr("transform",null);var fr=Sre[u.side],Dr=u.side==="left"||u.side==="top"?-1:1,Te=kre(u.pad)?u.pad:2,Oe=Wm.bBox(Ze.node()),Mr={t:0,b:0,l:0,r:0},Nr=e._fullLayout._reservedMargin;for(var Qe in Nr)for(var Ie in Nr[Qe]){var Xe=Nr[Qe][Ie];Mr[Ie]=Math.max(Mr[Ie],Xe)}var yr={left:Mr.l,top:Mr.t,right:a.width-Mr.r,bottom:a.height-Mr.b},kr=u.maxShift||Dr*(yr[u.side]-Oe[u.side]),pr=0;if(kr<0)pr=kr;else{var xr=u.offsetLeft||0,Pr=u.offsetTop||0;Oe.left-=xr,Oe.right-=xr,Oe.top-=Pr,Oe.bottom-=Pr,u.selection.each(function(){var Hr=Wm.bBox(this);Q0.bBoxIntersect(Oe,Hr,Te)&&(pr=Math.max(pr,Dr*(Hr[u.side]-Oe[fr])+Te))}),pr=Math.min(kr,pr),n._titleScoot=Math.abs(pr)}if(pr>0||kr<0){var Lr={left:[-pr,0],right:[pr,0],top:[0,-pr],bottom:[0,pr]}[u.side];Ze.attr("transform",US(Lr[0],Lr[1]))}}}$.call($e,le);function sr(hr,dr){hr.text(dr).on("mouseover.opacity",function(){X1.select(this).transition().duration(GS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){X1.select(this).transition().duration(GS.HIDE_PLACEHOLDER).style("opacity",0)})}if(j&&(m?$.on(".opacity",null):(sr($,o),p=!0),$.call(W1.makeEditable,{gd:e}).on("edit",function(hr){l!==void 0?m6.call("_guiRestyle",e,i,hr,l):m6.call("_guiRelayout",e,i,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(hr){this.text(hr||" ").call(W1.positionText,s.x,s.y)}),B)){if(B&&!m){var Pe=$.node().getBBox(),vr=Pe.y+Pe.height+y6*ee;le.attr("y",vr)}V?le.on(".opacity",null):(sr(le,X),I=!0),le.call(W1.makeEditable,{gd:e}).on("edit",function(hr){m6.call("_guiRelayout",e,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(hr){this.text(hr||" ").call(W1.positionText,le.attr("x"),le.attr("y"))})}return $.classed("js-placeholder",p),le&&!le.empty()&&le.classed("js-placeholder",I),c}VS.exports={draw:Ere,SUBTITLE_PADDING_EM:y6,SUBTITLE_PADDING_MATHJAX_EM:g6}});var t2=ae((C3e,JS)=>{"use strict";var Lre=Et(),Dre=s1().utcFormat,Ma=mr(),Fre=Ma.numberFormat,Cu=Wt(),kf=Ma.cleanNumber,qre=Ma.ms2DateTime,XS=Ma.dateTime2ms,Su=Ma.ensureNumber,WS=Ma.isArrayOrTypedArray,Cf=Oa(),Zm=Cf.FP_SAFE,Il=Cf.BADNUM,Pre=Cf.LOG_CLIP,Rre=Cf.ONEWEEK,Jm=Cf.ONEDAY,$m=Cf.ONEHOUR,jS=Cf.ONEMIN,ZS=Cf.ONESEC,Km=wn(),r2=Dn(),Qm=r2.HOUR_PATTERN,e2=r2.WEEKDAY_PATTERN;function Ih(e){return Math.pow(10,e)}function b6(e){return e!=null}JS.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(_,M){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&M&&r.range&&r.range.length===2){var T=r.range[0],A=r.range[1];return .5*(T+A-2*Pre*Math.abs(T-A))}else return Il}function o(_,M,T,A){if((A||{}).msUTC&&Cu(_))return+_;var D=XS(_,T||r.calendar);if(D===Il)if(Cu(_)){_=+_;var P=Math.floor(Ma.mod(_+.05,1)*10),z=Math.round(_-P/10);D=XS(new Date(z))+P/10}else return Il;return D}function l(_,M,T){return qre(_,M,T||r.calendar)}function u(_){return r._categories[Math.round(_)]}function s(_){if(b6(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var M=r._categories.length-1;return r._categoriesMap[_]=M,M}return Il}function f(_,M){for(var T=new Array(M),A=0;A<M;A++){var D=(_[0]||[])[A],P=(_[1]||[])[A];T[A]=c([D,P])}return T}function c(_){if(r._categoriesMap)return r._categoriesMap[_]}function h(_){var M=c(_);if(M!==void 0)return M;if(Cu(_))return+_}function d(_){return Cu(_)?+_:c(_)}function m(_,M,T){return Lre.round(T+M*_,2)}function p(_,M,T){return(_-T)/M}var y=function(M){return Cu(M)?m(M,r._m,r._b):Il},b=function(_){return p(_,r._m,r._b)};if(r.rangebreaks){var C=n==="y";y=function(_){if(!Cu(_))return Il;var M=r._rangebreaks.length;if(!M)return m(_,r._m,r._b);var T=C;r.range[0]>r.range[1]&&(T=!T);for(var A=T?-1:1,D=A*_,P=0,z=0;z<M;z++){var B=A*r._rangebreaks[z].min,X=A*r._rangebreaks[z].max;if(D<B)break;if(D>X)P=z+1;else{P=D<(B+X)/2?z:z+1;break}}var H=r._B[P]||0;return isFinite(H)?m(_,r._m2,H):0},b=function(_){var M=r._rangebreaks.length;if(!M)return p(_,r._m,r._b);for(var T=0,A=0;A<M&&!(_<r._rangebreaks[A].pmin);A++)_>r._rangebreaks[A].pmax&&(T=A+1);return p(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Su,r.l2c=r.type==="log"?Ih:Su,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,M){return y(i(_,M))}:y,r.p2c=r.type==="log"?function(_){return Ih(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=kf,r.c2d=r.c2r=r.l2d=r.l2r=Su,r.d2p=r.r2p=function(_){return r.l2p(kf(_))},r.p2d=r.p2r=b,r.cleanPos=Su):r.type==="log"?(r.d2r=r.d2l=function(_,M){return i(kf(_),M)},r.r2d=r.r2c=function(_){return Ih(kf(_))},r.d2c=r.r2l=kf,r.c2d=r.l2r=Su,r.c2r=i,r.l2d=Ih,r.d2p=function(_,M){return r.l2p(r.d2r(_,M))},r.p2d=function(_){return Ih(b(_))},r.r2p=function(_){return r.l2p(kf(_))},r.p2r=b,r.cleanPos=Su):r.type==="date"?(r.d2r=r.r2d=Ma.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,M,T){return r.l2p(o(_,0,T))},r.p2d=r.p2r=function(_,M,T){return l(b(_),M,T)},r.cleanPos=function(_){return Ma.cleanDate(_,Il,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=d(_);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Su,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return u(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Su(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=h(_);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Su,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return u(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Su(_)},r.setupMultiCategory=function(_){var M=r._traceIndices,T,A,D=r._matchGroup;if(D&&r._categories.length===0){for(var P in D)if(P!==a){var z=t[Km.id2name(P)];M=M.concat(z._traceIndices)}}var B=[[0,{}],[0,{}]],X=[];for(T=0;T<M.length;T++){var H=_[M[T]];if(n in H){var V=H[n],I=H._length||Ma.minRowLength(V);if(WS(V[0])&&WS(V[1]))for(A=0;A<I;A++){var Q=V[0][A],ne=V[1][A];b6(Q)&&b6(ne)&&(X.push([Q,ne]),Q in B[0][1]||(B[0][1][Q]=B[0][0]++),ne in B[1][1]||(B[1][1][ne]=B[1][0]++))}}}for(X.sort(function(te,ee){var fe=B[0][1],ve=fe[te[0]]-fe[ee[0]];if(ve)return ve;var Ae=B[1][1];return Ae[te[1]]-Ae[ee[1]]}),T=0;T<X.length;T++)s(X[T])}),r.fraction2r=function(_){var M=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return r.l2r(M+_*(T-M))},r.r2fraction=function(_){var M=r.r2l(r.range[0]),T=r.r2l(r.range[1]);return(r.r2l(_)-M)/(T-M)},r.limitRange=function(_){var M=r.minallowed,T=r.maxallowed;if(!(M===void 0&&T===void 0)){_||(_="range");var A=Ma.nestedProperty(r,_).get(),D=Ma.simpleMap(A,r.r2l),P=D[1]<D[0];P&&D.reverse();var z=Ma.simpleMap([M,T],r.r2l);if(M!==void 0&&D[0]<z[0]&&(A[P?1:0]=M,D[0]=z[0]),T!==void 0&&D[1]>z[1]&&(A[P?0:1]=T,D[1]=z[1]),D[0]>=D[1])if(M!==void 0){var B=z[0]+1;T!==void 0&&(B=Math.min(B,z[1])),A[P?0:1]=r.l2r(B)}else T!==void 0&&(A[P?1:0]=r.l2r(z[1]-1))}},r.cleanRange=function(_,M){r._cleanRange(_,M),r.limitRange(_)},r._cleanRange=function(_,M){M||(M={}),_||(_="range");var T=Ma.nestedProperty(r,_).get(),A,D;if(r.type==="date"?D=Ma.dfltRange(r.calendar):n==="y"?D=r2.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=M.dfltRange||r2.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!T||T.length!==2){Ma.nestedProperty(r,_).set(D);return}var P=T[0]===null,z=T[1]===null;for(r.type==="date"&&!r.autorange&&(T[0]=Ma.cleanDate(T[0],Il,r.calendar),T[1]=Ma.cleanDate(T[1],Il,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!Ma.isDateTime(T[A],r.calendar)){r[_]=D;break}if(r.r2l(T[0])===r.r2l(T[1])){var B=Ma.constrain(r.r2l(T[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);T[0]=r.l2r(B-1e3),T[1]=r.l2r(B+1e3);break}}else{if(!Cu(T[A]))if(!(P||z)&&Cu(T[1-A]))T[A]=T[1-A]*(A?10:.1);else{r[_]=D;break}if(T[A]<-Zm?T[A]=-Zm:T[A]>Zm&&(T[A]=Zm),T[0]===T[1]){var X=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=X,T[1]+=X}}},r.setScale=function(_){var M=t._size;if(r.overlaying){var T=Km.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain}var A=_&&r._r?"_r":"range",D=r.calendar;r.cleanRange(A);var P=r.r2l(r[A][0],D),z=r.r2l(r[A][1],D),B=n==="y";if(B?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var X,H;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],r._lBreaks+=Math.abs(H.max-H.min);var V=B;P>z&&(V=!V),V&&r._rangebreaks.reverse();var I=V?-1:1;for(r._m2=I*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(B?z:P)),X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],r._B.push(r._B[r._B.length-1]-I*r._m2*(H.max-H.min));for(X=0;X<r._rangebreaks.length;X++)H=r._rangebreaks[X],H.pmin=y(H.min),H.pmax=y(H.max)}}if(!isFinite(r._m)||!isFinite(r._b)||r._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},r.maskBreaks=function(_){var M=r.rangebreaks||[],T,A,D,P,z;M._cachedPatterns||(M._cachedPatterns=M.map(function(fe){return fe.enabled&&fe.bounds?Ma.simpleMap(fe.bounds,fe.pattern?kf:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(fe){return fe.enabled&&fe.values?Ma.simpleMap(fe.values,r.d2c).sort(Ma.sorterAsc):null}));for(var B=0;B<M.length;B++){var X=M[B];if(X.enabled){if(X.bounds){var H=X.pattern;switch(T=M._cachedPatterns[B],A=T[0],D=T[1],H){case e2:z=new Date(_),P=z.getUTCDay(),A>D&&(D+=7,P<A&&(P+=7));break;case Qm:z=new Date(_);var V=z.getUTCHours(),I=z.getUTCMinutes(),Q=z.getUTCSeconds(),ne=z.getUTCMilliseconds();P=V+(I/60+Q/3600+ne/36e5),A>D&&(D+=24,P<A&&(P+=24));break;case"":P=_;break}if(P>=A&&P<D)return Il}else for(var te=M._cachedValues[B],ee=0;ee<te.length;ee++)if(A=te[ee],D=A+X.dvalue,_>=A&&_<D)return Il}}return _},r.locateBreaks=function(_,M){var T,A,D,P,z=[];if(!r.rangebreaks)return z;var B=r.rangebreaks.slice().sort(function(Ae,Ee){return Ae.pattern===e2&&Ee.pattern===Qm?-1:Ee.pattern===e2&&Ae.pattern===Qm?1:0}),X=function(Ae,Ee){if(Ae=Ma.constrain(Ae,_,M),Ee=Ma.constrain(Ee,_,M),Ae!==Ee){for(var Be=!0,Ue=0;Ue<z.length;Ue++){var ke=z[Ue];Ae<ke.max&&Ee>=ke.min&&(Ae<ke.min&&(ke.min=Ae),Ee>ke.max&&(ke.max=Ee),Be=!1)}Be&&z.push({min:Ae,max:Ee})}};for(T=0;T<B.length;T++){var H=B[T];if(H.enabled)if(H.bounds){var V=_,I=M;H.pattern&&(V=Math.floor(V)),A=Ma.simpleMap(H.bounds,H.pattern?kf:r.r2l),D=A[0],P=A[1];var Q=new Date(V),ne,te;switch(H.pattern){case e2:te=Rre,ne=((P<D?7:0)+(P-D))*Jm,V+=D*Jm-(Q.getUTCDay()*Jm+Q.getUTCHours()*$m+Q.getUTCMinutes()*jS+Q.getUTCSeconds()*ZS+Q.getUTCMilliseconds());break;case Qm:te=Jm,ne=((P<D?24:0)+(P-D))*$m,V+=D*$m-(Q.getUTCHours()*$m+Q.getUTCMinutes()*jS+Q.getUTCSeconds()*ZS+Q.getUTCMilliseconds());break;default:V=Math.min(A[0],A[1]),I=Math.max(A[0],A[1]),te=I-V,ne=te}for(var ee=V;ee<I;ee+=te)X(ee,ee+ne)}else for(var fe=Ma.simpleMap(H.values,r.d2c),ve=0;ve<fe.length;ve++)D=fe[ve],P=D+H.dvalue,X(D,P)}return z.sort(function(Ae,Ee){return Ae.min-Ee.min}),z},r.makeCalcdata=function(_,M,T){var A,D,P,z,B=r.type,X=B==="date"&&_[M+"calendar"];if(M in _){if(A=_[M],z=_._length||Ma.minRowLength(A),Ma.isTypedArray(A)&&(B==="linear"||B==="log")){if(z===A.length)return A;if(A.subarray)return A.subarray(0,z)}if(B==="multicategory")return f(A,z);for(D=new Array(z),P=0;P<z;P++)D[P]=r.d2c(A[P],0,X,T)}else{var H=M+"0"in _?r.d2c(_[M+"0"],0,X):0,V=_["d"+M]?Number(_["d"+M]):1;for(A=_[{x:"y",y:"x"}[M]],z=_._length||A.length,D=new Array(z),P=0;P<z;P++)D[P]=H+P*V}if(r.rangebreaks)for(P=0;P<z;P++)D[P]=r.maskBreaks(D[P]);return D},r.isValidRange=function(_,M){return Array.isArray(_)&&_.length===2&&(M&&_[0]===null||Cu(r.r2l(_[0])))&&(M&&_[1]===null||Cu(r.r2l(_[1])))},r.getAutorangeDflt=function(_,M){var T=!r.isValidRange(_,"nullOk");return T&&M&&M.reverseDflt?T="reversed":_&&(_[0]===null&&_[1]===null?T=!0:_[0]===null&&_[1]!==null?T="min":_[0]!==null&&_[1]===null&&(T="max")),T},r.isReversed=function(){var _=r.autorange;return _==="reversed"||_==="min reversed"||_==="max reversed"},r.isPtWithinRange=function(_,M){var T=r.c2l(_[n],null,M),A=r.r2l(r.range[0]),D=r.r2l(r.range[1]);return A<D?A<=T&&T<=D:D<=T&&T<=A},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var _=r._matchGroup;if(_){var M=null,T=null;for(var A in _){var D=t[Km.id2name(A)];if(D._categories){M=D._categories,T=D._categoriesMap;break}}M&&T?(r._categories=M,r._categoriesMap=T):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var P=0;P<r._initialCategories.length;P++)s(r._initialCategories[P])},r.sortByInitialCategories=function(){var _=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)s(r._initialCategories[M]);_=_.concat(r._traceIndices);var T=r._matchGroup;for(var A in T)if(a!==A){var D=t[Km.id2name(A)];D._categories=r._categories,D._categoriesMap=r._categoriesMap,_=_.concat(D._traceIndices)}return _};var x=t._d3locale;r.type==="date"&&(r._dateFormat=x?x.timeFormat:Dre,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=x?x.numberFormat:Fre,delete r._minDtick,delete r._forceTick0}});var x6=ae((S3e,eE)=>{"use strict";var $S=Wt(),_6=mr(),zre=Oa().BADNUM,a2=_6.isArrayOrTypedArray,Nre=_6.isDateTime,Bre=_6.cleanNumber,KS=Math.round;eE.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(a2(n)&&!n.length)return"-";if(!i&&Gre(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(a2(n[l]))for(var u=0;u<n[l].length;u++)o.push(n[l][u]);n=o}if(Ore(n,t))return"date";var s=a.autotypenumbers!=="strict";return Ure(n,s)?"category":Hre(n,s)?"linear":"-"};function Ire(e,r){return r?$S(e):typeof e=="number"}function Hre(e,r){for(var t=e.length,a=0;a<t;a++)if(Ire(e[a],r))return!0;return!1}function Ore(e,r){for(var t=e.length,a=QS(t),n=0,i=0,o={},l=0;l<t;l+=a){var u=KS(l),s=e[u],f=String(s);o[f]||(o[f]=1,Nre(s,r)&&n++,$S(s)&&i++)}return n>i*2}function QS(e){return Math.max(1,(e-1)/1e3)}function Ure(e,r){for(var t=e.length,a=QS(t),n=0,i=0,o={},l=0;l<t;l+=a){var u=KS(l),s=e[u],f=String(s);if(!o[f]){o[f]=1;var c=typeof s;c==="boolean"?i++:(r?Bre(s)!==zre:c==="number")?n++:c==="string"&&i++}}return i>n*2}function Gre(e){return a2(e[0])&&a2(e[1])}});var Ef=ae((E3e,uE)=>{"use strict";var Yre=Et(),nE=Wt(),Sf=mr(),n2=Oa().FP_SAFE,Vre=bt(),Xre=va(),iE=wn(),Wre=iE.getFromId,jre=iE.isLinked;uE.exports={applyAutorangeOptions:lE,getAutoRange:w6,makePadFn:M6,doAutoRange:Jre,findExtremes:$re,concatExtremes:k6};function w6(e,r){var t,a,n=[],i=e._fullLayout,o=M6(i,r,0),l=M6(i,r,1),u=k6(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Sf.simpleMap(r.range,r.r2l);var c=s[0].val,h=f[0].val;for(t=1;t<s.length&&c===h;t++)c=Math.min(c,s[t].val);for(t=1;t<f.length&&c===h;t++)h=Math.max(h,f[t].val);var d=r.autorange,m=d==="reversed"||d==="min reversed"||d==="max reversed";if(!m&&r.range){var p=Sf.simpleMap(r.range,r.r2l);m=p[1]<p[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",C=y==="nonnegative",x=r._length,_=x/10,M=0,T,A,D,P,z,B;for(t=0;t<s.length;t++)for(T=s[t],a=0;a<f.length;a++)A=f[a],B=A.val-T.val-rE(r,T.val,A.val),B>0&&(z=x-o(T)-l(A),z>_?B/z>M&&(D=T,P=A,M=B/z):B/x>M&&(D={val:T.val,nopad:1},P={val:A.val,nopad:1},M=B/x));function X(ne,te){return Math.max(ne,l(te))}if(c===h){var H=c-1,V=c+1;if(b)if(c===0)n=[0,1];else{var I=(c>0?f:s).reduce(X,0),Q=c/(1-Math.min(.5,I/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,H),Math.max(1,V)]:n=[H,V]}else b?(D.val>=0&&(D={val:0,nopad:1}),P.val<=0&&(P={val:0,nopad:1})):C&&(D.val-M*o(D)<0&&(D={val:0,nopad:1}),P.val<=0&&(P={val:1,nopad:1})),M=(P.val-D.val-rE(r,T.val,A.val))/(x-o(D)-l(P)),n=[D.val-M*o(D),P.val+M*l(P)];return n=lE(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),Sf.simpleMap(n,r.l2r||Number)}function rE(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var o=n[i];a+=o.max-o.min}return a}function M6(e,r,t){var a=.05*r._length,n=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(n.ticklabelposition||"").indexOf("inside")!==-1){var i=r.isReversed();if(!i){var o=Sf.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return jre(e,r._id)||(l=Zre(e,r,t)),a=Math.max(l,a),r.constrain==="domain"&&r._inputDomain&&(a*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(s){return s.nopad?0:s.pad+(s.extrapad?a:l)}}var tE=3;function Zre(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var o=e._plots[i];if(!(r._id!==o.xaxis._id&&r._id!==o.yaxis._id)){var l=(n?o.yaxis:o.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(l.side==="left"||l.side==="bottom")||t&&(l.side==="top"||l.side==="right"))){if(l._vals){var u=Sf.deg2rad(l._tickAngles[l._id+"tick"]||0),s=Math.abs(Math.cos(u)),f=Math.abs(Math.sin(u));if(!l._vals[0].bb){var c=l._id+"tick",h=l._selections[c];h.each(function(C){var x=Yre.select(this),_=x.select(".text-math-group");_.empty()&&(C.bb=Xre.bBox(x.node()))})}for(var d=0;d<l._vals.length;d++){var m=l._vals[d],p=m.bb;if(p){var y=2*tE+p.width,b=2*tE+p.height;a=Math.max(a,n?Math.max(y*s,b*f):Math.max(b*s,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function k6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],u,s,f;function c(y,b){for(u=0;u<b.length;u++){var C=y[b[u]],x=(C._extremes||{})[a];if(C.visible===!0&&x){for(s=0;s<x.min.length;s++)f=x.min[s],A6(o,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<x.max.length;s++)f=x.max[s],T6(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(n,r._traceIndices),c(i.annotations||[],r._annIndices||[]),c(i.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var h in r._matchGroup)if(h!==r._id){var d=Wre(e,h),m=k6(e,d,!0),p=r._length/d._length;for(s=0;s<m.min.length;s++)f=m.min[s],A6(o,f.val,f.pad*p,{extrapad:f.extrapad});for(s=0;s<m.max.length;s++)f=m.max[s],T6(l,f.val,f.pad*p,{extrapad:f.extrapad})}}return{min:o,max:l}}function Jre(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():w6(e,r),r._r=r.range.slice(),r._rl=Sf.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Vre.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,n),a.range=r.range.slice(),a.autorange=r.autorange}var i=r._anchorAxis;if(i&&i.rangeslider){var o=i.rangeslider[r._name];o&&o.rangemode==="auto"&&(o.range=w6(e,r)),i._input.rangeslider[r._name]=Sf.extendFlat({},o)}}function $re(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,o=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),u=e.type==="log",s=!1,f=t.vpadLinearized||!1,c,h,d,m,p,y,b,C,x;function _(X){if(Array.isArray(X))return s=!0,function(V){return Math.max(Number(X[V]||0),0)};var H=Math.max(Number(X||0),0);return function(){return H}}var M=_((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),T=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=_(t.vpadplus||t.vpad),D=_(t.vpadminus||t.vpad);if(!s){if(C=1/0,x=-1/0,u)for(c=0;c<i;c++)h=r[c],h<C&&h>0&&(C=h),h>x&&h<n2&&(x=h);else for(c=0;c<i;c++)h=r[c],h<C&&h>-n2&&(C=h),h>x&&h<n2&&(x=h);r=[C,x],i=2}var P={tozero:l,extrapad:o};function z(X){d=r[X],nE(d)&&(y=M(X),b=T(X),f?(m=e.c2l(d)-D(X),p=e.c2l(d)+A(X)):(C=d-D(X),x=d+A(X),u&&C<x/10&&(C=x/10),m=e.c2l(C),p=e.c2l(x)),l&&(m=Math.min(0,m),p=Math.max(0,p)),aE(m)&&A6(a,m,b,P),aE(p)&&T6(n,p,y,P))}var B=Math.min(6,i);for(c=0;c<B;c++)z(c);for(c=i-1;c>=B;c--)z(c);return{min:a,max:n,opts:t}}function A6(e,r,t,a){oE(e,r,t,a,Kre)}function T6(e,r,t,a){oE(e,r,t,a,Qre)}function oE(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,u=0;u<e.length&&l;u++){var s=e[u];if(n(s.val,r)&&s.pad>=t&&(s.extrapad||!o)){l=!1;break}else n(r,s.val)&&s.pad<=t&&(o||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function aE(e){return nE(e)&&Math.abs(e)<n2}function Kre(e,r){return e<=r}function Qre(e,r){return e>=r}function ete(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&i2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&i2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function rte(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&i2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&i2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function i2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function lE(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],a=e[1],n=r.autorangeoptions.include;if(n!==void 0){var i=r.d2l(t),o=r.d2l(a);Sf.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var u=r.d2l(n[l]);i>=u&&(i=u,t=u),o<=u&&(o=u,a=u)}}return t=ete(t,r),a=rte(a,r),[t,a]}});var Ba=ae((D3e,DE)=>{"use strict";var Go=Et(),un=Wt(),j1=Mn(),Oh=bt(),ht=mr(),Z1=ht.strTranslate,ec=ai(),tte=Bh(),Uh=Ft(),mo=va(),ate=Nl(),sE=V5(),L3e=Dn(),Zn=Oa(),nte=Zn.ONEMAXYEAR,u2=Zn.ONEAVGYEAR,s2=Zn.ONEMINYEAR,ite=Zn.ONEMAXQUARTER,L6=Zn.ONEAVGQUARTER,f2=Zn.ONEMINQUARTER,ote=Zn.ONEMAXMONTH,J1=Zn.ONEAVGMONTH,c2=Zn.ONEMINMONTH,go=Zn.ONEWEEK,mi=Zn.ONEDAY,Lf=mi/2,Lu=Zn.ONEHOUR,Gh=Zn.ONEMIN,v2=Zn.ONESEC,lte=Zn.ONEMILLI,ute=Zn.ONEMICROSEC,rc=Zn.MINUS_SIGN,d2=Zn.BADNUM,D6={K:"zeroline"},F6={K:"gridline",L:"path"},q6={K:"minor-gridline",L:"path"},_E={K:"tick",L:"path"},fE={K:"tick",L:"text"},cE={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},p2=ti(),Hh=p2.MID_SHIFT,tc=p2.CAP_SHIFT,Yh=p2.LINE_SPACING,ste=p2.OPPOSITE_SIDE,h2=3,_r=DE.exports={};_r.setConvert=t2();var fte=x6(),Du=wn(),cte=Du.idSort,vte=Du.isLinked;_r.id2name=Du.id2name;_r.name2id=Du.name2id;_r.cleanId=Du.cleanId;_r.list=Du.list;_r.listIds=Du.listIds;_r.getFromId=Du.getFromId;_r.getFromTrace=Du.getFromTrace;var xE=Ef();_r.getAutoRange=xE.getAutoRange;_r.findExtremes=xE.findExtremes;var hte=1e-4;function N6(e){var r=(e[1]-e[0])*hte;return[e[0]-r,e[1]+r]}function dte(e,r,t){if(![t,e,r].every(un)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)<Math.abs(t)*1e-6?n:e}_r.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],u=a+"ref",s={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},ht.coerce(e,r,s,u)};_r.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=a+"ref";var f=e[s];n||(n=u[0]||(typeof i=="string"?i:i[0])),u=u.concat(u.map(h=>h+" domain")),u=u.concat(i||[]),f.length>o?(ht.warn("Array attribute "+s+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(ht.warn("Array attribute "+s+" has fewer entries than expected, extending with default value"),f=f.concat(Array(o-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=Du.cleanId(f[c],l,!0)||f[c],u.includes(f[c])||(f[c]=n);return r[s]=f,f};_r.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,a,n,i){var o,l,u=_r.getRefType(a);if(u!=="range")o=ht.ensureNumber,l=t(n,i);else{var s=_r.getFromId(r,a);i=s.fraction2r(i),l=t(n,i),o=s.cleanPos}e[n]=o(l)};_r.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?ht.ensureNumber:_r.getFromId(r,t).cleanPos;return a(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var u=Oh.getComponentMethod(n,i),s={},f=0;f<r.length;f++)for(var c=t[_r.id2name(r[f])],h=c[o],d=0;d<h.length;d++){var m=h[d];if(!s[m]&&(u(e,m),s[m]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var pte=_r.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(ht.isArrayOrTypedArray(i)){if(n={type:fte(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},_r.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=_r.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:hE,c2d:hE}:{d2c:vE,c2d:vE}};function vE(e){return+e}function hE(e){return String(e)}_r.getDataToCoordFunc=function(e,r,t,a){return pte(e,r,t,a).d2c};_r.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};_r.minDtick=function(e,r,t,a){["log","category","multicategory"].indexOf(e.type)!==-1||!a?e._minDtick=0:e._minDtick===void 0?(e._minDtick=r,e._forceTick0=t):e._minDtick&&((e._minDtick/r+1e-6)%1<2e-6&&((t-e._forceTick0)/r%1+1.000001)%1<2e-6?(e._minDtick=r,e._forceTick0=t):((r/e._minDtick+1e-6)%1>2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],o=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,u=i.autorange;(o&&u!==!0||r&&l)&&(i._rangeInitial0=u==="min"||u==="max reversed"?void 0:i.range[0],i._rangeInitial1=u==="max"||u==="min reversed"?void 0:i.range[1],i._autorangeInitial=u,a=!0)}return a};_r.saveShowSpikeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,u=l||o.showspikes!==o._showspikes;(l||r&&u)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};_r.autoBin=function(e,r,t,a,n,i){var o=ht.aggNums(Math.min,null,e),l=ht.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:o-.5,end:l+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:l-o};n||(n=r.calendar);var u;if(r.type==="log"?u={type:"linear",range:[o,l]}:u={type:r.type,range:ht.simpleMap([o,l],r.c2r,0,n),calendar:n},_r.setConvert(u),i=i&&sE.dtick(i,u.type),i)u.dtick=i,u.tick0=sE.tick0(void 0,u.type,n);else{var s;if(t)s=(l-o)/t;else{var f=ht.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),h=c*ht.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);s=Math.max(h,2*ht.stdev(e)/Math.pow(e.length,a?.25:.4)),un(s)||(s=1)}_r.autoTicks(u,s)}var d=u.dtick,m=_r.tickIncrement(_r.tickFirst(u),d,"reverse",n),p,y;if(typeof d=="number")m=mte(m,e,u,o,l),y=1+Math.floor((l-m)/d),p=m+y*d;else for(u.dtick.charAt(0)==="M"&&(m=gte(m,e,d,o,n)),p=m,y=0;p<=l;)p=_r.tickIncrement(p,d,!1,n),y++;return{start:r.c2r(m,0,n),end:r.c2r(p,0,n),size:d,_dataSpan:l-o}};function mte(e,r,t,a,n){var i=0,o=0,l=0,u=0;function s(d){return(1+(d-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:un(r[f])||u++,s(r[f])&&i++,s(r[f]+t.dtick/2)&&o++;var c=r.length-u;if(l===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(o<c*.1&&(i>c*.3||s(a)||s(n))){var h=t.dtick/2;e+=e+h<a?h:-h}return e}function gte(e,r,t,a,n){var i=ht.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+mi*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+mi*15.5:e-=Lf;var u=_r.tickIncrement(e,t);if(u<=a)return u}return e}_r.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&un(r._tmin),n;if(a){var i=_r.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=ht.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ht.simpleMap(n,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),a){var l=un(r.dtick),u=un(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?C6(s,f)?s===2*go&&f===2*mi&&(e.dtick=go):s===2*go&&f===3*mi?e.dtick=go:s===go&&!(r._input.minor||{}).nticks?e.dtick=mi:dE(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":C6(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?C6(s,f)||(e.dtick=dE(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function C6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function dE(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=ht.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?ht.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=ht.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<e._minDtick*2&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.ticklabelmode==="period"&&yte(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),TE(e)};function S6(e){return+e.substring(1)}function yte(e){var r;function t(){return!(un(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=_r.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=Lu,i&&!a&&e.dtick<Lu&&(e.dtick=Lu)):/%p/.test(n)?(r=Lf,i&&!a&&e.dtick<Lf&&(e.dtick=Lf)):/%[Aadejuwx]/.test(n)?(r=mi,i&&!a&&e.dtick<mi&&(e.dtick=mi)):/%[UVW]/.test(n)?(r=go,i&&!a&&e.dtick<go&&(e.dtick=go)):/%[Bbm]/.test(n)?(r=J1,i&&(a?S6(e.dtick)<1:e.dtick<c2)&&(e.dtick="M1")):/%[q]/.test(n)?(r=L6,i&&(a?S6(e.dtick)<3:e.dtick<f2)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=u2,i&&(a?S6(e.dtick)<12:e.dtick<s2)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function bte(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i=a,o=a+1;a<e.length-1?(i=a,o=a+1):a>0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,u=e[o].value,s=Math.abs(u-l),f=t||s,c=0;f>=s2?s>=s2&&s<=nte?c=s:c=u2:t===L6&&f>=f2?s>=f2&&s<=ite?c=s:c=L6:f>=c2?s>=c2&&s<=ote?c=s:c=J1:t===go&&f>=go?c=go:f>=mi?c=mi:t===Lf&&f>=Lf?c=Lf:t===Lu&&f>=Lu&&(c=Lu);var h;c>=s&&(c=s,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var m=84,p=0,y=0;y<m;y++){var b=(y+.5)/m;r.maskBreaks(n*(1-b)+b*d)!==d2&&p++}c*=p/m,c||(e[a].drop=!0),h&&s>go&&(c=s)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}_r.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||ht.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=ht.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]<s[0],c=Math.min(s[0],s[1]),h=Math.max(s[0],s[1]),d=Math.max(1e3,r._length||0),m=[],p=[],y=[],b=[],C=[],x=r.minor&&(r.minor.ticks||r.minor.showgrid),_=x||u,M=1;M>=(_?0:1);M--){var T=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:ht.extendFlat({},r,_?r.minor:{minor:{}});if(T?_r.prepMinorTicks(A,r,t):_r.prepTicks(A,t),A.tickmode==="array"){M?(y=[],m=pE(r,!T)):(b=[],p=pE(r,!T));continue}if(A.tickmode==="sync"){y=[],m=_te(r);continue}var D=N6(s),P=D[0],z=D[1],B=un(A.dtick),X=a==="log"&&!(B||A.dtick.charAt(0)==="L"),H=_r.tickFirst(A,t);if(M){if(r._tmin=H,H<P!==f)break;(a==="category"||a==="multicategory")&&(z=f?Math.max(-.5,z):Math.min(r._categories.length-.5,z))}var V=null,I=H,Q;if(M){var ne;B?ne=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(ne=J1*r.dtick.substring(1)):ne=r._roughDTick,Q=Math.round((r.r2l(I)-r.r2l(r.tick0))/ne)-1}var te=A.dtick,ee=a==="linear"?A.r2l(A.tick0):void 0;for(A.rangebreaks&&A._tick0Init!==A.tick0&&(I=E6(I,r),f||(I=_r.tickIncrement(I,te,!f,n))),(M||u)&&o&&(I=_r.tickIncrement(I,te,!f,n),M&&Q--);f?I>=z:I<=z;I=_r.tickIncrement(I,te,f,n)){if(M&&Q++,A.rangebreaks&&!f){if(I<P)continue;if(A.maskBreaks(I)===d2&&E6(I,A)>=h)break}if(y.length>d||I===V)break;V=I;var fe={value:dte(I,ee,te)};M?(I===H&&(fe.first=!0),X&&I!==(I|0)&&(fe.simpleLabel=!0),i>1&&Q%i&&(fe.skipLabel=!0),y.push(fe)):(fe.minor=!0,b.push(fe))}}if(!b||b.length<3)u=!1;else{var ve=(b[2].value-b[1].value)*(l?-1:1);Vte(ve,r.tickformat)||(u=!1,b=b.slice(1))}if(!u)C=y;else{var Ae=y.concat(b);o&&y.length&&(Ae=Ae.slice(1)),Ae=Ae.sort(function(dr,Ze){return dr.value-Ze.value}).filter(function(dr,Ze,fr){return Ze===0||dr.value!==fr[Ze-1].value});var Ee=Ae.map(function(dr,Ze){return dr.minor===void 0&&!dr.skipLabel?Ze:null}).filter(function(dr){return dr!==null});Ee.forEach(function(dr){u.map(function(Ze){var fr=dr+Ze;fr>=0&&fr<Ae.length&&ht.pushUnique(C,Ae[fr])})}),y.forEach(function(dr){dr.skipLabel=C.indexOf(dr)===-1})}if(x){var Be=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!Be){for(var Ue=y.map(function(dr){return dr.value}),ke=[],We=0;We<b.length;We++){var j=b[We],re=j.value;if(Ue.indexOf(re)===-1){for(var me=!1,K=0;!me&&K<y.length;K++)1e7+y[K].value===1e7+re&&(me=!0);me||ke.push(j)}}b=ke}}o&&bte(C,r,r._definedDelta);var $;if(r.rangebreaks){var le=r._id.charAt(0)==="y",we=1;r.tickmode==="auto"&&(we=r.tickfont?r.tickfont.size:12);var Ne=NaN;for($=y.length-1;$>-1;$--){if(y[$].drop){y.splice($,1);continue}y[$].value=E6(y[$].value,r);var $e=r.c2p(y[$].value);(le?Ne>$e-we:Ne<$e+we)?y.splice(f?$+1:$,1):Ne=$e}}O6(r)&&Math.abs(s[1]-s[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var er,ir=function(dr){dr.text="",r._prevDateHead=er};y=y.concat(b);function sr(dr,Ze){var fr=_r.tickText(dr,Ze.value,!1,Ze.simpleLabel,{first:Ze.first,last:Ze.last}),Dr=Ze.periodX;return Dr!==void 0&&(fr.periodX=Dr,(Dr>h||Dr<c)&&(Dr>h&&(fr.periodX=h),Dr<c&&(fr.periodX=c),ir(fr))),fr}var Pe;for($=0;$<y.length;$++){var vr=y[$].minor,hr=y[$].value;vr?(u&&C.indexOf(y[$])!==-1?Pe=sr(r,y[$]):Pe={x:hr},Pe.minor=!0,p.push(Pe)):(er=r._prevDateHead,Pe=sr(r,y[$]),y[$].skipLabel&&ir(Pe),m.push(Pe))}return o&&u&&p.length&&(p[0].noTick=!0),m=m.concat(p),r._inCalcTicks=!1,o&&m.length&&(m[0].noTick=!0),m};function wE(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==d2})),r}function _te(e){var r=e._mainAxis,t=[];if(r._vals){for(var a=-1,n=-1,i=0;i<r._vals.length;i++)r._vals[i].noTick||r._vals[i].minor||(a===-1&&(a=i),n=i);for(var o=0;o<r._vals.length;o++)if(!r._vals[o].noTick){var l=r.l2p(r._vals[o].x),u=e.p2l(l),s=_r.tickText(e,u,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(s.minor=!0,s.text=""),t.push(s)}}return t=wE(e,t),t}function pE(e,r){var t=ht.simpleMap(e.range,e.r2l),a=N6(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),o=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],u=0;u<=1;u++)if(!(r!==void 0&&(r&&u||r===!1&&!u))&&!(u&&!e.minor)){var s=u?e.minor.tickvals:e.tickvals,f=u?[]:e.ticktext;if(s){ht.isArrayOrTypedArray(f)||(f=[]);var c=-1,h=-1;if(!u)for(var d=0;d<s.length;d++){var m=o(s[d]);m>n&&m<i&&(c===-1&&(c=d),h=d)}for(var p=0;p<s.length;p++){var y=o(s[p]);if(y>n&&y<i){var b=_r.tickText(e,y,!1,String(f[p]),{first:p===c,last:p===h});u&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=wE(e,l),l}var o2=[2,5,10],mE=[1,2,3,6,12],gE=[1,2,5,10,15,30],xte=[1,2,3,7,14],ME=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],AE=[-.301,0,.301,.699,1],wte=[15,30,45,90,180];function Eu(e,r,t){return r*ht.roundUp(e/r,t)}_r.autoTicks=function(e,r,t){var a;function n(c){return Math.pow(c,Math.floor(Math.log(r)/Math.LN10))}if(e.type==="date"){e.tick0=ht.dateTick0(e.calendar,0);var i=2*r;if(i>u2)r/=u2,a=n(10),e.dtick="M"+12*Eu(r,a,o2);else if(i>J1)r/=J1,e.dtick="M"+Eu(r,1,mE);else if(i>mi){if(e.dtick=Eu(r,mi,e._hasDayOfWeekBreaks?[1,2,7,14]:xte),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ht.dateTick0(e.calendar,2):e.tick0=ht.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Lu?e.dtick=Eu(r,Lu,mE):i>Gh?e.dtick=Eu(r,Gh,gE):i>v2?e.dtick=Eu(r,v2,gE):(a=n(10),e.dtick=Eu(r,a,o2))}else if(e.type==="log"){e.tick0=0;var u=ht.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,a=n(10),e.dtick="L"+Eu(r,a,o2)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):O6(e)?(e.tick0=0,a=1,e.dtick=Eu(r,a,wte)):(e.tick0=0,a=n(10),e.dtick=Eu(r,a,o2));if(e.dtick===0&&(e.dtick=1),!un(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function TE(e){var r=e.dtick;if(e._tickexponent=0,!un(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=mi&&n<=10||r>=mi*15)e._tickround="d";else if(r>=Gh&&n<=16||r>=Lu)e._tickround="M";else if(r>=v2&&n<=19||r>=Gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(un(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);un(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&($1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!B6(u)||$1(e.exponentformat)&&e.exponentformat==="SI extended"&&!I6(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}_r.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(un(r))return ht.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return ht.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?AE:ME,u=e+n*.01,s=ht.roundUp(ht.mod(u,1),l,t);return Math.floor(u)+Math.log(Go.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,a=ht.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=N6(a)[0],l=e.dtick,u=t(e.tick0);if(un(l)){var s=i((o-u)/l)*l+u;return(e.type==="category"||e.type==="multicategory")&&(s=ht.constrain(s,0,e._categories.length-1)),s}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var h=0,d=u,m,p,y;h<10;){if(m=_r.tickIncrement(d,l,n,e.calendar),(m-o)*(d-o)<=0)return n?Math.min(d,m):Math.max(d,m);p=(o-(d+m)/2)/(m-d),y=f+(Math.abs(Math.round(p))||1)*c,d=_r.tickIncrement(d,y,p<0?!n:n,e.calendar),h++}return ht.error("tickFirst did not converge",e),d}else{if(f==="L")return Math.log(i((Math.pow(10,o)-u)/c)*c+u)/Math.LN10;if(f==="D"){var b=l==="D2"?AE:ME,C=ht.roundUp(ht.mod(o,1),b,n);return Math.floor(o)+Math.log(Go.round(Math.pow(10,C),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};_r.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=kE(e,r),u=e.tickmode==="array",s=t||u,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,h,d=function(x){var _=e.l2p(x);return _>=0&&_<=e._length?x:null};if(u&&ht.isArrayOrTypedArray(e.ticktext)){var m=ht.simpleMap(e.range,e.r2l),p=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(h=0;h<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[h]))<p);h++);if(h<e.ticktext.length)return l.text=String(e.ticktext[h]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function y(x){return x===void 0?!0:t?x==="none":x==="all"?!1:x==="first"?!i:x==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?Mte(e,l,t,s):f==="log"?Ate(e,l,t,s,b):f==="category"?Tte(e,l):f==="multicategory"?kte(e,l,t):O6(e)?Ste(e,l,t,s,b):Cte(e,l,t,s,b),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var C=e.labelalias[l.text];typeof C=="string"&&(l.text=C)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};_r.hoverLabelText=function(e,r,t){t&&(e=ht.extendFlat({},e,{hoverformat:t}));var a=ht.isArrayOrTypedArray(r)?r[0]:r,n=ht.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return _r.hoverLabelText(e,a,t)+" - "+_r.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=_r.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":rc+o:o};function kE(e,r,t){var a=e.tickfont||{};return{x:r,dx:0,dy:0,text:t||"",fontSize:a.size,font:a.family,fontWeight:a.weight,fontStyle:a.style,fontVariant:a.variant,fontTextcase:a.textcase,fontLineposition:a.lineposition,fontShadow:a.shadow,fontColor:a.color}}function Mte(e,r,t,a){var n=e._tickround,i=t&&e.hoverformat||_r.getTickFormat(e);a=!i&&a,a&&(un(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=ht.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),l,u=o.indexOf(`
`);if(u!==-1&&(l=o.slice(u+1),o=o.slice(0,u)),a&&(l!==void 0&&(o==="00:00:00"||o==="00:00")?(o=l,l=""):o.length===8&&(o=o.replace(/:00$/,""))),l)if(t)n==="d"?o+=", "+l:o=l+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,o+="<br>"+l;else{var s=Xh(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(o+="<br> ")}r.text=o}function Ate(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,u=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&u!=="L"&&(i="L3",u="L"),l||u==="L")r.text=Vh(Math.pow(10,o),e,n,a);else if(un(i)||u==="D"&&(e.minorloglabels==="complete"||ht.mod(o+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(ht.mod(o+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),m=e.exponentformat;m==="power"||$1(m)&&m!=="SI extended"&&B6(h)||$1(m)&&m==="SI extended"&&I6(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+="<sup>"+(h>0?"":rc)+d+"</sup>"),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=c[0]+m+(h>0?"+":rc)+d:(r.text=Vh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ht.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Tte(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function kte(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Cte(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Vh(r.x,e,n,a)}function Ste(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Ete(i);if(o[1]>=100)r.text=Vh(ht.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03C0"].join(""),l&&(r.text=rc+r.text)}}}else r.text=Vh(r.x,e,n,a)}function Ete(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function a(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var CE=["f","p","n","\u03BC","m","","k","M","G","T"],Lte=["q","r","y","z","a",...CE,"P","E","Z","Y","R","Q"],$1=e=>["SI","SI extended","B"].includes(e);function B6(e){return e>14||e<-15}function I6(e){return e>32||e<-30}function Dte(e,r){return $1(r)?!!(r==="SI extended"&&I6(e)||r!=="SI extended"&&B6(e)):!1}function Vh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,u=_r.getTickFormat(r),s=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:un(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};TE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,rc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(l&&(e*=Math.pow(10,-l),i+=l),i===0)e=String(Math.round(e));else if(i<0){let d=Math.pow(10,-i);e=String(Math.round(e/d)*d)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=ht.numSeparate(e,r._separators,s)}if(l&&o!=="hide"){Dte(l,o)&&(o="power");var h;l<0?h=rc+-l:o!=="power"?h="+"+l:h=String(l),o==="e"||o==="E"?e+=o+h:o==="power"?e+="\xD710<sup>"+h+"</sup>":o==="B"&&l===9?e+="B":$1(o)&&(e+=o==="SI extended"?Lte[l/3+10]:CE[l/3+5])}return n?rc+e:e}_r.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*J1}function a(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),h=f.indexOf(s.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function n(u,s,f){var c=f||function(m){return m},h=s[0],d=s[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function i(u,s){var f=s[0]===null,c=s[1]===null,h=a(u,s[0])>=0,d=a(u,s[1])<=0;return(f||h)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&n(e.dtick,l.dtickrange,t)){o=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&i(e.dtick,l.dtickrange)){o=l;break}break}default:}return o?o.value:e.tickformat};_r.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?_r.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),u=o.slice(1).split("y");return l[0]===u[0]?+l[1]-+u[1]:+l[0]-+u[0]}),n};_r.findSubplotsWithAxis=function(e,r){for(var t=new RegExp(r._id.charAt(0)==="x"?"^"+r._id+"y":r._id+"$"),a=[],n=0;n<e.length;n++){var i=e[n];t.test(i)&&a.push(i)}return a};_r.makeClipPaths=function(e){var r=e._fullLayout;if(!r._hasOnlyLargeSploms){var t={_offset:0,_length:r.width,_id:""},a={_offset:0,_length:r.height,_id:""},n=_r.list(e,"x",!0),i=_r.list(e,"y",!0),o=[],l,u;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),u=0;u<i.length;u++)l===0&&o.push({x:t,y:i[u]}),o.push({x:n[l],y:i[u]});var s=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});s.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),s.exit().remove(),s.each(function(f){Go.select(this).select("rect").attr({x:f.x._offset||0,y:f.y._offset||0,width:f.x._length||1,height:f.y._length||1})})}};_r.draw=function(e,r,t){var a=e._fullLayout;r==="redraw"&&a._paper.selectAll("g.subplot").each(function(u){var s=u[0],f=a._plots[s];if(f){var c=f.xaxis,h=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+h._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+h._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+h._id+"divider").remove(),f.minorGridlayer&&f.minorGridlayer.selectAll("path").remove(),f.gridlayer&&f.gridlayer.selectAll("path").remove(),f.zerolinelayer&&f.zerolinelayer.selectAll("path").remove(),f.zerolinelayerAbove&&f.zerolinelayerAbove.selectAll("path").remove(),a._infolayer.select(".g-"+c._id+"title").remove(),a._infolayer.select(".g-"+h._id+"title").remove()}});var n=!r||r==="redraw"?_r.listIds(e):r,i=_r.list(e),o=i.filter(function(u){return u.autoshift}).map(function(u){return u.overlaying});n.map(function(u){var s=_r.getFromId(e,u);if(s.tickmode==="sync"&&s.overlaying){var f=n.findIndex(function(c){return c===s.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ht.syncOrAsync(n.map(function(u){return function(){if(u){var s=_r.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,s,t);return s._shiftPusher&&z6(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=ht.simpleMap(s._r,s.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=_r.counterLetter(s),h=u._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),z6(r,m,a,!0),z6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Yte(r,a));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i<x.length;i++)x[i].axInfo=_;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function T(Pe){var vr=s+(Pe||"tick");return M[vr]||(M[vr]=Rte(r,vr,b)),M[vr]}if(r.visible){var A=_r.makeTransTickFn(r),D=_r.makeTransTickLabelFn(r),P,z,B=r.ticks==="inside",X=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Fte(r,x);z=_r.clipEnds(r,H),P=B?z:H}else z=_r.clipEnds(r,x),P=B&&r.ticklabelmode!=="period"?z:x;var V=r._gridVals=z,I=Pte(r,x);if(!u._hasOnlyLargeSploms){var Q=r._subplotsWith,ne={};for(i=0;i<Q.length;i++){o=Q[i],l=u._plots[o];var te=l[c+"axis"],ee=te._mainAxis._id;if(!ne[ee]){ne[ee]=1;var fe=f==="x"?"M0,"+te._offset+"v"+te._length:"M"+te._offset+",0h"+te._length;_r.drawGrid(e,r,{vals:V,counterAxis:te,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:fe,transFn:A}),_r.drawZeroLine(e,r,{counterAxis:te,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:fe,transFn:A})}}}var ve,Ae=_r.getTickSigns(r),Ee=_r.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Be=_r.makeTickPath(r,b,Ae[2]),Ue=_r.makeTickPath(r,b,Ee[2],{minor:!0}),ke,We,j,re;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(ke=_r.makeTickPath(r,C,Ae[3]),We=_r.makeTickPath(r,C,Ee[3],{minor:!0}),j=Be+ke,re=Ue+We):(ke="",We="",j=Be,re=Ue),r.showdividers&&X&&r.tickson==="boundaries"){var me={};for(i=0;i<I.length;i++)me[I[i].x]=1;ve=function(Pe){return me[Pe.x]?ke:j}}else ve=function(Pe){return Pe.minor?re:j}}if(_r.drawTicks(e,r,{vals:P,layer:p,path:ve,transFn:A}),r.mirror==="allticks"){var K=Object.keys(r._linepositions||{});for(i=0;i<K.length;i++){o=K[i],l=u._plots[o];var $=r._linepositions[o]||[],le=$[0],we=$[1],Ne=$[2],$e=_r.makeTickPath(r,le,Ne?Ae[0]:Ee[0],{minor:Ne})+_r.makeTickPath(r,we,Ne?Ae[1]:Ee[1],{minor:Ne});_r.drawTicks(e,r,{vals:P,layer:l[f+"axislayer"],path:$e,transFn:A})}}var er=[];if(er.push(function(){return _r.drawLabels(e,r,{vals:x,layer:p,plotinfo:l,transFn:D,labelFns:_r.makeLabelFns(r,b)})}),r.type==="multicategory"){var ir={x:2,y:10}[f];er.push(function(){var Pe={x:"height",y:"width"}[f],vr=T()[Pe]+ir+(r._tickAngles[s+"tick"]?r.tickfont.size*Yh:0);return _r.drawLabels(e,r,{vals:qte(r,x),layer:p,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:_r.makeLabelFns(r,b+vr*Ae[4])})}),er.push(function(){return r._depth=Ae[4]*(T("tick2")[r.side]-b),Nte(e,r,{vals:I,layer:p,path:_r.makeTickPath(r,b,Ae[4],{len:r._depth}),transFn:A})})}else r.title.hasOwnProperty("standoff")&&er.push(function(){r._depth=Ae[4]*(T()[r.side]-b)});var sr=Oh.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(sr&&r.side==="bottom")&&er.push(function(){return Bte(e,r)}),er.push(function(){var Pe=r.side.charAt(0),vr=ste[r.side].charAt(0),hr=_r.getPxPosition(e,r),dr=X?r.ticklen:0,Ze,fr,Dr,Te;(r.automargin||sr||r._shiftPusher)&&(r.type==="multicategory"?Ze=T("tick2"):(Ze=T(),f==="x"&&Pe==="b"&&(r._depth=Math.max(Ze.width>0?Ze.bottom-hr:0,dr))));var Oe=0,Mr=0;if(r._shiftPusher&&(Oe=Math.max(dr,Ze.height>0?Pe==="l"?hr-Ze.left:Ze.right-hr:0),r.title.text!==u._dfltTitle[f]&&(Mr=(r._titleStandoff||0)+(r._titleScoot||0),Pe==="l"&&(Mr+=bE(r))),r._fullDepth=Math.max(Oe,Mr)),r.automargin){fr={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Qe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Pe==="b"?fr[Pe]=r._depth:(fr[Pe]=r._depth=Math.max(Ze.width>0?hr-Ze.top:0,dr),Nr.reverse()),Ze.width>0){var Ie=Ze.right-(r._offset+r._length);Ie>0&&(fr.xr=1,fr.r=Ie);var Xe=r._offset-Ze.left;Xe>0&&(fr.xl=0,fr.l=Xe)}}else if(Pe==="l"?(r._depth=Math.max(Ze.height>0?hr-Ze.left:0,dr),fr[Pe]=r._depth-Qe):(r._depth=Math.max(Ze.height>0?Ze.right-hr:0,dr),fr[Pe]=r._depth+Qe,Nr.reverse()),Ze.height>0){var yr=Ze.bottom-(r._offset+r._length);yr>0&&(fr.yb=0,fr.b=yr);var kr=r._offset-Ze.top;kr>0&&(fr.yt=1,fr.t=kr)}fr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Nr[0]],r.title.text!==u._dfltTitle[f]&&(fr[Pe]+=bE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Dr={x:0,y:0,r:0,l:0,t:0,b:0},Dr[vr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Dr[vr]+=dr),r.mirror===!0||r.mirror==="ticks"?Dr[c]=r._anchorAxis.domain[Nr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Dr[c]=[r._counterDomainMin,r._counterDomainMax][Nr[1]]))}sr&&(Te=Oh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(yE(fr,r.automargin),yE(Dr,r.automargin)),j1.autoMargin(e,H6(r),fr),j1.autoMargin(e,EE(r),Dr),j1.autoMargin(e,LE(r),Te)}),ht.syncOrAsync(er)}};function yE(e,r){if(e){var t=Object.keys(cE).reduce(function(a,n){return r.indexOf(n)!==-1&&cE[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Fte(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ht.extendFlat({},i,{x:l}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function qte(e,r){for(var t=[],a={},n=0;n<r.length;n++){var i=r[n];a[i.text2]?a[i.text2].push(i.x):a[i.text2]=[i.x]}for(var o in a)t.push(kE(e,ht.interp(a[o],.5),o));return t}function Pte(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(u,s){var f=u.xbnd[s];f!==null&&t.push(ht.extendFlat({},u,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var l=r[a];l.text2!==n&&o(l,i?1:0),n=l.text2}o(r[a-1],i?0:1)}return t}function Rte(e,r,t){var a,n,i,o;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,o=-1/0,e._selections[r].each(function(){var u=R6(this);if(u.node().style.display!=="none"){var s=mo.bBox(u.node().parentNode);a=Math.min(a,s.top),n=Math.max(n,s.bottom),i=Math.min(i,s.left),o=Math.max(o,s.right)}});else{var l=_r.makeLabelFns(e,t);a=n=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:o,height:n-a,width:o-i}}_r.getTickSigns=function(e,r){var t=e._id.charAt(0),a={x:"top",y:"right"}[t],n=e.side===a?1:-1,i=[-1,1,n,-n],o=r?(e.minor||{}).ticks:e.ticks;return o!=="inside"==(t==="x")&&(i=i.map(function(l){return-l})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};_r.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return Z1(e._offset+e.l2p(r.x),0)}:function(r){return Z1(0,e._offset+e.l2p(r.x))}};_r.makeTransTickLabelFn=function(e){var r=zte(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],o=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=o?-1:1;t=t*s}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Z1(n+e._offset+e.l2p(P6(h))+t,i+a)}:function(h){return Z1(i+a,n+e._offset+e.l2p(P6(h))+t)}};function P6(e){return e.periodX!==void 0?e.periodX:e.x}function zte(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),u=a("inside"),s=t!=="boundaries"&&(l||i||n||o);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,h=h2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*tc,h+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,h+=h2),u&&f==="top"&&(h-=d*(1-tc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[s?c:0,u?h:0]}_r.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),u=i("right"),s=i("bottom"),f=n!=="boundaries"&&(s||l||o||u),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(c?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ht.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,M,T=0,A=e.side,D=e._id.charAt(0),P=e.tickangle,z;if(D==="x")z=!c&&A==="bottom"||c&&A==="top",M=z?1:-1,c&&(M*=-1),C=m*M,x=r+d*M,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Hh:P===-90&&A==="bottom"?_=tc:P===90&&A==="top"?_=Hh:_=.5,T=Hh/2*(P/90)),b.xFn=function(H){return H.dx+C+T*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*_},b.anchorFn=function(H,V){if(f){if(l)return"end";if(u)return"start"}return!un(V)||V===0||V===180?"middle":V*M<0!==c?"end":"start"},b.heightFn=function(H,V,I){return V<-60||V>60?-.5*I:e.side==="top"!==c?-I:0};else if(D==="y"){if(z=!c&&A==="left"||c&&A==="right",M=z?1:-1,c&&(M*=-1),C=d,x=m*M,_=0,!c&&Math.abs(P)===90&&(P===-90&&A==="left"||P===90&&A==="right"?_=tc:_=.5),c){var B=un(P)?+P:0;if(B!==0){var X=ht.deg2rad(B);T=Math.abs(Math.sin(X))*tc*M,_=0}}b.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*M+T*H.fontSize},b.yFn=function(H){return H.dy+x+H.fontSize*Hh},b.anchorFn=function(H,V){return un(V)&&Math.abs(V)===90?"middle":z?"end":"start"},b.heightFn=function(H,V,I){return e.side==="right"&&(V*=-1),V<-30?-I:V<30?-.5*I:0}}return b};function m2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,m2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Uh.stroke(Go.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return mo.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),g2(r,[_E]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s<o.length;s++){var f=o[s].x;if(u?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,s).concat(o.slice(s+1)),u)s--;else break}r._gw=mo.crispRound(e,r.gridwidth,1);for(var c=n?mo.crispRound(e,r.minor.gridwidth,1):0,h=t.layer,d=t.minorLayer,m=1;m>=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+a).data(m?o:i,m2);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Uh.stroke(Go.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return mo.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}g2(r,[F6,q6])}};_r.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return cte(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uh.stroke,r.zerolinecolor||Uh.defaultLine).style("stroke-width",mo.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),g2(r,[D6])};_r.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(ee){return ee.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],m2),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ee){var fe=Go.select(this),ve=e._promises.length;fe.call(ec.positionText,u.xFn(ee),u.yFn(ee)).call(mo.font,{family:ee.font,size:ee.fontSize,color:ee.fontColor,weight:ee.fontWeight,style:ee.fontStyle,variant:ee.fontVariant,textcase:ee.fontTextcase,lineposition:ee.fontLineposition,shadow:ee.fontShadow}).text(ee.text).call(ec.convertToTspans,e),e._promises[ve]?h.push(e._promises.pop().then(function(){d(fe,s)})):d(fe,s)}),g2(r,[fE]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(ee){Go.select(this).select("text").call(ec.positionText,u.xFn(ee),u.yFn(ee))});function d(ee,fe){ee.each(function(ve){var Ae=Go.select(this),Ee=Ae.select(".text-math-group"),Be=u.anchorFn(ve,fe),Ue=t.transFn.call(Ae.node(),ve)+(un(fe)&&+fe!=0?" rotate("+fe+","+u.xFn(ve)+","+(u.yFn(ve)-ve.fontSize/2)+")":""),ke=ec.lineCount(Ae),We=Yh*ve.fontSize,j=u.heightFn(ve,un(fe)?+fe:0,(ke-1)*We);if(j&&(Ue+=Z1(0,j)),Ee.empty()){var re=Ae.select("text");re.attr({transform:Ue,"text-anchor":Be}),re.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=mo.bBox(Ee.node()).width,K=me*{end:-.5,start:.5}[Be];Ee.attr("transform",Ue+Z1(K,0))}})}r._adjustTickLabelsOverflow=function(){var ee=r.ticklabeloverflow;if(!(!ee||ee==="allow")){var fe=ee.indexOf("hide")!==-1,ve=r._id.charAt(0)==="x",Ae=0,Ee=ve?e._fullLayout.width:e._fullLayout.height;if(ee.indexOf("domain")!==-1){var Be=ht.simpleMap(r.range,r.r2l);Ae=r.l2p(Be[0])+r._offset,Ee=r.l2p(Be[1])+r._offset}var Ue=Math.min(Ae,Ee),ke=Math.max(Ae,Ee),We=r.side,j=1/0,re=-1/0;c.each(function(le){var we=Go.select(this),Ne=we.select(".text-math-group");if(Ne.empty()){var $e=mo.bBox(we.node()),er=0;ve?($e.right>ke||$e.left<Ue)&&(er=1):($e.bottom>ke||$e.top+(r.tickangle?0:le.fontSize/4)<Ue)&&(er=1);var ir=we.select("text");er?fe&&ir.style("display","none"):ir.node().style.display!=="none"&&(ir.style("display",null),We==="bottom"||We==="right"?j=Math.min(j,ve?$e.top:$e.left):j=-1/0,We==="top"||We==="left"?re=Math.max(re,ve?$e.bottom:$e.right):re=1/0)}});for(var me in a._plots){var K=a._plots[me];if(!(r._id!==K.xaxis._id&&r._id!==K.yaxis._id)){var $=ve?K.yaxis:K.xaxis;$&&($["_visibleLabelMin_"+r._id]=j,$["_visibleLabelMax_"+r._id]=re)}}}},r._hideCounterAxisInsideTickLabels=function(ee){var fe=r._id.charAt(0)==="x",ve=[];for(var Ae in a._plots){var Ee=a._plots[Ae];r._id!==Ee.xaxis._id&&r._id!==Ee.yaxis._id||ve.push(fe?Ee.yaxis:Ee.xaxis)}ve.forEach(function(Be,Ue){Be&&Xh(Be)&&(ee||[D6,q6,F6,_E,fE]).forEach(function(ke){var We=ke.K==="tick"&&ke.L==="text"&&r.ticklabelmode==="period",j=a._plots[r._mainSubplot],re;if(ke.K===D6.K){var me=i?j.zerolinelayerAbove:j.zerolinelayer;re=me.selectAll("."+r._id+"zl")}else ke.K===q6.K?re=j.minorGridlayer.selectAll("."+r._id):ke.K===F6.K?re=j.gridlayer.selectAll("."+r._id):re=j[r._id.charAt(0)+"axislayer"];re.each(function(){var K=Go.select(this);ke.L&&(K=K.selectAll(ke.L)),K.each(function($){var le=r.l2p(We?P6($):$.x)+r._offset,we=Go.select(this);le<r["_visibleLabelMax_"+Be._id]&&le>r["_visibleLabelMin_"+Be._id]?we.style("display","none"):ke.K==="tick"&&!Ue&&we.node().style.display!=="none"&&we.style("display",null)})})})})},d(c,f+1?f:s);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var ee=0,fe=[],ve,Ae=1;c.each(function(fr){ee=Math.max(ee,fr.fontSize);var Dr=r.l2p(fr.x),Te=R6(this),Oe=mo.bBox(Te.node());Ae=Math.max(Ae,ec.lineCount(Te)),fe.push({top:0,bottom:10,height:10,left:Dr-Oe.width/2,right:Dr+Oe.width/2+2,width:Oe.width+2})});var Ee=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Be=l.length,Ue=Math.abs((l[Be-1].x-l[0].x)*r._m)/(Be-1),ke=Ee?Ue/2:Ue,We=Ee?r.ticklen:ee*1.25*Ae,j=Math.sqrt(Math.pow(ke,2)+Math.pow(We,2)),re=ke/j,me=r.autotickangles.map(function(fr){return fr*Math.PI/180}),K=me.find(function(fr){return Math.abs(Math.cos(fr))<=re});K===void 0&&(K=me.reduce(function(fr,Dr){return Math.abs(Math.cos(fr))<Math.abs(Math.cos(Dr))?fr:Dr},me[0]));var $=K*(180/Math.PI);if(Ee){var le=2;for(r.ticks&&(le+=r.tickwidth/2),ve=0;ve<fe.length;ve++){var we=l[ve].xbnd,Ne=fe[ve];if(we[0]!==null&&Ne.left-r.l2p(we[0])<le||we[1]!==null&&r.l2p(we[1])-Ne.right<le){p=$;break}}}else{var $e=r.ticklabelposition||"",er=r.tickson||"",ir=function(fr){return $e.indexOf(fr)!==-1},sr=ir("top"),Pe=ir("left"),vr=ir("right"),hr=ir("bottom"),dr=er!=="boundaries"&&(hr||Pe||sr||vr),Ze=dr?(r.tickwidth||0)+2*h2:0;for(ve=0;ve<fe.length-1;ve++)if(ht.bBoxIntersect(fe[ve],fe[ve+1],Ze)){p=$;break}}p&&d(c,p)}}r._selections&&(r._selections[o]=c);var b=[m];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(p=f,b.push(function(){d(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=p===null?un(s)?s:0:p});var C=function(){var ee=0,fe=0;return c.each(function(ve,Ae){var Ee=R6(this),Be=Ee.select(".text-math-group");if(Be.empty()){var Ue;r._vals[Ae]&&(Ue=r._vals[Ae].bb||mo.bBox(Ee.node()),r._vals[Ae].bb=Ue),ee=Math.max(ee,Ue.width),fe=Math.max(fe,Ue.height)}}),{labelsMaxW:ee,labelsMaxH:fe}},x=r._anchorAxis;if(x&&(x.autorange||x.insiderange)&&Xh(r)&&!vte(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),x.autorange&&(a._insideTickLabelsUpdaterange[x._name+".autorange"]=x.autorange,b.push(C)),x.insiderange)){var _=C(),M=r._id.charAt(0)==="y"?_.labelsMaxW:_.labelsMaxH;M+=2*h2,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var T=r.side==="right"||r.side==="top"?1:-1,A=T===1?1:0,D=T===1?0:1,P=[];P[D]=x.range[D];var z=x.range,B=x.r2p(z[A]),X=x.r2p(z[D]),H=a._insideTickLabelsUpdaterange[x._name+".range"];if(H){var V=x.r2p(H[A]),I=x.r2p(H[D]),Q=T*(r._id.charAt(0)==="y"?1:-1);Q*B<Q*V&&(B=V,P[A]=z[A]=H[A]),Q*X>Q*I&&(X=I,P[D]=z[D]=H[D])}var ne=Math.abs(X-B);ne-M>0?(ne-=M,M*=1+M/ne):M=0,r._id.charAt(0)!=="y"&&(M=-M),P[A]=x.p2r(x.r2p(z[A])+T*M),x.autorange==="min"||x.autorange==="max reversed"?(P[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(P[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[x._name+".range"]=P}var te=ht.syncOrAsync(b);return te&&te.then&&e._promises.push(te),te};function Nte(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,m2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uh.stroke,r.dividercolor).style("stroke-width",mo.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function bE(e){var r=e.title.font.size,t=(e.title.text.match(ec.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(tc+t*Yh):t?r*(t+1)*Yh:r}function Bte(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(ec.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*tc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Hh+l*Yh));else{var u=Xh(r);if(r.type==="multicategory")o=r._depth;else{var s=1.5*i;u&&(s=.5*i,r.ticks==="outside"&&(s+=r.ticklen)),o=10+s+(r.linewidth?r.linewidth-1:0)}u||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=mo.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,tte.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var a=ht.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===d2)&&(SE(r,0)||!Ite(e,r,t,a)||Hte(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return SE(e,t.x)})};function SE(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Ite(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=_r.counterLetter(r._id),u=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function s(m){if(!m.showline||!m.linewidth)return!1;var p=Math.max((m.linewidth+r.zerolinewidth)/2,1);function y(x){return typeof x=="number"&&Math.abs(x-u)<p}if(y(m._mainLinePosition)||y(m._mainMirrorPosition))return!0;var b=m._linepositions||{};for(var C in b)if(y(b[C][0])||y(b[C][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return s(t,u);for(var c=_r.list(e,l),h=0;h<c.length;h++){var d=c[h];if(d._mainAxis===n&&s(d,u))return!0}}function Hte(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var o=t[i];if(o.visible===!0&&o.xaxis+o.yaxis===a&&(Oh.traceIs(o,"bar-like")&&o.orientation==={x:"h",y:"v"}[n]||o.fill&&o.fill.charAt(o.fill.length-1)===n))return!0}return!1}function R6(e){var r=Go.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}_r.allowAutoMargin=function(e){for(var r=_r.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(j1.allowAutoMargin(e,H6(a)),a.mirror&&j1.allowAutoMargin(e,EE(a))),Oh.getComponentMethod("rangeslider","isVisible")(a)&&j1.allowAutoMargin(e,LE(a))}};function H6(e){return e._id+".automargin"}function EE(e){return H6(e)+".mirror"}function LE(e){return e._id+".rangeslider"}_r.swap=function(e,r){for(var t=Ote(e,r),a=0;a<t.length;a++)Ute(e,t[a].x,t[a].y)};function Ote(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],o=e._fullData[r[a]].xaxis,l=e._fullData[r[a]].yaxis;if(!(!o||!l)){for(n=0;n<t.length;n++)(t[n].x.indexOf(o)!==-1||t[n].y.indexOf(l)!==-1)&&i.push(n);if(!i.length){t.push({x:[o],y:[l]});continue}var u=t[i[0]],s;if(i.length>1)for(n=1;n<i.length;n++)s=t[i[n]],l2(u.x,s.x),l2(u.y,s.y);l2(u.x,[o]),l2(u.y,[l])}}return t}function l2(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Ute(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(_r.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(_r.getFromId(e,t[o]));var u=Object.keys(ate),s=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<u.length;o++){var c=u[o],h=a[0][c],d=n[0][c],m=!0,p=!1,y=!1;if(!(c.charAt(0)==="_"||typeof h=="function"||s.indexOf(c)!==-1)){for(l=1;l<a.length&&m;l++){var b=a[l][c];c==="type"&&f.indexOf(h)!==-1&&f.indexOf(b)!==-1&&h!==b?p=!0:b!==h&&(m=!1)}for(l=1;l<n.length&&m;l++){var C=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(C)!==-1&&d!==C?y=!0:n[l][c]!==d&&(m=!1)}m&&(p&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),Gte(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var x=e._fullLayout.annotations[o];r.indexOf(x.xref)!==-1&&t.indexOf(x.yref)!==-1&&ht.swapAttrs(i.annotations[o],["?"])}}function Gte(e,r,t,a,n){var i=ht.nestedProperty,o=i(e[t[0]._name],r).get(),l=i(e[a[0]._name],r).get(),u;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),u=0;u<t.length;u++)i(e,t[u]._name+"."+r).set(l);for(u=0;u<a.length;u++)i(e,a[u]._name+"."+r).set(o)}function O6(e){return e._id==="angularaxis"}function E6(e,r){for(var t=r._rangebreaks.length,a=0;a<t;a++){var n=r._rangebreaks[a];if(e>=n.min&&e<n.max)return n.max}return e}function Xh(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function g2(e,r){Xh(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function z6(e,r,t,a){var n=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,i;a?i=e.side==="right"?r:-r:i=r,n in t||(t[n]={}),e.side in t[n]||(t[n][e.side]=0),t[n][e.side]+=i}function Yte(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Vte(e,r){return/%f/.test(r)?e>=ute:/%L/.test(r)?e>=lte:/%[SX]/.test(r)?e>=v2:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=Lu:/%p/.test(r)?e>=Lf:/%[Aadejuwx]/.test(r)?e>=mi:/%[UVW]/.test(r)?e>=go:/%[Bbm]/.test(r)?e>=c2:/%[q]/.test(r)?e>=f2:/%[Yy]/.test(r)?e>=s2:!0}});var qE=ae((F3e,FE)=>{"use strict";FE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),u=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var U6=ae((q3e,PE)=>{"use strict";var Xte=qE();PE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var u;!n.noInsiderange&&o!=="log"&&(u=a("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=a("range",u)))}var s=t.getAutorangeDflt(l,n),f=a("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,n),f=a("autorange",s)),f&&(Xte(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var zE=ae((P3e,RE)=>{var Wte={left:0,top:0};RE.exports=jte;function jte(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Zte(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Zte(e){return e===window||e===document||e===document.body?Wte:e.getBoundingClientRect()}});var G6=ae((R3e,NE)=>{"use strict";var Jte=y5();function $te(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}NE.exports=Jte&&$te()});var IE=ae((z3e,BE)=>{"use strict";BE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),u=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?u:i==="right"||i==="top"?l:o<2/3-u?o:l>4/3-u?l:u}});var UE=ae((N3e,OE)=>{"use strict";var HE=mr(),Kte=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];OE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=HE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=HE.constrain(Math.floor(t*3),0,2),Kte[t][r]}});var YE=ae((B3e,GE)=>{"use strict";var Qte=Sh(),eae=ym(),rae=_h().getGraphDiv,tae=th(),Y6=GE.exports={};Y6.wrapped=function(e,r,t){var i;e=rae(e),e._fullLayout&&eae.clear(e._fullLayout._uid+tae.HOVERID);let a=e._hoverdata;Y6.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};Y6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Qte.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Yo=ae((I3e,jE)=>{"use strict";var aae=zE(),V6=_5(),nae=G6(),iae=mr().removeElement,oae=Dn(),ac=jE.exports={};ac.align=IE();ac.getCursor=UE();var XE=YE();ac.unhover=XE.wrapped;ac.unhoverRaw=XE.raw;ac.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,u,s,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,nae?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,M){return Math.abs(x)<M&&(x=0),Math.abs(_)<M&&(_=0),[x,_]}var p=r.clampFn||m;function y(x){t._dragged=!1,t._dragging=!0;var _=VE(x);o=_[0],l=_[1],h=x.target,c=x,d=x.buttons===2||x.ctrlKey,typeof x.clientX=="undefined"&&typeof x.clientY=="undefined"&&(x.clientX=o,x.clientY=l),u=new Date().getTime(),u-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=u),r.prepFn&&r.prepFn(x,o,l),V6&&!d?(f=WE(),f.style.cursor=window.getComputedStyle(i).cursor):V6||(f=document,s=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",C),document.addEventListener("touchend",C),r.dragmode!==!1&&(x.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(x){x.preventDefault();var _=VE(x),M=r.minDrag||oae.MINDRAG,T=p(_[0]-o,_[1]-l,M),A=T[0],D=T[1];(A||D)&&(t._dragged=!0,ac.unhover(t,x)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:A,dy:D},r.moveFn(A,D))}function C(x){if(delete t._dragdata,r.dragmode!==!1&&(x.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",C),document.removeEventListener("touchend",C),V6?iae(f):s&&(f.documentElement.style.cursor=s,s=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;c.target===h?_=c:(_={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var T=c[M];!_[M]&&typeof T!="function"&&(_[M]=T)})),r.clickFn&&r.clickFn(a,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function WE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ac.coverSlip=WE;function VE(e){return aae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Df=ae((H3e,ZE)=>{"use strict";ZE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var KE=ae((O3e,$E)=>{"use strict";var X6=Df(),Wh="data-savedcursor",JE="!!";$E.exports=function(r,t){var a=r.attr(Wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var o=n[i];o.indexOf("cursor-")===0&&r.attr(Wh,o.slice(7)).classed(o,!1)}r.attr(Wh)||r.attr(Wh,JE)}X6(r,t)}else a&&(r.attr(Wh,null),a===JE?X6(r):X6(r,a))}});var j6=ae((U3e,QE)=>{"use strict";var W6=vi(),lae=Fl();QE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:lae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:W6({editType:"legend"}),grouptitlefont:W6({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:W6({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zh=ae(jh=>{"use strict";jh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};jh.isVertical=function(r){return r.orientation!=="h"};jh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};jh.getId=function(r){return r._id||"legend"}});var J6=ae((Y3e,eL)=>{"use strict";var y2=bt(),yo=mr(),uae=Ta(),sae=Bo(),fae=j6(),cae=C1(),Z6=Zh();function vae(e,r,t,a,n){var i=r[e]||{},o=uae.newContainer(t,e);function l(ee,fe){return yo.coerce(i,o,fae,ee,fe)}var u=yo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(ee,fe){var ve=f._input,Ae=f;return yo.coerce(ve,Ae,sae,ee,fe)},h=t.font||{},d=yo.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",b=(t.shapes||[]).filter(function(ee){return ee.showlegend});function C(ee){return y2.traceIs(ee,"pie-like")&&ee._length!=null&&(Array.isArray(ee.legend)||Array.isArray(ee.showlegend))}a.filter(C).forEach(function(ee){ee.visible&&m++;for(var fe=0;fe<ee._length;fe++){var ve=(Array.isArray(ee.legend)?ee.legend[fe]:ee.legend)||"legend";ve===e&&((Array.isArray(ee.showlegend)?ee.showlegend[fe]:ee.showlegend)||ee._dfltShowLegend)&&(p=!0,m++)}if(e==="legend"&&ee._length>ee.legend.length)for(var Ae=ee.legend.length;Ae<ee._length;Ae++)p=!0,m++});for(var x=a.concat(b).filter(function(ee){return!C(f)&&e===(ee.legend||"legend")}),_=0;_<x.length;_++)if(f=x[_],!!f.visible){var M=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(m++,f.showlegend&&(p=!0,(!M&&y2.traceIs(f,"pie-like")||f._input.showlegend===!0)&&m++),yo.coerceFont(c,"legendgrouptitle.font",d)),(!M&&y2.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=Z6.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=Z6.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var T=yo.coerce(r,t,cae,"showlegend",t.showlegend||p&&m>(e==="legend"?1:0));if(T===!1&&(t[e]=void 0),!(T===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),T!==!1)){l("borderwidth");var A=l("orientation"),D=l("yref"),P=l("xref"),z=A==="h",B=D==="paper",X=P==="paper",H,V,I,Q="left";z?(H=0,y2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?B?(V=1.1,I="bottom"):(V=1,I="top"):B?(V=-.1,I="top"):(V=0,I="bottom")):(V=1,I="auto",X?H=1.02:(H=1,Q="right")),yo.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:H}},"x"),yo.coerce(i,o,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:V}},"y"),l("traceorder",y),Z6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",Q),l("yanchor",I),l("maxheight"),l("valign"),yo.noneOrAll(i,o,["x","y"]);var ne=l("title.text");if(ne){l("title.side",z?"left":"top");var te=yo.extendFlat({},u,{size:yo.bigFont(u.size)});yo.coerceFont(l,"title.font",te);let ee=n>1;l("titleclick",ee?"toggle":!1),l("titledoubleclick",ee?"toggleothers":!1)}}}eL.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var u={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(u)}}var s=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?s=s.concat(i[n].legend):yo.pushUnique(s,i[n].legend);for(t._legends=[],n=0;n<s.length;n++){var f=s[n];vae(f,r,t,i,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Q6=ae(K6=>{"use strict";var Ff=bt(),$6=mr(),hae=$6.pushUnique,dae=Zh(),rL=!0;K6.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&rL&&t.data&&t._context.showTips&&($6.notifier($6._(t,"Double-click on legend to isolate one trace"),"long",t),rL=!1);var u=l==="togglegroup",s=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(er=>er.showlegend||er.legendgroup);var h=f.concat(c),d=o.trace;d._isShape&&(d=i.shapes[d.index]);var m=d.legendgroup,p,y,b,C,x,_,M={},T=[],A=[],D=[];function P(er,ir){var sr=T.indexOf(er),Pe=M.visible;return Pe||(Pe=M.visible=[]),T.indexOf(er)===-1&&(T.push(er),sr=T.length-1),Pe[sr]=ir,sr}var z=(i.shapes||[]).map(function(er){return er._input}),B=!1;function X(er,ir){z[er].visible=ir,B=!0}function H(er,ir){if(!(o.groupTitle&&!u)){var sr=er._isShape,Pe=er.index;Pe===void 0&&(Pe=er._index);var vr=er.visible===!1?!1:ir;sr?X(Pe,vr):P(Pe,vr)}}var V=d.legend;if(!d._isShape&&Ff.traceIs(d,"pie-like")){var I=o.label,Q=s.indexOf(I);if(n==="toggle")Q===-1?s.push(I):s.splice(Q,1);else if(n==="toggleothers"){var ne=Q!==-1,te=[];for(p=0;p<t.calcdata.length;p++){var ee=t.calcdata[p];for(y=0;y<ee.length;y++){var fe=ee[y],ve=fe.label;V===ee[0].trace.legend&&I!==ve&&(s.indexOf(ve)===-1&&(ne=!0),hae(s,ve),te.push(ve))}}if(!ne)for(var Ae=0;Ae<te.length;Ae++){var Ee=s.indexOf(te[Ae]);Ee!==-1&&s.splice(Ee,1)}}Ff.call("_guiRelayout",t,"hiddenlabels",s)}else{var Be=m&&m.length,Ue=[],ke;if(Be)for(p=0;p<h.length;p++)ke=h[p],ke.visible&&ke.legendgroup===m&&Ue.push(p);if(n==="toggle"){var We;switch(d.visible){case!0:We="legendonly";break;case!1:We=!1;break;case"legendonly":We=!0;break}if(Be)if(u)for(p=0;p<h.length;p++){var j=h[p];j.visible!==!1&&j.legendgroup===m&&H(j,We)}else H(d,We);else H(d,We)}else if(n==="toggleothers"){var re,me,K,$,le,we=!0;for(p=0;p<h.length;p++)if(le=h[p],re=le===d,K=le.showlegend!==!0,!(re||K)&&(me=Be&&le.legendgroup===m,!me&&le.legend===V&&le.visible===!0&&!Ff.traceIs(le,"notLegendIsolatable"))){we=!1;break}for(p=0;p<h.length;p++)if(le=h[p],!(le.visible===!1||le.legend!==V)&&!Ff.traceIs(le,"notLegendIsolatable"))switch(d.visible){case"legendonly":H(le,!0);break;case!0:$=we?!0:"legendonly",re=le===d,K=le.showlegend!==!0&&!le.legendgroup,me=re||Be&&le.legendgroup===m,H(le,me||K?!0:$);break}}for(p=0;p<A.length;p++)if(b=A[p],!!b){var Ne=b.constructUpdate(),$e=Object.keys(Ne);for(y=0;y<$e.length;y++)C=$e[y],_=M[C]=M[C]||[],_[D[p]]=Ne[C]}for(x=Object.keys(M),p=0;p<x.length;p++)for(C=x[p],y=0;y<T.length;y++)M[C].hasOwnProperty(y)||(M[C][y]=void 0);B?Ff.call("_guiUpdate",t,M,{shapes:z},T):Ff.call("_guiRestyle",t,M,T)}};K6.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=dae.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),u=i.concat(l);function s(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!u.some(function(C){return s(C)&&C.visible===!0}),c=!1;else{let b=u.some(function(C){return!s(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!b}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(b){return b._input});for(var p=!1,y=0;y<u.length;y++){let b=u[y],C=s(b);if(!C){let M=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||M)continue}let _=(C?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==_&&(b._isShape?(m[b._index].visible=_,p=!0):(d.push(b.index),h.visible.push(_)))}p?Ff.call("_guiUpdate",r,h,{shapes:m},d):d.length&&Ff.call("_guiRestyle",r,h,d)}});var eb=ae((X3e,tL)=>{"use strict";tL.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var iL=ae((W3e,nL)=>{"use strict";var{isArrayOrTypedArray:rb}=Vi(),aL=bt(),tb=Zh();nL.exports=function(r,t,a){var n=t._inHover,i=tb.isGrouped(t),o=tb.isReversed(t),l={},u=[],s=!1,f={},c=0,h=0,d,m;function p(fe,ve,Ae){if(t.visible!==!1&&!(a&&fe!==t._id))if(ve===""||!tb.isGrouped(t)){var Ee="~~i"+c;u.push(Ee),l[Ee]=[Ae],c++}else u.indexOf(ve)===-1?(u.push(ve),s=!0,l[ve]=[Ae]):l[ve].push(Ae)}for(d=0;d<r.length;d++){var y=r[d],b=y[0],C=b.trace,x=C.legend,_=C.legendgroup;if(!(!n&&(!C.visible||!C.showlegend)))if(aL.traceIs(C,"pie-like")){var M=Array.isArray(C.legend),T=Array.isArray(C.showlegend);for(f[_]||(f[_]={}),m=0;m<y.length;m++)if(!(T&&C.showlegend[y[m].i]===!1)){M&&(x=C.legend[y[m].i]||"legend");var A=y[m].label;f[_][A]||(p(x,_,{label:A,color:y[m].color,i:y[m].i,trace:C,pts:y[m].pts}),f[_][A]=!0,h=Math.max(h,(A||"").length))}}else p(x,_,b),h=Math.max(h,(C.name||"").length)}if(!u.length)return[];var D=!s||!i,P=[];for(d=0;d<u.length;d++){var z=l[u[d]];D?P.push(z[0]):P.push(z)}for(D&&(P=[P]),d=0;d<P.length;d++){var B=1/0;for(m=0;m<P[d].length;m++){var X=P[d][m].trace.legendrank,H=rb(X)?Math.min(X):X;B>H&&(B=H)}P[d][0]._groupMinRank=B,P[d][0]._preGroupSort=d}var V=function(fe,ve){return fe[0]._groupMinRank-ve[0]._groupMinRank||fe[0]._preGroupSort-ve[0]._preGroupSort},I=function(fe,ve){var Ae=rb(fe.trace.legendrank)?fe.trace.legendrank[fe.i]:fe.trace.legendrank,Ee=rb(ve.trace.legendrank)?ve.trace.legendrank[ve.i]:ve.trace.legendrank;return Ae-Ee||fe._preSort-ve._preSort};for(P.forEach(function(fe,ve){fe[0]._preGroupSort=ve}),P.sort(V),d=0;d<P.length;d++){P[d].forEach(function(fe,ve){fe._preSort=ve}),P[d].sort(I);var Q=P[d][0].trace,ne=null;for(m=0;m<P[d].length;m++){var te=P[d][m].trace.legendgrouptitle;if(te&&te.text){ne=te,n&&(te.font=t._groupTitleFont);break}}if(o&&P[d].reverse(),ne){var ee=!1;for(m=0;m<P[d].length;m++)if(aL.traceIs(P[d][m].trace,"pie-like")){ee=!0;break}P[d].unshift({i:-1,groupTitle:ne,noClick:ee,trace:{showlegend:Q.showlegend,legendgroup:Q.legendgroup,legend:Q.legend,visible:t.groupclick==="toggleitem"?!0:Q.visible}})}for(m=0;m<P[d].length;m++)P[d][m]=[P[d][m]]}return t._lgroupsLength=P.length,t._maxNameLength=h,P}});var ab=ae(nc=>{"use strict";var b2=mr();function oL(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}nc.formatPiePercent=function(r,t){var a=oL((r*100).toPrecision(3));return b2.numSeparate(a,t)+"%"};nc.formatPieValue=function(r,t){var a=oL(r.toPrecision(10));return b2.numSeparate(a,t)};nc.getFirstFilled=function(r,t){if(b2.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};nc.castOption=function(r,t){if(b2.isArrayOrTypedArray(r))return nc.getFirstFilled(r,t);if(r)return r};nc.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var uL=ae((Z3e,lL)=>{"use strict";var pae=va(),mae=Ft();lL.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?pae.pointStyle(r,a,n,t):mae.fill(r,t.color)}});var vL=ae((J3e,cL)=>{"use strict";var sL=Ft(),fL=ab().castOption,gae=uL();cL.exports=function(r,t,a,n){var i=a.marker.line,o=fL(i.color,t.pts)||sL.defaultLine,l=fL(i.width,t.pts)||0;r.call(gae,t,a,n).style("stroke-width",l).call(sL.stroke,o)}});var lb=ae(($3e,yL)=>{"use strict";var gi=Et(),nb=bt(),ni=mr(),hL=ni.strTranslate,bo=va(),Vo=Ft(),ib=Tu().extractOpts,_2=pi(),yae=vL(),bae=ab().castOption,_ae=eb(),dL=12,pL=5,ic=2,xae=10,K1=5;yL.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+_ae.itemGap*2)/2,u=hL(l,0),s=function(A,D,P,z){var B;if(A+1)B=A;else if(D&&D.width>0)B=D.width;else return 0;return i?z:Math.min(B,P)};r.each(function(A){var D=gi.select(this),P=ni.ensureSingle(D,"g","layers");P.style("opacity",A[0].trace.opacity);var z=a.indentation,B=a.valign,X=A[0].lineHeight,H=A[0].height;if(B==="middle"&&z===0||!X||!H)P.attr("transform",null);else{var V={top:1,bottom:-1}[B],I=V*(.5*(X-H+3))||0,Q=a.indentation;P.attr("transform",hL(Q,I))}var ne=P.selectAll("g.legendfill").data([A]);ne.enter().append("g").classed("legendfill",!0);var te=P.selectAll("g.legendlines").data([A]);te.enter().append("g").classed("legendlines",!0);var ee=P.selectAll("g.legendsymbols").data([A]);ee.enter().append("g").classed("legendsymbols",!0),ee.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(T).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(c).each(b).each(C);function f(A){var D=mL(A),P=D.showFill,z=D.showLine,B=D.showGradientLine,X=D.showGradientFill,H=D.anyFill,V=D.anyLine,I=A[0],Q=I.trace,ne,te,ee=ib(Q),fe=ee.colorscale,ve=ee.reversescale,Ae=function(re){if(re.size())if(P)bo.fillGroupStyle(re,t,!0);else{var me="legendfill-"+Q.uid;bo.gradient(re,t,me,ob(ve),fe,"fill")}},Ee=function(re){if(re.size()){var me="legendline-"+Q.uid;bo.lineGroupStyle(re),bo.gradient(re,t,me,ob(ve),fe,"stroke")}},Be=_2.hasMarkers(Q)||!H?"M5,0":V?"M5,-2":"M5,-3",Ue=gi.select(this),ke=Ue.select(".legendfill").selectAll("path").data(P||X?[A]:[]);if(ke.enter().append("path").classed("js-fill",!0),ke.exit().remove(),ke.attr("d",Be+"h"+o+"v6h-"+o+"z").call(Ae),z||B){var We=s(void 0,Q.line,xae,pL);te=ni.minExtend(Q,{line:{width:We}}),ne=[ni.minExtend(I,{trace:te})]}var j=Ue.select(".legendlines").selectAll("path").data(z||B?[ne]:[]);j.enter().append("path").classed("js-line",!0),j.exit().remove(),j.attr("d",Be+(B?"l"+o+",0.0001":"h"+o)).call(z?bo.lineGroupStyle:Ee)}function c(A){var D=mL(A),P=D.anyFill,z=D.anyLine,B=D.showLine,X=D.showMarker,H=A[0],V=H.trace,I=!X&&!z&&!P&&_2.hasText(V),Q,ne;function te(We,j,re,me){var K=ni.nestedProperty(V,We).get(),$=ni.isArrayOrTypedArray(K)&&j?j(K):K;if(i&&$&&me!==void 0&&($=me),re){if($<re[0])return re[0];if($>re[1])return re[1]}return $}function ee(We){return H._distinct&&H.index&&We[H.index]?We[H.index]:We[0]}if(X||I||B){var fe={},ve={};if(X){fe.mc=te("marker.color",ee);var Ae=V.type==="scattermap";fe.mx=Ae?"circle":te("marker.symbol",ee),fe.mo=te("marker.opacity",ni.mean,[.2,1]),fe.mlc=te("marker.line.color",ee),fe.mlw=te("marker.line.width",ni.mean,[0,5],ic),fe.mld=te("marker.line.dash",ee),ve.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ee=te("marker.size",ni.mean,[2,16],dL);fe.ms=Ee,ve.marker.size=Ee}B&&(ve.line={width:te("line.width",ee,[0,10],pL)}),I&&(fe.tx="Aa",fe.tp=te("textposition",ee),fe.ts=10,fe.tc=te("textfont.color",ee),fe.tf=te("textfont.family",ee),fe.tw=te("textfont.weight",ee),fe.ty=te("textfont.style",ee),fe.tv=te("textfont.variant",ee),fe.tC=te("textfont.textcase",ee),fe.tE=te("textfont.lineposition",ee),fe.tS=te("textfont.shadow",ee)),Q=[ni.minExtend(H,fe)],ne=ni.minExtend(V,ve),ne.selectedpoints=null,ne.texttemplate=null}var Be=gi.select(this).select("g.legendpoints"),Ue=Be.selectAll("path.scatterpts").data(X?Q:[]);Ue.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ue.exit().remove(),Ue.call(bo.pointStyle,ne,t),X&&(Q[0].mrc=3);var ke=Be.selectAll("g.pointtext").data(I?Q:[]);ke.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ke.exit().remove(),ke.selectAll("text").call(bo.textPointStyle,ne,t)}function h(A){var D=A[0].trace,P=D.type==="waterfall";if(A[0]._distinct&&P){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,p(A,this,"waterfall")}var B=[];D.visible&&P&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var X=gi.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(H){var V=gi.select(this),I=D[H[0]].marker,Q=s(void 0,I.line,K1,ic);V.attr("d",H[1]).style("stroke-width",Q+"px").call(Vo.fill,I.color),Q&&V.call(Vo.stroke,I.line.color)})}function d(A){p(A,this)}function m(A){p(A,this,"funnel")}function p(A,D,P){var z=A[0].trace,B=z.marker||{},X=B.line||{},H=B.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=P?z.visible&&z.type===P:nb.traceIs(z,"bar"),I=gi.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(V?[A]:[]);I.enter().append("path").classed("legend"+P,!0).attr("d",H).attr("transform",u),I.exit().remove(),I.each(function(Q){var ne=gi.select(this),te=Q[0],ee=s(te.mlw,B.line,K1,ic);ne.style("stroke-width",ee+"px");var fe=te.mcc;if(!a._inHover&&"mc"in te){var ve=ib(B),Ae=ve.mid;Ae===void 0&&(Ae=(ve.max+ve.min)/2),fe=bo.tryColorscale(B,"")(Ae)}var Ee=fe||te.mc||B.color,Be=B.pattern,Ue=bo.getPatternAttr,ke=Be&&(Ue(Be.shape,0,"")||Ue(Be.path,0,""));if(ke){var We=Ue(Be.bgcolor,0,null),j=Ue(Be.fgcolor,0,null),re=Be.fgopacity,me=gL(Be.size,8,10),K=gL(Be.solidity,.5,1),$="legend-"+z.uid;ne.call(bo.pattern,"legend",t,$,ke,me,K,fe,Be.fillmode,We,j,re)}else ne.call(Vo.fill,Ee);ee&&Vo.stroke(ne,te.mlc||X.color)})}function y(A){var D=A[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&nb.traceIs(D,"box-violin")?[A]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),P.exit().remove(),P.each(function(){var z=gi.select(this);if((D.boxpoints==="all"||D.points==="all")&&Vo.opacity(D.fillcolor)===0&&Vo.opacity((D.line||{}).color)===0){var B=ni.minExtend(D,{marker:{size:i?dL:ni.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(bo.pointStyle,B,t)}else{var X=s(void 0,D.line,K1,ic);z.style("stroke-width",X+"px").call(Vo.fill,D.fillcolor),X&&Vo.stroke(z,D.line.color)}})}function b(A){var D=A[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[A,A]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=gi.select(this),H=D[B?"increasing":"decreasing"],V=s(void 0,H.line,K1,ic);X.style("stroke-width",V+"px").call(Vo.fill,H.fillcolor),V&&Vo.stroke(X,H.line.color)})}function C(A){var D=A[0].trace,P=gi.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[A,A]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=gi.select(this),H=D[B?"increasing":"decreasing"],V=s(void 0,H.line,K1,ic);X.style("fill","none").call(bo.dashLine,H.line.dash,V),V&&Vo.stroke(X,H.line.color)})}function x(A){M(A,this,"pie")}function _(A){M(A,this,"funnelarea")}function M(A,D,P){var z=A[0],B=z.trace,X=P?B.visible&&B.type===P:nb.traceIs(B,P),H=gi.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(X?[A]:[]);if(H.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),H.exit().remove(),H.size()){var V=B.marker||{},I=s(bae(V.line.width,z.pts),V.line,K1,ic),Q="pieLike",ne=ni.minExtend(B,{marker:{line:{width:I}}},Q),te=ni.minExtend(z,{trace:ne},Q);yae(H,te,ne,t)}}function T(A){var D=A[0].trace,P,z=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":z=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],P=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],P=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],P=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var B=gi.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(X,H){var V=gi.select(this),I=ib(D),Q=I.colorscale,ne=I.reversescale,te=function(Ae){if(Ae.size()){var Ee="legendfill-"+D.uid;bo.gradient(Ae,t,Ee,ob(ne,P==="radial"),Q,"fill")}},ee;if(Q){if(!P){var ve=Q.length;ee=H===0?Q[ne?ve-1:0][1]:H===1?Q[ne?0:ve-1][1]:Q[Math.floor((ve-1)/2)][1]}}else{var fe=D.vertexcolor||D.facecolor||D.color;ee=ni.isArrayOrTypedArray(fe)?fe[H]||fe[0]:fe}V.attr("d",X[0]),ee?V.call(Vo.fill,ee):V.call(te)})}};function ob(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function mL(e){var r=e[0].trace,t=r.contours,a=_2.hasLines(r)||r.visible&&r.type==="quiver",n=_2.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var u=t.coloring;u==="lines"?o=!0:a=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function gL(e,r,t){return e&&ni.isArrayOrTypedArray(e)?r:e>t?t:e}});var cb=ae((K3e,CL)=>{"use strict";var Ei=Et(),sn=mr(),sb=Mn(),oc=bt(),M2=Sh(),ub=Yo(),fn=va(),Jh=Ft(),lc=ai(),bL=Q6().handleItemClick,_L=Q6().handleTitleClick,dn=eb(),fb=ti(),TL=fb.LINE_SPACING,ev=fb.FROM_TL,xL=fb.FROM_BR,wL=iL(),wae=lb(),rv=Zh(),Q1=1,Mae=/^legend[0-9]*$/;CL.exports=function(r,t){if(t)ML(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var s=Ei.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(Mae)&&n.indexOf(c)===-1&&s.remove()});for(var o=0;o<n.length;o++){var l=n[o],u=r._fullLayout[l];ML(r,u)}}};function Aae(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*TL,i=0,o=e.node(),l=fn.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*dn.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*dn.titlePad-l),lc.positionText(e,t+dn.titlePad+i,t+n)}}function ML(e,r){var t=r||{},a=e._fullLayout,n=rv.getId(t),i,o,l=t._inHover;if(l?(o=t.layer,i="hover"):(o=a._infolayer,i=n),!!o){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var u;if(l){if(!t.entries)return;u=wL(t.entries,t)}else{for(var s=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var h=f[c];if(h.showlegend){var d={_isShape:!0,index:h._index,name:h.name||h.label.text||"shape "+h._index,legend:h.legend,legendgroup:h.legendgroup,legendgrouptitle:h.legendgrouptitle,legendrank:h.legendrank,legendwidth:h.legendwidth,showlegend:h.showlegend,visible:h.visible,opacity:h.opacity,mode:h.type==="line"?"lines":"markers",line:h.line,marker:{line:h.line,color:h.fillcolor,size:12,symbol:h.type==="rect"?"square":h.type==="circle"?"circle":"hexagon2"}};s.push([{trace:d}])}}u=a.showlegend&&wL(s,t,a._legends.length>1)}var m=a.hiddenlabels||[];if(!l&&(!a.showlegend||!u.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),sb.autoMargin(e,n);var p=sn.ensureSingle(o,"g",n,function(D){l||D.attr("pointer-events","all")}),y=sn.ensureSingleById(a._topdefs,"clipPath",i,function(D){D.append("rect")}),b=sn.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});b.call(Jh.stroke,t.bordercolor).call(Jh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=sn.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=sn.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(fn.font,x.font).text(x.text),w2(_,C,e,t,Q1),!l&&(t.titleclick||t.titledoubleclick)&&Cae(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var M=sn.ensureSingle(p,"rect","scrollbar",function(D){D.attr(dn.scrollBarEnterAttrs).call(Jh.fill,dn.scrollBarColor)}),T=C.selectAll("g.groups").data(u);T.enter().append("g").attr("class","groups"),T.exit().remove();var A=T.selectAll("g.traces").data(sn.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(D){let P=D[0],z=P.trace;if(P.groupTitle){let B=z.legendgroup,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===B&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return oc.traceIs(z,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Ei.select(this).call(Tae,e,t)}).call(wae,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||Ei.select(this).call(kae,e,n)}),sn.syncOrAsync([sb.previousPromises,function(){return Lae(e,T,A,t,C)},function(){var D=a._size,P=t.borderwidth,z=t.xref==="paper",B=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(er){return er.showlegend}),$e=e._fullData.concat(Ne).some(function(er){let ir=er.legend||"legend";var sr=Array.isArray(ir)?ir.includes(n):ir===n;return sr&&er.visible===!0});_.style("opacity",$e?1:.5)}if(!l){var X,H;z?X=D.l+D.w*t.x-ev[A2(t)]*t._width:X=a.width*t.x-ev[A2(t)]*t._width,B?H=D.t+D.h*(1-t.y)-ev[T2(t)]*t._effHeight:H=a.height*(1-t.y)-ev[T2(t)]*t._effHeight;var V=Dae(e,n,X,H);if(V)return;if(a.margin.autoexpand){var I=X,Q=H;X=z?sn.constrain(X,0,a.width-t._width):I,H=B?sn.constrain(H,0,a.height-t._effHeight):Q,X!==I&&sn.log("Constrain "+n+".x to make legend fit inside graph"),H!==Q&&sn.log("Constrain "+n+".y to make legend fit inside graph")}fn.setTranslate(p,X,H)}if(M.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ne=t._effHeight;l&&(ne=t._height),b.attr({width:t._width-P,height:ne-P,x:P/2,y:P/2}),fn.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*P,height:ne-2*P,x:P,y:P}),fn.setClipUrl(C,i,e),fn.setRect(M,0,0,0,0),delete t._scrollY}else{var te=Math.max(dn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ee=t._effHeight-te-2*dn.scrollBarMargin,fe=t._height-t._effHeight,ve=ee/fe,Ae=Math.min(t._scrollY||0,fe);b.attr({width:t._width-2*P+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),y.select("rect").attr({width:t._width-2*P+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+Ae}),fn.setClipUrl(C,i,e),me(Ae,te,ve),p.on("wheel",function(){Ae=sn.constrain(t._scrollY+Ei.event.deltaY/fe*ee,0,fe),me(Ae,te,ve),Ae!==0&&Ae!==fe&&Ei.event.preventDefault()});var Ee,Be,Ue,ke=function(Ne,$e,er){var ir=(er-$e)/ve+Ne;return sn.constrain(ir,0,fe)},We=function(Ne,$e,er){var ir=($e-er)/ve+Ne;return sn.constrain(ir,0,fe)},j=Ei.behavior.drag().on("dragstart",function(){var Ne=Ei.event.sourceEvent;Ne.type==="touchstart"?Ee=Ne.changedTouches[0].clientY:Ee=Ne.clientY,Ue=Ae}).on("drag",function(){var Ne=Ei.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Be=Ne.changedTouches[0].clientY:Be=Ne.clientY,Ae=ke(Ue,Ee,Be),me(Ae,te,ve))});M.call(j);var re=Ei.behavior.drag().on("dragstart",function(){var Ne=Ei.event.sourceEvent;Ne.type==="touchstart"&&(Ee=Ne.changedTouches[0].clientY,Ue=Ae)}).on("drag",function(){var Ne=Ei.event.sourceEvent;Ne.type==="touchmove"&&(Be=Ne.changedTouches[0].clientY,Ae=We(Ue,Ee,Be),me(Ae,te,ve))});C.call(re)}function me(Ne,$e,er){t._scrollY=e._fullLayout[n]._scrollY=Ne,fn.setTranslate(C,0,-Ne),fn.setRect(M,t._width,dn.scrollBarMargin+Ne*er,dn.scrollBarWidth,$e),y.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,$,le,we;p.classed("cursor-move",!0),ub.init({element:p.node(),gd:e,prepFn:function(Ne){if(Ne.target!==M.node()){var $e=fn.getTranslate(p);le=$e.x,we=$e.y}},moveFn:function(Ne,$e){if(le!==void 0&&we!==void 0){var er=le+Ne,ir=we+$e;fn.setTranslate(p,er,ir),K=ub.align(er,t._width,D.l,D.l+D.w,t.xanchor),$=ub.align(ir+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&$!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=$,oc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,$e){var er=o.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return $e.clientX>=ir.left&&$e.clientX<=ir.right&&$e.clientY>=ir.top&&$e.clientY<=ir.bottom});er.size()>0&&kL(e,t,er,Ne,$e)}})}}],e)}}function x2(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function kL(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(s.group=o._group),oc.traceIs(o,"pie-like")&&(s.label=t.datum()[0].label);var f=M2.triggerHandler(e,"plotly_legendclick",s);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&bL(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=M2.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&bL(t,e,r,u)}}function Tae(e,r,t){var a=rv.getId(t),n=e.data()[0][0],i=n.trace,o=oc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,u=t._maxNameLength,s,f;n.groupTitle?(s=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?s=n.text:(s=o?n.label:i.name,i._meta&&(s=sn.templateString(s,i._meta))));var c=sn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(fn.font,f).text(l?AL(s,u):s);var h=t.indentation+t.itemwidth+dn.itemGap*2;lc.positionText(c,h,0),l?c.call(lc.makeEditable,{gd:r,text:s}).call(w2,e,r,t).on("edit",function(d){this.text(AL(d,u)).call(w2,e,r,t);var m={};return m.name=d,n.trace._isShape?oc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):oc.call("_guiRestyle",r,m,i.index)}):w2(c,e,r,t)}function AL(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function kae(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=sn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Jh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),o.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),kL(r,l,e,i,Ei.event)}}))}function Cae(e,r,t,a){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&oc.traceIs(s,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let u=sn.ensureSingle(e,"rect",a+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(Jh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),u.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let s={event:Ei.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(M2.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&_L(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,M2.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&_L(r,t,t.titledoubleclick))}))}function w2(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),lc.convertToTspans(e,t,function(){Sae(r,t,a,n)})}function Sae(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),u=rv.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;a===Q1?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*TL,h,d;if(l){var m=fn.bBox(l);h=m.height,d=m.width,a===Q1?fn.setTranslate(o,s,s+h*.75):fn.setTranslate(o,0,h*.25)}else{var p="."+u+(a===Q1?"title":"")+"text",y=e.select(p),b=lc.lineCount(y),C=y.node();if(h=c*b,d=C?fn.bBox(C).width:0,a===Q1)t.title.side==="left"&&(d+=dn.itemGap*2),lc.positionText(y,s+dn.titlePad,s+c);else{var x=dn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=dn.itemGap,d-=t.indentation+t.itemwidth),lc.positionText(y,x,-c*((b-1)/2-.3))}}a===Q1?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function Eae(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Lae(e,r,t,a,n){var i=e._fullLayout,o=rv.getId(a);a||(a=i[o]);var l=i._size,u=rv.isVertical(a),s=rv.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=dn.itemGap,m=a.indentation+a.itemwidth+d*2,p=2*(c+d),y=T2(a),b=a.y<0||a.y===0&&y==="top",C=a.y>1||a.y===1&&y==="bottom",x=a.tracegroupgap,_={};let{orientation:M,yref:T}=a,{maxheight:A}=a,D=b||C||M!=="v"||T!=="paper";A||(A=D?.5:1);let P=D?i.height:l.h;a._maxHeight=Math.max(A>1?A:A*P,30);var z=0;a._width=0,a._height=0;var B=Eae(a);if(u)t.each(function(Ne){var $e=Ne[0].height;fn.setTranslate(this,c+B[0],c+B[1]+a._height+$e/2+d),a._height+=$e,a._width=Math.max(a._width,Ne[0].width)}),z=m+a._width,a._width+=d+m+h,a._height+=p,s&&(r.each(function(Ne,$e){fn.setTranslate(this,0,$e*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var X=A2(a),H=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",I=C||b,Q=i.width/2;a._maxWidth=Math.max(H?I&&X==="left"?l.l+l.w:Q:V?I&&X==="right"?l.r+l.w:Q:l.w,2*m);var ne=0,te=0;t.each(function(Ne){var $e=x2(Ne,a,m);ne=Math.max(ne,$e),te+=$e}),z=null;var ee=0;if(s){var fe=0,ve=0,Ae=0;r.each(function(){var Ne=0,$e=0;Ei.select(this).selectAll("g.traces").each(function(ir){var sr=x2(ir,a,m),Pe=ir[0].height;fn.setTranslate(this,B[0],B[1]+c+d+Pe/2+$e),$e+=Pe,Ne=Math.max(Ne,sr),_[ir[0].trace.legendgroup]=Ne});var er=Ne+d;ve>0&&er+c+ve>a._maxWidth?(ee=Math.max(ee,ve),ve=0,Ae+=fe+x,fe=$e):fe=Math.max(fe,$e),fn.setTranslate(this,ve,Ae),ve+=er}),a._width=Math.max(ee,ve)+c,a._height=Ae+fe+p}else{var Ee=t.size(),Be=te+h+(Ee-1)*d<a._maxWidth,Ue=0,ke=0,We=0,j=0;t.each(function(Ne){var $e=Ne[0].height,er=x2(Ne,a,m,s),ir=Be?er:ne;f||(ir+=d),ir+c+ke-d>=a._maxWidth&&(ee=Math.max(ee,j),ke=0,We+=Ue,a._height+=Ue,Ue=0),fn.setTranslate(this,B[0]+c+ke,B[1]+c+We+$e/2+d),j=ke+er+d,ke+=ir,Ue=Math.max(Ue,$e)}),Be?(a._width=ke+h,a._height=Ue+p):(a._width=Math.max(ee,j)+h,a._height+=Ue+p)}}a._width=Math.ceil(Math.max(a._width+B[0],a._titleWidth+2*(c+dn.titlePad))),a._height=Math.ceil(Math.max(a._height+B[1],a._titleHeight+2*(c+dn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var re=e._context.edits,me=re.legendText||re.legendPosition;t.each(function(Ne){var $e=Ei.select(this).select("."+o+"toggle"),er=Ne[0].height,ir=Ne[0].trace.legendgroup,sr=x2(Ne,a,m);s&&ir!==""&&(sr=_[ir]);var Pe=me?m:z||sr;!u&&!f&&(Pe+=d/2),fn.setRect($e,0,-er/2,Pe,er)});var K=n.select("."+o+"titletext");K.node()&&Aae(K,a,c);var $=n.select("."+o+"titletoggle");if($.size()&&K.node()){var le=K.attr("x")||0,we=dn.titlePad;fn.setRect($,le-we,c,a._titleWidth+2*we,a._titleHeight+2*we)}}function Dae(e,r,t,a){var n=e._fullLayout,i=n[r],o=A2(i),l=T2(i),u=i.xref==="paper",s=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(u&&s)return sb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*ev[o],r:i._width*xL[o],b:i._effHeight*xL[l],t:i._effHeight*ev[l]});u?e._fullLayout._reservedMargin[r][f]=h[f]:s||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function A2(e){return sn.isRightAnchor(e)?"right":sn.isCenterAnchor(e)?"center":"left"}function T2(e){return sn.isBottomAnchor(e)?"bottom":sn.isMiddleAnchor(e)?"middle":"top"}});var pb=ae(db=>{"use strict";var uc=Et(),Ds=Wt(),ja=mr(),Fae=ja.pushUnique,vb=ja.strTranslate,qae=ja.strRotate,Pae=Sh(),Xo=ai(),Rae=KE(),Fu=va(),pn=Ft(),k2=Yo(),qu=Ba(),zae=Dn().zindexSeparator,av=bt(),_o=Ls(),sc=th(),Nae=J6(),Bae=cb(),RL=sc.YANGLE,hb=Math.PI*RL/180,Iae=1/Math.sin(hb),Hae=Math.cos(hb),Oae=Math.sin(hb),Pa=sc.HOVERARROWSIZE,zt=sc.HOVERTEXTPAD,SL={box:!0,ohlc:!0,violin:!0,candlestick:!0},Uae={scatter:!0,scattergl:!0,splom:!0};function EL(e,r){return e.distance-r.distance}db.hover=function(r,t,a,n){r=ja.getGraphDiv(r);var i=t.target;ja.throttle(r._fullLayout._uid+sc.HOVERID,sc.HOVERMINTIME,function(){Gae(r,t,a,n,i)})};db.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=HL(n),o=OL(n),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var T=Math.min(b,C),A=Math.max(b,C),D=Math.min(x,_),P=Math.max(x,_),z=y.trace;if(av.traceIs(z,"gl3d")){var B=n._fullLayout[z.scene]._scene.container,X=B.offsetLeft,H=B.offsetTop;T+=X,A+=X,D+=H,P+=H}M.bbox={x0:T+o,x1:A+o,y0:D+i,y1:P+i},M.xPixel=(b+C)/2,M.yPixel=(x+_)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||pn.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),u=!1,s=NL(l,{gd:n,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||pn.background,container:uc.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-c<h?y.offset=h-C+c:y.offset=0,h=C+y.by+y.offset,b===t.anchorIndex&&(d=y.offset)}).each(function(y){y.offset-=d});var m=n._fullLayout._invScaleX,p=n._fullLayout._invScaleY;return IL(f,u,m,p),a?f:f.node()};function Gae(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(zae)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,u=l.hoversubplots,s=l._plots||[],f=s[t],c=l._has("cartesian"),h=r.hovermode||l.hovermode,d=(h||"").charAt(0)==="x",m=(h||"").charAt(0)==="y",p,y;if(c&&(d||m)&&u==="axis"){for(var b=i.length,C=0;C<b;C++)if(o=i[C],s[o]){p=qu.getFromId(e,o,"x"),y=qu.getFromId(e,o,"y");var x=(d?p:y)._subplotsWith;if(x&&x.length)for(var _=0;_<x.length;_++)Fae(i,x[_])}}if(f&&u!=="single"){var M=f.overlays.map(function(Jr){return Jr.id});i=i.concat(M)}for(var T=i.length,A=new Array(T),D=new Array(T),P=!1,z=0;z<T;z++)if(o=i[z],s[o])P=!0,A[z]=s[o].xaxis,D[z]=s[o].yaxis;else if(l[o]&&l[o]._subplot){var B=l[o]._subplot;A[z]=B.xaxis,D[z]=B.yaxis}else{ja.warn("Unrecognized subplot: "+o);return}if(h&&!P&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return k2.unhoverRaw(e,r);var X=l.hoverdistance;X===-1&&(X=1/0);var H=l.spikedistance;H===-1&&(H=1/0);var V=[],I=[],Q,ne,te,ee,fe,ve,Ae,Ee,Be,Ue,ke,We,j,re={hLinePoint:null,vLinePoint:null},me=!1;if(Array.isArray(r))for(h="array",te=0;te<r.length;te++)fe=e.calcdata[r[te].curveNumber||0],fe&&(ve=fe[0].trace,fe[0].trace.hoverinfo!=="skip"&&(I.push(fe),ve.orientation==="h"&&(me=!0)));else{var K=e.calcdata.slice();for(K.sort(function(Jr,ua){var Rt=Jr[0].trace.zorder||0,pa=ua[0].trace.zorder||0;return Rt-pa}),ee=0;ee<K.length;ee++)fe=K[ee],ve=fe[0].trace,ve.hoverinfo!=="skip"&&_o.isTraceInSubplots(ve,i)&&(I.push(fe),ve.orientation==="h"&&(me=!0));var $=!n,le,we;if($)"xpx"in r?le=r.xpx:le=A[0]._length/2,"ypx"in r?we=r.ypx:we=D[0]._length/2;else{if(Pae.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Ne=n.getBoundingClientRect();le=r.clientX-Ne.left,we=r.clientY-Ne.top,l._calcInverseTransform(e);var $e=ja.apply3DTransform(l._invTransform)(le,we);if(le=$e[0],we=$e[1],le<0||le>A[0]._length||we<0||we>D[0]._length)return k2.unhoverRaw(e,r)}if(r.pointerX=le+A[0]._offset,r.pointerY=we+D[0]._offset,"xval"in r?Q=_o.flat(i,r.xval):Q=_o.p2c(A,le),"yval"in r?ne=_o.flat(i,r.yval):ne=_o.p2c(D,we),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Ds(Q[0])||!Ds(ne[0]))return ja.warn("Fx.hover failed",r,e),k2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=Q,e._hoverYVals=ne,e._hoverXAxes=A,e._hoverYAxes=D);var er=1/0;function ir(Jr,ua){for(ee=0;ee<I.length;ee++)if(fe=I[ee],!(!fe||!fe[0]||!fe[0].trace)&&(ve=fe[0].trace,!(ve.visible!==!0||ve._length===0)&&["carpet","contourcarpet"].indexOf(ve._module.name)===-1)){if(Be=h,_o.isUnifiedHover(Be)&&(Be=Be.charAt(0)),ve.type==="splom"?(Ee=0,Ae=i[Ee]):(Ae=_o.getSubplot(ve),Ee=i.indexOf(Ae)),We={cd:fe,trace:ve,xa:A[Ee],ya:D[Ee],maxHoverDistance:X,maxSpikeDistance:H,index:!1,distance:Math.min(er,X),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:pn.defaultLine,name:ve.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[Ae]&&(We.subplot=l[Ae]._subplot),l._splomScenes&&l._splomScenes[ve.uid]&&(We.scene=l._splomScenes[ve.uid]),Be==="array"){var Rt=r[ee];if("pointNumber"in Rt){let Sa=fe[Rt.pointNumber];Sa&&(We.index=Rt.pointNumber,Sa.lonlat?(Ue=Sa.lonlat[0],ke=Sa.lonlat[1]):(Ue=Sa.x,ke=Sa.y)),Be="closest"}else Be="","xval"in Rt&&(Ue=Rt.xval,Be="x"),"yval"in Rt&&(ke=Rt.yval,Be=Be?"closest":"y")}else Jr!==void 0&&ua!==void 0?(Ue=Jr,ke=ua):(Ue=Q[Ee],ke=ne[Ee]);if(j=V.length,X!==0)if(ve._module&&ve._module.hoverPoints){var pa=ve._module.hoverPoints(We,Ue,ke,Be,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(pa)for(var ya,ba=0;ba<pa.length;ba++)ya=pa[ba],Ds(ya.x0)&&Ds(ya.y0)&&V.push(Wae(ya,h))}else ja.log("Unrecognized trace type in hover:",ve);if(h==="closest"&&V.length>j&&(V.splice(0,j),er=V[0].distance),c&&H!==0&&V.length===0){We.distance=H,We.index=!1;var Yt=ve._module.hoverPoints(We,Ue,ke,"closest",{hoverLayer:l._hoverlayer});if(Yt&&(Yt=Yt.filter(function(Sa){return Sa.spikeDistance<=H})),Yt&&Yt.length){var za,gn=Yt.filter(function(Sa){return Sa.xa.showspikes&&Sa.xa.spikesnap!=="hovered data"});if(gn.length){var ma=gn[0];Ds(ma.x0)&&Ds(ma.y0)&&(za=Pe(ma),(!re.vLinePoint||re.vLinePoint.spikeDistance>za.spikeDistance)&&(re.vLinePoint=za))}var aa=Yt.filter(function(Sa){return Sa.ya.showspikes&&Sa.ya.spikesnap!=="hovered data"});if(aa.length){var La=aa[0];Ds(La.x0)&&Ds(La.y0)&&(za=Pe(La),(!re.hLinePoint||re.hLinePoint.spikeDistance>za.spikeDistance)&&(re.hLinePoint=za))}}}}}ir();function sr(Jr,ua,Rt){for(var pa=null,ya=1/0,ba,Yt=0;Yt<Jr.length;Yt++)p&&p._id!==Jr[Yt].xa._id||y&&y._id!==Jr[Yt].ya._id||(ba=Jr[Yt].spikeDistance,Rt&&Yt===0&&(ba=-1/0),ba<=ya&&ba<=ua&&(pa=Jr[Yt],ya=ba));return pa}function Pe(Jr){return Jr?{xa:Jr.xa,ya:Jr.ya,x:Jr.xSpike!==void 0?Jr.xSpike:(Jr.x0+Jr.x1)/2,y:Jr.ySpike!==void 0?Jr.ySpike:(Jr.y0+Jr.y1)/2,distance:Jr.distance,spikeDistance:Jr.spikeDistance,curveNumber:Jr.trace.index,color:Jr.color,pointNumber:Jr.index}:null}var vr={fullLayout:l,container:l._hoverlayer,event:r},hr=e._spikepoints,dr={vLinePoint:re.vLinePoint,hLinePoint:re.hLinePoint};e._spikepoints=dr;var Ze=function(){var Jr=V.filter(function(Rt){return p&&p._id===Rt.xa._id&&y&&y._id===Rt.ya._id}),ua=V.filter(function(Rt){return!(p&&p._id===Rt.xa._id&&y&&y._id===Rt.ya._id)});Jr.sort(EL),ua.sort(EL),V=Jr.concat(ua),V=Zae(V,h)};Ze();var fr=h.charAt(0),Dr=(fr==="x"||fr==="y")&&V[0]&&Uae[V[0].trace.type];if(c&&H!==0&&V.length!==0){var Te=V.filter(function(Jr){return Jr.ya.showspikes}),Oe=sr(Te,H,Dr);re.hLinePoint=Pe(Oe);var Mr=V.filter(function(Jr){return Jr.xa.showspikes}),Nr=sr(Mr,H,Dr);re.vLinePoint=Pe(Nr)}if(V.length===0){var Qe=k2.unhoverRaw(e,r);if(c&&(re.hLinePoint!==null||re.vLinePoint!==null)&&FL(hr)&&DL(e,re,vr),l.hoveranywhere&&!a&&n){var Ie=e._hoverdata;Ie&&Ie.length&&(e.emit("plotly_unhover",{event:r,points:Ie}),e._hoverdata=[]),Un([]),e._hoverAnywhereActive=!0}return Qe}if(c&&FL(hr)&&DL(e,re,vr),_o.isXYhover(Be)&&V[0].length!==0&&V[0].trace.type!=="splom"){var Xe=V[0];SL[Xe.trace.type]?V=V.filter(Jr=>Jr.trace.index===Xe.trace.index):V=[Xe];var yr=V.length,kr=PL("x",Xe,l),pr=PL("y",Xe,l);ir(kr,pr);var xr=[],Pr={},Lr=0,Hr=function(Jr){var ua=SL[Jr.trace.type]?zL(Jr):Jr.trace.index;if(!Pr[ua])Lr++,Pr[ua]=Lr,xr.push(Jr);else{var Rt=Pr[ua]-1,pa=xr[Rt];Rt>0&&Math.abs(Jr.distance)<Math.abs(pa.distance)&&(xr[Rt]=Jr)}},tr;for(tr=0;tr<yr;tr++)Hr(V[tr]);for(tr=V.length-1;tr>yr-1;tr--)Hr(V[tr]);V=xr,Ze()}var Cr=e._hoverdata,cr=[],Xr=HL(e),Kr=OL(e);for(let Jr of V){var Fr=_o.makeEventData(Jr,Jr.trace,Jr.cd);if(Jr.hovertemplate!==!1){var Wr=!1;Jr.cd[Jr.index]&&Jr.cd[Jr.index].ht&&(Wr=Jr.cd[Jr.index].ht),Jr.hovertemplate=Wr||Jr.trace.hovertemplate||!1}if(Jr.xa&&Jr.ya){var Me=Jr.x0+Jr.xa._offset,Re=Jr.x1+Jr.xa._offset,ur=Jr.y0+Jr.ya._offset,gr=Jr.y1+Jr.ya._offset,Nt=Math.min(Me,Re),Gt=Math.max(Me,Re),na=Math.min(ur,gr),Aa=Math.max(ur,gr);Fr.bbox={x0:Nt+Kr,x1:Gt+Kr,y0:na+Xr,y1:Aa+Xr},Fr.xPixel=(Me+Re)/2,Fr.yPixel=(ur+gr)/2}Jr.eventData=[Fr],cr.push(Fr)}e._hoverdata=cr;var Bt=h==="y"&&(I.length>1||V.length>1)||h==="closest"&&me&&V.length>1,jt=pn.combine(l.plot_bgcolor||pn.background,l.paper_bgcolor),da=NL(V,{gd:e,hovermode:h,rotateLabels:Bt,bgColor:jt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Kt=da.hoverLabels;if(_o.isUnifiedHover(h)||(Vae(Kt,Bt,l,da.commonLabelBoundingBox),IL(Kt,Bt,l._invScaleX,l._invScaleY)),n&&n.tagName){var mn=av.getComponentMethod("annotations","hasClickToShow")(e,cr);Rae(uc.select(n),mn?"pointer":"")}var rn=jae(e,r,Cr);if(!n||a||!rn&&!l.hoveranywhere)return;Cr&&rn&&e.emit("plotly_unhover",{event:r,points:Cr}),Un(e._hoverdata);function Un(Jr){e.emit("plotly_hover",{event:r,points:Jr,xaxes:A,yaxes:D,xvals:_o.c2dApply(A,Q),yvals:_o.c2dApply(D,ne),xPixel:r.pointerX,yPixel:r.pointerY})}}function zL(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Yae=/<extra>([\s\S]*)<\/extra>/;function NL(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||sc.HOVERFONT,c=r.fontSize||sc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,p=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,C=e[0],x=C.xa,_=C.ya,M=n.charAt(0),T=M+"Label",A=C[T];if(A===void 0&&x.type==="multicategory")for(var D=0;D<e.length&&(A=e[D][T],A===void 0);D++);var P=tv(t,u),z=P.top,B=P.width,X=P.height,H=A!==void 0&&C.distance<=r.hoverdistance&&(n==="x"||n==="y");if(H){var V=!0,I,Q;for(I=0;I<e.length;I++)if(V&&e[I].zLabel===void 0&&(V=!1),Q=e[I].hoverinfo||e[I].trace.hoverinfo,Q){var ne=Array.isArray(Q)?Q:Q.split("+");if(ne.indexOf("all")===-1&&ne.indexOf(n)===-1){H=!1;break}}V&&(H=!1)}var te=l.selectAll("g.axistext").data(H?[0]:[]);te.enter().append("g").classed("axistext",!0),te.exit().remove();var ee={minX:0,maxX:0,minY:0,maxY:0};if(te.each(function(){var Qe=uc.select(this),Ie=ja.ensureSingle(Qe,"path","",function(na){na.style({"stroke-width":"1px"})}),Xe=ja.ensureSingle(Qe,"text","",function(na){na.attr("data-notex",1)}),yr=s.bgcolor||pn.defaultLine,kr=s.bordercolor||pn.contrast(yr),pr=pn.contrast(yr),xr=s.font,Pr={weight:xr.weight||h,style:xr.style||d,variant:xr.variant||m,textcase:xr.textcase||p,lineposition:xr.lineposition||y,shadow:xr.shadow||b,family:xr.family||f,size:xr.size||c,color:xr.color||pr};Ie.style({fill:yr,stroke:kr}),Xe.text(A).call(Fu.font,Pr).call(Xo.positionText,0,0).call(Xo.convertToTspans,t),Qe.attr("transform","");var Lr=tv(t,Xe.node()),Hr,tr;if(n==="x"){var Cr=x.side==="top"?"-":"";Xe.attr("text-anchor","middle").call(Xo.positionText,0,x.side==="top"?z-Lr.bottom-Pa-zt:z-Lr.top+Pa+zt),Hr=x._offset+(C.x0+C.x1)/2,tr=_._offset+(x.side==="top"?0:_._length);var cr=Lr.width/2+zt,Xr=Hr;Hr<cr?Xr=cr:Hr>a.width-cr&&(Xr=a.width-cr),Ie.attr("d","M"+(Hr-Xr)+",0L"+(Hr-Xr+Pa)+","+Cr+Pa+"H"+cr+"v"+Cr+(zt*2+Lr.height)+"H"+-cr+"V"+Cr+Pa+"H"+(Hr-Xr-Pa)+"Z"),Hr=Xr,ee.minX=Hr-cr,ee.maxX=Hr+cr,x.side==="top"?(ee.minY=tr-(zt*2+Lr.height),ee.maxY=tr-zt):(ee.minY=tr+zt,ee.maxY=tr+(zt*2+Lr.height))}else{var Kr,Fr,Wr;_.side==="right"?(Kr="start",Fr=1,Wr="",Hr=x._offset+x._length):(Kr="end",Fr=-1,Wr="-",Hr=x._offset),tr=_._offset+(C.y0+C.y1)/2,Xe.attr("text-anchor",Kr),Ie.attr("d","M0,0L"+Wr+Pa+","+Pa+"V"+(zt+Lr.height/2)+"h"+Wr+(zt*2+Lr.width)+"V-"+(zt+Lr.height/2)+"H"+Wr+Pa+"V-"+Pa+"Z"),ee.minY=tr-(zt+Lr.height/2),ee.maxY=tr+(zt+Lr.height/2),_.side==="right"?(ee.minX=Hr+Pa,ee.maxX=Hr+Pa+(zt*2+Lr.width)):(ee.minX=Hr-Pa-(zt*2+Lr.width),ee.maxX=Hr-Pa);var Me=Lr.height/2,Re=z-Lr.top-Me,ur="clip"+a._uid+"commonlabel"+_._id,gr;if(Hr<Lr.width+2*zt+Pa){gr="M-"+(Pa+zt)+"-"+Me+"h-"+(Lr.width-zt)+"V"+Me+"h"+(Lr.width-zt)+"Z";var Nt=Lr.width-Hr+zt;Xo.positionText(Xe,Nt,Re),Kr==="end"&&Xe.selectAll("tspan").each(function(){var na=uc.select(this),Aa=Fu.tester.append("text").text(na.text()).call(Fu.font,Pr),Bt=tv(t,Aa.node());Math.round(Bt.width)<Math.round(Lr.width)&&na.attr("x",Nt-Bt.width),Aa.remove()})}else Xo.positionText(Xe,Fr*(zt+Pa),Re),gr=null;var Gt=a._topclips.selectAll("#"+ur).data(gr?[0]:[]);Gt.enter().append("clipPath").attr("id",ur).append("path"),Gt.exit().remove(),Gt.select("path").attr("d",gr),Fu.setClipUrl(Xe,gr?ur:null,t)}Qe.attr("transform",vb(Hr,tr))}),_o.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let Qe=e.filter(Ie=>Ie.hoverinfo!=="none");if(Qe.length===0)return[];var fe=a.hoverlabel,ve=fe.font,Ae=Qe[0],Ee=((n==="x unified"?Ae.xa:Ae.ya).unifiedhovertitle||{}).text,Be=Ee?ja.hovertemplateString({data:n==="x unified"?[{xa:Ae.xa,x:Ae.xVal}]:[{ya:Ae.ya,y:Ae.yVal}],fallback:Ae.trace.hovertemplatefallback,locale:a._d3locale,template:Ee}):A,Ue={showlegend:!0,legend:{title:{text:Be,font:ve},font:ve,bgcolor:fe.bgcolor,bordercolor:fe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ke={font:ve};Nae(Ue,ke,t._fullData);var We=ke.legend;We.entries=[];for(var j=0;j<Qe.length;j++){var re=Qe[j];if(re.hoverinfo!=="none"){var me=LL(re,!0,n,a,A),K=me[0],$=me[1];re.name=$,$!==""?re.text=$+" : "+K:re.text=K;var le=re.cd[re.index];le&&(le.mc&&(re.mc=le.mc),le.mcc&&(re.mc=le.mcc),le.mlc&&(re.mlc=le.mlc),le.mlcc&&(re.mlc=le.mlcc),le.mlw&&(re.mlw=le.mlw),le.mrc&&(re.mrc=le.mrc),le.dir&&(re.dir=le.dir)),re._distinct=!0,We.entries.push([re])}}We.entries.sort(function(Ie,Xe){var yr=a.hoversort;if(yr==="value descending"||yr==="value ascending"){var kr=n.charAt(0)==="x"?"y":"x",pr=Ie[0][kr+"LabelVal"],xr=Xe[0][kr+"LabelVal"];if(pr!==xr)return yr==="value descending"?xr-pr:pr-xr}return Ie[0].trace.index-Xe[0].trace.index}),We.layer=l,We._inHover=!0,We._groupTitleFont=fe.grouptitlefont,Bae(t,We);var we=l.select("g.legend"),Ne=tv(t,we.node()),$e=Ne.width+2*zt,er=Ne.height+2*zt,ir=Qe[0],sr=(ir.x0+ir.x1)/2,Pe=(ir.y0+ir.y1)/2,vr=!(av.traceIs(ir.trace,"bar-like")||av.traceIs(ir.trace,"box-violin")),hr,dr;M==="y"?vr?(dr=Pe-zt,hr=Pe+zt):(dr=Math.min.apply(null,Qe.map(function(Ie){return Math.min(Ie.y0,Ie.y1)})),hr=Math.max.apply(null,Qe.map(function(Ie){return Math.max(Ie.y0,Ie.y1)}))):dr=hr=ja.mean(Qe.map(function(Ie){return(Ie.y0+Ie.y1)/2}))-er/2;var Ze,fr;M==="x"?vr?(Ze=sr+zt,fr=sr-zt):(Ze=Math.max.apply(null,Qe.map(function(Ie){return Math.max(Ie.x0,Ie.x1)})),fr=Math.min.apply(null,Qe.map(function(Ie){return Math.min(Ie.x0,Ie.x1)}))):Ze=fr=ja.mean(Qe.map(function(Ie){return(Ie.x0+Ie.x1)/2}))-$e/2;var Dr=x._offset,Te=_._offset;hr+=Te,Ze+=Dr,fr+=Dr-$e,dr+=Te-er;var Oe,Mr;return Ze+$e<B&&Ze>=0?Oe=Ze:fr+$e<B&&fr>=0?Oe=fr:Dr+$e<B?Oe=Dr:Ze-sr<sr-fr+$e?Oe=B-$e:Oe=0,Oe+=zt,hr+er<X&&hr>=0?Mr=hr:dr+er<X&&dr>=0?Mr=dr:Te+er<X?Mr=Te:hr-Pe<Pe-dr+er?Mr=X-er:Mr=0,Mr+=zt,we.attr("transform",vb(Oe-1,Mr-1)),we}var Nr=l.selectAll("g.hovertext").data(e,function(Qe){return zL(Qe)});return Nr.enter().append("g").classed("hovertext",!0).each(function(){var Qe=uc.select(this);Qe.append("rect").call(pn.fill,pn.addOpacity(o,.8)),Qe.append("text").classed("name",!0),Qe.append("path").style("stroke-width","1px"),Qe.append("text").classed("nums",!0).call(Fu.font,{weight:h,style:d,variant:m,textcase:p,lineposition:y,shadow:b,family:f,size:c})}),Nr.exit().remove(),Nr.each(function(Qe){var Ie=uc.select(this).attr("transform",""),Xe=Qe.color;Array.isArray(Xe)&&(Xe=Xe[Qe.eventData[0].pointNumber]);var yr=Qe.bgcolor||Xe,kr=pn.combine(pn.opacity(yr)?yr:pn.defaultLine,o),pr=pn.combine(pn.opacity(Xe)?Xe:pn.defaultLine,o),xr=Qe.borderColor||pn.contrast(kr),Pr=LL(Qe,H,n,a,A,Ie),Lr=Pr[0],Hr=Pr[1],tr=Ie.select("text.nums").call(Fu.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:Qe.fontColor||xr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Lr).attr("data-notex",1).call(Xo.positionText,0,0).call(Xo.convertToTspans,t),Cr=Ie.select("text.name"),cr=0,Xr=0;if(Hr&&Hr!==Lr){Cr.call(Fu.font,{family:Qe.fontFamily||f,size:Qe.fontSize||c,color:pr,weight:Qe.fontWeight||h,style:Qe.fontStyle||d,variant:Qe.fontVariant||m,textcase:Qe.fontTextcase||p,lineposition:Qe.fontLineposition||y,shadow:Qe.fontShadow||b}).text(Hr).attr("data-notex",1).call(Xo.positionText,0,0).call(Xo.convertToTspans,t);var Kr=tv(t,Cr.node());cr=Kr.width+2*zt,Xr=Kr.height+2*zt}else Cr.remove(),Ie.select("rect").remove();Ie.select("path").style({fill:kr,stroke:xr});var Fr=Qe.xa._offset+(Qe.x0+Qe.x1)/2,Wr=Qe.ya._offset+(Qe.y0+Qe.y1)/2,Me=Math.abs(Qe.x1-Qe.x0),Re=Math.abs(Qe.y1-Qe.y0),ur=tv(t,tr.node()),gr=ur.width/a._invScaleX,Nt=ur.height/a._invScaleY;Qe.ty0=(z-ur.top)/a._invScaleY,Qe.bx=gr+2*zt,Qe.by=Math.max(Nt+2*zt,Xr),Qe.anchor="start",Qe.txwidth=gr,Qe.tx2width=cr,Qe.offset=0;var Gt=(gr+Pa+zt+cr)*a._invScaleX,na,Aa;if(i)Qe.pos=Fr,na=Wr+Re/2+Gt<=X,Aa=Wr-Re/2-Gt>=0,(Qe.idealAlign==="top"||!na)&&Aa?(Wr-=Re/2,Qe.anchor="end"):na?(Wr+=Re/2,Qe.anchor="start"):Qe.anchor="middle",Qe.crossPos=Wr;else{if(Qe.pos=Wr,na=Fr+Me/2+Gt<=B,Aa=Fr-Me/2-Gt>=0,(Qe.idealAlign==="left"||!na)&&Aa)Fr-=Me/2,Qe.anchor="end";else if(na)Fr+=Me/2,Qe.anchor="start";else{Qe.anchor="middle";var Bt=Gt/2,jt=Fr+Bt-B,da=Fr-Bt;jt>0&&(Fr-=jt),da<0&&(Fr+=-da)}Qe.crossPos=Fr}tr.attr("text-anchor",Qe.anchor),cr&&Cr.attr("text-anchor",Qe.anchor),Ie.attr("transform",vb(Fr,Wr)+(i?qae(RL):""))}),{hoverLabels:Nr,commonLabelBoundingBox:ee}}function LL(e,r,t,a,n,i){var c,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ja.templateString(e.name,e.trace._meta)),o=qL(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===n?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[u+"Label"]!==n&&(d[u+"other"]=d[u+"Val"],d[u+"otherLabel"]=d[u+"Label"]),l=ja.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(Yae,(m,p)=>(o=qL(p,e.nameLength),""))}return[l,o]}function Vae(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,u=e.size(),s=new Array(u),f=0,c=a.minX,h=a.maxX,d=a.minY,m=a.maxY,p=function(Q){return Q*t._invScaleX},y=function(Q){return Q*t._invScaleY};e.each(function(Q){var ne=Q[n],te=Q[i],ee=ne._id.charAt(0)==="x",fe=ne.range;f===0&&fe&&fe[0]>fe[1]!==ee&&(l=-1);var ve=0,Ae=ee?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ee=BL(Q,r),Be=Q.anchor,Ue=Be==="end"?-1:1,ke,We;if(Be==="middle")ke=Q.crossPos+(ee?y(Ee.y-Q.by/2):p(Q.bx/2+Q.tx2width/2)),We=ke+(ee?y(Q.by):p(Q.bx));else if(ee)ke=Q.crossPos+y(Pa+Ee.y)-y(Q.by/2-Pa),We=ke+y(Q.by);else{var j=p(Ue*Pa+Ee.x),re=j+p(Ue*Q.bx);ke=Q.crossPos+Math.min(j,re),We=Q.crossPos+Math.max(j,re)}ee?d!==void 0&&m!==void 0&&Math.min(We,m)-Math.max(ke,d)>1&&(te.side==="left"?(ve=te._mainLinePosition,Ae=t.width):Ae=te._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(We,h)-Math.max(ke,c)>1&&(te.side==="top"?(ve=te._mainLinePosition,Ae=t.height):Ae=te._mainLinePosition)}s[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(ee?Iae:1)/2,pmin:ve,pmax:Ae}]}),s.sort(function(Q,ne){return Q[0].posref-ne[0].posref||l*(ne[0].traceIndex-Q[0].traceIndex)});var b,C,x,_,M,T,A;function D(Q){var ne=Q[0],te=Q[Q.length-1];if(C=ne.pmin-ne.pos-ne.dp+ne.size,x=te.pos+te.dp+te.size-ne.pmax,C>.01){for(M=Q.length-1;M>=0;M--)Q[M].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(M=Q.length-1;M>=0;M--)Q[M].dp-=x;b=!1}if(b){var ee=0;for(_=0;_<Q.length;_++)T=Q[_],T.pos+T.dp+T.size>ne.pmax&&ee++;for(_=Q.length-1;_>=0&&!(ee<=0);_--)T=Q[_],T.pos>ne.pmax-1&&(T.del=!0,ee--);for(_=0;_<Q.length&&!(ee<=0);_++)if(T=Q[_],T.pos<ne.pmin+1)for(T.del=!0,ee--,x=T.size*2,M=Q.length-1;M>=0;M--)Q[M].dp-=x;for(_=Q.length-1;_>=0&&!(ee<=0);_--)T=Q[_],T.pos+T.dp+T.size>ne.pmax&&(T.del=!0,ee--)}}}for(;!b&&o<=u;){for(o++,b=!0,_=0;_<s.length-1;){var P=s[_],z=s[_+1],B=P[P.length-1],X=z[0];if(C=B.pos+B.dp+B.size-X.pos-X.dp+X.size,C>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=C;for(P.push.apply(P,z),s.splice(_+1,1),A=0,M=P.length-1;M>=0;M--)A+=P[M].dp;for(x=A/P.length,M=P.length-1;M>=0;M--)P[M].dp-=x;b=!1}else _++}s.forEach(D)}for(_=s.length-1;_>=0;_--){var H=s[_];for(M=H.length-1;M>=0;M--){var V=H[M],I=V.datum;I.offset=V.dp,I.del=V.del}}}function BL(e,r){var t=0,a=e.offset;return r&&(a*=-Oae,t=e.offset*Hae),{x:t,y:a}}function Xae(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Pa+zt),a=t+r*(e.txwidth+zt),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+zt),{alignShift:r,textShiftX:t,text2ShiftX:a}}function IL(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=uc.select(this);if(o.del)return l.remove();var u=l.select("text.nums"),s=o.anchor,f=s==="end"?-1:1,c=Xae(o),h=BL(o,r),d=h.x,m=h.y,p=s==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Pa+d)+","+i(Pa+m)+"v"+i(o.by/2-Pa)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Pa+d)+"V"+i(m-Pa)+"Z":b="M"+n(f*Pa+d)+","+i(m-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+c.textShiftX,x=m+o.ty0-o.by/2+zt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&s!=="start"?(u.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+zt:-o.bx-zt):_==="right"&&s!=="end"&&(u.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-zt:o.bx+zt)),u.call(Xo.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Xo.positionText,n(c.text2ShiftX+c.alignShift*zt+d),i(m+o.ty0-o.by/2+zt)),l.select("rect").call(Fu.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Wae(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(h){return h||Ds(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=ja.castOption(n,t,h);return o(m)?m:ja.extractOption({},a,"",d)}:function(h,d){return ja.extractOption(i,a,h,d)};function u(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ja.constrain(e.x0,0,e.xa._length),e.x1=ja.constrain(e.x1,0,e.xa._length),e.y0=ja.constrain(e.y0,0,e.ya._length),e.y1=ja.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:qu.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:qu.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=qu.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+qu.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=qu.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+qu.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function DL(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(a.selectAll(".spikeline").remove(),!!(u||l)){var c=pn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;s=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=s._offset+h.x,m=f._offset+h.y);var y=pn.wcagContrast(h.color,c)<1.5?pn.contrast(c):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=qu.getPxPosition(e,f),M,T;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=_,T=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),D=Math.max(D,f.position)),M=i.l+A*i.w,T=i.l+D*i.w}a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":Fu.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(u){var P=r.vLinePoint,z,B;s=P&&P.xa,f=P&&P.ya;var X=s.spikesnap;X==="cursor"?(z=o.pointerX,B=o.pointerY):(z=s._offset+P.x,B=f._offset+P.y);var H=pn.wcagContrast(P.color,c)<1.5?pn.contrast(c):P.color,V=s.spikemode,I=s.spikethickness,Q=s.spikecolor||H,ne=qu.getPxPosition(e,s),te,ee;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(te=ne,ee=B),V.indexOf("across")!==-1){var fe=s._counterDomainMin,ve=s._counterDomainMax;s.anchor==="free"&&(fe=Math.min(fe,s.position),ve=Math.max(ve,s.position)),te=i.t+(1-ve)*i.h,ee=i.t+(1-fe)*i.h}a.insert("line",":first-child").attr({x1:z,x2:z,y1:te,y2:ee,"stroke-width":I,stroke:Q,"stroke-dasharray":Fu.dashStyle(s.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:z,x2:z,y1:te,y2:ee,"stroke-width":I+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:z,cy:ne-(s.side!=="top"?I:-I),r:I,fill:Q}).classed("spikeline",!0)}}}function jae(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function FL(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qL(e,r){return Xo.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Zae(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];av.traceIs(l.trace,"bar-like")||av.traceIs(l.trace,"box-violin")?i.push(l):l.trace[t+"period"]?n.push(l):a.push(l)}return a.concat(n).concat(i)}function PL(e,r,t){var a=r[e+"a"],n=r[e+"Val"],i=r.cd[0];if(a.type==="category"||a.type==="multicategory")n=a._categoriesMap[n];else if(a.type==="date"){var o=r.trace[e+"periodalignment"];if(o){var l=r.cd[r.index],u=l[e+"Start"];u===void 0&&(u=l[e]);var s=l[e+"End"];s===void 0&&(s=l[e]);var f=s-u;o==="end"?n+=f:o==="middle"&&(n+=f/2)}n=a.d2c(n)}return i&&i.t&&i.t.posLetter===a._id&&(t.boxmode==="group"||t.violinmode==="group")&&(n+=i.t.dPos),n}var HL=e=>e.offsetTop+e.clientTop,OL=e=>e.offsetLeft+e.clientLeft;function tv(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,u=ja.apply3DTransform(t._invTransform)(n,i),s=ja.apply3DTransform(t._invTransform)(o,l),f=u[0],c=u[1],h=s[0],d=s[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var C2=ae((eye,UL)=>{"use strict";var Jae=mr(),$ae=Ft(),Kae=Ls().isUnifiedHover;UL.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Kae(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=$ae.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Jae.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var YL=ae((rye,GL)=>{"use strict";var Qae=mr(),ene=C2(),rne=h1();GL.exports=function(r,t){function a(n,i){return Qae.coerce(r,t,rne,n,i)}ene(r,t,a)}});var WL=ae((tye,XL)=>{"use strict";var VL=mr(),tne=kp(),ane=C2();XL.exports=function(r,t,a,n){function i(l,u){return VL.coerce(r,t,tne,l,u)}var o=VL.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),ane(r,t,i,o)}});var mb=ae((aye,jL)=>{"use strict";var nne=mr(),ine=h1();jL.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:nne.coerce(r,t,ine,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var $L=ae((nye,JL)=>{"use strict";var ZL=mr(),one=h1(),lne=mb(),une=C2();JL.exports=function(r,t){function a(s,f){return ZL.coerce(r,t,one,s,f)}var n=lne(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&u===1||o&&l&&u===2)&&(t.dragmode="pan"),une(r,t,a),ZL.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var eD=ae((iye,QL)=>{"use strict";var gb=mr(),KL=bt();QL.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(s){return function(f){return gb.coerceHoverinfo({hoverinfo:f},{_module:s._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!KL.traceIs(l,"pie-like")){var u=KL.traceIs(l,"2dMap")?sne:gb.fillArray;u(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&u(l.hovertemplate,o,"ht"),l.hoverlabel&&(u(l.hoverlabel.bgcolor,o,"hbg"),u(l.hoverlabel.bordercolor,o,"hbc"),u(l.hoverlabel.font.size,o,"hts"),u(l.hoverlabel.font.color,o,"htc"),u(l.hoverlabel.font.family,o,"htf"),u(l.hoverlabel.font.weight,o,"htw"),u(l.hoverlabel.font.style,o,"hty"),u(l.hoverlabel.font.variant,o,"htv"),u(l.hoverlabel.namelength,o,"hnl"),u(l.hoverlabel.align,o,"hta"),u(l.hoverlabel.showarrow,o,"htsa"))}}};function sne(e,r,t,a){a=a||gb.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var aD=ae((oye,tD)=>{"use strict";var fne=bt(),rD=Ls(),cne=pb().hover;tD.exports=function(r,t,a){var n=fne.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&cne(r,t,a,!0);function o(){var u,s,f,c,h,d;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&rD.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&rD.c2dApply(r._hoverYAxes,r._hoverYVals)),(h=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Hl=ae((lye,oD)=>{"use strict";var vne=Et(),S2=mr(),hne=Yo(),$h=Ls(),nD=h1(),iD=pb();oD.exports={moduleType:"component",name:"fx",constants:th(),schema:{layout:nD},attributes:kp(),layoutAttributes:nD,supplyLayoutGlobalDefaults:YL(),supplyDefaults:WL(),supplyLayoutDefaults:$L(),calc:eD(),getDistanceFunction:$h.getDistanceFunction,getClosest:$h.getClosest,inbox:$h.inbox,quadrature:$h.quadrature,appendArrayPointValue:$h.appendArrayPointValue,castHoverOption:pne,castHoverinfo:mne,hover:iD.hover,unhover:hne.unhover,loneHover:iD.loneHover,loneUnhover:dne,click:aD()};function dne(e){var r=S2.isD3Selection(e)?e:vne.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function pne(e,r,t){return S2.castOption(e,r,"hoverlabel."+t)}function mne(e,r,t){function a(n){return S2.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return S2.castOption(e,t,"hoverinfo",a)}});var nv=ae(Fs=>{"use strict";Fs.selectMode=function(e){return e==="lasso"||e==="select"};Fs.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fs.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Fs.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fs.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Fs.selectingOrDrawing=function(e){return Fs.freeMode(e)||Fs.rectMode(e)}});var E2=ae((sye,lD)=>{"use strict";lD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var L2=ae((fye,uD)=>{"use strict";uD.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle fill='#9EF' cx='102' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='54' r='6'/>"," <circle fill='#D69' cx='54' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='54' r='6'/>"," <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}});var F2=ae((cye,sD)=>{"use strict";var D2=32;sD.exports={CIRCLE_SIDES:D2,i000:0,i090:D2/4,i180:D2/2,i270:D2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var q2=ae((vye,cD)=>{"use strict";var gne=mr().strTranslate;function fD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function yne(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function bne(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return fD(e,t[r])}}function _ne(e){return gne(e.xaxis._offset,e.yaxis._offset)}cD.exports={p2r:fD,r2p:yne,axValue:bne,getTransform:_ne}});var qf=ae(qs=>{"use strict";var xne=n6(),dD=F2(),iv=dD.CIRCLE_SIDES,yb=dD.SQRT2,pD=q2(),vD=pD.p2r,hD=pD.r2p,wne=[0,3,4,5,6,1,2],Mne=[0,3,4,1,2];qs.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a<r;a++)for(var n=e[a].length,i=0;i<n;i++){var o=e[a][i][0];if(o==="Z")t+="Z";else for(var l=e[a][i].length,u=0;u<l;u++){var s=u;o==="Q"||o==="S"?s=Mne[u]:o==="C"&&(s=wne[u]),t+=e[a][i][s],u>0&&u<l-1&&(t+=",")}}return t};qs.readPaths=function(e,r,t,a){var n=xne(e),i=[],o=-1,l=function(){o++,i[o]=[]},u,s=0,f=0,c,h,d=function(){c=s,h=f};d();for(var m=0;m<n.length;m++){var p=[],y,b,C,x,_=n[m][0],M=_;switch(_){case"M":l(),s=+n[m][1],f=+n[m][2],p.push([M,s,f]),d();break;case"Q":case"S":y=+n[m][1],C=+n[m][2],s=+n[m][3],f=+n[m][4],p.push([M,s,f,y,C]);break;case"C":y=+n[m][1],C=+n[m][2],b=+n[m][3],x=+n[m][4],s=+n[m][5],f=+n[m][6],p.push([M,s,f,y,C,b,x]);break;case"T":case"L":s=+n[m][1],f=+n[m][2],p.push([M,s,f]);break;case"H":M="L",s=+n[m][1],p.push([M,s,f]);break;case"V":M="L",f=+n[m][1],p.push([M,s,f]);break;case"A":M="L";var T=+n[m][1],A=+n[m][2];+n[m][4]||(T=-T,A=-A);var D=s-T,P=f;for(u=1;u<=iv/2;u++){var z=2*Math.PI*u/iv;p.push([M,D+T*Math.cos(z),P+A*Math.sin(z)])}break;case"Z":(s!==c||f!==h)&&(s=c,f=h,p.push([M,s,f]));break}for(var B=(t||{}).domain,X=r._fullLayout._size,H=t&&t.xsizemode==="pixel",V=t&&t.ysizemode==="pixel",I=a===!1,Q=0;Q<p.length;Q++){for(u=0;u+2<7;u+=2){var ne=p[Q][u+1],te=p[Q][u+2];ne===void 0||te===void 0||(s=ne,f=te,t&&(t.xaxis&&t.xaxis.p2r?(I&&(ne-=t.xaxis._offset),H?ne=hD(t.xaxis,t.xanchor)+ne:ne=vD(t.xaxis,ne)):(I&&(ne-=X.l),B?ne=B.x[0]+ne/X.w:ne=ne/X.w),t.yaxis&&t.yaxis.p2r?(I&&(te-=t.yaxis._offset),V?te=hD(t.yaxis,t.yanchor)-te:te=vD(t.yaxis,te)):(I&&(te-=X.t),B?te=B.y[1]-te/X.h:te=1-te/X.h)),p[Q][u+1]=ne,p[Q][u+2]=te)}i[o].push(p[Q].slice())}}return i};function Kh(e,r){return Math.abs(e-r)<=1e-6}function P2(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}qs.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var a=e[0][t]-e[1][t],n=e[3][t]-e[2][t];if(!Kh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!Kh(i,o))return!1}return!Kh(e[0][1],e[1][1])&&!Kh(e[0][1],e[3][1])?!1:!!(P2(e[0],e[1])*P2(e[0],e[3]))};qs.pointsOnEllipse=function(e){var r=e.length;if(r!==iv+1)return!1;r=iv;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!Kh(P2(e[t],e[i]),P2(e[a],e[n])))return!1}return!0};qs.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=qs.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),n=(a.x1+a.x0)/2,i=(a.y1+a.y0)/2,o=(a.x1-a.x0)/2,l=(a.y1-a.y0)/2;o||(o=l=l/yb),l||(l=o=o/yb);for(var u=[],s=0;s<iv;s++){var f=s*2*Math.PI/iv;u.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return u};qs.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,o=n-t;r-=i,t-=o;var l=(r+a)/2,u=(t+n)/2,s=yb;return i*=s,o*=s,{x0:l-i,y0:u-o,x1:l+i,y1:u+o}};qs.fixDatesForPaths=function(e,r,t){var a=r.type==="date",n=t.type==="date";if(!a&&!n)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)a&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),n&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}});var N2=ae((dye,AD)=>{"use strict";var mD=wn(),xD=nv(),Ane=xD.drawMode,Tne=xD.openMode,ov=F2(),gD=ov.i000,yD=ov.i090,bD=ov.i180,_D=ov.i270,kne=ov.cos45,Cne=ov.sin45,wD=q2(),R2=wD.p2r,Pf=wD.r2p,Sne=wf(),Ene=Sne.clearOutline,z2=qf(),Lne=z2.readPaths,Dne=z2.writePaths,Fne=z2.ellipseOver,qne=z2.fixDatesForPaths;function Pne(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!Ane(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l<o.length)switch(a._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var u=o[l].path||"";u[u.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var s=MD(e,r,i);Ene(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,h=[],d=0;d<o.length;d++){var m=a._fullLayout.shapes[d];if(h[d]=m._input,n!==void 0&&d===a._fullLayout._activeShapeIndex){var p=s;switch(m.type){case"line":case"rect":case"circle":var y=mD.getFromId(a,m.xref);m.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",p.x0-(m.x0shift||0)),c("x1",p.x1-(m.x1shift||0))):(c("x0",p.x0),c("x1",p.x1));var b=mD.getFromId(a,m.yref);m.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",p.y0-(m.y0shift||0)),c("y1",p.y1-(m.y1shift||0))):(c("y0",p.y0),c("y1",p.y1));break;case"path":c("path",p.path);break}}}return n===void 0?(h.push(s),h):f?f.getUpdateObj():{}}}}function MD(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,u=r.isActiveShape,s=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,h=!!l.domain||!l.yaxis,d=Tne(t),m=Lne(i,n,l,u),p={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":s._id,yref:h?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(p.fillcolor=o.fillcolor,p.fillrule=o.fillrule);var y;if(m.length===1&&(y=m[0]),y&&y.length===5&&t==="drawrect")p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2];else if(y&&t==="drawline")p.type="line",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[1][1],p.y1=y[1][2];else if(y&&t==="drawcircle"){p.type="circle";var b=y[gD][1],C=y[yD][1],x=y[bD][1],_=y[_D][1],M=y[gD][2],T=y[yD][2],A=y[bD][2],D=y[_D][2],P=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),z=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");P&&(b=Pf(l.xaxis,b),C=Pf(l.xaxis,C),x=Pf(l.xaxis,x),_=Pf(l.xaxis,_)),z&&(M=Pf(l.yaxis,M),T=Pf(l.yaxis,T),A=Pf(l.yaxis,A),D=Pf(l.yaxis,D));var B=(C+_)/2,X=(M+A)/2,H=(_-C+x-b)/2,V=(D-T+A-M)/2,I=Fne({x0:B,y0:X,x1:B+H*kne,y1:X+V*Cne});P&&(I.x0=R2(l.xaxis,I.x0),I.x1=R2(l.xaxis,I.x1)),z&&(I.y0=R2(l.yaxis,I.y0),I.y1=R2(l.yaxis,I.y1)),p.x0=I.x0,p.y0=I.y0,p.x1=I.x1,p.y1=I.y1}else p.type="path",s&&f&&qne(m,s,f),p.path=Dne(m),y=null;return p}AD.exports={newShapes:Pne,createShapeObj:MD}});var _b=ae((pye,TD)=>{"use strict";var Rne=nv(),zne=Rne.selectMode,Nne=wf(),Bne=Nne.clearOutline,bb=qf(),Ine=bb.readPaths,Hne=bb.writePaths,One=bb.fixDatesForPaths;TD.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!zne(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d<h.length)switch(i._fullLayout.selections[d].type){case"rect":c="select";break;case"path":c="lasso";break}}var m=Ine(n,i,l,f),p={xref:u._id,yref:s._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;m.length===1&&(y=m[0]),y&&y.length===5&&c==="select"?(p.type="rect",p.x0=y[0][1],p.y0=y[0][2],p.x1=y[2][1],p.y1=y[2][2]):(p.type="path",u&&s&&One(m,u,s),p.path=Hne(m),y=null),Bne(i);for(var b=t.editHelpers,C=(b||{}).modifyItem,x=[],_=0;_<h.length;_++){var M=i._fullLayout.selections[_];if(!M){x[_]=M;continue}if(x[_]=M._input,f!==void 0&&_===i._fullLayout._activeSelectionIndex){var T=p;switch(M.type){case"rect":C("x0",T.x0),C("x1",T.x1),C("y0",T.y0),C("y1",T.y1);break;case"path":C("path",T.path);break}}}return f===void 0?(x.push(p),x):b?b.getUpdateObj():{}}}}});var Qh=ae((mye,kD)=>{"use strict";kD.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var zf=ae(In=>{"use strict";var Ru=Qh(),CD=mr(),Rf=Ba();In.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};In.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};In.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};In.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};In.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ru.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Ru.paramRE);if(!(!l||l.length<o)){var u=l[o],s=t?u:CD.cleanNumber(u);a.push(s)}}}),a};In.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(Ru.segmentRE);if(!a)return 0;let n=t==="x"?Ru.paramIsX:Ru.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),u=n[l].drawn!==void 0;return i+(u?1:0)},0)};In.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(u){return r._length*(a?1-u:u)+r._offset};else{var l=In.shapePositionToRange(r);o=function(u){var s=Pu(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(o=In.decodeDate(o))}else a?o=function(u){return i.t+i.h*(1-u)}:o=function(u){return i.l+i.w*u};return o};In.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var o=In.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};In.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};In.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};In.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};In.getPathString=function(e,r){let t=r.type,a=Rf.getRefType(r.xref),n=Rf.getRefType(r.yref),i=e._fullLayout._size;var o,l,u,s,f,c,h,d,m,p,y,b;function C(z,B,X,H){var V;if(z)if(B==="domain")H?V=function(I){return z._offset+z._length*(1-I)}:V=function(I){return z._offset+z._length*I};else{let I=In.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(I(Q,!0))},X==="path"&&z.type==="date"&&(V=In.decodeDate(V))}else H?V=function(I){return i.t+i.h*(1-I)}:V=function(I){return i.l+i.w*I};return V}if(a==="array"?(h=[],o=r.xref.map(function(z){return Rf.getFromId(e,z)}),h=r.xref.map(function(z,B){return C(o[B],Rf.getRefType(z),t,!1)})):(o=Rf.getFromId(e,r.xref),h=C(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(z){return Rf.getFromId(e,z)}),d=r.yref.map(function(z,B){return C(l[B],Rf.getRefType(z),t,!0)})):(l=Rf.getFromId(e,r.yref),d=C(l,n,t,!0)),t==="path")return Une(r,h,d);if(a==="array")u=Pu(o[0],r.x0shift),s=Pu(o[1],r.x1shift),m=h[0](r.x0)+u,p=h[1](r.x1)+s;else if(u=Pu(o,r.x0shift),s=Pu(o,r.x1shift),r.xsizemode==="pixel"){let z=h(r.xanchor);m=z+r.x0+u,p=z+r.x1+s}else m=h(r.x0)+u,p=h(r.x1)+s;if(n==="array")f=Pu(l[0],r.y0shift),c=Pu(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Pu(l,r.y0shift),c=Pu(l,r.y1shift),r.ysizemode==="pixel"){let z=d(r.yanchor);y=z-r.y0+f,b=z-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+m+","+y+"L"+p+","+b;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+b+"H"+m+"Z";var x=(m+p)/2,_=(y+b)/2,M=Math.abs(x-m),T=Math.abs(_-y),A="A"+M+","+T,D=x+M+","+_,P=x+","+(_-T);return"M"+D+A+" 0 1,1 "+P+A+" 0 0,1 "+D+"Z"};function Une(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ru.segmentRE,function(h){var d=0,m=h.charAt(0),p=Ru.paramIsX[m],y=Ru.paramIsY[m],b=Ru.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,_=u?r[f]:r,M=s?t[c]:t;var T=h.slice(1).replace(Ru.paramRE,function(A){return p[d]?n==="pixel"?A=_(o)+Number(A):A=_(A):y[d]&&(i==="pixel"?A=M(l)-Number(A):A=M(A)),d++,d>b&&(A="X"),A});return d>b&&(T=T.replace(/[\s,]*X.*/,""),CD.log("Ignoring extra params in segment "+h)),C&&f++,x&&c++,m+T})}In.getPixelShift=Pu;function Pu(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var xb=ae((yye,LD)=>{"use strict";var Gne=mr(),zu=Ba(),SD=ai(),ED=va(),Yne=qf().readPaths,fc=zf(),Vne=fc.getPathString,ed=om(),Xne=ti().FROM_TL;LD.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=zu.getFromId(r,a.xref),u=zu.getFromId(r,a.yref);let ve=Array.isArray(a.xref),Ae=Array.isArray(a.yref);for(var s in ed){var f=typeof ed[s]=="function",c=!ve||ed.simpleXVariables.includes(s),h=!Ae||ed.simpleYVariables.includes(s);if(f&&c&&h){var d=ed[s](a,l,u);d!==void 0&&(o[s]=d)}}}i=Gne.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},p=a.label.font,y={"data-notex":1},b=n.append("g").attr(m).classed("shape-label",!0),C=b.append("text").attr(y).classed("shape-label-text",!0).text(i),x,_,M,T;if(a.path){var A=Vne(r,a),D=Yne(A,r);x=1/0,M=1/0,_=-1/0,T=-1/0;for(var P=0;P<D.length;P++)for(var z=0;z<D[P].length;z++)for(var B=D[P][z],X=1;X<B.length;X+=2){var H=B[X],V=B[X+1];x=Math.min(x,H),_=Math.max(_,H),M=Math.min(M,V),T=Math.max(T,V)}}else{let ve=Array.isArray(a.xref),Ae=Array.isArray(a.yref),Ee=zu.getFromId(r,ve?a.xref[0]:a.xref),Be=zu.getFromId(r,ve?a.xref[1]:a.xref),Ue=zu.getFromId(r,Ae?a.yref[0]:a.yref),ke=zu.getFromId(r,Ae?a.yref[1]:a.yref),We=zu.getRefType(ve?a.xref[0]:a.xref),j=zu.getRefType(ve?a.xref[1]:a.xref),re=zu.getRefType(Ae?a.yref[0]:a.yref),me=zu.getRefType(Ae?a.yref[1]:a.yref),K=(le,we,Ne,$e)=>fc.getDataToPixel(r,Ne,we,!1,$e)(le),$=(le,we,Ne,$e)=>fc.getDataToPixel(r,Ne,we,!0,$e)(le);if(a.xsizemode==="pixel"){let le=K(a.xanchor,void 0,Ee,We),we=fc.getPixelShift(Ee,a.x0shift),Ne=fc.getPixelShift(Ee,a.x1shift);x=le+a.x0+we,_=le+a.x1+Ne}else x=K(a.x0,a.x0shift,Ee,We),_=K(a.x1,a.x1shift,Be,j);if(a.ysizemode==="pixel"){let le=$(a.yanchor,void 0,Ue,re),we=fc.getPixelShift(Ue,a.y0shift),Ne=fc.getPixelShift(Ue,a.y1shift);M=le-a.y0+we,T=le-a.y1+Ne}else M=$(a.y0,a.y0shift,Ue,re),T=$(a.y1,a.y1shift,ke,me)}var I=a.label.textangle;I==="auto"&&(a.type==="line"?I=Wne(x,M,_,T):I=0),C.call(function(ve){return ve.call(ED.font,p).attr({}),SD.convertToTspans(ve,r),ve});var Q=ED.bBox(C.node()),ne=jne(x,M,_,T,a,I,Q),te=ne.textx,ee=ne.texty,fe=ne.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[fe],y:ee,x:te,transform:"rotate("+I+","+te+","+ee+")"}).call(SD.positionText,te,ee)}};function Wne(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function jne(e,r,t,a,n,i,o){var l=n.label.textposition,u=n.label.textangle,s=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),m=n.label.xanchor,p=n.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":t<e?m="right":m="center":t>e?m="right":t<e?m="left":m="center":l==="end"?u==="auto"?t>e?m="right":t<e?m="left":m="center":t>e?m="left":t<e?m="right":m="center":m="center");var _={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(u==="auto"){var T=M[p];C=-s*h*T,x=s*d*T}else{var A=_[m],D=M[p];C=s*A,x=s*D}y=y+C,b=b+x}else C=s+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-C,m==="auto"&&(m="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+C,m==="auto"&&(m="left")):(y=(e+t)/2,m==="auto"&&(m="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,x=s,p==="bottom"?b=b-x:p==="top"&&(b=b+x);var P=Xne[p],z=n.label.font.size,B=o.height,X=(B*P-z)*h,H=-(B*P-z)*d;return{textx:y+X,texty:b+H,xanchor:m}}});var H2=ae((bye,BD)=>{"use strict";var Zne=mr(),Jne=Zne.strTranslate,DD=Yo(),PD=nv(),$ne=PD.drawMode,RD=PD.selectMode,zD=bt(),FD=Ft(),I2=F2(),Kne=I2.i000,Qne=I2.i090,eie=I2.i180,rie=I2.i270,tie=wf(),ND=tie.clearOutlineControllers,Mb=qf(),B2=Mb.pointsOnRectangle,wb=Mb.pointsOnEllipse,aie=Mb.writePaths,nie=N2().newShapes,iie=N2().createShapeObj,oie=_b(),lie=xb();BD.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(wb(r[0])||a.hasText)&&l({redrawing:!0})}function l(ne){var te={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,te=nie(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,te=oie(t,a),i._fullLayout._reselect=!0),Object.keys(te).length&&zD.call((ne||{}).redrawing?"relayout":"_guiRelayout",i,te)}var u=i._fullLayout,s=u._zoomlayer,f=a.dragmode,c=$ne(f),h=RD(f);(c||h)&&(i._fullLayout._outlining=!0),ND(i),t.attr("d",aie(r));var d,m,p,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=uie([],r);var C=s.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=s.select(".label-temp"),_=iie(t,a,a.dragmode);lie(i,"label-temp",_,x)}function M(ne){p=+ne.srcElement.getAttribute("data-i"),y=+ne.srcElement.getAttribute("data-j"),d[p][y].moveFn=T}function T(ne,te){if(r.length){var ee=b[p][y][1],fe=b[p][y][2],ve=r[p],Ae=ve.length;if(B2(ve)){var Ee=ne,Be=te;if(a.isActiveSelection){var Ue=qD(ve,y);Ue[1]===ve[y][1]?Be=0:Ee=0}for(var ke=0;ke<Ae;ke++)if(ke!==y){var We=ve[ke];We[1]===ve[y][1]&&(We[1]=ee+Ee),We[2]===ve[y][2]&&(We[2]=fe+Be)}if(ve[y][1]=ee+Ee,ve[y][2]=fe+Be,!B2(ve))for(var j=0;j<Ae;j++)for(var re=0;re<ve[j].length;re++)ve[j][re]=b[p][j][re]}else ve[y][1]=ee+ne,ve[y][2]=fe+te;o()}}function A(){l()}function D(){if(r.length&&r[p]&&r[p].length){for(var ne=[],te=0;te<r[p].length;te++)te!==y&&ne.push(r[p][te]);ne.length>1&&!(ne.length===2&&ne[1][0]==="Z")&&(y===0&&(ne[0][0]="M"),r[p]=ne,o(),l())}}function P(ne,te){if(ne===2){p=+te.srcElement.getAttribute("data-i"),y=+te.srcElement.getAttribute("data-j");var ee=r[p];!B2(ee)&&!wb(ee)&&D()}}function z(ne){d=[];for(var te=0;te<r.length;te++){var ee=r[te],fe=B2(ee),ve=!fe&&wb(ee);d[te]=[];for(var Ae=ee.length,Ee=0;Ee<Ae;Ee++)if(ee[Ee][0]!=="Z"&&!(ve&&Ee!==Kne&&Ee!==Qne&&Ee!==eie&&Ee!==rie)){var Be=fe&&a.isActiveSelection,Ue;Be&&(Ue=qD(ee,Ee));var ke=ee[Ee][1],We=ee[Ee][2],j=ne.append(Be?"rect":"circle").attr("data-i",te).attr("data-j",Ee).style({fill:FD.background,stroke:FD.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Be){var re=Ue[1]-ke,me=Ue[2]-We,K=me?5:Math.max(Math.min(25,Math.abs(re)-5),5),$=re?5:Math.max(Math.min(25,Math.abs(me)-5),5);j.classed(me?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",K).attr("height",$).attr("x",ke-K/2).attr("y",We-$/2).attr("transform",Jne(re/2,me/2))}else j.classed("cursor-grab",!0).attr("r",5).attr("cx",ke).attr("cy",We);d[te][Ee]={element:j.node(),gd:i,prepFn:M,doneFn:A,clickFn:P},DD.init(d[te][Ee])}}}function B(ne,te){if(r.length)for(var ee=0;ee<r.length;ee++)for(var fe=0;fe<r[ee].length;fe++)for(var ve=0;ve+2<r[ee][fe].length;ve+=2)r[ee][fe][ve+1]=b[ee][fe][ve+1]+ne,r[ee][fe][ve+2]=b[ee][fe][ve+2]+te}function X(ne,te){B(ne,te),o()}function H(ne){p=+ne.srcElement.getAttribute("data-i"),p||(p=0),m[p].moveFn=X}function V(){l()}function I(ne){ne===2&&sie(i)}function Q(){if(m=[],!!r.length){var ne=0;m[ne]={element:t[0][0],gd:i,prepFn:H,doneFn:V,clickFn:I},DD.init(m[ne])}}};function uie(e,r){for(var t=0;t<r.length;t++){var a=r[t];e[t]=[];for(var n=0;n<a.length;n++){e[t][n]=[];for(var i=0;i<a[n].length;i++)e[t][n][i]=a[n][i]}}return e}function qD(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,o,l;return i=(r+1)%n,o=e[i][1],l=e[i][2],o===t&&l===a&&(i=(r+2)%n,o=e[i][1],l=e[i][2]),[i,o,l]}function sie(e){if(RD(e._fullLayout.dragmode)){ND(e);var r=e._fullLayout._activeSelectionIndex,t=(e.layout||{}).selections||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[r];e._fullLayout._deselect={xref:i.xref,yref:i.yref},zD.call("_guiRelayout",e,{selections:a})}}}});var V2=ae((_ye,jD)=>{"use strict";var fie=Et(),YD=bt(),Tb=mr(),cc=Ba(),cie=qf().readPaths,vie=H2(),U2=xb(),VD=wf().clearOutlineControllers,Ab=Ft(),G2=va(),hie=Ta().arrayEditor,ID=Yo(),HD=Hl(),OD=Df(),vc=Qh(),$i=zf(),kb=$i.getPathString;jD.exports={draw:Cb,drawOne:XD,eraseActiveShape:yie,drawLabel:U2};function Cb(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n<r.shapes.length;n++)r.shapes[n].visible===!0&&XD(e,n)}function O2(e){return!!e._fullLayout._outlining}function Y2(e){return!e._context.edits.shapePosition}function XD(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=$i.makeShapesOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input||a.visible!==!0)return;let i=Array.isArray(a.xref)||Array.isArray(a.yref);if(a.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)l(n.shapelayerBetween);else if(n._hadPlotinfo){var o=n.mainplotinfo||n;l(o.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(u){var s=kb(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:s},c=a.opacity,h=a.fillcolor,d=a.line.width?a.line.color:"rgba(0,0,0,0)",m=a.line.width,p=a.line.dash;!m&&a.editable===!0&&(m=5,p="solid");var y=s[s.length-1]!=="Z",b=Y2(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(h=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var C=u.append("g").classed("shape-group",!0).attr({"data-index":r}),x=C.append("path").attr(f).style("opacity",c).call(Ab.stroke,d).call(Ab.fill,h).call(G2.dashLine,p,m);WD(C,e,a),U2(e,r,a,C);var _;if((b||e._context.edits.shapePosition)&&(_=hie(e.layout,"shapes",a)),b){x.style({cursor:"move"});var M={element:x.node(),plotinfo:n,gd:e,editHelpers:_,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},T=cie(s,e);vie(T,x,M)}else e._context.edits.shapePosition?mie(e,x,a,r,u,_):a.editable===!0&&x.style("pointer-events",y||Ab.opacity(h)*c<=.5?"stroke":"all");x.node().addEventListener("click",function(){return gie(e,x)}),die(e,x,n)}}function die(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var u;let o=t.mainplotinfo||t,l=(u=o==null?void 0:o.draglayer)==null?void 0:u.select(".nsewdrag").node();return l?{clientX:i.clientX,clientY:i.clientY,target:l}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&HD.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&HD.click(e,o,t.id)}})}function WD(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=pie(r,a,n);Tb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),G2.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");G2.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function pie(e,r,t){let a=e._fullLayout._size;function n(l,u){let s=(Array.isArray(l)?l:[l]).map(h=>cc.getFromId(e,h)).filter(Boolean);if(!s.length)return u?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=s.map(function(h){return h._offset}),c=s.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function mie(e,r,t,a,n,i){var o=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,m,p,y,b,C,x,_,M,T,A,D,P,z,B,X=fie.select(r.node().parentNode),H=cc.getFromId(e,t.xref),V=cc.getRefType(t.xref),I=cc.getFromId(e,t.yref),Q=cc.getRefType(t.yref),ne=t.x0shift,te=t.x1shift,ee=t.y0shift,fe=t.y1shift,ve=function(sr,Pe){var vr=$i.getDataToPixel(e,H,Pe,!1,V);return vr(sr)},Ae=function(sr,Pe){var vr=$i.getDataToPixel(e,I,Pe,!0,Q);return vr(sr)},Ee=$i.getPixelToData(e,H,!1,V),Be=$i.getPixelToData(e,I,!0,Q),Ue=j(),ke={element:Ue.node(),gd:e,prepFn:K,doneFn:$,clickFn:le},We;ID.init(ke),Ue.node().onmousemove=me;function j(){return f?re():r}function re(){var sr=10,Pe=Math.max(t.line.width,sr),vr=n.append("g").attr("data-index",a).attr("drag-helper",!0);vr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Pe,"stroke-opacity":"0"});var hr={"fill-opacity":"0"},dr=Math.max(Pe/2,sr);return vr.append("circle").attr({"data-line-point":"start-point",cx:u?ve(t.xanchor)+t.x0:ve(t.x0,ne),cy:s?Ae(t.yanchor)-t.y0:Ae(t.y0,ee),r:dr}).style(hr).classed("cursor-grab",!0),vr.append("circle").attr({"data-line-point":"end-point",cx:u?ve(t.xanchor)+t.x1:ve(t.x1,te),cy:s?Ae(t.yanchor)-t.y1:Ae(t.y1,fe),r:dr}).style(hr).classed("cursor-grab",!0),vr}function me(sr){if(O2(e)){We=null;return}if(f)sr.target.tagName==="path"?We="move":We=sr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Pe=ke.element.getBoundingClientRect(),vr=Pe.right-Pe.left,hr=Pe.bottom-Pe.top,dr=sr.clientX-Pe.left,Ze=sr.clientY-Pe.top,fr=!c&&vr>o&&hr>l&&!sr.shiftKey?ID.getCursor(dr/vr,1-Ze/hr):"move";OD(r,fr),We=fr.split("-")[0]}}function K(sr){O2(e)||(u&&(b=ve(t.xanchor)),s&&(C=Ae(t.yanchor)),t.type==="path"?B=t.path:(d=u?t.x0:ve(t.x0),m=s?t.y0:Ae(t.y0),p=u?t.x1:ve(t.x1),y=s?t.y1:Ae(t.y1)),d<p?(M=d,P="x0",T=p,z="x1"):(M=p,P="x1",T=d,z="x0"),!s&&m<y||s&&m>y?(x=m,A="y0",_=y,D="y1"):(x=y,A="y1",_=m,D="y0"),me(sr),$e(n,t),ir(r,t,e),ke.moveFn=We==="move"?we:Ne,ke.altKey=sr.altKey)}function $(){O2(e)||(OD(r),er(n),WD(r,e,t),YD.call("_guiRelayout",e,i.getUpdateObj()))}function le(){O2(e)||er(n)}function we(sr,Pe){if(t.type==="path"){var vr=function(Ze){return Ze},hr=vr,dr=vr;u?h("xanchor",t.xanchor=Ee(b+sr)):(hr=function(fr){return Ee(ve(fr)+sr)},H&&H.type==="date"&&(hr=$i.encodeDate(hr))),s?h("yanchor",t.yanchor=Be(C+Pe)):(dr=function(fr){return Be(Ae(fr)+Pe)},I&&I.type==="date"&&(dr=$i.encodeDate(dr))),h("path",t.path=UD(B,hr,dr))}else u?h("xanchor",t.xanchor=Ee(b+sr)):(h("x0",t.x0=Ee(d+sr)),h("x1",t.x1=Ee(p+sr))),s?h("yanchor",t.yanchor=Be(C+Pe)):(h("y0",t.y0=Be(m+Pe)),h("y1",t.y1=Be(y+Pe)));r.attr("d",kb(e,t)),$e(n,t),U2(e,a,t,X)}function Ne(sr,Pe){if(c){var vr=function(xr){return xr},hr=vr,dr=vr;u?h("xanchor",t.xanchor=Ee(b+sr)):(hr=function(Pr){return Ee(ve(Pr)+sr)},H&&H.type==="date"&&(hr=$i.encodeDate(hr))),s?h("yanchor",t.yanchor=Be(C+Pe)):(dr=function(Pr){return Be(Ae(Pr)+Pe)},I&&I.type==="date"&&(dr=$i.encodeDate(dr))),h("path",t.path=UD(B,hr,dr))}else if(f){if(We==="resize-over-start-point"){var Ze=d+sr,fr=s?m-Pe:m+Pe;h("x0",t.x0=u?Ze:Ee(Ze)),h("y0",t.y0=s?fr:Be(fr))}else if(We==="resize-over-end-point"){var Dr=p+sr,Te=s?y-Pe:y+Pe;h("x1",t.x1=u?Dr:Ee(Dr)),h("y1",t.y1=s?Te:Be(Te))}}else{var Oe=function(xr){return We.indexOf(xr)!==-1},Mr=Oe("n"),Nr=Oe("s"),Qe=Oe("w"),Ie=Oe("e"),Xe=Mr?x+Pe:x,yr=Nr?_+Pe:_,kr=Qe?M+sr:M,pr=Ie?T+sr:T;s&&(Mr&&(Xe=x-Pe),Nr&&(yr=_-Pe)),(!s&&yr-Xe>l||s&&Xe-yr>l)&&(h(A,t[A]=s?Xe:Be(Xe)),h(D,t[D]=s?yr:Be(yr))),pr-kr>o&&(h(P,t[P]=u?kr:Ee(kr)),h(z,t[z]=u?pr:Ee(pr)))}r.attr("d",kb(e,t)),$e(n,t),U2(e,a,t,X)}function $e(sr,Pe){(u||s)&&vr();function vr(){var hr=Pe.type!=="path",dr=sr.selectAll(".visual-cue").data([0]),Ze=1;dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ze}).classed("visual-cue",!0);var fr=ve(u?Pe.xanchor:Tb.midRange(hr?[Pe.x0,Pe.x1]:$i.extractPathCoords(Pe.path,vc.paramIsX))),Dr=Ae(s?Pe.yanchor:Tb.midRange(hr?[Pe.y0,Pe.y1]:$i.extractPathCoords(Pe.path,vc.paramIsY)));if(fr=$i.roundPositionForSharpStrokeRendering(fr,Ze),Dr=$i.roundPositionForSharpStrokeRendering(Dr,Ze),u&&s){var Te="M"+(fr-1-Ze)+","+(Dr-1-Ze)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";dr.attr("d",Te)}else if(u){var Oe="M"+(fr-1-Ze)+","+(Dr-9-Ze)+"v18 h2 v-18 Z";dr.attr("d",Oe)}else{var Mr="M"+(fr-9-Ze)+","+(Dr-1-Ze)+"h18 v2 h-18 Z";dr.attr("d",Mr)}}}function er(sr){sr.selectAll(".visual-cue").remove()}function ir(sr,Pe,vr){var hr=Pe.xref,dr=Pe.yref,Ze=cc.getFromId(vr,hr),fr=cc.getFromId(vr,dr),Dr="";hr!=="paper"&&!Ze.autorange&&(Dr+=hr),dr!=="paper"&&!fr.autorange&&(Dr+=dr),G2.setClipUrl(sr,Dr?"clip"+vr._fullLayout._uid+Dr:null,vr)}}function UD(e,r,t){return e.replace(vc.segmentRE,function(a){var n=0,i=a.charAt(0),o=vc.paramIsX[i],l=vc.paramIsY[i],u=vc.numParams[i],s=a.slice(1).replace(vc.paramRE,function(f){return n>=u||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+s})}function gie(e,r){if(Y2(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){GD(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=GD,Cb(e)}}}function GD(e){if(Y2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(VD(e),delete e._fullLayout._activeShapeIndex,Cb(e))}}function yie(e){if(Y2(e)){VD(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);return delete e._fullLayout._activeShapeIndex,YD.call("_guiRelayout",e,{shapes:a})}}}});var JD=ae((xye,ZD)=>{"use strict";var lv=mr()._,bie=function(e){return{DIALOG_TITLE:lv(e,"Share chart"),DIALOG_MESSAGE_CLOUD:lv(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:lv(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:lv(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:lv(e,"Cancel"),DIALOG_CONFIRM:lv(e,"Share")}};ZD.exports=bie});var QD=ae((wye,KD)=>{"use strict";var $D=Et(),{dfltConfig:_ie}=cf(),xie=JD(),wie=(e,r,t,a,n)=>{let i=xie(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===_ie.plotlyServerURL){let u=o.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(h),u.append("span").text(d),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],m=o.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(h),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),m.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},Mie=(e,r,t)=>{let a=$D.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{$D.event.target===n.node()&&i()}),wie(e,n,r,()=>{i(),t()},i)};KD.exports=Mie});var Lb=ae((Mye,oF)=>{"use strict";var Wo=bt(),Aie=Mn(),rF=wn(),ra=L2(),Tie=V2().eraseActiveShape,kie=QD(),X2=mr(),Ut=X2._,ta=oF.exports={};ta.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ut(e,"Download plot as a PNG"):Ut(e,"Download plot")},icon:ra.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};X2.notifier(Ut(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wo.call("downloadImage",e,t).then(function(a){X2.notifier(Ut(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){X2.notifier(Ut(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ta.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ut(e,"Share chart...")},icon:ra.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}kie(e,r,function(){Aie.sendDataToCloud(e,r)})}};ta.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ut(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ra.zoombox,click:yi};ta.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ut(e,"Pan")},attr:"dragmode",val:"pan",icon:ra.pan,click:yi};ta.select2d={name:"select2d",_cat:"select",title:function(e){return Ut(e,"Box Select")},attr:"dragmode",val:"select",icon:ra.selectbox,click:yi};ta.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ut(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ra.lasso,click:yi};ta.drawclosedpath={name:"drawclosedpath",title:function(e){return Ut(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ra.drawclosedpath,click:yi};ta.drawopenpath={name:"drawopenpath",title:function(e){return Ut(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ra.drawopenpath,click:yi};ta.drawline={name:"drawline",title:function(e){return Ut(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ra.drawline,click:yi};ta.drawrect={name:"drawrect",title:function(e){return Ut(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ra.drawrect,click:yi};ta.drawcircle={name:"drawcircle",title:function(e){return Ut(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ra.drawcircle,click:yi};ta.eraseshape={name:"eraseshape",title:function(e){return Ut(e,"Erase active shape")},icon:ra.eraseshape,click:Tie};ta.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:ra.zoom_plus,click:yi};ta.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:ra.zoom_minus,click:yi};ta.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ut(e,"Autoscale")},attr:"zoom",val:"auto",icon:ra.autoscale,click:yi};ta.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ut(e,"Reset axes")},attr:"zoom",val:"reset",icon:ra.home,click:yi};ta.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ut(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ra.tooltip_basic,gravity:"ne",click:yi};ta.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ut(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ra.tooltip_compare,gravity:"ne",click:yi};function yi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=rF.list(e,null,!0),u=i._cartesianSpikesEnabled,s,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,m,p;for(f=0;f<l.length;f++)if(s=l[f],p=s.modebardisable==="none"||s.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,p&&!s.fixedrange)if(m=s._name,n==="auto")o[m+".autorange"]=!0;else if(n==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?o[m+".autorange"]=!0:s._rangeInitial0===void 0?(o[m+".autorange"]=s._autorangeInitial,o[m+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(o[m+".range"]=[s._rangeInitial0,null],o[m+".autorange"]=s._autorangeInitial):o[m+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(o[m+".showspikes"]=s._showSpikeInitial,u==="on"&&!s._showSpikeInitial&&(u="off"));else{var y=[s.r2l(s.range[0]),s.r2l(s.range[1])],b=[h*y[0]+d*y[1],h*y[1]+d*y[0]];o[m+".range[0]"]=s.l2r(b[0]),o[m+".range[1]"]=s.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=u,Wo.call("_guiRelayout",e,o)}ta.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Ut(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:ra.zoombox,click:j2};ta.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Ut(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:ra.pan,click:j2};ta.orbitRotation={name:"orbitRotation",title:function(e){return Ut(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:ra["3d_rotate"],click:j2};ta.tableRotation={name:"tableRotation",title:function(e){return Ut(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:ra["z-axis"],click:j2};function j2(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],o={},l=a.split("."),u=0;u<i.length;u++)o[i[u]+"."+l[1]]=n;var s=n==="pan"?n:"zoom";o.dragmode=s,Wo.call("_guiRelayout",e,o)}ta.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Ut(e,"Reset camera to default")},attr:"resetDefault",icon:ra.home,click:Sb};ta.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Ut(e,"Reset camera to last save")},attr:"resetLastSave",icon:ra.movie,click:Sb};function Sb(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",o=e._fullLayout,l=o._subplots.gl3d||[],u={},s=0;s<l.length;s++){var f=l[s],c=f+".camera",h=f+".aspectratio",d=f+".aspectmode",m=o[f]._scene,p;n?(u[c+".up"]=m.viewInitial.up,u[c+".eye"]=m.viewInitial.eye,u[c+".center"]=m.viewInitial.center,p=!0):i&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,p=!0),p&&(u[h+".x"]=m.viewInitial.aspectratio.x,u[h+".y"]=m.viewInitial.aspectratio.y,u[h+".z"]=m.viewInitial.aspectratio.z,u[d]=m.viewInitial.aspectmode)}Wo.call("_guiRelayout",e,u)}ta.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ra.tooltip_basic,gravity:"ne",click:Cie};function tF(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},u={};if(a)u=a,t._previousVal=null;else{for(var s=0;s<i.length;s++){var f=i[s],c=n[f],h=f+".hovermode";l[h]=c.hovermode,u[h]=!1;for(var d=0;d<3;d++){var m=o[d],p=f+"."+m+".showspikes";u[p]=!1,l[p]=c[m].showspikes}}t._previousVal=l}return u}function Cie(e,r){var t=tF(e,r);Wo.call("_guiRelayout",e,t)}ta.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:ra.zoom_plus,click:Eb};ta.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:ra.zoom_minus,click:Eb};ta.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Ut(e,"Reset")},attr:"reset",val:null,icon:ra.autoscale,click:Eb};ta.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ra.tooltip_basic,gravity:"ne",click:nF};var eF=2;function Eb(e,r){var l;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o=i._subplots.geo||[];for(let u of o){let s=i[u],f=s._subplot;if(a==="zoom"){let c=f.projection,h=c.scale()/f.fitScale,[d,m]=c.rotate().map(T=>-T),[p,y]=c.invert(f.midPt),{minscale:b}=s.projection,C=(l=s.projection.maxscale)!=null?l:1/0,x=Math.min(b,C),_=Math.max(b,C),M=n==="in"?eF*h:1/eF*h;M>_?M=_:M<x&&(M=x),M!==h&&Wo.call("_guiRelayout",e,{[u+".projection.scale"]:M,[u+".projection.rotation.lon"]:d,[u+".projection.rotation.lat"]:m,[u+".center.lon"]:p,[u+".center.lat"]:y,[u+".fitbounds"]:!1})}}a==="reset"&&W2(e,"geo")}ta.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:ra.tooltip_basic,gravity:"ne",click:nF};function aF(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function nF(e){var r=aF(e);Wo.call("_guiRelayout",e,"hovermode",r)}ta.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Ut(e,"Reset view")},icon:ra.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var a=e._fullData[t]._viewInitial;r["node.groups"].push(a.node.groups.slice()),r["node.x"].push(a.node.x.slice()),r["node.y"].push(a.node.y.slice())}Wo.call("restyle",e,r)}};ta.toggleHover={name:"toggleHover",title:function(e){return Ut(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ra.tooltip_basic,gravity:"ne",click:function(e,r){var t=tF(e,r);t.hovermode=aF(e),Wo.call("_guiRelayout",e,t)}};ta.resetViews={name:"resetViews",title:function(e){return Ut(e,"Reset views")},icon:ra.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),yi(e,r),t.setAttribute("data-attr","resetLastSave"),Sb(e,r),W2(e,"geo"),W2(e,"map")}};ta.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Ut(e,"Toggle Spike Lines")},icon:ra.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Wo.call("_guiRelayout",e,Sie(e))}};function Sie(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=rF.list(e,null,!0),n={},i=0;i<a.length;i++){var o=a[i];n[o._name+".showspikes"]=t?!0:o._showSpikeInitial}return n}ta.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Ut(e,"Reset view")},attr:"reset",icon:ra.home,click:function(e){W2(e,"map")}};ta.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:ra.zoom_plus,click:iF};ta.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:ra.zoom_minus,click:iF};function iF(e,r){Eie(e,r,"map")}function Eie(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,u={},s=0;s<o.length;s++){var f=o[s],c=i[f].zoom,h=n==="in"?l*c:c/l;u[f+".zoom"]=h}Wo.call("_guiRelayout",e,u)}function W2(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var o=a[i],l=t[o]._subplot,u=l.viewInitial,s=Object.keys(u),f=0;f<s.length;f++){var c=s[f];n[o+"."+c]=u[c]}Wo.call("_guiRelayout",e,n)}});var Db=ae((Aye,fF)=>{"use strict";var lF=Lb(),Lie=Object.keys(lF),uF=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],sF=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(uF),uv=[],Die=function(e){if(sF.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();uv.indexOf(r)===-1&&uv.push(r),uv.indexOf(t)===-1&&uv.push(t)}};Lie.forEach(function(e){Die(lF[e])});uv.sort();fF.exports={DRAW_MODES:uF,backButtons:sF,foreButtons:uv}});var qb={};u1(qb,{default:()=>qie});var Fb,Fie,qie,Pb=l1(()=>{"use strict";Fb=fy(Db()),Fie={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${Fb.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${Fb.default.foreButtons.join("*, *")}*.`].join(" ")}},qie=Fie});var vF=ae((Tye,cF)=>{"use strict";var Pie=mr(),rd=Ft(),Rie=Ta(),zie=(Pb(),ei(qb)).default;cF.exports=function(r,t){var a=r.modebar||{},n=Rie.newContainer(t,"modebar");function i(l,u){return Pie.coerce(a,n,zie,l,u)}i("orientation"),i("bgcolor",rd.addOpacity(t.paper_bgcolor,.5));var o=rd.contrast(rd.rgb(t.modebar.bgcolor));i("color",rd.addOpacity(o,.3)),i("activecolor",rd.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var mF=ae((kye,pF)=>{"use strict";var Rb=Et(),Nie=Wt(),Z2=mr(),hF=L2(),Bie=Jv().version,Iie=new DOMParser;function dF(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Nu=dF.prototype;Nu.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Z2.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Nu.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Nu.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Nu.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Rb.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||hF.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Nu.createIcon=function(e){var r=Nie(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Iie.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Nu.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=Rb.select(a),u=function(c,h){var d=r.modebar,m=c.querySelector(".icon path");m&&(h||c.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var s=!l.classed("active");l.classed("active",s),u(a,s)}}else{var f=i===null?i:Z2.nestedProperty(r,i).get();l.classed("active",f===n),u(a,f===n)}})};Nu.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t<e.length;++t){if(e[t].length!==r[t].length)return!1;for(var a=0;a<e[t].length;a++)if(e[t][a].name!==r[t][a].name)return!1}return!0};function Hie(e){return e+" (v"+Bie+")"}Nu.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Hie(Z2._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(hF.newplotlylogo)),e.appendChild(r),e};Nu.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Nu.destroy=function(){Z2.removeElement(this.container.querySelector(".modebar"))};function Oie(e,r){var t=e._fullLayout,a=new dF({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&Rb.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}pF.exports=Oie});var bF=ae((Cye,yF)=>{"use strict";var Uie=wn(),gF=pi(),zb=bt(),Gie=Ls().isUnifiedHover,Yie=mF(),J2=Lb(),Vie=Db().DRAW_MODES,Xie=mr().extendDeep;yF.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Kie(i):!a.displayModeBar&&a.watermark?o=[]:o=Wie(r),n?n.update(r,o):t._modeBar=Yie(r,o)};function Wie(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(ne,te){if(typeof te=="string"){if(te.toLowerCase()===ne.toLowerCase())return!0}else{var ee=te.name,fe=te._cat||te.name;if(ee===ne||fe===ne.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(ne){for(var te=0;te<a.modeBarButtonsToRemove.length;te++)if(n(ne,a.modeBarButtonsToRemove[te]))return!1;return!0})),u=a.modeBarButtonsToRemove.concat(o.filter(function(ne){for(var te=0;te<a.modeBarButtonsToAdd.length;te++)if(n(ne,a.modeBarButtonsToAdd[te]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),h=r._has("pie"),d=r._has("funnelarea"),m=r._has("ternary"),p=r._has("map"),y=r._has("polar"),b=r._has("smith"),C=r._has("sankey"),x=jie(r),_=Gie(r.hovermode),M=[];function T(ne){if(ne.length){for(var te=[],ee=0;ee<ne.length;ee++){for(var fe=ne[ee],ve=J2[fe],Ae=ve.name.toLowerCase(),Ee=(ve._cat||ve.name).toLowerCase(),Be=!1,Ue=0;Ue<u.length;Ue++){var ke=u[Ue].toLowerCase();if(ke===Ae||ke===Ee){Be=!0;break}}Be||te.push(J2[fe])}M.push(te)}}var A=["toImage"];a.showSendToCloud&&A.push("sendChartToCloud"),T(A);var D=[],P=[],z=[],B=[];(s||h||d||m)+c+f+p+y+b>1?(P=["toggleHover"],z=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(D=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],s&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Jie(t)||_)&&(P=[]),s&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?B=["zoom2d","pan2d"]:p||c?B=["pan2d"]:y&&(B=["zoom2d"]),Zie(t)&&B.push("select2d","lasso2d");var X=[],H=function(ne){X.indexOf(ne)===-1&&P.indexOf(ne)!==-1&&X.push(ne)};if(Array.isArray(l)){for(var V=[],I=0;I<l.length;I++){var Q=l[I];typeof Q=="string"?(Q=Q.toLowerCase(),Vie.indexOf(Q)!==-1?(r._has("map")||r._has("cartesian"))&&B.push(Q):Q==="togglespikelines"?H("toggleSpikelines"):Q==="togglehover"?H("toggleHover"):Q==="hovercompare"?H("hoverCompareCartesian"):Q==="hoverclosest"?(H("hoverClosestCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestPie")):Q==="v1hovermode"&&(H("hoverClosestCartesian"),H("hoverCompareCartesian"),H("hoverClosestGeo"),H("hoverClosest3d"),H("hoverClosestPie"))):V.push(Q)}l=V}return T(B),T(D.concat(z)),T(X),$ie(M,l)}function jie(e){for(var r=Uie.list({_fullLayout:e},null,!0),t=0;t<r.length;t++){var a=r[t].modebardisable;if(!r[t].fixedrange&&a!=="autoscale+zoominout"&&a!=="zoominout+autoscale")return!1}return!0}function Zie(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(zb.traceIs(a,"scatter-like")&&a.type!=="quiver"?(gF.hasMarkers(a)||gF.hasText(a))&&(r=!0):zb.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function Jie(e){for(var r=0;r<e.length;r++)if(!zb.traceIs(e[r],"noHover"))return!1;return!0}function $ie(e,r){if(r.length)if(Array.isArray(r[0]))for(var t=0;t<r.length;t++)e.push(r[t]);else e.push(r);return e}function Kie(e){for(var r=Xie([],e),t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;n++){var i=a[n];if(typeof i=="string")if(J2[i]!==void 0)r[t][n]=J2[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var Nb=ae((Sye,_F)=>{"use strict";_F.exports={moduleType:"component",name:"modebar",layoutAttributes:(Pb(),ei(qb)).default,supplyLayoutDefaults:vF(),manage:bF()}});var Bb=ae((Eye,xF)=>{"use strict";var Qie=ti().FROM_BL;xF.exports=function(r,t,a){a===void 0&&(a=Qie[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var ad=ae(td=>{"use strict";var hc=mr(),Ib=Ef(),Ol=wn().id2name,eoe=Nl(),wF=Bb(),roe=t2(),toe=Oa().ALMOST_EQUAL,aoe=ti().FROM_BL;td.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,u,s,f,c,h,d,m;for(l=0;l<a.length;l++)f=Ol(a[l]),c=e[f],h=r[f],noe(c,h,{axIds:a,layoutOut:r,hasImage:n[f]});function p(D,P){for(l=0;l<D.length;l++){u=D[l];for(s in u)r[Ol(s)][P]=u}}for(p(o,"_matchGroup"),l=0;l<i.length;l++){u=i[l];for(s in u)if(h=r[Ol(s)],h.fixedrange){for(var y in u){var b=Ol(y);(e[b]||{}).fixedrange===!1&&hc.warn("fixedrange was specified as false for axis "+b+" but was overridden because another axis in its constraint group has fixedrange true"),r[b].fixedrange=!0}break}}for(l=0;l<i.length;){u=i[l];for(s in u){h=r[Ol(s)],h._matchGroup&&Object.keys(h._matchGroup).length===Object.keys(u).length&&(i.splice(l,1),l--);break}l++}p(i,"_constraintGroup");var C=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],x=!1,_=!1;function M(){m=h[d],d==="rangebreaks"&&(_=h._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){u=o[l];for(var T=0;T<C.length;T++){d=C[T],m=null;var A;for(s in u)if(f=Ol(s),c=e[f],h=r[f],d in h){if(!h.matches&&(A=h,d in c)){M();break}m===null&&d in c&&M()}if(d==="range"&&m&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(x=!0),d==="autorange"&&m===null&&x&&(m=!1),m===null&&d in A&&(m=A[d]),m!==null)for(s in u)h=r[Ol(s)],h[d]=d==="range"?m.slice():m,d==="rangebreaks"&&(h._hasDayOfWeekBreaks=_,roe(h,r))}}};function noe(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,u=r._id,s=u.charAt(0),f=((n._splomAxes||{})[s]||{})[u]||{},c=r._id,h=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function d(X,H){return hc.coerce(e,r,eoe,X,H)}d("constrain",i?"domain":"range"),hc.coerce(e,r,{constraintoward:{valType:"enumerated",values:h?["left","center","right"]:["bottom","middle","top"],dflt:h?"center":"middle"}},"constraintoward");var m=r.type,p,y,b=[];for(p=0;p<a.length;p++)if(y=a[p],y!==c){var C=n[Ol(y)];C.type===m&&b.push(y)}var x=TF(o,c);if(x){var _=[];for(p=0;p<b.length;p++)y=b[p],x[y]||_.push(y);b=_}var M=b.length,T,A;M&&(e.matches||f.matches)&&(T=hc.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var D=i&&!h?r.anchor:void 0;if(M&&!T&&(e.scaleanchor||D)&&(A=hc.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",D)),T){r._matchGroup=Hb(l,c,T,1);var P=n[Ol(T)],z=MF(n,r)/MF(n,P);h!==(T.charAt(0)==="x")&&(z=(h?"x":"y")+z),Hb(o,c,T,z)}else e.matches&&a.indexOf(e.matches)!==-1&&hc.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(A){var B=d("scaleratio");B||(B=r.scaleratio=1),Hb(o,c,A,B)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&hc.warn("ignored "+r._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function MF(e,r){var t=r.domain;return t||(t=e[Ol(r.overlaying)].domain),t[1]-t[0]}function TF(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function Hb(e,r,t,a){var n,i,o,l,u,s=TF(e,r);s===null?(s={},s[r]=1,u=e.length,e.push(s)):u=e.indexOf(s);var f=Object.keys(s);for(n=0;n<e.length;n++)if(o=e[n],n!==u&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=Ob(c,Ob(a,s[l]));e.splice(u,1);return}if(a!==1)for(i=0;i<f.length;i++){var h=f[i];s[h]=Ob(a,s[h])}s[t]=1}function Ob(e,r){var t="",a="",n,i;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],n=t.length,e=+e.slice(n)),typeof r=="string"&&(a=r.match(/^[xy]*/)[0],i=a.length,r=+r.slice(i));var o=e*r;return!n&&!i?o:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?o:(n>i?t.slice(i):a.slice(n))+o}function ioe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],u=e[l];if(typeof u=="string"){var s=u.match(/^[xy]*/)[0],f=s.length;u=+u.slice(f);for(var c=s.charAt(0)==="y"?a:1/a,h=0;h<f;h++)u*=c}n[l]=u}return n}td.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,u,s,f,c;for(n=0;n<a.length;n++){o=ioe(a[n],t);var h=Object.keys(o),d=1/0,m=0,p=1/0,y={},b={},C=!1;for(i=0;i<h.length;i++)l=h[i],b[l]=u=t[Ol(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),y[l]=s=Math.abs(u._m)/o[l],d=Math.min(d,s),(u.constrain==="domain"||!u._constraintShrinkable)&&(p=Math.min(p,s)),delete u._constraintShrinkable,m=Math.max(m,s),u.constrain==="domain"&&(C=!0);if(!(d>toe*m&&!C)){for(i=0;i<h.length;i++)if(l=h[i],s=y[l],u=b[l],f=u.constrain,s!==p||f==="domain")if(c=s/p,f==="range")wF(u,c);else{var x=u._inputDomain,_=(u.domain[1]-u.domain[0])/(x[1]-x[0]),M=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(c/=_,c*M<1){u.domain=u._input.domain=x.slice(),wF(u,c);continue}if(M<1&&(u.range=u._input.range=u._inputRange.slice(),c*=M),u.autorange){var T=u.r2l(u.range[0]),A=u.r2l(u.range[1]),D=(T+A)/2,P=D,z=D,B=Math.abs(A-D),X=D-B*c*1.0001,H=D+B*c*1.0001,V=Ib.makePadFn(t,u,0),I=Ib.makePadFn(t,u,1);AF(u,c);var Q=Math.abs(u._m),ne=Ib.concatExtremes(r,u),te=ne.min,ee=ne.max,fe,ve;for(ve=0;ve<te.length;ve++)fe=te[ve].val-V(te[ve])/Q,fe>X&&fe<P&&(P=fe);for(ve=0;ve<ee.length;ve++)fe=ee[ve].val+I(ee[ve])/Q,fe<H&&fe>z&&(z=fe);var Ae=(z-P)/(2*B);c/=Ae,P=u.l2r(P),z=u.l2r(z),u.range=u._input.range=T<A?[P,z]:[z,P]}AF(u,c)}}}};td.getAxisGroup=function(r,t){for(var a=r._axisMatchGroups,n=0;n<a.length;n++){var i=a[n];if(i[t])return"g"+n}return t};td.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,o=0;o<i.length;o++)if(i[o][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function AF(e,r){var t=e._inputDomain,a=aoe[e.constraintoward],n=t[0]+(t[1]-t[0])*a;e.domain=e._input.domain=[n+(t[0]-n)/r,n+(t[1]-n)/r],e.setScale()}});var Q2=ae(qn=>{"use strict";var K2=Et(),bi=bt(),xo=Mn(),jo=mr(),Ub=ai(),Gb=E2(),nd=Ft(),sv=va(),kF=Bh(),DF=Nb(),id=Ba(),Ps=ti(),FF=ad(),ooe=FF.enforce,loe=FF.clean,CF=Ef().doAutoRange,qF="start",uoe="middle",PF="end",soe=Dn().zindexSeparator;qn.layoutStyles=function(e){return jo.syncOrAsync([xo.doAutoMargin,coe],e)};function foe(e,r,t){for(var a=0;a<t.length;a++){var n=t[a][0],i=t[a][1];if(!(n[0]>=e[1]||n[1]<=e[0])&&i[0]<r[1]&&i[1]>r[0])return!0}return!1}function coe(e){var r=e._fullLayout,t=r._size,a=t.p,n=id.list(e,"",!0),i,o,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(sv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),qn.drawMainTitle(e),DF.manage(e),!r._has("cartesian"))return xo.previousPromises(e);function c(K,$,le){var we=K._lw/2;if(K._id.charAt(0)==="x"){if($){if(le==="top")return $._offset-a-we}else return t.t+t.h*(1-(K.position||0))+we%1;return $._offset+$._length+a+we}if($){if(le==="right")return $._offset+$._length+a+we}else return t.l+t.w*(K.position||0)+we%1;return $._offset-a-we}for(i=0;i<n.length;i++){u=n[i];var h=u._anchorAxis;u._linepositions={},u._lw=sv.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,h,u.side),u._mainMirrorPosition=u.mirror&&h?c(u,h,Ps.OPPOSITE_SIDE[u.side]):null}var d=[],m=[],p=[],y=nd.opacity(r.paper_bgcolor)===1&&nd.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(o in r._plots)if(l=r._plots[o],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var b=l.xaxis.domain,C=l.yaxis.domain,x=l.plotgroup;if(foe(b,C,p)&&o.indexOf(soe)===-1){var _=x.node(),M=l.bg=jo.ensureSingle(x,"rect","bg");_.insertBefore(M.node(),_.childNodes[0]),m.push(o)}else x.select("rect.bg").remove(),p.push([b,C]),y||(d.push(o),m.push(o))}var T=r._bgLayer.selectAll(".bg").data(d);for(T.enter().append("rect").classed("bg",!0),T.exit().remove(),T.each(function(K){r._plots[K].bg=K2.select(this)}),i=0;i<m.length;i++)l=r._plots[m[i]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(sv.setRect,s._offset-a,f._offset-a,s._length+2*a,f._length+2*a).call(nd.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],s=l.xaxis,f=l.yaxis;var A=l.clipId="clip"+r._uid+o+"plot",D=jo.ensureSingleById(r._clips,"clipPath",A,function(K){K.classed("plotclip",!0).append("rect")});l.clipRect=D.select("rect").attr({width:s._length,height:f._length}),sv.setTranslate(l.plot,s._offset,f._offset);var P,z;l._hasClipOnAxisFalse?(P=null,z=A):(P=A,z=null),sv.setClipUrl(l.plot,P,e),l.layerClipId=z}var B,X,H,V,I,Q,ne,te,ee,fe,ve,Ae,Ee;function Be(K){return"M"+B+","+K+"H"+X}function Ue(K){return"M"+s._offset+","+K+"h"+s._length}function ke(K){return"M"+K+","+te+"V"+ne}function We(K){return f._shift!==void 0&&(K+=f._shift),"M"+K+","+f._offset+"v"+f._length}function j(K,$,le){if(!K.showline||o!==K._mainSubplot)return"";if(!K._anchorAxis)return le(K._mainLinePosition);var we=$(K._mainLinePosition);return K.mirror&&(we+=$(K._mainMirrorPosition)),we}for(o in r._plots){l=r._plots[o],s=l.xaxis,f=l.yaxis;var re="M0,0";SF(s,o)&&(I=$2(s,"left",f,n),B=s._offset-(I?a+I:0),Q=$2(s,"right",f,n),X=s._offset+s._length+(Q?a+Q:0),H=c(s,f,"bottom"),V=c(s,f,"top"),Ee=!s._anchorAxis||o!==s._mainSubplot,Ee&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[o]=[H,V]),re=j(s,Be,Ue),Ee&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&(re+=Be(H)+Be(V)),l.xlines.style("stroke-width",s._lw+"px").call(nd.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",re);var me="M0,0";SF(f,o)&&(ve=$2(f,"bottom",s,n),ne=f._offset+f._length+(ve?a:0),Ae=$2(f,"top",s,n),te=f._offset-(Ae?a:0),ee=c(f,s,"left"),fe=c(f,s,"right"),Ee=!f._anchorAxis||o!==f._mainSubplot,Ee&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[ee,fe]),me=j(f,ke,We),Ee&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(me+=ke(ee)+ke(fe)),l.ylines.style("stroke-width",f._lw+"px").call(nd.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",me)}return id.makeClipPaths(e),xo.previousPromises(e)}function SF(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function EF(e,r,t){if(!t.showline||!t._lw)return!1;if(t.mirror==="all"||t.mirror==="allticks")return!0;var a=t._anchorAxis;if(!a)return!1;var n=Ps.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function $2(e,r,t,a){if(EF(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&EF(e,r,i))return i._lw}return 0}qn.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=yoe(t),n=boe(t),i=goe(t,n),o=moe(t,a);if(kF.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:o,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var l=K2.select(e).selectAll(".gtitle"),u=sv.bBox(K2.select(e).selectAll(".g-gtitle").node()).height,s=doe(e,r,u);if(s>0){poe(e,i,s,u),l.attr({x:o,y:i,"text-anchor":a,dy:LF(r.yanchor)}).call(Ub.positionText,o,i);var f=(r.text.match(Ub.BR_TAG_ALL)||[]).length;if(f){var c=Ps.LINE_SPACING*f+Ps.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=K2.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+kF.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":a,dy:LF(r.yanchor)}).call(Ub.positionText,o,p)}}}};function voe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jo.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jo.isTopAnchor(r)&&t==="t"||jo.isBottomAnchor(r)&&t==="b"?!1:l<n}function hoe(e,r,t,a,n){var i=0;return t==="middle"&&(i+=n/2),e==="t"?(t==="top"&&(i+=n),i+=a-r*a):(t==="bottom"&&(i+=n),i+=r*a),i}function doe(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=hoe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function poe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},u={};i.yref==="paper"&&voe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(u[o]=t,e._fullLayout._reservedMargin[n]=u),xo.allowAutoMargin(e,n),xo.autoMargin(e,n,l)}function moe(e,r){var t=e.title,a=e._size,n=0;return r===qF?n=t.pad.l:r===PF&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function goe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Ps.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function LF(e){return e==="top"?Ps.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Ps.MID_SHIFT+"em"}function yoe(e){var r=e.title,t=uoe;return jo.isRightAnchor(r)?t=PF:jo.isLeftAnchor(r)&&(t=qF),t}function boe(e){var r=e.title,t="0em";return jo.isTopAnchor(r)?t=Ps.CAP_SHIFT+"em":jo.isMiddleAnchor(r)&&(t=Ps.MID_SHIFT+"em"),t}qn.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},o=i.trace||{},l=o._module||{},u=l.arraysToCalcdata;u&&u(n,o);var s=l.editStyle;s&&t.push({fn:s,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}Gb(e),qn.redrawReglTraces(e)}return xo.style(e),bi.getComponentMethod("legend","draw")(e),xo.previousPromises(e)};qn.doColorBars=function(e){return bi.getComponentMethod("colorbar","draw")(e),xo.previousPromises(e)};qn.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,bi.call("_doPlot",e,"",r)};qn.doLegend=function(e){return bi.getComponentMethod("legend","draw")(e),xo.previousPromises(e)};qn.doTicksRelayout=function(e){var r=id.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(bi.subplotsRegistry.splom.updateGrid(e),Gb(e),qn.redrawReglTraces(e)),qn.drawMainTitle(e),Promise.resolve(r).then(function(){return xo.previousPromises(e)})};qn.doModeBar=function(e){var r=e._fullLayout;DF.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return xo.previousPromises(e)};qn.doCamera=function(e){for(var r=e._fullLayout,t=r._subplots.gl3d,a=0;a<t.length;a++){var n=r[t[a]],i=n._scene;i.setViewport(n)}};qn.drawData=function(e){var r=e._fullLayout;Gb(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return qn.redrawReglTraces(e),xo.style(e),bi.getComponentMethod("selections","draw")(e),bi.getComponentMethod("shapes","draw")(e),bi.getComponentMethod("annotations","draw")(e),bi.getComponentMethod("images","draw")(e),r._replotting=!1,xo.previousPromises(e)};qn.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,o;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var l=t[i];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?jo.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&jo.pushUnique(n,l.subplot))}for(i=0;i<a.length;i++)o=r._plots[a[i]],o._scene&&o._scene.draw();for(i=0;i<n.length;i++)o=r[n[i]]._subplot,o._scene&&o._scene.draw()}};qn.doAutoRangeAndConstraints=function(e){for(var r=id.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,loe(e,t),CF(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=id.getFromId(e,o);CF(e,l,t.range),a[o]=1}}ooe(e)};qn.finalDraw=function(e){bi.getComponentMethod("rangeslider","draw")(e),bi.getComponentMethod("rangeselector","draw")(e)};qn.drawMarginPushers=function(e){bi.getComponentMethod("legend","draw")(e),bi.getComponentMethod("rangeselector","draw")(e),bi.getComponentMethod("sliders","draw")(e),bi.getComponentMethod("updatemenus","draw")(e),bi.getComponentMethod("colorbar","draw")(e)}});var Xb=ae((Fye,IF)=>{"use strict";var _oe=qf().readPaths,xoe=H2(),RF=wf().clearOutlineControllers,Yb=Ft(),zF=va(),woe=Ta().arrayEditor,NF=zf(),Moe=NF.getPathString;IF.exports={draw:eg,drawOne:BF,activateLastSelection:koe};function eg(e){var r=e._fullLayout;RF(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n<r.selections.length;n++)BF(e,n)}function rg(e){return e._context.editSelection}function BF(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=NF.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=Moe(e,a),u={"data-index":r,"fill-rule":"evenodd",d:l},s=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||Yb.contrast(e._fullLayout.plot_bgcolor),h=a.line.width,d=a.line.dash;h||(h=5,d="solid");var m=rg(e)&&e._fullLayout._activeSelectionIndex===r;m&&(f=e._fullLayout.activeselection.fillcolor,s=e._fullLayout.activeselection.opacity);for(var p=[],y=1;y>=0;y--){var b=o.append("path").attr(u).style("opacity",y?.1:s).call(Yb.stroke,c).call(Yb.fill,f).call(zF.dashLine,y?"solid":d,y?4+h:h);if(Aoe(b,e,a),m){var C=woe(e.layout,"selections",a);b.style({cursor:"move"});var x={element:b.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=_oe(l,e);xoe(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var M=p[0],T=p[1];T.node().addEventListener("click",function(){return Toe(e,M)})}}function Aoe(e,r,t){var a=t.xref+t.yref;zF.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Toe(e,r){if(rg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Vb(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Vb,eg(e)}}}function koe(e){if(rg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Vb,eg(e)}}function Vb(e){if(rg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(RF(e),delete e._fullLayout._activeSelectionIndex,eg(e))}}});var OF=ae((qye,HF)=>{function Coe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}HF.exports=Coe});var GF=ae((Pye,UF)=>{function Soe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],u=n[1],s=t[0],f=t[1];return(l-i)*(f-o)-(u-o)*(s-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],u=n[1]-a[1],s=l*o+i*u;if(s<e)return!1;var f=o*o+u*u;return!(s-f>-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])<e},pointsSameY:function(t,a){return Math.abs(t[1]-a[1])<e},pointsSame:function(t,a){return r.pointsSameX(t,a)&&r.pointsSameY(t,a)},pointsCompare:function(t,a){return r.pointsSameX(t,a)?r.pointsSameY(t,a)?0:t[1]<a[1]?-1:1:t[0]<a[0]?-1:1},pointsCollinear:function(t,a,n){var i=t[0]-a[0],o=t[1]-a[1],l=a[0]-n[0],u=a[1]-n[1];return Math.abs(i*u-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],u=i[0]-n[0],s=i[1]-n[1],f=o*s-l*u;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],h=t[1]-n[1],d=(u*h-s*c)/f,m=(o*h-l*c)/f,p={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?p.alongA=-2:d<e?p.alongA=-1:d-1<=-e?p.alongA=0:d-1<e?p.alongA=1:p.alongA=2,m<=-e?p.alongB=-2:m<e?p.alongB=-1:m-1<=-e?p.alongB=0:m-1<e?p.alongB=1:p.alongB=2,p},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],u=!1,s=0;s<a.length;s++){var f=a[s][0],c=a[s][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(u=!u),o=f,l=c}return u}};return r}UF.exports=Soe});var VF=ae((Rye,YF)=>{var Eoe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};YF.exports=Eoe});var WF=ae((zye,XF)=>{var od=VF();function Loe(e,r,t){function a(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function n(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=od.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function u(m,p){var y=od.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function s(m,p,y){var b=od.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=u(m,p);return s(y,m,p),y}function c(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=n(p,m.seg.end,m.seg);return c(m,p),f(y,m.primary)}function d(m,p){var y=od.create();function b(I,Q){var ne=I.seg.start,te=I.seg.end,ee=Q.seg.start,fe=Q.seg.end;return r.pointsCollinear(ne,ee,fe)?r.pointsCollinear(te,ee,fe)||r.pointAboveOrOnLine(te,ee,fe)?1:-1:r.pointAboveOrOnLine(ne,ee,fe)?1:-1}function C(I){return y.findTransition(function(Q){var ne=b(I,Q.ev);return ne>0})}function x(I,Q){var ne=I.seg,te=Q.seg,ee=ne.start,fe=ne.end,ve=te.start,Ae=te.end;t&&t.checkIntersection(ne,te);var Ee=r.linesIntersect(ee,fe,ve,Ae);if(Ee===!1){if(!r.pointsCollinear(ee,fe,ve)||r.pointsSame(ee,Ae)||r.pointsSame(fe,ve))return!1;var Be=r.pointsSame(ee,ve),Ue=r.pointsSame(fe,Ae);if(Be&&Ue)return Q;var ke=!Be&&r.pointBetween(ee,ve,Ae),We=!Ue&&r.pointBetween(fe,ve,Ae);if(Be)return We?h(Q,fe):h(I,Ae),Q;ke&&(Ue||(We?h(Q,fe):h(I,Ae)),h(Q,ee))}else Ee.alongA===0&&(Ee.alongB===-1?h(I,ve):Ee.alongB===0?h(I,Ee.pt):Ee.alongB===1&&h(I,Ae)),Ee.alongB===0&&(Ee.alongA===-1?h(Q,ee):Ee.alongA===0?h(Q,Ee.pt):Ee.alongA===1&&h(Q,fe));return!1}for(var _=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let I=function(){if(A){var Q=x(M,A);if(Q)return Q}return D?x(M,D):!1};var V=I;t&&t.segmentNew(M.seg,M.primary);var T=C(M),A=T.before?T.before.ev:null,D=T.after?T.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,D?D.seg:!1);var P=I();if(P){if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,z&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(P.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,D?M.seg.myFill.below=D.seg.myFill.above:M.seg.myFill.below=m,z?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var B;D?M.primary===D.primary?B=D.seg.otherFill.above:B=D.seg.myFill.above:B=M.primary?p:m,M.seg.otherFill={above:B,below:B}}t&&t.status(M.seg,A?A.seg:!1,D?D.seg:!1),M.other.status=T.insert(od.node({ev:M}))}else{var X=M.status;if(X===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(X.prev)&&y.exists(X.next)&&x(X.prev.ev,X.next.ev),t&&t.statusRemove(X.ev.seg),X.remove(),!M.primary){var H=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=H}_.push(M.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b<m.length;b++){p=y,y=m[b];var C=r.pointsCompare(p,y);C!==0&&f(a(C<0?p:y,C<0?y:p),!0)}},calculate:function(m){return d(m,!1)}}:{calculate:function(m,p,y,b){return m.forEach(function(C){f(n(C.start,C.end,C),!0)}),y.forEach(function(C){f(n(C.start,C.end,C),!1)}),d(p,b)}}}XF.exports=Loe});var ZF=ae((Nye,jF)=>{function Doe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(V,I,Q){return f.index=V,f.matches_head=I,f.matches_pt1=Q,f===u?(f=s,!1):(f=null,!0)}for(var h=0;h<a.length;h++){var d=a[h],m=d[0],p=d[1],y=d[d.length-1],b=d[d.length-2];if(r.pointsSame(m,o)){if(c(h,!0,!0))break}else if(r.pointsSame(m,l)){if(c(h,!0,!1))break}else if(r.pointsSame(y,o)){if(c(h,!1,!0))break}else if(r.pointsSame(y,l)&&c(h,!1,!1))break}if(f===u){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===s){t&&t.chainMatch(u.index);var C=u.index,x=u.matches_pt1?l:o,_=u.matches_head,d=a[C],M=_?d[0]:d[d.length-1],T=_?d[1]:d[d.length-2],A=_?d[d.length-1]:d[0],D=_?d[d.length-2]:d[1];if(r.pointsCollinear(T,M,x)&&(_?(t&&t.chainRemoveHead(u.index,x),d.shift()):(t&&t.chainRemoveTail(u.index,x),d.pop()),M=T),r.pointsSame(A,x)){a.splice(C,1),r.pointsCollinear(D,A,M)&&(_?(t&&t.chainRemoveTail(u.index,M),d.pop()):(t&&t.chainRemoveHead(u.index,M),d.shift())),t&&t.chainClose(u.index),n.push(d);return}_?(t&&t.chainAddHead(u.index,x),d.unshift(x)):(t&&t.chainAddTail(u.index,x),d.push(x));return}function P(V){t&&t.chainReverse(V),a[V].reverse()}function z(V,I){var Q=a[V],ne=a[I],te=Q[Q.length-1],ee=Q[Q.length-2],fe=ne[0],ve=ne[1];r.pointsCollinear(ee,te,fe)&&(t&&t.chainRemoveTail(V,te),Q.pop(),te=ee),r.pointsCollinear(te,fe,ve)&&(t&&t.chainRemoveHead(I,fe),ne.shift()),t&&t.chainJoin(V,I),a[V]=Q.concat(ne),a.splice(I,1)}var B=u.index,X=s.index;t&&t.chainConnect(B,X);var H=a[B].length<a[X].length;u.matches_head?s.matches_head?H?(P(B),z(B,X)):(P(X),z(X,B)):z(X,B):s.matches_head?z(B,X):H?(P(B),z(X,B)):(P(X),z(B,X))}),n}jF.exports=Doe});var $F=ae((Bye,JF)=>{function ld(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Foe={union:function(e,r){return ld(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ld(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ld(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ld(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ld(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};JF.exports=Foe});var QF=ae((Iye,KF)=>{var qoe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),u=1;u<i.length;u++)l=e.selectDifference(e.combine(l,o(i[u])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,m){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],m)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,m){for(var p=0;p<d.children.length;p++){var y=d.children[p];if(a(m,y.region)){o(y,m);return}}for(var b=n(m),p=0;p<d.children.length;p++){var y=d.children[p];a(y.region,m)&&(b.children.push(y),d.children.splice(p,1),p--)}d.children.push(b)}for(var l=0;l<t.regions.length;l++){var u=t.regions[l];u.length<3||o(i,u)}function s(d,m){for(var p=0,y=d[d.length-1][0],b=d[d.length-1][1],C=[],x=0;x<d.length;x++){var _=d[x][0],M=d[x][1];C.push([_,M]),p+=M*y-_*b,y=_,b=M}var T=p<0;return T!==m&&C.reverse(),C.push([C[0][0],C[0][1]]),C}var f=[];function c(d){var m=[s(d.region,!1)];f.push(m);for(var p=0;p<d.children.length;p++)m.push(h(d.children[p]))}function h(d){for(var m=0;m<d.children.length;m++)c(d.children[m]);return s(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};KF.exports=qoe});var aq=ae((Hye,tq)=>{var Poe=OF(),Roe=GF(),eq=WF(),zoe=ZF(),ud=$F(),rq=QF(),Zo=!1,sd=Roe(),Ki;Ki={buildLog:function(e){return e===!0?Zo=Poe():e===!1&&(Zo=!1),Zo===!1?!1:Zo.list},epsilon:function(e){return sd.epsilon(e)},segments:function(e){var r=eq(!0,sd,Zo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=eq(!1,sd,Zo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:ud.union(e.combined,Zo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:ud.intersect(e.combined,Zo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:ud.difference(e.combined,Zo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:ud.differenceRev(e.combined,Zo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:ud.xor(e.combined,Zo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zoe(e.segments,sd,Zo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return rq.toPolygon(Ki,e)},polygonToGeoJSON:function(e){return rq.fromPolygon(Ki,sd,e)},union:function(e,r){return fd(e,r,Ki.selectUnion)},intersect:function(e,r){return fd(e,r,Ki.selectIntersect)},difference:function(e,r){return fd(e,r,Ki.selectDifference)},differenceRev:function(e,r){return fd(e,r,Ki.selectDifferenceRev)},xor:function(e,r){return fd(e,r,Ki.selectXor)}};function fd(e,r,t){var a=Ki.segments(e),n=Ki.segments(r),i=Ki.combine(a,n),o=t(i);return Ki.polygon(o)}typeof window=="object"&&(window.PolyBool=Ki);tq.exports=Ki});var iq=ae((Oye,nq)=>{nq.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var u=n-a,s=0,f=u-1;s<u;f=s++){var c=t[s+a][0],h=t[s+a][1],d=t[f+a][0],m=t[f+a][1],p=h>o!=m>o&&i<(d-c)*(o-h)/(m-h)+c;p&&(l=!l)}return l}});var ng=ae((Uye,oq)=>{"use strict";var Wb=am().dot,tg=Oa().BADNUM,ag=oq.exports={};ag.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var u=!1,s;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(u=!0,s=function(m){return m[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(u=!0,s=function(m){return m[1]===t[0][1]}));function f(m,p){var y=m[0],b=m[1];return!(y===tg||y<a||y>n||b===tg||b<i||b>o||p&&s(m))}function c(m,p){var y=m[0],b=m[1];if(y===tg||y<a||y>n||b===tg||b<i||b>o)return!1;var C=t.length,x=t[0][0],_=t[0][1],M=0,T,A,D,P,z;for(T=1;T<C;T++)if(A=x,D=_,x=t[T][0],_=t[T][1],P=Math.min(A,x),!(y<P||y>Math.max(A,x)||b>Math.max(D,_)))if(b<Math.min(D,_))y!==P&&M++;else{if(x===A?z=b:z=D+(y-A)*(_-D)/(x-A),b===z)return!(T===1&&p);b<=z&&y!==P&&M++}return M%2===1}var h=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){h=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:u?f:c,isRect:u,degenerate:h}};ag.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=Wb(o,o),u=Math.sqrt(l),s=[-o[1]/u,o[0]/u],f,c,h;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],h=Wb(c,o),h<0||h>l||Math.abs(Wb(c,s))>n)return!0;return!1};ag.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(u){r.push(u);var s=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||ag.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<s-2&&(n=c,i=a.length-1),f=c)}if(r.length>1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var uq=ae((Gye,lq)=>{"use strict";lq.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Lq=ae((Yye,Eq)=>{"use strict";var sq=aq(),Noe=iq(),hd=bt(),Boe=va().dashStyle,cd=Ft(),Ioe=Hl(),Hoe=Ls().makeEventData,yd=nv(),Ooe=yd.freeMode,Uoe=yd.rectMode,dd=yd.drawMode,$b=yd.openMode,Kb=yd.selectMode,fq=zf(),cq=Qh(),mq=H2(),gq=wf().clearOutline,yq=qf(),jb=yq.handleEllipse,Goe=yq.readPaths,Yoe=N2().newShapes,Voe=_b(),Xoe=Xb().activateLastSelection,og=mr(),Woe=og.sorterAsc,bq=ng(),vd=ym(),Jo=wn().getFromId,joe=E2(),Zoe=Q2().redrawReglTraces,lg=uq(),Bu=lg.MINSELECT,Joe=bq.filter,Qb=bq.tester,e7=q2(),vq=e7.p2r,$oe=e7.axValue,Koe=e7.getTransform;function r7(e){return e.subplot!==void 0}function Qoe(e,r,t,a,n){var i=!r7(a),o=Ooe(n),l=Uoe(n),u=$b(n),s=dd(n),f=Kb(n),c=n==="drawline",h=n==="drawcircle",d=c||h,m=a.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=Koe(x),M=r-C.left,T=t-C.top;p._calcInverseTransform(m);var A=og.apply3DTransform(p._invTransform)(M,T);M=A[0],T=A[1];var D=p._invScaleX,P=p._invScaleY,z=M,B=T,X="M"+M+","+T,H=a.xaxes[0],V=a.yaxes[0],I=H._length,Q=V._length,ne=e.altKey&&!(dd(n)&&u),te,ee,fe,ve,Ae,Ee,Be;xq(e,m,a),o&&(te=Joe([[M,T]],lg.BENDPX));var Ue=b.selectAll("path.select-outline-"+x.id).data([1]),ke=s?p.newshape:p.newselection;s&&(a.hasText=ke.label.text||ke.label.texttemplate);var We=s&&!u?ke.fillcolor:"rgba(0,0,0,0)",j=ke.line.color||(i?cd.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ue.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:s?ke.opacity/2:1,"stroke-dasharray":Boe(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(cd.stroke,j).call(cd.fill,We).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",_).attr("d",X+"Z");var re=b.append("path").attr("class","zoombox-corners").style({fill:cd.background,stroke:cd.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(s&&a.hasText){var me=b.select(".label-temp");me.empty()&&(me=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=p._uid+lg.SELECTID,$=[],le=ug(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=H._id,$e=V._id;kq(m,Ne,$e,le);for(var er=(m.layout||{}).selections||[],ir=[],sr=!1,Pe=0;Pe<er.length;Pe++){var vr=p.selections[Pe];!vr||vr.xref!==Ne||vr.yref!==$e?ir.push(er[Pe]):sr=!0}sr&&(m._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",m,{selections:ir}))}});var we=hle(a);a.moveFn=function(Ne,$e){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),z=Math.max(0,Math.min(I,D*Ne+M)),B=Math.max(0,Math.min(Q,P*$e+T));var er=Math.abs(z-M),ir=Math.abs(B-T);if(l){var sr,Pe,vr;if(f){var hr=p.selectdirection;switch(hr==="any"?ir<Math.min(er*.6,Bu)?sr="h":er<Math.min(ir*.6,Bu)?sr="v":sr="d":sr=hr,sr){case"h":Pe=h?Q/2:0,vr=Q;break;case"v":Pe=h?I/2:0,vr=I;break}}if(s)switch(p.newshape.drawdirection){case"vertical":sr="h",Pe=h?Q/2:0,vr=Q;break;case"horizontal":sr="v",Pe=h?I/2:0,vr=I;break;case"ortho":er<ir?(sr="h",Pe=T,vr=B):(sr="v",Pe=M,vr=z);break;default:sr="d"}sr==="h"?(ve=d?jb(h,[z,Pe],[z,vr]):[[M,Pe],[M,vr],[z,vr],[z,Pe]],ve.xmin=d?z:Math.min(M,z),ve.xmax=d?z:Math.max(M,z),ve.ymin=Math.min(Pe,vr),ve.ymax=Math.max(Pe,vr),re.attr("d","M"+ve.xmin+","+(T-Bu)+"h-4v"+2*Bu+"h4ZM"+(ve.xmax-1)+","+(T-Bu)+"h4v"+2*Bu+"h-4Z")):sr==="v"?(ve=d?jb(h,[Pe,B],[vr,B]):[[Pe,T],[Pe,B],[vr,B],[vr,T]],ve.xmin=Math.min(Pe,vr),ve.xmax=Math.max(Pe,vr),ve.ymin=d?B:Math.min(T,B),ve.ymax=d?B:Math.max(T,B),re.attr("d","M"+(M-Bu)+","+ve.ymin+"v-4h"+2*Bu+"v4ZM"+(M-Bu)+","+(ve.ymax-1)+"v4h"+2*Bu+"v-4Z")):sr==="d"&&(ve=d?jb(h,[M,T],[z,B]):[[M,T],[M,B],[z,B],[z,T]],ve.xmin=Math.min(M,z),ve.xmax=Math.max(M,z),ve.ymin=Math.min(T,B),ve.ymax=Math.max(T,B),re.attr("d","M0,0Z"))}else o&&(te.addPt([z,B]),ve=te.filtered);if(a.selectionDefs&&a.selectionDefs.length?(fe=wq(a.mergedPolygons,ve,ne),ve.subtract=ne,ee=t7(a.selectionDefs.concat([ve]))):(fe=[ve],ee=Qb(ve)),mq(Aq(fe,u),Ue,a),f){var dr=Jb(m,!1),Ze=dr.eventData?dr.eventData.points.slice():[];dr=Jb(m,!1,ee,le,a),ee=dr.selectionTesters,Be=dr.eventData;var fr;te?fr=te.filtered:fr=Cq(fe),vd.throttle(K,lg.SELECTDELAY,function(){$=Tq(ee,le);for(var Dr=$.slice(),Te=0;Te<Ze.length;Te++){for(var Oe=Ze[Te],Mr=!1,Nr=0;Nr<Dr.length;Nr++)if(Dr[Nr].curveNumber===Oe.curveNumber&&Dr[Nr].pointNumber===Oe.pointNumber){Mr=!0;break}Mr||Dr.push(Oe)}Dr.length&&(Be||(Be={}),Be.points=Dr),we(Be,fr),dle(m,Be)})}},a.clickFn=function(Ne,$e){if(re.remove(),m._fullLayout._activeShapeIndex>=0){m._fullLayout._deactivateShape(m);return}if(!s){var er=p.clickmode;vd.done(K).then(function(){if(vd.clear(K),Ne===2){for(Ue.remove(),Ae=0;Ae<le.length;Ae++)Ee=le[Ae],Ee._module.selectPoints(Ee,!1);if(md(m,le),pd(a),n7(m),le.length){var ir=le[0].xaxis,sr=le[0].yaxis;if(ir&&sr){for(var Pe=[],vr=m._fullLayout.selections,hr=0;hr<vr.length;hr++){var dr=vr[hr];dr&&(dr.xref!==ir._id||dr.yref!==sr._id)&&Pe.push(dr)}Pe.length<vr.length&&(m._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",m,{selections:Pe}))}}}else er.indexOf("select")>-1&&_q($e,m,a.xaxes,a.yaxes,a.subplot,a,Ue),er==="event"&&gd(m,void 0);Ioe.click(m,$e,x.id)}).catch(og.error)}},a.doneFn=function(){re.remove(),vd.done(K).then(function(){vd.clear(K),!y&&ve&&a.selectionDefs&&(ve.subtract=ne,a.selectionDefs.push(ve),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,fe)),(y||s)&&pd(a,y),a.doneFnCompleted&&a.doneFnCompleted($),f&&gd(m,Be)}).catch(og.error)}}function _q(e,r,t,a,n,i,o){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],h,d,m,p,y,b,C,x,_,M;if(nle(l)){xq(e,r,i),h=ug(r,t,a,n);var T=ile(l,h),A=T.pointNumbers.length>0;if(A?ole(h,T):lle(h)&&(C=dq(T))){for(o&&o.remove(),M=0;M<h.length;M++)d=h[M],d._module.selectPoints(d,!1);md(r,h),pd(i),f&&n7(r)}else{x=e.shiftKey&&(C!==void 0?C:dq(T)),m=ele(T.pointNumber,T.searchInfo,x);var D=i.selectionDefs.concat([m]);for(p=t7(D,p),M=0;M<h.length;M++)if(y=h[M]._module.selectPoints(h[M],p),b=Mq(y,h[M]),c.length)for(var P=0;P<b.length;P++)c.push(b[P]);else c=b;if(_={points:c},md(r,h,_),m&&i&&i.selectionDefs.push(m),o){var z=i.mergedPolygons,B=$b(i.dragmode);mq(Aq(z,B),o,i)}f&&gd(r,_)}}}function ele(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function Zb(e){return"pointNumber"in e&&"searchInfo"in e}function rle(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,a,n){var i=e.searchInfo.cd[0].trace.index,o=n.cd[0].trace.index;return o===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function t7(e){if(!e.length)return;for(var r=[],t=Zb(e[0])?0:e[0][0][0],a=t,n=Zb(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(Zb(e[o]))r.push(rle(e[o]));else{var l=Qb(e[o]);l.subtract=!!e[o].subtract,r.push(l),t=Math.min(t,l.xmin),a=Math.max(a,l.xmax),n=Math.min(n,l.ymin),i=Math.max(i,l.ymax)}function u(s,f,c,h){for(var d=!1,m=0;m<r.length;m++)r[m].contains(s,f,c,h)&&(d=!r[m].subtract);return d}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:u,isRect:!1,degenerate:!1}}function xq(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,o=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,l=(e.shiftKey||e.altKey)&&!(dd(i)&&$b(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&pd(t),o||(gq(r),a._lastSelectedSubplot=n.id)}function tle(e){return e._fullLayout._activeShapeIndex>=0}function ale(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;tle(n)&&n._fullLayout._deactivateShape(n),ale(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=dd(t),u=Kb(t);if(l||u){var s=o.selectAll(".select-outline-"+a.id);if(s&&n._fullLayout._outlining){var f;l&&(f=Yoe(s,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;u&&!r7(e)&&(c=Voe(s,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&Xoe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function hq(e){return e._id}function ug(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(hq),o=t.map(hq),l,u,s;for(s=0;s<e.calcdata.length;s++)if(l=e.calcdata[s],u=l[0].trace,!(u.visible!==!0||!u._module||!u._module.selectPoints))if(r7({subplot:a})&&(u.subplot===a||u.geo===a))n.push(ig(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[i[0]]&&u._yaxes[o[0]]){var f=ig(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],n.push(f)}}else if(u.type==="sankey"){var c=ig(u._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(u.xaxis)===-1&&(!u._xA||!u._xA.overlaying)||o.indexOf(u.yaxis)===-1&&(!u._yA||!u._yA.overlaying))continue;n.push(ig(u._module,l,Jo(e,u.xaxis),Jo(e,u.yaxis)))}return n}function ig(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function nle(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function ile(e,r){var t=e[0],a=-1,n=[],i,o;for(o=0;o<r.length;o++)if(i=r[o],t.fullData.index===i.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?a=t.pointNumber:t.binNumber!==void 0&&(a=t.binNumber,n=t.pointNumbers);break}return{pointNumber:a,pointNumbers:n,searchInfo:i}}function dq(e){var r=e.searchInfo.cd[0].trace,t=e.pointNumber,a=e.pointNumbers,n=a.length>0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function ole(e,r){var t=[],a,n,i,o;for(o=0;o<e.length;o++)a=e[o],a.cd[0].trace.selectedpoints&&a.cd[0].trace.selectedpoints.length>0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o<r.pointNumbers.length;o++)if(n.selectedpoints.indexOf(r.pointNumbers[o])<0)return!1;return!0}return!1}function lle(e){var r=0,t,a,n;for(n=0;n<e.length;n++)if(t=e[n],a=t.cd[0].trace,a.selectedpoints&&(a.selectedpoints.length>1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function md(e,r,t){var a,n;for(a=0;a<r.length;a++){n=r[a].cd[0].trace;var i=e._fullLayout._tracePreGUI[n.uid]||{};i.selectedpoints===void 0&&(i.selectedpoints=n._input.selectedpoints||null)}if(t){var o=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var l=0;l<o.length;l++){var u=o[l],s=u.data,f=u.pointIndex,c=u.pointIndices;c?[].push.apply(s.selectedpoints,c):s.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;ule(e,r)}function ule(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;hd.traceIs(i[0].trace,"regl")&&(t=!0);var o=n._module,l=o.styleOnSelect||o.style;l&&(l(e,i,i[0].node3),i[0].nodeRangePlot3&&l(e,i,i[0].nodeRangePlot3))}t&&(joe(e),Zoe(e))}function wq(e,r,t){for(var a=t?sq.difference:sq.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=a7(l,i.slice(0,o))}return i}function Mq(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=Hoe(e[n],a,t);return e}function Aq(e,r){for(var t=[],a=0;a<e.length;a++){t[a]=[];for(var n=0;n<e[a].length;n++){t[a][n]=[],t[a][n][0]=n?"L":"M";for(var i=0;i<e[a][n].length;i++)t[a][n].push(e[a][n][i])}r||t[a].push(["Z",t[a][0][1],t[a][0][2]])}return t}function Tq(e,r){for(var t=[],a,n=[],i,o=0;o<r.length;o++){var l=r[o];i=l._module.selectPoints(l,e),n.push(i),a=Mq(i,l),t=t.concat(a)}return t}function Jb(e,r,t,a,n){var i=!!a,o,l,u;n&&(o=n.plotinfo,l=n.xaxes[0]._id,u=n.yaxes[0]._id);var s=[],f=[],c=pq(e),h=e._fullLayout;if(o){var d=h._zoomlayer,m=h.dragmode,p=dd(m),y=Kb(m);if(p||y){var b=Jo(e,l,"x"),C=Jo(e,u,"y");if(b&&C){var x=d.selectAll(".select-outline-"+o.id);if(x&&e._fullLayout._outlining&&x.length){for(var _=x[0][0],M=_.getAttribute("d"),T=Goe(M,e,o),A=[],D=0;D<T.length;D++){for(var P=T[D],z=[],B=0;B<P.length;B++)z.push([Nf(b,P[B][1]),Nf(C,P[B][2])]);z.xref=l,z.yref=u,z.subtract=a7(z,A),A.push(z)}c=c.concat(A)}}}}var X=l&&u?[l+u]:h._subplots.cartesian;sle(e);for(var H={},V=0;V<X.length;V++){var I=X[V],Q=I.indexOf("y"),ne=I.slice(0,Q),te=I.slice(Q),ee=l&&u?t:void 0;if(ee=cle(c,ne,te,ee),ee){var fe=a;if(!i){var ve=Jo(e,ne,"x"),Ae=Jo(e,te,"y");fe=ug(e,[ve],[Ae],I);for(var Ee=0;Ee<fe.length;Ee++){var Be=fe[Ee],Ue=Be.cd[0],ke=Ue.trace;if(Be._module.name==="scattergl"&&!Ue.t.xpx){var We=ke.x,j=ke.y,re=ke._length;Ue.t.xpx=[],Ue.t.ypx=[];for(var me=0;me<re;me++)Ue.t.xpx[me]=ve.c2p(We[me]),Ue.t.ypx[me]=Ae.c2p(j[me])}Be._module.name==="splom"&&(H[ke.uid]||(H[ke.uid]=!0))}}var K=Tq(ee,fe);s=s.concat(K),f=f.concat(fe)}}var $={points:s};md(e,f,$);var le=h.clickmode,we=le.indexOf("event")>-1&&r;if(!o&&r){var Ne=pq(e,!0);if(Ne.length){var $e=Ne[0].xref,er=Ne[0].yref;if($e&&er){var ir=Cq(Ne),sr=Sq([Jo(e,$e,"x"),Jo(e,er,"y")]);sr($,ir)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:we&&gd(e,$),h._reselect=!1}if(!o&&h._deselect){var Pe=h._deselect;l=Pe.xref,u=Pe.yref,fle(l,u,f)||kq(e,l,u,a),we&&($.points.length?gd(e,$):n7(e)),h._deselect=!1}return{eventData:$,selectionTesters:t}}function sle(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var a=r[t][0],n=a.trace,i=e._fullLayout._splomScenes;if(i){var o=i[n.uid];o&&(o.selectBatch=[])}}}function fle(e,r,t){for(var a=0;a<t.length;a++){var n=t[a];if(n.xaxis&&n.xaxis._id===e&&n.yaxis&&n.yaxis._id===r)return!0}return!1}function kq(e,r,t,a){a=ug(e,[Jo(e,r,"x")],[Jo(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}md(e,a)}function cle(e,r,t,a){for(var n,i=0;i<e.length;i++){var o=e[i];if(!(r!==o.xref||t!==o.yref))if(n){var l=!!o.subtract;n=wq(n,o,l),a=t7(n)}else n=[o],a=Qb(o)}return a}function pq(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,o=0;o<i;o++)if(!(r&&o!==a._activeSelectionIndex)){var l=n[o];if(l){var u=l.xref,s=l.yref,f=Jo(e,u,"x"),c=Jo(e,s,"y"),h,d,m,p,y;if(l.type==="rect"){y=[];var b=Nf(f,l.x0),C=Nf(f,l.x1),x=Nf(c,l.y0),_=Nf(c,l.y1);y=[[b,x],[b,_],[C,_],[C,x]],h=Math.min(b,C),d=Math.max(b,C),m=Math.min(x,_),p=Math.max(x,_),y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=u,y.yref=s,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var M=l.path.split("Z"),T=[],A=0;A<M.length;A++){var D=M[A];if(D){D+="Z";var P=fq.extractPathCoords(D,cq.paramIsX,"raw"),z=fq.extractPathCoords(D,cq.paramIsY,"raw");h=1/0,d=-1/0,m=1/0,p=-1/0,y=[];for(var B=0;B<P.length;B++){var X=Nf(f,P[B]),H=Nf(c,z[B]);y.push([X,H]),h=Math.min(X,h),d=Math.max(X,d),m=Math.min(H,m),p=Math.max(H,p)}y.xmin=h,y.xmax=d,y.ymin=m,y.ymax=p,y.xref=u,y.yref=s,y.subtract=a7(y,T),T.push(y),t.push(y)}}}}return t}function a7(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(Noe(e[i],n)){t=!t;break}return t}function Nf(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function Cq(e){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];t=t.concat(n),t=t.concat([n[0]])}return vle(t)}function vle(e){return e.isRect=e.length===5&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}function Sq(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,u=l.charAt(0);if(t.isRect){a||(a={});var s=t[u+"min"],f=t[u+"max"];s!==void 0&&f!==void 0&&(a[l]=[vq(o,s),vq(o,f)].sort(Woe))}else n||(n={}),n[l]=t.map($oe(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function hle(e){var r=e.plotinfo;return r.fillRangeItems||Sq(e.xaxes.concat(e.yaxes))}function dle(e,r){e.emit("plotly_selecting",r)}function gd(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function n7(e){e.emit("plotly_deselect",null)}Eq.exports={reselect:Jb,prepSelect:Qoe,clearOutline:gq,clearSelectionsCache:pd,selectOnClick:_q}});var i7=ae((Vye,Dq)=>{"use strict";Dq.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var bd=ae((Xye,Fq)=>{"use strict";Fq.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e,"axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var fv=ae((jye,Rq)=>{"use strict";var qq=i7(),Pq=vi(),sg=Dn(),ple=Ta().templatedArray,Wye=bd();Rq.exports=ple("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Pq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:qq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:qq.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",sg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",sg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",sg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",sg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Pq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var fg=ae((Zye,zq)=>{"use strict";zq.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var o7=ae((Jye,Nq)=>{"use strict";Nq.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var dc=ae(($ye,Vq)=>{"use strict";var Bq=N5().axisHoverFormat,{hovertemplateAttrs:mle,texttemplateAttrs:gle,templatefallbackAttrs:Iq}=B0(),Hq=O1(),yle=vi(),Oq=Mu().dash,ble=Mu().pattern,_le=va(),xle=fg(),_d=_n().extendFlat,wle=o7();function Uq(e){return{valType:"any",dflt:0,editType:"calc"}}function Gq(e){return{valType:"any",editType:"calc"}}function Yq(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Vq.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Uq("x"),yperiod:Uq("y"),xperiod0:Gq("x0"),yperiod0:Gq("y0"),xperiodalignment:Yq("x"),yperiodalignment:Yq("y"),xhoverformat:Bq("x"),yhoverformat:Bq("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:gle(),texttemplatefallback:Iq({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:mle({},{keys:xle.eventDataKeys}),hovertemplatefallback:Iq(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:_d({},Oq,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:wle(!0),fillgradient:_d({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:ble,marker:_d({symbol:{valType:"enumerated",values:_le.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:_d({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:_d({},Oq,{arrayOk:!0}),editType:"calc"},Hq("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Hq("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:yle({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var l7=ae((Qye,jq)=>{"use strict";var Xq=fv(),Wq=dc().line,Mle=Mu().dash,cg=_n().extendFlat,Ale=Io().overrideAll,Tle=Ta().templatedArray,Kye=bd();jq.exports=Ale(Tle("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:cg({},Xq.xref,{}),yref:cg({},Xq.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Wq.color,width:cg({},Wq.width,{min:1,dflt:1}),dash:cg({},Mle,{dflt:"dot"})}}),"arraydraw","from-root")});var Kq=ae((e4e,$q)=>{"use strict";var Zq=mr(),vg=Ba(),kle=Bl(),Cle=l7(),Jq=zf();$q.exports=function(r,t){kle(r,t,{name:"selections",handleItemDefaults:Sle});for(var a=t.selections,n=0;n<a.length;n++){var i=a[n];i&&i.path===void 0&&(i.x0===void 0||i.x1===void 0||i.y0===void 0||i.y1===void 0)&&(t.selections[n]=null)}};function Sle(e,r,t){function a(T,A){return Zq.coerce(e,r,Cle,T,A)}var n=a("path"),i=n?"path":"rect",o=a("type",i),l=o!=="path";l&&delete r.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var u=["x","y"],s=0;s<2;s++){var f=u[s],c={_fullLayout:t},h,d,m,p=vg.coerceRef(e,r,c,f);if(h=vg.getFromId(c,p),h._selectionIndices.push(r._index),m=Jq.rangeToShapePosition(h),d=Jq.shapePositionToRange(h),l){var y=f+"0",b=f+"1",C=e[y],x=e[b];e[y]=d(e[y],!0),e[b]=d(e[b],!0),vg.coercePosition(r,c,a,p,y),vg.coercePosition(r,c,a,p,b);var _=r[y],M=r[b];_!==void 0&&M!==void 0&&(r[y]=m(_),r[b]=m(M),e[y]=C,e[b]=x)}}l&&Zq.noneOrAll(e,r,["x0","x1","y0","y1"])}});var eP=ae((r4e,Qq)=>{"use strict";Qq.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var xd=ae((t4e,aP)=>{"use strict";var Ele=bt(),rP=mr(),tP=wn();aP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Ele.subplotsRegistry.cartesian,l=o.idRegex,u=n._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,h=n._has("cartesian"),d=0;d<i.length;d++){var m=i[d];if(rP.isPlainObject(m)){var p=tP.cleanId(m.xref,"x",!1),y=tP.cleanId(m.yref,"y",!1),b=l.x.test(p),C=l.y.test(y);if(b||C){h||rP.pushUnique(n._basePlotModules,o);var x=!1;b&&s.indexOf(p)===-1&&(s.push(p),x=!0),C&&f.indexOf(y)===-1&&(f.push(y),x=!0),x&&b&&C&&c.push(p+y)}}}}}});var Rs=ae((a4e,iP)=>{"use strict";var nP=Xb(),wd=Lq();iP.exports={moduleType:"component",name:"selections",layoutAttributes:l7(),supplyLayoutDefaults:Kq(),supplyDrawNewSelectionDefaults:eP(),includeBasePlot:xd()("selections"),draw:nP.draw,drawOne:nP.drawOne,reselect:wd.reselect,prepSelect:wd.prepSelect,clearOutline:wd.clearOutline,clearSelectionsCache:wd.clearSelectionsCache,selectOnClick:wd.selectOnClick}});var TP=ae((n4e,AP)=>{"use strict";var h7=Et(),$o=mr(),oP=$o.numberFormat,Lle=G6(),hg=bt(),dP=$o.strTranslate,Dle=ai(),s7=Ft(),Bf=va(),Fle=Hl(),lP=Ba(),qle=Df(),Ple=Yo(),pP=nv(),dg=pP.selectingOrDrawing,Rle=pP.freeMode,zle=ti().FROM_TL,Nle=E2(),Ble=Q2().redrawReglTraces,Ile=Mn(),f7=wn().getFromId,Hle=Rs().prepSelect,Ole=Rs().clearOutline,Ule=Rs().selectOnClick,u7=Bb(),d7=Dn(),uP=d7.MINDRAG,Li=d7.MINZOOM,sP=!0;function Gle(e,r,t,a,n,i,o,l){var u=e._fullLayout._zoomlayer,s=o+l==="nsew",f=(o+l).length===1,c,h,d,m,p,y,b,C,x,_,M,T,A,D,P,z,B,X,H,V,I,Q,ne;t+=r.yaxis._shift;function te(){if(c=r.xaxis,h=r.yaxis,x=c._length,_=h._length,b=c._offset,C=h._offset,d={},d[c._id]=c,m={},m[h._id]=h,o&&l)for(var Ie=r.overlays,Xe=0;Xe<Ie.length;Xe++){var yr=Ie[Xe].xaxis;d[yr._id]=yr;var kr=Ie[Xe].yaxis;m[kr._id]=kr}p=hP(d),y=hP(m),A=fP(p,l),D=fP(y,o),P=!D&&!A,T=vP(e,e._fullLayout._axisMatchGroups,d,m),M=vP(e,e._fullLayout._axisConstraintGroups,d,m,T);var pr=M.isSubplotConstrained||T.isSubplotConstrained;z=l||pr,B=o||pr;var xr=e._fullLayout;X=xr._has("scattergl"),H=xr._has("splom"),V=xr._has("svg")}te();var ee=Xle(D+A,e._fullLayout.dragmode,s),fe=gP(r,o+l+"drag",ee,t,a,n,i);if(P&&!s)return fe.onmousedown=null,fe.style.pointerEvents="none",fe;var ve={element:fe,gd:e,plotinfo:r};ve.prepFn=function(Ie,Xe,yr){var kr=ve.dragmode,pr=e._fullLayout.dragmode;pr!==kr&&(ve.dragmode=pr),te(),Q=e._fullLayout._invScaleX,ne=e._fullLayout._invScaleY,P||(s?Ie.shiftKey?pr==="pan"?pr="zoom":dg(pr)||(pr="pan"):Ie.ctrlKey&&(pr="pan"):pr="pan"),Rle(pr)?ve.minDrag=1:ve.minDrag=void 0,dg(pr)?(ve.xaxes=p,ve.yaxes=y,Hle(Ie,Xe,yr,ve,pr)):(ve.clickFn=Ee,dg(kr)&&Ae(),P||(pr==="zoom"?(ve.moveFn=Ne,ve.doneFn=er,ve.minDrag=1,we(Ie,Xe,yr)):pr==="pan"&&(ve.moveFn=dr,ve.doneFn=Te))),e._fullLayout._redrag=function(){var xr=e._dragdata;if(xr&&xr.element===fe){var Pr=e._fullLayout.dragmode;dg(Pr)||(te(),Oe([0,0,x,_]),ve.moveFn(xr.dx,xr.dy))}}};function Ae(){ve.plotinfo.selection=!1,Ole(e)}function Ee(Ie,Xe){var yr=ve.gd;if(yr._fullLayout._activeShapeIndex>=0){yr._fullLayout._deactivateShape(yr);return}var kr=yr._fullLayout.clickmode;if(v7(yr),Ie===2&&!f&&Dr(),s)kr.indexOf("select")>-1&&Ule(Xe,yr,p,y,r.id,ve),kr.indexOf("event")>-1&&Fle.click(yr,Xe,r.id);else if(Ie===1&&f){var pr=o?h:c,xr=o==="s"||l==="w"?0:1,Pr=pr._name+".range["+xr+"]",Lr=Yle(pr,xr),Hr="left",tr="middle";if(pr.fixedrange)return;o?(tr=o==="n"?"top":"bottom",pr.side==="right"&&(Hr="right")):l==="e"&&(Hr="right"),yr._context.showAxisRangeEntryBoxes&&h7.select(fe).call(Dle.makeEditable,{gd:yr,immediate:!0,background:yr._fullLayout.paper_bgcolor,text:String(Lr),fill:pr.tickfont?pr.tickfont.color:"#444",horizontalAlign:Hr,verticalAlign:tr}).on("edit",function(Cr){var cr=pr.d2r(Cr);cr!==void 0&&hg.call("_guiRelayout",yr,Pr,cr)})}}Ple.init(ve);var Be,Ue,ke,We,j,re,me,K,$,le;function we(Ie,Xe,yr){var kr=fe.getBoundingClientRect();Be=Xe-kr.left,Ue=yr-kr.top,e._fullLayout._calcInverseTransform(e);var pr=$o.apply3DTransform(e._fullLayout._invTransform)(Be,Ue);Be=pr[0],Ue=pr[1],ke={l:Be,r:Be,w:0,t:Ue,b:Ue,h:0},We=e._hmpixcount?e._hmlumcount/e._hmpixcount:s7.luminosity(e._fullLayout.plot_bgcolor),j="M0,0H"+x+"V"+_+"H0V0",re=!1,me="xy",le=!1,K=yP(u,We,b,C,j),$=bP(u,b,C)}function Ne(Ie,Xe){if(e._transitioningWithDuration)return!1;var yr=Math.max(0,Math.min(x,Q*Ie+Be)),kr=Math.max(0,Math.min(_,ne*Xe+Ue)),pr=Math.abs(yr-Be),xr=Math.abs(kr-Ue);ke.l=Math.min(Be,yr),ke.r=Math.max(Be,yr),ke.t=Math.min(Ue,kr),ke.b=Math.max(Ue,kr);function Pr(){me="",ke.r=ke.l,ke.t=ke.b,$.attr("d","M0,0Z")}if(M.isSubplotConstrained)pr>Li||xr>Li?(me="xy",pr/x>xr/_?(xr=pr*_/x,Ue>kr?ke.t=Ue-xr:ke.b=Ue+xr):(pr=xr*x/_,Be>yr?ke.l=Be-pr:ke.r=Be+pr),$.attr("d",pg(ke))):Pr();else if(T.isSubplotConstrained)if(pr>Li||xr>Li){me="xy";var Lr=Math.min(ke.l/x,(_-ke.b)/_),Hr=Math.max(ke.r/x,(_-ke.t)/_);ke.l=Lr*x,ke.r=Hr*x,ke.b=(1-Lr)*_,ke.t=(1-Hr)*_,$.attr("d",pg(ke))}else Pr();else!D||xr<Math.min(Math.max(pr*.6,uP),Li)?pr<uP||!A?Pr():(ke.t=0,ke.b=_,me="x",$.attr("d",Wle(ke,Ue))):!A||pr<Math.min(xr*.6,Li)?(ke.l=0,ke.r=x,me="y",$.attr("d",jle(ke,Be))):(me="xy",$.attr("d",pg(ke)));ke.w=ke.r-ke.l,ke.h=ke.b-ke.t,me&&(le=!0),e._dragged=le,_P(K,$,ke,j,re,We),$e(),e.emit("plotly_relayouting",I),re=!0}function $e(){I={},(me==="xy"||me==="x")&&(c7(p,ke.l/x,ke.r/x,I,M.xaxes),Ze("x",I)),(me==="xy"||me==="y")&&(c7(y,(_-ke.b)/_,(_-ke.t)/_,I,M.yaxes),Ze("y",I))}function er(){$e(),v7(e),Te(),wP(e)}var ir=[0,0,x,_],sr=null,Pe=d7.REDRAWDELAY,vr=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function hr(Ie){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(Ae(),e._transitioningWithDuration){Ie.preventDefault(),Ie.stopPropagation();return}te(),clearTimeout(sr);var Xe=-Ie.deltaY;if(isFinite(Xe)||(Xe=Ie.wheelDelta/10),!isFinite(Xe)){$o.log("Did not find wheel motion attributes: ",Ie);return}e._fullLayout._replotting=!0;var yr=Math.exp(-Math.min(Math.max(Xe,-20),20)/200),kr=vr.draglayer.select(".nsewdrag").node().getBoundingClientRect(),pr=(Ie.clientX-kr.left)/kr.width,xr=(kr.bottom-Ie.clientY)/kr.height,Pr;function Lr(Hr,tr,Cr){if(Hr.fixedrange)return;var cr=$o.simpleMap(Hr.range,Hr.r2l),Xr=cr[0]+(cr[1]-cr[0])*tr;function Kr(Fr){return Hr.l2r(Xr+(Fr-Xr)*Cr)}Hr.range=cr.map(Kr)}if(z){for(l||(pr=.5),Pr=0;Pr<p.length;Pr++)Lr(p[Pr],pr,yr);Ze("x"),ir[2]*=yr,ir[0]+=ir[2]*pr*(1/yr-1)}if(B){for(o||(xr=.5),Pr=0;Pr<y.length;Pr++)Lr(y[Pr],xr,yr);Ze("y"),ir[3]*=yr,ir[1]+=ir[3]*(1-xr)*(1/yr-1)}Oe(ir),fr(),e.emit("plotly_relayouting",I),sr=setTimeout(function(){e._fullLayout&&(ir=[0,0,x,_],Te())},Pe),Ie.preventDefault()}o.length*l.length!==1&&MP(fe,hr);function dr(Ie,Xe){if(Ie=Ie*Q,Xe=Xe*ne,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,A==="ew"||D==="ns"){var yr=A?-Ie:0,kr=D?-Xe:0;if(T.isSubplotConstrained){if(A&&D){var pr=(Ie/x-Xe/_)/2;Ie=pr*x,Xe=-pr*_,yr=-Ie,kr=-Xe}D?yr=-kr*x/_:kr=-yr*_/x}A&&(cP(p,Ie),Ze("x")),D&&(cP(y,Xe),Ze("y")),Oe([yr,kr,x,_]),fr(),e.emit("plotly_relayouting",I);return}function xr(Kr,Fr,Wr){for(var Me=1-Fr,Re,ur,gr=0;gr<Kr.length;gr++){var Nt=Kr[gr];if(!Nt.fixedrange){Re=Nt,ur=Nt._rl[Me]+(Nt._rl[Fr]-Nt._rl[Me])/Vle(Wr/Nt._length);var Gt=Nt.l2r(ur);Gt!==!1&&Gt!==void 0&&(Nt.range[Fr]=Gt)}}return Re._length*(Re._rl[Fr]-ur)/(Re._rl[Fr]-Re._rl[Me])}var Pr=A==="w"==(D==="n")?1:-1;if(A&&D&&(M.isSubplotConstrained||T.isSubplotConstrained)){var Lr=(Ie/x+Pr*Xe/_)/2;Ie=Lr*x,Xe=Pr*Lr*_}var Hr,tr;if(A==="w"?Ie=xr(p,0,Ie):A==="e"?Ie=xr(p,1,-Ie):A||(Ie=0),D==="n"?Xe=xr(y,1,Xe):D==="s"?Xe=xr(y,0,-Xe):D||(Xe=0),Hr=A==="w"?Ie:0,tr=D==="n"?Xe:0,M.isSubplotConstrained&&!T.isSubplotConstrained||T.isSubplotConstrained&&A&&D&&Pr>0){var Cr;if(T.isSubplotConstrained||!A&&D.length===1){for(Cr=0;Cr<p.length;Cr++)p[Cr].range=p[Cr]._r.slice(),u7(p[Cr],1-Xe/_);Ie=Xe*x/_,Hr=Ie/2}if(T.isSubplotConstrained||!D&&A.length===1){for(Cr=0;Cr<y.length;Cr++)y[Cr].range=y[Cr]._r.slice(),u7(y[Cr],1-Ie/x);Xe=Ie*_/x,tr=Xe/2}}(!T.isSubplotConstrained||!D)&&Ze("x"),(!T.isSubplotConstrained||!A)&&Ze("y");var cr=x-Ie,Xr=_-Xe;T.isSubplotConstrained&&!(A&&D)&&(A?(tr=Hr?0:Ie*_/x,Xr=cr*_/x):(Hr=tr?0:Xe*x/_,cr=Xr*x/_)),Oe([Hr,tr,cr,Xr]),fr(),e.emit("plotly_relayouting",I)}function Ze(Ie,Xe){for(var yr=T.isSubplotConstrained?{x:y,y:p}[Ie]:T[Ie+"axes"],kr=T.isSubplotConstrained?{x:p,y}[Ie]:[],pr=0;pr<yr.length;pr++){var xr=yr[pr],Pr=xr._id,Lr=T.xLinks[Pr]||T.yLinks[Pr],Hr=kr[0]||d[Lr]||m[Lr];Hr&&(Xe?(Xe[xr._name+".range[0]"]=Xe[Hr._name+".range[0]"],Xe[xr._name+".range[1]"]=Xe[Hr._name+".range[1]"]):xr.range=Hr.range.slice())}}function fr(){var Ie=[],Xe;function yr(Pr){for(Xe=0;Xe<Pr.length;Xe++)Pr[Xe].fixedrange||Ie.push(Pr[Xe]._id)}function kr(Pr,Lr){for(Xe=0;Xe<Pr.length;Xe++){var Hr=Pr[Xe],tr=Hr[Lr],Cr=tr._id;!Hr.fixedrange&&tr.tickmode==="sync"&&!Ie.includes(Cr)&&Ie.push(Cr)}}for(z&&(yr(p),yr(M.xaxes),yr(T.xaxes),kr(r.overlays,"xaxis")),B&&(yr(y),yr(M.yaxes),yr(T.yaxes),kr(r.overlays,"yaxis")),I={},Xe=0;Xe<Ie.length;Xe++){var pr=Ie[Xe],xr=f7(e,pr);lP.drawOne(e,xr,{skipTitle:!0}),I[xr._name+".range[0]"]=xr.range[0],I[xr._name+".range[1]"]=xr.range[1]}lP.redrawComponents(e,Ie)}function Dr(){if(!e._transitioningWithDuration){var Ie=e._context.doubleClick,Xe=[];A&&(Xe=Xe.concat(p)),D&&(Xe=Xe.concat(y)),T.xaxes&&(Xe=Xe.concat(T.xaxes)),T.yaxes&&(Xe=Xe.concat(T.yaxes));var yr={},kr,pr;if(Ie==="reset+autosize")for(Ie="autosize",pr=0;pr<Xe.length;pr++){kr=Xe[pr];var xr=kr._rangeInitial0,Pr=kr._rangeInitial1,Lr=xr!==void 0||Pr!==void 0;if(Lr&&(xr!==void 0&&xr!==kr.range[0]||Pr!==void 0&&Pr!==kr.range[1])||!Lr&&kr.autorange!==!0){Ie="reset";break}}if(Ie==="autosize")for(pr=0;pr<Xe.length;pr++)kr=Xe[pr],kr.fixedrange||(yr[kr._name+".autorange"]=!0);else if(Ie==="reset"){for((A||M.isSubplotConstrained)&&(Xe=Xe.concat(M.xaxes)),D&&!M.isSubplotConstrained&&(Xe=Xe.concat(M.yaxes)),M.isSubplotConstrained&&(A?D||(Xe=Xe.concat(y)):Xe=Xe.concat(p)),pr=0;pr<Xe.length;pr++)if(kr=Xe[pr],!kr.fixedrange){var Hr=kr._name,tr=kr._autorangeInitial;kr._rangeInitial0===void 0&&kr._rangeInitial1===void 0?yr[Hr+".autorange"]=!0:kr._rangeInitial0===void 0?(yr[Hr+".autorange"]=tr,yr[Hr+".range"]=[null,kr._rangeInitial1]):kr._rangeInitial1===void 0?(yr[Hr+".range"]=[kr._rangeInitial0,null],yr[Hr+".autorange"]=tr):yr[Hr+".range"]=[kr._rangeInitial0,kr._rangeInitial1]}}e.emit("plotly_doubleclick",null),hg.call("_guiRelayout",e,yr)}}function Te(){Oe([0,0,x,_]),$o.syncOrAsync([Ile.previousPromises,function(){e._fullLayout._replotting=!1,hg.call("_guiRelayout",e,I)}],e)}function Oe(Ie){var Xe=e._fullLayout,yr=Xe._plots,kr=Xe._subplots.cartesian,pr,xr,Pr,Lr;if(H&&hg.subplotsRegistry.splom.drag(e),X){for(pr=0;pr<kr.length;pr++)if(xr=yr[kr[pr]],Pr=xr.xaxis,Lr=xr.yaxis,xr._scene){Pr.limitRange&&Pr.limitRange(),Lr.limitRange&&Lr.limitRange();var Hr=$o.simpleMap(Pr.range,Pr.r2l),tr=$o.simpleMap(Lr.range,Lr.r2l);xr._scene.update({range:[Hr[0],tr[0],Hr[1],tr[1]]})}}if((H||X)&&(Nle(e),Ble(e)),V){var Cr=Ie[2]/c._length,cr=Ie[3]/h._length;for(pr=0;pr<kr.length;pr++){xr=yr[kr[pr]],Pr=xr.xaxis,Lr=xr.yaxis;var Xr=(z||T.isSubplotConstrained)&&!Pr.fixedrange&&d[Pr._id],Kr=(B||T.isSubplotConstrained)&&!Lr.fixedrange&&m[Lr._id],Fr,Wr,Me,Re;if(Xr?(Fr=Cr,Me=l||T.isSubplotConstrained?Ie[0]:Qe(Pr,Fr)):T.xaHash[Pr._id]?(Fr=Cr,Me=Ie[0]*Pr._length/c._length):T.yaHash[Pr._id]?(Fr=cr,Me=D==="ns"?-Ie[1]*Pr._length/h._length:Qe(Pr,Fr,{n:"top",s:"bottom"}[D])):(Fr=Mr(Pr,Cr,cr),Me=Nr(Pr,Fr)),Fr>1&&(Pr.maxallowed!==void 0&&z===(Pr.range[0]<Pr.range[1]?"e":"w")||Pr.minallowed!==void 0&&z===(Pr.range[0]<Pr.range[1]?"w":"e"))&&(Fr=1,Me=0),Kr?(Wr=cr,Re=o||T.isSubplotConstrained?Ie[1]:Qe(Lr,Wr)):T.yaHash[Lr._id]?(Wr=cr,Re=Ie[1]*Lr._length/h._length):T.xaHash[Lr._id]?(Wr=Cr,Re=A==="ew"?-Ie[0]*Lr._length/c._length:Qe(Lr,Wr,{e:"right",w:"left"}[A])):(Wr=Mr(Lr,Cr,cr),Re=Nr(Lr,Wr)),Wr>1&&(Lr.maxallowed!==void 0&&B===(Lr.range[0]<Lr.range[1]?"n":"s")||Lr.minallowed!==void 0&&B===(Lr.range[0]<Lr.range[1]?"s":"n"))&&(Wr=1,Re=0),!(!Fr&&!Wr)){Fr||(Fr=1),Wr||(Wr=1);var ur=Pr._offset-Me/Fr,gr=Lr._offset-Re/Wr;xr.clipRect.call(Bf.setTranslate,Me,Re).call(Bf.setScale,Fr,Wr),xr.plot.call(Bf.setTranslate,ur,gr).call(Bf.setScale,1/Fr,1/Wr),(Fr!==xr.xScaleFactor||Wr!==xr.yScaleFactor)&&(Bf.setPointGroupScale(xr.zoomScalePts,Fr,Wr),Bf.setTextPointsScale(xr.zoomScaleTxt,Fr,Wr)),Bf.hideOutsideRangePoints(xr.clipOnAxisFalseTraces,xr),xr.xScaleFactor=Fr,xr.yScaleFactor=Wr}}}}function Mr(Ie,Xe,yr){return Ie.fixedrange?0:z&&M.xaHash[Ie._id]?Xe:B&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[Ie._id]?yr:0}function Nr(Ie,Xe){return Xe?(Ie.range=Ie._r.slice(),u7(Ie,Xe),Qe(Ie,Xe)):0}function Qe(Ie,Xe,yr){return Ie._length*(1-Xe)*zle[yr||Ie.constraintoward||"middle"]}return fe}function mP(e,r,t,a){var n=$o.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(qle,a),n.node()}function gP(e,r,t,a,n,i,o){var l=mP(e,"rect",r,t);return h7.select(l).call(Bf.setRect,a,n,i,o),l}function fP(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Yle(e,r){var t=e.range[r],a=Math.abs(t-e.range[1-r]),n;return e.type==="date"?t:e.type==="log"?(n=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,oP("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,oP("."+String(n)+"g")(t))}function c7(e,r,t,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l=o._id.charAt(0)==="y",u=l?1-r:r,s=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(u*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(s*o._length))}else{var f=o._rl[0],c=o._rl[1]-f;a[o._name+".range[0]"]=o.l2r(f+c*r),a[o._name+".range[1]"]=o.l2r(f+c*t)}}if(n&&n.length){var h=(r+(1-t))/2;c7(n,h,1-h,a,[])}}function cP(e,r){for(var t=0;t<e.length;t++){var a=e[t];if(!a.fixedrange){if(a.rangebreaks){var n=0,i=a._length,o=a.p2l(n+r)-a.p2l(n),l=a.p2l(i+r)-a.p2l(i),u=(o+l)/2;a.range=[a.l2r(a._rl[0]-u),a.l2r(a._rl[1]-u)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function Vle(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Xle(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yP(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",dP(t,a)).attr("d",n+"Z")}function bP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:s7.background,stroke:s7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",dP(r,t)).attr("d","M0,0Z")}function _P(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),xP(e,r,n,i)}function xP(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function v7(e){h7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function wP(e){sP&&e.data&&e._context.showTips&&($o.notifier($o._(e,"Double-click to zoom back out"),"long",e),sP=!1)}function Wle(e,r){return"M"+(e.l-.5)+","+(r-Li-.5)+"h-3v"+(2*Li+1)+"h3ZM"+(e.r+.5)+","+(r-Li-.5)+"h3v"+(2*Li+1)+"h-3Z"}function jle(e,r){return"M"+(r-Li-.5)+","+(e.t-.5)+"v-3h"+(2*Li+1)+"v3ZM"+(r-Li-.5)+","+(e.b+.5)+"v3h"+(2*Li+1)+"v-3Z"}function pg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Li)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function vP(e,r,t,a,n){for(var i=!1,o={},l={},u,s,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m<r.length;m++){var p=r[m];for(u in t)if(p[u]){for(f in p)!(n&&(h[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=u);for(s in a)!(n&&(h[s]||d[s]))&&p[s]&&(i=!0)}for(s in a)if(p[s])for(c in p)!(n&&(h[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=s)}i&&($o.extendFlat(o,l),l={});var y={},b=[];for(f in o){var C=f7(e,f);b.push(C),y[C._id]=C}var x={},_=[];for(c in l){var M=f7(e,c);_.push(M),x[M._id]=M}return{xaHash:y,yaHash:x,xaxes:b,yaxes:_,xLinks:o,yLinks:l,isSubplotConstrained:i}}function MP(e,r){if(!Lle)e.onwheel!==void 0?e.onwheel=r:e.onmousewheel!==void 0?e.onmousewheel=r:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",r,{passive:!1}));else{var t=e.onwheel!==void 0?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(t,e._onwheel),e._onwheel=r,e.addEventListener(t,r,{passive:!1})}}function hP(e){var r=[];for(var t in e)r.push(e[t]);return r}AP.exports={makeDragBox:Gle,makeDragger:mP,makeRectDragger:gP,makeZoombox:yP,makeCorners:bP,updateZoombox:_P,xyCorners:pg,transitionZoombox:xP,removeZoombox:v7,showDoubleClickNotifier:wP,attachWheelEventHandler:MP}});var p7=ae(gg=>{"use strict";var Zle=Et(),mg=Hl(),Jle=Yo(),$le=Df(),Ul=TP().makeDragBox,Pn=Dn().DRAGGERSIZE;gg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Zle.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),u=o.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,u=o.yaxis;if(!o.mainplot){var s=Ul(r,o,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&mg.hover(r,h,i)},mg.hover(r,h,i),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=i},s.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,Jle.unhover(r,h))},r._context.showAxisDragHandles&&(Ul(r,o,l._offset-Pn,u._offset-Pn,Pn,Pn,"n","w"),Ul(r,o,l._offset+l._length,u._offset-Pn,Pn,Pn,"n","e"),Ul(r,o,l._offset-Pn,u._offset+u._length,Pn,Pn,"s","w"),Ul(r,o,l._offset+l._length,u._offset+u._length,Pn,Pn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Pn),Ul(r,o,l._offset+l._length*.1,f,l._length*.8,Pn,"","ew"),Ul(r,o,l._offset,f,l._length*.1,Pn,"","w"),Ul(r,o,l._offset+l._length*.9,f,l._length*.1,Pn,"","e")}if(i===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=Pn),Ul(r,o,c,u._offset+u._length*.1,Pn,u._length*.8,"ns",""),Ul(r,o,c,u._offset+u._length*.9,Pn,u._length*.1,"s",""),Ul(r,o,c,u._offset,Pn,u._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,mg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,mg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},gg.updateFx(r)}};gg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";$le(r._draggers,t)}});var SP=ae((o4e,CP)=>{"use strict";var kP=bt();CP.exports=function(r){for(var t=kP.layoutArrayContainers,a=kP.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l<a.length;l++)if(o=r.match(a[l]),o&&o.index===0){i=o[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var u=r.slice(i.length);return u?(o=u.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var LP=ae(Ad=>{"use strict";var Kle=uf(),m7=tm(),Md=Ms(),Qle=l5().sorterAsc,g7=bt();Ad.containerArrayMatch=SP();var eue=Ad.isAddVal=function(r){return r==="add"||Kle(r)},EP=Ad.isRemoveVal=function(r){return r===null||r==="remove"};Ad.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=g7.getComponentMethod(o,"supplyLayoutDefaults"),u=g7.getComponentMethod(o,"draw"),s=g7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===m7||u===m7,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Md.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(EP(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Md.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,h),u(r),!0)}var m=Object.keys(a).map(Number).sort(Qle),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,M,T,A,D,P,z,B,X;for(M=0;M<m.length;M++){if(A=m[M],D=a[A],P=Object.keys(D),z=D[""],B=eue(z),A<0||A>y.length-(B?0:1)){Md.warn("index out of range",o,A);continue}if(z!==void 0)P.length>1&&Md.warn("Insertion & removal are incompatible with edits to the same index.",o,A),EP(z)?C.push(A):B?(z==="add"&&(z={}),y.splice(A,0,z),b&&b.splice(A,0,{})):Md.warn("Unrecognized full object edit value",o,A,z),x===-1&&(x=A);else for(T=0;T<P.length;T++)X=o+"["+A+"].",i(y[A],P[T],X).set(D[P[T]])}for(M=C.length-1;M>=0;M--)y.splice(C[M],1),b&&b.splice(C[M],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(c,h),s!==m7){var H;if(x===-1)H=m;else{for(_=Math.max(y.length,_),H=[],M=0;M<m.length&&(A=m[M],!(A>=x));M++)H.push(A);for(M=x;M<_;M++)H.push(M)}for(M=0;M<H.length;M++)s(r,H[M])}else u(r);return!0}});var NP=ae(Ko=>{"use strict";var PP=Wt(),RP=bt(),_i=mr(),Td=Mn(),zP=wn(),kd=zP.cleanId,rue=zP.getFromTrace,y7=RP.traceIs,tue=["x","y","z"];Ko.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&_i.log("Clearing previous rejected promises from queue."),e._promises=[]};Ko.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Td.subplotsRegistry.cartesian||{}).attrRegex,n=(Td.subplotsRegistry.polar||{}).attrRegex,i=(Td.subplotsRegistry.ternary||{}).attrRegex,o=(Td.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var u=l[r];if(a&&a.test(u)){var s=e[u];s.anchor&&s.anchor!=="free"&&(s.anchor=kd(s.anchor)),s.overlaying&&(s.overlaying=kd(s.overlaying)),s.type||(s.isdate?s.type="date":s.islog?s.type="log":s.isdate===!1&&s.islog===!1&&(s.type="linear")),(s.autorange==="withzero"||s.autorange==="tozero")&&(s.autorange=!0,s.rangemode="tozero"),s.insiderange&&delete s.range,delete s.islog,delete s.isdate,delete s.categories,yg(s,"domain")&&delete s.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];_i.isPlainObject(c)&&(cv(c,"xref"),cv(c,"yref"))}var h=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<h;r++){var d=e.shapes[r];_i.isPlainObject(d)&&(cv(d,"xref",!0),cv(d,"yref",!0))}var m=Array.isArray(e.images)?e.images.length:0;for(r=0;r<m;r++){var p=e.images[r];_i.isPlainObject(p)&&(cv(p,"xref"),cv(p,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Ko.cleanLayout(e.template.layout),e};function cv(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=kd(a,n,!0))}Ko.cleanData=function(e){for(var r=0;r<e.length;r++){var t=e[r],a;if(t.type==="histogramy"&&"xbins"in t&&!("ybins"in t)&&(t.ybins=t.xbins,delete t.xbins),t.type==="histogramy"&&Ko.swapXYData(t),(t.type==="histogramx"||t.type==="histogramy")&&(t.type="histogram"),"scl"in t&&!("colorscale"in t)&&(t.colorscale=t.scl,delete t.scl),"reversescl"in t&&!("reversescale"in t)&&(t.reversescale=t.reversescl,delete t.reversescl),t.xaxis&&(t.xaxis=kd(t.xaxis,"x")),t.yaxis&&(t.yaxis=kd(t.yaxis,"y")),y7(t,"gl3d")&&t.scene&&(t.scene=Td.subplotsRegistry.gl3d.cleanId(t.scene)),!y7(t,"pie-like")&&!y7(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=FP(t.textposition[a]);else t.textposition&&(t.textposition=FP(t.textposition));var n=RP.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,o=i?t[i]:t;o&&o.colorscale&&(o.colorscale==="YIGnBu"&&(o.colorscale="YlGnBu"),o.colorscale==="YIOrRd"&&(o.colorscale="YlOrRd"))}if(t.type==="surface"&&_i.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var u=t.contours[l[a]];_i.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var s=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=DP(t.increasing),h=DP(t.decreasing);if(c!==!1&&h!==!1){var d=aue(c,h,s,f);d&&(t.name=d)}else(c||h)&&!t.name&&(t.name=c||h)}yg(t,"line")&&delete t.line,"marker"in t&&(yg(t.marker,"line")&&delete t.marker.line,yg(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function DP(e){if(!_i.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function aue(e,r,t,a){if(t&&!a)return e;if(a&&!t||!e.trim())return r;if(!r.trim())return e;var n=Math.min(e.length,r.length),i;for(i=0;i<n&&e.charAt(i)===r.charAt(i);i++);var o=e.slice(0,i);return o.trim()}function FP(e){var r="middle",t="center";return typeof e=="string"&&(e.indexOf("top")!==-1?r="top":e.indexOf("bottom")!==-1&&(r="bottom"),e.indexOf("left")!==-1?t="left":e.indexOf("right")!==-1&&(t="right")),r+" "+t}function yg(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}Ko.swapXYData=function(e){var r;if(_i.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var t=e.error_y,a="copy_ystyle"in t?t.copy_ystyle:!(t.color||t.thickness||t.width);_i.swapAttrs(e,["error_?.copy_ystyle"]),a&&_i.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var n=e.hoverinfo.split("+");for(r=0;r<n.length;r++)n[r]==="x"?n[r]="y":n[r]==="y"&&(n[r]="x");e.hoverinfo=n.join("+")}};Ko.coerceTraceIndices=function(e,r){if(PP(r))return[r];if(!Array.isArray(r)||!r.length)return e.data.map(function(n,i){return i});if(Array.isArray(r)){for(var t=[],a=0;a<r.length;a++)_i.isIndex(r[a],e.data.length)?t.push(r[a]):_i.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};Ko.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=PP(o);if(l&&r===null){var u=n.slice(0,i-1).join("."),s=_i.nestedProperty(a,u).get();s.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var nue=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function qP(e){var r=e.search(nue);if(r>0)return e.slice(0,r)}Ko.hasParent=function(e,r){for(var t=qP(r);t;){if(t in e)return!0;t=qP(t)}return!1};Ko.clearAxisTypes=function(e,r,t){for(var a=0;a<r.length;a++)for(var n=e._fullData[a],i=0;i<3;i++){var o=rue(e,n,tue[i]);if(o&&o.type!=="log"){var l=o._name,u=o._id.slice(1);if(u.slice(0,5)==="scene"){if(t[u]!==void 0)continue;l=u+"."+l}var s=l+".type";t[l]===void 0&&t[s]===void 0&&_i.nestedProperty(e.layout,s).set(null)}}};var b7=(e,r)=>{let t=(...a)=>a.every(n=>_i.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?b7(n,i):!1))return!1}return!0}else if([e,r].every(a=>_i.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?b7(n,i):!1))return!1}return!0}return!1};Ko.collectionsAreEqual=b7});var T7=ae(Ht=>{"use strict";var xg=Et(),iue=Wt(),oue=_5(),Ir=mr(),ka=Ir.nestedProperty,w7=Sh(),Di=bk(),Qo=bt(),Sg=N1(),mt=Mn(),xi=Ba(),lue=U6(),uue=Nl(),_7=va(),sue=Ft(),fue=p7().initInteractions,cue=W0(),vue=Rs().clearOutline,UP=cf().dfltConfig,bg=LP(),cn=NP(),la=Q2(),If=Io(),hue=Dn().AX_NAME_PATTERN,x7=0,BP=5;function due(e,r,t,a){var n;if(e=Ir.getGraphDiv(e),w7.init(e),Ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=w7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Ir.isPlotDiv(e)&&Ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Ht.addFrames(e,n)}YP(e,a),t||(t={}),xg.select(e).classed("js-plotly-plot",!0),_7.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(cn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=cn.cleanLayout(t)),mt.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Nue(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),_7.initGradients(e),_7.initPatterns(e),u&&xi.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&mt.doCalcdata(e);for(var h=0;h<e.calcdata.length;h++)e.calcdata[h][0].trace=e._fullData[h];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){Ir.isHidden(e)||mt.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):Ir.clearResponsive(e);var d=Ir.extendFlat({},s._size),m=0;function p(){for(var A=s._basePlotModules,D=0;D<A.length;D++)A[D].drawFramework&&A[D].drawFramework(e);!s._glcanvas&&s._has("gl")&&(s._glcanvas=s._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(X){return X.key}),s._glcanvas.enter().append("canvas").attr("class",function(X){return"gl-canvas gl-canvas-"+X.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var P=e._context.plotGlPixelRatio;if(s._glcanvas){s._glcanvas.attr("width",s.width*P).attr("height",s.height*P).style("width",s.width+"px").style("height",s.height+"px");var z=s._glcanvas.data()[0].regl;if(z&&(Math.floor(s.width*P)!==z._gl.drawingBufferWidth||Math.floor(s.height*P)!==z._gl.drawingBufferHeight)){var B="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)Ir.error(B);else return Ir.log(B+" Clearing graph and plotting again."),mt.cleanPlot([],{},e._fullData,s),mt.supplyDefaults(e),s=e._fullLayout,mt.doCalcdata(e),m++,p()}}return s.modebar.orientation==="h"?s._modebardiv.style("height",null).style("width","100%"):s._modebardiv.style("width",null).style("height",s.height+"px"),mt.previousPromises(e)}function y(){if(mt.clearAutoMarginIds(e),la.drawMarginPushers(e),xi.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&mt.allowAutoMargin(e,"title.automargin"),s._has("pie"))for(var A=e._fullData,D=0;D<A.length;D++){var P=A[D];P.type==="pie"&&P.automargin&&mt.allowAutoMargin(e,"pie."+P.uid+".automargin")}return mt.doAutoMargin(e),mt.previousPromises(e)}function b(){if(mt.didMarginChange(d,s._size))return Ir.syncOrAsync([y,la.layoutStyles],e)}function C(){if(!c){x();return}return Ir.syncOrAsync([Qo.getComponentMethod("shapes","calcAutorange"),Qo.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(la.doAutoRangeAndConstraints(e),u&&xi.saveRangeInitial(e),Qo.getComponentMethod("rangeslider","calcAutorange")(e))}function _(){return xi.draw(e,u?"":"redraw")}var M=[mt.previousPromises,l,p,y,b];f&&M.push(C),M.push(la.layoutStyles),f&&M.push(_,function(D){var P=D._fullLayout._insideTickLabelsUpdaterange;if(P)return D._fullLayout._insideTickLabelsUpdaterange=void 0,Cd(D,P).then(function(){xi.saveRangeInitial(D,!0)})}),M.push(la.drawData,la.finalDraw,fue,mt.rehover,mt.redrag,mt.reselect,mt.doAutoMargin,mt.previousPromises);var T=Ir.syncOrAsync(M,e);return(!T||!T.then)&&(T=Promise.resolve()),T.then(function(){return Sd(e),e})}function Sd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function pue(e){return Ir.extendFlat(UP,e)}function GP(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Ir.error(t)}}function mue(e,r){var t=sue.combine(r,"white");GP(e,t)}function YP(e,r){if(!e._context){e._context=Ir.extendDeep({},UP);var t=xg.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)o=i[n],!(o==="editable"||o==="edits")&&o in a&&(o==="setBackground"&&r[o]==="opaque"?a[o]=mue:a[o]=r[o]);var l=r.editable;if(l!==void 0)for(a.editable=l,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=l;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)o=i[n],o in a.edits&&(a.edits[o]=r.edits[o]);a._exportedPlot=r._exportedPlot}a.staticPlot&&(a.editable=!1,a.edits={},a.autosizable=!1,a.scrollZoom=!1,a.doubleClick=!1,a.showTips=!1,a.displayModeBar=!1),a.displayModeBar==="hover"&&!oue&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=GP),a._hasZeroHeight=a._hasZeroHeight||e.clientHeight===0,a._hasZeroWidth=a._hasZeroWidth||e.clientWidth===0;var u=a.scrollZoom,s=a._scrollZoom={};if(u===!0)s.cartesian=1,s.gl3d=1,s.geo=1,s.map=1;else if(typeof u=="string"){var f=u.split("+");for(n=0;n<f.length;n++)s[f[n]]=1}else u!==!1&&(s.gl3d=1,s.geo=1,s.map=1)}function gue(e){if(e=Ir.getGraphDiv(e),!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return cn.cleanData(e.data),cn.cleanLayout(e.layout),e.calcdata=void 0,Ht._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function yue(e,r,t,a){return e=Ir.getGraphDiv(e),mt.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),mt.purge(e),Ht._doPlot(e,r,t,a)}function wg(e,r){var t=r+1,a=[],n,i;for(n=0;n<e.length;n++)i=e[n],i<0?a.push(t+i):a.push(i);return a}function Mg(e,r,t){var a,n;for(a=0;a<r.length;a++){if(n=r[a],n!==parseInt(n,10))throw new Error("all values in "+t+" must be integers");if(n>=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function VP(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Mg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Mg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function bue(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a<r.length;a++)if(n=r[a],typeof n!="object"||Array.isArray(n)||n===null)throw new Error("all values in traces array must be non-array objects");if(typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&t.length!==r.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function _ue(e,r,t,a){var n=Ir.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Ir.isPlainObject(r))throw new Error("update must be a key:value object");if(typeof t=="undefined")throw new Error("indices must be an integer or array of integers");Mg(e,t,"indices");for(var i in r){if(!Array.isArray(r[i])||r[i].length!==t.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(n&&(!(i in a)||!Array.isArray(a[i])||a[i].length!==r[i].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}function xue(e,r,t,a){var n=Ir.isPlainObject(a),i=[],o,l,u,s,f;Array.isArray(t)||(t=[t]),t=wg(t,e.data.length-1);for(var c in r)for(var h=0;h<t.length;h++){if(o=e.data[t[h]],u=ka(o,c),l=u.get(),s=r[c][h],!Ir.isArrayOrTypedArray(s))throw new Error("attribute: "+c+" index: "+h+" must be an array");if(!Ir.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==s.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][h]:a,iue(f)||(f=-1),i.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return i}function XP(e,r,t,a,n){_ue(e,r,t,a);for(var i=xue(e,r,t,a),o={},l={},u=0;u<i.length;u++){var s=i[u].prop,f=i[u].maxp,c=n(i[u].target,i[u].insert,f);s.set(c[0]),Array.isArray(o[s.astr])||(o[s.astr]=[]),o[s.astr].push(c[1]),Array.isArray(l[s.astr])||(l[s.astr]=[]),l[s.astr].push(i[u].target.length)}return{update:o,maxPoints:l}}function WP(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function jP(e,r,t,a){e=Ir.getGraphDiv(e);function n(u,s,f){var c,h;if(Ir.isTypedArray(u))if(f<0){var d=new u.constructor(0),m=WP(u,s);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new u.constructor(f),h=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),h.set(u);else if(f<s.length){var p=s.length-f;c.set(s.subarray(p)),h.set(u),h.set(s.subarray(0,p),u.length)}else{var y=f-s.length,b=u.length-y;c.set(u.subarray(b)),c.set(s,y),h.set(u.subarray(0,b))}else c=u.concat(s),h=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,h]}var i=XP(e,r,t,a,n),o=Ht.redraw(e),l=[e,i.update,t,i.maxPoints];return Di.add(e,Ht.prependTraces,l,jP,arguments),o}function ZP(e,r,t,a){e=Ir.getGraphDiv(e);function n(u,s,f){var c,h;if(Ir.isTypedArray(u))if(f<=0){var d=new u.constructor(0),m=WP(s,u);f<0?(c=m,h=d):(c=d,h=m)}else if(c=new u.constructor(f),h=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),h.set(u);else if(f<s.length){var p=s.length-f;c.set(s.subarray(0,p)),h.set(s.subarray(p)),h.set(u,p)}else{var y=f-s.length;c.set(s),c.set(u.subarray(0,y),s.length),h.set(u.subarray(y))}else c=s.concat(u),h=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,h]}var i=XP(e,r,t,a,n),o=Ht.redraw(e),l=[e,i.update,t,i.maxPoints];return Di.add(e,Ht.extendTraces,l,ZP,arguments),o}function JP(e,r,t){e=Ir.getGraphDiv(e);var a=[],n=Ht.deleteTraces,i=JP,o=[e,a],l=[e,r],u,s;for(bue(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return Ir.extendFlat({},f)}),cn.cleanData(r),u=0;u<r.length;u++)e.data.push(r[u]);for(u=0;u<r.length;u++)a.push(-r.length+u);if(typeof t=="undefined")return s=Ht.redraw(e),Di.add(e,n,o,i,l),s;Array.isArray(t)||(t=[t]);try{VP(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return Di.startSequence(e),Di.add(e,n,o,i,l),s=Ht.moveTraces(e,a,t),Di.stopSequence(e),s}function $P(e,r){e=Ir.getGraphDiv(e);var t=[],a=Ht.addTraces,n=$P,i=[e,t,r],o=[e,r],l,u;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),Mg(e,r,"indices"),r=wg(r,e.data.length-1),r.sort(Ir.sorterDes),l=0;l<r.length;l+=1)u=e.data.splice(r[l],1)[0],t.push(u);var s=Ht.redraw(e);return Di.add(e,a,i,n,o),s}function M7(e,r,t){e=Ir.getGraphDiv(e);var a=[],n=[],i=M7,o=M7,l=[e,t,r],u=[e,r,t],s;if(VP(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],s=0;s<r.length;s++)t.push(-r.length+s);for(t=Array.isArray(t)?t:[t],r=wg(r,e.data.length-1),t=wg(t,e.data.length-1),s=0;s<e.data.length;s++)r.indexOf(s)===-1&&a.push(e.data[s]);for(s=0;s<r.length;s++)n.push({newIndex:t[s],trace:e.data[r[s]]});for(n.sort(function(c,h){return c.newIndex-h.newIndex}),s=0;s<n.length;s+=1)a.splice(n[s].newIndex,0,n[s].trace);e.data=a;var f=Ht.redraw(e);return Di.add(e,i,l,o,u),f}function Ag(e,r,t,a){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(Ir.isPlainObject(r))n=Ir.extendFlat({},r),a===void 0&&(a=t);else return Ir.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=cn.coerceTraceIndices(e,a),o=KP(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&cn.clearAxisTypes(e,i,{});var u=[];l.fullReplot?u.push(Ht._doPlot):(u.push(mt.previousPromises),mt.supplyDefaults(e),l.markerSize&&(mt.doCalcdata(e),Eg(u)),l.style&&u.push(la.doTraceStyle),l.colorbars&&u.push(la.doColorBars),u.push(Sd)),u.push(mt.rehover,mt.redrag,mt.reselect),Di.add(e,Ag,[e,o.undoit,o.traces],Ag,[e,o.redoit,o.traces]);var s=Ir.syncOrAsync(u,e);return(!s||!s.then)&&(s=Promise.resolve()),s.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function zs(e){return e===void 0?null:e}function _g(e,r){return r?function(t,a,n){var i=ka(t,a),o=i.set;return i.set=function(l){var u=(n||"")+a;Tg(u,i.get(),l,e),o(l)},i}:ka}function Tg(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],o=Math.max(n.length,i.length),l=0;l<o;l++)Tg(e+"["+l+"]",n[l],i[l],a);else if(Ir.isPlainObject(r)||Ir.isPlainObject(t)){var u=Ir.isPlainObject(r)?r:{},s=Ir.isPlainObject(t)?t:{},f=Ir.extendFlat({},u,s);for(var c in f)Tg(e+"."+c,u[c],s[c],a)}else a[e]===void 0&&(a[e]=zs(r))}function wue(e,r,t){for(var a in t){var n=ka(e,a);Tg(a,n.get(),t[a],r)}}function KP(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=_g(a._preGUI,o),u=Ir.extendDeepAll({},r),s,f=If.traceFlags(),c={},h={},d;function m(){return t.map(function(){})}function p(K){var $=xi.id2name(K);d.indexOf($)===-1&&d.push($)}function y(K){return"LAYOUT"+K+".autorange"}function b(K){return"LAYOUT"+K+".range"}function C(K,$,le){if(Array.isArray(K)){K.forEach(function(er){C(er,$,le)});return}if(!(K in r||cn.hasParent(r,K))){var we;if(K.slice(0,6)==="LAYOUT")we=l(e.layout,K.replace("LAYOUT",""));else{var Ne=t[le],$e=a._tracePreGUI[n[Ne].uid];we=_g($e,o)(i[Ne],K)}K in h||(h[K]=m()),h[K][le]===void 0&&(h[K][le]=zs(we.get())),$!==void 0&&we.set($)}}function x(K){return function($){return n[$][K]}}function _(K){return function($,le){return $===!1?n[t[le]][K]:null}}for(var M in r){if(cn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var T=r[M],A,D,P,z,B,X;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(T)?T=T.map(_(M)):T===!1?T=t.map(x(M)):T=null),c[M]=T,M.slice(0,6)==="LAYOUT"){P=l(e.layout,M.replace("LAYOUT","")),h[M]=[zs(P.get())],P.set(Array.isArray(T)?T[0]:T),f.calc=!0;continue}for(h[M]=m(),s=0;s<t.length;s++){A=i[t[s]],D=n[t[s]];var H=a._tracePreGUI[D.uid];if(P=_g(H,o)(A,M),z=P.get(),B=Array.isArray(T)?T[s%T.length]:T,B!==void 0){var V=P.parts[P.parts.length-1],I=M.slice(0,M.length-V.length-1),Q=I?I+".":"",ne=I?ka(D,I).get():D;if(X=Sg.getTraceValObject(D,P.parts),X&&X.impliedEdits&&B!==null)for(var te in X.impliedEdits)C(Ir.relativeAttr(M,te),X.impliedEdits[te],s);else if((V==="thicknessmode"||V==="lenmode")&&z!==B&&(B==="fraction"||B==="pixels")&&ne){var ee=a._size,fe=ne.orient,ve=fe==="top"||fe==="bottom";if(V==="thicknessmode"){var Ae=ve?ee.h:ee.w;C(Q+"thickness",ne.thickness*(B==="fraction"?1/Ae:Ae),s)}else{var Ee=ve?ee.w:ee.h;C(Q+"len",ne.len*(B==="fraction"?1/Ee:Ee),s)}}else if(M==="type"&&(B==="pie"!=(z==="pie")||B==="funnelarea"!=(z==="funnelarea"))){var Be="x",Ue="y";(B==="bar"||z==="bar")&&A.orientation==="h"&&(Be="y",Ue="x"),Ir.swapAttrs(A,["?"],"labels",Be),Ir.swapAttrs(A,["d?","?0"],"label",Be),Ir.swapAttrs(A,["?"],"values",Ue),z==="pie"||z==="funnelarea"?(ka(A,"marker.color").set(ka(A,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):Qo.traceIs(A,"cartesian")&&ka(A,"marker.colors").set(ka(A,"marker.color").get())}h[M][s]=zs(z);var ke=["swapxy","swapxyaxes","orientation","orientationaxes"];if(ke.indexOf(M)!==-1){if(M==="orientation"){P.set(B);var We=A.x&&!A.y?"h":"v";if((P.get()||We)===D.orientation)continue}else M==="orientationaxes"&&(A.orientation={v:"h",h:"v"}[D.orientation]);cn.swapXYData(A),f.calc=f.clearAxisTypes=!0}else mt.dataArrayContainers.indexOf(P.parts[0])!==-1?(cn.manageArrayContainers(P,B,h),f.calc=!0):(X?X.arrayOk&&!Qo.traceIs(D,"regl")&&(Ir.isArrayOrTypedArray(B)||Ir.isArrayOrTypedArray(z))?f.calc=!0:If.update(f,X):f.calc=!0,P.set(B))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&xi.swap(e,t),M==="orientationaxes"){var j=ka(e.layout,"hovermode"),re=j.get();re==="x"?j.set("y"):re==="y"?j.set("x"):re==="x unified"?j.set("y unified"):re==="y unified"&&j.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(d=[],s=0;s<t.length;s++){var me=i[t[s]];Qo.traceIs(me,"cartesian")&&(p(me.xaxis||"x"),p(me.yaxis||"y"))}C(d.map(y),!0,0),C(d.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:h,redoit:c,traces:t,eventData:Ir.extendDeepNoArrays([],[u,t])}}function Cd(e,r,t){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(Ir.isPlainObject(r))a=Ir.extendFlat({},r);else return Ir.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=tR(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[mt.previousPromises];i.layoutReplot?o.push(la.layoutReplot):Object.keys(a).length&&(QP(e,i,n)||mt.supplyDefaults(e),i.legend&&o.push(la.doLegend),i.layoutstyle&&o.push(la.layoutStyles),i.axrange&&Eg(o,n.rangesAltered),i.ticks&&o.push(la.doTicksRelayout),i.modebar&&o.push(la.doModeBar),i.camera&&o.push(la.doCamera),i.colorbars&&o.push(la.doColorBars),o.push(Sd)),o.push(mt.rehover,mt.redrag,mt.reselect),Di.add(e,Cd,[e,n.undoit],Cd,[e,n.redoit]);var l=Ir.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function QP(e,r,t){var a=e._fullLayout;if(!r.axrange)return!1;for(var n in r)if(n!=="axrange"&&r[n])return!1;var i,o,l=function(d,m){return Ir.coerce(i,o,uue,d,m)},u={};for(var s in t.rangesAltered){var f=xi.id2name(s);if(i=e.layout[f],o=a[f],lue(i,o,l,u),o._matchGroup){for(var c in o._matchGroup)if(c!==s){var h=a[xi.id2name(c)];h.autorange=o.autorange,h.range=o.range.slice(),h._input.range=o.range.slice()}}}return!0}function Eg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=xi.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var u in l._matchGroup)r[u]||n.push(u)}return xi.draw(a,n,{skipTitle:i})}:function(a){return xi.draw(a,"redraw")};e.push(vue,la.doAutoRangeAndConstraints,t,la.drawData,la.finalDraw)}var eR=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,rR=/^[xyz]axis[0-9]*\.autorange$/,Mue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function tR(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=_g(a._preGUI,n),o=Object.keys(r),l=xi.list(e),u=Ir.extendDeepAll({},r),s={},f,c,h;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(h=0;h<l.length;h++){var d=l[h]._id.slice(1),m=d.indexOf("scene")!==-1?d+".":"",p=o[c].replace("allaxes",m+l[h]._name);r[p]||(r[p]=r[o[c]])}delete r[o[c]]}var y=If.layoutFlags(),b={},C={};function x(er,ir){if(Array.isArray(er)){er.forEach(function(Pe){x(Pe,ir)});return}if(!(er in r||cn.hasParent(r,er))){var sr=i(t,er);er in C||(C[er]=zs(sr.get())),ir!==void 0&&sr.set(ir)}}var _={},M;function T(er){var ir=xi.name2id(er.split(".")[0]);return _[ir]=1,ir}for(var A in r){if(cn.hasParent(r,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");for(var D=i(t,A),P=r[A],z=D.parts.length,B=z-1;B>0&&typeof D.parts[B]!="string";)B--;var X=D.parts[B],H=D.parts[B-1]+"."+X,V=D.parts.slice(0,B).join("."),I=ka(e.layout,V).get(),Q=ka(a,V).get(),ne=D.get();if(P!==void 0){b[A]=P,C[A]=X==="reverse"?P:zs(ne);var te=Sg.getLayoutValObject(a,D.parts);if(te&&te.impliedEdits&&P!==null)for(var ee in te.impliedEdits)x(Ir.relativeAttr(A,ee),te.impliedEdits[ee]);if(["width","height"].indexOf(A)!==-1)if(P){x("autosize",null);var fe=A==="height"?"width":"height";x(fe,a[fe])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(H.match(eR))T(H),ka(a,V+"._inputRange").set(null);else if(H.match(rR)){T(H),ka(a,V+"._inputRange").set(null);var ve=ka(a,V).get();ve._inputDomain&&(ve._input.domain=ve._inputDomain.slice())}else H.match(Mue)&&ka(a,V+"._inputDomain").set(null);if(X==="type"){M=I;var Ae=Q.type==="linear"&&P==="log",Ee=Q.type==="log"&&P==="linear";if(Ae||Ee){if(!M||!M.range)x(V+".autorange",!0);else if(Q.autorange)Ae&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Be=M.range[0],Ue=M.range[1];Ae?(Be<=0&&Ue<=0&&x(V+".autorange",!0),Be<=0?Be=Ue/1e6:Ue<=0&&(Ue=Be/1e6),x(V+".range[0]",Math.log(Be)/Math.LN10),x(V+".range[1]",Math.log(Ue)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Be)),x(V+".range[1]",Math.pow(10,Ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete a[D.parts[0]]._subplot.viewInitial["radialaxis.range"],Qo.getComponentMethod("annotations","convertCoords")(e,Q,P,x),Qo.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(V+".autorange",!0),x(V+".range",null);ka(a,V+"._inputRange").set(null)}else if(X.match(hue)){var ke=ka(a,A).get(),We=(P||{}).type;(!We||We==="-")&&(We="linear"),Qo.getComponentMethod("annotations","convertCoords")(e,ke,We,x),Qo.getComponentMethod("images","convertCoords")(e,ke,We,x)}var j=bg.containerArrayMatch(A);if(j){f=j.array,c=j.index;var re=j.property,me=te||{editType:"calc"};c!==""&&re===""&&(bg.isAddVal(P)?C[A]=null:bg.isRemoveVal(P)?C[A]=(ka(t,f).get()||[])[c]:Ir.warn("unrecognized full object value",r)),If.update(y,me),s[f]||(s[f]={});var K=s[f][c];K||(K=s[f][c]={}),K[re]=P,delete r[A]}else X==="reverse"?(I.range?I.range.reverse():(x(V+".autorange",!0),I.range=[1,0]),Q.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(P===!1&&ne!==!1||P!==!1&&ne===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(P==="lasso"||P==="select")&&!(ne==="lasso"||ne==="select")?y.plot=!0:te?If.update(y,te):y.calc=!0,D.set(P))}}for(f in s){var $=bg.applyContainerArrayChanges(e,i(t,f),s[f],y,i);$||(y.plot=!0)}for(var le in _){M=xi.getFromId(e,le);var we=M&&M._constraintGroup;if(we){y.calc=!0;for(var Ne in we)_[Ne]||(xi.getFromId(e,Ne)._constraintShrinkable=!0)}}(aR(e)||r.height||r.width)&&(y.plot=!0);var $e=a.shapes;for(c=0;c<$e.length;c++)if($e[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:_,undoit:C,redoit:b,eventData:u}}function aR(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&mt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function kg(e,r,t,a){e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e),Ir.isPlainObject(r)||(r={}),Ir.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=cn.coerceTraceIndices(e,a),i=KP(e,Ir.extendFlat({},r),n),o=i.flags,l=tR(e,Ir.extendFlat({},t)),u=l.flags;(o.calc||u.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&cn.clearAxisTypes(e,n,t);var s=[];u.layoutReplot?s.push(la.layoutReplot):o.fullReplot?s.push(Ht._doPlot):(s.push(mt.previousPromises),QP(e,u,l)||mt.supplyDefaults(e),o.style&&s.push(la.doTraceStyle),(o.colorbars||u.colorbars)&&s.push(la.doColorBars),u.legend&&s.push(la.doLegend),u.layoutstyle&&s.push(la.layoutStyles),u.axrange&&Eg(s,l.rangesAltered),u.ticks&&s.push(la.doTicksRelayout),u.modebar&&s.push(la.doModeBar),u.camera&&s.push(la.doCamera),s.push(Sd)),s.push(mt.rehover,mt.redrag,mt.reselect),Di.add(e,kg,[e,i.undoit,l.undoit,i.traces],kg,[e,i.redoit,l.redoit,i.traces]);var f=Ir.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function A7(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var Aue=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^selections/,attr:"selectionrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Tue=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/^visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/^name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function IP(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=e.match(a.pattern);if(n){var i=n[1]||"";return{head:i,tail:e.slice(i.length+1),attr:a.attr}}}}function HP(e,r){var t=ka(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=ka(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function kue(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Cue(e,r,t){for(var a=0;a<r.length;a++)if(r[a].uid===e)return a;return!r[t]||r[t].uid?-1:t}function OP(e,r){var t=Ir.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&Ir.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Sue(e,r,t,a){var n=a._preGUI,i,o,l,u,s,f,c,h,d,m,p=[],y={},b={};for(i in n){if(s=IP(i,Aue),s){if(d=s.head,m=s.tail,o=s.attr||d+".uirevision",l=ka(a,o).get(),u=l&&HP(o,r),u&&u===l){if(f=n[i],f===null&&(f=void 0),c=ka(r,i),h=c.get(),OP(h,f)){h===void 0&&m==="autorange"&&p.push(d),c.set(zs(ka(a,i).get()));continue}else if(m==="autorange"||m.slice(0,6)==="range["){var C=n[d+".range[0]"],x=n[d+".range[1]"],_=n[d+".autorange"];if(_||_===null&&C===null&&x===null){if(!(d in y)){var M=ka(r,d).get();y[d]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(y[d]){c.set(zs(ka(a,i).get()));continue}}}}}else Ir.warn("unrecognized GUI edit: "+i);delete n[i],s&&s.tail.slice(0,6)==="range["&&(b[s.head]=1)}for(var T=0;T<p.length;T++){var A=p[T];if(b[A]){var D=ka(r,A).get();D&&delete D.autorange}}var P=a._tracePreGUI;for(var z in P){var B=P[z],X=null,H;for(i in B){if(!X){var V=kue(z,t);if(V<0){delete P[z];break}H=t[V];var I=Cue(z,e,H.index);if(I<0){delete P[z];break}X=e[I]}if(s=IP(i,Tue),s){if(s.attr?(l=ka(a,s.attr).get(),u=l&&HP(s.attr,r)):(l=H.uirevision,u=X.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=B[i],f===null&&(f=void 0),c=ka(X,i),h=c.get(),OP(h,f))){c.set(zs(ka(H,i).get()));continue}}else Ir.warn("unrecognized GUI edit: "+i+" in trace uid "+z);delete B[i]}}}function Eue(e,r,t,a){var n,i;function o(){return Ht.addFrames(e,n)}e=Ir.getGraphDiv(e),cn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!Ir.isPlotDiv(e)||!l||!u)i=Ht.newPlot(e,r,t,a);else{if(Ir.isPlainObject(r)){var s=r;r=s.data,t=s.layout,a=s.config,n=s.frames}var f=!1;if(a){let H=Ir.extendDeepAll({},e._context);e._context=void 0,YP(e,a),f=!cn.collectionsAreEqual(H,e._context)}if(f){let H=e._ev.eventNames().map(V=>[V,e._ev.listeners(V)]);i=Ht.newPlot(e,r,t,a).then(()=>{for(let[V,I]of H)I.forEach(Q=>e.on(V,Q));return Ht.react(e,r,t,a)})}else{e.data=r||[],cn.cleanData(e.data),e.layout=t||{},cn.cleanLayout(e.layout),Sue(e.data,e.layout,l,u),mt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=Due(e,u,h,d,m),y=p.newDataRevision,b=Lue(e,l,c,d,m,y);if(aR(e)&&(p.layoutReplot=!0),b.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x<C.length;x++){var _=C[x],M=_.substring(0,5);if(M==="xaxis"||M==="yaxis"){var T=h[_]._emptyCategories;T&&T()}}}else mt.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},mt.createTransitionData(e),A.push(o)),h.transition&&(b.anim||p.anim))p.ticks&&A.push(la.doTicksRelayout),mt.doCalcdata(e),la.doAutoRangeAndConstraints(e),A.push(function(){return mt.transitionFromReact(e,b,p,u)});else if(b.fullReplot||p.layoutReplot)e._fullLayout._skipDefaults=!0,A.push(Ht._doPlot);else{for(var D in p.arrays){var P=p.arrays[D];if(P.length){var z=Qo.getComponentMethod(D,"drawOne");if(z!==Ir.noop)for(var B=0;B<P.length;B++)z(e,P[B]);else{var X=Qo.getComponentMethod(D,"draw");if(X===Ir.noop)throw new Error("cannot draw components: "+D);X(e)}}}A.push(mt.previousPromises),b.style&&A.push(la.doTraceStyle),(b.colorbars||p.colorbars)&&A.push(la.doColorBars),p.legend&&A.push(la.doLegend),p.layoutstyle&&A.push(la.layoutStyles),p.axrange&&Eg(A),p.ticks&&A.push(la.doTicksRelayout),p.modebar&&A.push(la.doModeBar),p.camera&&A.push(la.doCamera),A.push(Sd)}A.push(mt.rehover,mt.redrag,mt.reselect),i=Ir.syncOrAsync(A,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Lue(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=If.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(d){var m=Sg.getTraceValObject(s,d);return!s._module.animatable&&m.anim&&(m.anim=!1),m}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(u=0;u<r.length;u++)if(t[u]){if(s=t[u],h[s.uid])continue;h[s.uid]=1,Cg(r[u],s,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),n&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&o?"all":"some"),l}function Due(e,r,t,a,n){var i=If.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(h){return Sg.getLayoutValObject(t,h)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var u=t[l].domain,s=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(u[0]===f[0]&&u[1]===f[1]?t[l].domain=r[l].domain:(u[0]!==s[0]||u[1]!==s[1])&&(t[l]._inputDomain=null))}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return Cg(r,t,[],c),(i.plot||i.calc)&&(i.layoutReplot=!0),n&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}function Cg(e,r,t,a){var n,i,o,l=a.getValObject,u=a.flags,s=a.immutable,f=a.inArray,c=a.arrayIndex;function h(){var V=n.editType;if(f&&V.indexOf("arraydraw")!==-1){Ir.pushUnique(u.arrays[f],c);return}If.update(u,n),V!=="none"&&u.nChanges++,a.transition&&n.anim&&u.nChangesAnim++,(eR.test(o)||rR.test(o))&&(u.rangesAltered[t[0]]=1),i==="datarevision"&&(u.newDataRevision=1)}function d(V){return V.valType==="data_array"||V.arrayOk}for(i in e){if(u.calc&&!a.transition)return;var m=e[i],p=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof m=="function"||m===p)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var b=r.tickmode;if(b==="auto"||b==="array"||!b)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(m)===JSON.stringify(p)))){var C=n.valType,x,_=d(n),M=Array.isArray(m),T=Array.isArray(p);if(M&&T){var A="_input_"+i,D=e[A],P=r[A];if(Array.isArray(D)&&D===P)continue}if(p===void 0)_&&M?u.calc=!0:h();else if(n._isLinkedToArray){var z=[],B=!1;f||(u.arrays[i]=z);var X=Math.min(m.length,p.length),H=Math.max(m.length,p.length);if(X!==H)if(n.editType==="arraydraw")B=!0;else{h();continue}for(x=0;x<X;x++)Cg(m[x],p[x],y.concat(x),Ir.extendFlat({inArray:i,arrayIndex:x},a));if(B)for(x=X;x<H;x++)z.push(x)}else!C&&Ir.isPlainObject(m)?Cg(m,p,y,a):_?M&&T?(s&&(u.calc=!0),(s||a.newDataRevision)&&h()):M!==T?u.calc=!0:h():M&&T?(m.length!==p.length||String(m)!==String(p))&&h():h()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),d(n)&&Array.isArray(r[i])){u.calc=!0;return}else h()}function Fue(e,r,t){if(e=Ir.getGraphDiv(e),!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var a=e._transitionData;a._frameQueue||(a._frameQueue=[]),t=mt.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(s){return Array.isArray(n)?s>=n.length?n[0]:n[s]:n}function l(s){return Array.isArray(i)?s>=i.length?i[0]:i[s]:i}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var X=a._frameQueue.pop();X.onInterrupt&&X.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(X){if(X.length!==0){for(var H=0;H<X.length;H++){var V;X[H].type==="byname"?V=mt.computeFrame(e,X[H].name):V=X[H].data;var I=l(H),Q=o(H);Q.duration=Math.min(Q.duration,I.duration);var ne={frame:V,name:X[H].name,frameOpts:I,transitionOpts:Q};H===X.length-1&&(ne.onComplete=u(s,2),ne.onInterrupt=f),a._frameQueue.push(ne)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||p()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function m(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var X=a._currentFrame=a._frameQueue.shift();if(X){var H=X.name?X.name.toString():null;e._fullLayout._currentFrame=H,a._lastFrameAt=Date.now(),a._timeToNext=X.frameOpts.duration,mt.transition(e,X.frame.data,X.frame.layout,cn.coerceTraceIndices(e,X.frame.traces),X.frameOpts,X.transitionOpts).then(function(){X.onComplete&&X.onComplete()}),e.emit("plotly_animatingframe",{name:H,frame:X.frame,animation:{frame:X.frameOpts,transition:X.transitionOpts}})}else d()}function p(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var X=function(){a._animationRaf=window.requestAnimationFrame(X),Date.now()-a._lastFrameAt>a._timeToNext&&m()};X()}var y=0;function b(X){return Array.isArray(n)?y>=n.length?X.transitionOpts=n[y]:X.transitionOpts=n[0]:X.transitionOpts=n,y++,X}var C,x,_=[],M=r==null,T=Array.isArray(r),A=!M&&!T&&Ir.isPlainObject(r);if(A)_.push({type:"object",data:b(Ir.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(C=0;C<a._frames.length;C++)x=a._frames[C],x&&(M||String(x.group)===String(r))&&_.push({type:"byname",name:String(x.name),data:b({name:x.name})});else if(T)for(C=0;C<r.length;C++){var D=r[C];["number","string"].indexOf(typeof D)!==-1?(D=String(D),_.push({type:"byname",name:D,data:b({name:D})})):Ir.isPlainObject(D)&&_.push({type:"object",data:b(Ir.extendFlat({},D))})}for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&!a._frameHash[x.data.name]){Ir.warn('animate failure: frame not found: "'+x.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&_.reverse();var P=e._fullLayout._currentFrame;if(P&&t.fromcurrent){var z=-1;for(C=0;C<_.length;C++)if(x=_[C],x.type==="byname"&&x.name===P){z=C;break}if(z>0&&z<_.length-1){var B=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&B.push(x);_=B}}_.length>0?h(_):(e.emit("plotly_animated"),s())})}function que(e,r,t){if(e=Ir.getGraphDiv(e),r==null)return Promise.resolve();if(!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ir.isPlainObject(r[a])){var h=r[a].name,d=(u[h]||c[h]||{}).name,m=r[a].name,p=u[d]||c[d];d&&m&&typeof m=="number"&&p&&x7<BP&&(x7++,Ir.warn('addFrames: overwriting frame "'+(u[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),x7===BP&&Ir.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),c[h]={name:h},f.push({frame:mt.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:s+a})}f.sort(function(A,D){return A.index>D.index?-1:A.index<D.index?1:0});var y=[],b=[],C=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;u[n.name="frame "+e._transitionData._counter++];);if(u[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,C)),y.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),C++}var x=mt.modifyFrames,_=mt.modifyFrames,M=[e,b],T=[e,y];return Di&&Di.add(e,x,M,_,T),mt.modifyFrames(e,y)}function Pue(e,r){if(e=Ir.getGraphDiv(e),!Ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],o=[];if(!r)for(r=[],t=0;t<n.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=mt.modifyFrames,u=mt.modifyFrames,s=[e,o],f=[e,i];return Di&&Di.add(e,l,s,u,f),mt.modifyFrames(e,i)}function Rue(e){e=Ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return mt.cleanPlot([],{},t,r),mt.purge(e),w7.purge(e),r._container&&r._container.remove(),delete e._context,e}function zue(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ir.inverseTransformMatrix(Ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Nue(e){var r=xg.select(e),t=e._fullLayout;if(t._calcInverseTransform=zue,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};xg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(cue.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ht.animate=Fue;Ht.addFrames=que;Ht.deleteFrames=Pue;Ht.addTraces=JP;Ht.deleteTraces=$P;Ht.extendTraces=jP;Ht.moveTraces=M7;Ht.prependTraces=ZP;Ht.newPlot=yue;Ht._doPlot=due;Ht.purge=Rue;Ht.react=Eue;Ht.redraw=gue;Ht.relayout=Cd;Ht.restyle=Ag;Ht.setPlotConfig=pue;Ht.update=kg;Ht._guiRelayout=A7(Cd);Ht._guiRestyle=A7(Ag);Ht._guiUpdate=A7(kg);Ht._storeDirectGUIEdit=wue});var pc=ae(el=>{"use strict";var Bue=bt();el.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};el.getRedrawFunc=function(e){return function(){Bue.getComponentMethod("colorbar","draw")(e)}};el.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};el.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nR=window.URL||window.webkitURL;el.createObjectURL=function(e){return nR.createObjectURL(e)};el.revokeObjectURL=function(e){return nR.revokeObjectURL(e)};el.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Iue(window.atob(e));return new window.Blob([t],{type:"image/"+r})};el.octetStream=function(e){document.location.href="data:application/octet-stream"+e};el.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};el.getPlotSubtitle=function(e){var a,n,i,o,l,u;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(u=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:u.text};function Iue(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n<r;n++)a[n]=e.charCodeAt(n);return t}el.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var Lg=ae((h4e,iR)=>{"use strict";var C7=Et(),c4e=mr(),Hue=va(),Oue=Ft(),v4e=W0(),k7=/"/g,mc="TOBESTRIPPED",Uue=new RegExp(`("${mc})|(${mc}")|("${mc})|(${mc}")`,"g"),Gue=["&","&","&",""",""",""","'","'","'"],Yue=["<","<","<"],Vue=[">",">",">"];function Xue(e){let r=C7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Gue.includes(n)?a:Yue.includes(n)?"<":Vue.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Wue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}iR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,u=n.height,s;i.insert("rect",":first-child").call(Hue.setRect,0,0,l,u).call(Oue.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(s=0;s<f.length;s++){var c=f[s];c.toSVG&&c.toSVG(r)}if(o){var h=o.node().childNodes,d=Array.prototype.slice.call(h);for(s=0;s<d.length;s++){var m=d[s];m.childNodes.length&&i.node().appendChild(m)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=C7.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(k7,mc));var C=this.style.fontWeight;C&&(C==="normal"||C==="400")&&y.style("font-weight",void 0);var x=this.style.fontStyle;x&&x==="normal"&&y.style("font-style",void 0);var _=this.style.fontVariant;_&&_==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=C7.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(k7,mc));var C=this.style.stroke;C&&C.indexOf("url(")!==-1&&y.style("stroke",C.replace(k7,mc))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*l),i.attr("height",a*u),i.attr("viewBox","0 0 "+l+" "+u));var p=new window.XMLSerializer().serializeToString(i.node());return p=Xue(p),p=Wue(p),p=p.replace(Uue,"'"),p}});var Dg=ae((d4e,oR)=>{"use strict";var jue=mr(),Zue=km().EventEmitter,Ed=pc();function Jue(e){var r=e.emitter||new Zue,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,h=s*f,d=s*c,m=u.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||jue.isSafari()?b=Ed.encodeSVG(o):(y=Ed.createBlob(o,"svg"),b=Ed.createObjectURL(y)),u.width=h,u.height=d,p.onload=function(){var C;switch(y=null,Ed.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=u.toDataURL("image/jpeg");break;case"png":C=u.toDataURL("image/png");break;case"webp":C=u.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(n(new Error(x)),!e.promise)return r.emit("error",x)}a(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,Ed.revokeObjectURL(b),n(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}oR.exports=Jue});var E7=ae((p4e,sR)=>{"use strict";var lR=Wt(),uR=T7(),$ue=Mn(),Iu=mr(),Ld=pc(),Kue=Lg(),Que=Dg(),ese=Jv().version,S7={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function rse(e,r){r=r||{};var t,a,n,i;Iu.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Iu.getGraphDiv(e),t=Iu.extendDeep([],e.data),a=Iu.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(T){return!(T in r)||Iu.validate(r[T],S7[T])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Iu.join2(S7.format.values,", "," or ")+".");var l={};function u(T,A){return Iu.coerce(r,l,S7,T,A)}var s=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),m=u("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=Iu.extendFlat({},a);f?y.width=f:r.width===null&&lR(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&lR(i.height)&&(y.height=i.height);var b=Iu.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Ld.getRedrawFunc(p);function x(){return new Promise(function(T){setTimeout(T,Ld.getDelay(p._fullLayout))})}function _(){return new Promise(function(T,A){var D=Kue(p,s,h),P=p._fullLayout.width,z=p._fullLayout.height;function B(){uR.purge(p),document.body.removeChild(p)}if(s==="full-json"){var X=$ue.graphJson(p,!1,"object",!0,!0);return X.version=ese,X=JSON.stringify(X),B(),T(m?X:Ld.encodeJSON(X))}if(B(),s==="svg")return T(m?D:Ld.encodeSVG(D));var H=document.createElement("canvas");H.id=Iu.randstr(),Que({format:s,width:P,height:z,scale:h,canvas:H,svg:D,promise:!0}).then(T).catch(A)})}function M(T){return m?T.replace(Ld.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,A){uR.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(D){T(M(D))}).catch(function(D){A(D)})})}sR.exports=rse});var vR=ae((m4e,cR)=>{"use strict";var rl=mr(),tse=Mn(),ase=N1(),nse=cf().dfltConfig,Gl=rl.isPlainObject,yc=Array.isArray,L7=rl.isArrayOrTypedArray;cR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=ase.get(),n=[],i={_context:rl.extendFlat({},nse)},o,l;yc(r)?(i.data=rl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Rn("array","data"))),Gl(t)?(i.layout=rl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Rn("object","layout"))),tse.supplyDefaults(i);for(var u=i._fullData,s=o.length,f=0;f<s;f++){var c=o[f],h=["data",f];if(!Gl(c)){n.push(Rn("object",h));continue}var d=u[f],m=d.type,p=a.traces[m].attributes;p.type={valType:"enumerated",values:[m]},d.visible===!1&&c.visible!==!1&&n.push(Rn("invisible",h)),Fg(c,d,p,n,h)}var y=i._fullLayout,b=ise(a,u);return Fg(l,y,b,n,"layout"),n.length===0?void 0:n};function Fg(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var u=o[l],s=i.slice();s.push(u);var f=e[u],c=r[u],h=use(t,u),d=(h||{}).valType,m=d==="info_array",p=d==="colorscale",y=(h||{}).items;if(!lse(t,u))a.push(Rn("schema",n,s));else if(Gl(f)&&Gl(c)&&d!=="any")Fg(f,c,h,a,n,s);else if(m&&yc(f)){f.length>c.length&&a.push(Rn("unused",n,s.concat(c.length)));var b=c.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,M,T,A;if(h.dimensions===2)for(_=0;_<b;_++)if(yc(f[_])){f[_].length>c[_].length&&a.push(Rn("unused",n,s.concat(_,c[_].length)));var D=c[_].length;for(x=0;x<(C?Math.min(D,y[_].length):D);x++)M=C?y[_][x]:y,T=f[_][x],A=c[_][x],rl.validate(T,M)?A!==T&&A!==+T&&a.push(Rn("dynamic",n,s.concat(_,x),T,A)):a.push(Rn("value",n,s.concat(_,x),T))}else a.push(Rn("array",n,s.concat(_),f[_]));else for(_=0;_<b;_++)M=C?y[_]:y,T=f[_],A=c[_],rl.validate(T,M)?A!==T&&A!==+T&&a.push(Rn("dynamic",n,s.concat(_),T,A)):a.push(Rn("value",n,s.concat(_),T))}else if(h.items&&!m&&yc(f)){var P=y[Object.keys(y)[0]],z=[],B,X;for(B=0;B<c.length;B++){var H=c[B]._index||B;if(X=s.slice(),X.push(H),Gl(f[H])&&Gl(c[B])){z.push(H);var V=f[H],I=c[B];Gl(V)&&V.visible!==!1&&I.visible===!1?a.push(Rn("invisible",n,X)):Fg(V,I,P,a,n,X)}}for(B=0;B<f.length;B++)X=s.slice(),X.push(B),Gl(f[B])?z.indexOf(B)===-1&&a.push(Rn("unused",n,X)):a.push(Rn("object",n,X,f[B]))}else!Gl(f)&&Gl(c)?a.push(Rn("object",n,s,f)):!L7(f)&&L7(c)&&!m&&!p?a.push(Rn("array",n,s,f)):u in r?rl.validate(f,h)?h.valType==="enumerated"&&(h.coerceNumber&&f!==+c||!L7(f)&&f!==c||String(f)!==String(c))&&a.push(Rn("dynamic",n,s,f,c)):a.push(Rn("value",n,s,f)):a.push(Rn("unused",n,s,f))}return a}function ise(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],o=i.layoutAttributes;o&&(n.subplot?rl.extendFlat(t[i.attributes.subplot.dflt],o):rl.extendFlat(t,o))}return t}var ose={object:function(e,r){var t;return e==="layout"&&r===""?t="The layout argument":e[0]==="data"&&r===""?t="Trace "+e[1]+" in the data argument":t=gc(e)+"key "+r,t+" must be linked to an object container"},array:function(e,r){var t;return e==="data"?t="The data argument":t=gc(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return gc(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Gl(t)?"container":"key";return gc(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[gc(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?gc(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[gc(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function gc(e){return yc(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Rn(e,r,t,a,n){t=t||"";var i,o;yc(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=fse(t),u=ose[e](r,l,a,n);return rl.log(u),{code:e,container:i,trace:o,path:t,astr:l,msg:u}}function lse(e,r){var t=fR(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function use(e,r){if(r in e)return e[r];var t=fR(r);return e[t.keyMinusId]}var sse=rl.counterRegex("([a-z]+)");function fR(e){var r=e.match(sse);return{keyMinusId:r&&r[1],id:r&&r[2]}}function fse(e){if(!yc(e))return String(e);for(var r="",t=0;t<e.length;t++){var a=e[t];typeof a=="number"?r=r.slice(0,-1)+"["+a+"]":r+=a,t<e.length-1&&(r+=".")}return r}});var dR=ae((g4e,hR)=>{"use strict";var cse=mr(),qg=pc();function vse(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var u,s;if(n)return u=qg.createBlob(e,t),s=qg.createObjectURL(u),a.href=s,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),qg.revokeObjectURL(s),u=null,o(r);if(cse.isSafari()){var f=t==="svg"?",":";base64,";return qg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}hR.exports=vse});var D7=ae((y4e,yR)=>{"use strict";var Pg=mr(),pR=ai(),hse=E7(),dse=dR(),mR=pc(),gR=40;function pse(e,r){var t;return Pg.isPlainObject(e)||(t=Pg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=hse(e,r),o=r.filename||e.fn;if(!o){let u=mR.getPlotTitle(e);if(u&&!pR.matchTex(u))o=Pg.slugify(u,gR);else{let s=mR.getPlotSubtitle(e);s&&!pR.matchTex(s)&&(o=Pg.slugify(s,gR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(u){return t&&(t._snapshotInProgress=!1),dse(u,l,r.format)}).then(function(u){a(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),n(u)})})}yR.exports=pse});var MR=ae(F7=>{"use strict";var Qi=mr(),eo=Qi.isPlainObject,bR=N1(),_R=Mn(),mse=Bo(),xR=Ta(),wR=cf().dfltConfig;F7.makeTemplate=function(e){e=Qi.isPlainObject(e)?e:Qi.getGraphDiv(e),e=Qi.extendDeep({_context:wR},{data:e.data,layout:e.layout}),_R.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};Dd(d,m,yse.bind(null,d));var p=Qi.coerce(d,{},mse,"type"),y=a.data[p];y||(y=a.data[p]=[]),y.push(m)}),Dd(t,a.layout,gse.bind(null,t)),delete a.layout.template;var n=t.template;if(eo(n)){var i=n.layout,o,l,u,s,f,c;eo(i)&&Rg(i,a.layout);var h=n.data;if(eo(h)){for(l in a.data)if(u=h[l],Array.isArray(u)){for(f=a.data[l],c=f.length,s=u.length,o=0;o<c;o++)Rg(u[o%s],f[o]);for(o=c;o<s;o++)f.push(Qi.extendDeep({},u[o]))}for(l in h)l in a.data||(a.data[l]=Qi.extendDeep([],h[l]))}}return a};function Rg(e,r){e=Qi.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,h){if(eo(c)&&eo(f))Rg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=xR.arrayTemplater({_template:e},h);for(n=0;n<c.length;n++){var m=c[n],p=d.newItem(m)._template;p&&Rg(p,m)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,zg(o)===o)for(var u in r){var s=zg(u);u!==s&&s===o&&!(u in e)&&i(l,r[u],o)}}}function zg(e){return e.replace(/[0-9]+$/,"")}function Dd(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],u=tl(e,o,a),s=tl(e,o,n),f=t(s);if(!f){var c=zg(o);c!==o&&(s=tl(e,c,n),f=t(s))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&eo(l))Dd(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var h=!1,d=0,m={},p=0;p<l.length;p++){var y=l[p];if(eo(y)){var b=y.name;if(b)m[b]||(Dd(y,r,t,tl(l,d,u),tl(l,d,s)),d++,m[b]=1);else if(!h){var C=xR.arrayDefaultKey(o),x=tl(e,C,a),_=tl(l,d,u);Dd(y,r,t,_,tl(l,d,s));var M=Qi.nestedProperty(r,_),T=Qi.nestedProperty(r,x);T.set(M.get()),M.set(null),h=!0}}}else{var A=Qi.nestedProperty(r,u);A.set(l)}}}function gse(e,r){return bR.getLayoutValObject(e,Qi.nestedProperty({},r).parts)}function yse(e,r){return bR.getTraceValObject(e,Qi.nestedProperty({},r).parts)}function tl(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}F7.validateTemplate=function(e,r){var t=Qi.extendDeep({},{_context:wR,data:e.data,layout:e.layout}),a=t.layout||{};eo(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,_R.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(x,_){for(var M in x)if(M.charAt(0)!=="_"&&eo(x[M])){var T=zg(M),A=[],D;for(D=0;D<_.length;D++)A.push(tl(x,M,_[D])),T!==M&&A.push(tl(x,T,_[D]));for(D=0;D<A.length;D++)s[A[D]]=1;f(x[M],A)}}function c(x,_){for(var M in x)if(M.indexOf("defaults")===-1&&eo(x[M])){var T=tl(x,M,_);s[T]?c(x[M],T):o.push({code:"unused",path:T})}}if(eo(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!eo(i))o.push({code:"data"});else{for(var h={},d,m=0;m<u.length;m++){var p=u[m];d=p.type,h[d]=(h[d]||0)+1,p._template||o.push({code:"missing",index:p.index,traceType:d})}for(d in i){var y=i[d].length,b=h[d]||0;y>b?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var M in x)if(M.charAt(0)!=="_"){var T=x[M],A=tl(x,M,_);eo(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:A,templateitemname:T.templateitemname}),C(T,A)):Array.isArray(T)&&bse(T)&&C(T,A)}}if(C({data:u,layout:l},""),o.length)return o.map(_se)};function bse(e){for(var r=0;r<e.length;r++)if(eo(e[r]))return!0}function _se(e){var r;switch(e.code){case"data":r="The template has no key data.";break;case"layout":r="The template has no key layout.";break;case"missing":e.path?r="There are no templates for item "+e.path+" with name "+e.templateitemname:r="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?r="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?r="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":r="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":r="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=r,e}});var TR=ae(Ra=>{"use strict";var kn=T7();Ra._doPlot=kn._doPlot;Ra.newPlot=kn.newPlot;Ra.restyle=kn.restyle;Ra.relayout=kn.relayout;Ra.redraw=kn.redraw;Ra.update=kn.update;Ra._guiRestyle=kn._guiRestyle;Ra._guiRelayout=kn._guiRelayout;Ra._guiUpdate=kn._guiUpdate;Ra._storeDirectGUIEdit=kn._storeDirectGUIEdit;Ra.react=kn.react;Ra.extendTraces=kn.extendTraces;Ra.prependTraces=kn.prependTraces;Ra.addTraces=kn.addTraces;Ra.deleteTraces=kn.deleteTraces;Ra.moveTraces=kn.moveTraces;Ra.purge=kn.purge;Ra.addFrames=kn.addFrames;Ra.deleteFrames=kn.deleteFrames;Ra.animate=kn.animate;Ra.setPlotConfig=kn.setPlotConfig;var xse=_h().getGraphDiv,wse=V2().eraseActiveShape;Ra.deleteActiveShape=function(e){return wse(xse(e))};Ra.toImage=E7();Ra.validate=vR();Ra.downloadImage=D7();var AR=MR();Ra.makeTemplate=AR.makeTemplate;Ra.validateTemplate=AR.validateTemplate});var CR=ae((x4e,kR)=>{"use strict";var q7=mr(),Mse=bt();kR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,u=Mse.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],a),i){var s=q7.minRowLength(i);o?l=Math.min(s,q7.minRowLength(o)):(l=s,n("y0"),n("dy"))}else{if(!o)return 0;l=q7.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var DR=ae((w4e,LR)=>{"use strict";var SR=mr().dateTick0,Ase=Oa(),Tse=Ase.ONEWEEK;function ER(e,r){return e%Tse===0?SR(r,1):SR(r,0)}LR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",ER(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",ER(l,t.ycalendar)),n("yperiodalignment"))}}});var PR=ae((M4e,qR)=>{"use strict";var FR=["orientation","groupnorm","stackgaps"];qR.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,u=i[l];u||(u=i[l]={});var s=u[o],f=!1;s?s.traces.push(t):(s=u[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h<FR.length;h++){var d=FR[h],m=d+"Found";if(!s[m]){var p=r[d]!==void 0,y=d==="orientation";if((p||f)&&(s[d]=n(d,c[d]),y&&(s.fillDflt=s[d]==="h"?"tonextx":"tonexty"),p&&(s[m]=!0,!f&&(delete s.traces[0][d],y))))for(var b=0;b<s.traces.length-1;b++){var C=s.traces[b];C._input.fill!==C.fill&&(C.fill=s.fillDflt)}}}return s}}});var P7=ae((A4e,BR)=>{"use strict";var RR=Ft(),zR=Tu().hasColorscale,NR=U1(),kse=pi();BR.exports=function(r,t,a,n,i,o={}){var l=kse.isBubble(r),u=(r.line||{}).color,s;if(u&&(a=u),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),zR(r,"marker")&&NR(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=RR.background:s=RR.defaultLine,i("marker.line.color",s),zR(r,"marker.line")&&NR(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var R7=ae((T4e,IR)=>{"use strict";var Cse=mr().isArrayOrTypedArray,Sse=Tu().hasColorscale,Ese=U1();IR.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Sse(r,"line"))Ese(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var u=(Cse(l)?!1:l)||a;i("line.color",u)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var OR=ae((k4e,HR)=>{"use strict";HR.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var z7=ae((C4e,UR)=>{"use strict";var Lse=mr();UR.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Lse.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var N7=ae((S4e,YR)=>{"use strict";var Ng=Ft(),GR=mr().isArrayOrTypedArray;function Dse(e){for(var r=Ng.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=Ng.interpolate(e[t-1][1],e[t][1],.5);r=Ng.interpolate(r,a,e[t-1][0]/e[t][0])}return r}YR.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,u=(t.marker.line||{}).color;l&&!GR(l)?o=l:u&&!GR(u)&&(o=u)}var s;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(s=Dse(c))}}n("fillcolor",Ng.addOpacity((t.line||{}).color||o||s||a,.5))}});var jR=ae((E4e,WR)=>{"use strict";var VR=mr(),Fse=bt(),qse=dc(),Pse=fg(),vv=pi(),Rse=CR(),zse=DR(),Nse=PR(),Bse=P7(),Ise=R7(),XR=OR(),Hse=z7(),Ose=N7(),Use=mr().coercePattern;WR.exports=function(r,t,a,n){function i(d,m){return VR.coerce(r,t,qse,d,m)}var o=Rse(r,t,n,i);if(o||(t.visible=!1),!!t.visible){zse(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Nse(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var u=!l&&o<Pse.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",u),vv.hasMarkers(t)&&Bse(r,t,a,n,i,{gradient:!0}),vv.hasLines(t)&&(Ise(r,t,a,n,i,{backoff:!0}),XR(r,t,i),i("connectgaps"),i("line.simplify")),vv.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Hse(r,t,n,i));var s=[];(vv.hasMarkers(t)||vv.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),s.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Ose(r,t,a,i,{moduleHasFillgradient:!0}),vv.hasLines(t)||XR(r,t,i),Use(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),i("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var h=Fse.getComponentMethod("errorbars","supplyDefaults");h(r,t,f||c||a,{axis:"y"}),h(r,t,f||c||a,{axis:"x",inherit:"y"}),VR.coerceSelectionMarkerOpacity(t,i)}}});var JR=ae((L4e,ZR)=>{"use strict";var Gse=ad().getAxisGroup;ZR.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],u=Gse(a,l)+o,s=a._alignmentOpts||{},f=n("alignmentgroup"),c=s[u];c||(c=s[u]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var KR=ae((D4e,$R)=>{"use strict";var Yse=mr(),Vse=JR(),Xse=dc();$R.exports=function(r,t){var a,n,i,o=t.scattermode;function l(h){return Yse.coerce(n._input,n,Xse,h)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,Vse(a,n,t,l,o));for(i=0;i<r.length;i++){var u=r[i];if(u.type==="scatter"){var s=u.fill;if(!(s==="none"||s==="toself")&&(u.opacity=void 0,s==="tonexty"||s==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var ez=ae((F4e,QR)=>{"use strict";var Wse=mr(),jse=Dm();QR.exports=function(e,r){function t(n,i){return Wse.coerce(e,r,jse,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var az=ae((q4e,tz)=>{"use strict";var Zse=Wt(),rz=mr(),Jse=rz.dateTime2ms,Bg=rz.incrementMonth,$se=Oa(),Kse=$se.ONEAVGMONTH;tz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Zse(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:n}}for(var s=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Jse(h,s)||0,m=[],p=[],y=[],b=n.length,C=0;C<b;C++){var x=n[C],_,M,T;if(l){for(_=Math.round((x-d)/(l*Kse)),T=Bg(d,l*_,s);T>x;)T=Bg(T,-l,s);for(;T<=x;)T=Bg(T,l,s);M=Bg(T,-l,s)}else{for(_=Math.round((x-d)/o),T=d+_*o;T>x;)T-=o;for(;T<=x;)T+=o;M=T-o}m[C]=f?M:c?T:(M+T)/2,p[C]=M,y[C]=T}return{vals:m,starts:p,ends:y}}});var H7=ae((P4e,iz)=>{"use strict";var B7=Tu().hasColorscale,I7=Om(),nz=pi();iz.exports=function(r,t){nz.hasLines(t)&&B7(t,"line")&&I7(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),nz.hasMarkers(t)&&(B7(t,"marker")&&I7(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),B7(t,"marker.line")&&I7(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Fd=ae((R4e,oz)=>{"use strict";var Za=mr();oz.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;Za.mergeArray(t.text,r,"tx"),Za.mergeArray(t.texttemplate,r,"txt"),Za.mergeArray(t.hovertext,r,"htx"),Za.mergeArray(t.customdata,r,"data"),Za.mergeArray(t.textposition,r,"tp"),t.textfont&&(Za.mergeArrayCastPositive(t.textfont.size,r,"ts"),Za.mergeArray(t.textfont.color,r,"tc"),Za.mergeArray(t.textfont.family,r,"tf"),Za.mergeArray(t.textfont.weight,r,"tw"),Za.mergeArray(t.textfont.style,r,"ty"),Za.mergeArray(t.textfont.variant,r,"tv"),Za.mergeArray(t.textfont.textcase,r,"tC"),Za.mergeArray(t.textfont.lineposition,r,"tE"),Za.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){Za.mergeArrayCastPositive(n.size,r,"ms"),Za.mergeArrayCastPositive(n.opacity,r,"mo"),Za.mergeArray(n.symbol,r,"mx"),Za.mergeArray(n.angle,r,"ma"),Za.mergeArray(n.standoff,r,"mf"),Za.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(Za.mergeArray(i.color,r,"mlc"),Za.mergeArrayCastPositive(i.width,r,"mlw"),Za.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(Za.mergeArray(o.type,r,"mgt"),Za.mergeArray(o.color,r,"mgc"))}}});var Ig=ae((z4e,uz)=>{"use strict";var lz=mr();uz.exports=function(r,t){lz.isArrayOrTypedArray(t.selectedpoints)&&lz.tagSelected(r,t)}});var Hg=ae((N4e,pz)=>{"use strict";var sz=Wt(),U7=mr(),qd=Ba(),fz=az(),O7=Oa().BADNUM,G7=pi(),Qse=H7(),efe=Fd(),rfe=Ig();function tfe(e,r){var t=e._fullLayout,a=r._xA=qd.getFromId(e,r.xaxis||"x","x"),n=r._yA=qd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=fz(r,a,"x",i),u=fz(r,n,"y",o),s=l.vals,f=u.vals,c=r._length,h=new Array(c),d=r.ids,m=Y7(r,t,a,n),p=!1,y,b,C,x,_,M;hz(t,r);var T="x",A="y",D;if(m)U7.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(A="s",D="x"):(T="s",D="y"),_=m.stackgaps==="interpolate";else{var P=vz(r,c);cz(e,r,a,n,s,f,P)}var z=!!r.xperiodalignment,B=!!r.yperiodalignment;for(b=0;b<c;b++){var X=h[b]={},H=sz(s[b]),V=sz(f[b]);H&&V?(X[T]=s[b],X[A]=f[b],z&&(X.orig_x=i[b],X.xEnd=l.ends[b],X.xStart=l.starts[b]),B&&(X.orig_y=o[b],X.yEnd=u.ends[b],X.yStart=u.starts[b])):m&&(y?H:V)?(X[D]=y?s[b]:f[b],X.gap=!0,_?(X.s=O7,p=!0):X.s=0):X[T]=X[A]=O7,d&&(X.id=String(d[b]))}if(efe(h,r),Qse(e,r),rfe(h,r),m){for(b=0;b<h.length;)h[b][D]===O7?h.splice(b,1):b++;if(U7.sort(h,function(te,ee){return te[D]-ee[D]||te.i-ee.i}),p){for(b=0;b<h.length-1&&h[b].gap;)b++;for(M=h[b].s,M||(M=h[b].s=0),C=0;C<b;C++)h[C].s=M;for(x=h.length-1;x>b&&h[x].gap;)x--;for(M=h[x].s,C=h.length-1;C>x;C--)h[C].s=M;for(;b<x;)if(b++,h[b].gap){for(C=b+1;h[C].gap;)C++;for(var I=h[b-1][D],Q=h[b-1].s,ne=(h[C].s-Q)/(h[C][D]-I);b<C;)h[b].s=Q+(h[b][D]-I)*ne,b++}}}return h}function cz(e,r,t,a,n,i,o){var l=r._length,u=e._fullLayout,s=t._id,f=a._id,c=u._firstScatter[dz(r)]===r.uid,h=(Y7(r,u,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var m={padded:!0},p={padded:!0};o&&(m.ppad=p.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||h==="h"))?m.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!G7.hasMarkers(r)&&!G7.hasText(r))&&(m.padded=!1,m.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||h==="v"))?p.tozero=!0:(d==="tonextx"||d==="tozerox")&&(p.padded=!1),s&&(r._extremes[s]=qd.findExtremes(t,n,m)),f&&(r._extremes[f]=qd.findExtremes(a,i,p))}function vz(e,r){if(G7.hasMarkers(e)){var t=e.marker,a=1.6*(e.marker.sizeref||1),n;if(e.marker.sizemode==="area"?n=function(s){return Math.max(Math.sqrt((s||0)/a),3)}:n=function(s){return Math.max((s||0)/a,3)},U7.isArrayOrTypedArray(t.size)){var i={type:"linear"};qd.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),u=0;u<r;u++)l[u]=n(o[u]);return l}else return n(t.size)}}function hz(e,r){var t=dz(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function dz(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Y7(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],o=i.orientation==="v"?a:t;if(o.type==="linear"||o.type==="log")return i}}pz.exports={calc:tfe,calcMarkerSize:vz,calcAxisExpansion:cz,setFirstScatter:hz,getStackOpts:Y7}});var gz=ae((B4e,mz)=>{"use strict";mz.exports=Og;var afe=mr().distinctVals;function Og(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i<e.length;i++){for(var o=e[i],l=0;l<o.length;l++){var u=o[l],s=u.p;s===void 0&&(s=u[a]),s!==void 0&&n.push(s)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=afe(n);this.distinctPositions=f.vals,f.vals.length===1&&t!==1/0?this.minDiff=t:this.minDiff=Math.min(f.minDiff,t);var c=(r.posAxis||{}).type;(c==="category"||c==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}Og.prototype.put=function(r,t,a){var n=this.getLabel(r,t,a),i=this.bins[n]||0;return this.bins[n]=i+a,i};Og.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};Og.prototype.getLabel=function(r,t,a){var n=a<0&&this.sepNegVal?"v":"^",i=this.overlapNoMerge?r:Math.round(r/this.binWidth);return n+i+"g"+t}});var bz=ae((I4e,yz)=>{"use strict";yz.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Az=ae((H4e,Mz)=>{"use strict";var al=Wt(),{isArrayOrTypedArray:Ns}=mr(),{BADNUM:hv}=Oa(),nfe=bt(),Pd=Ba(),{getAxisGroup:ife}=ad(),Ug=gz(),{TEXTPAD:ofe}=bz(),{LINE_SPACING:lfe}=ti(),{BR_TAG_ALL:ufe}=ai();function sfe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],u=[],s=0;s<i.length;s++){var f=i[s];if(f.visible===!0&&nfe.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[s]):u.push(o[s]),f._computePh))for(var c=e.calcdata[s],h=0;h<c.length;h++)typeof c[h].ph0=="function"&&(c[h].ph0=c[h].ph0()),typeof c[h].ph1=="function"&&(c[h].ph1=c[h].ph1())}var d={xCat:t.type==="category"||t.type==="multicategory",yCat:a.type==="category"||a.type==="multicategory",mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};X7(e,t,a,u,d),X7(e,a,t,l,d)}function X7(e,r,t,a,n){if(a.length){var i,o,l,u,s;switch(vfe(t,a),n.mode){case"overlay":V7(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)u=a[l],s=u[0].trace,s.offset===void 0?o.push(u):i.push(u);o.length&&hfe(e,r,t,o,n),i.length&&V7(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)u=a[l],s=u[0].trace,s.base===void 0?o.push(u):i.push(u);cfe(o),o.length&&dfe(e,r,t,o,n),i.length&&V7(e,r,t,i,n);break}ffe(a),_fe(a,r)}}function ffe(e){var r,t,a,n,i,o,l;for(r=0;r<e.length;r++)t=e[r],a=t[0].trace,n=t[0].t,n.cornerradiusvalue===void 0&&(i=a.marker?a.marker.cornerradius:void 0,i!==void 0&&(o=al(i)?+i:+i.slice(0,-1),l=al(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function cfe(e){if(!(e.length<2)){var r,t,a,n,i,o,l;for(r=0;r<e.length&&(t=e[r],a=t[0].trace,i=a.marker?a.marker.cornerradius:void 0,i===void 0);r++);if(i!==void 0)for(o=al(i)?+i:+i.slice(0,-1),l=al(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function vfe(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,o=i.type==="funnel"?i._base:i.base,l,u=i.orientation==="h"?i.xcalendar:i.ycalendar,s=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Ns(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=s(o[a],0,u),al(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=s(o,0,u);var f=al(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function V7(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new Ug([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});W7(e,r,l,n),n.norm?(wz(l),j7(t,l,n)):xz(t,l)}}function hfe(e,r,t,a,n){var i=new Ug(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});W7(e,r,i,n),yfe(i,r),n.norm?(wz(i),j7(t,i,n)):xz(t,i)}function dfe(e,r,t,a,n){var i=new Ug(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});W7(e,r,i,n),gfe(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],u=l[0].t.offsetindex,s=0;s<l.length;s++){var f=l[s];if(f.s!==hv){var c=f.b+f.s===i.get(f.p,u,f.s);c&&(f._outmost=!0)}}n.norm&&j7(t,i,n)}function W7(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,u=t.traces,s=u.length,f=i.length!==o.length,c=l*(1-a.gap),h,d,m,p;if(r._id==="angularaxis")h=c,d=h*(1-(a.groupgap||0)),m=-d/2;else{var y=ife(n,r._id)+u[0][0].trace.orientation;p=n._alignmentOpts[y]||{}}for(var b=0;b<s;b++){var C=u[b],x=C[0].trace;if(r._id!=="angularaxis"){var _=p[x.alignmentgroup]||{},M=Object.keys(_.offsetGroups||{}).length;M?h=c/M:h=f?c/s:c,d=h*(1-(a.groupgap||0)),M?m=((2*x._offsetIndex+1-M)*h-d)/2:m=f?((2*b+1-s)*h-d)/2:-d/2}var T=C[0].t;T.barwidth=d,T.offsetindex=x._offsetIndex||0,T.poffset=m,T.bargroupwidth=c,T.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,pfe(t),mfe(r,t),r._id==="angularaxis"?_z(r,t):_z(r,t,f)}function pfe(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],o=i.trace,l=i.t,u=o._offset||o.offset,s=l.poffset,f;if(Ns(u)){for(f=Array.prototype.slice.call(u,0,n.length),a=0;a<f.length;a++)al(f[a])||(f[a]=s);for(a=f.length;a<n.length;a++)f.push(s);l.poffset=f}else u!==void 0&&(l.poffset=u);var c=o._width||o.width,h=l.barwidth;if(Ns(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)al(d[a])||(d[a]=h);for(a=d.length;a<n.length;a++)d.push(h);if(l.barwidth=d,u===void 0){for(f=[],a=0;a<n.length;a++)f.push(s+(h-d[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,u===void 0&&(l.poffset=s+(h-c)/2))}}function mfe(e,r){for(var t=r.traces,a=dv(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,u=Ns(l),s=o.barwidth,f=Ns(s),c=0;c<i.length;c++){var h=i[c],d=h.w=f?s[c]:s;h.p===void 0&&(h.p=h[a],h["orig_"+a]=h[a]);var m=(u?l[c]:l)+d/2;h[a]=h.p+m}}function _z(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Pd.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],u=l[0],s=u.trace,f=[],c,h,d,m;for(m=0;m<l.length;m++)c=l[m],h=c.p-i,d=c.p+i,f.push(h,d);if(s.width||s.offset){var p=u.t,y=p.poffset,b=p.barwidth,C=Ns(y),x=Ns(b);for(m=0;m<l.length;m++){c=l[m];var _=C?y[m]:y,M=x?b[m]:b;h=c.p+_,d=h+M,f.push(h,d)}}s._extremes[e._id]=Pd.findExtremes(e,f,{padded:!1})}}function xz(e,r){for(var t=r.traces,a=dv(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",u=o.orientation==="v",s=[],f=!1,c=0;c<i.length;c++){var h=i[c],d=l?0:h.b,m=l?u?h.y:h.x:d+h.s;h[a]=m,s.push(m),h.hasB&&s.push(d),(!h.hasB||!h.b)&&(f=!0)}let{ppadminus:p,ppadplus:y}=Z7(o,i);o._extremes[e._id]=Pd.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:y,ppadminus:p})}}function gfe(e,r,t){var a=dv(e),n=r.traces,i,o,l,u,s,f,c;for(u=0;u<n.length;u++)if(i=n[u],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,s=0;s<i.length;s++)f=i[s],f.s!==hv&&r.put(f.p,c,-.5*f.s);for(u=0;u<n.length;u++){i=n[u],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var h=[];for(s=0;s<i.length;s++)if(f=i[s],f.s!==hv){var d;l?d=f.s:d=f.s+f.b;var m=r.put(f.p,c,d),p=m+d;f.b=m,f[a]=p,t.norm||(h.push(p),f.hasB&&h.push(m))}if(!t.norm){let{ppadminus:y,ppadplus:b}=Z7(o,i);o._extremes[e._id]=Pd.findExtremes(e,h,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function wz(e){for(var r=e.traces,t=0;t<r.length;t++)for(var a=r[t],n=a[0].t.offsetindex,i=0;i<a.length;i++){var o=a[i];o.s!==hv&&e.put(o.p,n,o.b+o.s)}}function yfe(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,o=n[0].t.offsetindex;if(i.base===void 0)for(var l=new Ug([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<n.length;u++){var s=n[u];if(s.p!==hv){var f=l.put(s.p,o,s.b+s.s);f&&(s.b=f)}}}}function j7(e,r,t){var a=r.traces,n=dv(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?i:l;function s(T){return al(e.c2l(T))&&(T<l-o||T>u+o||!al(l))}for(var f=0;f<a.length;f++){for(var c=a[f],h=c[0].t.offsetindex,d=c[0].trace,m=[],p=!1,y=!1,b=0;b<c.length;b++){var C=c[b];if(C.s!==hv){var x=Math.abs(i/r.get(C.p,h,C.s));C.b*=x,C.s*=x;var _=C.b,M=_+C.s;C[n]=M,m.push(M),y=y||s(M),C.hasB&&(m.push(_),y=y||s(_)),(!C.hasB||!C.b)&&(p=!0)}}let{ppadminus:T,ppadplus:A}=Z7(d,c);d._extremes[e._id]=Pd.findExtremes(e,m,{tozero:p,padded:y,ppadplus:A,ppadminus:T})}}function Z7(e,r){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let a=function(i){return!i||typeof i!="string"?0:(i.match(ufe)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=Ns(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*lfe*t+ofe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function bfe(e,r,t,a){for(var n=dv(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var u=o[l],s=u[n];u._sMin=r[s],u._sMax=t[s]}}function _fe(e,r){var t=dv(r),a={},n,i,o,l=1/0,u=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var s=o[i].p;al(s)&&(l=Math.min(l,s),u=Math.max(u,s))}var f=1e4/(u-l),c=a.round=function(D){return String(Math.round(f*(D-l)))},h={},d={},m=e.some(function(D){var P=D[0].trace;return"marker"in P&&P.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var p=o[0].t.poffset,y=Ns(p);for(i=0;i<o.length;i++){var b=o[i],C=b[t]-b.w/2;if(al(C)){var x=b[t]+b.w/2,_=c(b.p);a[_]?a[_]=[Math.min(C,a[_][0]),Math.max(x,a[_][1])]:a[_]=[C,x]}if(b.p0=b.p+(y?p[i]:p),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,m){var M=Math.min(b.s0,b.s1)||0,T=Math.max(b.s0,b.s1)||0,A=b[t];h[A]=A in h?Math.min(h[A],M):M,d[A]=A in d?Math.max(d[A],T):T}}}m&&bfe(e,h,d,r)}function dv(e){return e._id.charAt(0)}Mz.exports={crossTraceCalc:sfe,setGroupPositions:X7}});var Sz=ae((O4e,Cz)=>{"use strict";var Tz=Hg(),kz=Az().setGroupPositions;function xfe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],u=[],s=0;s<i.length;s++){var f=i[s];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[s]):f.orientation==="v"&&u.push(o[s]))}var c={mode:n.scattermode,gap:n.scattergap};kz(e,t,a,u,c),kz(e,a,t,l,c)}Cz.exports=function(r,t){r._fullLayout.scattermode==="group"&&xfe(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,o=r._fullLayout._scatterStackOpts[i];if(o){var l=r.calcdata,u,s,f,c,h,d,m,p,y,b,C,x,_,M,T;for(var A in o){b=o[A];var D=b.traceIndices;if(D.length){for(C=b.stackgaps==="interpolate",x=b.groupnorm,b.orientation==="v"?(_="x",M="y"):(_="y",M="x"),T=new Array(D.length),u=0;u<T.length;u++)T[u]=!1;d=l[D[0]];var P=new Array(d.length);for(u=0;u<d.length;u++)P[u]=d[u][_];for(u=1;u<D.length;u++){for(h=l[D[u]],s=f=0;s<h.length;s++){for(m=h[s][_];m>P[f]&&f<P.length;f++)J7(h,s,P[f],u,T,C,_),s++;if(m!==P[f]){for(c=0;c<u;c++)J7(l[D[c]],f,m,c,T,C,_);P.splice(f,0,m)}f++}for(;f<P.length;f++)J7(h,s,P[f],u,T,C,_),s++}var z=P.length;for(s=0;s<d.length;s++){for(p=d[s][M]=d[s].s,u=1;u<D.length;u++)h=l[D[u]],h[0].trace._rawLength=h[0].trace._length,h[0].trace._length=z,p+=h[s].s,h[s][M]=p;if(x)for(y=(x==="fraction"?p:p/100)||1,u=0;u<D.length;u++){var B=l[D[u]][s];B[M]/=y,B.sNorm=B.s/y}}for(u=0;u<D.length;u++){h=l[D[u]];var X=h[0].trace,H=Tz.calcMarkerSize(X,X._rawLength),V=Array.isArray(H);if(H&&T[u]||V){var I=H;for(H=new Array(z),s=0;s<z;s++)H[s]=h[s].gap?0:V?I[h[s].i]:I}var Q=new Array(z),ne=new Array(z);for(s=0;s<z;s++)Q[s]=h[s].x,ne[s]=h[s].y;Tz.calcAxisExpansion(r,X,a,n,Q,ne,H),h[0].t.orientation=b.orientation}}}}};function J7(e,r,t,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=t,e.splice(r,0,l),r&&t===e[r-1][o]){var u=e[r-1];l.s=u.s,l.i=u.i,l.gap=u.gap}else i&&(l.s=wfe(e,r,t,o));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function wfe(e,r,t,a){var n=e[r-1],i=e[r+1];return i?n?n.s+(i.s-n.s)*(t-n[a])/(i[a]-n[a]):i.s:n.s}});var Rz=ae((U4e,Pz)=>{"use strict";var Mfe=va(),Fz=Oa(),Rd=Fz.BADNUM,qz=Fz.LOG_CLIP,Ez=qz+.5,Lz=qz-.5,Gg=mr(),Afe=Gg.segmentsIntersect,Dz=Gg.constrain,$7=fg();Pz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",u=n._length,s=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=a.fill&&a.fill!=="none",b=[],C=$7.minTolerance,x=r.length,_=new Array(x),M=0,T,A,D,P,z,B,X,H,V,I,Q,ne,te,ee,fe,ve;function Ae(tr){var Cr=r[tr];if(!Cr)return!1;var cr=t.linearized?n.l2p(Cr.x):n.c2p(Cr.x),Xr=t.linearized?i.l2p(Cr.y):i.c2p(Cr.y);if(cr===Rd){if(o&&(cr=n.c2p(Cr.x,!0)),cr===Rd)return!1;l&&Xr===Rd&&(cr*=Math.abs(n._m*s*(n._m>0?Ez:Lz)/(i._m*u*(i._m>0?Ez:Lz)))),cr*=1e3}if(Xr===Rd){if(l&&(Xr=i.c2p(Cr.y,!0)),Xr===Rd)return!1;Xr*=1e3}return[cr,Xr]}function Ee(tr,Cr,cr,Xr){var Kr=cr-tr,Fr=Xr-Cr,Wr=.5-tr,Me=.5-Cr,Re=Kr*Kr+Fr*Fr,ur=Kr*Wr+Fr*Me;if(ur>0&&ur<Re){var gr=Wr*Fr-Me*Kr;if(gr*gr<Re)return!0}}var Be,Ue;function ke(tr,Cr){var cr=tr[0]/u,Xr=tr[1]/s,Kr=Math.max(0,-cr,cr-1,-Xr,Xr-1);return Kr&&Be!==void 0&&Ee(cr,Xr,Be,Ue)&&(Kr=0),Kr&&Cr&&Ee(cr,Xr,Cr[0]/u,Cr[1]/s)&&(Kr=0),(1+$7.toleranceGrowth*Kr)*d}function We(tr,Cr){var cr=tr[0]-Cr[0],Xr=tr[1]-Cr[1];return Math.sqrt(cr*cr+Xr*Xr)}var j=$7.maxScreensAway,re=-u*j,me=u*(1+j),K=-s*j,$=s*(1+j),le=[[re,K,me,K],[me,K,me,$],[me,$,re,$],[re,$,re,K]],we,Ne,$e,er,ir,sr;function Pe(tr,Cr){for(var cr=[],Xr=0,Kr=0;Kr<4;Kr++){var Fr=le[Kr],Wr=Afe(tr[0],tr[1],Cr[0],Cr[1],Fr[0],Fr[1],Fr[2],Fr[3]);Wr&&(!Xr||Math.abs(Wr.x-cr[0][0])>1||Math.abs(Wr.y-cr[0][1])>1)&&(Wr=[Wr.x,Wr.y],Xr&&We(Wr,tr)<We(cr[0],tr)?cr.unshift(Wr):cr.push(Wr),Xr++)}return cr}function vr(tr){if(tr[0]<re||tr[0]>me||tr[1]<K||tr[1]>$)return[Dz(tr[0],re,me),Dz(tr[1],K,$)]}function hr(tr,Cr){if(tr[0]===Cr[0]&&(tr[0]===re||tr[0]===me)||tr[1]===Cr[1]&&(tr[1]===K||tr[1]===$))return!0}function dr(tr,Cr){var cr=[],Xr=vr(tr),Kr=vr(Cr);return Xr&&Kr&&hr(Xr,Kr)||(Xr&&cr.push(Xr),Kr&&cr.push(Kr)),cr}function Ze(tr,Cr,cr){return function(Xr,Kr){var Fr=vr(Xr),Wr=vr(Kr),Me=[];if(Fr&&Wr&&hr(Fr,Wr))return Me;Fr&&Me.push(Fr),Wr&&Me.push(Wr);var Re=2*Gg.constrain((Xr[tr]+Kr[tr])/2,Cr,cr)-((Fr||Xr)[tr]+(Wr||Kr)[tr]);if(Re){var ur;Fr&&Wr?ur=Re>0==Fr[tr]>Wr[tr]?Fr:Wr:ur=Fr||Wr,ur[tr]+=Re}return Me}}var fr;m==="linear"||m==="spline"?fr=Pe:m==="hv"||m==="vh"?fr=dr:m==="hvh"?fr=Ze(0,re,me):m==="vhv"&&(fr=Ze(1,K,$));function Dr(tr,Cr){var cr=Cr[0]-tr[0],Xr=(Cr[1]-tr[1])/cr,Kr=(tr[1]*Cr[0]-Cr[1]*tr[0])/cr;return Kr>0?[Xr>0?re:me,$]:[Xr>0?me:re,K]}function Te(tr){var Cr=tr[0],cr=tr[1],Xr=Cr===_[M-1][0],Kr=cr===_[M-1][1];if(!(Xr&&Kr))if(M>1){var Fr=Cr===_[M-2][0],Wr=cr===_[M-2][1];Xr&&(Cr===re||Cr===me)&&Fr?Wr?M--:_[M-1]=tr:Kr&&(cr===K||cr===$)&&Wr?Fr?M--:_[M-1]=tr:_[M++]=tr}else _[M++]=tr}function Oe(tr){_[M-1][0]!==tr[0]&&_[M-1][1]!==tr[1]&&Te([$e,er]),Te(tr),ir=null,$e=er=0}var Mr=Gg.isArrayOrTypedArray(c);function Nr(tr){if(tr&&f&&(tr.i=T,tr.d=r,tr.trace=a,tr.marker=Mr?c[tr.i]:c,tr.backoff=f),Be=tr[0]/u,Ue=tr[1]/s,we=tr[0]<re?re:tr[0]>me?me:0,Ne=tr[1]<K?K:tr[1]>$?$:0,we||Ne){if(!M)_[M++]=[we||tr[0],Ne||tr[1]];else if(ir){var Cr=fr(ir,tr);Cr.length>1&&(Oe(Cr[0]),_[M++]=Cr[1])}else sr=fr(_[M-1],tr)[0],_[M++]=sr;var cr=_[M-1];we&&Ne&&(cr[0]!==we||cr[1]!==Ne)?(ir&&($e!==we&&er!==Ne?Te($e&&er?Dr(ir,tr):[$e||we,er||Ne]):$e&&er&&Te([$e,er])),Te([we,Ne])):$e-we&&er-Ne&&Te([we||$e,Ne||er]),ir=tr,$e=we,er=Ne}else ir&&Oe(fr(ir,tr)[0]),_[M++]=tr}for(T=0;T<x;T++)if(A=Ae(T),!!A){for(M=0,ir=null,Nr(A),T++;T<x;T++){if(P=Ae(T),!P){if(h)continue;break}if(!p||!t.simplify){Nr(P);continue}var Qe=Ae(T+1);if(I=We(P,A),!(!(y&&(M===0||M===x-1))&&I<ke(P,Qe)*C)){for(H=[(P[0]-A[0])/I,(P[1]-A[1])/I],z=A,Q=I,ne=ee=fe=0,X=!1,D=P,T++;T<r.length;T++){if(B=Qe,Qe=Ae(T+1),!B){if(h)continue;break}if(V=[B[0]-A[0],B[1]-A[1]],ve=V[0]*H[1]-V[1]*H[0],ee=Math.min(ee,ve),fe=Math.max(fe,ve),fe-ee>ke(B,Qe))break;D=B,te=V[0]*H[0]+V[1]*H[1],te>Q?(Q=te,P=B,X=!1):te<ne&&(ne=te,z=B,X=!0)}if(X?(Nr(P),D!==z&&Nr(z)):(z!==A&&Nr(z),D!==P&&Nr(P)),Nr(D),T>=r.length||!B)break;Nr(B),A=B}}ir&&Te([$e||ir[0],er||ir[1]]),b.push(_.slice(0,M))}var Ie=m.slice(m.length-1);if(f&&Ie!=="h"&&Ie!=="v"){for(var Xe=!1,yr=-1,kr=[],pr=0;pr<b.length;pr++)for(var xr=0;xr<b[pr].length-1;xr++){var Pr=b[pr][xr],Lr=b[pr][xr+1],Hr=Mfe.applyBackoff(Lr,Pr);(Hr[0]!==Lr[0]||Hr[1]!==Lr[1])&&(Xe=!0),kr[yr+1]||(yr++,kr[yr]=[Pr,[Hr[0],Hr[1]]])}return Xe?kr:b}return b}});var Bz=ae((G4e,Nz)=>{"use strict";var zz={tonextx:1,tonexty:1,tonext:1};Nz.exports=function(r,t,a){var n,i,o,l,u,s={},f=!1,c=-1,h=0,d=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in s?u=s[o]:(u=s[o]=h,h++):n.fill in zz&&d>=0?u=d:(u=d=h,h++),u<c&&(f=!0),n._groupIndex=c=u;var m=a.slice();f&&m.sort(function(y,b){var C=y[0].trace,x=b[0].trace;return C._groupIndex-x._groupIndex||C.index-x.index});var p={};for(i=0;i<m.length;i++)n=m[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in zz&&(l=p[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),p[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return m}});var Uz=ae((Y4e,Oz)=>{"use strict";var Yl=Et(),Tfe=bt(),zd=mr(),pv=zd.ensureSingle,Hz=zd.identity,Qa=va(),mv=pi(),kfe=Rz(),Cfe=Bz(),Yg=ng().tester;Oz.exports=function(r,t,a,n,i,o){var l,u,s=!i,f=!!i&&i.duration>0,c=Cfe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Sfe(r,l,t),f){o&&(u=o());var h=Yl.transition().duration(i.duration).ease(i.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){n.selectAll("g.trace").each(function(d,m){Iz(r,m,t,d,c,this,i)})})}else l.each(function(d,m){Iz(r,m,t,d,c,this,i)});s&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Sfe(e,r,t){r.each(function(a){var n=pv(Yl.select(this),"g","fills");Qa.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,Hz);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){i[u]=pv(Yl.select(this),"path","js-fill")})})}function Iz(e,r,t,a,n,i,o){var l=e._context.staticPlot,u;Efe(e,r,t,a,n);var s=!!o&&o.duration>0;function f(Ze){return s?Ze.transition():Ze}var c=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,p=Yl.select(i),y=pv(p,"g","errorbars"),b=pv(p,"g","lines"),C=pv(p,"g","points"),x=pv(p,"g","text");if(Tfe.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,M,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var A,D;T==="y"?(A=1,D=h.c2p(0,!0)):T==="x"&&(A=0,D=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var P="",z=[],B=d._prevtrace,X=null,H=null;B&&(P=B._prevRevpath||"",M=B._nextFill,z=B._ownPolygons,X=B._fillsegments,H=B._fillElement);var V,I,Q="",ne="",te,ee,fe,ve,Ae,Ee,Be=[];d._polygons=[];var Ue=[],ke=[],We=zd.noop;if(_=d._ownFill,mv.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(te=Qa.steps(m.shape),ee=Qa.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?te=ee=function(Ze){var fr=Ze[Ze.length-1];return Ze.length>1&&Ze[0][0]===fr[0]&&Ze[0][1]===fr[1]?Qa.smoothclosed(Ze.slice(1),m.smoothing):Qa.smoothopen(Ze,m.smoothing)}:te=ee=function(Ze){return"M"+Ze.join("L")},fe=function(Ze){return ee(Ze.reverse())},ke=kfe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ue=new Array(ke.length);var j=0;for(u=0;u<ke.length;u++){var re,me=ke[u];!re||!T?(re=me.slice(),Ue[j]=re,j++):re.push.apply(re,me)}d._fillElement=null,d._fillExclusionElement=H,d._fillsegments=Ue.slice(0,j),Ue=d._fillsegments,ke.length&&(ve=ke[0][0].slice(),Ae=ke[ke.length-1],Ee=Ae[Ae.length-1].slice()),We=function(Ze){return function(fr){if(V=te(fr),I=fe(fr),Q?T?(Q+="L"+V.slice(1),ne=I+("L"+ne.slice(1))):(Q+="Z"+V,ne=I+"Z"+ne):(Q=V,ne=I),mv.hasLines(d)){var Dr=Yl.select(this);if(Dr.datum(a),Ze)f(Dr.style("opacity",0).attr("d",V).call(Qa.lineGroupStyle)).style("opacity",1);else{var Te=f(Dr);Te.attr("d",V),Qa.singleLineStyle(a,Te)}}}}}var K=b.selectAll(".js-line").data(ke);f(K.exit()).style("opacity",0).remove(),K.each(We(!1)),K.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Qa.lineGroupStyle).each(We(!0)),Qa.setClipUrl(K,t.layerClipId,e);function $(Ze){f(Ze).attr("d","M0,0Z")}var le=function(){var Ze=new Array(Ue.length);for(u=0;u<Ue.length;u++)Ze[u]=Yg(Ue[u]);return Ze},we=function(Ze){var fr,Dr;if(!Ze||Ze.length===0)for(fr=new Array(Ue.length),Dr=0;Dr<Ue.length;Dr++){var Te=Ue[Dr][0].slice(),Oe=Ue[Dr][Ue[Dr].length-1].slice();Te[A]=Oe[A]=D;var Mr=[Oe,Te],Nr=Mr.concat(Ue[Dr]);fr[Dr]=Yg(Nr)}else{for(fr=new Array(Ze.length-1+Ue.length),Dr=0;Dr<Ze.length-1;Dr++)fr[Dr]=Yg(Ze[Dr]);var Qe=Ze[Ze.length-1].slice();for(Qe.reverse(),Dr=0;Dr<Ue.length;Dr++)fr[Ze.length-1+Dr]=Yg(Ue[Dr].concat(Qe))}return fr};ke.length?(_?(_.datum(a),ve&&Ee&&(T?(ve[A]=Ee[A]=D,f(_).attr("d","M"+Ee+"L"+ve+"L"+Q.slice(1)).call(Qa.singleFillStyle,e),Be=we(null)):(f(_).attr("d",Q+"Z").call(Qa.singleFillStyle,e),Be=le())),d._polygons=Be,d._fillElement=_):M&&(d.fill.slice(0,6)==="tonext"&&Q&&P?(d.fill==="tonext"?(f(M).attr("d",Q+"Z"+P+"Z").call(Qa.singleFillStyle,e),Be=le(),d._polygons=Be.concat(z)):(f(M).attr("d",Q+"L"+P.slice(1)+"Z").call(Qa.singleFillStyle,e),Be=we(X),d._polygons=Be),d._fillElement=M):$(M)),d._prevRevpath=ne):(_?$(_):M&&$(M),d._prevRevpath=null),d._ownPolygons=Be;function Ne(Ze){return Ze.filter(function(fr){return!fr.gap&&fr.vis})}function $e(Ze){return Ze.filter(function(fr){return fr.vis})}function er(Ze){return Ze.filter(function(fr){return!fr.gap})}function ir(Ze){return Ze.id}function sr(Ze){if(Ze.ids)return ir}function Pe(){return!1}function vr(Ze,fr,Dr){var Te,Oe,Mr,Nr=Dr[0].trace,Qe=mv.hasMarkers(Nr),Ie=mv.hasText(Nr),Xe=sr(Nr),yr=Pe,kr=Pe;if(Qe||Ie){var pr=Hz,xr=Nr.stackgroup,Pr=xr&&e._fullLayout._scatterStackOpts[c._id+h._id][xr].stackgaps==="infer zero";Nr.marker.maxdisplayed||Nr._needsCull?pr=Pr?$e:Ne:xr&&!Pr&&(pr=er),Qe&&(yr=pr),Ie&&(kr=pr)}Oe=Ze.selectAll("path.point"),Te=Oe.data(yr,Xe);var Lr=Te.enter().append("path").classed("point",!0);s&&Lr.call(Qa.pointStyle,Nr,e).call(Qa.translatePoints,c,h).style("opacity",0).transition().style("opacity",1),Te.order();var Hr;Qe&&(Hr=Qa.makePointStyleFns(Nr)),Te.each(function(tr){var Cr=Yl.select(this),cr=f(Cr);Mr=Qa.translatePoint(tr,cr,c,h),Mr?(Qa.singlePointStyle(tr,cr,Nr,Hr,e),t.layerClipId&&Qa.hideOutsideRangePoint(tr,cr,c,h,Nr.xcalendar,Nr.ycalendar),Nr.customdata&&Cr.classed("plotly-customdata",tr.data!==null&&tr.data!==void 0)):cr.remove()}),s?Te.exit().transition().style("opacity",0).remove():Te.exit().remove(),Oe=fr.selectAll("g"),Te=Oe.data(kr,Xe),Te.enter().append("g").classed("textpoint",!0).append("text"),Te.order(),Te.each(function(tr){var Cr=Yl.select(this),cr=f(Cr.select("text"));Mr=Qa.translatePoint(tr,cr,c,h),Mr?t.layerClipId&&Qa.hideOutsideRangePoint(tr,Cr,c,h,Nr.xcalendar,Nr.ycalendar):Cr.remove()}),Te.selectAll("text").call(Qa.textPointStyle,Nr,e).each(function(tr){var Cr=c.c2p(tr.x),cr=h.c2p(tr.y);Yl.select(this).selectAll("tspan.line").each(function(){f(Yl.select(this)).attr({x:Cr,y:cr})})}),Te.exit().remove()}C.datum(a),x.datum(a),vr(C,x,a);var hr=d.cliponaxis===!1,dr=hr?null:t.layerClipId;Qa.setClipUrl(C,dr,e),Qa.setClipUrl(x,dr,e)}function Efe(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Yl.extent(zd.simpleMap(i.range,i.r2c)),u=Yl.extent(zd.simpleMap(o.range,o.r2c)),s=a[0].trace;if(mv.hasMarkers(s)){var f=s.marker.maxdisplayed;if(f!==0){var c=a.filter(function(p){return p.x>=l[0]&&p.x<=l[1]&&p.y>=u[0]&&p.y<=u[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(p,y){var b=p[0].trace;mv.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&d++});var m=Math.round(d*h/3+Math.floor(d/3)*h/7.1);a.forEach(function(p){delete p.vis}),c.forEach(function(p,y){Math.round((y+m)%h)===0&&(p.vis=!0)})}}}});var K7=ae((V4e,Gz)=>{"use strict";Gz.exports={container:"marker",min:"cmin",max:"cmax"}});var Vz=ae((X4e,Yz)=>{"use strict";var Vg=Ba();Yz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Vg.getFromTrace(i,t,"x"),l=Vg.getFromTrace(i,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),n.xLabel=Vg.tickText(o,o.c2l(u),!0).text,n.yLabel=Vg.tickText(l,l.c2l(s),!0).text,n}});var Nd=ae((W4e,Xz)=>{"use strict";var Q7=Et(),gv=va(),Lfe=bt();function Dfe(e){var r=Q7.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Q7.select(this),n=t.trace||t[0].trace;e9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Q7.select(this),n=t.trace||t[0].trace;r9(a,n,e)}),r.selectAll("g.trace path.js-line").call(gv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(gv.fillGroupStyle,e,!1),Lfe.getComponentMethod("errorbars","style")(r)}function e9(e,r,t){gv.pointStyle(e.selectAll("path.point"),r,t)}function r9(e,r,t){gv.textPointStyle(e.selectAll("text"),r,t)}function Ffe(e,r,t){var a=r[0].trace;a.selectedpoints?(gv.selectedPointStyle(t.selectAll("path.point"),a),gv.selectedTextStyle(t.selectAll("text"),a)):(e9(t,a,e),r9(t,a,e))}Xz.exports={style:Dfe,stylePoints:e9,styleText:r9,styleOnSelect:Ffe}});var t9=ae((j4e,Wz)=>{"use strict";var yv=Ft(),qfe=pi();Wz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&yv.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&yv.opacity(i)?i:o&&yv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?yv.opacity(n)<.3?yv.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&yv.opacity(a)&&qfe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var Jz=ae((Z4e,Zz)=>{"use strict";var Xg=mr(),jz=Hl(),Pfe=bt(),Rfe=t9(),a9=Ft(),zfe=Xg.fillText;Zz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(a),c=[s,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(ne){if(m){var te=l.c2p(ne.xStart),ee=l.c2p(ne.xEnd);return s>=Math.min(te,ee)&&s<=Math.max(te,ee)?0:1/0}var fe=Math.max(3,ne.mrc||0),ve=1-1/fe,Ae=Math.abs(l.c2p(ne.x)-s);return Ae<fe?ve*Ae/fe:Ae-fe+ve},b=function(ne){if(p){var te=u.c2p(ne.yStart),ee=u.c2p(ne.yEnd);return f>=Math.min(te,ee)&&f<=Math.max(te,ee)?0:1/0}var fe=Math.max(3,ne.mrc||0),ve=1-1/fe,Ae=Math.abs(u.c2p(ne.y)-f);return Ae<fe?ve*Ae/fe:Ae-fe+ve},C=function(ne){var te=Math.max(d,ne.mrc||0),ee=l.c2p(ne.x)-s,fe=u.c2p(ne.y)-f;return Math.max(Math.sqrt(ee*ee+fe*fe)-te,1-d/te)},x=jz.getDistanceFunction(n,y,b,C);if(jz.getClosest(i,x,r),r.index!==!1){var _=i[r.index],M=l.c2p(_.x,!0),T=u.c2p(_.y,!0),A=_.mrc||1;r.index=_.i;var D=i[0].t.orientation,P=D&&(_.sNorm||_.s),z=D==="h"?P:_.orig_x!==void 0?_.orig_x:_.x,B=D==="v"?P:_.orig_y!==void 0?_.orig_y:_.y;return Xg.extendFlat(r,{color:Rfe(o,_),x0:M-A,x1:M+A,xLabelVal:z,y0:T-A,y1:T+A,yLabelVal:B,spikeDistance:C(_),hovertemplate:o.hovertemplate}),zfe(_,o,r),Pfe.getComponentMethod("errorbars","hoverInfo")(_,o,r),[r]}}function X(ne){if(!ne)return!1;var te=ne.node();try{var ee=new DOMPoint(c[0],c[1]);return te.isPointInFill(ee)}catch(ve){var fe=te.ownerSVGElement.createSVGPoint();return fe.x=c[0],fe.y=c[1],te.isPointInFill(fe)}}function H(ne){var te,ee=[],fe=1/0,ve=-1/0,Ae=1/0,Ee=-1/0,Be;for(te=0;te<ne.length;te++){var Ue=ne[te];Ue.contains(c)&&(ee.push(Ue),Ae=Math.min(Ae,Ue.ymin),Ee=Math.max(Ee,Ue.ymax))}if(ee.length===0)return null;Ae=Math.max(Ae,0),Ee=Math.min(Ee,u._length),Be=(Ae+Ee)/2;var ke,We,j,re,me,K,$;for(te=0;te<ee.length;te++)for(We=ee[te].pts,ke=1;ke<We.length;ke++)K=We[ke-1][1],$=We[ke][1],K>Be!=$>=Be&&(re=We[ke-1][0],me=We[ke][0],$-K&&(j=re+(me-re)*(Be-K)/($-K),fe=Math.min(fe,j),ve=Math.max(ve,j)));return fe=Math.max(fe,0),ve=Math.min(ve,l._length),{x0:fe,x1:ve,y0:Be,y1:Be}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){var I=H(o._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=a9.defaultLine;return a9.opacity(o.fillcolor)?Q=o.fillcolor:a9.opacity((o.line||{}).color)&&(Q=o.line.color),Xg.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!Xg.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var Qz=ae((J4e,Kz)=>{"use strict";var $z=pi();Kz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,u,s,f,c,h=l.mode&&!$z.hasMarkers(l)&&!$z.hasText(l);if(h)return[];if(t===!1)for(u=0;u<a.length;u++)a[u].selected=0;else for(u=0;u<a.length;u++)s=a[u],f=n.c2p(s.x),c=i.c2p(s.y),s.i!==null&&t.contains([f,c],!1,u,r)?(o.push({pointNumber:s.i,x:n.c2d(s.x),y:i.c2d(s.y)}),s.selected=1):s.selected=0;return o}});var rN=ae(($4e,eN)=>{"use strict";eN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var iN=ae((K4e,nN)=>{"use strict";var Wg=bt().traceIs,n9=x6();nN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nfe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Nfe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Bfe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],u={noMultiCategory:!Wg(i,"cartesian")||Wg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,aN(i,a)){var s=tN(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!Wg(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[s]!==void 0?f.push(c[s][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=n9(f,l,u)}else if(i.type==="splom"){var h=i.dimensions,d=h[i._axesDim[t]];d.visible&&(e.type=n9(d.values,l,u))}else e.type=n9(i[a]||[i[a+"0"]],l,u)}}}function Bfe(e,r,t){for(var a=0;a<e.length;a++){var n=e[a];if(n.type==="splom"&&n._length>0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(aN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function tN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function aN(e,r){var t=tN(e),a=Wg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var lN=ae((Q4e,oN)=>{"use strict";var Ife=Vi().isTypedArraySpec;function Hfe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var l=r.data[i];l[t+"axis"]===e._id&&n.push(l)}for(i=0;i<n.length;i++){var u=n[i][t];for(o=0;o<u.length;o++){var s=u[o];s!=null&&(a[s]=1)}}return Object.keys(a)}oN.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||Ife(i),l;o&&(l="array");var u=a("categoryorder",l),s;u==="array"&&(s=a("categoryarray")),!o&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=Hfe(t,n).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var fN=ae((e5e,sN)=>{"use strict";var uN=Ft(),Ofe=Fl(),Ufe=mr();sN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(D,P){return Ufe.coerce2(r,t,n.attributes,D,P)}var l=o("linecolor",i),u=o("linewidth"),s=a("showline",n.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=uN.mix(i,n.bgColor,n.blend||Ofe.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=a("showgrid",n.showGrid||!!c||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var p=uN.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var _=o("zerolinelayer"),M=o("zerolinecolor",i),T=o("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!T);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var o9=ae((r5e,mN)=>{"use strict";var cN=Wt(),Gfe=bt(),Bd=mr(),Yfe=Ta(),Vfe=Bl(),i9=Nl(),vN=X5(),hN=j5(),Xfe=$5(),Wfe=K5(),jfe=lN(),Zfe=fN(),Jfe=U6(),dN=t2(),jg=Dn().WEEKDAY_PATTERN,$fe=Dn().HOUR_PATTERN;mN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},u=n.splomStash||{},s=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Gfe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||c==="multicategory")&&(m=Bd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),dN(t,i),Jfe(r,t,a,n),jfe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var p=a("color"),y=p!==i9.color.dflt?p:l.color,b=u.label||i._dfltTitle[o];if(Wfe(r,t,a,c,n),!s)return t;a("title.text",b),Bd.coerceFont(a,"title.font",l,{overrideDflt:{size:Bd.bigFont(l.size),color:y}}),vN(r,t,a,c);var C=n.hasMinor;if(C&&(Yfe.newContainer(t,"minor"),vN(r,t,a,c,{isMinor:!0})),Xfe(r,t,a,c,n),hN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,hN(r,t,a,n),n.isMinor=x}Zfe(r,t,a,{dfltColor:p,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:i9}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var _=c==="multicategory";if(!n.noTickson&&(c==="category"||_)&&(t.ticks||t.showgrid)&&(_?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),_){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Vfe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Kfe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var T=0;T<t.rangebreaks.length;T++)if(t.rangebreaks[T].pattern===jg){t._hasDayOfWeekBreaks=!0;break}if(dN(t,i),i._has("scattergl")||i._has("splom"))for(var A=0;A<n.data.length;A++){var D=n.data[A];(D.type==="scattergl"||D.type==="splom")&&(D.visible=!1,Bd.warn(D.type+" traces do not work on axes with rangebreaks. Setting trace "+D.index+" to `visible: false`."))}}return t};function Kfe(e,r,t){function a(h,d){return Bd.coerce(e,r,i9.rangebreaks,h,d)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,u;if(i.length===2){for(l=0;l<2;l++)if(u=pN(i[l]),u){o=jg;break}}var s=a("pattern",o);if(s===jg)for(l=0;l<2;l++)u=pN(i[l]),u&&(r.bounds[l]=i[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=i[l],s){case jg:if(!cN(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=i[l]=u;break;case $fe:if(!cN(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=i[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(i[0]<f[0]&&i[1]>f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]<f[1]){r.enabled=!1;return}}}else{var c=a("values");if(c&&c.length)a("dvalue");else{r.enabled=!1;return}}}}var Qfe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function pN(e){if(typeof e=="string")return Qfe[e.slice(0,3).toLowerCase()]}});var l9=ae((t5e,gN)=>{"use strict";var e0e=Wt(),Zg=mr();gN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,u=n.grid,s=n.overlayingDomain,f,c,h,d,m,p;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(h=u[l+"side"].split(" ")[0],d=u.domain[l][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(e0e(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=Zg.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=Zg.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=a("autoshift");C&&(d=b==="left"?s[0]:s[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",p);var x=!1;if(o.length&&(x=Zg.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=a("domain",c);_[0]>_[1]-1/4096&&(t.domain=c),Zg.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var kN=ae((a5e,TN)=>{"use strict";var bc=mr(),yN=Ft(),r0e=Ls().isUnifiedHover,t0e=mb(),bN=Ta(),a0e=C1(),_N=Nl(),n0e=iN(),xN=o9(),i0e=ad(),wN=l9(),s9=wn(),Hu=s9.id2name,MN=s9.name2id,o0e=Dn().AX_ID_PATTERN,AN=bt(),Jg=AN.traceIs,u9=AN.getComponentMethod;function $g(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}TN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},u={},s={},f={},c={},h={},d={},m={},p,y;for(p=0;p<a.length;p++){var b=a[p];if(Jg(b,"cartesian")){var C;if(b.xaxis)C=Hu(b.xaxis),$g(i,C,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)$g(i,Hu(b.xaxes[y]),b);var x;if(b.yaxis)x=Hu(b.yaxis),$g(i,x,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)$g(i,Hu(b.yaxes[y]),b);if(b.type==="funnel"?b.orientation==="h"?(C&&(o[C]=!0),x&&(c[x]=!0)):x&&(l[x]=!0):b.type==="image"?(x&&(h[x]=!0),C&&(h[C]=!0)):(x&&(s[x]=!0,f[x]=!0),(!Jg(b,"carpet")||b.type==="carpet"&&!b._cheater)&&C&&(u[C]=!0)),b.type==="carpet"&&b._cheater&&C&&(o[C]=!0),Jg(b,"2dMap")&&(d[C]=!0,d[x]=!0),Jg(b,"oriented")){var _=b.orientation==="h"?x:C;m[_]=!0}}}var M=t._subplots,T=M.xaxis,A=M.yaxis,D=bc.simpleMap(T,Hu),P=bc.simpleMap(A,Hu),z=D.concat(P),B=yN.background;T.length&&A.length&&(B=bc.coerce(r,t,a0e,"plot_bgcolor"));var X=yN.combine(B,t.paper_bgcolor),H,V,I,Q,ne;function te(){var Oe=i[H]||[];ne._traceIndices=Oe.map(function(Mr){return Mr.index}),ne._annIndices=[],ne._shapeIndices=[],ne._selectionIndices=[],ne._imgIndices=[],ne._subplotsWith=[],ne._counterAxes=[],ne._name=ne._attr=H,ne._id=V}function ee(Oe,Mr){return bc.coerce(Q,ne,_N,Oe,Mr)}function fe(Oe,Mr){return bc.coerce2(Q,ne,_N,Oe,Mr)}function ve(Oe){return Oe==="x"?A:T}function Ae(Oe,Mr){for(var Nr=Oe==="x"?D:P,Qe=[],Ie=0;Ie<Nr.length;Ie++){var Xe=Nr[Ie];Xe!==Mr&&!(r[Xe]||{}).overlaying&&Qe.push(MN(Xe))}return Qe}var Ee={x:ve("x"),y:ve("y")},Be=Ee.x.concat(Ee.y),Ue={},ke=[];function We(){var Oe=Q.matches;o0e.test(Oe)&&Be.indexOf(Oe)===-1&&(Ue[Oe]=Q.type,ke=Object.keys(Ue))}var j=t0e(r,t),re=r0e(j);for(p=0;p<z.length;p++){H=z[p],V=MN(H),I=H.charAt(0),bc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ne=bN.newContainer(t,H,I+"axis"),te();var me=I==="x"&&!u[H]&&o[H]||I==="y"&&!s[H]&&l[H],K=I==="y"&&(!f[H]&&c[H]||h[H]),$={hasMinor:!0,letter:I,font:t.font,outerTicks:d[H],showGrid:!m[H],data:i[H]||[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:me,reverseDflt:K,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[V],noAutotickangles:I==="y"};ee("uirevision",t.uirevision),n0e(Q,ne,ee,$),xN(Q,ne,ee,$,t);var le=re&&I===j.charAt(0),we=fe("spikecolor",re?ne.color:void 0),Ne=fe("spikethickness",re?1.5:void 0),$e=fe("spikedash",re?"dot":void 0),er=fe("spikemode",re?"across":void 0),ir=fe("spikesnap"),sr=ee("showspikes",!!le||!!we||!!Ne||!!$e||!!er||!!ir);sr||(delete ne.spikecolor,delete ne.spikethickness,delete ne.spikedash,delete ne.spikemode,delete ne.spikesnap);var Pe=Hu(Q.overlaying),vr=[0,1];if(t[Pe]!==void 0){var hr=Hu(t[Pe].anchor);t[hr]!==void 0&&(vr=t[hr].domain)}wN(Q,ne,ee,{letter:I,counterAxes:Ee[I],overlayableAxes:Ae(I,H),grid:t.grid,overlayingDomain:vr}),ee("title.standoff"),We(),ne._input=Q}for(p=0;p<ke.length;){V=ke[p++],H=Hu(V),I=H.charAt(0),bc.isPlainObject(r[H])||(r[H]={}),Q=r[H],ne=bN.newContainer(t,H,I+"axis"),te();var dr={letter:I,font:t.font,outerTicks:d[H],showGrid:!m[H],data:[],bgColor:X,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[I]||{})[V]};ee("uirevision",t.uirevision),ne.type=Ue[V]||"linear",xN(Q,ne,ee,dr,t),wN(Q,ne,ee,{letter:I,counterAxes:Ee[I],overlayableAxes:Ae(I,H),grid:t.grid}),ee("fixedrange"),ee("modebardisable"),We(),ne._input=Q}var Ze=u9("rangeslider","handleDefaults"),fr=u9("rangeselector","handleDefaults");for(p=0;p<D.length;p++)H=D[p],Q=r[H],ne=t[H],Ze(r,t,H),ne.type==="date"&&fr(Q,ne,t,P,ne.calendar),ee("fixedrange"),ee("modebardisable");for(p=0;p<P.length;p++){H=P[p],Q=r[H],ne=t[H];var Dr=t[Hu(ne.anchor)],Te=u9("rangeslider","isVisible")(Dr);ee("fixedrange",Te),ee("modebardisable")}i0e.handleDefaults(r,t,{axIds:Be.concat(ke).sort(s9.idSort),axHasImage:h})}});var EN=ae((n5e,SN)=>{"use strict";var l0e=Et(),CN=bt(),Kg=mr(),wo=va(),Qg=Ba();SN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Qg.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(wo.setTranslate,0,0).call(wo.setScale,1,1),y.plot.call(wo.setTranslate,b._offset,C._offset).call(wo.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(wo.setPointGroupScale,1,1),x.selectAll(".textpoint").call(wo.setTextPointsScale,1,1),x.call(wo.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,M=x._length,T=_._length,A=!!y.xr1,D=!!y.yr1,P=[];if(A){var z=Kg.simpleMap(y.xr0,x.r2l),B=Kg.simpleMap(y.xr1,x.r2l),X=z[1]-z[0],H=B[1]-B[0];P[0]=(z[0]*(1-b)+b*B[0]-z[0])/(z[1]-z[0])*M,P[2]=M*(1-b+b*H/X),x.range[0]=x.l2r(z[0]*(1-b)+b*B[0]),x.range[1]=x.l2r(z[1]*(1-b)+b*B[1])}else P[0]=0,P[2]=M;if(D){var V=Kg.simpleMap(y.yr0,_.r2l),I=Kg.simpleMap(y.yr1,_.r2l),Q=V[1]-V[0],ne=I[1]-I[0];P[1]=(V[1]*(1-b)+b*I[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-b+b*ne/Q),_.range[0]=x.l2r(V[0]*(1-b)+b*I[0]),_.range[1]=_.l2r(V[1]*(1-b)+b*I[1])}else P[1]=0,P[3]=T;Qg.drawOne(r,x,{skipTitle:!0}),Qg.drawOne(r,_,{skipTitle:!0}),Qg.redrawComponents(r,[x._id,_._id]);var te=A?M/P[2]:1,ee=D?T/P[3]:1,fe=A?P[0]:0,ve=D?P[1]:0,Ae=A?P[0]/P[2]*M:0,Ee=D?P[1]/P[3]*T:0,Be=x._offset-Ae,Ue=_._offset-Ee;C.clipRect.call(wo.setTranslate,fe,ve).call(wo.setScale,1/te,1/ee),C.plot.call(wo.setTranslate,Be,Ue).call(wo.setScale,te,ee),wo.setPointGroupScale(C.zoomScalePts,1/te,1/ee),wo.setTextPointsScale(C.zoomScaleTxt,1/te,1/ee)}var u;n&&(u=n());function s(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr1&&(y[x._name+".range"]=C.xr1.slice()),C.yr1&&(y[_._name+".range"]=C.yr1.slice())}return u&&u(),CN.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)o(t[M].plotinfo)})}function f(){for(var y={},b=0;b<t.length;b++){var C=t[b],x=C.plotinfo.xaxis,_=C.plotinfo.yaxis;C.xr0&&(y[x._name+".range"]=C.xr0.slice()),C.yr0&&(y[_._name+".range"]=C.yr0.slice())}return CN.call("relayout",r,y).then(function(){for(var M=0;M<t.length;M++)o(t[M].plotinfo)})}var c,h,d,m=l0e.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function p(){h=Date.now();for(var y=Math.min(1,(h-c)/a.duration),b=m(y),C=0;C<t.length;C++)l(t[C],b);h-c>a.duration?(s(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return c=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var f9=ae(ii=>{"use strict";var r3=Et(),LN=bt(),_c=mr(),u0e=Mn(),s0e=va(),DN=Dh().getModuleCalcData,Hf=wn(),Vl=Dn(),f0e=W0(),$t=_c.ensureSingle;function e3(e,r,t){return _c.ensureSingle(e,r,t,function(a){a.datum(t)})}var xc=Vl.zindexSeparator;ii.name="cartesian";ii.attr=["xaxis","yaxis"];ii.idRoot=["x","y"];ii.idRegex=Vl.idRegex;ii.attrRegex=Vl.attrRegex;ii.attributes=rN();ii.layoutAttributes=Nl();ii.supplyLayoutDefaults=kN();ii.transitionAxes=EN();ii.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},u={},s,f,c;for(s=0;s<o.length;s++){var h=o[s].split("y");l[h[0]]=1,u["y"+h[1]]=1}for(s=0;s<a.length;s++)f=a[s],l[f]||(c=(e[Hf.id2name(f)]||{}).anchor,Vl.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),u[c]||(u[c]=1,_c.pushUnique(n,c)));for(s=0;s<n.length;s++)c=n[s],u[c]||(f=(e[Hf.id2name(c)]||{}).anchor,Vl.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,_c.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Vl.attrRegex.test(d)){var m=d.charAt(0);m==="x"?(!f||+d.slice(5)<+f.slice(5))&&(f=d):(!c||+d.slice(5)<+c.slice(5))&&(c=d)}f=f?Hf.name2id(f):"x",c=c?Hf.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};ii.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,o=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<o.length;l++)r.push(l);for(var u=n._zindices,s=0;s<u.length;s++){var f=u[s];for(l=0;l<i.length;l++){var c=i[l],h=n._plots[c];if(s>0){var d=h.id;if(d.indexOf(xc)!==-1)continue;d+=xc+(s+1),h=_c.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y<o.length;y++){var b=o[y],C=b[0].trace;f===(C.zorder||0)&&C.xaxis+C.yaxis===c&&((r.indexOf(C.index)!==-1||C.carpet)&&(p&&p[0].trace.xaxis+p[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(C.fill)!==-1&&m.indexOf(p)===-1&&m.push(p),m.push(b)),p=b)}FN(e,h,m,t,a)}}};function FN(e,r,t,a,n){for(var i=Vl.traceLayerClasses,o=e._fullLayout,l=o._zindices,u=o._modules,s,f,c,h=[],d=[],m=0;m<l.length;m++)for(var p=l[m],y=0;y<u.length;y++){s=u[y];var b=s.name,C=LN.modules[b].categories;if(C.svg){var x=s.layerName||b+"layer",_=x+(m?Number(m)+1:""),M=s.plot;f=DN(t,M,p),c=f[0],t=f[1],c.length&&h.push({i:i.indexOf(x),zindex:m,className:_,plotMethod:M,cdModule:c}),C.zoomScale&&d.push("."+_)}}h.sort(function(D,P){return(D.zindex||0)-(P.zindex||0)||D.i-P.i});var T=r.plot.selectAll("g.mlayer").data(h,function(D){return D.className});if(T.enter().append("g").attr("class",function(D){return D.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),T.exit().remove(),T.order(),T.each(function(D){var P=r3.select(this),z=D.className;D.plotMethod(e,r,D.cdModule,P,a,n),Vl.clipOnAxisFalseQuery.indexOf("."+z)===-1&&s0e.setClipUrl(P,r.layerClipId,e)}),o._has("scattergl")&&(s=LN.getModule("scattergl"),c=DN(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Vl.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var A=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=A.selectAll("path.point"),r.zoomScaleTxt=A.selectAll(".textpoint")}}ii.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,u,s;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(s in n)l=n[s],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(s in n)l=n[s],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var h=Hf.listIds({_fullLayout:a});for(u=0;u<h.length;u++){var d=h[u];r[Hf.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var m=a._has&&a._has("cartesian"),p=r._has&&r._has("cartesian");if(m&&!p)PN(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(u=0;u<o.cartesian.length;u++){var y=o.cartesian[u];if(y.indexOf(xc)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),RN(y,a)}}};ii.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],o=i.trace,l=o.zorder||0;n[l]||(n[l]=[]),n[l].push(i)}var u=Object.keys(n).map(Number).sort(_c.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=c0e(e),f=s.length,c=[];for(a=0;a<f;a++)c[a]=s[a].slice();for(var h=1;h<u.length;h++){var d=[];for(a=0;a<f;a++)d[a]=s[a].slice(),d[a][0]+=xc+(h+1);c=c.concat(d)}var m=r._cartesianlayer.selectAll(".subplot").data(c,String);m.enter().append("g").attr("class",function(p){return"subplot "+p[0]}),m.order(),m.exit().call(PN,r),m.each(function(p){var y=p[0],b=y.indexOf(xc),C=b!==-1,x=C?y.slice(0,b):y,_=r._plots[y];_||(_=_c.extendFlat({},r._plots[x]),_&&(_.id=y,r._plots[y]=_,r._subplots.cartesian.push(y))),_&&(_.plotgroup=r3.select(this),qN(e,_),C||(_.draglayer=$t(r._draggers,"g",y)))})};ii.rangePlot=function(e,r,t){qN(e,r),FN(e,r,t),u0e.style(e)};function c0e(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,u,s,f,c=[],h=[];for(i=0;i<n;i++){l=a[i],u=r._plots[l],s=u.xaxis,f=u.yaxis;var d=s._mainAxis,m=f._mainAxis,p=d._id+m._id,y=r._plots[p];u.overlays=[],p!==l&&y?(u.mainplot=p,u.mainplotinfo=y,h.push(l)):(u.mainplot=void 0,u.mainplotinfo=void 0,c.push(l))}for(i=0;i<h.length;i++)l=h[i],u=r._plots[l],u.mainplotinfo.overlays.push(u);var b=c.concat(h),C=[];for(i=0;i<n;i++){l=b[i],u=r._plots[l],s=u.xaxis,f=u.yaxis;for(var x=[],_=1;_<=t;_++){var M="";for(_>1&&(M+=xc+_),x.push(l+M),o=0;o<u.overlays.length;o++)x.push(u.overlays[o].id+M)}x=x.concat([s.layer,f.layer,s.overlaying||"",f.overlaying||""]),C.push(x)}return C}function qN(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(xc),o=i!==-1,l=Vl.layerValue2layerClass[r.xaxis.layer],u=Vl.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=$t(a,"path","xlines-above"),r.ylines=$t(a,"path","ylines-above"),r.xaxislayer=$t(a,"g","xaxislayer-above"),r.yaxislayer=$t(a,"g","yaxislayer-above");else{if(!o){var h=$t(a,"g","layer-subplot");r.shapelayer=$t(h,"g","shapelayer"),r.imagelayer=$t(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$t(a,"g","minor-gridlayer"),r.gridlayer=$t(a,"g","gridlayer"),r.zerolinelayer=$t(a,"g","zerolinelayer"));var d=$t(a,"g","layer-between");r.shapelayerBetween=$t(d,"g","shapelayer"),r.imagelayerBetween=$t(d,"g","imagelayer"),$t(a,"path","xlines-below"),$t(a,"path","ylines-below"),r.overlinesBelow=$t(a,"g","overlines-below"),$t(a,"g","xaxislayer-below"),$t(a,"g","yaxislayer-below"),r.overaxesBelow=$t(a,"g","overaxes-below")}r.overplot=$t(a,"g","overplot"),r.plot=$t(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$t(a,"g","zerolinelayer-above"),o||(r.xlines=$t(a,"path","xlines-above"),r.ylines=$t(a,"path","ylines-above"),r.overlinesAbove=$t(a,"g","overlines-above"),$t(a,"g","xaxislayer-above"),$t(a,"g","yaxislayer-above"),r.overaxesAbove=$t(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+u),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+u))}else{var m=c.plotgroup,p=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$t(c.overlinesBelow,"path",p),$t(c.overlinesBelow,"path",y),$t(c.overaxesBelow,"g",p),$t(c.overaxesBelow,"g",y),r.plot=$t(c.overplot,"g",n),$t(c.overlinesAbove,"path",p),$t(c.overlinesAbove,"path",y),$t(c.overaxesAbove,"g",p),$t(c.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+u).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+u).select("."+y)}o||(s||(e3(r.minorGridlayer,"g",r.xaxis._id),e3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Hf.idSort),e3(r.gridlayer,"g",r.xaxis._id),e3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Hf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function PN(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=r3.select(this);f.remove(),RN(s,r),t[s]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o<i.length;o++){var l=i[o];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function RN(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}ii.toSVG=function(e){var r=e._fullLayout._glimages,t=r3.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:f0e.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};ii.updateFx=p7().updateFx});var NN=ae((o5e,zN)=>{"use strict";var t3=pi();zN.exports={hasLines:t3.hasLines,hasMarkers:t3.hasMarkers,hasText:t3.hasText,isBubble:t3.isBubble,attributes:dc(),layoutAttributes:Dm(),supplyDefaults:jR(),crossTraceDefaults:KR(),supplyLayoutDefaults:ez(),calc:Hg().calc,crossTraceCalc:Sz(),arraysToCalcdata:Fd(),plot:Uz(),colorbar:K7(),formatLabels:Vz(),style:Nd().style,styleOnSelect:Nd().styleOnSelect,hoverPoints:Jz(),selectPoints:Qz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:f9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var HN=ae((l5e,IN)=>{"use strict";var v0e=Et(),h0e=Ft(),BN=i7(),c9=mr(),d0e=c9.strScale,p0e=c9.strRotate,m0e=c9.strTranslate;IN.exports=function(r,t,a){var n=r.node(),i=BN[a.arrowhead||0],o=BN[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),u=(a.arrowwidth||1)*(a.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,h=o.backoff*u+a.startstandoff,d,m,p,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,c&&h&&c+h>Math.sqrt(b*b+C*C)){V();return}if(c){if(c*c>b*b+C*C){V();return}var x=c*Math.cos(p),_=c*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){V();return}var M=h*Math.cos(p),T=h*Math.sin(p);d.x-=M,d.y-=T,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),D="";if(A<c+h){V();return}var P=n.getPointAtLength(0),z=n.getPointAtLength(.1);p=Math.atan2(P.y-z.y,P.x-z.x),d=n.getPointAtLength(Math.min(h,A)),D="0px,"+h+"px,";var B=n.getPointAtLength(A),X=n.getPointAtLength(A-.1);y=Math.atan2(B.y-X.y,B.x-X.x),m=n.getPointAtLength(Math.max(0,A-c));var H=D?h+c:c;D+=A-H+"px,"+A+"px",r.style("stroke-dasharray",D)}function V(){r.style("stroke-dasharray","0px,100px")}function I(Q,ne,te,ee){Q.path&&(Q.noRotate&&(te=0),v0e.select(n.parentNode).append("path").attr({class:r.attr("class"),d:Q.path,transform:m0e(ne.x,ne.y)+p0e(te*180/Math.PI)+d0e(ee)}).style({fill:h0e.rgb(a.arrowcolor),"stroke-width":0}))}s&&I(o,d,p,u),f&&I(i,m,y,l)}});var a3=ae((u5e,VN)=>{"use strict";var ON=Et(),v9=bt(),g0e=Mn(),Uf=mr(),h9=Uf.strTranslate,Hd=Ba(),wc=Ft(),Bs=va(),UN=Hl(),d9=ai(),p9=Df(),Id=Yo(),y0e=Ta().arrayEditor,b0e=HN();VN.exports={draw:_0e,drawOne:GN,drawRaw:YN};function _0e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&GN(e,t);return g0e.previousPromises(e)}function GN(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Hd.getFromId(e,a.xref),i=Hd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),YN(e,a,r,!1,n,i)}function Of(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,u=Hd.getRefType(o)==="domain",s=l?a.h:a.w;return e?u?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/s}function YN(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,u=e._context.edits,s,f;a?(s="annotation-"+a,f=a+".annotations"):(s="annotation",f="annotations");var c=y0e(e.layout,f,r),h=c.modifyBase,d=c.modifyItem,m=c.getUpdateObj;o._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var p="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){ON.selectAll("#"+p).remove();return}var y={x:{},y:{}},b=+r.textangle||0,C=o._infolayer.append("g").classed(s,!0).attr("data-index",String(t)).style("opacity",r.opacity),x=C.append("g").classed("annotation-text-g",!0),_=u[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||u.annotationText||_;function T(ee){var fe={index:t,annotation:r._input,fullAnnotation:r,event:ee};return a&&(fe.subplotId=a),fe}var A=x.append("g").style("pointer-events",M?"all":null).call(p9,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",T(ON.event))});r.hovertext&&A.on("mouseover",function(){var ee=r.hoverlabel,fe=ee.font,ve=this.getBoundingClientRect(),Ae=e.getBoundingClientRect();UN.loneHover({x0:ve.left-Ae.left,x1:ve.right-Ae.left,y:(ve.top+ve.bottom)/2-Ae.top,text:r.hovertext,color:ee.bgcolor,borderColor:ee.bordercolor,fontFamily:fe.family,fontSize:fe.size,fontColor:fe.color,fontWeight:fe.weight,fontStyle:fe.style,fontVariant:fe.variant,fontShadow:fe.fontShadow,fontLineposition:fe.fontLineposition,fontTextcase:fe.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){UN.loneUnhover(o._hoverlayer.node())});var D=r.borderwidth,P=r.borderpad,z=D+P,B=A.append("rect").attr("class","bg").style("stroke-width",D+"px").call(wc.stroke,r.bordercolor).call(wc.fill,r.bgcolor),X=r.width||r.height,H=o._topclips.selectAll("#"+p).data(X?[0]:[]);H.enter().append("clipPath").classed("annclip",!0).attr("id",p).append("rect"),H.exit().remove();var V=r.font,I=o._meta?Uf.templateString(r.text,o._meta):r.text,Q=A.append("text").classed("annotation-text",!0).text(I);function ne(ee){return ee.call(Bs.font,V).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),d9.convertToTspans(ee,e,te),ee}function te(){var ee=Q.selectAll("a");if(ee.size()===1&&ee.text()===Q.text()){var fe=A.insert("a",":first-child").attr({"xlink:xlink:href":ee.attr("xlink:href"),"xlink:xlink:show":ee.attr("xlink:show")}).style({cursor:"pointer"});fe.node().appendChild(B.node())}var ve=A.select(".annotation-text-math-group"),Ae=!ve.empty(),Ee=Bs.bBox((Ae?ve:Q).node()),Be=Ee.width,Ue=Ee.height,ke=r.width||Be,We=r.height||Ue,j=Math.round(ke+2*z),re=Math.round(We+2*z);function me(Xr,Kr){return Kr==="auto"&&(Xr<1/3?Kr="left":Xr>2/3?Kr="right":Kr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Kr]}for(var K=!1,$=["x","y"],le=0;le<$.length;le++){var we=$[le],Ne=r[we+"ref"]||we,$e=r["a"+we+"ref"],er={x:n,y:i}[we],ir=(b+(we==="x"?0:-90))*Math.PI/180,sr=j*Math.cos(ir),Pe=re*Math.sin(ir),vr=Math.abs(sr)+Math.abs(Pe),hr=r[we+"anchor"],dr=r[we+"shift"]*(we==="x"?1:-1),Ze=y[we],fr,Dr,Te,Oe,Mr,Nr=Hd.getRefType(Ne);if(er&&Nr!=="domain"){var Qe=er.r2fraction(r[we]);(Qe<0||Qe>1)&&($e===Ne?(Qe=er.r2fraction(r["a"+we]),(Qe<0||Qe>1)&&(K=!0)):K=!0),fr=er._offset+er.r2p(r[we]),Oe=.5}else{var Ie=Nr==="domain";we==="x"?(Te=r[we],fr=Ie?er._offset+er._length*Te:fr=l.l+l.w*Te):(Te=1-r[we],fr=Ie?er._offset+er._length*Te:fr=l.t+l.h*Te),Oe=r.showarrow?.5:Te}if(r.showarrow){Ze.head=fr;var Xe=r["a"+we];if(Mr=sr*me(.5,r.xanchor)-Pe*me(.5,r.yanchor),$e===Ne){var yr=Hd.getRefType($e);yr==="domain"?(we==="y"&&(Xe=1-Xe),Ze.tail=er._offset+er._length*Xe):yr==="paper"?we==="y"?(Xe=1-Xe,Ze.tail=l.t+l.h*Xe):Ze.tail=l.l+l.w*Xe:Ze.tail=er._offset+er.r2p(Xe),Dr=Mr}else Ze.tail=fr+Xe,Dr=Mr+Xe;Ze.text=Ze.tail+Mr;var kr=o[we==="x"?"width":"height"];if(Ne==="paper"&&(Ze.head=Uf.constrain(Ze.head,1,kr-1)),$e==="pixel"){var pr=-Math.max(Ze.tail-3,Ze.text),xr=Math.min(Ze.tail+3,Ze.text)-kr;pr>0?(Ze.tail+=pr,Ze.text+=pr):xr>0&&(Ze.tail-=xr,Ze.text-=xr)}Ze.tail+=dr,Ze.head+=dr}else Mr=vr*me(Oe,hr),Dr=Mr,Ze.text=fr+Mr;Ze.text+=dr,Mr+=dr,Dr+=dr,r["_"+we+"padplus"]=vr/2+Dr,r["_"+we+"padminus"]=vr/2-Dr,r["_"+we+"size"]=vr,r["_"+we+"shift"]=Mr}if(K){A.remove();return}var Pr=0,Lr=0;if(r.align!=="left"&&(Pr=(ke-Be)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Lr=(We-Ue)*(r.valign==="middle"?.5:1)),Ae)ve.select("svg").attr({x:z+Pr-1,y:z+Lr}).call(Bs.setClipUrl,X?p:null,e);else{var Hr=z+Lr-Ee.top,tr=z+Pr-Ee.left;Q.call(d9.positionText,tr,Hr).call(Bs.setClipUrl,X?p:null,e)}H.select("rect").call(Bs.setRect,z,z,ke,We),B.call(Bs.setRect,D/2,D/2,j-D,re-D),A.call(Bs.setTranslate,Math.round(y.x.text-j/2),Math.round(y.y.text-re/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Cr=function(Xr,Kr){C.selectAll(".annotation-arrow-g").remove();var Fr=y.x.head,Wr=y.y.head,Me=y.x.tail+Xr,Re=y.y.tail+Kr,ur=y.x.text+Xr,gr=y.y.text+Kr,Nt=Uf.rotationXYMatrix(b,ur,gr),Gt=Uf.apply2DTransform(Nt),na=Uf.apply2DTransform2(Nt),Aa=+B.attr("width"),Bt=+B.attr("height"),jt=ur-.5*Aa,da=jt+Aa,Kt=gr-.5*Bt,mn=Kt+Bt,rn=[[jt,Kt,jt,mn],[jt,mn,da,mn],[da,mn,da,Kt],[da,Kt,jt,Kt]].map(na);if(!rn.reduce(function(aa,La){return aa^!!Uf.segmentsIntersect(Fr,Wr,Fr+1e6,Wr+1e6,La[0],La[1],La[2],La[3])},!1)){rn.forEach(function(aa){var La=Uf.segmentsIntersect(Me,Re,Fr,Wr,aa[0],aa[1],aa[2],aa[3]);La&&(Me=La.x,Re=La.y)});var Un=r.arrowwidth,Jr=r.arrowcolor,ua=r.arrowside,Rt=C.append("g").style({opacity:wc.opacity(Jr)}).classed("annotation-arrow-g",!0),pa=Rt.append("path").attr("d","M"+Me+","+Re+"L"+Fr+","+Wr).style("stroke-width",Un+"px").call(wc.stroke,wc.rgb(Jr));if(b0e(pa,ua,r),u.annotationPosition&&pa.node().parentNode&&!a){var ya=Fr,ba=Wr;if(r.standoff){var Yt=Math.sqrt(Math.pow(Fr-Me,2)+Math.pow(Wr-Re,2));ya+=r.standoff*(Me-Fr)/Yt,ba+=r.standoff*(Re-Wr)/Yt}var za=Rt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Me-ya)+","+(Re-ba),transform:h9(ya,ba)}).style("stroke-width",Un+6+"px").call(wc.stroke,"rgba(0,0,0,0)").call(wc.fill,"rgba(0,0,0,0)"),gn,ma;Id.init({element:za.node(),gd:e,prepFn:function(){var aa=Bs.getTranslate(A);gn=aa.x,ma=aa.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(aa,La){var Sa=Gt(gn,ma),ko=Sa[0]+aa,qi=Sa[1]+La;A.call(Bs.setTranslate,ko,qi),d("x",Of(n,aa,"x",l,r)),d("y",Of(i,La,"y",l,r)),r.axref===r.xref&&d("ax",Of(n,aa,"ax",l,r)),r.ayref===r.yref&&d("ay",Of(i,La,"ay",l,r)),Rt.attr("transform",h9(aa,La)),x.attr({transform:"rotate("+b+","+ko+","+qi+")"})},doneFn:function(){v9.call("_guiRelayout",e,m());var aa=document.querySelector(".js-notes-box-panel");aa&&aa.redraw(aa.selectedObj)}})}}};if(r.showarrow&&Cr(0,0),_){var cr;Id.init({element:A.node(),gd:e,prepFn:function(){cr=x.attr("transform")},moveFn:function(Xr,Kr){var Fr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Of(n,Xr,"ax",l,r)):d("ax",r.ax+Xr),r.ayref===r.yref?d("ay",Of(i,Kr,"ay",l.w,r)):d("ay",r.ay+Kr),Cr(Xr,Kr);else{if(a)return;var Wr,Me;if(n)Wr=Of(n,Xr,"x",l,r);else{var Re=r._xsize/l.w,ur=r.x+(r._xshift-r.xshift)/l.w-Re/2;Wr=Id.align(ur+Xr/l.w,Re,0,1,r.xanchor)}if(i)Me=Of(i,Kr,"y",l,r);else{var gr=r._ysize/l.h,Nt=r.y-(r._yshift+r.yshift)/l.h-gr/2;Me=Id.align(Nt-Kr/l.h,gr,0,1,r.yanchor)}d("x",Wr),d("y",Me),(!n||!i)&&(Fr=Id.getCursor(n?.5:Wr,i?.5:Me,r.xanchor,r.yanchor))}x.attr({transform:h9(Xr,Kr)+cr}),p9(A,Fr)},clickFn:function(Xr,Kr){r.captureevents&&e.emit("plotly_clickannotation",T(Kr))},doneFn:function(){p9(A),v9.call("_guiRelayout",e,m());var Xr=document.querySelector(".js-notes-box-panel");Xr&&Xr.redraw(Xr.selectedObj)}})}}u.annotationText?Q.call(d9.makeEditable,{delegate:A,gd:e}).call(ne).on("edit",function(ee){r.text=ee,this.call(ne),d("text",ee),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),v9.call("_guiRelayout",e,m())}):Q.call(ne)}});var $N=ae((s5e,JN)=>{"use strict";var XN=mr(),x0e=bt(),WN=Ta().arrayEditor;JN.exports={hasClickToShow:w0e,onClick:M0e};function w0e(e,r){var t=ZN(e,r);return t.on.length>0||t.explicitOff.length>0}function M0e(e,r){var t=ZN(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,u;if(a.length||n.length){for(l=0;l<a.length;l++)u=WN(e.layout,"annotations",o[a[l]]),u.modifyItem("visible",!0),XN.extendFlat(i,u.getUpdateObj());for(l=0;l<n.length;l++)u=WN(e.layout,"annotations",o[n[l]]),u.modifyItem("visible",!1),XN.extendFlat(i,u.getUpdateObj());return x0e.call("update",e,{},i)}}function ZN(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,u,s,f,c,h,d,m;for(l=0;l<t.length;l++)if(s=t[l],f=s.clicktoshow,f){for(u=0;u<o;u++)if(c=r[u],h=c.xaxis,d=c.yaxis,h._id===s.xref&&d._id===s.yref&&h.d2r(c.x)===jN(s._xclick,h)&&d.d2r(c.y)===jN(s._yclick,d)){s.visible?f==="onout"?m=n:m=i:m=a,m.push(l);break}u===o&&s.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function jN(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var g9=ae((f5e,KN)=>{"use strict";var m9=mr(),bv=Ft();KN.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=bv.opacity(o);n("borderpad");var u=n("borderwidth"),s=n("showarrow");n("text",s?" ":a._dfltTitle.annotation),n("textangle"),m9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),s){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:bv.defaultLine),n("arrowwidth",(l&&u||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),p=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",p.bgcolor||(bv.opacity(i)?bv.rgb(i):bv.defaultLine)),b=n("hoverlabel.bordercolor",p.bordercolor||bv.contrast(y)),C=m9.extendFlat({},p.font);C.color||(C.color=b),m9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!m)}});var eB=ae((c5e,QN)=>{"use strict";var y9=mr(),Mc=Ba(),A0e=Bl(),T0e=g9(),k0e=fv();QN.exports=function(r,t){A0e(r,t,{name:"annotations",handleItemDefaults:C0e})};function C0e(e,r,t){function a(x,_){return y9.coerce(e,r,k0e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){T0e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],h=Mc.coerceRef(e,r,s,c,"","paper");if(h!=="paper"){var d=Mc.getFromId(s,h);d._annIndices.push(r._index)}if(Mc.coercePosition(r,s,a,h,c,.5),o){var m="a"+c,p=Mc.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?u[f]:.4;Mc.coercePosition(r,s,a,p,m,y)}a(c+"anchor"),a(c+"shift")}if(y9.noneOrAll(e,r,["x","y"]),o&&y9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),C=a("yclick");r._xclick=b===void 0?r.x:Mc.cleanPosition(b,s,r.xref),r._yclick=C===void 0?r.y:Mc.cleanPosition(C,s,r.yref)}}}});var aB=ae((v5e,tB)=>{"use strict";var b9=mr(),Ac=Ba(),S0e=a3().draw;tB.exports=function(r){var t=r._fullLayout,a=b9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return b9.syncOrAsync([S0e,E0e],r)};function E0e(e){var r=e._fullLayout;b9.filterVisible(r.annotations).forEach(function(t){var a=Ac.getFromId(e,t.xref),n=Ac.getFromId(e,t.yref),i=Ac.getRefType(t.xref),o=Ac.getRefType(t.yref);t._extremes={},i==="range"&&rB(t,a),o==="range"&&rB(t,n)})}function rB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],u=e["_"+a+"padplus"],s=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=Ac.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),x=Ac.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(u,p),ppadminus:Math.max(s,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=Ac.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(u,h,p),ppadminus:Math.max(s,d,y)});e._extremes[t]=b}});var iB=ae((h5e,nB)=>{"use strict";var L0e=Wt(),D0e=Tp();nB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function c(d){var m=s[d],p=null;i?p=D0e(m,t.range):p=Math.pow(10,m),L0e(p)||(p=null),n(f+d,p)}for(var h=0;h<l.length;h++)s=l[h],f="annotations["+h+"].",s[u+"ref"]===t._id&&c(u),s["a"+u+"ref"]===t._id&&c("a"+u)}});var uB=ae((d5e,lB)=>{"use strict";var _9=a3(),oB=$N();lB.exports={moduleType:"component",name:"annotations",layoutAttributes:fv(),supplyLayoutDefaults:eB(),includeBasePlot:xd()("annotations"),calcAutorange:aB(),draw:_9.draw,drawOne:_9.drawOne,drawRaw:_9.drawRaw,hasClickToShow:oB.hasClickToShow,onClick:oB.onClick,convertCoords:iB()}});var n3=ae((p5e,sB)=>{"use strict";var Ca=fv(),F0e=Io().overrideAll,q0e=Ta().templatedArray;sB.exports=F0e(q0e("annotation",{visible:Ca.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ca.xanchor,xshift:Ca.xshift,yanchor:Ca.yanchor,yshift:Ca.yshift,text:Ca.text,textangle:Ca.textangle,font:Ca.font,width:Ca.width,height:Ca.height,opacity:Ca.opacity,align:Ca.align,valign:Ca.valign,bgcolor:Ca.bgcolor,bordercolor:Ca.bordercolor,borderpad:Ca.borderpad,borderwidth:Ca.borderwidth,showarrow:Ca.showarrow,arrowcolor:Ca.arrowcolor,arrowhead:Ca.arrowhead,startarrowhead:Ca.startarrowhead,arrowside:Ca.arrowside,arrowsize:Ca.arrowsize,startarrowsize:Ca.startarrowsize,arrowwidth:Ca.arrowwidth,standoff:Ca.standoff,startstandoff:Ca.startstandoff,hovertext:Ca.hovertext,hoverlabel:Ca.hoverlabel,captureevents:Ca.captureevents}),"calc","from-root")});var cB=ae((m5e,fB)=>{"use strict";var x9=mr(),P0e=Ba(),R0e=Bl(),z0e=g9(),N0e=n3();fB.exports=function(r,t,a){R0e(r,t,{name:"annotations",handleItemDefaults:B0e,fullLayout:a.fullLayout})};function B0e(e,r,t,a){function n(l,u){return x9.coerce(e,r,N0e,l,u)}function i(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],P0e.coercePosition(r,s,n,l,l,.5)}var o=n("visible");o&&(z0e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),x9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),x9.noneOrAll(e,r,["ax","ay"])))}});var pB=ae((g5e,dB)=>{"use strict";var vB=mr(),hB=Ba();dB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)I0e(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function I0e(e,r){var t=r.fullSceneLayout,a=t.domain,n=r.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},vB.extendFlat(e._xa,i),hB.setConvert(e._xa),e._xa._offset=n.l+a.x[0]*n.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*n.w*(a.x[1]-a.x[0])},e._ya={},vB.extendFlat(e._ya,i),hB.setConvert(e._ya),e._ya._offset=n.t+(1-a.y[1])*n.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*n.h*(a.y[1]-a.y[0])}}});var gB=ae((y5e,mB)=>{"use strict";function w9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function H0e(e,r){var t=w9(e.projection,w9(e.view,w9(e.model,[r[0],r[1],r[2],1])));return t}mB.exports=H0e});var bB=ae((b5e,yB)=>{"use strict";var O0e=a3().drawRaw,U0e=gB(),G0e=["x","y","z"];yB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var o=n[i],l=!1,u=0;u<3;u++){var s=G0e[u],f=o[s],c=t[s+"axis"],h=c.r2fraction(f);if(h<0||h>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=U0e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),O0e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var wB=ae((_5e,xB)=>{"use strict";var Y0e=bt(),_B=mr();xB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n3()}}},layoutAttributes:n3(),handleDefaults:cB(),includeBasePlot:V0e,convert:pB(),draw:bB()};function V0e(e,r){var t=Y0e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];a.test(o)&&(e[o].annotations||[]).length&&(_B.pushUnique(r._basePlotModules,t),_B.pushUnique(r._subplots.gl3d,o))}}});var M9=ae((M5e,kB)=>{"use strict";var x5e=Dn(),MB=vi(),AB=dc().line,X0e=Mu().dash,Xl=_n().extendFlat,W0e=Ta().templatedArray,w5e=bd(),_v=Bo(),TB=fv(),{shapeTexttemplateAttrs:j0e,templatefallbackAttrs:Z0e}=B0(),J0e=om();kB.exports=W0e("shape",{visible:Xl({},_v.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Xl({},_v.legend,{editType:"calc+arraydraw"}),legendgroup:Xl({},_v.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Xl({},_v.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:MB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Xl({},_v.legendrank,{editType:"calc+arraydraw"}),legendwidth:Xl({},_v.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Xl({},TB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Xl({},TB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Xl({},AB.color,{editType:"arraydraw"}),width:Xl({},AB.width,{editType:"calc+arraydraw"}),dash:Xl({},X0e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:j0e({},{keys:Object.keys(J0e)}),texttemplatefallback:Z0e({editType:"arraydraw"}),font:MB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var SB=ae((A5e,CB)=>{"use strict";var xv=mr(),Mo=Ba(),$0e=Bl(),K0e=M9(),Od=zf();CB.exports=function(r,t){$0e(r,t,{name:"shapes",handleItemDefaults:ece})};function Q0e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function ece(e,r,t){function a(x,_){return xv.coerce(e,r,K0e,x,_)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),xv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",u=a("type",l),s=u!=="path";s&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",M=x==="x"?c:h,T={_fullLayout:t},A,D,P,z;let B=x+"ref",X=e[B];if(Array.isArray(X)&&X.length>0){let H=Od.countDefiningCoords(u,o,x);z=Mo.coerceRefArray(e,r,T,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=Mo.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){Mo.getRefType(H)==="range"&&(A=Mo.getFromId(T,H),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(H){let V=z[H];Mo.getRefType(V)==="range"?(A=Mo.getFromId(T,V),D=Od.shapePositionToRange(A),P=Od.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(x+H+"shift")):D=P=xv.identity;let Q=x+H,ne=e[Q];if(e[Q]=D(e[Q],!0),M==="pixel"?a(Q,m[H]):Mo.coercePosition(r,T,a,V,Q,d[H]),r[Q]=P(r[Q]),e[Q]=ne,H===0&&M==="pixel"){let te=e[_];e[_]=D(e[_],!0),Mo.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=te}});else{if(Mo.getRefType(z)==="range"?(A=Mo.getFromId(T,z),A._shapeIndices.push(r._index),P=Od.rangeToShapePosition(A),D=Od.shapePositionToRange(A),s&&(A.type==="category"||A.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):D=P=xv.identity,s){let V=x+"0",I=x+"1",Q=e[V],ne=e[I];e[V]=D(e[V],!0),e[I]=D(e[I],!0),M==="pixel"?(a(V,m[0]),a(I,m[1])):(Mo.coercePosition(r,T,a,z,V,d[0]),Mo.coercePosition(r,T,a,z,I,d[1])),r[V]=P(r[V]),r[I]=P(r[I]),e[V]=Q,e[I]=ne}if(M==="pixel"){let V=e[_];e[_]=D(e[_],!0),Mo.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),s&&xv.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=u==="line",y,b;if(s&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var C=a("label.textposition",p?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Q0e(p,C)),a("label.padding"),xv.coerceFont(a,"label.font",t.font)}}});var DB=ae((T5e,LB)=>{"use strict";var rce=Ft(),EB=mr();function tce(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}LB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),EB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",rce.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),u=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||u){a("newshape.label.textangle");var s=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",tce(o,s)),a("newshape.label.padding"),EB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var BB=ae((k5e,NB)=>{"use strict";var A9=mr(),nl=Ba(),Ou=Qh(),T9=zf();NB.exports=function(r){var t=r._fullLayout,a=A9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var o,l,u=nl.getRefType(i.xref),s=nl.getRefType(i.yref);if(u==="array"){let f=FB(r,i,"x");Object.entries(f).forEach(([c,h])=>{o=nl.getFromId(r,c),i._extremes[o._id]=nl.findExtremes(o,h,qB(i))})}else i.xref!=="paper"&&u!=="domain"&&(o=nl.getFromId(r,i.xref),l=RB(o,i,Ou.paramIsX),l&&(i._extremes[o._id]=nl.findExtremes(o,l,qB(i))));if(s==="array"){let f=FB(r,i,"y");Object.entries(f).forEach(([c,h])=>{o=nl.getFromId(r,c),i._extremes[o._id]=nl.findExtremes(o,h,PB(i))})}else i.yref!=="paper"&&s!=="domain"&&(o=nl.getFromId(r,i.yref),l=RB(o,i,Ou.paramIsY),l&&(i._extremes[o._id]=nl.findExtremes(o,l,PB(i))))}};function FB(e,r,t){let a=r[t+"ref"],n=t==="x"?Ou.paramIsX:Ou.paramIsY;function i(c,h){c==="paper"||nl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ou.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let h=c[u],d=h.charAt(0),m=n[d].drawn;if(m===void 0)continue;let p=h.slice(1).match(Ou.paramRE);p&&p.length>m&&(i(a[l],p[m]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let s={};for(let c in o){let h=nl.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=T9.decodeDate(f)),s[h._id]=o[c].map(f)}}return s}function qB(e){return zB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function PB(e){return zB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function zB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var u=n?T9.extractPathCoords(n,i?Ou.paramIsY:Ou.paramIsX):[t,a],s=A9.aggNums(Math.max,null,u),f=A9.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+o:o,h=s>0?s+o:o;return{ppad:o,ppadplus:l?c:h,ppadminus:l?h:c}}else return{ppad:o}}function RB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,u=0,s=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],u=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[s(i)+l,s(o)+u];if(r.path){var c=1/0,h=-1/0,d=r.path.match(Ou.segmentRE),m,p,y,b,C;for(e.type==="date"&&(s=T9.decodeDate(s)),m=0;m<d.length;m++)p=d[m],y=t[p.charAt(0)].drawn,y!==void 0&&(b=d[m].slice(1).match(Ou.paramRE),!(!b||b.length<y)&&(C=s(b[y]),C<c&&(c=C),C>h&&(h=C)));if(h>=c)return[c,h]}}});var OB=ae((C5e,HB)=>{"use strict";var IB=V2();HB.exports={moduleType:"component",name:"shapes",layoutAttributes:M9(),supplyLayoutDefaults:SB(),supplyDrawNewShapeDefaults:DB(),includeBasePlot:xd()("shapes"),calcAutorange:BB(),draw:IB.draw,drawOne:IB.drawOne}});var k9=ae((E5e,GB)=>{"use strict";var UB=Dn(),ace=Ta().templatedArray,S5e=bd();GB.exports=ace("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",UB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",UB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var VB=ae((L5e,YB)=>{"use strict";var nce=mr(),C9=Ba(),ice=Bl(),oce=k9(),lce="images";YB.exports=function(r,t){var a={name:lce,handleItemDefaults:uce};ice(r,t,a)};function uce(e,r,t){function a(h,d){return nce.coerce(e,r,oce,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=C9.coerceRef(e,r,o,s,"paper",void 0);if(f!=="paper"){var c=C9.getFromId(o,f);c._imgIndices.push(r._index)}C9.coercePosition(r,o,a,f,s,0)}return r}});var ZB=ae((D5e,jB)=>{"use strict";var XB=Et(),sce=va(),wv=Ba(),WB=wn(),fce=W0();jB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var u=t.images[l];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){o=WB.ref2id(u.xref)+WB.ref2id(u.yref);var s=t._plots[o];if(!s){i.push(u);continue}s.mainplot&&(o=s.mainplot.id),n[o]||(n[o]=[]),n[o].push(u)}else u.layer==="above"?a.push(u):i.push(u)}var f={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function c(_){var M=XB.select(this);if(this._imgSrc!==_.source)if(M.attr("xmlns",fce.svg),!r._context.staticPlot||_.source&&_.source.slice(0,5)==="data:")M.attr("xlink:href",_.source),this._imgSrc=_.source;else{var T=new Promise(function(A){var D=new Image;this.img=D,D.setAttribute("crossOrigin","anonymous"),D.onerror=P,D.onload=function(){var z=document.createElement("canvas");z.width=this.width,z.height=this.height;var B=z.getContext("2d",{willReadFrequently:!0});B.drawImage(this,0,0);var X=z.toDataURL("image/png");M.attr("xlink:href",X),A()},M.on("error",P),D.src=_.source,this._imgSrc=_.source;function P(){M.remove(),A()}}.bind(this));r._promises.push(T)}}function h(_){var M=XB.select(this),T=wv.getFromId(r,_.xref),A=wv.getFromId(r,_.yref),D=wv.getRefType(_.xref)==="domain",P=wv.getRefType(_.yref)==="domain",z=t._size,B,X;T!==void 0?B=typeof _.xref=="string"&&D?T._length*_.sizex:Math.abs(T.l2p(_.sizex)-T.l2p(0)):B=_.sizex*z.w,A!==void 0?X=typeof _.yref=="string"&&P?A._length*_.sizey:Math.abs(A.l2p(_.sizey)-A.l2p(0)):X=_.sizey*z.h;var H=B*f.x[_.xanchor].offset,V=X*f.y[_.yanchor].offset,I=f.x[_.xanchor].sizing+f.y[_.yanchor].sizing,Q,ne;switch(T!==void 0?Q=typeof _.xref=="string"&&D?T._length*_.x+T._offset:T.r2p(_.x)+T._offset:Q=_.x*z.w+z.l,Q+=H,A!==void 0?ne=typeof _.yref=="string"&&P?A._length*(1-_.y)+A._offset:A.r2p(_.y)+A._offset:ne=z.h-_.y*z.h+z.t,ne+=V,_.sizing){case"fill":I+=" slice";break;case"stretch":I="none";break}M.attr({x:Q,y:ne,width:B,height:X,preserveAspectRatio:I,opacity:_.opacity});var te=T&&wv.getRefType(_.xref)!=="domain"?T._id:"",ee=A&&wv.getRefType(_.yref)!=="domain"?A._id:"",fe=te+ee;sce.setClipUrl(M,fe?"clip"+t._uid+fe:null,r)}function d(_){return[_.xref,_.x,_.sizex,_.yref,_.y,_.sizey].join("_")}function m(_,M){return _._index-M._index}var p=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);p.enter().append("image"),y.enter().append("image"),p.exit().remove(),y.exit().remove(),p.each(function(_){c.bind(this)(_),h.bind(this)(_)}),y.each(function(_){c.bind(this)(_),h.bind(this)(_)}),p.sort(m),y.sort(m);var b=Object.keys(t._plots);for(l=0;l<b.length;l++){o=b[l];var C=t._plots[o];if(C.imagelayer){var x=C.imagelayer.selectAll("image").data(n[o]||[],d);x.enter().append("image"),x.exit().remove(),x.each(function(_){c.bind(this)(_),h.bind(this)(_)}),x.sort(m)}}}});var KB=ae((F5e,$B)=>{"use strict";var JB=Wt(),cce=Tp();$B.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,c=0;c<l.length;c++)if(s=l[c],f="images["+c+"].",s[u+"ref"]===t._id){var h=s[u],d=s["size"+u],m=null,p=null;if(i){m=cce(h,t.range);var y=d/Math.pow(10,m)/2;p=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else m=Math.pow(10,h),p=m*(Math.pow(10,d/2)-Math.pow(10,-d/2));JB(m)?JB(p)||(p=null):(m=null,p=null),n(f+u,m),n(f+"size"+u,p)}}}});var eI=ae((q5e,QB)=>{"use strict";QB.exports={moduleType:"component",name:"images",layoutAttributes:k9(),supplyLayoutDefaults:VB(),includeBasePlot:xd()("images"),draw:ZB(),convertCoords:KB()}});var i3=ae((P5e,rI)=>{"use strict";rI.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var S9=ae((R5e,aI)=>{"use strict";var vce=vi(),hce=Fl(),dce=_n().extendFlat,pce=Io().overrideAll,mce=lm(),tI=Ta().templatedArray,gce=tI("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});aI.exports=pce(tI("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:gce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:dce(mce({editType:"arraydraw"}),{}),font:vce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:hce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var lI=ae((z5e,oI)=>{"use strict";var o3=mr(),nI=Bl(),iI=S9(),yce=i3(),bce=yce.name,_ce=iI.buttons;oI.exports=function(r,t){var a={name:bce,handleItemDefaults:xce};nI(r,t,a)};function xce(e,r,t){function a(o,l){return o3.coerce(e,r,iI,o,l)}var n=nI(e,r,{name:"buttons",handleItemDefaults:wce}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),o3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),o3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function wce(e,r){function t(n,i){return o3.coerce(e,r,_ce,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var fI=ae((N5e,sI)=>{"use strict";sI.exports=Ua;var Wl=Et(),uI=Ft(),Mv=va(),l3=mr();function Ua(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ua.barWidth=2;Ua.barLength=20;Ua.barRadius=2;Ua.barPad=1;Ua.barColor="#808BA4";Ua.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",m=c==="right",p=c==="up",y=u,b=f,C,x,_,M;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var T=h||p;T?(C=l,x=C+y,h?(_=s,M=Math.min(_+b,o),b=M-_):(M=s+b,_=Math.max(M-b,0),b=M-_)):(_=s,M=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var A=u>y,D=Ua.barLength+2*Ua.barPad,P=Ua.barWidth+2*Ua.barPad,z=l,B=s+f;B+P>o&&(B=o-P);var X=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(uI.fill,Ua.barColor),A?(this.hbar=X.attr({rx:Ua.barRadius,ry:Ua.barRadius,x:z,y:B,width:D,height:P}),this._hbarXMin=z+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>b,V=Ua.barWidth+2*Ua.barPad,I=Ua.barLength+2*Ua.barPad,Q=l+u,ne=s;Q+V>i&&(Q=i-V);var te=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);te.exit().on(".drag",null).remove(),te.enter().append("rect").classed("scrollbar-vertical",!0).call(uI.fill,Ua.barColor),H?(this.vbar=te.attr({rx:Ua.barRadius,ry:Ua.barRadius,x:Q,y:ne,width:V,height:I}),this._vbarYMin=ne+I/2,this._vbarTranslateMax=b-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,fe=C-.5,ve=H?x+V+.5:x+.5,Ae=_-.5,Ee=A?M+P+.5:M+.5,Be=n._topdefs.selectAll("#"+ee).data(A||H?[0]:[]);if(Be.exit().remove(),Be.enter().append("clipPath").attr("id",ee).append("rect"),A||H?(this._clipRect=Be.select("rect").attr({x:Math.floor(fe),y:Math.floor(Ae),width:Math.ceil(ve)-Math.floor(fe),height:Math.ceil(Ee)-Math.floor(Ae)}),this.container.call(Mv.setClipUrl,ee,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mv.setClipUrl,null),delete this._clipRect),A||H){var Ue=Wl.behavior.drag().on("dragstart",function(){Wl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ue);var ke=Wl.behavior.drag().on("dragstart",function(){Wl.event.sourceEvent.preventDefault(),Wl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(ke),H&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};Ua.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Ua.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Wl.event.dx),this.vbar&&(t-=Wl.event.dy),this.setTranslate(r,t)};Ua.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Wl.event.deltaY),this.vbar&&(t+=Wl.event.deltaY),this.setTranslate(r,t)};Ua.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=l3.constrain(Wl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=l3.constrain(Wl.event.y,u,s),c=(f-u)/(s-u),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Ua.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=l3.constrain(r||0,0,a),t=l3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Mv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Mv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Mv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var _I=ae((B5e,bI)=>{"use strict";var Av=Et(),Ud=Mn(),Gd=Ft(),Tv=va(),Ao=mr(),u3=ai(),Mce=Ta().arrayEditor,vI=ti().LINE_SPACING,pt=i3(),Ace=fI();bI.exports=function(r){var t=r._fullLayout,a=Ao.filterVisible(t[pt.name]);function n(h){Ud.autoMargin(r,gI(h))}var i=t._menulayer.selectAll("g."+pt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(pt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Av.select(this).selectAll("g."+pt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+pt.headerGroupClassName).data(a,Tce);o.enter().append("g").classed(pt.headerGroupClassName,!0);for(var l=Ao.ensureSingle(i,"g",pt.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u<a.length;u++){var s=a[u];Dce(r,s)}var f="updatemenus"+t._uid,c=new Ace(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(L9)),o.exit().each(function(h){l.call(L9),n(h)}).remove(),o.each(function(h){var d=Av.select(this),m=h.type==="dropdown"?l:null;Ud.manageCommandObserver(r,h,h.buttons,function(p){E9(r,h,h.buttons[p.index],d,m,c,p.index,!0)}),h.type==="dropdown"?(dI(r,d,l,c,h),hI(l,h)&&Yd(r,d,l,c,h)):Yd(r,d,null,null,h)})}};function Tce(e){return e._index}function kce(e){return+e.attr(pt.menuIndexAttrName)==-1}function hI(e,r){return+e.attr(pt.menuIndexAttrName)===r._index}function E9(e,r,t,a,n,i,o,l){r.active=o,Mce(e.layout,pt.name,r).applyUpdate("active",o),r.type==="buttons"?Yd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(pt.menuIndexAttrName,"-1"),dI(e,a,n,i,r),l||Yd(e,a,n,i,r))}function dI(e,r,t,a,n){var i=Ao.ensureSingle(r,"g",pt.headerClassName,function(h){h.style("pointer-events","all")}),o=n._dims,l=n.active,u=n.buttons[l]||pt.blankHeaderOpts,s={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call(D9,n,u,e).call(yI,n,s,f);var c=Ao.ensureSingle(r,"text",pt.headerArrowClassName,function(h){h.attr("text-anchor","end").call(Tv.font,n.font).text(pt.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-pt.arrowOffsetX+n.pad.l,y:o.headerHeight/2+pt.textOffsetY+n.pad.t}),i.on("click",function(){t.call(L9,String(hI(t,n)?-1:n._index)),Yd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(pI)}),i.on("mouseout",function(){i.call(mI,n)}),Tv.setTranslate(r,o.lx,o.ly)}function Yd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!kce(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?pt.dropdownButtonClassName:pt.buttonClassName,l=t.selectAll("g."+o).data(Ao.filterVisible(i)),u=l.enter().append("g").classed(o,!0),s=l.exit();n.type==="dropdown"?(u.attr("opacity","0").transition().attr("opacity","1"),s.transition().attr("opacity","0").remove()):s.remove();var f=0,c=0,h=n._dims,d=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(d?c=h.headerHeight+pt.gapButtonHeader:f=h.headerWidth+pt.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-pt.gapButtonHeader+pt.gapButton-h.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-pt.gapButtonHeader+pt.gapButton-h.openWidth);var m={x:h.lx+f+n.pad.l,y:h.ly+c+n.pad.t,yPad:pt.gapButton,xPad:pt.gapButton,index:0},p={l:m.x+n.borderwidth,t:m.y+n.borderwidth};l.each(function(y,b){var C=Av.select(this);C.call(D9,n,y,e).call(yI,n,m),C.on("click",function(){Av.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(E9(e,n,y,r,t,a,-1),Ud.executeAPICommand(e,y.method,y.args2)):(E9(e,n,y,r,t,a,b),Ud.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),C.on("mouseover",function(){C.call(pI)}),C.on("mouseout",function(){C.call(mI,n),l.call(cI,n)})}),l.call(cI,n),d?(p.w=Math.max(h.openWidth,h.headerWidth),p.h=m.y-p.t):(p.w=m.x-p.l,p.h=Math.max(h.openHeight,h.headerHeight)),p.direction=n.direction,a&&(l.size()?Cce(e,r,t,a,n,p):Sce(a))}function Cce(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",u=n._dims,s=n.active,f,c,h;if(l)for(c=0,h=0;h<s;h++)c+=u.heights[h]+pt.gapButton;else for(f=0,h=0;h<s;h++)f+=u.widths[h]+pt.gapButton;a.enable(i,f,c),a.hbar&&a.hbar.attr("opacity","0").transition().attr("opacity","1"),a.vbar&&a.vbar.attr("opacity","0").transition().attr("opacity","1")}function Sce(e){var r=!!e.hbar,t=!!e.vbar;r&&e.hbar.transition().attr("opacity","0").each("end",function(){r=!1,t||e.disable()}),t&&e.vbar.transition().attr("opacity","0").each("end",function(){t=!1,r||e.disable()})}function D9(e,r,t,a){e.call(Ece,r).call(Lce,r,t,a)}function Ece(e,r){var t=Ao.ensureSingle(e,"rect",pt.itemRectClassName,function(a){a.attr({rx:pt.rx,ry:pt.ry,"shape-rendering":"crispEdges"})});t.call(Gd.stroke,r.bordercolor).call(Gd.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Lce(e,r,t,a){var n=Ao.ensureSingle(e,"text",pt.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Ao.templateString(i,o)),n.call(Tv.font,r.font).text(i).call(u3.convertToTspans,a)}function cI(e,r){var t=r.active;e.each(function(a,n){var i=Av.select(this);n===t&&r.showactive&&i.select("rect."+pt.itemRectClassName).call(Gd.fill,pt.activeColor)})}function pI(e){e.select("rect."+pt.itemRectClassName).call(Gd.fill,pt.hoverColor)}function mI(e,r){e.select("rect."+pt.itemRectClassName).call(Gd.fill,r.bgcolor)}function Dce(e,r){var t=r._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=Tv.tester.selectAll("g."+pt.dropdownButtonClassName).data(Ao.filterVisible(r.buttons));a.enter().append("g").classed(pt.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var h=Av.select(this);h.call(D9,r,f,e);var d=h.select("."+pt.itemTextClassName),m=d.node()&&Tv.bBox(d.node()).width,p=Math.max(m+pt.textPadX,pt.minWidth),y=r.font.size*vI,b=u3.lineCount(d),C=Math.max(y*b,pt.minHeight)+pt.textOffsetY;C=Math.ceil(C),p=Math.ceil(p),t.widths[c]=p,t.heights[c]=C,t.height1=Math.max(t.height1,C),t.width1=Math.max(t.width1,p),n?(t.totalWidth=Math.max(t.totalWidth,p),t.openWidth=t.totalWidth,t.totalHeight+=C+pt.gapButton,t.openHeight+=C+pt.gapButton):(t.totalWidth+=p+pt.gapButton,t.openWidth+=p+pt.gapButton,t.totalHeight=Math.max(t.totalHeight,C),t.openHeight=t.totalHeight)}),n?t.totalHeight-=pt.gapButton:t.totalWidth-=pt.gapButton,t.headerWidth=t.width1+pt.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=pt.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=pt.arrowPadX),a.remove();var i=t.totalWidth+r.pad.l+r.pad.r,o=t.totalHeight+r.pad.t+r.pad.b,l=e._fullLayout._size;t.lx=l.l+l.w*r.x,t.ly=l.t+l.h*(1-r.y);var u="left";Ao.isRightAnchor(r)&&(t.lx-=i,u="right"),Ao.isCenterAnchor(r)&&(t.lx-=i/2,u="center");var s="top";Ao.isBottomAnchor(r)&&(t.ly-=o,s="bottom"),Ao.isMiddleAnchor(r)&&(t.ly-=o/2,s="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),Ud.autoMargin(e,gI(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[u]||0),r:i*({left:1,center:.5}[u]||0),b:o*({top:1,middle:.5}[s]||0),t:o*({bottom:1,middle:.5}[s]||0)})}function gI(e){return pt.autoMarginIdRoot+e._index}function yI(e,r,t,a){a=a||{};var n=e.select("."+pt.itemRectClassName),i=e.select("."+pt.itemTextClassName),o=r.borderwidth,l=t.index,u=r._dims;Tv.setTranslate(e,o+t.x,o+t.y);var s=["up","down"].indexOf(r.direction)!==-1,f=a.height||(s?u.heights[l]:u.height1);n.attr({x:0,y:0,width:a.width||(s?u.width1:u.widths[l]),height:f});var c=r.font.size*vI,h=u3.lineCount(i),d=(h-1)*c/2;u3.positionText(i,pt.textOffsetX,f/2-d+pt.textOffsetY),s?t.y+=u.heights[l]+t.yPad:t.x+=u.widths[l]+t.xPad,t.index++}function L9(e,r){e.attr(pt.menuIndexAttrName,r||"-1").selectAll("g."+pt.dropdownButtonClassName).remove()}});var wI=ae((I5e,xI)=>{"use strict";var Fce=i3();xI.exports={moduleType:"component",name:Fce.name,layoutAttributes:S9(),supplyLayoutDefaults:lI(),draw:_I()}});var Vd=ae((H5e,MI)=>{"use strict";MI.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var F9=ae((O5e,kI)=>{"use strict";var AI=vi(),qce=lm(),Pce=_n().extendDeepAll,Rce=Io().overrideAll,zce=xh(),TI=Ta().templatedArray,Tc=Vd(),Nce=TI("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});kI.exports=Rce(TI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Nce,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Pce(qce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:zce.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:AI({})},font:AI({}),activebgcolor:{valType:"color",dflt:Tc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Tc.railBgColor},bordercolor:{valType:"color",dflt:Tc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Tc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Tc.tickLength},tickcolor:{valType:"color",dflt:Tc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Tc.minorTickLength}}),"arraydraw","from-root")});var LI=ae((U5e,EI)=>{"use strict";var kv=mr(),CI=Bl(),SI=F9(),Bce=Vd(),Ice=Bce.name,Hce=SI.steps;EI.exports=function(r,t){CI(r,t,{name:Ice,handleItemDefaults:Oce})};function Oce(e,r,t){function a(c,h){return kv.coerce(e,r,SI,c,h)}for(var n=CI(e,r,{name:"steps",handleItemDefaults:Uce}),i=0,o=0;o<n.length;o++)n[o].visible&&i++;var l;if(i<2?l=r.visible=!1:l=a("visible"),!!l){r._stepCount=i;var u=r._visibleSteps=kv.filterVisible(n),s=a("active");(n[s]||{}).visible||(r.active=u[0]._index),a("x"),a("y"),kv.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),kv.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),kv.coerceFont(a,"currentvalue.font",r.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function Uce(e,r){function t(i,o){return kv.coerce(e,r,Hce,i,o)}var a;if(e.method!=="skip"&&!Array.isArray(e.args)?a=r.visible=!1:a=t("visible"),a){t("method"),t("args");var n=t("label","step-"+r._index);t("value",n),t("execute")}}});var HI=ae((G5e,II)=>{"use strict";var jl=Et(),s3=Mn(),Gf=Ft(),Zl=va(),To=mr(),Gce=To.strTranslate,Xd=ai(),Yce=Ta().arrayEditor,Ct=Vd(),R9=ti(),qI=R9.LINE_SPACING,q9=R9.FROM_TL,P9=R9.FROM_BR;II.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Vce(a,r),i=a._infolayer.selectAll("g."+Ct.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Ct.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),s3.autoMargin(r,PI(f))}if(i.exit().each(function(){jl.select(this).selectAll("g."+Ct.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Ct.groupClassName).data(n,Xce);l.enter().append("g").classed(Ct.groupClassName,!0),l.exit().each(o).remove();for(var u=0;u<n.length;u++){var s=n[u];Wce(r,s)}l.each(function(f){var c=jl.select(this);Kce(f),s3.manageCommandObserver(r,f,f._visibleSteps,function(h){var d=c.data()[0];d.active!==h.index&&(d._dragging||zI(r,c,d,h.index,!1,!0))}),jce(r,jl.select(this),f)})}};function PI(e){return Ct.autoMarginIdRoot+e._index}function Vce(e,r){for(var t=e[Ct.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function Xce(e){return e._index}function Wce(e,r){var t=Zl.tester.selectAll("g."+Ct.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Ct.labelGroupClass,!0);var a=0,n=0;t.each(function(m){var p=jl.select(this),y=RI(p,{step:m},r),b=y.node();if(b){var C=Zl.bBox(b);n=Math.max(n,C.height),a=Math.max(a,C.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Ct.railWidth,Ct.gripHeight);var o=e._fullLayout._size;i.lx=o.l+o.w*r.x,i.ly=o.t+o.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(o.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var l=i.inputAreaLength-2*Ct.stepInset,u=l/(r._stepCount-1),s=a+Ct.labelPadding;if(i.labelStride=Math.max(1,Math.ceil(s/u)),i.labelHeight=n,i.currentValueMaxWidth=0,i.currentValueHeight=0,i.currentValueTotalHeight=0,i.currentValueMaxLines=1,r.currentvalue.visible){var f=Zl.tester.append("g");t.each(function(m){var p=f3(f,r,m.label),y=p.node()&&Zl.bBox(p.node())||{width:0,height:0},b=Xd.lineCount(p);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Ct.tickOffset+r.ticklen+Ct.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";To.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),To.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var h="top";To.isBottomAnchor(r)&&(i.ly-=i.height,h="bottom"),To.isMiddleAnchor(r)&&(i.ly-=i.height/2,h="middle"),i.outerLength=Math.ceil(i.outerLength),i.height=Math.ceil(i.height),i.lx=Math.round(i.lx),i.ly=Math.round(i.ly);var d={y:r.y,b:i.height*P9[h],t:i.height*q9[h]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*q9[c],d.r=0,d.xr=r.x+r.len*P9[c]):(d.x=r.x,d.l=i.outerLength*q9[c],d.r=i.outerLength*P9[c]),s3.autoMargin(e,PI(r),d)}function jce(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(f3,t).call(e1e,t).call(Jce,t).call($ce,t).call(Qce,e,t).call(Zce,e,t);var a=t._dims;Zl.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(BI,t,!1),r.call(f3,t)}function f3(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Ct.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Ct.currentValueInset,i="left"}var o=To.ensureSingle(e,"text",Ct.labelClass,function(h){h.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var u=r.steps[r.active].label,s=r._gd._fullLayout._meta;s&&(u=To.templateString(u,s)),l+=u}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Zl.font,r.currentvalue.font).text(l).call(Xd.convertToTspans,r._gd);var f=Xd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*qI;return Xd.positionText(o,n,c),o}}function Zce(e,r,t){var a=To.ensureSingle(e,"rect",Ct.gripRectClass,function(n){n.call(NI,r,e,t).style("pointer-events","all")});a.attr({width:Ct.gripWidth,height:Ct.gripHeight,rx:Ct.gripRadius,ry:Ct.gripRadius}).call(Gf.stroke,t.bordercolor).call(Gf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function RI(e,r,t){var a=To.ensureSingle(e,"text",Ct.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=To.templateString(n,i)),a.call(Zl.font,t.font).text(n).call(Xd.convertToTspans,t._gd),a}function Jce(e,r){var t=To.ensureSingle(e,"g",Ct.labelsClass),a=r._dims,n=t.selectAll("g."+Ct.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Ct.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=jl.select(this);o.call(RI,i,r),Zl.setTranslate(o,z9(r,i.fraction),Ct.tickOffset+r.ticklen+r.font.size*qI+Ct.labelOffset+a.currentValueTotalHeight)})}function DI(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&zI(e,r,t,o,!0,n)}function zI(e,r,t,a,n,i){var o=t.active;t.active=a,Yce(e.layout,Ct.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(BI,t,i),r.call(f3,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:o}),l&&l.method&&n&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:l,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var u=r._nextMethod.step;u.method&&(u.execute&&s3.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function NI(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=jl.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var u=t.select("."+Ct.gripRectClass);jl.event.stopPropagation(),jl.event.preventDefault(),u.call(Gf.fill,l.activebgcolor);var s=FI(l,jl.mouse(a)[0]);DI(r,t,l,s,!0),l._dragging=!0;function f(){var h=i(),d=FI(h,jl.mouse(a)[0]);DI(r,t,h,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var h=i();h._dragging=!1,u.call(Gf.fill,h.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:h,step:h.steps[h.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function $ce(e,r){var t=e.selectAll("rect."+Ct.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Ct.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var o=i%a.labelStride===0,l=jl.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(Gf.fill,r.tickcolor),Zl.setTranslate(l,z9(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Ct.tickOffset:Ct.minorTickOffset)+a.currentValueTotalHeight)})}function Kce(e){var r=e._dims;r.labelSteps=[];for(var t=e._stepCount,a=0;a<t;a+=r.labelStride)r.labelSteps.push({fraction:a/(t-1),step:e._visibleSteps[a]})}function BI(e,r,t){for(var a=e.select("rect."+Ct.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=z9(r,n/(r._stepCount-1));if(!r._invokingCommand){var l=a;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Gce(o-Ct.gripWidth*.5,r._dims.currentValueTotalHeight))}}function z9(e,r){var t=e._dims;return t.inputAreaStart+Ct.stepInset+(t.inputAreaLength-2*Ct.stepInset)*Math.min(1,Math.max(0,r))}function FI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Ct.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Ct.stepInset-2*t.inputAreaStart)))}function Qce(e,r,t){var a=t._dims,n=To.ensureSingle(e,"rect",Ct.railTouchRectClass,function(i){i.call(NI,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Ct.tickOffset+t.ticklen+a.labelHeight)}).call(Gf.fill,t.bgcolor).attr("opacity",0),Zl.setTranslate(n,0,a.currentValueTotalHeight)}function e1e(e,r){var t=r._dims,a=t.inputAreaLength-Ct.railInset*2,n=To.ensureSingle(e,"rect",Ct.railRectClass);n.attr({width:a,height:Ct.railWidth,rx:Ct.railRadius,ry:Ct.railRadius,"shape-rendering":"crispEdges"}).call(Gf.stroke,r.bordercolor).call(Gf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Zl.setTranslate(n,Ct.railInset,(t.inputAreaWidth-Ct.railWidth)*.5+t.currentValueTotalHeight)}});var UI=ae((Y5e,OI)=>{"use strict";var r1e=Vd();OI.exports={moduleType:"component",name:r1e.name,layoutAttributes:F9(),supplyLayoutDefaults:LI(),draw:HI()}});var c3=ae((V5e,YI)=>{"use strict";var GI=Fl();YI.exports={bgcolor:{valType:"color",dflt:GI.background,editType:"plot"},bordercolor:{valType:"color",dflt:GI.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var N9=ae((X5e,VI)=>{"use strict";VI.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var v3=ae((W5e,XI)=>{"use strict";XI.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var ZI=ae(d3=>{"use strict";var t1e=wn(),a1e=ai(),WI=v3(),n1e=ti().LINE_SPACING,h3=WI.name;function jI(e){var r=e&&e[h3];return r&&r.visible}d3.isVisible=jI;d3.makeData=function(e){for(var r=t1e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(jI(i)){a.push(i);var o=i[h3];o._id=h3+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};d3.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[h3],n=r._id.charAt(0),i=0,o=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){o=1.5*r.title.font.size+10+a._offsetShift;var l=(r.title.text.match(a1e.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*n1e}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:WI.extraPad+a._offsetShift*2}}});var QI=ae((Z5e,KI)=>{"use strict";var p3=mr(),JI=Ta(),$I=wn(),i1e=c3(),o1e=N9();KI.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;p3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=JI.newContainer(i,"rangeslider");function u(M,T){return p3.coerce(o,l,i1e,M,T)}var s,f;function c(M,T){return p3.coerce(s,f,o1e,M,T)}var h=u("visible");if(h){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!i.isValidRange(o.range)),u("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===$I.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),p=p3.simpleMap(m,$I.id2name),y=0;y<p.length;y++){var b=p[y];s=o[b]||{},f=JI.newContainer(l,b,"yaxis");var C=t[b],x;s.range&&C.isValidRange(s.range)&&(x="fixed");var _=c("rangemode",x);_!=="match"&&c("range",C.range.slice())}l._input=o}}});var rH=ae((J5e,eH)=>{"use strict";var l1e=wn().list,u1e=Ef().getAutoRange,s1e=v3();eH.exports=function(r){for(var t=l1e(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[s1e.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=u1e(r,n))}}});var iH=ae(($5e,nH)=>{"use strict";var m3=Et(),f1e=bt(),c1e=Mn(),en=mr(),g3=en.strTranslate,aH=va(),Yf=Ft(),v1e=Bh(),h1e=f9(),B9=wn(),d1e=Yo(),p1e=Df(),Pt=v3();nH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Pt.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Pt.containerClassName).data(t,i);o.exit().each(function(l){var u=l[Pt.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Pt.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var u=m3.select(this),s=l[Pt.name],f=r[B9.id2name(l.anchor)],c=s[B9.id2name(l.anchor)];if(s.range){var h=en.simpleMap(s.range,l.r2l),d=en.simpleMap(l.range,l.r2l),m;d[0]<d[1]?m=[Math.min(h[0],d[0]),Math.max(h[1],d[1])]:m=[Math.max(h[0],d[0]),Math.min(h[1],d[1])],s.range=s._input.range=en.simpleMap(m,l.l2r)}l.cleanRange("rangeslider.range");var p=r._size,y=l.domain;s._width=p.w*(y[1]-y[0]);var b=Math.round(p.l+p.w*y[0]),C=Math.round(p.t+p.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+s._offsetShift+Pt.extraPad);u.attr("transform",g3(b,C)),s._rl=en.simpleMap(s.range,l.r2l);var x=s._rl[0],_=s._rl[1],M=_-x;if(s.p2d=function(I){return I/s._width*M+x},s.d2p=function(I){return(I-x)/M*s._width},l.rangebreaks){var T=l.locateBreaks(x,_);if(T.length){var A,D,P=0;for(A=0;A<T.length;A++)D=T[A],P+=D.max-D.min;var z=s._width/(_-x-P),B=[-z*x];for(A=0;A<T.length;A++)D=T[A],B.push(B[B.length-1]-z*(D.max-D.min));for(s.d2p=function(I){for(var Q=B[0],ne=0;ne<T.length;ne++){var te=T[ne];if(I>=te.max)Q=B[ne+1];else if(I<te.min)break}return Q+z*I},A=0;A<T.length;A++)D=T[A],D.pmin=s.d2p(D.min),D.pmax=s.d2p(D.max);s.p2d=function(I){for(var Q=B[0],ne=0;ne<T.length;ne++){var te=T[ne];if(I>=te.pmax)Q=B[ne+1];else if(I<te.pmin)break}return(I-Q)/z}}}if(c.rangemode!=="match"){var X=f.r2l(c.range[0]),H=f.r2l(c.range[1]),V=H-X;s.d2pOppAxis=function(I){return(I-X)/V*s._height}}u.call(b1e,e,l,s).call(_1e,e,l,s).call(x1e,e,l,s).call(M1e,e,l,s,c).call(A1e,e,l,s).call(T1e,e,l,s),m1e(u,e,l,s),y1e(u,e,l,s,f,c),l.side==="bottom"&&v1e.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:C+s._height+s._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function tH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function m1e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Pt.slideBoxClassName).node(),i=e.select("rect."+Pt.grabAreaMinClassName).node(),o=e.select("rect."+Pt.grabAreaMaxClassName).node();function l(){var u=m3.event,s=u.target,f=tH(u),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=d1e.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=tH(b),x=+C-f,_,M,T;switch(s){case n:if(T="ew-resize",h+x>t._length||d+x<0)return;_=h+x,M=d+x;break;case i:if(T="col-resize",h+x>t._length)return;_=h+x,M=d;break;case o:if(T="col-resize",d+x<0)return;_=h,M=d+x;break;default:T="ew-resize",_=c,M=c+x;break}if(M<_){var A=M;M=_,_=A}a._pixelMin=_,a._pixelMax=M,p1e(m3.select(m),T),g1e(e,r,t,a)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),en.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function g1e(e,r,t,a){function n(l){return t.l2r(en.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){f1e.call("_guiRelayout",r,t._name+".range",[i,o])})}function y1e(e,r,t,a,n,i){var o=Pt.handleWidth/2;function l(b){return en.constrain(b,0,a._width)}function u(b){return en.constrain(b,0,a._height)}function s(b){return en.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Pt.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Pt.maskMinClassName).attr("width",f),e.select("rect."+Pt.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var h=a._height-u(a.d2pOppAxis(n._rl[1])),d=a._height-u(a.d2pOppAxis(n._rl[0]));e.select("rect."+Pt.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",c-f),e.select("rect."+Pt.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Pt.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(s(f-o))-m,y=Math.round(s(c-o))+m;e.select("g."+Pt.grabberMinClassName).attr("transform",g3(p,m)),e.select("g."+Pt.grabberMaxClassName).attr("transform",g3(y,m))}function b1e(e,r,t,a){var n=en.ensureSingle(e,"rect",Pt.bgClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=aH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:g3(o,o),"stroke-width":l}).call(Yf.stroke,a.bordercolor).call(Yf.fill,a.bgcolor)}function _1e(e,r,t,a){var n=r._fullLayout,i=en.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function x1e(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Pt.rangePlotClassName).data(t._subplotsWith,en.identity);i.enter().append("g").attr("class",function(l){return Pt.rangePlotClassName+" "+l}).call(aH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,u){var s=m3.select(this),f=u===0,c=B9.getFromId(r,l,"y"),h=c._name,d=a[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:a.range.slice(),calendar:t.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(m.layout[h].rangebreaks=c.rangebreaks),c1e.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:s,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),h1e.rangePlot(r,b,w1e(n,l))})}function w1e(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a],i=n[0].trace;i.xaxis+i.yaxis===r&&t.push(n)}return t}function M1e(e,r,t,a,n){var i=en.ensureSingle(e,"rect",Pt.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(Yf.fill,Pt.maskColor);var o=en.ensureSingle(e,"rect",Pt.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(Yf.fill,Pt.maskColor),n.rangemode!=="match"){var l=en.ensureSingle(e,"rect",Pt.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(Yf.fill,Pt.maskOppAxisColor);var u=en.ensureSingle(e,"rect",Pt.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",a._width).style("border-top",Pt.maskOppBorder).call(Yf.fill,Pt.maskOppAxisColor)}}function A1e(e,r,t,a){if(!r._context.staticPlot){var n=en.ensureSingle(e,"rect",Pt.slideBoxClassName,function(i){i.attr({y:0,cursor:Pt.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Pt.slideBoxFill})}}function T1e(e,r,t,a){var n=en.ensureSingle(e,"g",Pt.grabberMinClassName),i=en.ensureSingle(e,"g",Pt.grabberMaxClassName),o={x:0,width:Pt.handleWidth,rx:Pt.handleRadius,fill:Yf.background,stroke:Yf.defaultLine,"stroke-width":Pt.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},u=en.ensureSingle(n,"rect",Pt.handleMinClassName,function(d){d.attr(o)});u.attr(l);var s=en.ensureSingle(i,"rect",Pt.handleMaxClassName,function(d){d.attr(o)});s.attr(l);var f={width:Pt.grabAreaWidth,x:0,y:0,fill:Pt.grabAreaFill,cursor:r._context.staticPlot?void 0:Pt.grabAreaCursor},c=en.ensureSingle(n,"rect",Pt.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var h=en.ensureSingle(i,"rect",Pt.grabAreaMaxClassName,function(d){d.attr(f)});h.attr("height",a._height)}});var lH=ae((K5e,oH)=>{"use strict";var k1e=mr(),C1e=c3(),S1e=N9(),I9=ZI();oH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:k1e.extendFlat({},C1e,{yaxis:S1e})}}},layoutAttributes:c3(),handleDefaults:QI(),calcAutorange:rH(),draw:iH(),isVisible:I9.isVisible,makeData:I9.makeData,autoMarginOpts:I9.autoMarginOpts}});var y3=ae((Q5e,sH)=>{"use strict";var E1e=vi(),uH=Fl(),L1e=Ta().templatedArray,D1e=L1e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});sH.exports={visible:{valType:"boolean",editType:"plot"},buttons:D1e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:E1e({editType:"plot"}),bgcolor:{valType:"color",dflt:uH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:uH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var H9=ae((e6e,fH)=>{"use strict";fH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var hH=ae((r6e,vH)=>{"use strict";var b3=mr(),F1e=Ft(),q1e=Ta(),P1e=Bl(),cH=y3(),O9=H9();vH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=q1e.newContainer(t,"rangeselector");function u(d,m){return b3.coerce(o,l,cH,d,m)}var s=P1e(o,l,{name:"buttons",handleItemDefaults:R1e,calendar:i}),f=u("visible",s.length>0);if(f){var c=z1e(t,a,n);u("x",c[0]),u("y",c[1]),b3.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),b3.coerceFont(u,"font",a.font);var h=u("bgcolor");u("activecolor",F1e.contrast(h,O9.lightAmount,O9.darkAmount)),u("bordercolor"),u("borderwidth")}};function R1e(e,r,t,a){var n=a.calendar;function i(u,s){return b3.coerce(e,r,cH.buttons,u,s)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function z1e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i<a.length;i++){var o=r[a[i]].domain;o&&(n=Math.max(o[1],n))}return[e.domain[0],n+O9.yPad]}});var pH=ae((t6e,dH)=>{"use strict";var N1e=cy(),B1e=mr().titleCase;dH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=I1e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function I1e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=N1e["utc"+B1e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var u=i.offset(a,-o);l=e.l2r(+i.ceil(u));break}var s=t[1];return[l,s]}});var MH=ae((a6e,wH)=>{"use strict";var x3=Et(),H1e=bt(),O1e=Mn(),mH=Ft(),xH=va(),Is=mr(),gH=Is.strTranslate,_3=ai(),U1e=wn(),Y9=ti(),yH=Y9.LINE_SPACING,bH=Y9.FROM_TL,_H=Y9.FROM_BR,G9=H9(),G1e=pH();wH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Y1e(r),V1e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=x3.select(this),o=n,l=o.rangeselector,u=i.selectAll("g.button").data(Is.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=x3.select(this),c=G1e(o,s);s._isActive=X1e(o,s,c),f.call(U9,l,s),f.call(j1e,l,s,r),f.on("click",function(){r._dragged||H1e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(U9,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(U9,l,s)})}),J1e(r,u,l,o._name,i)})};function Y1e(e){for(var r=U1e.list(e,"x",!0),t=[],a=0;a<r.length;a++){var n=r[a];n.rangeselector&&n.rangeselector.visible&&t.push(n)}return t}function V1e(e){return e._id}function X1e(e,r,t){if(r.step==="all")return e.autorange===!0;var a=Object.keys(t);return e.range[0]===t[a[0]]&&e.range[1]===t[a[1]]}function U9(e,r,t){var a=Is.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:G9.rx,ry:G9.ry}),a.call(mH.stroke,r.bordercolor).call(mH.fill,W1e(r,t)).style("stroke-width",r.borderwidth+"px")}function W1e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function j1e(e,r,t,a){function n(o){_3.convertToTspans(o,a)}var i=Is.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(xH.font,r.font).text(Z1e(t,a._fullLayout._meta)).call(n)}function Z1e(e,r){return e.label?r?Is.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function J1e(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=x3.select(this),m=d.select(".selector-text"),p=t.font.size*yH,y=Math.max(p*_3.lineCount(m),16)+3;o=Math.max(o,y)}),r.each(function(){var d=x3.select(this),m=d.select(".selector-rect"),p=d.select(".selector-text"),y=p.node()&&xH.bBox(p.node()).width,b=t.font.size*yH,C=_3.lineCount(p),x=Math.max(y+10,G9.minButtonWidth);d.attr("transform",gH(l+i,l)),m.attr({x:0,y:0,width:x,height:o}),_3.positionText(p,x/2,o/2-(C-1)*b/2+3),i+=x+5});var u=e._fullLayout._size,s=u.l+u.w*t.x,f=u.t+u.h*(1-t.y),c="left";Is.isRightAnchor(t)&&(s-=i,c="right"),Is.isCenterAnchor(t)&&(s-=i/2,c="center");var h="top";Is.isBottomAnchor(t)&&(f-=o,h="bottom"),Is.isMiddleAnchor(t)&&(f-=o/2,h="middle"),i=Math.ceil(i),o=Math.ceil(o),s=Math.round(s),f=Math.round(f),O1e.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*bH[c],r:i*_H[c],b:o*_H[h],t:o*bH[h]}),n.attr("transform",gH(s,f))}});var TH=ae((n6e,AH)=>{"use strict";AH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:y3()}}},layoutAttributes:y3(),handleDefaults:hH(),draw:MH()}});var w3=ae(V9=>{"use strict";var kH=_n().extendFlat;V9.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:kH({},t,{}),y:kH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};V9.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l<o.columns?n=o._domains.x[l]:delete e.domain.column);var u=t("domain.row");u!==void 0&&(u<o.rows?i=o._domains.y[u]:delete e.domain.row)}var s=t("domain.x",n),f=t("domain.y",i);s[0]<s[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var DH=ae((o6e,LH)=>{"use strict";var $1e=mr(),K1e=(A1(),ei(M1)).counter,Q1e=w3().attributes,CH=Dn().idRegex,eve=Ta(),X9={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[K1e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[CH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[CH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Q1e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function M3(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function rve(e,r){var t=e.grid||{},a=M3(r,t,"x"),n=M3(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),u=o&&a!==t.xaxes&&l&&n!==t.yaxes,s,f;i?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=n.length),o&&(f=a.length));var c=eve.newContainer(r,"grid");function h(T,A){return $1e.coerce(t,c,X9,T,A)}var d=h("rows",s),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,M;u&&r._splomGridDflt&&(_=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:SH("x",h,C,_,m),y:SH("y",h,x,M,d,b)}}function SH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var u=new Array(n),s=l[0],f=(l[1]-s)/(n-o),c=f*(1-o),h=0;h<n;h++){var d=s+f*h;u[i?n-1-h:h]=[d,d+c]}return u}function tve(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,o=t.rows,l=t.columns,u=t.pattern==="independent",s,f,c,h,d,m,p,y=t._axisMap={};if(i){var b=a.subplots||[];m=t.subplots=new Array(o);var C=1;for(s=0;s<o;s++){var x=m[s]=new Array(l),_=b[s]||[];for(f=0;f<l;f++)if(u?(d=C===1?"xy":"x"+C+"y"+C,C++):d=_[f],x[f]="",n.cartesian.indexOf(d)!==-1){if(p=d.indexOf("y"),c=d.slice(0,p),h=d.slice(p),y[c]!==void 0&&y[c]!==f||y[h]!==void 0&&y[h]!==s)continue;x[f]=d,y[c]=f,y[h]=s}}}else{var M=M3(r,a,"x"),T=M3(r,a,"y");t.xaxes=EH(M,n.xaxis,l,y,"x"),t.yaxes=EH(T,n.yaxis,o,y,"y")}var A=t._anchors={},D=t.roworder==="top to bottom";for(var P in y){var z=P.charAt(0),B=t[z+"side"],X,H,V;if(B.length<8)A[P]="free";else if(z==="x"){if(B.charAt(0)==="t"===D?(X=0,H=1,V=o):(X=o-1,H=-1,V=-1),i){var I=y[P];for(s=X;s!==V;s+=H)if(d=m[s][I],!!d&&(p=d.indexOf("y"),d.slice(0,p)===P)){A[P]=d.slice(p);break}}else for(s=X;s!==V;s+=H)if(h=t.yaxes[s],n.cartesian.indexOf(P+h)!==-1){A[P]=h;break}}else if(B.charAt(0)==="l"?(X=0,H=1,V=l):(X=l-1,H=-1,V=-1),i){var Q=y[P];for(s=X;s!==V;s+=H)if(d=m[Q][s],!!d&&(p=d.indexOf("y"),d.slice(p)===P)){A[P]=d.slice(0,p);break}}else for(s=X;s!==V;s+=H)if(c=t.xaxes[s],n.cartesian.indexOf(c+P)!==-1){A[P]=c;break}}}}function EH(e,r,t,a,n){var i=new Array(t),o;function l(u,s){r.indexOf(s)!==-1&&a[s]===void 0?(i[u]=s,a[s]=u):i[u]=""}if(Array.isArray(e))for(o=0;o<t;o++)l(o,e[o]);else for(l(0,n),o=1;o<t;o++)l(o,n+(o+1));return i}LH.exports={moduleType:"component",name:"grid",schema:{layout:{grid:X9}},layoutAttributes:X9,sizeDefaults:rve,contentDefaults:tve}});var W9=ae((l6e,FH)=>{"use strict";FH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var RH=ae((u6e,PH)=>{"use strict";var qH=Wt(),ave=bt(),nve=mr(),ive=Ta(),ove=W9();PH.exports=function(e,r,t,a){var n="error_"+a.axis,i=ive.newContainer(r,n),o=e[n]||{};function l(m,p){return nve.coerce(o,i,ove,m,p)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(h,!(o.color||qH(o.thickness)||qH(o.width)))}(!a.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",ave.traceIs(r,"gl3d")?0:4))}}});var j9=ae((s6e,NH)=>{"use strict";NH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(s,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(s,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=zH(t,r.value),l=zH(t,r.valueminus);return a||r.valueminus===void 0?function(s){var f=o(s);return[f,f]}:function(s){return[l(s),o(s)]}}};function zH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var HH=ae((f6e,IH)=>{"use strict";var Z9=Wt(),lve=bt(),J9=Ba(),uve=mr(),sve=j9();IH.exports=function(r){for(var t=r.calcdata,a=0;a<t.length;a++){var n=t[a],i=n[0].trace;if(i.visible===!0&&lve.traceIs(i,"errorBarsOK")){var o=J9.getFromId(r,i.xaxis),l=J9.getFromId(r,i.yaxis);BH(n,i,o,"x"),BH(n,i,l,"y")}}};function BH(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=sve(n),u=0;u<e.length;u++){var s=e[u],f=s.i;if(f===void 0)f=u;else if(f===null)continue;var c=s[a];if(Z9(t.c2l(c))){var h=l(c,f);if(Z9(h[0])&&Z9(h[1])){var d=s[a+"s"]=c-h[0],m=s[a+"h"]=c+h[1];o.push(d,m)}}}var p=t._id,y=r._extremes[p],b=J9.findExtremes(t,o,uve.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var GH=ae((c6e,UH)=>{"use strict";var OH=Et(),Vf=Wt(),fve=va(),cve=pi();UH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,u=n&&n.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},m;c.ids&&(m=function(C){return C.id});var p=cve.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=OH.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);u&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),fve.setClipUrl(y,a.layerClipId,r),y.each(function(C){var x=OH.select(this),_=vve(C,o,l);if(!(p&&!C.vis)){var M,T=x.select("path.yerror");if(d.visible&&Vf(_.x)&&Vf(_.yh)&&Vf(_.ys)){var A=d.width;M="M"+(_.x-A)+","+_.yh+"h"+2*A+"m-"+A+",0V"+_.ys,_.noYS||(M+="m-"+A+",0h"+2*A),i=!T.size(),i?T=x.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",M)}else T.remove();var D=x.select("path.xerror");if(h.visible&&Vf(_.y)&&Vf(_.xh)&&Vf(_.xs)){var P=(h.copy_ystyle?d:h).width;M="M"+_.xh+","+(_.y-P)+"v"+2*P+"m0,-"+P+"H"+_.xs,_.noXS||(M+="m0,-"+P+"v"+2*P),i=!D.size(),i?D=x.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(D=D.transition().duration(n.duration).ease(n.easing)),D.attr("d",M)}else D.remove()}})}})};function vve(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Vf(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Vf(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var XH=ae((v6e,VH)=>{"use strict";var hve=Et(),YH=Ft();VH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=hve.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(YH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(YH.stroke,i.color)})}});var ZH=ae((h6e,jH)=>{"use strict";var Wd=mr(),WH=Io().overrideAll,jd=W9(),kc={error_x:Wd.extendFlat({},jd),error_y:Wd.extendFlat({},jd)};delete kc.error_x.copy_zstyle;delete kc.error_y.copy_zstyle;delete kc.error_y.copy_ystyle;var Zd={error_x:Wd.extendFlat({},jd),error_y:Wd.extendFlat({},jd),error_z:Wd.extendFlat({},jd)};delete Zd.error_x.copy_ystyle;delete Zd.error_y.copy_ystyle;delete Zd.error_z.copy_ystyle;delete Zd.error_z.copy_zstyle;jH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:kc,bar:kc,histogram:kc,scatter3d:WH(Zd,"calc","nested"),scattergl:WH(kc,"calc","nested")}},supplyDefaults:RH(),calc:HH(),makeComputeError:j9(),plot:GH(),style:XH(),hoverInfo:dve};function dve(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var $H=ae((d6e,JH)=>{"use strict";JH.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var iO=ae((p6e,nO)=>{"use strict";var Xf=Et(),T3=Mn(),KH=bt(),Hs=Ba(),A3=Yo(),il=mr(),$l=il.strTranslate,aO=_n().extendFlat,$9=Df(),Jl=va(),Cv=Ft(),pve=Bh(),mve=ai(),gve=Tu().flipScale,yve=o9(),bve=l9(),_ve=Nl(),Q9=ti(),QH=Q9.LINE_SPACING,eO=Q9.FROM_TL,rO=Q9.FROM_BR,Ia=$H().cn;function xve(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ia.colorbar).data(wve(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ia.colorbar,!0),t.each(function(a){var n=Xf.select(this);il.ensureSingle(n,"rect",Ia.cbbg),il.ensureSingle(n,"g",Ia.cbfills),il.ensureSingle(n,"g",Ia.cblines),il.ensureSingle(n,"g",Ia.cbaxis,function(o){o.classed(Ia.crisp,!0)}),il.ensureSingle(n,"g",Ia.cbtitleunshift,function(o){o.append("g").classed(Ia.cbtitle,!0)}),il.ensureSingle(n,"rect",Ia.cboutline);var i=Mve(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ave(n,a,e)}),t.exit().each(function(a){T3.autoMargin(e,a._id)}).remove(),t.order()}function wve(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function u(x){return aO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?gve(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(o=c[0].trace,!!o._module){var h=o._module.colorbar;if(o.visible===!0&&h)for(var d=Array.isArray(h),m=d?h:[h],p=0;p<m.length;p++){l=m[p];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=u(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,s(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var C=r._colorAxes[b];n=u(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},C[0]!=="heatmap"&&(o=C[1],l.calc=o._module.colorbar.calc),s(),a.push(n)}return a}var K9=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],tO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Mve(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,h=r.yanchor,d=r.xpad,m=r.ypad,p=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",C=r.xref==="paper",x=t._fullLayout,_=x._size,M=r._fillcolor,T=r._line,A=r.title,D=A.side,P=r._zrange||Xf.extent((typeof M=="function"?M:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},B=typeof M=="function"?M:function(){return M},X=r._levels,H=Tve(t,r,P),V=H.fill,I=H.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),ne=Q/(a?_.w:_.h),te=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),ee=te/(a?_.h:_.w),fe=C?_.w:t._fullLayout.width,ve=b?_.h:t._fullLayout.height,Ae=Math.round(a?p*fe+d:y*ve+m),Ee={center:.5,right:1}[c]||0,Be={top:1,middle:.5}[h]||0,Ue=a?p-Ee*ne:y-Be*ne,ke=a?y-Be*ee:p-Ee*ee,We=Math.round(a?ve*(1-ke):fe*ke);r._lenFrac=ee,r._thickFrac=ne,r._uFrac=Ue,r._vFrac=ke;var j=r._axis=kve(t,r,P);j.position=ne+(a?p+d/_.w:y+m/_.h);var re=["top","bottom"].indexOf(D)!==-1;if(a&&re&&(j.title.side=D,j.titlex=p+d/_.w,j.titley=ke+(A.side==="top"?ee-m/_.h:m/_.h)),!a&&!re&&(j.title.side=D,j.titley=y+m/_.h,j.titlex=ke+d/_.w),T.color&&r.tickmode==="auto"){j.tickmode="linear",j.tick0=X.start;var me=X.size,K=il.constrain(te/50,4,15)+1,$=(P[1]-P[0])/((r.nticks||K)*me);if($>1){var le=Math.pow(10,Math.floor(Math.log($)/Math.LN10));me*=le*il.roundUp($/le,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(j.tick0=0)}j.dtick=me}var we=a?m/_.h:d/_.w;j.domain=tO(K9([ke,ke+ee],we),we),j.setScale(),e.attr("transform",$l(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Ia.cbtitleunshift).attr("transform",$l(-Math.round(_.l),-Math.round(_.t))),$e=j.ticklabelposition,er=j.title.font.size,ir=e.select("."+Ia.cbaxis),sr,Pe=0,vr=0;function hr(Te,Oe){var Mr={propContainer:j,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Ia.cbtitle)},Nr=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Nr+",."+Nr+"-math-group").remove(),pve.draw(t,Te,aO(Mr,Oe||{}))}function dr(){if(a&&re||!a&&!re){var Te,Oe;D==="top"&&(Te=d+_.l+fe*p,Oe=m+_.t+ve*(1-ke-ee)+3+er*.75),D==="bottom"&&(Te=d+_.l+fe*p,Oe=m+_.t+ve*(1-ke)-3-er*.25),D==="right"&&(Oe=m+_.t+ve*y+3+er*.75,Te=d+_.l+fe*ke),hr(j._id+"title",{attributes:{x:Te,y:Oe,"text-anchor":a?"start":"middle"}})}}function Ze(){if(a&&!re||!a&&re){var Te=j.position||0,Oe=j._offset+j._length/2,Mr,Nr;if(D==="right")Nr=Oe,Mr=_.l+fe*Te+10+er*(j.showticklabels?1:.5);else if(Mr=Oe,D==="bottom"&&(Nr=_.t+ve*Te+10+($e.indexOf("inside")===-1?j.tickfont.size:0)+(j.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Qe=A.text.split("<br>").length;Nr=_.t+ve*Te+10-Q-QH*er*Qe}hr((a?"h":"v")+j._id+"title",{avoid:{selection:Xf.select(t).selectAll("g."+j._id+"tick"),side:D,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:Mr,y:Nr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function fr(){if(!a&&!re||a&&re){var Te=e.select("."+Ia.cbtitle),Oe=Te.select("text"),Mr=[-u/2,u/2],Nr=Te.select(".h"+j._id+"title-math-group").node(),Qe=15.6;Oe.node()&&(Qe=parseInt(Oe.node().style.fontSize,10)*QH);var Ie;if(Nr?(Ie=Jl.bBox(Nr),vr=Ie.width,Pe=Ie.height,Pe>Qe&&(Mr[1]-=(Pe-Qe)/2)):Oe.node()&&!Oe.classed(Ia.jsPlaceholder)&&(Ie=Jl.bBox(Oe.node()),vr=Ie.width,Pe=Ie.height),a){if(Pe){if(Pe+=5,D==="top")j.domain=tO(j.domain,Pe/_.h),Mr[1]*=-1;else{j.domain=K9(j.domain,Pe/_.h);var Xe=mve.lineCount(Oe);Mr[1]+=(1-Xe)*Qe}Te.attr("transform",$l(Mr[0],Mr[1])),j.setScale()}}else vr&&(D==="right"&&(j.domain=K9(j.domain,(vr+er/2)/_.w)),Te.attr("transform",$l(Mr[0],Mr[1])),j.setScale())}e.selectAll("."+Ia.cbfills+",."+Ia.cblines).attr("transform",a?$l(0,Math.round(_.h*(1-j.domain[1]))):$l(Math.round(_.w*j.domain[0]),0)),ir.attr("transform",a?$l(0,Math.round(-_.t)):$l(Math.round(-_.l),0));var yr=e.select("."+Ia.cbfills).selectAll("rect."+Ia.cbfill).attr("style","").data(V);yr.enter().append("rect").classed(Ia.cbfill,!0).attr("style",""),yr.exit().remove();var kr=P.map(j.c2p).map(Math.round).sort(function(Hr,tr){return Hr-tr});yr.each(function(Hr,tr){var Cr=[tr===0?P[0]:(V[tr]+V[tr-1])/2,tr===V.length-1?P[1]:(V[tr]+V[tr+1])/2].map(j.c2p).map(Math.round);a&&(Cr[1]=il.constrain(Cr[1]+(Cr[1]>Cr[0])?1:-1,kr[0],kr[1]));var cr=Xf.select(this).attr(a?"x":"y",Ae).attr(a?"y":"x",Xf.min(Cr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(Xf.max(Cr)-Xf.min(Cr),2));if(r._fillgradient)Jl.gradient(cr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Xr=B(Hr).replace("e-","");cr.attr("fill",Cv.hexString(Xr))}});var pr=e.select("."+Ia.cblines).selectAll("path."+Ia.cbline).data(T.color&&T.width?I:[]);pr.enter().append("path").classed(Ia.cbline,!0),pr.exit().remove(),pr.each(function(Hr){var tr=Ae,Cr=Math.round(j.c2p(Hr))+T.width/2%1;Xf.select(this).attr("d","M"+(a?tr+","+Cr:Cr+","+tr)+(a?"h":"v")+Q).call(Jl.lineGroupStyle,T.width,z(Hr),T.dash)}),ir.selectAll("g."+j._id+"tick,path").remove();var xr=Ae+Q+(u||0)/2-(r.ticks==="outside"?1:0),Pr=Hs.calcTicks(j),Lr=Hs.getTickSigns(j)[2];return Hs.drawTicks(t,j,{vals:j.ticks==="inside"?Hs.clipEnds(j,Pr):Pr,layer:ir,path:Hs.makeTickPath(j,xr,Lr),transFn:Hs.makeTransTickFn(j)}),Hs.drawLabels(t,j,{vals:Pr,layer:ir,transFn:Hs.makeTransTickLabelFn(j),labelFns:Hs.makeLabelFns(j,xr)})}function Dr(){var Te,Oe=Q+u/2;$e.indexOf("inside")===-1&&(Te=Jl.bBox(ir.node()),Oe+=a?Te.width:Te.height),sr=Ne.select("text");var Mr=0,Nr=a&&D==="top",Qe=!a&&D==="right",Ie=0;if(sr.node()&&!sr.classed(Ia.jsPlaceholder)){var Xe,yr=Ne.select(".h"+j._id+"title-math-group").node();yr&&(a&&re||!a&&!re)?(Te=Jl.bBox(yr),Mr=Te.width,Xe=Te.height):(Te=Jl.bBox(Ne.node()),Mr=Te.right-_.l-(a?Ae:We),Xe=Te.bottom-_.t-(a?We:Ae),!a&&D==="top"&&(Oe+=Te.height,Ie=Te.height)),Qe&&(sr.attr("transform",$l(Mr/2+er/2,0)),Mr*=2),Oe=Math.max(Oe,a?Mr:Xe)}var kr=(a?d:m)*2+Oe+s+u/2,pr=0;!a&&A.text&&h==="bottom"&&y<=0&&(pr=kr/2,kr+=pr,Ie+=pr),x._hColorbarMoveTitle=pr,x._hColorbarMoveCBTitle=Ie;var xr=s+u,Pr=(a?Ae:We)-xr/2-(a?d:0),Lr=(a?We:Ae)-(a?te:m+Ie-pr);e.select("."+Ia.cbbg).attr("x",Pr).attr("y",Lr).attr(a?"width":"height",Math.max(kr-pr,2)).attr(a?"height":"width",Math.max(te+xr,2)).call(Cv.fill,f).call(Cv.stroke,r.bordercolor).style("stroke-width",s);var Hr=Qe?Math.max(Mr-10,0):0;e.selectAll("."+Ia.cboutline).attr("x",(a?Ae:We+d)+Hr).attr("y",(a?We+m-te:Ae)+(Nr?Pe:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(te-(a?2*m+Pe:2*d+Hr),2)).call(Cv.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var tr=a?Ee*kr:0,Cr=a?0:(1-Be)*kr-Ie;if(tr=C?_.l-tr:-tr,Cr=b?_.t-Cr:-Cr,e.attr("transform",$l(tr,Cr)),!a&&(s||Cv.opacity(f)&&!Cv.equals(x.paper_bgcolor,f))){var cr=ir.selectAll("text"),Xr=cr[0].length,Kr=e.select("."+Ia.cbbg).node(),Fr=Jl.bBox(Kr),Wr=Jl.getTranslate(e),Me=2;cr.each(function(da,Kt){var mn=0,rn=Xr-1;if(Kt===mn||Kt===rn){var Un=Jl.bBox(this),Jr=Jl.getTranslate(this),ua;if(Kt===rn){var Rt=Un.right+Jr.x,pa=Fr.right+Wr.x+We-s-Me+p;ua=pa-Rt,ua>0&&(ua=0)}else if(Kt===mn){var ya=Un.left+Jr.x,ba=Fr.left+Wr.x+We+s+Me;ua=ba-ya,ua<0&&(ua=0)}ua&&(Xr<3?this.setAttribute("transform","translate("+ua+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Re={},ur=eO[c],gr=rO[c],Nt=eO[h],Gt=rO[h],na=kr-Q;a?(i==="pixels"?(Re.y=y,Re.t=te*Nt,Re.b=te*Gt):(Re.t=Re.b=0,Re.yt=y+n*Nt,Re.yb=y-n*Gt),l==="pixels"?(Re.x=p,Re.l=kr*ur,Re.r=kr*gr):(Re.l=na*ur,Re.r=na*gr,Re.xl=p-o*ur,Re.xr=p+o*gr)):(i==="pixels"?(Re.x=p,Re.l=te*ur,Re.r=te*gr):(Re.l=Re.r=0,Re.xl=p+n*ur,Re.xr=p-n*gr),l==="pixels"?(Re.y=1-y,Re.t=kr*Nt,Re.b=kr*Gt):(Re.t=na*Nt,Re.b=na*Gt,Re.yt=y-o*Nt,Re.yb=y+o*Gt));var Aa=r.y<.5?"b":"t",Bt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var jt={r:x.width-Pr-tr,l:Pr+Re.r,b:x.height-Lr-Cr,t:Lr+Re.b};C&&b?T3.autoMargin(t,r._id,Re):C?t._fullLayout._reservedMargin[r._id][Aa]=jt[Aa]:b||a?t._fullLayout._reservedMargin[r._id][Bt]=jt[Bt]:t._fullLayout._reservedMargin[r._id][Aa]=jt[Aa]}return il.syncOrAsync([T3.previousPromises,dr,fr,Ze,T3.previousPromises,Dr],t)}function Ave(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,u;A3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),$9(e)},moveFn:function(s,f){e.attr("transform",o+$l(s,f)),l=A3.align((a?r._uFrac:r._vFrac)+s/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=A3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=A3.getCursor(l,u,r.xanchor,r.yanchor);$9(e,c)},doneFn:function(){if($9(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?KH.call("_guiRestyle",t,s,r._traceIndex):KH.call("_guiRelayout",t,s)}}})}function Tve(e,r,t){var a=r._levels,n=[],i=[],o,l,u=a.end+a.size/100,s=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*s,!(s>0?o>=u:o<=u));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var h=r._filllevels;if(h)for(u=h.end+h.size/100,s=h.size,l=0;l<1e5&&(o=h.start+l*s,!(s>0?o>=u:o<=u));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(d){return d-a.size/2}),i.push(i[i.length-1]+a.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(i=[0]);return a.size<0&&(n.reverse(),i.reverse()),{line:n,fill:i}}function kve(e,r,t){var a=e._fullLayout,n=r.orientation==="v",i={type:"linear",range:t,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,ticklabelposition:r.ticklabelposition,ticklabeloverflow:r.ticklabeloverflow,ticklabelstep:r.ticklabelstep,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,showline:!0,anchor:"free",side:n?"right":"bottom",position:1},o=n?"y":"x",l={type:"linear",_id:o+r._id},u={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function s(f,c){return il.coerce(i,l,_ve,f,c)}return yve(i,l,s,u,a),bve(i,l,s,u),l}nO.exports={draw:xve}});var lO=ae((m6e,oO)=>{"use strict";oO.exports={moduleType:"component",name:"colorbar",attributes:Bm(),supplyDefaults:Q5(),draw:iO().draw,hasColorbar:U5()}});var sO=ae((g6e,uO)=>{"use strict";uO.exports={moduleType:"component",name:"legend",layoutAttributes:j6(),supplyLayoutDefaults:J6(),draw:cb(),style:lb()}});var cO=ae((y6e,fO)=>{"use strict";fO.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var hO=ae((b6e,vO)=>{"use strict";vO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var r8=ae((_6e,gO)=>{"use strict";var Cve=bt(),mO=mr(),e8=mO.extendFlat,dO=mO.extendDeep;function pO(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Sve(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}gO.exports=function(r,t){var a,n=r.data,i=r.layout,o=dO([],n),l=dO({},i,pO(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(a=0;a<s.length;a++)Sve(s[a])&&(l[s[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),Cve.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var h={};for(t.tileClass==="thumbnail"&&(h={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),e8(d.xaxis,h),e8(d.yaxis,h),e8(d.zaxis,h),d._scene=null}}var m=document.createElement("div");t.tileClass&&(m.className=t.tileClass);var p={gd:m,td:m,layout:l,data:o,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(p.config.setBackground=t.setBackground||"opaque"),p.gd.defaultLayout=pO(t.tileClass),p}});var _O=ae((x6e,bO)=>{"use strict";var Eve=km().EventEmitter,Lve=bt(),Dve=mr(),yO=pc(),Fve=r8(),qve=Lg(),Pve=Dg();function Rve(e,r){var t=new Eve,a=Fve(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=yO.getDelay(n._fullLayout);setTimeout(function(){var u=qve(n),s=document.createElement("canvas");s.id=Dve.randstr(),t=Pve({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=yO.getRedrawFunc(n);return Lve.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}bO.exports=Rve});var MO=ae((w6e,wO)=>{"use strict";var xO=pc(),zve={getDelay:xO.getDelay,getRedrawFunc:xO.getRedrawFunc,clone:r8(),toSVG:Lg(),svgToImg:Dg(),toImage:_O(),downloadImage:D7()};wO.exports=zve});var TO=ae(Os=>{"use strict";Os.version=Jv().version;p_();ak();var Nve=bt(),Jd=Os.register=Nve.register,a8=TR(),AO=Object.keys(a8);for(k3=0;k3<AO.length;k3++)Sv=AO[k3],Sv.charAt(0)!=="_"&&(Os[Sv]=a8[Sv]),Jd({moduleType:"apiMethod",name:Sv,fn:a8[Sv]});var Sv,k3;Jd(NN());Jd([uB(),wB(),Rs(),OB(),eI(),wI(),UI(),lH(),TH(),DH(),ZH(),Gm(),lO(),sO(),Hl(),Nb()]);Jd([cO(),hO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Jd(window.PlotlyLocales),delete window.PlotlyLocales);Os.Icons=L2();var C3=Hl(),t8=Mn();Os.Plots={resize:t8.resize,graphJson:t8.graphJson,sendDataToCloud:t8.sendDataToCloud};Os.Fx={hover:C3.hover,unhover:C3.unhover,loneHover:C3.loneHover,loneUnhover:C3.loneUnhover};Os.Snapshot=MO();Os.PlotSchema=N1()});var CO=ae((A6e,kO)=>{"use strict";kO.exports=TO()});var $d=ae((T6e,FO)=>{"use strict";var{hovertemplateAttrs:Bve,texttemplateAttrs:Ive,templatefallbackAttrs:SO}=B0(),Hve=o7(),Uu=dc(),Ove=Bo(),EO=O1(),Uve=Mu().dash,Cc=_n().extendFlat,Gve=Io().overrideAll,ol=Uu.marker,LO=Uu.line,DO=ol.line;FO.exports=Gve({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:Cc({},Uu.mode,{dflt:"markers"}),text:Cc({},Uu.text,{}),texttemplate:Ive({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:SO({editType:"plot"}),hovertext:Cc({},Uu.hovertext,{}),textfont:Uu.textfont,textposition:Uu.textposition,line:{color:LO.color,width:LO.width,dash:Uve},connectgaps:Uu.connectgaps,marker:Cc({symbol:ol.symbol,opacity:ol.opacity,angle:ol.angle,angleref:Cc({},ol.angleref,{values:["previous","up","north"]}),standoff:ol.standoff,size:ol.size,sizeref:ol.sizeref,sizemin:ol.sizemin,sizemode:ol.sizemode,colorbar:ol.colorbar,line:Cc({width:DO.width,dash:DO.dash},EO("marker.line")),gradient:ol.gradient},EO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Hve(),selected:Uu.selected,unselected:Uu.unselected,hoverinfo:Cc({},Ove.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Bve(),hovertemplatefallback:SO()},"calc","nested")});var PO=ae((k6e,qO)=>{"use strict";var n8=mr(),i8=pi(),Yve=P7(),Vve=R7(),Xve=z7(),Wve=N7(),jve=$d();qO.exports=function(r,t,a,n){function i(d,m){return n8.coerce(r,t,jve,d,m)}var o=i("locations"),l;if(o&&o.length){var u=i("geojson"),s;(typeof u=="string"&&u!==""||n8.isPlainObject(u))&&(s="geojson-id");var f=i("locationmode",s);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],h=i("lat")||[];l=Math.min(c.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),i8.hasMarkers(t)&&Yve(r,t,a,n,i,{gradient:!0}),i8.hasLines(t)&&(Vve(r,t,a,n,i),i("connectgaps")),i8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Xve(r,t,n,i)),i("fill"),t.fill!=="none"&&Wve(r,t,a,i),n8.coerceSelectionMarkerOpacity(t,i)}});var NO=ae((C6e,zO)=>{"use strict";var RO=Ba();zO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=RO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=RO.tickText(o,o.c2l(l[1]),!0).text,n}});var UO=ae((S6e,OO)=>{"use strict";var o8=Wt(),BO=Oa().BADNUM,Zve=H7(),Jve=Fd(),$ve=Ig(),Kve=mr().isArrayOrTypedArray,IO=mr()._;function HO(e){return e&&typeof e=="string"}OO.exports=function(r,t){var a=Kve(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(h){return HO(h)||o8(h)}:o=HO;for(var l=0;l<n;l++){var u=i[l]={};if(a){var s=t.locations[l];u.loc=o(s)?s:null}else{var f=t.lon[l],c=t.lat[l];o8(f)&&o8(c)?u.lonlat=[+f,+c]:u.lonlat=[BO,BO]}}return Jve(i,t),Zve(r,t),$ve(i,t),n&&(i[0].t={labels:{lat:IO(r,"lat:")+" ",lon:IO(r,"lon:")+" "}}),i}});var Kd=ae(Jn=>{"use strict";Jn.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"};Jn.axesNames=["lonaxis","lataxis"];Jn.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Jn.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Jn.fitboundsIncompatible=new Set(["albers usa","craig","peirce quincuncial","satellite"]);Jn.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]}};Jn.clipPad=.001;Jn.precision=.1;Jn.landColor="#F0DC82";Jn.waterColor="#3399FF";Jn.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Jn.sphereSVG={type:"Sphere"};Jn.fillLayers={ocean:1,land:1,lakes:1};Jn.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Jn.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Jn.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Jn.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var l8=ae((S3,GO)=>{(function(e,r){typeof S3=="object"&&typeof GO!="undefined"?r(S3):(e=e||self,r(e.topojson=e.topojson||{}))})(S3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,M,T=x.scale[0],A=x.scale[1],D=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var X=2,H=z.length,V=new Array(H);for(V[0]=(_+=z[0])*T+D,V[1]=(M+=z[1])*A+P;X<H;)V[X]=z[X],++X;return V}}function a(x){var _=t(x.transform),M,T=1/0,A=T,D=-T,P=-T;function z(X){X=_(X),X[0]<T&&(T=X[0]),X[0]>D&&(D=X[0]),X[1]<A&&(A=X[1]),X[1]>P&&(P=X[1])}function B(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(B);break;case"Point":z(X.coordinates);break;case"MultiPoint":X.coordinates.forEach(z);break}}x.arcs.forEach(function(X){for(var H=-1,V=X.length,I;++H<V;)I=_(X[H],H),I[0]<T&&(T=I[0]),I[0]>D&&(D=I[0]),I[1]<A&&(A=I[1]),I[1]>P&&(P=I[1])});for(M in x.objects)B(x.objects[M]);return[T,A,D,P]}function n(x,_){for(var M,T=x.length,A=T-_;A<--T;)M=x[A],x[A++]=x[T],x[T]=M}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(M){return o(x,M)})}:o(x,_)}function o(x,_){var M=_.id,T=_.bbox,A=_.properties==null?{}:_.properties,D=l(x,_);return M==null&&T==null?{type:"Feature",properties:A,geometry:D}:T==null?{type:"Feature",id:M,properties:A,geometry:D}:{type:"Feature",id:M,bbox:T,properties:A,geometry:D}}function l(x,_){var M=t(x.transform),T=x.arcs;function A(H,V){V.length&&V.pop();for(var I=T[H<0?~H:H],Q=0,ne=I.length;Q<ne;++Q)V.push(M(I[Q],Q));H<0&&n(V,ne)}function D(H){return M(H)}function P(H){for(var V=[],I=0,Q=H.length;I<Q;++I)A(H[I],V);return V.length<2&&V.push(V[0]),V}function z(H){for(var V=P(H);V.length<4;)V.push(V[0]);return V}function B(H){return H.map(z)}function X(H){var V=H.type,I;switch(V){case"GeometryCollection":return{type:V,geometries:H.geometries.map(X)};case"Point":I=D(H.coordinates);break;case"MultiPoint":I=H.coordinates.map(D);break;case"LineString":I=P(H.arcs);break;case"MultiLineString":I=H.arcs.map(P);break;case"Polygon":I=B(H.arcs);break;case"MultiPolygon":I=H.arcs.map(B);break;default:return null}return{type:V,coordinates:I}}return X(_)}function u(x,_){var M={},T={},A={},D=[],P=-1;_.forEach(function(X,H){var V=x.arcs[X<0?~X:X],I;V.length<3&&!V[1][0]&&!V[1][1]&&(I=_[++P],_[P]=X,_[H]=I)}),_.forEach(function(X){var H=z(X),V=H[0],I=H[1],Q,ne;if(Q=A[V])if(delete A[Q.end],Q.push(X),Q.end=I,ne=T[I]){delete T[ne.start];var te=ne===Q?Q:Q.concat(ne);T[te.start=Q.start]=A[te.end=ne.end]=te}else T[Q.start]=A[Q.end]=Q;else if(Q=T[I])if(delete T[Q.start],Q.unshift(X),Q.start=V,ne=A[V]){delete A[ne.end];var ee=ne===Q?Q:ne.concat(Q);T[ee.start=ne.start]=A[ee.end=Q.end]=ee}else T[Q.start]=A[Q.end]=Q;else Q=[X],T[Q.start=V]=A[Q.end=I]=Q});function z(X){var H=x.arcs[X<0?~X:X],V=H[0],I;return x.transform?(I=[0,0],H.forEach(function(Q){I[0]+=Q[0],I[1]+=Q[1]})):I=H[H.length-1],X<0?[I,V]:[V,I]}function B(X,H){for(var V in X){var I=X[V];delete H[I.start],delete I.start,delete I.end,I.forEach(function(Q){M[Q<0?~Q:Q]=1}),D.push(I)}}return B(A,T),B(T,A),_.forEach(function(X){M[X<0?~X:X]||D.push([X])}),D}function s(x){return l(x,f.apply(this,arguments))}function f(x,_,M){var T,A,D;if(arguments.length>1)T=c(x,_,M);else for(A=0,T=new Array(D=x.arcs.length);A<D;++A)T[A]=A;return{type:"MultiLineString",arcs:u(x,T)}}function c(x,_,M){var T=[],A=[],D;function P(V){var I=V<0?~V:V;(A[I]||(A[I]=[])).push({i:V,g:D})}function z(V){V.forEach(P)}function B(V){V.forEach(z)}function X(V){V.forEach(B)}function H(V){switch(D=V,V.type){case"GeometryCollection":V.geometries.forEach(H);break;case"LineString":z(V.arcs);break;case"MultiLineString":case"Polygon":B(V.arcs);break;case"MultiPolygon":X(V.arcs);break}}return H(_),A.forEach(M==null?function(V){T.push(V[0].i)}:function(V){M(V[0].g,V[V.length-1].g)&&T.push(V[0].i)}),T}function h(x){for(var _=-1,M=x.length,T,A=x[M-1],D=0;++_<M;)T=A,A=x[_],D+=T[0]*A[1]-T[1]*A[0];return Math.abs(D)}function d(x){return l(x,m.apply(this,arguments))}function m(x,_){var M={},T=[],A=[];_.forEach(D);function D(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(D);break;case"Polygon":P(B.arcs);break;case"MultiPolygon":B.arcs.forEach(P);break}}function P(B){B.forEach(function(X){X.forEach(function(H){(M[H=H<0?~H:H]||(M[H]=[])).push(B)})}),T.push(B)}function z(B){return h(l(x,{type:"Polygon",arcs:[B]}).coordinates[0])}return T.forEach(function(B){if(!B._){var X=[],H=[B];for(B._=1,A.push(X);B=H.pop();)X.push(B),B.forEach(function(V){V.forEach(function(I){M[I<0?~I:I].forEach(function(Q){Q._||(Q._=1,H.push(Q))})})})}}),T.forEach(function(B){delete B._}),{type:"MultiPolygon",arcs:A.map(function(B){var X=[],H;if(B.forEach(function(te){te.forEach(function(ee){ee.forEach(function(fe){M[fe<0?~fe:fe].length<2&&X.push(fe)})})}),X=u(x,X),(H=X.length)>1)for(var V=1,I=z(X[0]),Q,ne;V<H;++V)(Q=z(X[V]))>I&&(ne=X[0],X[0]=X[V],X[V]=ne,I=Q);return X}).filter(function(B){return B.length>0})}}function p(x,_){for(var M=0,T=x.length;M<T;){var A=M+T>>>1;x[A]<_?M=A+1:T=A}return M}function y(x){var _={},M=x.map(function(){return[]});function T(te,ee){te.forEach(function(fe){fe<0&&(fe=~fe);var ve=_[fe];ve?ve.push(ee):_[fe]=[ee]})}function A(te,ee){te.forEach(function(fe){T(fe,ee)})}function D(te,ee){te.type==="GeometryCollection"?te.geometries.forEach(function(fe){D(fe,ee)}):te.type in P&&P[te.type](te.arcs,ee)}var P={LineString:T,MultiLineString:A,Polygon:A,MultiPolygon:function(te,ee){te.forEach(function(fe){A(fe,ee)})}};x.forEach(D);for(var z in _)for(var B=_[z],X=B.length,H=0;H<X;++H)for(var V=H+1;V<X;++V){var I=B[H],Q=B[V],ne;(ne=M[I])[z=p(ne,Q)]!==Q&&ne.splice(z,0,Q),(ne=M[Q])[z=p(ne,I)]!==I&&ne.splice(z,0,I)}return M}function b(x){if(x==null)return r;var _,M,T=x.scale[0],A=x.scale[1],D=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var X=2,H=z.length,V=new Array(H),I=Math.round((z[0]-D)/T),Q=Math.round((z[1]-P)/A);for(V[0]=I-_,_=I,V[1]=Q-M,M=Q;X<H;)V[X]=z[X],++X;return V}}function C(x,_){if(x.transform)throw new Error("already quantized");if(!_||!_.scale){if(!((P=Math.floor(_))>=2))throw new Error("n must be \u22652");B=x.bbox||a(x);var M=B[0],T=B[1],A=B[2],D=B[3],P;_={scale:[A-M?(A-M)/(P-1):1,D-T?(D-T)/(P-1):1],translate:[M,T]}}else B=x.bbox;var z=b(_),B,X,H=x.objects,V={};function I(te){return z(te)}function Q(te){var ee;switch(te.type){case"GeometryCollection":ee={type:"GeometryCollection",geometries:te.geometries.map(Q)};break;case"Point":ee={type:"Point",coordinates:I(te.coordinates)};break;case"MultiPoint":ee={type:"MultiPoint",coordinates:te.coordinates.map(I)};break;default:return te}return te.id!=null&&(ee.id=te.id),te.bbox!=null&&(ee.bbox=te.bbox),te.properties!=null&&(ee.properties=te.properties),ee}function ne(te){var ee=0,fe=1,ve=te.length,Ae,Ee=new Array(ve);for(Ee[0]=z(te[0],0);++ee<ve;)((Ae=z(te[ee],ee))[0]||Ae[1])&&(Ee[fe++]=Ae);return fe===1&&(Ee[fe++]=[0,0]),Ee.length=fe,Ee}for(X in H)V[X]=Q(H[X]);return{type:"Topology",bbox:B,transform:_,objects:V,arcs:x.arcs.map(ne)}}e.bbox=a,e.feature=i,e.merge=d,e.mergeArcs=m,e.mesh=s,e.meshArcs=f,e.neighbors=y,e.quantize=C,e.transform=t,e.untransform=b,Object.defineProperty(e,"__esModule",{value:!0})})});var E3=ae((L6e,YO)=>{"use strict";var u8=YO.exports={},Qve=Kd().locationmodeToLayer,ehe=l8().feature;u8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};u8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};u8.getTopojsonFeatures=function(e,r){var t=Qve[e.locationmode],a=r.objects[t];return ehe(r,a).features}});var VO=ae(Qd=>{"use strict";var rhe=Oa().BADNUM;Qd.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,a=[],n=[],i=0;i<e.length;i++){var o=e[i],l=o.lonlat;l[0]!==rhe?n.push(l):!t&&n.length>0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};Qd.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Qd.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t<e.length;t++)r[t]=[e[t]];return{type:"MultiPolygon",coordinates:r}};Qd.makeBlank=function(){return{type:"Point",coordinates:[]}}});var JO=ae((F6e,ZO)=>{"use strict";var f8=Object.defineProperty,the=Object.getOwnPropertyDescriptor,ahe=Object.getOwnPropertyNames,nhe=Object.prototype.hasOwnProperty,ihe=(e,r)=>{for(var t in r)f8(e,t,{get:r[t],enumerable:!0})},ohe=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ahe(r))!nhe.call(e,n)&&n!==t&&f8(e,n,{get:()=>r[n],enumerable:!(a=the(r,n))||a.enumerable});return e},lhe=e=>ohe(f8({},"__esModule",{value:!0}),e),XO={};ihe(XO,{COUNTRIES:()=>WO,byAlpha2:()=>che,byAlpha3:()=>fhe,byM49:()=>vhe,createLookup:()=>jO,lookup:()=>uhe,lookupAlpha3:()=>she,sanitize:()=>s8});ZO.exports=lhe(XO);var WO=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Nauru",aliases:["\u{1F1F3}\u{1F1F7}","naoero","pleasant island","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function s8(e){return e.normalize("NFD").replace(/[̀-ͯ]/g,"").normalize("NFC").toLowerCase().replace(/[ً-ٟ]/g,"").replace(/['‘’ʻʼʽˈ′`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-–—]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function jO(e){let r=new Map,t=new Map,a=new Map;for(let l of e)r.set(l.iso3,l),l.iso2&&t.set(l.iso2,l),l.m49&&a.set(l.m49,l);let n=new Map;for(let l of e)for(let u of[l.name,...l.aliases]){let s=s8(u),f=n.get(s);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${s}": ${f} vs ${l.iso3}`);n.set(s,l.iso3)}function i(l){if(l==null)return;let u=String(l).trim();if(!u)return;if(/^\d+$/.test(u)){let f=a.get(String(parseInt(u,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(u)){let f=t.get(u.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(u)){let f=r.get(u.toUpperCase());if(f)return f}let s=n.get(s8(u));return s===void 0?void 0:r.get(s)}function o(l){var u;return(u=i(l))==null?void 0:u.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var ep=jO(WO),uhe=ep.lookup,she=ep.lookupAlpha3,fhe=ep.byAlpha3,che=ep.byAlpha2,vhe=ep.byM49});var F3=ae(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var ro=63710088e-1,v8={centimeters:ro*100,centimetres:ro*100,degrees:360/(2*Math.PI),feet:ro*3.28084,inches:ro*39.37,kilometers:ro/1e3,kilometres:ro/1e3,meters:ro,metres:ro,miles:ro/1609.344,millimeters:ro*1e3,millimetres:ro*1e3,nauticalmiles:ro/1852,radians:1,yards:ro*1.0936},c8={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 Wf(e,r,t={}){let a={type:"Feature"};return(t.id===0||t.id)&&(a.id=t.id),t.bbox&&(a.bbox=t.bbox),a.properties=r||{},a.geometry=e,a}function hhe(e,r,t={}){switch(e){case"Point":return h8(r).geometry;case"LineString":return p8(r).geometry;case"Polygon":return d8(r).geometry;case"MultiPoint":return KO(r).geometry;case"MultiLineString":return $O(r).geometry;case"MultiPolygon":return QO(r).geometry;default:throw new Error(e+" is invalid")}}function h8(e,r,t={}){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(!L3(e[0])||!L3(e[1]))throw new Error("coordinates must contain numbers");return Wf({type:"Point",coordinates:e},r,t)}function dhe(e,r,t={}){return D3(e.map(a=>h8(a,r)),t)}function d8(e,r,t={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;i<n[n.length-1].length;i++)if(n[n.length-1][i]!==n[0][i])throw new Error("First and last Position are not equivalent.")}return Wf({type:"Polygon",coordinates:e},r,t)}function phe(e,r,t={}){return D3(e.map(a=>d8(a,r)),t)}function p8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return Wf({type:"LineString",coordinates:e},r,t)}function mhe(e,r,t={}){return D3(e.map(a=>p8(a,r)),t)}function D3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function $O(e,r,t={}){return Wf({type:"MultiLineString",coordinates:e},r,t)}function KO(e,r,t={}){return Wf({type:"MultiPoint",coordinates:e},r,t)}function QO(e,r,t={}){return Wf({type:"MultiPolygon",coordinates:e},r,t)}function ghe(e,r,t={}){return Wf({type:"GeometryCollection",geometries:e},r,t)}function yhe(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function eU(e,r="kilometers"){let t=v8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function m8(e,r="kilometers"){let t=v8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function bhe(e,r){return rU(m8(e,r))}function _he(e){let r=e%360;return r<0&&(r+=360),r}function xhe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function rU(e){return e%(2*Math.PI)*180/Math.PI}function whe(e){return e%360*Math.PI/180}function Mhe(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return eU(m8(e,r),t)}function Ahe(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=c8[r];if(!a)throw new Error("invalid original units");let n=c8[t];if(!n)throw new Error("invalid final units");return e/a*n}function L3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function The(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function khe(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(r=>{if(!L3(r))throw new Error("bbox must only contain numbers")})}function Che(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")}ga.areaFactors=c8;ga.azimuthToBearing=xhe;ga.bearingToAzimuth=_he;ga.convertArea=Ahe;ga.convertLength=Mhe;ga.degreesToRadians=whe;ga.earthRadius=ro;ga.factors=v8;ga.feature=Wf;ga.featureCollection=D3;ga.geometry=hhe;ga.geometryCollection=ghe;ga.isNumber=L3;ga.isObject=The;ga.lengthToDegrees=bhe;ga.lengthToRadians=m8;ga.lineString=p8;ga.lineStrings=mhe;ga.multiLineString=$O;ga.multiPoint=KO;ga.multiPolygon=QO;ga.point=h8;ga.points=dhe;ga.polygon=d8;ga.polygons=phe;ga.radiansToDegrees=rU;ga.radiansToLength=eU;ga.round=yhe;ga.validateBBox=khe;ga.validateId=Che});var P3=ae(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});var wi=F3();function rp(e,r,t){if(e!==null)for(var a,n,i,o,l,u,s,f=0,c=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;b<y;b++){s=m?e.features[b].geometry:p?e.geometry:e,h=s?s.type==="GeometryCollection":!1,l=h?s.geometries.length:1;for(var C=0;C<l;C++){var x=0,_=0;if(o=h?s.geometries[C]:s,o!==null){u=o.coordinates;var M=o.type;switch(f=t&&(M==="Polygon"||M==="MultiPolygon")?1:0,M){case null:break;case"Point":if(r(u,c,b,x,_)===!1)return!1;c++,x++;break;case"LineString":case"MultiPoint":for(a=0;a<u.length;a++){if(r(u[a],c,b,x,_)===!1)return!1;c++,M==="MultiPoint"&&x++}M==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(a=0;a<u.length;a++){for(n=0;n<u[a].length-f;n++){if(r(u[a][n],c,b,x,_)===!1)return!1;c++}M==="MultiLineString"&&x++,M==="Polygon"&&_++}M==="Polygon"&&x++;break;case"MultiPolygon":for(a=0;a<u.length;a++){for(_=0,n=0;n<u[a].length;n++){for(i=0;i<u[a][n].length-f;i++){if(r(u[a][n][i],c,b,x,_)===!1)return!1;c++}_++}x++}break;case"GeometryCollection":for(a=0;a<o.geometries.length;a++)if(rp(o.geometries[a],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function She(e,r,t,a){var n=t;return rp(e,function(i,o,l,u,s){o===0&&t===void 0?n=i:n=r(n,i,o,l,u,s)},a),n}function tU(e,r){var t;switch(e.type){case"FeatureCollection":for(t=0;t<e.features.length&&r(e.features[t].properties,t)!==!1;t++);break;case"Feature":r(e.properties,0);break}}function Ehe(e,r,t){var a=t;return tU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function aU(e,r){if(e.type==="Feature")r(e,0);else if(e.type==="FeatureCollection")for(var t=0;t<e.features.length&&r(e.features[t],t)!==!1;t++);}function Lhe(e,r,t){var a=t;return aU(e,function(n,i){i===0&&t===void 0?a=n:a=r(a,n,i)}),a}function Dhe(e){var r=[];return rp(e,function(t){r.push(t)}),r}function g8(e,r){var t,a,n,i,o,l,u,s,f,c,h=0,d=e.type==="FeatureCollection",m=e.type==="Feature",p=d?e.features.length:1;for(t=0;t<p;t++){for(l=d?e.features[t].geometry:m?e.geometry:e,s=d?e.features[t].properties:m?e.properties:{},f=d?e.features[t].bbox:m?e.bbox:void 0,c=d?e.features[t].id:m?e.id:void 0,u=l?l.type==="GeometryCollection":!1,o=u?l.geometries.length:1,n=0;n<o;n++){if(i=u?l.geometries[n]:l,i===null){if(r(null,h,s,f,c)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(i,h,s,f,c)===!1)return!1;break}case"GeometryCollection":{for(a=0;a<i.geometries.length;a++)if(r(i.geometries[a],h,s,f,c)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}h++}}function Fhe(e,r,t){var a=t;return g8(e,function(n,i,o,l,u){i===0&&t===void 0?a=n:a=r(a,n,i,o,l,u)}),a}function q3(e,r){g8(e,function(t,a,n,i,o){var l=t===null?null:t.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return r(wi.feature.call(void 0,t,n,{bbox:i,id:o}),a,0)===!1?!1:void 0}var u;switch(l){case"MultiPoint":u="Point";break;case"MultiLineString":u="LineString";break;case"MultiPolygon":u="Polygon";break}for(var s=0;s<t.coordinates.length;s++){var f=t.coordinates[s],c={type:u,coordinates:f};if(r(wi.feature.call(void 0,c,n),a,s)===!1)return!1}})}function qhe(e,r,t){var a=t;return q3(e,function(n,i,o){i===0&&o===0&&t===void 0?a=n:a=r(a,n,i,o)}),a}function nU(e,r){q3(e,function(t,a,n){var i=0;if(t.geometry){var o=t.geometry.type;if(!(o==="Point"||o==="MultiPoint")){var l,u=0,s=0,f=0;if(rp(t,function(c,h,d,m,p){if(l===void 0||a>u||m>s||p>f){l=c,u=a,s=m,f=p,i=0;return}var y=wi.lineString.call(void 0,[l,c],t.properties);if(r(y,a,n,p,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function Phe(e,r,t){var a=t,n=!1;return nU(e,function(i,o,l,u,s){n===!1&&t===void 0?a=i:a=r(a,i,o,l,u,s),n=!0}),a}function iU(e,r){if(!e)throw new Error("geojson is required");q3(e,function(t,a,n){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,a,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(r(wi.lineString.call(void 0,o[l],t.properties),a,n,l)===!1)return!1;break}}})}function Rhe(e,r,t){var a=t;return iU(e,function(n,i,o,l){i===0&&t===void 0?a=n:a=r(a,n,i,o,l)}),a}function zhe(e,r){if(r=r||{},!wi.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.segmentIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var u=l.coordinates;switch(l.type){case"Point":case"MultiPoint":return null;case"LineString":return i<0&&(i=u.length+i-1),wi.lineString.call(void 0,[u[i],u[i+1]],o,r);case"Polygon":return n<0&&(n=u.length+n),i<0&&(i=u[n].length+i-1),wi.lineString.call(void 0,[u[n][i],u[n][i+1]],o,r);case"MultiLineString":return a<0&&(a=u.length+a),i<0&&(i=u[a].length+i-1),wi.lineString.call(void 0,[u[a][i],u[a][i+1]],o,r);case"MultiPolygon":return a<0&&(a=u.length+a),n<0&&(n=u[a].length+n),i<0&&(i=u[a][n].length-i-1),wi.lineString.call(void 0,[u[a][n][i],u[a][n][i+1]],o,r)}throw new Error("geojson is invalid")}function Nhe(e,r){if(r=r||{},!wi.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,a=r.multiFeatureIndex||0,n=r.geometryIndex||0,i=r.coordIndex||0,o=r.properties,l;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),o=o||e.features[t].properties,l=e.features[t].geometry;break;case"Feature":o=o||e.properties,l=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":l=e;break;default:throw new Error("geojson is invalid")}if(l===null)return null;var u=l.coordinates;switch(l.type){case"Point":return wi.point.call(void 0,u,o,r);case"MultiPoint":return a<0&&(a=u.length+a),wi.point.call(void 0,u[a],o,r);case"LineString":return i<0&&(i=u.length+i),wi.point.call(void 0,u[i],o,r);case"Polygon":return n<0&&(n=u.length+n),i<0&&(i=u[n].length+i),wi.point.call(void 0,u[n][i],o,r);case"MultiLineString":return a<0&&(a=u.length+a),i<0&&(i=u[a].length+i),wi.point.call(void 0,u[a][i],o,r);case"MultiPolygon":return a<0&&(a=u.length+a),n<0&&(n=u[a].length+n),i<0&&(i=u[a][n].length-i),wi.point.call(void 0,u[a][n][i],o,r)}throw new Error("geojson is invalid")}Hn.coordAll=Dhe;Hn.coordEach=rp;Hn.coordReduce=She;Hn.featureEach=aU;Hn.featureReduce=Lhe;Hn.findPoint=Nhe;Hn.findSegment=zhe;Hn.flattenEach=q3;Hn.flattenReduce=qhe;Hn.geomEach=g8;Hn.geomReduce=Fhe;Hn.lineEach=iU;Hn.lineReduce=Rhe;Hn.propEach=tU;Hn.propReduce=Ehe;Hn.segmentEach=nU;Hn.segmentReduce=Phe});var fU=ae(R3=>{"use strict";Object.defineProperty(R3,"__esModule",{value:!0});var oU=F3(),Bhe=P3();function sU(e){return Bhe.geomReduce.call(void 0,e,(r,t)=>r+Ihe(t),0)}function Ihe(e){let r=0,t;switch(e.type){case"Polygon":return lU(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)r+=lU(e.coordinates[t]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function lU(e){let r=0;if(e&&e.length>0){r+=Math.abs(uU(e[0]));for(let t=1;t<e.length;t++)r-=Math.abs(uU(e[t]))}return r}var Hhe=oU.earthRadius*oU.earthRadius/2,y8=Math.PI/180;function uU(e){let r=e.length-1;if(r<=2)return 0;let t=0,a=0;for(;a<r;){let n=e[a],i=e[a+1===r?0:a+1],o=e[a+2>=r?(a+2)%r:a+2],l=n[0]*y8,u=i[1]*y8,s=o[0]*y8;t+=(s-l)*Math.sin(u),a++}return t*Hhe}var Ohe=sU;R3.area=sU;R3.default=Ohe});var vU=ae(z3=>{"use strict";Object.defineProperty(z3,"__esModule",{value:!0});var Uhe=F3(),Ghe=P3();function cU(e,r={}){let t=0,a=0,n=0;return Ghe.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),Uhe.point.call(void 0,[t/n,a/n],r.properties)}var Yhe=cU;z3.centroid=cU;z3.default=Yhe});var dU=ae((N3,hU)=>{(function(e,r){r(typeof N3=="object"&&typeof hU!="undefined"?N3:e.d3=e.d3||{})})(N3,(function(e){"use strict";function r(j,re){return j<re?-1:j>re?1:j>=re?0:NaN}function t(j){return j.length===1&&(j=a(j)),{left:function(re,me,K,$){for(K==null&&(K=0),$==null&&($=re.length);K<$;){var le=K+$>>>1;j(re[le],me)<0?K=le+1:$=le}return K},right:function(re,me,K,$){for(K==null&&(K=0),$==null&&($=re.length);K<$;){var le=K+$>>>1;j(re[le],me)>0?$=le:K=le+1}return K}}}function a(j){return function(re,me){return r(j(re),me)}}var n=t(r),i=n.right,o=n.left;function l(j,re){re==null&&(re=u);for(var me=0,K=j.length-1,$=j[0],le=new Array(K<0?0:K);me<K;)le[me]=re($,$=j[++me]);return le}function u(j,re){return[j,re]}function s(j,re,me){var K=j.length,$=re.length,le=new Array(K*$),we,Ne,$e,er;for(me==null&&(me=u),we=$e=0;we<K;++we)for(er=j[we],Ne=0;Ne<$;++Ne,++$e)le[$e]=me(er,re[Ne]);return le}function f(j,re){return re<j?-1:re>j?1:re>=j?0:NaN}function c(j){return j===null?NaN:+j}function h(j,re){var me=j.length,K=0,$=-1,le=0,we,Ne,$e=0;if(re==null)for(;++$<me;)isNaN(we=c(j[$]))||(Ne=we-le,le+=Ne/++K,$e+=Ne*(we-le));else for(;++$<me;)isNaN(we=c(re(j[$],$,j)))||(Ne=we-le,le+=Ne/++K,$e+=Ne*(we-le));if(K>1)return $e/(K-1)}function d(j,re){var me=h(j,re);return me&&Math.sqrt(me)}function m(j,re){var me=j.length,K=-1,$,le,we;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=we=$;++K<me;)($=j[K])!=null&&(le>$&&(le=$),we<$&&(we=$))}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=we=$;++K<me;)($=re(j[K],K,j))!=null&&(le>$&&(le=$),we<$&&(we=$));return[le,we]}var p=Array.prototype,y=p.slice,b=p.map;function C(j){return function(){return j}}function x(j){return j}function _(j,re,me){j=+j,re=+re,me=($=arguments.length)<2?(re=j,j=0,1):$<3?1:+me;for(var K=-1,$=Math.max(0,Math.ceil((re-j)/me))|0,le=new Array($);++K<$;)le[K]=j+K*me;return le}var M=Math.sqrt(50),T=Math.sqrt(10),A=Math.sqrt(2);function D(j,re,me){var K,$=-1,le,we,Ne;if(re=+re,j=+j,me=+me,j===re&&me>0)return[j];if((K=re<j)&&(le=j,j=re,re=le),(Ne=P(j,re,me))===0||!isFinite(Ne))return[];if(Ne>0)for(j=Math.ceil(j/Ne),re=Math.floor(re/Ne),we=new Array(le=Math.ceil(re-j+1));++$<le;)we[$]=(j+$)*Ne;else for(j=Math.floor(j*Ne),re=Math.ceil(re*Ne),we=new Array(le=Math.ceil(j-re+1));++$<le;)we[$]=(j-$)/Ne;return K&&we.reverse(),we}function P(j,re,me){var K=(re-j)/Math.max(0,me),$=Math.floor(Math.log(K)/Math.LN10),le=K/Math.pow(10,$);return $>=0?(le>=M?10:le>=T?5:le>=A?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(le>=M?10:le>=T?5:le>=A?2:1)}function z(j,re,me){var K=Math.abs(re-j)/Math.max(0,me),$=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),le=K/$;return le>=M?$*=10:le>=T?$*=5:le>=A&&($*=2),re<j?-$:$}function B(j){return Math.ceil(Math.log(j.length)/Math.LN2)+1}function X(){var j=x,re=m,me=B;function K($){var le,we=$.length,Ne,$e=new Array(we);for(le=0;le<we;++le)$e[le]=j($[le],le,$);var er=re($e),ir=er[0],sr=er[1],Pe=me($e,ir,sr);Array.isArray(Pe)||(Pe=z(ir,sr,Pe),Pe=_(Math.ceil(ir/Pe)*Pe,sr,Pe));for(var vr=Pe.length;Pe[0]<=ir;)Pe.shift(),--vr;for(;Pe[vr-1]>sr;)Pe.pop(),--vr;var hr=new Array(vr+1),dr;for(le=0;le<=vr;++le)dr=hr[le]=[],dr.x0=le>0?Pe[le-1]:ir,dr.x1=le<vr?Pe[le]:sr;for(le=0;le<we;++le)Ne=$e[le],ir<=Ne&&Ne<=sr&&hr[i(Pe,Ne,0,vr)].push($[le]);return hr}return K.value=function($){return arguments.length?(j=typeof $=="function"?$:C($),K):j},K.domain=function($){return arguments.length?(re=typeof $=="function"?$:C([$[0],$[1]]),K):re},K.thresholds=function($){return arguments.length?(me=typeof $=="function"?$:Array.isArray($)?C(y.call($)):C($),K):me},K}function H(j,re,me){if(me==null&&(me=c),!!(K=j.length)){if((re=+re)<=0||K<2)return+me(j[0],0,j);if(re>=1)return+me(j[K-1],K-1,j);var K,$=(K-1)*re,le=Math.floor($),we=+me(j[le],le,j),Ne=+me(j[le+1],le+1,j);return we+(Ne-we)*($-le)}}function V(j,re,me){return j=b.call(j,c).sort(r),Math.ceil((me-re)/(2*(H(j,.75)-H(j,.25))*Math.pow(j.length,-1/3)))}function I(j,re,me){return Math.ceil((me-re)/(3.5*d(j)*Math.pow(j.length,-1/3)))}function Q(j,re){var me=j.length,K=-1,$,le;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=$;++K<me;)($=j[K])!=null&&$>le&&(le=$)}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=$;++K<me;)($=re(j[K],K,j))!=null&&$>le&&(le=$);return le}function ne(j,re){var me=j.length,K=me,$=-1,le,we=0;if(re==null)for(;++$<me;)isNaN(le=c(j[$]))?--K:we+=le;else for(;++$<me;)isNaN(le=c(re(j[$],$,j)))?--K:we+=le;if(K)return we/K}function te(j,re){var me=j.length,K=-1,$,le=[];if(re==null)for(;++K<me;)isNaN($=c(j[K]))||le.push($);else for(;++K<me;)isNaN($=c(re(j[K],K,j)))||le.push($);return H(le.sort(r),.5)}function ee(j){for(var re=j.length,me,K=-1,$=0,le,we;++K<re;)$+=j[K].length;for(le=new Array($);--re>=0;)for(we=j[re],me=we.length;--me>=0;)le[--$]=we[me];return le}function fe(j,re){var me=j.length,K=-1,$,le;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=$;++K<me;)($=j[K])!=null&&le>$&&(le=$)}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=$;++K<me;)($=re(j[K],K,j))!=null&&le>$&&(le=$);return le}function ve(j,re){for(var me=re.length,K=new Array(me);me--;)K[me]=j[re[me]];return K}function Ae(j,re){if(me=j.length){var me,K=0,$=0,le,we=j[$];for(re==null&&(re=r);++K<me;)(re(le=j[K],we)<0||re(we,we)!==0)&&(we=le,$=K);if(re(we,we)===0)return $}}function Ee(j,re,me){for(var K=(me==null?j.length:me)-(re=re==null?0:+re),$,le;K;)le=Math.random()*K--|0,$=j[K+re],j[K+re]=j[le+re],j[le+re]=$;return j}function Be(j,re){var me=j.length,K=-1,$,le=0;if(re==null)for(;++K<me;)($=+j[K])&&(le+=$);else for(;++K<me;)($=+re(j[K],K,j))&&(le+=$);return le}function Ue(j){if(!(le=j.length))return[];for(var re=-1,me=fe(j,ke),K=new Array(me);++re<me;)for(var $=-1,le,we=K[re]=new Array(le);++$<le;)we[$]=j[$][re];return K}function ke(j){return j.length}function We(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=s,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=I,e.thresholdSturges=B,e.max=Q,e.mean=ne,e.median=te,e.merge=ee,e.min=fe,e.pairs=l,e.permute=ve,e.quantile=H,e.range=_,e.scan=Ae,e.shuffle=Ee,e.sum=Be,e.ticks=D,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var I3=ae((B3,pU)=>{(function(e,r){typeof B3=="object"&&typeof pU!="undefined"?r(B3,dU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(B3,(function(e,r){"use strict";function t(){return new a}function a(){this.reset()}a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(O){i(n,O,this.t),i(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new a;function i(O,J,he){var ue=O.s=J+he,xe=ue-J,He=ue-xe;O.t=J-He+(he-xe)}var o=1e-6,l=1e-12,u=Math.PI,s=u/2,f=u/4,c=u*2,h=180/u,d=u/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,M=Math.pow,T=Math.sin,A=Math.sign||function(O){return O>0?1:O<0?-1:0},D=Math.sqrt,P=Math.tan;function z(O){return O>1?0:O<-1?u:Math.acos(O)}function B(O){return O>1?s:O<-1?-s:Math.asin(O)}function X(O){return(O=T(O/2))*O}function H(){}function V(O,J){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,J)}var I={Feature:function(O,J){V(O.geometry,J)},FeatureCollection:function(O,J){for(var he=O.features,ue=-1,xe=he.length;++ue<xe;)V(he[ue].geometry,J)}},Q={Sphere:function(O,J){J.sphere()},Point:function(O,J){O=O.coordinates,J.point(O[0],O[1],O[2])},MultiPoint:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)O=he[ue],J.point(O[0],O[1],O[2])},LineString:function(O,J){ne(O.coordinates,J,0)},MultiLineString:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)ne(he[ue],J,0)},Polygon:function(O,J){te(O.coordinates,J)},MultiPolygon:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)te(he[ue],J)},GeometryCollection:function(O,J){for(var he=O.geometries,ue=-1,xe=he.length;++ue<xe;)V(he[ue],J)}};function ne(O,J,he){var ue=-1,xe=O.length-he,He;for(J.lineStart();++ue<xe;)He=O[ue],J.point(He[0],He[1],He[2]);J.lineEnd()}function te(O,J){var he=-1,ue=O.length;for(J.polygonStart();++he<ue;)ne(O[he],J,1);J.polygonEnd()}function ee(O,J){O&&I.hasOwnProperty(O.type)?I[O.type](O,J):V(O,J)}var fe=t(),ve=t(),Ae,Ee,Be,Ue,ke,We={point:H,lineStart:H,lineEnd:H,polygonStart:function(){fe.reset(),We.lineStart=j,We.lineEnd=re},polygonEnd:function(){var O=+fe;ve.add(O<0?c+O:O),this.lineStart=this.lineEnd=this.point=H},sphere:function(){ve.add(c)}};function j(){We.point=me}function re(){K(Ae,Ee)}function me(O,J){We.point=K,Ae=O,Ee=J,O*=d,J*=d,Be=O,Ue=b(J=J/2+f),ke=T(J)}function K(O,J){O*=d,J*=d,J=J/2+f;var he=O-Be,ue=he>=0?1:-1,xe=ue*he,He=b(J),je=T(J),rr=ke*je,ar=Ue*He+rr*b(xe),br=rr*ue*T(xe);fe.add(y(br,ar)),Be=O,Ue=He,ke=je}function $(O){return ve.reset(),ee(O,We),ve*2}function le(O){return[y(O[1],O[0]),B(O[2])]}function we(O){var J=O[0],he=O[1],ue=b(he);return[ue*b(J),ue*T(J),T(he)]}function Ne(O,J){return O[0]*J[0]+O[1]*J[1]+O[2]*J[2]}function $e(O,J){return[O[1]*J[2]-O[2]*J[1],O[2]*J[0]-O[0]*J[2],O[0]*J[1]-O[1]*J[0]]}function er(O,J){O[0]+=J[0],O[1]+=J[1],O[2]+=J[2]}function ir(O,J){return[O[0]*J,O[1]*J,O[2]*J]}function sr(O){var J=D(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=J,O[1]/=J,O[2]/=J}var Pe,vr,hr,dr,Ze,fr,Dr,Te,Oe=t(),Mr,Nr,Qe={point:Ie,lineStart:yr,lineEnd:kr,polygonStart:function(){Qe.point=pr,Qe.lineStart=xr,Qe.lineEnd=Pr,Oe.reset(),We.polygonStart()},polygonEnd:function(){We.polygonEnd(),Qe.point=Ie,Qe.lineStart=yr,Qe.lineEnd=kr,fe<0?(Pe=-(hr=180),vr=-(dr=90)):Oe>o?dr=90:Oe<-o&&(vr=-90),Nr[0]=Pe,Nr[1]=hr},sphere:function(){Pe=-(hr=180),vr=-(dr=90)}};function Ie(O,J){Mr.push(Nr=[Pe=O,hr=O]),J<vr&&(vr=J),J>dr&&(dr=J)}function Xe(O,J){var he=we([O*d,J*d]);if(Te){var ue=$e(Te,he),xe=[ue[1],-ue[0],0],He=$e(xe,ue);sr(He),He=le(He);var je=O-Ze,rr=je>0?1:-1,ar=He[0]*h*rr,br,Je=m(je)>180;Je^(rr*Ze<ar&&ar<rr*O)?(br=He[1]*h,br>dr&&(dr=br)):(ar=(ar+360)%360-180,Je^(rr*Ze<ar&&ar<rr*O)?(br=-He[1]*h,br<vr&&(vr=br)):(J<vr&&(vr=J),J>dr&&(dr=J))),Je?O<Ze?Lr(Pe,O)>Lr(Pe,hr)&&(hr=O):Lr(O,hr)>Lr(Pe,hr)&&(Pe=O):hr>=Pe?(O<Pe&&(Pe=O),O>hr&&(hr=O)):O>Ze?Lr(Pe,O)>Lr(Pe,hr)&&(hr=O):Lr(O,hr)>Lr(Pe,hr)&&(Pe=O)}else Mr.push(Nr=[Pe=O,hr=O]);J<vr&&(vr=J),J>dr&&(dr=J),Te=he,Ze=O}function yr(){Qe.point=Xe}function kr(){Nr[0]=Pe,Nr[1]=hr,Qe.point=Ie,Te=null}function pr(O,J){if(Te){var he=O-Ze;Oe.add(m(he)>180?he+(he>0?360:-360):he)}else fr=O,Dr=J;We.point(O,J),Xe(O,J)}function xr(){We.lineStart()}function Pr(){pr(fr,Dr),We.lineEnd(),m(Oe)>o&&(Pe=-(hr=180)),Nr[0]=Pe,Nr[1]=hr,Te=null}function Lr(O,J){return(J-=O)<0?J+360:J}function Hr(O,J){return O[0]-J[0]}function tr(O,J){return O[0]<=O[1]?O[0]<=J&&J<=O[1]:J<O[0]||O[1]<J}function Cr(O){var J,he,ue,xe,He,je,rr;if(dr=hr=-(Pe=vr=1/0),Mr=[],ee(O,Qe),he=Mr.length){for(Mr.sort(Hr),J=1,ue=Mr[0],He=[ue];J<he;++J)xe=Mr[J],tr(ue,xe[0])||tr(ue,xe[1])?(Lr(ue[0],xe[1])>Lr(ue[0],ue[1])&&(ue[1]=xe[1]),Lr(xe[0],ue[1])>Lr(ue[0],ue[1])&&(ue[0]=xe[0])):He.push(ue=xe);for(je=-1/0,he=He.length-1,J=0,ue=He[he];J<=he;ue=xe,++J)xe=He[J],(rr=Lr(ue[1],xe[0]))>je&&(je=rr,Pe=xe[0],hr=ue[1])}return Mr=Nr=null,Pe===1/0||vr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Pe,vr],[hr,dr]]}var cr,Xr,Kr,Fr,Wr,Me,Re,ur,gr,Nt,Gt,na,Aa,Bt,jt,da,Kt={sphere:H,point:mn,lineStart:Un,lineEnd:Rt,polygonStart:function(){Kt.lineStart=pa,Kt.lineEnd=ya},polygonEnd:function(){Kt.lineStart=Un,Kt.lineEnd=Rt}};function mn(O,J){O*=d,J*=d;var he=b(J);rn(he*b(O),he*T(O),T(J))}function rn(O,J,he){++cr,Kr+=(O-Kr)/cr,Fr+=(J-Fr)/cr,Wr+=(he-Wr)/cr}function Un(){Kt.point=Jr}function Jr(O,J){O*=d,J*=d;var he=b(J);Bt=he*b(O),jt=he*T(O),da=T(J),Kt.point=ua,rn(Bt,jt,da)}function ua(O,J){O*=d,J*=d;var he=b(J),ue=he*b(O),xe=he*T(O),He=T(J),je=y(D((je=jt*He-da*xe)*je+(je=da*ue-Bt*He)*je+(je=Bt*xe-jt*ue)*je),Bt*ue+jt*xe+da*He);Xr+=je,Me+=je*(Bt+(Bt=ue)),Re+=je*(jt+(jt=xe)),ur+=je*(da+(da=He)),rn(Bt,jt,da)}function Rt(){Kt.point=mn}function pa(){Kt.point=ba}function ya(){Yt(na,Aa),Kt.point=mn}function ba(O,J){na=O,Aa=J,O*=d,J*=d,Kt.point=Yt;var he=b(J);Bt=he*b(O),jt=he*T(O),da=T(J),rn(Bt,jt,da)}function Yt(O,J){O*=d,J*=d;var he=b(J),ue=he*b(O),xe=he*T(O),He=T(J),je=jt*He-da*xe,rr=da*ue-Bt*He,ar=Bt*xe-jt*ue,br=D(je*je+rr*rr+ar*ar),Je=B(br),lr=br&&-Je/br;gr+=lr*je,Nt+=lr*rr,Gt+=lr*ar,Xr+=Je,Me+=Je*(Bt+(Bt=ue)),Re+=Je*(jt+(jt=xe)),ur+=Je*(da+(da=He)),rn(Bt,jt,da)}function za(O){cr=Xr=Kr=Fr=Wr=Me=Re=ur=gr=Nt=Gt=0,ee(O,Kt);var J=gr,he=Nt,ue=Gt,xe=J*J+he*he+ue*ue;return xe<l&&(J=Me,he=Re,ue=ur,Xr<o&&(J=Kr,he=Fr,ue=Wr),xe=J*J+he*he+ue*ue,xe<l)?[NaN,NaN]:[y(he,J)*h,B(ue/D(xe))*h]}function gn(O){return function(){return O}}function ma(O,J){function he(ue,xe){return ue=O(ue,xe),J(ue[0],ue[1])}return O.invert&&J.invert&&(he.invert=function(ue,xe){return ue=J.invert(ue,xe),ue&&O.invert(ue[0],ue[1])}),he}function aa(O,J){return[m(O)>u?O+Math.round(-O/c)*c:O,J]}aa.invert=aa;function La(O,J,he){return(O%=c)?J||he?ma(ko(O),qi(J,he)):ko(O):J||he?qi(J,he):aa}function Sa(O){return function(J,he){return J+=O,[J>u?J-c:J<-u?J+c:J,he]}}function ko(O){var J=Sa(O);return J.invert=Sa(-O),J}function qi(O,J){var he=b(O),ue=T(O),xe=b(J),He=T(J);function je(rr,ar){var br=b(ar),Je=b(rr)*br,lr=T(rr)*br,nr=T(ar),Ar=nr*he+Je*ue;return[y(lr*xe-Ar*He,Je*he-nr*ue),B(Ar*xe+lr*He)]}return je.invert=function(rr,ar){var br=b(ar),Je=b(rr)*br,lr=T(rr)*br,nr=T(ar),Ar=nr*xe-lr*He;return[y(lr*xe+nr*He,Je*he+Ar*ue),B(Ar*he-Je*ue)]},je}function Xu(O){O=La(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function J(he){return he=O(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he}return J.invert=function(he){return he=O.invert(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he},J}function Ql(O,J,he,ue,xe,He){if(he){var je=b(J),rr=T(J),ar=ue*he;xe==null?(xe=J+ue*c,He=J-ar/2):(xe=ul(je,xe),He=ul(je,He),(ue>0?xe<He:xe>He)&&(xe+=ue*c));for(var br,Je=xe;ue>0?Je>He:Je<He;Je-=ar)br=le([je,-rr*b(Je),-rr*T(Je)]),O.point(br[0],br[1])}}function ul(O,J){J=we(J),J[0]-=O,sr(J);var he=z(-J[1]);return((-J[2]<0?-he:he)+c-o)%c}function Wu(){var O=gn([0,0]),J=gn(90),he=gn(6),ue,xe,He={point:je};function je(ar,br){ue.push(ar=xe(ar,br)),ar[0]*=h,ar[1]*=h}function rr(){var ar=O.apply(this,arguments),br=J.apply(this,arguments)*d,Je=he.apply(this,arguments)*d;return ue=[],xe=La(-ar[0]*d,-ar[1]*d,0).invert,Ql(He,br,Je,1),ar={type:"Polygon",coordinates:[ue]},ue=xe=null,ar}return rr.center=function(ar){return arguments.length?(O=typeof ar=="function"?ar:gn([+ar[0],+ar[1]]),rr):O},rr.radius=function(ar){return arguments.length?(J=typeof ar=="function"?ar:gn(+ar),rr):J},rr.precision=function(ar){return arguments.length?(he=typeof ar=="function"?ar:gn(+ar),rr):he},rr}function sl(){var O=[],J;return{point:function(he,ue,xe){J.push([he,ue,xe])},lineStart:function(){O.push(J=[])},lineEnd:H,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],J=null,he}}}function $a(O,J){return m(O[0]-J[0])<o&&m(O[1]-J[1])<o}function Pi(O,J,he,ue){this.x=O,this.z=J,this.o=he,this.e=ue,this.v=!1,this.n=this.p=null}function fl(O,J,he,ue,xe){var He=[],je=[],rr,ar;if(O.forEach(function(Er){if(!((ot=Er.length-1)<=0)){var ot,et=Er[0],ut=Er[ot],st;if($a(et,ut)){if(!et[2]&&!ut[2]){for(xe.lineStart(),rr=0;rr<ot;++rr)xe.point((et=Er[rr])[0],et[1]);xe.lineEnd();return}ut[0]+=2*o}He.push(st=new Pi(et,Er,null,!0)),je.push(st.o=new Pi(et,null,st,!1)),He.push(st=new Pi(ut,Er,null,!1)),je.push(st.o=new Pi(ut,null,st,!0))}}),!!He.length){for(je.sort(J),Ri(He),Ri(je),rr=0,ar=je.length;rr<ar;++rr)je[rr].e=he=!he;for(var br=He[0],Je,lr;;){for(var nr=br,Ar=!0;nr.v;)if((nr=nr.n)===br)return;Je=nr.z,xe.lineStart();do{if(nr.v=nr.o.v=!0,nr.e){if(Ar)for(rr=0,ar=Je.length;rr<ar;++rr)xe.point((lr=Je[rr])[0],lr[1]);else ue(nr.x,nr.n.x,1,xe);nr=nr.n}else{if(Ar)for(Je=nr.p.z,rr=Je.length-1;rr>=0;--rr)xe.point((lr=Je[rr])[0],lr[1]);else ue(nr.x,nr.p.x,-1,xe);nr=nr.p}nr=nr.o,Je=nr.z,Ar=!Ar}while(!nr.v);xe.lineEnd()}}}function Ri(O){if(J=O.length){for(var J,he=0,ue=O[0],xe;++he<J;)ue.n=xe=O[he],xe.p=ue,ue=xe;ue.n=xe=O[0],xe.p=ue}}var Mi=t();function eu(O){return m(O[0])<=u?O[0]:A(O[0])*((m(O[0])+u)%c-u)}function ru(O,J){var he=eu(J),ue=J[1],xe=T(ue),He=[T(he),-b(he),0],je=0,rr=0;Mi.reset(),xe===1?ue=s+o:xe===-1&&(ue=-s-o);for(var ar=0,br=O.length;ar<br;++ar)if(lr=(Je=O[ar]).length)for(var Je,lr,nr=Je[lr-1],Ar=eu(nr),Er=nr[1]/2+f,ot=T(Er),et=b(Er),ut=0;ut<lr;++ut,Ar=qr,ot=ct,et=_t,nr=st){var st=Je[ut],qr=eu(st),Ur=st[1]/2+f,ct=T(Ur),_t=b(Ur),Vt=qr-Ar,oa=Vt>=0?1:-1,Zt=oa*Vt,_a=Zt>u,Dt=ot*ct;if(Mi.add(y(Dt*oa*T(Zt),et*_t+Dt*b(Zt))),je+=_a?Vt+oa*c:Vt,_a^Ar>=he^qr>=he){var yn=$e(we(nr),we(st));sr(yn);var Ya=$e(He,yn);sr(Ya);var xa=(_a^Vt>=0?-1:1)*B(Ya[2]);(ue>xa||ue===xa&&(yn[0]||yn[1]))&&(rr+=_a^Vt>=0?1:-1)}}return(je<-o||je<o&&Mi<-o)^rr&1}function ju(O,J,he,ue){return function(xe){var He=J(xe),je=sl(),rr=J(je),ar=!1,br,Je,lr,nr={point:Ar,lineStart:ot,lineEnd:et,polygonStart:function(){nr.point=ut,nr.lineStart=st,nr.lineEnd=qr,Je=[],br=[]},polygonEnd:function(){nr.point=Ar,nr.lineStart=ot,nr.lineEnd=et,Je=r.merge(Je);var Ur=ru(br,ue);Je.length?(ar||(xe.polygonStart(),ar=!0),fl(Je,Zu,Ur,he,xe)):Ur&&(ar||(xe.polygonStart(),ar=!0),xe.lineStart(),he(null,null,1,xe),xe.lineEnd()),ar&&(xe.polygonEnd(),ar=!1),Je=br=null},sphere:function(){xe.polygonStart(),xe.lineStart(),he(null,null,1,xe),xe.lineEnd(),xe.polygonEnd()}};function Ar(Ur,ct){O(Ur,ct)&&xe.point(Ur,ct)}function Er(Ur,ct){He.point(Ur,ct)}function ot(){nr.point=Er,He.lineStart()}function et(){nr.point=Ar,He.lineEnd()}function ut(Ur,ct){lr.push([Ur,ct]),rr.point(Ur,ct)}function st(){rr.lineStart(),lr=[]}function qr(){ut(lr[0][0],lr[0][1]),rr.lineEnd();var Ur=rr.clean(),ct=je.result(),_t,Vt=ct.length,oa,Zt,_a;if(lr.pop(),br.push(lr),lr=null,!!Vt){if(Ur&1){if(Zt=ct[0],(oa=Zt.length-1)>0){for(ar||(xe.polygonStart(),ar=!0),xe.lineStart(),_t=0;_t<oa;++_t)xe.point((_a=Zt[_t])[0],_a[1]);xe.lineEnd()}return}Vt>1&&Ur&2&&ct.push(ct.pop().concat(ct.shift())),Je.push(ct.filter(tu))}}return nr}}function tu(O){return O.length>1}function Zu(O,J){return((O=O.x)[0]<0?O[1]-s-o:s-O[1])-((J=J.x)[0]<0?J[1]-s-o:s-J[1])}var it=ju(function(){return!0},lt,Or,[-u,-s]);function lt(O){var J=NaN,he=NaN,ue=NaN,xe;return{lineStart:function(){O.lineStart(),xe=1},point:function(He,je){var rr=He>0?u:-u,ar=m(He-J);m(ar-u)<o?(O.point(J,he=(he+je)/2>0?s:-s),O.point(ue,he),O.lineEnd(),O.lineStart(),O.point(rr,he),O.point(He,he),xe=0):ue!==rr&&ar>=u&&(m(J-ue)<o&&(J-=ue*o),m(He-rr)<o&&(He-=rr*o),he=Ot(J,he,He,je),O.point(ue,he),O.lineEnd(),O.lineStart(),O.point(rr,he),xe=0),O.point(J=He,he=je),ue=rr},lineEnd:function(){O.lineEnd(),J=he=NaN},clean:function(){return 2-xe}}}function Ot(O,J,he,ue){var xe,He,je=T(O-he);return m(je)>o?p((T(J)*(He=b(ue))*T(he)-T(ue)*(xe=b(J))*T(O))/(xe*He*je)):(J+ue)/2}function Or(O,J,he,ue){var xe;if(O==null)xe=he*s,ue.point(-u,xe),ue.point(0,xe),ue.point(u,xe),ue.point(u,0),ue.point(u,-xe),ue.point(0,-xe),ue.point(-u,-xe),ue.point(-u,0),ue.point(-u,xe);else if(m(O[0]-J[0])>o){var He=O[0]<J[0]?u:-u;xe=he*He/2,ue.point(-He,xe),ue.point(0,xe),ue.point(He,xe)}else ue.point(J[0],J[1])}function vn(O){var J=b(O),he=6*d,ue=J>0,xe=m(J)>o;function He(Je,lr,nr,Ar){Ql(Ar,O,he,nr,Je,lr)}function je(Je,lr){return b(Je)*b(lr)>J}function rr(Je){var lr,nr,Ar,Er,ot;return{lineStart:function(){Er=Ar=!1,ot=1},point:function(et,ut){var st=[et,ut],qr,Ur=je(et,ut),ct=ue?Ur?0:br(et,ut):Ur?br(et+(et<0?u:-u),ut):0;if(!lr&&(Er=Ar=Ur)&&Je.lineStart(),Ur!==Ar&&(qr=ar(lr,st),(!qr||$a(lr,qr)||$a(st,qr))&&(st[2]=1)),Ur!==Ar)ot=0,Ur?(Je.lineStart(),qr=ar(st,lr),Je.point(qr[0],qr[1])):(qr=ar(lr,st),Je.point(qr[0],qr[1],2),Je.lineEnd()),lr=qr;else if(xe&&lr&&ue^Ur){var _t;!(ct&nr)&&(_t=ar(st,lr,!0))&&(ot=0,ue?(Je.lineStart(),Je.point(_t[0][0],_t[0][1]),Je.point(_t[1][0],_t[1][1]),Je.lineEnd()):(Je.point(_t[1][0],_t[1][1]),Je.lineEnd(),Je.lineStart(),Je.point(_t[0][0],_t[0][1],3)))}Ur&&(!lr||!$a(lr,st))&&Je.point(st[0],st[1]),lr=st,Ar=Ur,nr=ct},lineEnd:function(){Ar&&Je.lineEnd(),lr=null},clean:function(){return ot|(Er&&Ar)<<1}}}function ar(Je,lr,nr){var Ar=we(Je),Er=we(lr),ot=[1,0,0],et=$e(Ar,Er),ut=Ne(et,et),st=et[0],qr=ut-st*st;if(!qr)return!nr&&Je;var Ur=J*ut/qr,ct=-J*st/qr,_t=$e(ot,et),Vt=ir(ot,Ur),oa=ir(et,ct);er(Vt,oa);var Zt=_t,_a=Ne(Vt,Zt),Dt=Ne(Zt,Zt),yn=_a*_a-Dt*(Ne(Vt,Vt)-1);if(!(yn<0)){var Ya=D(yn),xa=ir(Zt,(-_a-Ya)/Dt);if(er(xa,Vt),xa=le(xa),!nr)return xa;var Yr=Je[0],Xt=lr[0],Ka=Je[1],Cn=lr[1],si;Xt<Yr&&(si=Yr,Yr=Xt,Xt=si);var uo=Xt-Yr,Oi=m(uo-u)<o,Ml=Oi||uo<o;if(!Oi&&Cn<Ka&&(si=Ka,Ka=Cn,Cn=si),Ml?Oi?Ka+Cn>0^xa[1]<(m(xa[0]-Yr)<o?Ka:Cn):Ka<=xa[1]&&xa[1]<=Cn:uo>u^(Yr<=xa[0]&&xa[0]<=Xt)){var ki=ir(Zt,(-_a+Ya)/Dt);return er(ki,Vt),[xa,le(ki)]}}}function br(Je,lr){var nr=ue?O:u-O,Ar=0;return Je<-nr?Ar|=1:Je>nr&&(Ar|=2),lr<-nr?Ar|=4:lr>nr&&(Ar|=8),Ar}return ju(je,rr,He,ue?[0,-O]:[-u,O-u])}function ia(O,J,he,ue,xe,He){var je=O[0],rr=O[1],ar=J[0],br=J[1],Je=0,lr=1,nr=ar-je,Ar=br-rr,Er;if(Er=he-je,!(!nr&&Er>0)){if(Er/=nr,nr<0){if(Er<Je)return;Er<lr&&(lr=Er)}else if(nr>0){if(Er>lr)return;Er>Je&&(Je=Er)}if(Er=xe-je,!(!nr&&Er<0)){if(Er/=nr,nr<0){if(Er>lr)return;Er>Je&&(Je=Er)}else if(nr>0){if(Er<Je)return;Er<lr&&(lr=Er)}if(Er=ue-rr,!(!Ar&&Er>0)){if(Er/=Ar,Ar<0){if(Er<Je)return;Er<lr&&(lr=Er)}else if(Ar>0){if(Er>lr)return;Er>Je&&(Je=Er)}if(Er=He-rr,!(!Ar&&Er<0)){if(Er/=Ar,Ar<0){if(Er>lr)return;Er>Je&&(Je=Er)}else if(Ar>0){if(Er<Je)return;Er<lr&&(lr=Er)}return Je>0&&(O[0]=je+Je*nr,O[1]=rr+Je*Ar),lr<1&&(J[0]=je+lr*nr,J[1]=rr+lr*Ar),!0}}}}}var Ha=1e9,Ga=-Ha;function zn(O,J,he,ue){function xe(br,Je){return O<=br&&br<=he&&J<=Je&&Je<=ue}function He(br,Je,lr,nr){var Ar=0,Er=0;if(br==null||(Ar=je(br,lr))!==(Er=je(Je,lr))||ar(br,Je)<0^lr>0)do nr.point(Ar===0||Ar===3?O:he,Ar>1?ue:J);while((Ar=(Ar+lr+4)%4)!==Er);else nr.point(Je[0],Je[1])}function je(br,Je){return m(br[0]-O)<o?Je>0?0:3:m(br[0]-he)<o?Je>0?2:1:m(br[1]-J)<o?Je>0?1:0:Je>0?3:2}function rr(br,Je){return ar(br.x,Je.x)}function ar(br,Je){var lr=je(br,1),nr=je(Je,1);return lr!==nr?lr-nr:lr===0?Je[1]-br[1]:lr===1?br[0]-Je[0]:lr===2?br[1]-Je[1]:Je[0]-br[0]}return function(br){var Je=br,lr=sl(),nr,Ar,Er,ot,et,ut,st,qr,Ur,ct,_t,Vt={point:oa,lineStart:yn,lineEnd:Ya,polygonStart:_a,polygonEnd:Dt};function oa(Yr,Xt){xe(Yr,Xt)&&Je.point(Yr,Xt)}function Zt(){for(var Yr=0,Xt=0,Ka=Ar.length;Xt<Ka;++Xt)for(var Cn=Ar[Xt],si=1,uo=Cn.length,Oi=Cn[0],Ml,ki,Al=Oi[0],gu=Oi[1];si<uo;++si)Ml=Al,ki=gu,Oi=Cn[si],Al=Oi[0],gu=Oi[1],ki<=ue?gu>ue&&(Al-Ml)*(ue-ki)>(gu-ki)*(O-Ml)&&++Yr:gu<=ue&&(Al-Ml)*(ue-ki)<(gu-ki)*(O-Ml)&&--Yr;return Yr}function _a(){Je=lr,nr=[],Ar=[],_t=!0}function Dt(){var Yr=Zt(),Xt=_t&&Yr,Ka=(nr=r.merge(nr)).length;(Xt||Ka)&&(br.polygonStart(),Xt&&(br.lineStart(),He(null,null,1,br),br.lineEnd()),Ka&&fl(nr,rr,Yr,He,br),br.polygonEnd()),Je=br,nr=Ar=Er=null}function yn(){Vt.point=xa,Ar&&Ar.push(Er=[]),ct=!0,Ur=!1,st=qr=NaN}function Ya(){nr&&(xa(ot,et),ut&&Ur&&lr.rejoin(),nr.push(lr.result())),Vt.point=oa,Ur&&Je.lineEnd()}function xa(Yr,Xt){var Ka=xe(Yr,Xt);if(Ar&&Er.push([Yr,Xt]),ct)ot=Yr,et=Xt,ut=Ka,ct=!1,Ka&&(Je.lineStart(),Je.point(Yr,Xt));else if(Ka&&Ur)Je.point(Yr,Xt);else{var Cn=[st=Math.max(Ga,Math.min(Ha,st)),qr=Math.max(Ga,Math.min(Ha,qr))],si=[Yr=Math.max(Ga,Math.min(Ha,Yr)),Xt=Math.max(Ga,Math.min(Ha,Xt))];ia(Cn,si,O,J,he,ue)?(Ur||(Je.lineStart(),Je.point(Cn[0],Cn[1])),Je.point(si[0],si[1]),Ka||Je.lineEnd(),_t=!1):Ka&&(Je.lineStart(),Je.point(Yr,Xt),_t=!1)}st=Yr,qr=Xt,Ur=Ka}return Vt}}function cl(){var O=0,J=0,he=960,ue=500,xe,He,je;return je={stream:function(rr){return xe&&He===rr?xe:xe=zn(O,J,he,ue)(He=rr)},extent:function(rr){return arguments.length?(O=+rr[0][0],J=+rr[0][1],he=+rr[1][0],ue=+rr[1][1],xe=He=null,je):[[O,J],[he,ue]]}}}var au=t(),nu,zi,Co,vl={sphere:H,point:H,lineStart:iu,lineEnd:H,polygonStart:H,polygonEnd:H};function iu(){vl.point=t0,vl.lineEnd=Ju}function Ju(){vl.point=vl.lineEnd=H}function t0(O,J){O*=d,J*=d,nu=O,zi=T(J),Co=b(J),vl.point=Nc}function Nc(O,J){O*=d,J*=d;var he=T(J),ue=b(J),xe=m(O-nu),He=b(xe),je=T(xe),rr=ue*je,ar=Co*he-zi*ue*He,br=zi*he+Co*ue*He;au.add(y(D(rr*rr+ar*ar),br)),nu=O,zi=he,Co=ue}function $u(O){return au.reset(),ee(O,vl),+au}var Ku=[null,null],Qu={type:"LineString",coordinates:Ku};function hl(O,J){return Ku[0]=O,Ku[1]=J,$u(Qu)}var So={Feature:function(O,J){return to(O.geometry,J)},FeatureCollection:function(O,J){for(var he=O.features,ue=-1,xe=he.length;++ue<xe;)if(to(he[ue].geometry,J))return!0;return!1}},Eo={Sphere:function(){return!0},Point:function(O,J){return a0(O.coordinates,J)},MultiPoint:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)if(a0(he[ue],J))return!0;return!1},LineString:function(O,J){return Gs(O.coordinates,J)},MultiLineString:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)if(Gs(he[ue],J))return!0;return!1},Polygon:function(O,J){return ou(O.coordinates,J)},MultiPolygon:function(O,J){for(var he=O.coordinates,ue=-1,xe=he.length;++ue<xe;)if(ou(he[ue],J))return!0;return!1},GeometryCollection:function(O,J){for(var he=O.geometries,ue=-1,xe=he.length;++ue<xe;)if(to(he[ue],J))return!0;return!1}};function to(O,J){return O&&Eo.hasOwnProperty(O.type)?Eo[O.type](O,J):!1}function a0(O,J){return hl(O,J)===0}function Gs(O,J){for(var he,ue,xe,He=0,je=O.length;He<je;He++){if(ue=hl(O[He],J),ue===0||He>0&&(xe=hl(O[He],O[He-1]),xe>0&&he<=xe&&ue<=xe&&(he+ue-xe)*(1-Math.pow((he-ue)/xe,2))<l*xe))return!0;he=ue}return!1}function ou(O,J){return!!ru(O.map(n0),Bc(J))}function n0(O){return O=O.map(Bc),O.pop(),O}function Bc(O){return[O[0]*d,O[1]*d]}function es(O,J){return(O&&So.hasOwnProperty(O.type)?So[O.type]:to)(O,J)}function ao(O,J,he){var ue=r.range(O,J-o,he).concat(J);return function(xe){return ue.map(function(He){return[xe,He]})}}function rs(O,J,he){var ue=r.range(O,J-o,he).concat(J);return function(xe){return ue.map(function(He){return[He,xe]})}}function Ic(){var O,J,he,ue,xe,He,je,rr,ar=10,br=ar,Je=90,lr=360,nr,Ar,Er,ot,et=2.5;function ut(){return{type:"MultiLineString",coordinates:st()}}function st(){return r.range(C(ue/Je)*Je,he,Je).map(Er).concat(r.range(C(rr/lr)*lr,je,lr).map(ot)).concat(r.range(C(J/ar)*ar,O,ar).filter(function(qr){return m(qr%Je)>o}).map(nr)).concat(r.range(C(He/br)*br,xe,br).filter(function(qr){return m(qr%lr)>o}).map(Ar))}return ut.lines=function(){return st().map(function(qr){return{type:"LineString",coordinates:qr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Er(ue).concat(ot(je).slice(1),Er(he).reverse().slice(1),ot(rr).reverse().slice(1))]}},ut.extent=function(qr){return arguments.length?ut.extentMajor(qr).extentMinor(qr):ut.extentMinor()},ut.extentMajor=function(qr){return arguments.length?(ue=+qr[0][0],he=+qr[1][0],rr=+qr[0][1],je=+qr[1][1],ue>he&&(qr=ue,ue=he,he=qr),rr>je&&(qr=rr,rr=je,je=qr),ut.precision(et)):[[ue,rr],[he,je]]},ut.extentMinor=function(qr){return arguments.length?(J=+qr[0][0],O=+qr[1][0],He=+qr[0][1],xe=+qr[1][1],J>O&&(qr=J,J=O,O=qr),He>xe&&(qr=He,He=xe,xe=qr),ut.precision(et)):[[J,He],[O,xe]]},ut.step=function(qr){return arguments.length?ut.stepMajor(qr).stepMinor(qr):ut.stepMinor()},ut.stepMajor=function(qr){return arguments.length?(Je=+qr[0],lr=+qr[1],ut):[Je,lr]},ut.stepMinor=function(qr){return arguments.length?(ar=+qr[0],br=+qr[1],ut):[ar,br]},ut.precision=function(qr){return arguments.length?(et=+qr,nr=ao(He,xe,90),Ar=rs(J,O,et),Er=ao(rr,je,90),ot=rs(ue,he,et),ut):et},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ts(){return Ic()()}function Rv(O,J){var he=O[0]*d,ue=O[1]*d,xe=J[0]*d,He=J[1]*d,je=b(ue),rr=T(ue),ar=b(He),br=T(He),Je=je*b(he),lr=je*T(he),nr=ar*b(xe),Ar=ar*T(xe),Er=2*B(D(X(He-ue)+je*ar*X(xe-he))),ot=T(Er),et=Er?function(ut){var st=T(ut*=Er)/ot,qr=T(Er-ut)/ot,Ur=qr*Je+st*nr,ct=qr*lr+st*Ar,_t=qr*rr+st*br;return[y(ct,Ur)*h,y(_t,D(Ur*Ur+ct*ct))*h]}:function(){return[he*h,ue*h]};return et.distance=Er,et}function dl(O){return O}var i0=t(),lu=t(),Hc,Lo,Do,o0,Ni={point:H,lineStart:H,lineEnd:H,polygonStart:function(){Ni.lineStart=zv,Ni.lineEnd=Nv},polygonEnd:function(){Ni.lineStart=Ni.lineEnd=Ni.point=H,i0.add(m(lu)),lu.reset()},result:function(){var O=i0/2;return i0.reset(),O}};function zv(){Ni.point=no}function no(O,J){Ni.point=uu,Hc=Do=O,Lo=o0=J}function uu(O,J){lu.add(o0*O-Do*J),Do=O,o0=J}function Nv(){uu(Hc,Lo)}var io=1/0,pl=io,ml=-io,gl=ml,Fo={point:as,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var O=[[io,pl],[ml,gl]];return ml=gl=-(pl=io=1/0),O}};function as(O,J){O<io&&(io=O),O>ml&&(ml=O),J<pl&&(pl=J),J>gl&&(gl=J)}var Ys=0,ns=0,is=0,yl=0,su=0,fu=0,Vs=0,Xs=0,Ai=0,Ws,js,$n,hn,Nn={point:oo,lineStart:os,lineEnd:l0,polygonStart:function(){Nn.lineStart=Oc,Nn.lineEnd=Bv},polygonEnd:function(){Nn.point=oo,Nn.lineStart=os,Nn.lineEnd=l0},result:function(){var O=Ai?[Vs/Ai,Xs/Ai]:fu?[yl/fu,su/fu]:is?[Ys/is,ns/is]:[NaN,NaN];return Ys=ns=is=yl=su=fu=Vs=Xs=Ai=0,O}};function oo(O,J){Ys+=O,ns+=J,++is}function os(){Nn.point=bl}function bl(O,J){Nn.point=cu,oo($n=O,hn=J)}function cu(O,J){var he=O-$n,ue=J-hn,xe=D(he*he+ue*ue);yl+=xe*($n+O)/2,su+=xe*(hn+J)/2,fu+=xe,oo($n=O,hn=J)}function l0(){Nn.point=oo}function Oc(){Nn.point=Iv}function Bv(){u0(Ws,js)}function Iv(O,J){Nn.point=u0,oo(Ws=$n=O,js=hn=J)}function u0(O,J){var he=O-$n,ue=J-hn,xe=D(he*he+ue*ue);yl+=xe*($n+O)/2,su+=xe*(hn+J)/2,fu+=xe,xe=hn*O-$n*J,Vs+=xe*($n+O),Xs+=xe*(hn+J),Ai+=xe*3,oo($n=O,hn=J)}function s0(O){this._context=O}s0.prototype={_radius:4.5,pointRadius:function(O){return this._radius=O,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(O,J){switch(this._point){case 0:{this._context.moveTo(O,J),this._point=1;break}case 1:{this._context.lineTo(O,J);break}default:{this._context.moveTo(O+this._radius,J),this._context.arc(O,J,this._radius,0,c);break}}},result:H};var f0=t(),c0,Uc,Gc,ls,us,Bi={point:H,lineStart:function(){Bi.point=Zs},lineEnd:function(){c0&&ss(Uc,Gc),Bi.point=H},polygonStart:function(){c0=!0},polygonEnd:function(){c0=null},result:function(){var O=+f0;return f0.reset(),O}};function Zs(O,J){Bi.point=ss,Uc=ls=O,Gc=us=J}function ss(O,J){ls-=O,us-=J,f0.add(D(ls*ls+us*us)),ls=O,us=J}function Js(){this._string=[]}Js.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,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(O,J){switch(this._point){case 0:{this._string.push("M",O,",",J),this._point=1;break}case 1:{this._string.push("L",O,",",J);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",O,",",J,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function Yc(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function v0(O,J){var he=4.5,ue,xe;function He(je){return je&&(typeof he=="function"&&xe.pointRadius(+he.apply(this,arguments)),ee(je,ue(xe))),xe.result()}return He.area=function(je){return ee(je,ue(Ni)),Ni.result()},He.measure=function(je){return ee(je,ue(Bi)),Bi.result()},He.bounds=function(je){return ee(je,ue(Fo)),Fo.result()},He.centroid=function(je){return ee(je,ue(Nn)),Nn.result()},He.projection=function(je){return arguments.length?(ue=je==null?(O=null,dl):(O=je).stream,He):O},He.context=function(je){return arguments.length?(xe=je==null?(J=null,new Js):new s0(J=je),typeof he!="function"&&xe.pointRadius(he),He):J},He.pointRadius=function(je){return arguments.length?(he=typeof je=="function"?je:(xe.pointRadius(+je),+je),He):he},He.projection(O).context(J)}function Hv(O){return{stream:qo(O)}}function qo(O){return function(J){var he=new $s;for(var ue in O)he[ue]=O[ue];return he.stream=J,he}}function $s(){}$s.prototype={constructor:$s,point:function(O,J){this.stream.point(O,J)},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 vu(O,J,he){var ue=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),ue!=null&&O.clipExtent(null),ee(he,O.stream(Fo)),J(Fo.result()),ue!=null&&O.clipExtent(ue),O}function fs(O,J,he){return vu(O,function(ue){var xe=J[1][0]-J[0][0],He=J[1][1]-J[0][1],je=Math.min(xe/(ue[1][0]-ue[0][0]),He/(ue[1][1]-ue[0][1])),rr=+J[0][0]+(xe-je*(ue[1][0]+ue[0][0]))/2,ar=+J[0][1]+(He-je*(ue[1][1]+ue[0][1]))/2;O.scale(150*je).translate([rr,ar])},he)}function cs(O,J,he){return fs(O,[[0,0],J],he)}function h0(O,J,he){return vu(O,function(ue){var xe=+J,He=xe/(ue[1][0]-ue[0][0]),je=(xe-He*(ue[1][0]+ue[0][0]))/2,rr=-He*ue[0][1];O.scale(150*He).translate([je,rr])},he)}function Po(O,J,he){return vu(O,function(ue){var xe=+J,He=xe/(ue[1][1]-ue[0][1]),je=-He*ue[0][0],rr=(xe-He*(ue[1][1]+ue[0][1]))/2;O.scale(150*He).translate([je,rr])},he)}var Vc=16,d0=b(30*d);function Xc(O,J){return+J?Ks(O,J):p0(O)}function p0(O){return qo({point:function(J,he){J=O(J,he),this.stream.point(J[0],J[1])}})}function Ks(O,J){function he(ue,xe,He,je,rr,ar,br,Je,lr,nr,Ar,Er,ot,et){var ut=br-ue,st=Je-xe,qr=ut*ut+st*st;if(qr>4*J&&ot--){var Ur=je+nr,ct=rr+Ar,_t=ar+Er,Vt=D(Ur*Ur+ct*ct+_t*_t),oa=B(_t/=Vt),Zt=m(m(_t)-1)<o||m(He-lr)<o?(He+lr)/2:y(ct,Ur),_a=O(Zt,oa),Dt=_a[0],yn=_a[1],Ya=Dt-ue,xa=yn-xe,Yr=st*Ya-ut*xa;(Yr*Yr/qr>J||m((ut*Ya+st*xa)/qr-.5)>.3||je*nr+rr*Ar+ar*Er<d0)&&(he(ue,xe,He,je,rr,ar,Dt,yn,Zt,Ur/=Vt,ct/=Vt,_t,ot,et),et.point(Dt,yn),he(Dt,yn,Zt,Ur,ct,_t,br,Je,lr,nr,Ar,Er,ot,et))}}return function(ue){var xe,He,je,rr,ar,br,Je,lr,nr,Ar,Er,ot,et={point:ut,lineStart:st,lineEnd:Ur,polygonStart:function(){ue.polygonStart(),et.lineStart=ct},polygonEnd:function(){ue.polygonEnd(),et.lineStart=st}};function ut(oa,Zt){oa=O(oa,Zt),ue.point(oa[0],oa[1])}function st(){lr=NaN,et.point=qr,ue.lineStart()}function qr(oa,Zt){var _a=we([oa,Zt]),Dt=O(oa,Zt);he(lr,nr,Je,Ar,Er,ot,lr=Dt[0],nr=Dt[1],Je=oa,Ar=_a[0],Er=_a[1],ot=_a[2],Vc,ue),ue.point(lr,nr)}function Ur(){et.point=ut,ue.lineEnd()}function ct(){st(),et.point=_t,et.lineEnd=Vt}function _t(oa,Zt){qr(xe=oa,Zt),He=lr,je=nr,rr=Ar,ar=Er,br=ot,et.point=qr}function Vt(){he(lr,nr,Je,Ar,Er,ot,He,je,xe,rr,ar,br,Vc,ue),et.lineEnd=Ur,Ur()}return et}}var m0=qo({point:function(O,J){this.stream.point(O*d,J*d)}});function g0(O){return qo({point:function(J,he){var ue=O(J,he);return this.stream.point(ue[0],ue[1])}})}function Ov(O,J,he,ue,xe){function He(je,rr){return je*=ue,rr*=xe,[J+O*je,he-O*rr]}return He.invert=function(je,rr){return[(je-J)/O*ue,(he-rr)/O*xe]},He}function y0(O,J,he,ue,xe,He){var je=b(He),rr=T(He),ar=je*O,br=rr*O,Je=je/O,lr=rr/O,nr=(rr*he-je*J)/O,Ar=(rr*J+je*he)/O;function Er(ot,et){return ot*=ue,et*=xe,[ar*ot-br*et+J,he-br*ot-ar*et]}return Er.invert=function(ot,et){return[ue*(Je*ot-lr*et+nr),xe*(Ar-lr*ot-Je*et)]},Er}function Ii(O){return b0(function(){return O})()}function b0(O){var J,he=150,ue=480,xe=250,He=0,je=0,rr=0,ar=0,br=0,Je,lr=0,nr=1,Ar=1,Er=null,ot=it,et=null,ut,st,qr,Ur=dl,ct=.5,_t,Vt,oa,Zt,_a;function Dt(Yr){return oa(Yr[0]*d,Yr[1]*d)}function yn(Yr){return Yr=oa.invert(Yr[0],Yr[1]),Yr&&[Yr[0]*h,Yr[1]*h]}Dt.stream=function(Yr){return Zt&&_a===Yr?Zt:Zt=m0(g0(Je)(ot(_t(Ur(_a=Yr)))))},Dt.preclip=function(Yr){return arguments.length?(ot=Yr,Er=void 0,xa()):ot},Dt.postclip=function(Yr){return arguments.length?(Ur=Yr,et=ut=st=qr=null,xa()):Ur},Dt.clipAngle=function(Yr){return arguments.length?(ot=+Yr?vn(Er=Yr*d):(Er=null,it),xa()):Er*h},Dt.clipExtent=function(Yr){return arguments.length?(Ur=Yr==null?(et=ut=st=qr=null,dl):zn(et=+Yr[0][0],ut=+Yr[0][1],st=+Yr[1][0],qr=+Yr[1][1]),xa()):et==null?null:[[et,ut],[st,qr]]},Dt.scale=function(Yr){return arguments.length?(he=+Yr,Ya()):he},Dt.translate=function(Yr){return arguments.length?(ue=+Yr[0],xe=+Yr[1],Ya()):[ue,xe]},Dt.center=function(Yr){return arguments.length?(He=Yr[0]%360*d,je=Yr[1]%360*d,Ya()):[He*h,je*h]},Dt.rotate=function(Yr){return arguments.length?(rr=Yr[0]%360*d,ar=Yr[1]%360*d,br=Yr.length>2?Yr[2]%360*d:0,Ya()):[rr*h,ar*h,br*h]},Dt.angle=function(Yr){return arguments.length?(lr=Yr%360*d,Ya()):lr*h},Dt.reflectX=function(Yr){return arguments.length?(nr=Yr?-1:1,Ya()):nr<0},Dt.reflectY=function(Yr){return arguments.length?(Ar=Yr?-1:1,Ya()):Ar<0},Dt.precision=function(Yr){return arguments.length?(_t=Xc(Vt,ct=Yr*Yr),xa()):D(ct)},Dt.fitExtent=function(Yr,Xt){return fs(Dt,Yr,Xt)},Dt.fitSize=function(Yr,Xt){return cs(Dt,Yr,Xt)},Dt.fitWidth=function(Yr,Xt){return h0(Dt,Yr,Xt)},Dt.fitHeight=function(Yr,Xt){return Po(Dt,Yr,Xt)};function Ya(){var Yr=y0(he,0,0,nr,Ar,lr).apply(null,J(He,je)),Xt=(lr?y0:Ov)(he,ue-Yr[0],xe-Yr[1],nr,Ar,lr);return Je=La(rr,ar,br),Vt=ma(J,Xt),oa=ma(Je,Vt),_t=Xc(Vt,ct),xa()}function xa(){return Zt=_a=null,Dt}return function(){return J=O.apply(this,arguments),Dt.invert=J.invert&&yn,Ya()}}function hu(O){var J=0,he=u/3,ue=b0(O),xe=ue(J,he);return xe.parallels=function(He){return arguments.length?ue(J=He[0]*d,he=He[1]*d):[J*h,he*h]},xe}function _0(O){var J=b(O);function he(ue,xe){return[ue*J,T(xe)/J]}return he.invert=function(ue,xe){return[ue/J,B(xe*J)]},he}function Wc(O,J){var he=T(O),ue=(he+T(J))/2;if(m(ue)<o)return _0(O);var xe=1+he*(2*ue-he),He=D(xe)/ue;function je(rr,ar){var br=D(xe-2*ue*T(ar))/ue;return[br*T(rr*=ue),He-br*b(rr)]}return je.invert=function(rr,ar){var br=He-ar,Je=y(rr,m(br))*A(br);return br*ue<0&&(Je-=u*A(rr)*A(br)),[Je/ue,B((xe-(rr*rr+br*br)*ue*ue)/(2*ue))]},je}function _l(){return hu(Wc).scale(155.424).center([0,33.6442])}function jc(){return _l().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Uv(O){var J=O.length;return{point:function(he,ue){for(var xe=-1;++xe<J;)O[xe].point(he,ue)},sphere:function(){for(var he=-1;++he<J;)O[he].sphere()},lineStart:function(){for(var he=-1;++he<J;)O[he].lineStart()},lineEnd:function(){for(var he=-1;++he<J;)O[he].lineEnd()},polygonStart:function(){for(var he=-1;++he<J;)O[he].polygonStart()},polygonEnd:function(){for(var he=-1;++he<J;)O[he].polygonEnd()}}}function Gv(){var O,J,he=jc(),ue,xe=_l().rotate([154,0]).center([-2,58.5]).parallels([55,65]),He,je=_l().rotate([157,0]).center([-3,19.9]).parallels([8,18]),rr,ar,br={point:function(nr,Ar){ar=[nr,Ar]}};function Je(nr){var Ar=nr[0],Er=nr[1];return ar=null,ue.point(Ar,Er),ar||(He.point(Ar,Er),ar)||(rr.point(Ar,Er),ar)}Je.invert=function(nr){var Ar=he.scale(),Er=he.translate(),ot=(nr[0]-Er[0])/Ar,et=(nr[1]-Er[1])/Ar;return(et>=.12&&et<.234&&ot>=-.425&&ot<-.214?xe:et>=.166&&et<.234&&ot>=-.214&&ot<-.115?je:he).invert(nr)},Je.stream=function(nr){return O&&J===nr?O:O=Uv([he.stream(J=nr),xe.stream(nr),je.stream(nr)])},Je.precision=function(nr){return arguments.length?(he.precision(nr),xe.precision(nr),je.precision(nr),lr()):he.precision()},Je.scale=function(nr){return arguments.length?(he.scale(nr),xe.scale(nr*.35),je.scale(nr),Je.translate(he.translate())):he.scale()},Je.translate=function(nr){if(!arguments.length)return he.translate();var Ar=he.scale(),Er=+nr[0],ot=+nr[1];return ue=he.translate(nr).clipExtent([[Er-.455*Ar,ot-.238*Ar],[Er+.455*Ar,ot+.238*Ar]]).stream(br),He=xe.translate([Er-.307*Ar,ot+.201*Ar]).clipExtent([[Er-.425*Ar+o,ot+.12*Ar+o],[Er-.214*Ar-o,ot+.234*Ar-o]]).stream(br),rr=je.translate([Er-.205*Ar,ot+.212*Ar]).clipExtent([[Er-.214*Ar+o,ot+.166*Ar+o],[Er-.115*Ar-o,ot+.234*Ar-o]]).stream(br),lr()},Je.fitExtent=function(nr,Ar){return fs(Je,nr,Ar)},Je.fitSize=function(nr,Ar){return cs(Je,nr,Ar)},Je.fitWidth=function(nr,Ar){return h0(Je,nr,Ar)},Je.fitHeight=function(nr,Ar){return Po(Je,nr,Ar)};function lr(){return O=J=null,Je}return Je.scale(1070)}function lo(O){return function(J,he){var ue=b(J),xe=b(he),He=O(ue*xe);return[He*xe*T(J),He*T(he)]}}function Hi(O){return function(J,he){var ue=D(J*J+he*he),xe=O(ue),He=T(xe),je=b(xe);return[y(J*He,ue*je),B(ue&&he*He/ue)]}}var Kn=lo(function(O){return D(2/(1+O))});Kn.invert=Hi(function(O){return 2*B(O/2)});function Yv(){return Ii(Kn).scale(124.75).clipAngle(180-.001)}var du=lo(function(O){return(O=z(O))&&O/T(O)});du.invert=Hi(function(O){return O});function Zc(){return Ii(du).scale(79.4188).clipAngle(180-.001)}function ui(O,J){return[O,_(P((s+J)/2))]}ui.invert=function(O,J){return[O,2*p(x(J))-s]};function Jc(){return $c(ui).scale(961/c)}function $c(O){var J=Ii(O),he=J.center,ue=J.scale,xe=J.translate,He=J.clipExtent,je=null,rr,ar,br;J.scale=function(lr){return arguments.length?(ue(lr),Je()):ue()},J.translate=function(lr){return arguments.length?(xe(lr),Je()):xe()},J.center=function(lr){return arguments.length?(he(lr),Je()):he()},J.clipExtent=function(lr){return arguments.length?(lr==null?je=rr=ar=br=null:(je=+lr[0][0],rr=+lr[0][1],ar=+lr[1][0],br=+lr[1][1]),Je()):je==null?null:[[je,rr],[ar,br]]};function Je(){var lr=u*ue(),nr=J(Xu(J.rotate()).invert([0,0]));return He(je==null?[[nr[0]-lr,nr[1]-lr],[nr[0]+lr,nr[1]+lr]]:O===ui?[[Math.max(nr[0]-lr,je),rr],[Math.min(nr[0]+lr,ar),br]]:[[je,Math.max(nr[1]-lr,rr)],[ar,Math.min(nr[1]+lr,br)]])}return Je()}function vs(O){return P((s+O)/2)}function Kc(O,J){var he=b(O),ue=O===J?T(O):_(he/b(J))/_(vs(J)/vs(O)),xe=he*M(vs(O),ue)/ue;if(!ue)return ui;function He(je,rr){xe>0?rr<-s+o&&(rr=-s+o):rr>s-o&&(rr=s-o);var ar=xe/M(vs(rr),ue);return[ar*T(ue*je),xe-ar*b(ue*je)]}return He.invert=function(je,rr){var ar=xe-rr,br=A(ue)*D(je*je+ar*ar),Je=y(je,m(ar))*A(ar);return ar*ue<0&&(Je-=u*A(je)*A(ar)),[Je/ue,2*p(M(xe/br,1/ue))-s]},He}function Qs(){return hu(Kc).scale(109.5).parallels([30,30])}function hs(O,J){return[O,J]}hs.invert=hs;function ef(){return Ii(hs).scale(152.63)}function ds(O,J){var he=b(O),ue=O===J?T(O):(he-b(J))/(J-O),xe=he/ue+O;if(m(ue)<o)return hs;function He(je,rr){var ar=xe-rr,br=ue*je;return[ar*T(br),xe-ar*b(br)]}return He.invert=function(je,rr){var ar=xe-rr,br=y(je,m(ar))*A(ar);return ar*ue<0&&(br-=u*A(je)*A(ar)),[br/ue,xe-A(ue)*D(je*je+ar*ar)]},He}function Vv(){return hu(ds).scale(131.154).center([0,13.9389])}var ps=1.340264,xl=-.081106,ms=893e-6,wl=.003796,pu=D(3)/2,rf=12;function gs(O,J){var he=B(pu*T(J)),ue=he*he,xe=ue*ue*ue;return[O*b(he)/(pu*(ps+3*xl*ue+xe*(7*ms+9*wl*ue))),he*(ps+xl*ue+xe*(ms+wl*ue))]}gs.invert=function(O,J){for(var he=J,ue=he*he,xe=ue*ue*ue,He=0,je,rr,ar;He<rf&&(rr=he*(ps+xl*ue+xe*(ms+wl*ue))-J,ar=ps+3*xl*ue+xe*(7*ms+9*wl*ue),he-=je=rr/ar,ue=he*he,xe=ue*ue*ue,!(m(je)<l));++He);return[pu*O*(ps+3*xl*ue+xe*(7*ms+9*wl*ue))/b(he),B(T(he)/pu)]};function Qc(){return Ii(gs).scale(177.158)}function tf(O,J){var he=b(J),ue=b(O)*he;return[he*T(O)/ue,T(J)/ue]}tf.invert=Hi(p);function e1(){return Ii(tf).scale(144.049).clipAngle(60)}function r1(){var O=1,J=0,he=0,ue=1,xe=1,He=0,je,rr,ar=null,br,Je,lr,nr=1,Ar=1,Er=qo({point:function(Ur,ct){var _t=qr([Ur,ct]);this.stream.point(_t[0],_t[1])}}),ot=dl,et,ut;function st(){return nr=O*ue,Ar=O*xe,et=ut=null,qr}function qr(Ur){var ct=Ur[0]*nr,_t=Ur[1]*Ar;if(He){var Vt=_t*je-ct*rr;ct=ct*je+_t*rr,_t=Vt}return[ct+J,_t+he]}return qr.invert=function(Ur){var ct=Ur[0]-J,_t=Ur[1]-he;if(He){var Vt=_t*je+ct*rr;ct=ct*je-_t*rr,_t=Vt}return[ct/nr,_t/Ar]},qr.stream=function(Ur){return et&&ut===Ur?et:et=Er(ot(ut=Ur))},qr.postclip=function(Ur){return arguments.length?(ot=Ur,ar=br=Je=lr=null,st()):ot},qr.clipExtent=function(Ur){return arguments.length?(ot=Ur==null?(ar=br=Je=lr=null,dl):zn(ar=+Ur[0][0],br=+Ur[0][1],Je=+Ur[1][0],lr=+Ur[1][1]),st()):ar==null?null:[[ar,br],[Je,lr]]},qr.scale=function(Ur){return arguments.length?(O=+Ur,st()):O},qr.translate=function(Ur){return arguments.length?(J=+Ur[0],he=+Ur[1],st()):[J,he]},qr.angle=function(Ur){return arguments.length?(He=Ur%360*d,rr=T(He),je=b(He),st()):He*h},qr.reflectX=function(Ur){return arguments.length?(ue=Ur?-1:1,st()):ue<0},qr.reflectY=function(Ur){return arguments.length?(xe=Ur?-1:1,st()):xe<0},qr.fitExtent=function(Ur,ct){return fs(qr,Ur,ct)},qr.fitSize=function(Ur,ct){return cs(qr,Ur,ct)},qr.fitWidth=function(Ur,ct){return h0(qr,Ur,ct)},qr.fitHeight=function(Ur,ct){return Po(qr,Ur,ct)},qr}function x0(O,J){var he=J*J,ue=he*he;return[O*(.8707-.131979*he+ue*(-.013791+ue*(.003971*he-.001529*ue))),J*(1.007226+he*(.015085+ue*(-.044475+.028874*he-.005916*ue)))]}x0.invert=function(O,J){var he=J,ue=25,xe;do{var He=he*he,je=He*He;he-=xe=(he*(1.007226+He*(.015085+je*(-.044475+.028874*He-.005916*je)))-J)/(1.007226+He*(.015085*3+je*(-.044475*7+.028874*9*He-.005916*11*je)))}while(m(xe)>o&&--ue>0);return[O/(.8707+(He=he*he)*(-.131979+He*(-.013791+He*He*He*(.003971-.001529*He)))),he]};function af(){return Ii(x0).scale(175.295)}function tn(O,J){return[b(J)*T(O),T(J)]}tn.invert=Hi(B);function Ti(){return Ii(tn).scale(249.5).clipAngle(90+o)}function mu(O,J){var he=b(J),ue=1+b(O)*he;return[he*T(O)/ue,T(J)/ue]}mu.invert=Hi(function(O){return 2*p(O)});function nf(){return Ii(mu).scale(250).clipAngle(142)}function ys(O,J){return[_(P((s+J)/2)),-O]}ys.invert=function(O,J){return[-J,2*p(x(O))-s]};function w0(){var O=$c(ys),J=O.center,he=O.rotate;return O.center=function(ue){return arguments.length?J([-ue[1],ue[0]]):(ue=J(),[ue[1],-ue[0]])},O.rotate=function(ue){return arguments.length?he([ue[0],ue[1],ue.length>2?ue[2]+90:90]):(ue=he(),[ue[0],ue[1],ue[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=jc,e.geoAlbersUsa=Gv,e.geoArea=$,e.geoAzimuthalEqualArea=Yv,e.geoAzimuthalEqualAreaRaw=Kn,e.geoAzimuthalEquidistant=Zc,e.geoAzimuthalEquidistantRaw=du,e.geoBounds=Cr,e.geoCentroid=za,e.geoCircle=Wu,e.geoClipAntimeridian=it,e.geoClipCircle=vn,e.geoClipExtent=cl,e.geoClipRectangle=zn,e.geoConicConformal=Qs,e.geoConicConformalRaw=Kc,e.geoConicEqualArea=_l,e.geoConicEqualAreaRaw=Wc,e.geoConicEquidistant=Vv,e.geoConicEquidistantRaw=ds,e.geoContains=es,e.geoDistance=hl,e.geoEqualEarth=Qc,e.geoEqualEarthRaw=gs,e.geoEquirectangular=ef,e.geoEquirectangularRaw=hs,e.geoGnomonic=e1,e.geoGnomonicRaw=tf,e.geoGraticule=Ic,e.geoGraticule10=ts,e.geoIdentity=r1,e.geoInterpolate=Rv,e.geoLength=$u,e.geoMercator=Jc,e.geoMercatorRaw=ui,e.geoNaturalEarth1=af,e.geoNaturalEarth1Raw=x0,e.geoOrthographic=Ti,e.geoOrthographicRaw=tn,e.geoPath=v0,e.geoProjection=Ii,e.geoProjectionMutator=b0,e.geoRotation=Xu,e.geoStereographic=nf,e.geoStereographicRaw=mu,e.geoStream=ee,e.geoTransform=Hv,e.geoTransverseMercator=w0,e.geoTransverseMercatorRaw=ys,Object.defineProperty(e,"__esModule",{value:!0})}))});var yU=ae((N6e,gU)=>{"use strict";var mU={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"},Vhe=new Set(Object.values(mU));gU.exports={usaLocationAbbreviations:Vhe,usaLocationList:mU}});var bU={};u1(bU,{COUNTRIES_X:()=>Xhe});var Xhe,_U=l1(()=>{"use strict";Xhe=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var Ev=ae((B6e,MU)=>{"use strict";var Whe=Et(),{COUNTRIES:jhe,createLookup:Zhe}=JO(),{area:Jhe}=fU(),{centroid:$he}=vU(),{coordAll:Khe}=P3(),{geoBounds:Qhe}=I3(),ede=hm(),jf=Ms(),rde=uf(),tde=$v(),H3=ng(),{usaLocationAbbreviations:ade,usaLocationList:nde}=yU(),{COUNTRIES_X:ide}=(_U(),ei(bU)),{lookupAlpha3:ode}=Zhe([...jhe,...ide]),lde={"ISO-3":ede,"USA-states":sde,"country names":ude};function ude(e){let r=ode(e);return r||(jf.log("Unrecognized country name: "+e+"."),!1)}function sde(e){e=e.trim();let r=ade.has(e.toUpperCase())?e.toUpperCase():nde[e.toLowerCase()];return r||(jf.log("Unrecognized US location: "+e+"."),!1)}function fde(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=lde[e](r);if(a){let i;if(e==="USA-states"){i=[];for(let o of t)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&i.push(o)}else i=t;for(let o of i)if(o.id===a)return o;jf.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var O3=360;function b8(e){for(let r=0;r<e.length-1;r++)if(e[r][0]>0&&e[r+1][0]<0)return r;return null}function cde(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,u;switch(a==="RUS"||a==="FJI"?i=function(s){var f;if(b8(s)===null)f=s;else for(f=new Array(s.length),u=0;u<s.length;u++)f[u]=[s[u][0]<0?s[u][0]+O3:s[u][0],s[u][1]];n.push(H3.tester(f))}:a==="ATA"?i=function(s){var f=b8(s);if(f===null)return n.push(H3.tester(s));var c=new Array(s.length+1),h=0;for(u=0;u<s.length;u++)u>f?c[h++]=[s[u][0]+O3,s[u][1]]:u===f?(c[h++]=s[u],c[h++]=[s[u][0],-90]):c[h++]=s[u];var d=H3.tester(c);d.pts.pop(),n.push(d)}:i=function(s){n.push(H3.tester(s))},r.type){case"MultiPolygon":for(o=0;o<t.length;o++)for(l=0;l<t[o].length;l++)i(t[o][l]);break;case"Polygon":for(o=0;o<t.length;o++)i(t[o]);break}return n}function _8(e){var r=e.geojson,t=window.PlotlyGeoAssets||{},a=typeof r=="string"?t[r]:r;return rde(a)?a:(jf.error("Oops ... something went wrong when fetching "+r),!1)}function vde(e){var r=e[0].trace,t=_8(r);if(!t)return!1;var a={},n=[],i;for(i=0;i<r._length;i++){var o=e[i];(o.loc||o.loc===0)&&(a[o.loc]=o)}function l(f){var c=tde(f,r.featureidkey||"id").get(),h=a[c];if(h){var d=f.geometry;if(d.type==="Polygon"||d.type==="MultiPolygon"){var m={type:"Feature",id:c,geometry:d,properties:{}};m.properties.ct=hde(m),isNaN(m.properties.ct[0])&&jf.log(["Location",h.loc,"has no polygon with positive area.","Its centroid could not be computed,","so hover and selection will not work for it."].join(" ")),h.fIn=f,h.fOut=m,n.push(m)}else jf.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[c]}switch(t.type){case"FeatureCollection":var u=t.features;for(i=0;i<u.length;i++)l(u[i]);break;case"Feature":l(t);break;default:return jf.warn(["Invalid GeoJSON type",(t.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var s in a)jf.log(["Location *"+s+"*","does not have a matching feature with id-key","*"+r.featureidkey+"*."].join(" "));return n}function hde(e){var r=e.geometry,t;if(r.type==="MultiPolygon")for(var a=r.coordinates,n=0,i=0;i<a.length;i++){var o={type:"Polygon",coordinates:a[i]},l=Jhe(o);l>n&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(u=>u.length>0)?[NaN,NaN]:$he(t).geometry.coordinates}function dde(e){var r=window.PlotlyGeoAssets||{},t=[];function a(u){return new Promise(function(s,f){Whe.json(u,function(c,h){if(c){delete r[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return r[u]=h,s(h)})})}function n(u){return new Promise(function(s,f){var c=0,h=setInterval(function(){if(r[u]&&r[u]!=="pending")return clearInterval(h),s(r[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var i=0;i<e.length;i++){var o=e[i][0].trace,l=o.geojson;typeof l=="string"&&(r[l]?r[l]==="pending"&&t.push(n(l)):(r[l]="pending",t.push(a(l))))}return t}var pde=e=>w8(x8(e));function x8(e){try{return Khe(e)}catch(r){return[]}}function w8(e){if(e.length===0)return null;if(e.length===1){let[i,o]=e[0];return[i,o,i,o]}let[[r,t],[a,n]]=Qhe({type:"MultiPoint",coordinates:e});return[r,t,wU([r,a])[1],n]}var mde=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",xU=(e,r)=>mde(e,r)?x8(_8(e)):[],gde=(e,r)=>w8(xU(e,r));function wU([e,r]){return[e,e>r?r+O3:r]}MU.exports={locationToFeature:fde,feature2polygons:cde,getTraceGeojson:_8,extractTraceFeature:vde,fetchTraceGeoData:dde,boundsOfCoords:w8,computeBbox:pde,coordsOf:x8,doesCrossAntiMeridian:b8,fitGeojsonBbox:gde,fitGeojsonCoords:xU,unwrapLonRange:wU,ANTIMERIDIAN_LON_SHIFT:O3}});var M8=ae((I6e,kU)=>{"use strict";var yde=Et(),bde=va(),AU=Ft(),TU=Nd(),_de=TU.stylePoints,xde=TU.styleText;kU.exports=function(r,t){t&&wde(r,t)};function wde(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),_de(a,t,e),xde(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=yde.select(this),o=n.trace,l=o.line||{};i.call(AU.stroke,l.color).call(bde.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(AU.fill,o.fillcolor)})}});var Y3=ae((H6e,EU)=>{"use strict";var CU=Et(),U3=mr(),Mde=E3().getTopojsonFeatures,A8=VO(),G3=Ev(),SU=Ef().findExtremes,k8=Oa().BADNUM,Ade=Hg().calcMarkerSize,T8=pi(),Tde=M8();function kde(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=U3.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===k8&&CU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=CU.select(this),u=o[0].trace;if(T8.hasLines(u)||u.fill!=="none"){var s=A8.calcTraceToLineCoords(o),f=u.fill!=="none"?A8.makePolygon(s):A8.makeLine(s);l.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}T8.hasMarkers(u)&&l.selectAll("path.point").data(U3.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),T8.hasText(u)&&l.selectAll("g").data(U3.identity).enter().append("g").append("text").each(function(c){i(c,this)}),Tde(e,o)})}function Cde(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(U3.isArrayOrTypedArray(t.locations)){var u=t.locationmode,s=u==="geojson-id"?G3.extractTraceFeature(e):Mde(t,n.topojson);for(o=0;o<i;o++){l=e[o];var f=u==="geojson-id"?l.fOut:G3.locationToFeature(u,l.loc,s);l.lonlat=f?f.properties.ct:[k8,k8]}}var c={padded:!0},h,d;let m=G3.fitGeojsonBbox(t,a);if(m){let[p,y,b,C]=m;h=[p,b],d=[y,C]}else{for(h=new Array(i),d=new Array(i),o=0;o<i;o++)l=e[o],h[o]=l.lonlat[0],d[o]=l.lonlat[1];c.ppad=Ade(t,i)}t._extremes.lon=SU(a.lonaxis._ax,h,c),t._extremes.lat=SU(a.lataxis._ax,d,c)}function Sde(e,r){let t=G3.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.lonlat&&isFinite(n.lonlat[0])&&a.push(n.lonlat);return a}EU.exports={calcGeoJSON:Cde,fitCoords:Sde,plot:kde}});var DU=ae((O6e,LU)=>{"use strict";var Ede=Hl(),Lde=Oa().BADNUM,Dde=t9(),Fde=mr().fillText,qde=$d();LU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,u=r.subplot,s=u.projection.isLonLatOverEdges,f=u.project;function c(C){var x=C.lonlat;if(x[0]===Lde||s(x))return 1/0;var _=f(x),M=f([t,a]),T=Math.abs(_[0]-M[0]),A=Math.abs(_[1]-M[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(T*T+A*A)-D,1-3/D)}if(Ede.getClosest(n,c,r),r.index!==!1){var h=n[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:u};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=Dde(i,h),r.extraText=Pde(i,h,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Pde(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?qde.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,u=i.indexOf("lat")!==-1,s=i.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(r.loc):l&&u?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):u&&f.push(a.lat+c(t.latLabel)),s&&Fde(r,e,f),f.join("<br>")}});var qU=ae((U6e,FU)=>{"use strict";FU.exports=function(r,t,a,n,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var zU=ae((G6e,RU)=>{"use strict";var PU=pi(),Rde=Oa().BADNUM;RU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,u,s,f,c,h,d=!PU.hasMarkers(l)&&!PU.hasText(l);if(d)return[];if(t===!1)for(h=0;h<a.length;h++)a[h].selected=0;else for(h=0;h<a.length;h++)u=a[h],s=u.lonlat,s[0]!==Rde&&(f=n.c2p(s),c=i.c2p(s),t.contains([f,c],null,h,r)?(o.push({pointNumber:h,lon:s[0],lat:s[1]}),u.selected=1):u.selected=0);return o}});var BU=ae((V3,NU)=>{(function(e,r){r(typeof V3=="object"&&typeof NU!="undefined"?V3:e.d3=e.d3||{})})(V3,(function(e){"use strict";function r(j,re){return j<re?-1:j>re?1:j>=re?0:NaN}function t(j){return j.length===1&&(j=a(j)),{left:function(re,me,K,$){for(K==null&&(K=0),$==null&&($=re.length);K<$;){var le=K+$>>>1;j(re[le],me)<0?K=le+1:$=le}return K},right:function(re,me,K,$){for(K==null&&(K=0),$==null&&($=re.length);K<$;){var le=K+$>>>1;j(re[le],me)>0?$=le:K=le+1}return K}}}function a(j){return function(re,me){return r(j(re),me)}}var n=t(r),i=n.right,o=n.left;function l(j,re){re==null&&(re=u);for(var me=0,K=j.length-1,$=j[0],le=new Array(K<0?0:K);me<K;)le[me]=re($,$=j[++me]);return le}function u(j,re){return[j,re]}function s(j,re,me){var K=j.length,$=re.length,le=new Array(K*$),we,Ne,$e,er;for(me==null&&(me=u),we=$e=0;we<K;++we)for(er=j[we],Ne=0;Ne<$;++Ne,++$e)le[$e]=me(er,re[Ne]);return le}function f(j,re){return re<j?-1:re>j?1:re>=j?0:NaN}function c(j){return j===null?NaN:+j}function h(j,re){var me=j.length,K=0,$=-1,le=0,we,Ne,$e=0;if(re==null)for(;++$<me;)isNaN(we=c(j[$]))||(Ne=we-le,le+=Ne/++K,$e+=Ne*(we-le));else for(;++$<me;)isNaN(we=c(re(j[$],$,j)))||(Ne=we-le,le+=Ne/++K,$e+=Ne*(we-le));if(K>1)return $e/(K-1)}function d(j,re){var me=h(j,re);return me&&Math.sqrt(me)}function m(j,re){var me=j.length,K=-1,$,le,we;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=we=$;++K<me;)($=j[K])!=null&&(le>$&&(le=$),we<$&&(we=$))}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=we=$;++K<me;)($=re(j[K],K,j))!=null&&(le>$&&(le=$),we<$&&(we=$));return[le,we]}var p=Array.prototype,y=p.slice,b=p.map;function C(j){return function(){return j}}function x(j){return j}function _(j,re,me){j=+j,re=+re,me=($=arguments.length)<2?(re=j,j=0,1):$<3?1:+me;for(var K=-1,$=Math.max(0,Math.ceil((re-j)/me))|0,le=new Array($);++K<$;)le[K]=j+K*me;return le}var M=Math.sqrt(50),T=Math.sqrt(10),A=Math.sqrt(2);function D(j,re,me){var K,$=-1,le,we,Ne;if(re=+re,j=+j,me=+me,j===re&&me>0)return[j];if((K=re<j)&&(le=j,j=re,re=le),(Ne=P(j,re,me))===0||!isFinite(Ne))return[];if(Ne>0)for(j=Math.ceil(j/Ne),re=Math.floor(re/Ne),we=new Array(le=Math.ceil(re-j+1));++$<le;)we[$]=(j+$)*Ne;else for(j=Math.floor(j*Ne),re=Math.ceil(re*Ne),we=new Array(le=Math.ceil(j-re+1));++$<le;)we[$]=(j-$)/Ne;return K&&we.reverse(),we}function P(j,re,me){var K=(re-j)/Math.max(0,me),$=Math.floor(Math.log(K)/Math.LN10),le=K/Math.pow(10,$);return $>=0?(le>=M?10:le>=T?5:le>=A?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(le>=M?10:le>=T?5:le>=A?2:1)}function z(j,re,me){var K=Math.abs(re-j)/Math.max(0,me),$=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),le=K/$;return le>=M?$*=10:le>=T?$*=5:le>=A&&($*=2),re<j?-$:$}function B(j){return Math.ceil(Math.log(j.length)/Math.LN2)+1}function X(){var j=x,re=m,me=B;function K($){var le,we=$.length,Ne,$e=new Array(we);for(le=0;le<we;++le)$e[le]=j($[le],le,$);var er=re($e),ir=er[0],sr=er[1],Pe=me($e,ir,sr);Array.isArray(Pe)||(Pe=z(ir,sr,Pe),Pe=_(Math.ceil(ir/Pe)*Pe,sr,Pe));for(var vr=Pe.length;Pe[0]<=ir;)Pe.shift(),--vr;for(;Pe[vr-1]>sr;)Pe.pop(),--vr;var hr=new Array(vr+1),dr;for(le=0;le<=vr;++le)dr=hr[le]=[],dr.x0=le>0?Pe[le-1]:ir,dr.x1=le<vr?Pe[le]:sr;for(le=0;le<we;++le)Ne=$e[le],ir<=Ne&&Ne<=sr&&hr[i(Pe,Ne,0,vr)].push($[le]);return hr}return K.value=function($){return arguments.length?(j=typeof $=="function"?$:C($),K):j},K.domain=function($){return arguments.length?(re=typeof $=="function"?$:C([$[0],$[1]]),K):re},K.thresholds=function($){return arguments.length?(me=typeof $=="function"?$:Array.isArray($)?C(y.call($)):C($),K):me},K}function H(j,re,me){if(me==null&&(me=c),!!(K=j.length)){if((re=+re)<=0||K<2)return+me(j[0],0,j);if(re>=1)return+me(j[K-1],K-1,j);var K,$=(K-1)*re,le=Math.floor($),we=+me(j[le],le,j),Ne=+me(j[le+1],le+1,j);return we+(Ne-we)*($-le)}}function V(j,re,me){return j=b.call(j,c).sort(r),Math.ceil((me-re)/(2*(H(j,.75)-H(j,.25))*Math.pow(j.length,-1/3)))}function I(j,re,me){return Math.ceil((me-re)/(3.5*d(j)*Math.pow(j.length,-1/3)))}function Q(j,re){var me=j.length,K=-1,$,le;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=$;++K<me;)($=j[K])!=null&&$>le&&(le=$)}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=$;++K<me;)($=re(j[K],K,j))!=null&&$>le&&(le=$);return le}function ne(j,re){var me=j.length,K=me,$=-1,le,we=0;if(re==null)for(;++$<me;)isNaN(le=c(j[$]))?--K:we+=le;else for(;++$<me;)isNaN(le=c(re(j[$],$,j)))?--K:we+=le;if(K)return we/K}function te(j,re){var me=j.length,K=-1,$,le=[];if(re==null)for(;++K<me;)isNaN($=c(j[K]))||le.push($);else for(;++K<me;)isNaN($=c(re(j[K],K,j)))||le.push($);return H(le.sort(r),.5)}function ee(j){for(var re=j.length,me,K=-1,$=0,le,we;++K<re;)$+=j[K].length;for(le=new Array($);--re>=0;)for(we=j[re],me=we.length;--me>=0;)le[--$]=we[me];return le}function fe(j,re){var me=j.length,K=-1,$,le;if(re==null){for(;++K<me;)if(($=j[K])!=null&&$>=$)for(le=$;++K<me;)($=j[K])!=null&&le>$&&(le=$)}else for(;++K<me;)if(($=re(j[K],K,j))!=null&&$>=$)for(le=$;++K<me;)($=re(j[K],K,j))!=null&&le>$&&(le=$);return le}function ve(j,re){for(var me=re.length,K=new Array(me);me--;)K[me]=j[re[me]];return K}function Ae(j,re){if(me=j.length){var me,K=0,$=0,le,we=j[$];for(re==null&&(re=r);++K<me;)(re(le=j[K],we)<0||re(we,we)!==0)&&(we=le,$=K);if(re(we,we)===0)return $}}function Ee(j,re,me){for(var K=(me==null?j.length:me)-(re=re==null?0:+re),$,le;K;)le=Math.random()*K--|0,$=j[K+re],j[K+re]=j[le+re],j[le+re]=$;return j}function Be(j,re){var me=j.length,K=-1,$,le=0;if(re==null)for(;++K<me;)($=+j[K])&&(le+=$);else for(;++K<me;)($=+re(j[K],K,j))&&(le+=$);return le}function Ue(j){if(!(le=j.length))return[];for(var re=-1,me=fe(j,ke),K=new Array(me);++re<me;)for(var $=-1,le,we=K[re]=new Array(le);++$<le;)we[$]=j[$][re];return K}function ke(j){return j.length}function We(){return Ue(arguments)}e.bisect=i,e.bisectRight=i,e.bisectLeft=o,e.ascending=r,e.bisector=t,e.cross=s,e.descending=f,e.deviation=d,e.extent=m,e.histogram=X,e.thresholdFreedmanDiaconis=V,e.thresholdScott=I,e.thresholdSturges=B,e.max=Q,e.mean=ne,e.median=te,e.merge=ee,e.min=fe,e.pairs=l,e.permute=ve,e.quantile=H,e.range=_,e.scan=Ae,e.shuffle=Ee,e.sum=Be,e.ticks=D,e.tickIncrement=P,e.tickStep=z,e.transpose=Ue,e.variance=h,e.zip=We,Object.defineProperty(e,"__esModule",{value:!0})}))});var HU=ae((X3,IU)=>{(function(e,r){typeof X3=="object"&&typeof IU!="undefined"?r(X3,I3(),BU()):r(e.d3=e.d3||{},e.d3,e.d3)})(X3,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,u=Math.floor,s=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(k){return k>0?1:k<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,M=x/4,T=Math.SQRT1_2,A=I(2),D=I(x),P=x*2,z=180/x,B=x/180;function X(k){return k?k/Math.sin(k):1}function H(k){return k>1?_:k<-1?-_:Math.asin(k)}function V(k){return k>1?0:k<-1?x:Math.acos(k)}function I(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function ne(k){return(l(k)-l(-k))/2}function te(k){return(l(k)+l(-k))/2}function ee(k){return s(k+I(k*k+1))}function fe(k){return s(k+I(k*k-1))}function ve(k){var E=y(k/2),q=2*s(o(k/2))/(E*E);function R(G,U){var W=o(G),ce=o(U),de=p(U),se=ce*W,pe=-((1-se?s((1+se)/2)/(1-se):-.5)+q/(1+se));return[pe*ce*p(G),pe*de]}return R.invert=function(G,U){var W=I(G*G+U*U),ce=-k/2,de=50,se;if(!W)return[0,0];do{var pe=ce/2,_e=o(pe),Se=p(pe),ze=Se/_e,Ke=-s(a(_e));ce-=se=(2/ze*Ke-q*ze-W)/(-Ke/(Se*Se)+1-q/(2*_e*_e))*(_e<0?.7:1)}while(a(se)>b&&--de>0);var or=p(ce);return[i(G*or,W*o(ce)),H(U*or/W)]},R}function Ae(){var k=_,E=r.geoProjectionMutator(ve),q=E(k);return q.radius=function(R){return arguments.length?E(k=R*B):k*z},q.scale(179.976).clipAngle(147)}function Ee(k,E){var q=o(E),R=X(V(q*o(k/=2)));return[2*q*p(k)*R,p(E)*R]}Ee.invert=function(k,E){if(!(k*k+4*E*E>x*x+b)){var q=k,R=E,G=25;do{var U=p(q),W=p(q/2),ce=o(q/2),de=p(R),se=o(R),pe=p(2*R),_e=de*de,Se=se*se,ze=W*W,Ke=1-Se*ce*ce,or=Ke?V(se*ce)*I(Tr=1/Ke):Tr=0,Tr,$r=2*or*se*W-k,ft=or*de-E,vt=Tr*(Se*ze+or*se*ce*_e),dt=Tr*(.5*U*pe-or*2*de*W),gt=Tr*.25*(pe*W-or*de*Se*U),sa=Tr*(_e*ce+or*ze*se),Ea=dt*gt-sa*vt;if(!Ea)break;var It=(ft*dt-$r*sa)/Ea,Va=($r*gt-ft*vt)/Ea;q-=It,R-=Va}while((a(It)>b||a(Va)>b)&&--G>0);return[q,R]}};function Be(){return r.geoProjection(Ee).scale(152.63)}function Ue(k){var E=p(k),q=o(k),R=k>=0?1:-1,G=y(R*k),U=(1+E-q)/2;function W(ce,de){var se=o(de),pe=o(ce/=2);return[(1+se)*p(ce),(R*de>-i(pe,G)-.001?0:-R*10)+U+p(de)*q-(1+se)*E*pe]}return W.invert=function(ce,de){var se=0,pe=0,_e=50;do{var Se=o(se),ze=p(se),Ke=o(pe),or=p(pe),Tr=1+Ke,$r=Tr*ze-ce,ft=U+or*q-Tr*E*Se-de,vt=Tr*Se/2,dt=-ze*or,gt=E*Tr*ze/2,sa=q*Ke+E*Se*or,Ea=dt*gt-sa*vt,It=(ft*dt-$r*sa)/Ea/2,Va=($r*gt-ft*vt)/Ea;a(Va)>2&&(Va/=2),se-=It,pe-=Va}while((a(It)>b||a(Va)>b)&&--_e>0);return R*pe>-i(o(se),G)-.001?[se*2,pe]:null},W}function ke(){var k=20*B,E=k>=0?1:-1,q=y(E*k),R=r.geoProjectionMutator(Ue),G=R(k),U=G.stream;return G.parallel=function(W){return arguments.length?(q=y((E=(k=W*B)>=0?1:-1)*k),R(k)):k*z},G.stream=function(W){var ce=G.rotate(),de=U(W),se=(G.rotate([0,0]),U(W)),pe=G.precision();return G.rotate(ce),de.sphere=function(){se.polygonStart(),se.lineStart();for(var _e=E*-180;E*_e<180;_e+=E*90)se.point(_e,E*90);if(k)for(;E*(_e-=3*E*pe)>=-180;)se.point(_e,E*-i(o(_e*B/2),q)*z);se.lineEnd(),se.polygonEnd()},de},G.scale(218.695).center([0,28.0974])}function We(k,E){var q=y(E/2),R=I(1-q*q),G=1+R*o(k/=2),U=p(k)*R/G,W=q/G,ce=U*U,de=W*W;return[4/3*U*(3+ce-3*de),4/3*W*(3+3*ce-de)]}We.invert=function(k,E){if(k*=3/8,E*=3/8,!k&&a(E)>1)return null;var q=k*k,R=E*E,G=1+q+R,U=I((G-I(G*G-4*E*E))/2),W=H(U)/3,ce=U?fe(a(E/U))/3:ee(a(k))/3,de=o(W),se=te(ce),pe=se*se-de*de;return[m(k)*2*i(ne(ce)*de,.25-pe),m(E)*2*i(se*p(W),.25+pe)]};function j(){return r.geoProjection(We).scale(66.1603)}var re=I(8),me=s(1+A);function K(k,E){var q=a(E);return q<M?[k,s(y(M+E/2))]:[k*o(q)*(2*A-1/p(q)),m(E)*(2*A*(q-M)-s(y(q/2)))]}K.invert=function(k,E){if((U=a(E))<me)return[k,2*n(l(E))-_];var q=M,R=25,G,U;do{var W=o(q/2),ce=y(q/2);q-=G=(re*(q-M)-s(ce)-U)/(re-W*W/(2*ce))}while(a(G)>C&&--R>0);return[k/(o(q)*(re-1/p(q))),m(E)*q]};function $(){return r.geoProjection(K).scale(112.314)}function le(k){var E=2*x/k;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var W=i(U[1],U[0]),ce=I(U[0]*U[0]+U[1]*U[1]),de=E*d((W-_)/E)+_,se=i(p(W-=de),2-o(W));W=de+H(x/ce*p(se))-se,U[0]=ce*o(W),U[1]=ce*p(W)}return U}return q.invert=function(R,G){var U=I(R*R+G*G);if(U>_){var W=i(G,R),ce=E*d((W-_)/E)+_,de=W>ce?-1:1,se=U*o(ce-W),pe=1/y(de*V((se-x)/I(x*(x-2*se)+U*U)));W=ce+2*n((pe+de*I(pe*pe-3))/3),R=U*o(W),G=U*p(W)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function we(){var k=5,E=r.geoProjectionMutator(le),q=E(k),R=q.stream,G=.01,U=-o(G*B),W=p(G*B);return q.lobes=function(ce){return arguments.length?E(k=+ce):k},q.stream=function(ce){var de=q.rotate(),se=R(ce),pe=(q.rotate([0,0]),R(ce));return q.rotate(de),se.sphere=function(){pe.polygonStart(),pe.lineStart();for(var _e=0,Se=360/k,ze=2*x/k,Ke=90-180/k,or=_;_e<k;++_e,Ke-=Se,or-=ze)pe.point(i(W*o(or),U)*z,H(W*p(or))*z),Ke<-90?(pe.point(-90,-180-Ke-G),pe.point(-90,-180-Ke+G)):(pe.point(90,Ke+G),pe.point(90,Ke-G));pe.lineEnd(),pe.polygonEnd()},se},q.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Ne(k,E){if(arguments.length<2&&(E=k),E===1)return r.geoAzimuthalEqualAreaRaw;if(E===1/0)return $e;function q(R,G){var U=r.geoAzimuthalEqualAreaRaw(R/E,G);return U[0]*=k,U}return q.invert=function(R,G){var U=r.geoAzimuthalEqualAreaRaw.invert(R/k,G);return U[0]*=E,U},q}function $e(k,E){return[k*o(E)/o(E/=2),2*p(E)]}$e.invert=function(k,E){var q=2*H(E/2);return[k*o(q/2)/o(q),q]};function er(){var k=2,E=r.geoProjectionMutator(Ne),q=E(k);return q.coefficient=function(R){return arguments.length?E(k=+R):k},q.scale(169.529)}function ir(k,E,q){var R=100,G,U,W;q=q===void 0?0:+q,E=+E;do U=k(q),W=k(q+b),U===W&&(W=U+b),q-=G=-1*b*(U-E)/(U-W);while(R-- >0&&a(G)>b);return R<0?NaN:q}function sr(k,E,q){return E===void 0&&(E=40),q===void 0&&(q=C),function(R,G,U,W){var ce,de,se;U=U===void 0?0:+U,W=W===void 0?0:+W;for(var pe=0;pe<E;pe++){var _e=k(U,W),Se=_e[0]-R,ze=_e[1]-G;if(a(Se)<q&&a(ze)<q)break;var Ke=Se*Se+ze*ze;if(Ke>ce){U-=de/=2,W-=se/=2;continue}ce=Ke;var or=(U>0?-1:1)*q,Tr=(W>0?-1:1)*q,$r=k(U+or,W),ft=k(U,W+Tr),vt=($r[0]-_e[0])/or,dt=($r[1]-_e[1])/or,gt=(ft[0]-_e[0])/Tr,sa=(ft[1]-_e[1])/Tr,Ea=sa*vt-dt*gt,It=(a(Ea)<.5?.5:1)/Ea;if(de=(ze*gt-Se*sa)*It,se=(Se*dt-ze*vt)*It,U+=de,W+=se,a(de)<q&&a(se)<q)break}return[U,W]}}function Pe(){var k=Ne(1.68,2),E=1.4,q=12;function R(G,U){if(G+U<-E){var W=(G-U+1.6)*(G+U+E)/8;G+=W,U-=.8*W*p(U+x/2)}var ce=k(G,U),de=(1-o(G*U))/q;return ce[1]<0&&(ce[0]*=1+de),ce[1]>0&&(ce[1]*=1+de/1.5*ce[0]*ce[0]),ce}return R.invert=sr(R),R}function vr(){return r.geoProjection(Pe()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function hr(k,E){var q=k*p(E),R=30,G;do E-=G=(E+p(E)-q)/(1+o(E));while(a(G)>b&&--R>0);return E/2}function dr(k,E,q){function R(G,U){return[k*G*o(U=hr(q,U)),E*p(U)]}return R.invert=function(G,U){return U=H(U/E),[G/(k*o(U)),H((2*U+p(2*U))/q)]},R}var Ze=dr(A/_,A,x);function fr(){return r.geoProjection(Ze).scale(169.529)}var Dr=2.00276,Te=1.11072;function Oe(k,E){var q=hr(x,E);return[Dr*k/(1/o(E)+Te/o(q)),(E+A*p(q))/Dr]}Oe.invert=function(k,E){var q=Dr*E,R=E<0?-M:M,G=25,U,W;do W=q-A*p(R),R-=U=(p(2*R)+2*R-x*p(W))/(2*o(2*R)+2+x*o(W)*A*o(R));while(a(U)>b&&--G>0);return W=q-A*p(R),[k*(1/o(W)+Te/o(R))/Dr,W]};function Mr(){return r.geoProjection(Oe).scale(160.857)}function Nr(k){var E=0,q=r.geoProjectionMutator(k),R=q(E);return R.parallel=function(G){return arguments.length?q(E=G*B):E*z},R}function Qe(k,E){return[k*o(E),E]}Qe.invert=function(k,E){return[k/o(E),E]};function Ie(){return r.geoProjection(Qe).scale(152.63)}function Xe(k){if(!k)return Qe;var E=1/y(k);function q(R,G){var U=E+k-G,W=U&&R*o(G)/U;return[U*p(W),E-U*o(W)]}return q.invert=function(R,G){var U=I(R*R+(G=E-G)*G),W=E+k-U;return[U/o(W)*i(R,G),W]},q}function yr(){return Nr(Xe).scale(123.082).center([0,26.1441]).parallel(45)}function kr(k){function E(q,R){var G=_-R,U=G&&q*k*p(G)/G;return[G*p(U)/k,_-G*o(U)]}return E.invert=function(q,R){var G=q*k,U=_-R,W=I(G*G+U*U),ce=i(G,U);return[(W?W/p(W):1)*ce/k,_-W]},E}function pr(){var k=.5,E=r.geoProjectionMutator(kr),q=E(k);return q.fraction=function(R){return arguments.length?E(k=+R):k},q.scale(158.837)}var xr=dr(1,4/x,x);function Pr(){return r.geoProjection(xr).scale(152.63)}function Lr(k,E,q,R,G,U){var W=o(U),ce;if(a(k)>1||a(U)>1)ce=V(q*G+E*R*W);else{var de=p(k/2),se=p(U/2);ce=2*H(I(de*de+E*R*se*se))}return a(ce)>b?[ce,i(R*p(U),E*G-q*R*W)]:[0,0]}function Hr(k,E,q){return V((k*k+E*E-q*q)/(2*k*E))}function tr(k){return k-2*x*u((k+x)/(2*x))}function Cr(k,E,q){for(var R=[[k[0],k[1],p(k[1]),o(k[1])],[E[0],E[1],p(E[1]),o(E[1])],[q[0],q[1],p(q[1]),o(q[1])]],G=R[2],U,W=0;W<3;++W,G=U)U=R[W],G.v=Lr(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ce=Hr(R[0].v[0],R[2].v[0],R[1].v[0]),de=Hr(R[0].v[0],R[1].v[0],R[2].v[0]),se=x-ce;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var pe=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ce),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ce))];function _e(Se,ze){var Ke=p(ze),or=o(ze),Tr=new Array(3),$r;for($r=0;$r<3;++$r){var ft=R[$r];if(Tr[$r]=Lr(ze-ft[1],ft[3],ft[2],or,Ke,Se-ft[0]),!Tr[$r][0])return ft.point;Tr[$r][1]=tr(Tr[$r][1]-ft.v[1])}var vt=pe.slice();for($r=0;$r<3;++$r){var dt=$r==2?0:$r+1,gt=Hr(R[$r].v[0],Tr[$r][0],Tr[dt][0]);Tr[$r][1]<0&&(gt=-gt),$r?$r==1?(gt=de-gt,vt[0]-=Tr[$r][0]*o(gt),vt[1]-=Tr[$r][0]*p(gt)):(gt=se-gt,vt[0]+=Tr[$r][0]*o(gt),vt[1]+=Tr[$r][0]*p(gt)):(vt[0]+=Tr[$r][0]*o(gt),vt[1]-=Tr[$r][0]*p(gt))}return vt[0]/=3,vt[1]/=3,vt}return _e}function cr(k){return k[0]*=B,k[1]*=B,k}function Xr(){return Kr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Kr(k,E,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,E,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),W=Cr(cr(U(k)),cr(U(E)),cr(U(q)));W.invert=sr(W);var ce=r.geoProjection(W).rotate(G),de=ce.center;return delete ce.rotate,ce.center=function(se){return arguments.length?de(U(se)):U.invert(de())},ce.clipAngle(90)}function Fr(k,E){var q=I(1-p(E));return[2/D*k*q,D*(1-q)]}Fr.invert=function(k,E){var q=(q=E/D-1)*q;return[q>0?k*I(x/q)/2:0,H(1-q)]};function Wr(){return r.geoProjection(Fr).scale(95.6464).center([0,30])}function Me(k){var E=y(k);function q(R,G){return[R,(R?R/p(R):1)*(p(G)*o(R)-E*o(G))]}return q.invert=E?function(R,G){R&&(G*=p(R)/R);var U=o(R);return[R,2*i(I(U*U+E*E-G*G)-U,E-G)]}:function(R,G){return[R,H(R?G*y(R)/R:G)]},q}function Re(){return Nr(Me).scale(249.828).clipAngle(90)}var ur=I(3);function gr(k,E){return[ur*k*(2*o(2*E/3)-1)/D,ur*D*p(E/3)]}gr.invert=function(k,E){var q=3*H(E/(ur*D));return[D*k/(ur*(2*o(2*q/3)-1)),q]};function Nt(){return r.geoProjection(gr).scale(156.19)}function Gt(k){var E=o(k);function q(R,G){return[R*E,p(G)/E]}return q.invert=function(R,G){return[R/E,H(G*E)]},q}function na(){return Nr(Gt).parallel(38.58).scale(195.044)}function Aa(k){var E=o(k);function q(R,G){return[R*E,(1+E)*y(G/2)]}return q.invert=function(R,G){return[R/E,n(G/(1+E))*2]},q}function Bt(){return Nr(Aa).scale(124.75)}function jt(k,E){var q=I(8/(3*x));return[q*k*(1-a(E)/x),q*E]}jt.invert=function(k,E){var q=I(8/(3*x)),R=E/q;return[k/(q*(1-a(R)/x)),R]};function da(){return r.geoProjection(jt).scale(165.664)}function Kt(k,E){var q=I(4-3*p(a(E)));return[2/I(6*x)*k*q,m(E)*I(2*x/3)*(2-q)]}Kt.invert=function(k,E){var q=2-a(E)/I(2*x/3);return[k*I(6*x)/(2*q),m(E)*H((4-q*q)/3)]};function mn(){return r.geoProjection(Kt).scale(165.664)}function rn(k,E){var q=I(x*(4+x));return[2/q*k*(1+I(1-4*E*E/(x*x))),4/q*E]}rn.invert=function(k,E){var q=I(x*(4+x))/2;return[k*q/(1+I(1-E*E*(4+x)/(4*x))),E*q/2]};function Un(){return r.geoProjection(rn).scale(180.739)}function Jr(k,E){var q=(2+_)*p(E);E/=2;for(var R=0,G=1/0;R<10&&a(G)>b;R++){var U=o(E);E-=G=(E+p(E)*(U+2)-q)/(2*U*(1+U))}return[2/I(x*(4+x))*k*(1+o(E)),2*I(x/(4+x))*p(E)]}Jr.invert=function(k,E){var q=E*I((4+x)/x)/2,R=H(q),G=o(R);return[k/(2/I(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function ua(){return r.geoProjection(Jr).scale(180.739)}function Rt(k,E){return[k*(1+o(E))/I(2+x),2*E/I(2+x)]}Rt.invert=function(k,E){var q=I(2+x),R=E*q/2;return[q*k/(1+o(R)),R]};function pa(){return r.geoProjection(Rt).scale(173.044)}function ya(k,E){for(var q=(1+_)*p(E),R=0,G=1/0;R<10&&a(G)>b;R++)E-=G=(E+p(E)-q)/(1+o(E));return q=I(2+x),[k*(1+o(E))/q,2*E/q]}ya.invert=function(k,E){var q=1+_,R=I(q/2);return[k*2*R/(1+o(E*=R)),H((E+p(E))/q)]};function ba(){return r.geoProjection(ya).scale(173.044)}var Yt=3+2*A;function za(k,E){var q=p(k/=2),R=o(k),G=I(o(E)),U=o(E/=2),W=p(E)/(U+A*R*G),ce=I(2/(1+W*W)),de=I((A*U+(R+q)*G)/(A*U+(R-q)*G));return[Yt*(ce*(de-1/de)-2*s(de)),Yt*(ce*W*(de+1/de)-2*n(W))]}za.invert=function(k,E){if(!(U=We.invert(k/1.2,E*1.065)))return null;var q=U[0],R=U[1],G=20,U;k/=Yt,E/=Yt;do{var W=q/2,ce=R/2,de=p(W),se=o(W),pe=p(ce),_e=o(ce),Se=o(R),ze=I(Se),Ke=pe/(_e+A*se*ze),or=Ke*Ke,Tr=I(2/(1+or)),$r=A*_e+(se+de)*ze,ft=A*_e+(se-de)*ze,vt=$r/ft,dt=I(vt),gt=dt-1/dt,sa=dt+1/dt,Ea=Tr*gt-2*s(dt)-k,It=Tr*Ke*sa-2*n(Ke)-E,Va=pe&&T*ze*de*or/pe,Sn=(A*se*_e+ze)/(2*(_e+A*se*ze)*(_e+A*se*ze)*ze),Ci=-.5*Ke*Tr*Tr*Tr,Tl=Ci*Va,bs=Ci*Sn,Gn=(Gn=2*_e+A*ze*(se-de))*Gn*dt,Yn=(A*se*_e*ze+Se)/Gn,fo=-(A*de*pe)/(ze*Gn),kl=gt*Tl-2*Yn/dt+Tr*(Yn+Yn/vt),Cl=gt*bs-2*fo/dt+Tr*(fo+fo/vt),Sl=Ke*sa*Tl-2*Va/(1+or)+Tr*sa*Va+Tr*Ke*(Yn-Yn/vt),yu=Ke*sa*bs-2*Sn/(1+or)+Tr*sa*Sn+Tr*Ke*(fo-fo/vt),Ro=Cl*Sl-yu*kl;if(!Ro)break;var _s=(It*Cl-Ea*yu)/Ro,T0=(Ea*Sl-It*kl)/Ro;q-=_s,R=f(-_,c(_,R-T0))}while((a(_s)>b||a(T0)>b)&&--G>0);return a(a(R)-_)<b?[0,R]:G&&[q,R]};function gn(){return r.geoProjection(za).scale(62.5271)}var ma=o(35*B);function aa(k,E){var q=y(E/2);return[k*ma*I(1-q*q),(1+ma)*q]}aa.invert=function(k,E){var q=E/(1+ma);return[k&&k/(ma*I(1-q*q)),2*n(q)]};function La(){return r.geoProjection(aa).scale(137.152)}function Sa(k,E){var q=E/2,R=o(q);return[2*k/D*o(E)*R*R,D*y(q)]}Sa.invert=function(k,E){var q=n(E/D),R=o(q),G=2*q;return[k*D/2/(o(G)*R*R),G]};function ko(){return r.geoProjection(Sa).scale(135.264)}function qi(k){var E=1-k,q=U(x,0)[0]-U(-x,0)[0],R=U(0,_)[1]-U(0,-_)[1],G=I(2*R/q);function U(de,se){var pe=o(se),_e=p(se);return[pe/(E+k*pe)*de,E*se+k*_e]}function W(de,se){var pe=U(de,se);return[pe[0]*G,pe[1]/G]}function ce(de){return W(0,de)[1]}return W.invert=function(de,se){var pe=ir(ce,se),_e=de/G*(k+E/o(pe));return[_e,pe]},W}function Xu(){var k=.5,E=r.geoProjectionMutator(qi),q=E(k);return q.alpha=function(R){return arguments.length?E(k=+R):k},q.scale(168.725)}function Ql(k){return[k[0]/2,H(y(k[1]/2*B))*z]}function ul(k){return[k[0]*2,2*n(p(k[1]*B))*z]}function Wu(k){k==null&&(k=r.geoOrthographic);var E=k(),q=r.geoEquirectangular().scale(z).precision(0).clipAngle(null).translate([0,0]);function R(U){return E(Ql(U))}E.invert&&(R.invert=function(U){return ul(E.invert(U))}),R.stream=function(U){var W=E.stream(U),ce=q.stream({point:function(de,se){W.point(de/2,H(y(-se/2*B))*z)},lineStart:function(){W.lineStart()},lineEnd:function(){W.lineEnd()},polygonStart:function(){W.polygonStart()},polygonEnd:function(){W.polygonEnd()}});return ce.sphere=W.sphere,ce};function G(U){R[U]=function(){return arguments.length?(E[U].apply(E,arguments),R):E[U]()}}return R.rotate=function(U){return arguments.length?(q.rotate(U),R):q.rotate()},R.center=function(U){return arguments.length?(E.center(Ql(U)),R):ul(E.center())},G("angle"),G("clipAngle"),G("clipExtent"),G("fitExtent"),G("fitHeight"),G("fitSize"),G("fitWidth"),G("scale"),G("translate"),G("precision"),R.scale(249.5)}function sl(k,E){var q=2*x/E,R=k*k;function G(U,W){var ce=r.geoAzimuthalEquidistantRaw(U,W),de=ce[0],se=ce[1],pe=de*de+se*se;if(pe>R){var _e=I(pe),Se=i(se,de),ze=q*d(Se/q),Ke=Se-ze,or=k*o(Ke),Tr=(k*p(Ke)-Ke*p(or))/(_-or),$r=$a(Ke,Tr),ft=(x-k)/Pi($r,or,x);de=_e;var vt=50,dt;do de-=dt=(k+Pi($r,or,de)*ft-_e)/($r(de)*ft);while(a(dt)>b&&--vt>0);se=Ke*p(de),de<_&&(se-=Tr*(de-_));var gt=p(ze),sa=o(ze);ce[0]=de*sa-se*gt,ce[1]=de*gt+se*sa}return ce}return G.invert=function(U,W){var ce=U*U+W*W;if(ce>R){var de=I(ce),se=i(W,U),pe=q*d(se/q),_e=se-pe;U=de*o(_e),W=de*p(_e);for(var Se=U-_,ze=p(U),Ke=W/ze,or=U<_?1/0:0,Tr=10;;){var $r=k*p(Ke),ft=k*o(Ke),vt=p(ft),dt=_-ft,gt=($r-Ke*vt)/dt,sa=$a(Ke,gt);if(a(or)<C||!--Tr)break;Ke-=or=(Ke*ze-gt*Se-W)/(ze-Se*2*(dt*(ft+Ke*$r*o(ft)-vt)-$r*($r-Ke*vt))/(dt*dt))}de=k+Pi(sa,ft,U)*(x-k)/Pi(sa,ft,x),se=pe+Ke,U=de*o(se),W=de*p(se)}return r.geoAzimuthalEquidistantRaw.invert(U,W)},G}function $a(k,E){return function(q){var R=k*o(q);return q<_&&(R-=E),I(1+R*R)}}function Pi(k,E,q){for(var R=50,G=(q-E)/R,U=k(E)+k(q),W=1,ce=E;W<R;++W)U+=2*k(ce+=G);return U*.5*G}function fl(){var k=6,E=30*B,q=o(E),R=p(E),G=r.geoProjectionMutator(sl),U=G(E,k),W=U.stream,ce=.01,de=-o(ce*B),se=p(ce*B);return U.radius=function(pe){return arguments.length?(q=o(E=pe*B),R=p(E),G(E,k)):E*z},U.lobes=function(pe){return arguments.length?G(E,k=+pe):k},U.stream=function(pe){var _e=U.rotate(),Se=W(pe),ze=(U.rotate([0,0]),W(pe));return U.rotate(_e),Se.sphere=function(){ze.polygonStart(),ze.lineStart();for(var Ke=0,or=2*x/k,Tr=0;Ke<k;++Ke,Tr-=or)ze.point(i(se*o(Tr),de)*z,H(se*p(Tr))*z),ze.point(i(R*o(Tr-or/2),q)*z,H(R*p(Tr-or/2))*z);ze.lineEnd(),ze.polygonEnd()},Se},U.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function Ri(k,E,q,R,G,U,W,ce){arguments.length<8&&(ce=0);function de(se,pe){if(!pe)return[k*se/x,0];var _e=pe*pe,Se=k+_e*(E+_e*(q+_e*R)),ze=pe*(G-1+_e*(U-ce+_e*W)),Ke=(Se*Se+ze*ze)/(2*ze),or=se*H(Se/Ke)/x;return[Ke*p(or),pe*(1+_e*ce)+Ke*(1-o(or))]}return de.invert=function(se,pe){var _e=x*se/k,Se=pe,ze,Ke,or=50;do{var Tr=Se*Se,$r=k+Tr*(E+Tr*(q+Tr*R)),ft=Se*(G-1+Tr*(U-ce+Tr*W)),vt=$r*$r+ft*ft,dt=2*ft,gt=vt/dt,sa=gt*gt,Ea=H($r/gt)/x,It=_e*Ea,Va=$r*$r,Sn=(2*E+Tr*(4*q+Tr*6*R))*Se,Ci=G+Tr*(3*U+Tr*5*W),Tl=2*($r*Sn+ft*(Ci-1)),bs=2*(Ci-1),Gn=(Tl*dt-vt*bs)/(dt*dt),Yn=o(It),fo=p(It),kl=gt*Yn,Cl=gt*fo,Sl=_e/x*(1/I(1-Va/sa))*(Sn*gt-$r*Gn)/sa,yu=Cl-se,Ro=Se*(1+Tr*ce)+gt-kl-pe,_s=Gn*fo+kl*Sl,T0=kl*Ea,v=1+Gn-(Gn*Yn-Cl*Sl),g=Cl*Ea,w=_s*g-v*T0;if(!w)break;_e-=ze=(Ro*_s-yu*v)/w,Se-=Ke=(yu*g-Ro*T0)/w}while((a(ze)>b||a(Ke)>b)&&--or>0);return[_e,Se]},de}var Mi=Ri(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function eu(){return r.geoProjection(Mi).scale(149.995)}var ru=Ri(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function ju(){return r.geoProjection(ru).scale(153.93)}var tu=Ri(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Zu(){return r.geoProjection(tu).scale(130.945)}function it(k,E){var q=k*k,R=E*E;return[k*(1-.162388*R)*(.87-952426e-9*q*q),E*(1+R/12)]}it.invert=function(k,E){var q=k,R=E,G=50,U;do{var W=R*R;R-=U=(R*(1+W/12)-E)/(1+W/4)}while(a(U)>b&&--G>0);G=50,k/=1-.162388*W;do{var ce=(ce=q*q)*ce;q-=U=(q*(.87-952426e-9*ce)-k)/(.87-.00476213*ce)}while(a(U)>b&&--G>0);return[q,R]};function lt(){return r.geoProjection(it).scale(131.747)}var Ot=Ri(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Or(){return r.geoProjection(Ot).scale(131.087)}function vn(k){var E=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,W=k(R+U*x,G);return W[0]-=U*E,W}return k.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,W=k.invert(R+U*E,G),ce=W[0]-U*x;return ce<-x?ce+=2*x:ce>x&&(ce-=2*x),W[0]=ce,W}),q}function ia(k,E){var q=m(k),R=m(E),G=o(E),U=o(k)*G,W=p(k)*G,ce=p(R*E);k=a(i(W,ce)),E=H(U),a(k-_)>b&&(k%=_);var de=Ha(k>x/4?_-k:k,E);return k>x/4&&(ce=de[0],de[0]=-de[1],de[1]=-ce),de[0]*=q,de[1]*=-R,de}ia.invert=function(k,E){a(k)>1&&(k=m(k)*2-k),a(E)>1&&(E=m(E)*2-E);var q=m(k),R=m(E),G=-q*k,U=-R*E,W=U/G<1,ce=Ga(W?U:G,W?G:U),de=ce[0],se=ce[1],pe=o(se);return W&&(de=-_-de),[q*(i(p(de)*pe,-p(se))+x),R*H(o(de)*pe)]};function Ha(k,E){if(E===_)return[0,0];var q=p(E),R=q*q,G=R*R,U=1+G,W=1+3*G,ce=1-G,de=H(1/I(U)),se=ce+R*U*de,pe=(1-q)/se,_e=I(pe),Se=pe*U,ze=I(Se),Ke=_e*ce,or,Tr;if(k===0)return[0,-(Ke+R*ze)];var $r=o(E),ft=1/$r,vt=2*q*$r,dt=(-3*R+de*W)*vt,gt=(-se*$r-(1-q)*dt)/(se*se),sa=.5*gt/_e,Ea=ce*sa-2*R*_e*vt,It=R*U*gt+pe*W*vt,Va=-ft*vt,Sn=-ft*It,Ci=-2*ft*Ea,Tl=4*k/x,bs;if(k>.222*x||E<x/4&&k>.175*x){if(or=(Ke+R*I(Se*(1+G)-Ke*Ke))/(1+G),k>x/4)return[or,or];var Gn=or,Yn=.5*or;or=.5*(Yn+Gn),Tr=50;do{var fo=I(Se-or*or),kl=or*(Ci+Va*fo)+Sn*H(or/ze)-Tl;if(!kl)break;kl<0?Yn=or:Gn=or,or=.5*(Yn+Gn)}while(a(Gn-Yn)>b&&--Tr>0)}else{or=b,Tr=25;do{var Cl=or*or,Sl=I(Se-Cl),yu=Ci+Va*Sl,Ro=or*yu+Sn*H(or/ze)-Tl,_s=yu+(Sn-Va*Cl)/Sl;or-=bs=Sl?Ro/_s:0}while(a(bs)>b&&--Tr>0)}return[or,-Ke-R*I(Se-or*or)]}function Ga(k,E){for(var q=0,R=1,G=.5,U=50;;){var W=G*G,ce=I(G),de=H(1/I(1+W)),se=1-W+G*(1+W)*de,pe=(1-ce)/se,_e=I(pe),Se=pe*(1+W),ze=_e*(1-W),Ke=Se-k*k,or=I(Ke),Tr=E+ze+G*or;if(a(R-q)<C||--U===0||Tr===0)break;Tr>0?q=G:R=G,G=.5*(q+R)}if(!U)return null;var $r=H(ce),ft=o($r),vt=1/ft,dt=2*ce*ft,gt=(-3*G+de*(1+3*W))*dt,sa=(-se*ft-(1-ce)*gt)/(se*se),Ea=.5*sa/_e,It=(1-W)*Ea-2*G*_e*dt,Va=-2*vt*It,Sn=-vt*dt,Ci=-vt*(G*(1+W)*sa+pe*(1+3*W)*dt);return[x/4*(k*(Va+Sn*or)+Ci*H(k/I(Se))),$r]}function zn(){return r.geoProjection(vn(ia)).scale(239.75)}function cl(k,E,q){var R,G,U;return k?(R=au(k,q),E?(G=au(E,1-q),U=G[1]*G[1]+q*R[0]*R[0]*G[0]*G[0],[[R[0]*G[2]/U,R[1]*R[2]*G[0]*G[1]/U],[R[1]*G[1]/U,-R[0]*R[2]*G[0]*G[2]/U],[R[2]*G[1]*G[2]/U,-q*R[0]*R[1]*G[0]/U]]):[[R[0],0],[R[1],0],[R[2],0]]):(G=au(E,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function au(k,E){var q,R,G,U,W;if(E<b)return U=p(k),R=o(k),q=E*(k-U*R)/4,[U-q*R,R+q*U,1-E*U*U/2,k-q];if(E>=1-b)return q=(1-E)/4,R=te(k),U=Q(k),G=1/R,W=R*ne(k),[U+q*(W-k)/(R*R),G-q*U*G*(W-k),G+q*U*G*(W+k),2*n(l(k))-_+q*(W-k)/R];var ce=[1,0,0,0,0,0,0,0,0],de=[I(E),0,0,0,0,0,0,0,0],se=0;for(R=I(1-E),W=1;a(de[se]/ce[se])>b&&se<8;)q=ce[se++],de[se]=(q-R)/2,ce[se]=(q+R)/2,R=I(q*R),W*=2;G=W*ce[se]*k;do U=de[se]*p(R=G)/ce[se],G=(H(U)+G)/2;while(--se);return[p(G),U=o(G),U/o(G-R),G]}function nu(k,E,q){var R=a(k),G=a(E),U=ne(G);if(R){var W=1/p(R),ce=1/(y(R)*y(R)),de=-(ce+q*(U*U*W*W)-1+q),se=(q-1)*ce,pe=(-de+I(de*de-4*se))/2;return[zi(n(1/I(pe)),q)*m(k),zi(n(I((pe/ce-1)/q)),1-q)*m(E)]}return[0,zi(n(U),1-q)*m(E)]}function zi(k,E){if(!E)return k;if(E===1)return s(y(k/2+M));for(var q=1,R=I(1-E),G=I(E),U=0;a(G)>b;U++){if(k%x){var W=n(R*y(k)/q);W<0&&(W+=x),k+=W+~~(k/x)*x}else k+=k;G=(q+R)/2,R=I(q*R),G=((q=G)-R)/2}return k/(h(2,U)*q)}function Co(k,E){var q=(A-1)/(A+1),R=I(1-q*q),G=zi(_,R*R),U=-1,W=s(y(x/4+a(E)/2)),ce=l(U*W)/I(q),de=vl(ce*o(U*k),ce*p(U*k)),se=nu(de[0],de[1],R*R);return[-se[1],(E>=0?1:-1)*(.5*G-se[0])]}function vl(k,E){var q=k*k,R=E+1,G=1-q-E*E;return[.5*((k>=0?_:-_)-i(G,2*k)),-.25*s(G*G+4*q)+.5*s(R*R+q)]}function iu(k,E){var q=E[0]*E[0]+E[1]*E[1];return[(k[0]*E[0]+k[1]*E[1])/q,(k[1]*E[0]-k[0]*E[1])/q]}Co.invert=function(k,E){var q=(A-1)/(A+1),R=I(1-q*q),G=zi(_,R*R),U=-1,W=cl(.5*G-E,-k,R*R),ce=iu(W[0],W[1]),de=i(ce[1],ce[0])/U;return[de,2*n(l(.5/U*s(q*ce[0]*ce[0]+q*ce[1]*ce[1])))-_]};function Ju(){return r.geoProjection(vn(Co)).scale(151.496)}function t0(k){var E=p(k),q=o(k),R=Nc(k);R.invert=Nc(-k);function G(U,W){var ce=R(U,W);U=ce[0],W=ce[1];var de=p(W),se=o(W),pe=o(U),_e=V(E*de+q*se*pe),Se=p(_e),ze=a(Se)>b?_e/Se:1;return[ze*q*p(U),(a(U)>_?ze:-ze)*(E*se-q*de*pe)]}return G.invert=function(U,W){var ce=I(U*U+W*W),de=-p(ce),se=o(ce),pe=ce*se,_e=-W*de,Se=ce*E,ze=I(pe*pe+_e*_e-Se*Se),Ke=i(pe*Se+_e*ze,_e*Se-pe*ze),or=(ce>_?-1:1)*i(U*de,ce*o(Ke)*se+W*p(Ke)*de);return R.invert(or,Ke)},G}function Nc(k){var E=p(k),q=o(k);return function(R,G){var U=o(G),W=o(R)*U,ce=p(R)*U,de=p(G);return[i(ce,W*q-de*E),H(de*q+W*E)]}}function $u(){var k=0,E=r.geoProjectionMutator(t0),q=E(k),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(W){if(!arguments.length)return k*z;var ce=q.rotate();return E(k=W*B).rotate(ce)},q.rotate=function(W){return arguments.length?(R.call(q,[W[0],W[1]-k*z]),U.center([-W[0],-W[1]]),q):(W=R.call(q),W[1]+=k*z,W)},q.stream=function(W){return W=G(W),W.sphere=function(){W.polygonStart();var ce=.01,de=U.radius(90-ce)().coordinates[0],se=de.length-1,pe=-1,_e;for(W.lineStart();++pe<se;)W.point((_e=de[pe])[0],_e[1]);for(W.lineEnd(),de=U.radius(90+ce)().coordinates[0],se=de.length-1,W.lineStart();--pe>=0;)W.point((_e=de[pe])[0],_e[1]);W.lineEnd(),W.polygonEnd()},W},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ku=3,Qu=H(1-1/Ku)*z,hl=Gt(0);function So(k){var E=Qu*B,q=Fr(x,E)[0]-Fr(-x,E)[0],R=hl(0,E)[1],G=Fr(0,E)[1],U=D-G,W=P/k,ce=4/P,de=R+U*U*4/P;function se(pe,_e){var Se,ze=a(_e);if(ze>E){var Ke=c(k-1,f(0,u((pe+x)/W)));pe+=x*(k-1)/k-Ke*W,Se=Fr(pe,ze),Se[0]=Se[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,Se[1]=R+(Se[1]-G)*4*U/P,_e<0&&(Se[1]=-Se[1])}else Se=hl(pe,_e);return Se[0]*=ce,Se[1]/=de,Se}return se.invert=function(pe,_e){pe/=ce,_e*=de;var Se=a(_e);if(Se>R){var ze=c(k-1,f(0,u((pe+x)/W)));pe=(pe+x*(k-1)/k-ze*W)*q/P;var Ke=Fr.invert(pe,.25*(Se-R)*P/U+G);return Ke[0]-=x*(k-1)/k-ze*W,_e<0&&(Ke[1]=-Ke[1]),Ke}return hl.invert(pe,_e)},se}function Eo(k,E){return[k,E&1?90-b:Qu]}function to(k,E){return[k,E&1?-90+b:-Qu]}function a0(k){return[k[0]*(1-b),k[1]]}function Gs(k){var E=[].concat(t.range(-180,180+k/2,k).map(Eo),t.range(180,-180-k/2,-k).map(to));return{type:"Polygon",coordinates:[k===180?E.map(a0):E]}}function ou(){var k=4,E=r.geoProjectionMutator(So),q=E(k),R=q.stream;return q.lobes=function(G){return arguments.length?E(k=+G):k},q.stream=function(G){var U=q.rotate(),W=R(G),ce=(q.rotate([0,0]),R(G));return q.rotate(U),W.sphere=function(){r.geoStream(Gs(180/k),ce)},W},q.scale(239.75)}function n0(k){var E=1+k,q=p(1/E),R=H(q),G=2*I(x/(U=x+4*R*E)),U,W=.5*G*(E+I(k*(2+k))),ce=k*k,de=E*E;function se(pe,_e){var Se=1-p(_e),ze,Ke;if(Se&&Se<2){var or=_-_e,Tr=25,$r;do{var ft=p(or),vt=o(or),dt=R+i(ft,E-vt),gt=1+de-2*E*vt;or-=$r=(or-ce*R-E*ft+gt*dt-.5*Se*U)/(2*E*ft*dt)}while(a($r)>C&&--Tr>0);ze=G*I(gt),Ke=pe*dt/x}else ze=G*(k+Se),Ke=pe*R/x;return[ze*p(Ke),W-ze*o(Ke)]}return se.invert=function(pe,_e){var Se=pe*pe+(_e-=W)*_e,ze=(1+de-Se/(G*G))/(2*E),Ke=V(ze),or=p(Ke),Tr=R+i(or,E-ze);return[H(pe/I(Se))*x/Tr,H(1-2*(Ke-ce*R-E*or+(1+de-2*E*ze)*Tr)/U)]},se}function Bc(){var k=1,E=r.geoProjectionMutator(n0),q=E(k);return q.ratio=function(R){return arguments.length?E(k=+R):k},q.scale(167.774).center([0,18.67])}var es=.7109889596207567,ao=.0528035274542;function rs(k,E){return E>-es?(k=Ze(k,E),k[1]+=ao,k):Qe(k,E)}rs.invert=function(k,E){return E>-es?Ze.invert(k,E-ao):Qe.invert(k,E)};function Ic(){return r.geoProjection(rs).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ts(k,E){return a(E)>es?(k=Ze(k,E),k[1]-=E>0?ao:-ao,k):Qe(k,E)}ts.invert=function(k,E){return a(E)>es?Ze.invert(k,E+(E>0?ao:-ao)):Qe.invert(k,E)};function Rv(){return r.geoProjection(ts).scale(152.63)}function dl(k,E,q,R){var G=I(4*x/(2*q+(1+k-E/2)*p(2*q)+(k+E)/2*p(4*q)+E/2*p(6*q))),U=I(R*p(q)*I((1+k*o(2*q)+E*o(4*q))/(1+k+E))),W=q*de(1);function ce(_e){return I(1+k*o(2*_e)+E*o(4*_e))}function de(_e){var Se=_e*q;return(2*Se+(1+k-E/2)*p(2*Se)+(k+E)/2*p(4*Se)+E/2*p(6*Se))/q}function se(_e){return ce(_e)*p(_e)}var pe=function(_e,Se){var ze=q*ir(de,W*p(Se)/q,Se/x);isNaN(ze)&&(ze=q*m(Se));var Ke=G*ce(ze);return[Ke*U*_e/x*o(ze),Ke/U*p(ze)]};return pe.invert=function(_e,Se){var ze=ir(se,Se*U/G);return[_e*x/(o(ze)*G*U*ce(ze)),H(q*de(ze/q)/W)]},q===0&&(G=I(R/x),pe=function(_e,Se){return[_e*G,p(Se)/G]},pe.invert=function(_e,Se){return[_e/G,H(Se*G)]}),pe}function i0(){var k=1,E=0,q=45*B,R=2,G=r.geoProjectionMutator(dl),U=G(k,E,q,R);return U.a=function(W){return arguments.length?G(k=+W,E,q,R):k},U.b=function(W){return arguments.length?G(k,E=+W,q,R):E},U.psiMax=function(W){return arguments.length?G(k,E,q=+W*B,R):q*z},U.ratio=function(W){return arguments.length?G(k,E,q,R=+W):R},U.scale(180.739)}function lu(k,E,q,R,G,U,W,ce,de,se,pe){if(pe.nanEncountered)return NaN;var _e,Se,ze,Ke,or,Tr,$r,ft,vt,dt;if(_e=q-E,Se=k(E+_e*.25),ze=k(q-_e*.25),isNaN(Se)){pe.nanEncountered=!0;return}if(isNaN(ze)){pe.nanEncountered=!0;return}return Ke=_e*(R+4*Se+G)/12,or=_e*(G+4*ze+U)/12,Tr=Ke+or,dt=(Tr-W)/15,se>de?(pe.maxDepthCount++,Tr+dt):Math.abs(dt)<ce?Tr+dt:($r=E+_e*.5,ft=lu(k,E,$r,R,Se,G,Ke,ce*.5,de,se+1,pe),isNaN(ft)?(pe.nanEncountered=!0,NaN):(vt=lu(k,$r,q,G,ze,U,or,ce*.5,de,se+1,pe),isNaN(vt)?(pe.nanEncountered=!0,NaN):ft+vt))}function Hc(k,E,q,R,G){var U={maxDepthCount:0,nanEncountered:!1};R===void 0&&(R=1e-8),G===void 0&&(G=20);var W=k(E),ce=k(.5*(E+q)),de=k(q),se=(W+4*ce+de)*(q-E)/6,pe=lu(k,E,q,W,ce,de,se,R,G,1,U);return pe}function Lo(k,E,q){function R(ze){return k+(1-k)*h(1-h(ze,E),1/E)}function G(ze){return Hc(R,0,ze,1e-4)}for(var U=1/G(1),W=1e3,ce=(1+1e-8)*U,de=[],se=0;se<=W;se++)de.push(G(se/W)*ce);function pe(ze){var Ke=0,or=W,Tr=W>>1;do de[Tr]>ze?or=Tr:Ke=Tr,Tr=Ke+or>>1;while(Tr>Ke);var $r=de[Tr+1]-de[Tr];return $r&&($r=(ze-de[Tr+1])/$r),(Tr+1+$r)/W}var _e=2*pe(1)/x*U/q,Se=function(ze,Ke){var or=pe(a(p(Ke))),Tr=R(or)*ze;return or/=_e,[Tr,Ke>=0?or:-or]};return Se.invert=function(ze,Ke){var or;return Ke*=_e,a(Ke)<1&&(or=m(Ke)*H(G(a(Ke))*U)),[ze/R(a(Ke)),or]},Se}function Do(){var k=0,E=2.5,q=1.183136,R=r.geoProjectionMutator(Lo),G=R(k,E,q);return G.alpha=function(U){return arguments.length?R(k=+U,E,q):k},G.k=function(U){return arguments.length?R(k,E=+U,q):E},G.gamma=function(U){return arguments.length?R(k,E,q=+U):q},G.scale(152.63)}function o0(k,E){return a(k[0]-E[0])<b&&a(k[1]-E[1])<b}function Ni(k,E){for(var q=-1,R=k.length,G=k[0],U,W,ce,de=[];++q<R;){U=k[q],W=(U[0]-G[0])/E,ce=(U[1]-G[1])/E;for(var se=0;se<E;++se)de.push([G[0]+se*W,G[1]+se*ce]);G=U}return de.push(U),de}function zv(k){var E=[],q,R,G,U,W,ce,de,se=k[0].length;for(de=0;de<se;++de)q=k[0][de],R=q[0][0],G=q[0][1],U=q[1][1],W=q[2][0],ce=q[2][1],E.push(Ni([[R+b,G+b],[R+b,U-b],[W-b,U-b],[W-b,ce+b]],30));for(de=k[1].length-1;de>=0;--de)q=k[1][de],R=q[0][0],G=q[0][1],U=q[1][1],W=q[2][0],ce=q[2][1],E.push(Ni([[W-b,ce-b],[W-b,U+b],[R+b,U+b],[R+b,G-b]],30));return{type:"Polygon",coordinates:[t.merge(E)]}}function no(k,E,q){var R,G;function U(de,se){for(var pe=se<0?-1:1,_e=E[+(se<0)],Se=0,ze=_e.length-1;Se<ze&&de>_e[Se][2][0];++Se);var Ke=k(de-_e[Se][1][0],se);return Ke[0]+=k(_e[Se][1][0],pe*se>pe*_e[Se][0][1]?_e[Se][0][1]:se)[0],Ke}q?U.invert=q(U):k.invert&&(U.invert=function(de,se){for(var pe=G[+(se<0)],_e=E[+(se<0)],Se=0,ze=pe.length;Se<ze;++Se){var Ke=pe[Se];if(Ke[0][0]<=de&&de<Ke[1][0]&&Ke[0][1]<=se&&se<Ke[1][1]){var or=k.invert(de-k(_e[Se][1][0],0)[0],se);return or[0]+=_e[Se][1][0],o0(U(or[0],or[1]),[de,se])?or:null}}});var W=r.geoProjection(U),ce=W.stream;return W.stream=function(de){var se=W.rotate(),pe=ce(de),_e=(W.rotate([0,0]),ce(de));return W.rotate(se),pe.sphere=function(){r.geoStream(R,_e)},pe},W.lobes=function(de){return arguments.length?(R=zv(de),E=de.map(function(se){return se.map(function(pe){return[[pe[0][0]*B,pe[0][1]*B],[pe[1][0]*B,pe[1][1]*B],[pe[2][0]*B,pe[2][1]*B]]})}),G=E.map(function(se){return se.map(function(pe){var _e=k(pe[0][0],pe[0][1])[0],Se=k(pe[2][0],pe[2][1])[0],ze=k(pe[1][0],pe[0][1])[1],Ke=k(pe[1][0],pe[1][1])[1],or;return ze>Ke&&(or=ze,ze=Ke,Ke=or),[[_e,ze],[Se,Ke]]})}),W):E.map(function(se){return se.map(function(pe){return[[pe[0][0]*z,pe[0][1]*z],[pe[1][0]*z,pe[1][1]*z],[pe[2][0]*z,pe[2][1]*z]]})})},E!=null&&W.lobes(E),W}var uu=[[[[-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 Nv(){return no(Oe,uu).scale(160.857)}var io=[[[[-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 pl(){return no(ts,io).scale(152.63)}var ml=[[[[-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 gl(){return no(Ze,ml).scale(169.529)}var Fo=[[[[-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 as(){return no(Ze,Fo).scale(169.529).rotate([20,0])}var Ys=[[[[-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 ns(){return no(rs,Ys,sr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var is=[[[[-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 yl(){return no(Qe,is).scale(152.63).rotate([-20,0])}function su(k,E){return[3/P*k*I(x*x/3-E*E),E]}su.invert=function(k,E){return[P/3*k/I(x*x/3-E*E),E]};function fu(){return r.geoProjection(su).scale(158.837)}function Vs(k){function E(q,R){if(a(a(R)-_)<b)return[0,R<0?-2:2];var G=p(R),U=h((1+G)/(1-G),k/2),W=.5*(U+1/U)+o(q*=k);return[2*p(q)/W,(U-1/U)/W]}return E.invert=function(q,R){var G=a(R);if(a(G-2)<b)return q?null:[0,m(R)*_];if(G>2)return null;q/=2,R/=2;var U=q*q,W=R*R,ce=2*R/(1+U+W);return ce=h((1+ce)/(1-ce),1/k),[i(2*q,1-U-W)/k,H((ce-1)/(ce+1))]},E}function Xs(){var k=.5,E=r.geoProjectionMutator(Vs),q=E(k);return q.spacing=function(R){return arguments.length?E(k=+R):k},q.scale(124.75)}var Ai=x/A;function Ws(k,E){return[k*(1+I(o(E)))/2,E/(o(E/2)*o(k/6))]}Ws.invert=function(k,E){var q=a(k),R=a(E),G=b,U=_;R<Ai?U*=R/Ai:G+=6*V(Ai/R);for(var W=0;W<25;W++){var ce=p(U),de=I(o(U)),se=p(U/2),pe=o(U/2),_e=p(G/6),Se=o(G/6),ze=.5*G*(1+de)-q,Ke=U/(pe*Se)-R,or=de?-.25*G*ce/de:0,Tr=.5*(1+de),$r=(1+.5*U*se/pe)/(pe*Se),ft=U/pe*(_e/6)/(Se*Se),vt=or*ft-$r*Tr,dt=(ze*ft-Ke*Tr)/vt,gt=(Ke*or-ze*$r)/vt;if(U-=dt,G-=gt,a(dt)<b&&a(gt)<b)break}return[k<0?-G:G,E<0?-U:U]};function js(){return r.geoProjection(Ws).scale(97.2672)}function $n(k,E){var q=k*k,R=E*E;return[k*(.975534+R*(-.119161+q*-.0143059+R*-.0547009)),E*(1.00384+q*(.0802894+R*-.02855+q*199025e-9)+R*(.0998909+R*-.0491032))]}$n.invert=function(k,E){var q=m(k)*x,R=E/2,G=50;do{var U=q*q,W=R*R,ce=q*R,de=q*(.975534+W*(-.119161+U*-.0143059+W*-.0547009))-k,se=R*(1.00384+U*(.0802894+W*-.02855+U*199025e-9)+W*(.0998909+W*-.0491032))-E,pe=.975534-W*(.119161+3*U*.0143059+W*.0547009),_e=-ce*(2*.119161+4*.0547009*W+2*.0143059*U),Se=ce*(2*.0802894+4*199025e-9*U+2*-.02855*W),ze=1.00384+U*(.0802894+199025e-9*U)+W*(3*(.0998909-.02855*U)-5*.0491032*W),Ke=_e*Se-ze*pe,or=(se*_e-de*ze)/Ke,Tr=(de*Se-se*pe)/Ke;q-=or,R-=Tr}while((a(or)>b||a(Tr)>b)&&--G>0);return G&&[q,R]};function hn(){return r.geoProjection($n).scale(139.98)}function Nn(k,E){return[p(k)/o(E),y(E)*o(k)]}Nn.invert=function(k,E){var q=k*k,R=E*E,G=R+1,U=q+G,W=k?T*I((U-I(U*U-4*q))/q):1/I(G);return[H(k*W),m(E)*V(W)]};function oo(){return r.geoProjection(Nn).scale(144.049).clipAngle(90-.001)}function os(k){var E=o(k),q=y(M+k/2);function R(G,U){var W=U-k,ce=a(W)<b?G*E:a(ce=M+U/2)<b||a(a(ce)-_)<b?0:G*W/s(y(ce)/q);return[ce,W]}return R.invert=function(G,U){var W,ce=U+k;return[a(U)<b?G/E:a(W=M+ce/2)<b||a(a(W)-_)<b?0:G*s(y(W)/q)/U,ce]},R}function bl(){return Nr(os).parallel(40).scale(158.837)}function cu(k,E){return[k,1.25*s(y(M+.4*E))]}cu.invert=function(k,E){return[k,2.5*n(l(.8*E))-.625*x]};function l0(){return r.geoProjection(cu).scale(108.318)}function Oc(k){var E=k.length-1;function q(R,G){for(var U=o(G),W=2/(1+U*o(R)),ce=W*U*p(R),de=W*p(G),se=E,pe=k[se],_e=pe[0],Se=pe[1],ze;--se>=0;)pe=k[se],_e=pe[0]+ce*(ze=_e)-de*Se,Se=pe[1]+ce*Se+de*ze;return _e=ce*(ze=_e)-de*Se,Se=ce*Se+de*ze,[_e,Se]}return q.invert=function(R,G){var U=20,W=R,ce=G;do{for(var de=E,se=k[de],pe=se[0],_e=se[1],Se=0,ze=0,Ke;--de>=0;)se=k[de],Se=pe+W*(Ke=Se)-ce*ze,ze=_e+W*ze+ce*Ke,pe=se[0]+W*(Ke=pe)-ce*_e,_e=se[1]+W*_e+ce*Ke;Se=pe+W*(Ke=Se)-ce*ze,ze=_e+W*ze+ce*Ke,pe=W*(Ke=pe)-ce*_e-R,_e=W*_e+ce*Ke-G;var or=Se*Se+ze*ze,Tr,$r;W-=Tr=(pe*Se+_e*ze)/or,ce-=$r=(_e*Se-pe*ze)/or}while(a(Tr)+a($r)>b*b&&--U>0);if(U){var ft=I(W*W+ce*ce),vt=2*n(ft*.5),dt=p(vt);return[i(W*dt,ft*o(vt)),ft?H(ce*dt/ft):0]}},q}var Bv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Iv=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],u0=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],s0=[[.9245,0],[0,0],[.01943,0]],f0=[[.721316,0],[0,0],[-.00881625,-.00617325]];function c0(){return Bi(Bv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Uc(){return Bi(Iv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gc(){return Bi(u0,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function ls(){return Bi(s0,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function us(){return Bi(f0,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bi(k,E){var q=r.geoProjection(Oc(k)).rotate(E).clipAngle(90),R=r.geoRotation(E),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var Zs=I(6),ss=I(7);function Js(k,E){var q=H(7*p(E)/(3*Zs));return[Zs*k*(2*o(2*q/3)-1)/ss,9*p(q/3)/ss]}Js.invert=function(k,E){var q=3*H(E*ss/9);return[k*ss/(Zs*(2*o(2*q/3)-1)),H(p(q)*3*Zs/7)]};function Yc(){return r.geoProjection(Js).scale(164.859)}function v0(k,E){for(var q=(1+T)*p(E),R=E,G=0,U;G<25&&(R-=U=(p(R/2)+p(R)-q)/(.5*o(R/2)+o(R)),!(a(U)<b));G++);return[k*(1+2*o(R)/o(R/2))/(3*A),2*I(3)*p(R/2)/I(2+A)]}v0.invert=function(k,E){var q=E*I(2+A)/(2*I(3)),R=2*H(q);return[3*A*k/(1+2*o(R)/o(R/2)),H((q+p(R))/(1+T))]};function Hv(){return r.geoProjection(v0).scale(188.209)}function qo(k,E){for(var q=I(6/(4+x)),R=(1+x/4)*p(E),G=E/2,U=0,W;U<25&&(G-=W=(G/2+p(G)-R)/(.5+o(G)),!(a(W)<b));U++);return[q*(.5+o(G))*k/1.5,q*G]}qo.invert=function(k,E){var q=I(6/(4+x)),R=E/q;return a(a(R)-_)<b&&(R=R<0?-_:_),[1.5*k/(q*(.5+o(R))),H((R/2+p(R))/(1+x/4))]};function $s(){return r.geoProjection(qo).scale(166.518)}function vu(k,E){var q=E*E,R=q*q,G=q*R;return[k*(.84719-.13063*q+G*G*(-.04515+.05494*q-.02326*R+.00331*G)),E*(1.01183+R*R*(-.02625+.01926*q-.00396*R))]}vu.invert=function(k,E){var q=E,R=25,G,U,W,ce;do U=q*q,W=U*U,q-=G=(q*(1.01183+W*W*(-.02625+.01926*U-.00396*W))-E)/(1.01183+W*W*(9*-.02625+11*.01926*U+13*-.00396*W));while(a(G)>C&&--R>0);return U=q*q,W=U*U,ce=U*W,[k/(.84719-.13063*U+ce*ce*(-.04515+.05494*U-.02326*W+.00331*ce)),q]};function fs(){return r.geoProjection(vu).scale(175.295)}function cs(k,E){return[k*(1+o(E))/2,2*(E-y(E/2))]}cs.invert=function(k,E){for(var q=E/2,R=0,G=1/0;R<10&&a(G)>b;++R){var U=o(E/2);E-=G=(E-y(E/2)-q)/(1-.5/(U*U))}return[2*k/(1+o(E)),E]};function h0(){return r.geoProjection(cs).scale(152.63)}var Po=[[[[-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 Vc(){return no(Ne(1/0),Po).rotate([20,0]).scale(152.63)}function d0(k,E){var q=p(E),R=o(E),G=m(k);if(k===0||a(E)===_)return[0,E];if(E===0)return[k,0];if(a(k)===_)return[k*R,_*q];var U=x/(2*k)-2*k/x,W=2*E/x,ce=(1-W*W)/(q-W),de=U*U,se=ce*ce,pe=1+de/se,_e=1+se/de,Se=(U*q/ce-U/2)/pe,ze=(se*q/de+ce/2)/_e,Ke=Se*Se+R*R/pe,or=ze*ze-(se*q*q/de+ce*q-1)/_e;return[_*(Se+I(Ke)*G),_*(ze+I(or<0?0:or)*m(-E*U)*G)]}d0.invert=function(k,E){k/=_,E/=_;var q=k*k,R=E*E,G=q+R,U=x*x;return[k?(G-1+I((1-G)*(1-G)+4*q))/(2*k)*_:0,ir(function(W){return G*(x*p(W)-2*W)*x+4*W*W*(E-p(W))+2*x*W-U*E},0)]};function Xc(){return r.geoProjection(d0).scale(127.267)}var p0=1.0148,Ks=.23185,m0=-.14499,g0=.02406,Ov=p0,y0=5*Ks,Ii=7*m0,b0=9*g0,hu=1.790857183;function _0(k,E){var q=E*E;return[k,E*(p0+q*q*(Ks+q*(m0+g0*q)))]}_0.invert=function(k,E){E>hu?E=hu:E<-hu&&(E=-hu);var q=E,R;do{var G=q*q;q-=R=(q*(p0+G*G*(Ks+G*(m0+g0*G)))-E)/(Ov+G*G*(y0+G*(Ii+b0*G)))}while(a(R)>b);return[k,q]};function Wc(){return r.geoProjection(_0).scale(139.319)}function _l(k,E){if(a(E)<b)return[k,0];var q=y(E),R=k*p(E);return[p(R)/q,E+(1-o(R))/q]}_l.invert=function(k,E){if(a(E)<b)return[k,0];var q=k*k+E*E,R=E*.5,G=10,U;do{var W=y(R),ce=1/o(R),de=q-2*E*R+R*R;R-=U=(W*de+2*(R-E))/(2+de*ce*ce+2*(R-E)*W)}while(a(U)>b&&--G>0);return W=y(R),[(a(E)<a(R+1/W)?H(k*W):m(E)*m(k)*(V(a(k*W))+_))/p(R),R]};function jc(){return r.geoProjection(_l).scale(103.74)}function Uv(k,E){var q=Hi(k[1],k[0]),R=Hi(E[1],E[0]),G=Yv(q,R),U=Kn(q)/Kn(R);return lo([1,0,k[0][0],0,1,k[0][1]],lo([U,0,0,0,U,0],lo([o(G),p(G),0,-p(G),o(G),0],[1,0,-E[0][0],0,1,-E[0][1]])))}function Gv(k){var E=1/(k[0]*k[4]-k[1]*k[3]);return[E*k[4],-E*k[1],E*(k[1]*k[5]-k[2]*k[4]),-E*k[3],E*k[0],E*(k[2]*k[3]-k[0]*k[5])]}function lo(k,E){return[k[0]*E[0]+k[1]*E[3],k[0]*E[1]+k[1]*E[4],k[0]*E[2]+k[1]*E[5]+k[2],k[3]*E[0]+k[4]*E[3],k[3]*E[1]+k[4]*E[4],k[3]*E[2]+k[4]*E[5]+k[5]]}function Hi(k,E){return[k[0]-E[0],k[1]-E[1]]}function Kn(k){return I(k[0]*k[0]+k[1]*k[1])}function Yv(k,E){return i(k[0]*E[1]-k[1]*E[0],k[0]*E[0]+k[1]*E[1])}function du(k,E,q){R(k,{transform:null});function R(se,pe){if(se.edges=$c(se.face),pe.face){var _e=se.shared=Jc(se.face,pe.face),Se=Uv(_e.map(pe.project),_e.map(se.project));se.transform=pe.transform?lo(pe.transform,Se):Se;for(var ze=pe.edges,Ke=0,or=ze.length;Ke<or;++Ke)ui(_e[0],ze[Ke][1])&&ui(_e[1],ze[Ke][0])&&(ze[Ke]=se),ui(_e[0],ze[Ke][0])&&ui(_e[1],ze[Ke][1])&&(ze[Ke]=se);for(ze=se.edges,Ke=0,or=ze.length;Ke<or;++Ke)ui(_e[0],ze[Ke][0])&&ui(_e[1],ze[Ke][1])&&(ze[Ke]=pe),ui(_e[0],ze[Ke][1])&&ui(_e[1],ze[Ke][0])&&(ze[Ke]=pe)}else se.transform=pe.transform;return se.children&&se.children.forEach(function(Tr){R(Tr,se)}),se}function G(se,pe){var _e=E(se,pe),Se=_e.project([se*z,pe*z]),ze;return(ze=_e.transform)?[ze[0]*Se[0]+ze[1]*Se[1]+ze[2],-(ze[3]*Se[0]+ze[4]*Se[1]+ze[5])]:(Se[1]=-Se[1],Se)}vs(k)&&(G.invert=function(se,pe){var _e=U(k,[se,-pe]);return _e&&(_e[0]*=B,_e[1]*=B,_e)});function U(se,pe){var _e=se.project.invert,Se=se.transform,ze=pe;if(Se&&(Se=Gv(Se),ze=[Se[0]*ze[0]+Se[1]*ze[1]+Se[2],Se[3]*ze[0]+Se[4]*ze[1]+Se[5]]),_e&&se===W(Ke=_e(ze)))return Ke;for(var Ke,or=se.children,Tr=0,$r=or&&or.length;Tr<$r;++Tr)if(Ke=U(or[Tr],pe))return Ke}function W(se){return E(se[0]*B,se[1]*B)}var ce=r.geoProjection(G),de=ce.stream;return ce.stream=function(se){var pe=ce.rotate(),_e=de(se),Se=(ce.rotate([0,0]),de(se));return ce.rotate(pe),_e.sphere=function(){Se.polygonStart(),Se.lineStart(),Zc(Se,k),Se.lineEnd(),Se.polygonEnd()},_e},ce.angle(q==null?-30:q*z)}function Zc(k,E,q){var R,G=E.edges,U=G.length,W,ce={type:"MultiPoint",coordinates:E.face},de=E.face.filter(function(or){return a(or[1])!==90}),se=r.geoBounds({type:"MultiPoint",coordinates:de}),pe=!1,_e=-1,Se=se[1][0]-se[0][0],ze=Se===180||Se===360?[(se[0][0]+se[1][0])/2,(se[0][1]+se[1][1])/2]:r.geoCentroid(ce);if(q)for(;++_e<U&&G[_e]!==q;);++_e;for(var Ke=0;Ke<U;++Ke)W=G[(Ke+_e)%U],Array.isArray(W)?(pe||(k.point((R=r.geoInterpolate(W[0],ze)(b))[0],R[1]),pe=!0),k.point((R=r.geoInterpolate(W[1],ze)(b))[0],R[1])):(pe=!1,W!==q&&Zc(k,W,E))}function ui(k,E){return k&&E&&k[0]===E[0]&&k[1]===E[1]}function Jc(k,E){for(var q,R,G=k.length,U=null,W=0;W<G;++W){q=k[W];for(var ce=E.length;--ce>=0;)if(R=E[ce],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function $c(k){for(var E=k.length,q=[],R=k[E-1],G=0;G<E;++G)q.push([R,R=k[G]]);return q}function vs(k){return k.project.invert||k.children&&k.children.some(vs)}var Kc=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Qs=[[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(k){return k.map(function(E){return Kc[E]})});function hs(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoGnomonic().scale(1).translate([0,0]).rotate([-R[0],-R[1]])};var E=Qs.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=E[q];G&&(G.children||(G.children=[])).push(E[R])}),du(E[0],function(q,R){return E[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var ef=2/I(3);function ds(k,E){var q=Fr(k,E);return[q[0]*ef,q[1]]}ds.invert=function(k,E){return Fr.invert(k/ef,E)};function Vv(k){k=k||function(q){var R=r.geoCentroid({type:"MultiPoint",coordinates:q});return r.geoProjection(ds).translate([0,0]).scale(1).rotate(R[1]>0?[-R[0],0]:[180-R[0],180])};var E=Qs.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=E[q];G&&(G.children||(G.children=[])).push(E[R])}),du(E[0],function(q,R){return E[q<-x/2?R<0?6:4:q<0?R<0?2:0:q<x/2?R<0?3:1:R<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function ps(k){k=k||function(W){var ce=W.length===6?r.geoCentroid({type:"MultiPoint",coordinates:W}):W[0];return r.geoGnomonic().scale(1).translate([0,0]).rotate([-ce[0],-ce[1]])};var E=Qs.map(function(W){for(var ce=W.map(pu),de=ce.length,se=ce[de-1],pe,_e=[],Se=0;Se<de;++Se)pe=ce[Se],_e.push(wl([se[0]*.9486832980505138+pe[0]*.31622776601683794,se[1]*.9486832980505138+pe[1]*.31622776601683794,se[2]*.9486832980505138+pe[2]*.31622776601683794]),wl([pe[0]*.9486832980505138+se[0]*.31622776601683794,pe[1]*.9486832980505138+se[1]*.31622776601683794,pe[2]*.9486832980505138+se[2]*.31622776601683794])),se=pe;return _e}),q=[],R=[-1,0,0,1,0,1,4,5];E.forEach(function(W,ce){for(var de=Qs[ce],se=de.length,pe=q[ce]=[],_e=0;_e<se;++_e)E.push([de[_e],W[(_e*2+2)%(2*se)],W[(_e*2+1)%(2*se)]]),R.push(ce),pe.push(ms(pu(W[(_e*2+2)%(2*se)]),pu(W[(_e*2+1)%(2*se)])))});var G=E.map(function(W){return{project:k(W),face:W}});R.forEach(function(W,ce){var de=G[W];de&&(de.children||(de.children=[])).push(G[ce])});function U(W,ce){var de=o(ce),se=[de*o(W),de*p(W),p(ce)],pe=W<-x/2?ce<0?6:4:W<0?ce<0?2:0:W<x/2?ce<0?3:1:ce<0?7:5,_e=q[pe];return G[xl(_e[0],se)<0?8+3*pe:xl(_e[1],se)<0?8+3*pe+1:xl(_e[2],se)<0?8+3*pe+2:pe]}return du(G[0],U).angle(-30).scale(110.625).center([0,45])}function xl(k,E){for(var q=0,R=k.length,G=0;q<R;++q)G+=k[q]*E[q];return G}function ms(k,E){return[k[1]*E[2]-k[2]*E[1],k[2]*E[0]-k[0]*E[2],k[0]*E[1]-k[1]*E[0]]}function wl(k){return[i(k[1],k[0])*z,H(f(-1,c(1,k[2])))*z]}function pu(k){var E=k[0]*B,q=k[1]*B,R=o(q);return[R*o(E),R*p(E),p(q)]}function rf(){}function gs(k){if((q=k.length)<4)return!1;for(var E=0,q,R=k[q-1][1]*k[0][0]-k[q-1][0]*k[0][1];++E<q;)R+=k[E-1][1]*k[E][0]-k[E-1][0]*k[E][1];return R<=0}function Qc(k,E){for(var q=E[0],R=E[1],G=!1,U=0,W=k.length,ce=W-1;U<W;ce=U++){var de=k[U],se=de[0],pe=de[1],_e=k[ce],Se=_e[0],ze=_e[1];pe>R^ze>R&&q<(Se-se)*(R-pe)/(ze-pe)+se&&(G=!G)}return G}function tf(k,E){var q=E.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=r1;break;case"FeatureCollection":R=e1;break;default:R=af;break}return R(k,q)}function e1(k,E){return{type:"FeatureCollection",features:k.features.map(function(q){return r1(q,E)})}}function r1(k,E){return{type:"Feature",id:k.id,properties:k.properties,geometry:af(k.geometry,E)}}function x0(k,E){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return af(q,E)})}}function af(k,E){if(!k)return null;if(k.type==="GeometryCollection")return x0(k,E);var q;switch(k.type){case"Point":q=mu;break;case"MultiPoint":q=mu;break;case"LineString":q=nf;break;case"MultiLineString":q=nf;break;case"Polygon":q=ys;break;case"MultiPolygon":q=ys;break;case"Sphere":q=ys;break;default:return null}return r.geoStream(k,E(q)),q.result()}var tn=[],Ti=[],mu={point:function(k,E){tn.push([k,E])},result:function(){var k=tn.length?tn.length<2?{type:"Point",coordinates:tn[0]}:{type:"MultiPoint",coordinates:tn}:null;return tn=[],k}},nf={lineStart:rf,point:function(k,E){tn.push([k,E])},lineEnd:function(){tn.length&&(Ti.push(tn),tn=[])},result:function(){var k=Ti.length?Ti.length<2?{type:"LineString",coordinates:Ti[0]}:{type:"MultiLineString",coordinates:Ti}:null;return Ti=[],k}},ys={polygonStart:rf,lineStart:rf,point:function(k,E){tn.push([k,E])},lineEnd:function(){var k=tn.length;if(k){do tn.push(tn[0].slice());while(++k<4);Ti.push(tn),tn=[]}},polygonEnd:rf,result:function(){if(!Ti.length)return null;var k=[],E=[];return Ti.forEach(function(q){gs(q)?k.push([q]):E.push(q)}),E.forEach(function(q){var R=q[0];k.some(function(G){if(Qc(G[0],R))return G.push(q),!0})||k.push([q])}),Ti=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function w0(k){var E=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=a(R)<_,W=k(U?R:R>0?R-x:R+x,G),ce=(W[0]-W[1])*T,de=(W[0]+W[1])*T;if(U)return[ce,de];var se=E*T,pe=ce>0^de>0?-1:1;return[pe*ce-m(de)*se,pe*de-m(ce)*se]}return k.invert&&(q.invert=function(R,G){var U=(R+G)*T,W=(G-R)*T,ce=a(U)<.5*E&&a(W)<.5*E;if(!ce){var de=E*T,se=U>0^W>0?-1:1,pe=-se*R+(W>0?1:-1)*de,_e=-se*G+(U>0?1:-1)*de;U=(-pe-_e)*T,W=(pe-_e)*T}var Se=k.invert(U,W);return ce||(Se[0]+=U>0?x:-x),Se}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return w0(ia).scale(176.423)}function J(){return w0(Co).scale(111.48)}function he(k,E){if(!(0<=(E=+E)&&E<=20))throw new Error("invalid digits");function q(se){var pe=se.length,_e=2,Se=new Array(pe);for(Se[0]=+se[0].toFixed(E),Se[1]=+se[1].toFixed(E);_e<pe;)Se[_e]=se[_e],++_e;return Se}function R(se){return se.map(q)}function G(se){for(var pe=q(se[0]),_e=[pe],Se=1;Se<se.length;Se++){var ze=q(se[Se]);(ze.length>2||ze[0]!=pe[0]||ze[1]!=pe[1])&&(_e.push(ze),pe=ze)}return _e.length===1&&se.length>1&&_e.push(q(se[se.length-1])),_e}function U(se){return se.map(G)}function W(se){if(se==null)return se;var pe;switch(se.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:se.geometries.map(W)};break;case"Point":pe={type:"Point",coordinates:q(se.coordinates)};break;case"MultiPoint":pe={type:se.type,coordinates:R(se.coordinates)};break;case"LineString":pe={type:se.type,coordinates:G(se.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:se.type,coordinates:U(se.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:se.coordinates.map(U)};break;default:return se}return se.bbox!=null&&(pe.bbox=se.bbox),pe}function ce(se){var pe={type:"Feature",properties:se.properties,geometry:W(se.geometry)};return se.id!=null&&(pe.id=se.id),se.bbox!=null&&(pe.bbox=se.bbox),pe}if(k!=null)switch(k.type){case"Feature":return ce(k);case"FeatureCollection":{var de={type:"FeatureCollection",features:k.features.map(ce)};return k.bbox!=null&&(de.bbox=k.bbox),de}default:return W(k)}return k}function ue(k){var E=p(k);function q(R,G){var U=E?y(R*E/2)/E:R/2;if(!G)return[2*U,-k];var W=2*n(U*p(G)),ce=1/y(G);return[p(W)*ce,G+(1-o(W))*ce-k]}return q.invert=function(R,G){if(a(G+=k)<b)return[E?2*n(E*R/2)/E:R,0];var U=R*R+G*G,W=0,ce=10,de;do{var se=y(W),pe=1/o(W),_e=U-2*G*W+W*W;W-=de=(se*_e+2*(W-G))/(2+_e*pe*pe+2*(W-G)*se)}while(a(de)>b&&--ce>0);var Se=R*(se=y(W)),ze=y(a(G)<a(W+1/se)?H(Se)*.5:V(Se)*.5+x/4)/p(W);return[E?2*n(E*ze)/E:2*ze,W]},q}function xe(){return Nr(ue).scale(131.215)}var He=[[.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]];He.forEach(function(k){k[1]*=1.0144});function je(k,E){var q=c(18,a(E)*36/x),R=u(q),G=q-R,U=(_e=He[R])[0],W=_e[1],ce=(_e=He[++R])[0],de=_e[1],se=(_e=He[c(19,++R)])[0],pe=_e[1],_e;return[k*(ce+G*(se-U)/2+G*G*(se-2*ce+U)/2),(E>0?_:-_)*(de+G*(pe-W)/2+G*G*(pe-2*de+W)/2)]}je.invert=function(k,E){var q=E/_,R=q*90,G=c(18,a(R/5)),U=f(0,u(G));do{var W=He[U][1],ce=He[U+1][1],de=He[c(19,U+2)][1],se=de-W,pe=de-2*ce+W,_e=2*(a(q)-ce)/se,Se=pe/se,ze=_e*(1-Se*_e*(1-2*Se*_e));if(ze>=0||U===1){R=(E>=0?5:-5)*(ze+G);var Ke=50,or;do G=c(18,a(R)/5),U=u(G),ze=G-U,W=He[U][1],ce=He[U+1][1],de=He[c(19,U+2)][1],R-=(or=(E>=0?_:-_)*(ce+ze*(de-W)/2+ze*ze*(de-2*ce+W)/2)-E)*z;while(a(or)>C&&--Ke>0);break}}while(--U>=0);var Tr=He[U][0],$r=He[U+1][0],ft=He[c(19,U+2)][0];return[k/($r+ze*(ft-Tr)/2+ze*ze*(ft-2*$r+Tr)/2),R*B]};function rr(){return r.geoProjection(je).scale(152.63)}function ar(k){function E(q,R){var G=o(R),U=(k-1)/(k-G*o(q));return[U*G*p(q),U*p(R)]}return E.invert=function(q,R){var G=q*q+R*R,U=I(G),W=(k-I(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*W,U*I(1-W*W)),U?H(R*W/U):0]},E}function br(k,E){var q=ar(k);if(!E)return q;var R=o(E),G=p(E);function U(W,ce){var de=q(W,ce),se=de[1],pe=se*G/(k-1)+R;return[de[0]*R/pe,se/pe]}return U.invert=function(W,ce){var de=(k-1)/(k-1-ce*G);return q.invert(de*W,de*ce*R)},U}function Je(){var k=2,E=0,q=r.geoProjectionMutator(br),R=q(k,E);return R.distance=function(G){return arguments.length?q(k=+G,E):k},R.tilt=function(G){return arguments.length?q(k,E=G*B):E*z},R.scale(432.147).clipAngle(V(1/k)*z-1e-6)}var lr=1e-4,nr=1e4,Ar=-180,Er=Ar+lr,ot=180,et=ot-lr,ut=-90,st=ut+lr,qr=90,Ur=qr-lr;function ct(k){return k.length>0}function _t(k){return Math.floor(k*nr)/nr}function Vt(k){return k===ut||k===qr?[0,k]:[Ar,_t(k)]}function oa(k){var E=k[0],q=k[1],R=!1;return E<=Er?(E=Ar,R=!0):E>=et&&(E=ot,R=!0),q<=st?(q=ut,R=!0):q>=Ur&&(q=qr,R=!0),R?[E,q]:k}function Zt(k){return k.map(oa)}function _a(k,E,q){for(var R=0,G=k.length;R<G;++R){var U=k[R].slice();q.push({index:-1,polygon:E,ring:U});for(var W=0,ce=U.length;W<ce;++W){var de=U[W],se=de[0],pe=de[1];if(se<=Er||se>=et||pe<=st||pe>=Ur){U[W]=oa(de);for(var _e=W+1;_e<ce;++_e){var Se=U[_e],ze=Se[0],Ke=Se[1];if(ze>Er&&ze<et&&Ke>st&&Ke<Ur)break}if(_e===W+1)continue;if(W){var or={index:-1,polygon:E,ring:U.slice(0,W+1)};or.ring[or.ring.length-1]=Vt(pe),q[q.length-1]=or}else q.pop();if(_e>=ce)break;q.push({index:-1,polygon:E,ring:U=U.slice(_e-1)}),U[0]=Vt(U[0][1]),W=-1,ce=U.length}}}}function Dt(k){var E,q=k.length,R={},G={},U,W,ce,de,se;for(E=0;E<q;++E){if(U=k[E],W=U.ring[0],de=U.ring[U.ring.length-1],W[0]===de[0]&&W[1]===de[1]){U.polygon.push(U.ring),k[E]=null;continue}U.index=E,R[W]=G[de]=U}for(E=0;E<q;++E)if(U=k[E],U){if(W=U.ring[0],de=U.ring[U.ring.length-1],ce=G[W],se=R[de],delete R[W],delete G[de],W[0]===de[0]&&W[1]===de[1]){U.polygon.push(U.ring);continue}ce?(delete G[W],delete R[ce.ring[0]],ce.ring.pop(),k[ce.index]=null,U={index:-1,polygon:ce.polygon,ring:ce.ring.concat(U.ring)},ce===se?U.polygon.push(U.ring):(U.index=q++,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U))):se?(delete R[de],delete G[se.ring[se.ring.length-1]],U.ring.pop(),U={index:q++,polygon:se.polygon,ring:U.ring.concat(se.ring)},k[se.index]=null,k.push(R[U.ring[0]]=G[U.ring[U.ring.length-1]]=U)):(U.ring.push(U.ring[0]),U.polygon.push(U.ring))}}function yn(k){var E={type:"Feature",geometry:Ya(k.geometry)};return k.id!=null&&(E.id=k.id),k.bbox!=null&&(E.bbox=k.bbox),k.properties!=null&&(E.properties=k.properties),E}function Ya(k){if(k==null)return k;var E,q,R,G;switch(k.type){case"GeometryCollection":E={type:"GeometryCollection",geometries:k.geometries.map(Ya)};break;case"Point":E={type:"Point",coordinates:oa(k.coordinates)};break;case"MultiPoint":case"LineString":E={type:k.type,coordinates:Zt(k.coordinates)};break;case"MultiLineString":E={type:"MultiLineString",coordinates:k.coordinates.map(Zt)};break;case"Polygon":{var U=[];_a(k.coordinates,U,q=[]),Dt(q),E={type:"Polygon",coordinates:U};break}case"MultiPolygon":{q=[],R=-1,G=k.coordinates.length;for(var W=new Array(G);++R<G;)_a(k.coordinates[R],W[R]=[],q);Dt(q),E={type:"MultiPolygon",coordinates:W.filter(ct)};break}default:return k}return k.bbox!=null&&(E.bbox=k.bbox),E}function xa(k){if(k==null)return k;switch(k.type){case"Feature":return yn(k);case"FeatureCollection":{var E={type:"FeatureCollection",features:k.features.map(yn)};return k.bbox!=null&&(E.bbox=k.bbox),E}default:return Ya(k)}}function Yr(k,E){var q=y(E/2),R=p(M*q);return[k*(.74482-.34588*R*R),1.70711*q]}Yr.invert=function(k,E){var q=E/1.70711,R=p(M*q);return[k/(.74482-.34588*R*R),2*n(q)]};function Xt(){return r.geoProjection(Yr).scale(146.153)}function Ka(k,E,q){var R=r.geoInterpolate(E,q),G=R(.5),U=r.geoRotation([-G[0],-G[1]])(E),W=R.distance/2,ce=-H(p(U[1]*B)/p(W)),de=[-G[0],-G[1],-(U[0]>0?x-ce:ce)*z],se=r.geoProjection(k(W)).rotate(de),pe=r.geoRotation(de),_e=se.center;return delete se.rotate,se.center=function(Se){return arguments.length?_e(pe(Se)):pe.invert(_e())},se.clipAngle(90)}function Cn(k){var E=o(k);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=E,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/E,G)},q}function si(){return uo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function uo(k,E){return Ka(Cn,k,E)}function Oi(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var E=-k/2,q=-E,R=k*k,G=y(q),U=.5/p(q);function W(ce,de){var se=V(o(de)*o(ce-E)),pe=V(o(de)*o(ce-q)),_e=de<0?-1:1;return se*=se,pe*=pe,[(se-pe)/(2*k),_e*I(4*R*pe-(R-se+pe)*(R-se+pe))/(2*k)]}return W.invert=function(ce,de){var se=de*de,pe=o(I(se+(Se=ce+E)*Se)),_e=o(I(se+(Se=ce+q)*Se)),Se,ze;return[i(ze=pe-_e,Se=(pe+_e)*G),(de<0?-1:1)*V(I(Se*Se+ze*ze)*U)]},W}function Ml(){return ki([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ki(k,E){return Ka(Oi,k,E)}function Al(k,E){if(a(E)<b)return[k,0];var q=a(E/_),R=H(q);if(a(k)<b||a(a(E)-_)<b)return[0,m(E)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,W=U*U,ce=G/(q+G-1),de=ce*(2/q-1),se=de*de,pe=se+W,_e=ce-se,Se=W+ce;return[m(k)*x*(U*_e+I(W*_e*_e-pe*(ce*ce-se)))/pe,m(E)*x*(de*Se-U*I((W+1)*pe-Se*Se))/pe]}Al.invert=function(k,E){if(a(E)<b)return[k,0];if(a(k)<b)return[0,_*p(2*n(E/x))];var q=(k/=x)*k,R=(E/=x)*E,G=q+R,U=G*G,W=-a(E)*(1+G),ce=W-2*R+q,de=-2*W+1+2*R+U,se=R/de+(2*ce*ce*ce/(de*de*de)-9*W*ce/(de*de))/27,pe=(W-ce*ce/(3*de))/de,_e=2*I(-pe/3),Se=V(3*se/(pe*_e))/3;return[x*(G-1+I(1+2*(q-R)+U))/(2*k),m(E)*x*(-_e*o(Se+x/3)-ce/(3*de))]};function gu(){return r.geoProjection(Al).scale(79.4183)}function of(k,E){if(a(E)<b)return[k,0];var q=a(E/_),R=H(q);if(a(k)<b||a(a(E)-_)<b)return[0,m(E)*x*y(R/2)];var G=o(R),U=a(x/k-k/x)/2,W=U*U,ce=G*(I(1+W)-U*G)/(1+W*q*q);return[m(k)*x*ce,m(E)*x*I(1-ce*(2*U+ce))]}of.invert=function(k,E){if(!k)return[0,_*p(2*n(E/x))];var q=a(k/x),R=(1-q*q-(E/=x)*E)/(2*q),G=R*R,U=I(G+1);return[m(k)*x*(U-R),m(E)*_*p(2*i(I((1-2*R*q)*(R+U)-q),I(U+R+q)))]};function t1(){return r.geoProjection(of).scale(79.4183)}function a1(k,E){if(a(E)<b)return[k,0];var q=E/_,R=H(q);if(a(k)<b||a(a(E)-_)<b)return[0,x*y(R/2)];var G=(x/k-k/x)/2,U=q/(1+o(R));return[x*(m(k)*I(G*G+1-U*U)-G),x*U]}a1.invert=function(k,E){if(!E)return[k,0];var q=E/x,R=(x*x*(1-q*q)-k*k)/(2*x*k);return[k?x*(m(k)*I(R*R+1)-R):0,_*p(2*n(q))]};function sp(){return r.geoProjection(a1).scale(79.4183)}function M0(k,E){if(!E)return[k,0];var q=a(E);if(!k||q===_)return[0,E];var R=q/_,G=R*R,U=(8*R-G*(G+2)-5)/(2*G*(R-1)),W=U*U,ce=R*U,de=G+W+2*ce,se=R+3*U,pe=k/_,_e=pe+1/pe,Se=m(a(k)-_)*I(_e*_e-4),ze=Se*Se,Ke=de*(G+W*ze-1)+(1-G)*(G*(se*se+4*W)+12*ce*W+4*W*W),or=(Se*(de+W-1)+2*I(Ke))/(4*de+ze);return[m(k)*_*or,m(E)*_*I(1+Se*a(or)-or*or)]}M0.invert=function(k,E){var q;if(!k||!E)return[k,E];E/=x;var R=m(k)*k/_,G=(R*R-1+4*E*E)/a(R),U=G*G,W=2*E,ce=50;do{var de=W*W,se=(8*W-de*(de+2)-5)/(2*de*(W-1)),pe=(3*W-de*W-10)/(2*de*W),_e=se*se,Se=W*se,ze=W+se,Ke=ze*ze,or=W+3*se,Tr=Ke*(de+_e*U-1)+(1-de)*(de*(or*or+4*_e)+_e*(12*Se+4*_e)),$r=-2*ze*(4*Se*_e+(1-4*de+3*de*de)*(1+pe)+_e*(-6+14*de-U+(-8+8*de-2*U)*pe)+Se*(-8+12*de+(-10+10*de-U)*pe)),ft=I(Tr),vt=G*(Ke+_e-1)+2*ft-R*(4*Ke+U),dt=G*(2*se*pe+2*ze*(1+pe))+$r/ft-8*ze*(G*(-1+_e+Ke)+2*ft)*(1+pe)/(U+4*Ke);W-=q=vt/dt}while(q>b&&--ce>0);return[m(k)*(I(G*G+4)+G)*x/4,_*W]};function so(){return r.geoProjection(M0).scale(127.16)}function fp(k,E,q,R,G){function U(W,ce){var de=q*p(R*ce),se=I(1-de*de),pe=I(2/(1+se*o(W*=G)));return[k*se*pe*p(W),E*de*pe]}return U.invert=function(W,ce){var de=W/k,se=ce/E,pe=I(de*de+se*se),_e=2*H(pe/2);return[i(W*y(_e),k*pe)/G,pe&&H(ce*p(_e)/(E*q*pe))/R]},U}function cp(k,E,q,R){var G=x/3;k=f(k,b),E=f(E,b),k=c(k,_),E=c(E,x-b),q=f(q,0),q=c(q,100-b),R=f(R,b);var U=q/100+1,W=R/100,ce=V(U*o(G))/G,de=p(k)/p(ce*_),se=E/x,pe=I(W*p(k/2)/p(E/2)),_e=pe/I(se*de*ce),Se=1/(pe*I(se*de*ce));return fp(_e,Se,de,ce,se)}function n1(){var k=65*B,E=60*B,q=20,R=200,G=r.geoProjectionMutator(cp),U=G(k,E,q,R);return U.poleline=function(W){return arguments.length?G(k=+W*B,E,q,R):k*z},U.parallels=function(W){return arguments.length?G(k,E=+W*B,q,R):E*z},U.inflation=function(W){return arguments.length?G(k,E,q=+W,R):q},U.ratio=function(W){return arguments.length?G(k,E,q,R=+W):R},U.scale(163.775)}function Xv(){return n1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var vp=4*x+3*I(3),hp=2*I(2*x*I(3)/vp),dp=dr(hp*I(3)/x,hp,vp/6);function i1(){return r.geoProjection(dp).scale(176.84)}function A0(k,E){return[k*I(1-3*E*E/(x*x)),E]}A0.invert=function(k,E){return[k/I(1-3*E*E/(x*x)),E]};function pp(){return r.geoProjection(A0).scale(152.63)}function Wv(k,E){var q=o(E),R=o(k)*q,G=1-R,U=o(k=i(p(k)*q,-p(E))),W=p(k);return q=I(1-R*R),[W*q-U*G,-U*q-W*G]}Wv.invert=function(k,E){var q=(k*k+E*E)/-2,R=I(-q*(2+q)),G=E*q+k*R,U=k*q-E*R,W=I(U*U+G*G);return[i(R*G,W*(1+q)),W?-H(R*U/W):0]};function sy(){return r.geoProjection(Wv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function jv(k,E){var q=Ee(k,E);return[(q[0]+k/_)/2,(q[1]+E)/2]}jv.invert=function(k,E){var q=k,R=E,G=25;do{var U=o(R),W=p(R),ce=p(2*R),de=W*W,se=U*U,pe=p(q),_e=o(q/2),Se=p(q/2),ze=Se*Se,Ke=1-se*_e*_e,or=Ke?V(U*_e)*I(Tr=1/Ke):Tr=0,Tr,$r=.5*(2*or*U*Se+q/_)-k,ft=.5*(or*W+R)-E,vt=.5*Tr*(se*ze+or*U*_e*de)+.5/_,dt=Tr*(pe*ce/4-or*W*Se),gt=.125*Tr*(ce*Se-or*W*se*pe),sa=.5*Tr*(de*_e+or*ze*U)+.5,Ea=dt*gt-sa*vt,It=(ft*dt-$r*sa)/Ea,Va=($r*gt-ft*vt)/Ea;q-=It,R-=Va}while((a(It)>b||a(Va)>b)&&--G>0);return[q,R]};function Ui(){return r.geoProjection(jv).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Ae,e.geoAiryRaw=ve,e.geoAitoff=Be,e.geoAitoffRaw=Ee,e.geoArmadillo=ke,e.geoArmadilloRaw=Ue,e.geoAugust=j,e.geoAugustRaw=We,e.geoBaker=$,e.geoBakerRaw=K,e.geoBerghaus=we,e.geoBerghausRaw=le,e.geoBertin1953=vr,e.geoBertin1953Raw=Pe,e.geoBoggs=Mr,e.geoBoggsRaw=Oe,e.geoBonne=yr,e.geoBonneRaw=Xe,e.geoBottomley=pr,e.geoBottomleyRaw=kr,e.geoBromley=Pr,e.geoBromleyRaw=xr,e.geoChamberlin=Kr,e.geoChamberlinRaw=Cr,e.geoChamberlinAfrica=Xr,e.geoCollignon=Wr,e.geoCollignonRaw=Fr,e.geoCraig=Re,e.geoCraigRaw=Me,e.geoCraster=Nt,e.geoCrasterRaw=gr,e.geoCylindricalEqualArea=na,e.geoCylindricalEqualAreaRaw=Gt,e.geoCylindricalStereographic=Bt,e.geoCylindricalStereographicRaw=Aa,e.geoEckert1=da,e.geoEckert1Raw=jt,e.geoEckert2=mn,e.geoEckert2Raw=Kt,e.geoEckert3=Un,e.geoEckert3Raw=rn,e.geoEckert4=ua,e.geoEckert4Raw=Jr,e.geoEckert5=pa,e.geoEckert5Raw=Rt,e.geoEckert6=ba,e.geoEckert6Raw=ya,e.geoEisenlohr=gn,e.geoEisenlohrRaw=za,e.geoFahey=La,e.geoFaheyRaw=aa,e.geoFoucaut=ko,e.geoFoucautRaw=Sa,e.geoFoucautSinusoidal=Xu,e.geoFoucautSinusoidalRaw=qi,e.geoGilbert=Wu,e.geoGingery=fl,e.geoGingeryRaw=sl,e.geoGinzburg4=eu,e.geoGinzburg4Raw=Mi,e.geoGinzburg5=ju,e.geoGinzburg5Raw=ru,e.geoGinzburg6=Zu,e.geoGinzburg6Raw=tu,e.geoGinzburg8=lt,e.geoGinzburg8Raw=it,e.geoGinzburg9=Or,e.geoGinzburg9Raw=Ot,e.geoGringorten=zn,e.geoGringortenRaw=ia,e.geoGuyou=Ju,e.geoGuyouRaw=Co,e.geoHammer=er,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=$u,e.geoHammerRetroazimuthalRaw=t0,e.geoHealpix=ou,e.geoHealpixRaw=So,e.geoHill=Bc,e.geoHillRaw=n0,e.geoHomolosine=Rv,e.geoHomolosineRaw=ts,e.geoHufnagel=i0,e.geoHufnagelRaw=dl,e.geoHyperelliptical=Do,e.geoHyperellipticalRaw=Lo,e.geoInterrupt=no,e.geoInterruptedBoggs=Nv,e.geoInterruptedHomolosine=pl,e.geoInterruptedMollweide=gl,e.geoInterruptedMollweideHemispheres=as,e.geoInterruptedSinuMollweide=ns,e.geoInterruptedSinusoidal=yl,e.geoKavrayskiy7=fu,e.geoKavrayskiy7Raw=su,e.geoLagrange=Xs,e.geoLagrangeRaw=Vs,e.geoLarrivee=js,e.geoLarriveeRaw=Ws,e.geoLaskowski=hn,e.geoLaskowskiRaw=$n,e.geoLittrow=oo,e.geoLittrowRaw=Nn,e.geoLoximuthal=bl,e.geoLoximuthalRaw=os,e.geoMiller=l0,e.geoMillerRaw=cu,e.geoModifiedStereographic=Bi,e.geoModifiedStereographicRaw=Oc,e.geoModifiedStereographicAlaska=c0,e.geoModifiedStereographicGs48=Uc,e.geoModifiedStereographicGs50=Gc,e.geoModifiedStereographicMiller=ls,e.geoModifiedStereographicLee=us,e.geoMollweide=fr,e.geoMollweideRaw=Ze,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=Js,e.geoMtFlatPolarQuartic=Hv,e.geoMtFlatPolarQuarticRaw=v0,e.geoMtFlatPolarSinusoidal=$s,e.geoMtFlatPolarSinusoidalRaw=qo,e.geoNaturalEarth2=fs,e.geoNaturalEarth2Raw=vu,e.geoNellHammer=h0,e.geoNellHammerRaw=cs,e.geoInterruptedQuarticAuthalic=Vc,e.geoNicolosi=Xc,e.geoNicolosiRaw=d0,e.geoPatterson=Wc,e.geoPattersonRaw=_0,e.geoPolyconic=jc,e.geoPolyconicRaw=_l,e.geoPolyhedral=du,e.geoPolyhedralButterfly=hs,e.geoPolyhedralCollignon=Vv,e.geoPolyhedralWaterman=ps,e.geoProject=tf,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=he,e.geoQuincuncial=w0,e.geoRectangularPolyconic=xe,e.geoRectangularPolyconicRaw=ue,e.geoRobinson=rr,e.geoRobinsonRaw=je,e.geoSatellite=Je,e.geoSatelliteRaw=br,e.geoSinuMollweide=Ic,e.geoSinuMollweideRaw=rs,e.geoSinusoidal=Ie,e.geoSinusoidalRaw=Qe,e.geoStitch=xa,e.geoTimes=Xt,e.geoTimesRaw=Yr,e.geoTwoPointAzimuthal=uo,e.geoTwoPointAzimuthalRaw=Cn,e.geoTwoPointAzimuthalUsa=si,e.geoTwoPointEquidistant=ki,e.geoTwoPointEquidistantRaw=Oi,e.geoTwoPointEquidistantUsa=Ml,e.geoVanDerGrinten=gu,e.geoVanDerGrintenRaw=Al,e.geoVanDerGrinten2=t1,e.geoVanDerGrinten2Raw=of,e.geoVanDerGrinten3=sp,e.geoVanDerGrinten3Raw=a1,e.geoVanDerGrinten4=so,e.geoVanDerGrinten4Raw=M0,e.geoWagner=n1,e.geoWagner7=Xv,e.geoWagnerRaw=cp,e.geoWagner4=i1,e.geoWagner4Raw=dp,e.geoWagner6=pp,e.geoWagner6Raw=A0,e.geoWiechel=sy,e.geoWiechelRaw=Wv,e.geoWinkel3=Ui,e.geoWinkel3Raw=jv,Object.defineProperty(e,"__esModule",{value:!0})}))});var VU=ae((Y6e,YU)=>{"use strict";var Ja=Et(),C8=mr(),zde=bt(),Lv=Math.PI/180,Sc=180/Math.PI,E8={cursor:"pointer"},L8={cursor:"auto"};function Nde(e,r){var t=e.projection,a;return r._isScoped?a=Bde:r._isClipped?a=Hde:a=Ide,a(e,t)}YU.exports=Nde;function D8(e,r){return Ja.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function F8(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,u=l[a],s={},f={};function c(h,d){s[a+"."+h]=C8.nestedProperty(o,h).get(),zde.call("_storeDirectGUIEdit",i,l._preGUI,s);var m=C8.nestedProperty(u,h);m.get()!==d&&(m.set(d),C8.nestedProperty(o,h).set(d),f[a+"."+h]=d)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function Bde(e,r){var t=D8(e,r);function a(){Ja.select(this).style(E8)}function n(){r.scale(Ja.event.scale).translate(Ja.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var u=r.invert(e.midPt);l("center.lon",u[0]),l("center.lat",u[1])}function o(){Ja.select(this).style(L8),F8(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function Ide(e,r){var t=D8(e,r),a=2,n,i,o,l,u,s,f,c,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var M=r(_);return Math.abs(M[0]-x[0])>a||Math.abs(M[1]-x[1])>a}function p(){Ja.select(this).style(E8);let{x,y:_,width:M,height:T}=this.getBBox();n=Ja.event.sourceEvent?Ja.mouse(this):[x+M/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,u=d(n)}function y(){let{x,y:_,width:M,height:T}=this.getBBox();if(s=Ja.event.sourceEvent?Ja.mouse(this):[x+M/2,_+T/2],m(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(Ja.event.scale),r.translate([o[0],Ja.event.translate[1]]),u?d(s)&&(c=d(s),f=[l[0]+(c[0]-u[0]),i[1],i[2]],r.rotate(f),l=f):(n=s,u=d(n)),h=!0,e.render(!0);var A=r.rotate(),D=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":D[0],"geo.center.lat":D[1],"geo.projection.rotation.lon":-A[0]})}function b(){Ja.select(this).style(L8),h&&F8(e,r,C)}function C(x){var _=r.rotate(),M=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",M[0]),x("center.lat",M[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function Hde(e,r){var t={r:r.rotate(),k:r.scale()},a=D8(e,r),n=jde(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){Ja.select(this).style(E8);let{x:h,y:d,width:m,height:p}=this.getBBox(),y=Ja.event.sourceEvent?Ja.mouse(this):[h+m/2,d+p/2],b=r.rotate(),C=b,x=r.translate(),_=Ode(b);l=W3(r,y),o.call(a,"zoom",function(){let{x:M,y:T,width:A,height:D}=this.getBBox(),P=Ja.event.sourceEvent?Ja.mouse(this):[M+A/2,T+D/2];if(r.scale(t.k=Ja.event.scale),!l)y=P,l=W3(r,y);else if(W3(r,P)){r.rotate(b).translate(x);var z=W3(r,P),B=Gde(l,z),X=Vde(Ude(_,B)),H=t.r=Yde(X,l,C);(!isFinite(H[0])||!isFinite(H[1])||!isFinite(H[2]))&&(H=C),r.rotate(H),C=H}s(n.of(this,arguments))}),u(n.of(this,arguments))}).on("zoomend",function(){Ja.select(this).style(L8),o.call(a,"zoom",null),f(n.of(this,arguments)),F8(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){i++||h({type:"zoomstart"})}function s(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function c(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return Ja.rebind(a,n,"on")}function W3(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&Xde(t)}function Ode(e){var r=.5*e[0]*Lv,t=.5*e[1]*Lv,a=.5*e[2]*Lv,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),u=Math.sin(a),s=Math.cos(a);return[i*l*s+n*o*u,n*l*s-i*o*u,i*o*s+n*l*u,i*l*u-n*o*s]}function Ude(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],u=r[2],s=r[3];return[t*o-a*l-n*u-i*s,t*l+a*o+n*s-i*u,t*u-a*s+n*o+i*l,t*s+a*u-n*l+i*o]}function Gde(e,r){if(!(!e||!r)){var t=Wde(e,r),a=Math.sqrt(GU(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,GU(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function Yde(e,r,t){var a=S8(r,2,e[0]);a=S8(a,1,e[1]),a=S8(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],u=a[1],s=a[2],f=Math.atan2(i,n)*Sc,c=Math.sqrt(n*n+i*i),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*Sc-f,h=Math.sqrt(c*c-u*u));var m=180-d-2*f,p=(Math.atan2(s,l)-Math.atan2(o,h))*Sc,y=(Math.atan2(s,l)-Math.atan2(o,-h))*Sc,b=OU(t[0],t[1],d,p),C=OU(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function OU(e,r,t,a){var n=UU(t-e),i=UU(a-r);return Math.sqrt(n*n+i*i)}function UU(e){return(e%360+540)%360-180}function S8(e,r,t){var a=t*Lv,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),u=Math.sin(a);return n[i]=e[i]*l-e[o]*u,n[o]=e[o]*l+e[i]*u,n}function Vde(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Sc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Sc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Sc]}function Xde(e){var r=e[0]*Lv,t=e[1]*Lv,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function GU(e,r){for(var t=0,a=0,n=e.length;a<n;++a)t+=e[a]*r[a];return t}function Wde(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function jde(e){for(var r=0,t=arguments.length,a=[];++r<t;)a.push(arguments[r]);var n=Ja.dispatch.apply(null,a);return n.of=function(i,o){return function(l){var u;try{u=l.sourceEvent=Ja.event,l.target=e,Ja.event=l,n[l.type].apply(i,o)}finally{Ja.event=u}}},n}});var QU=ae((V6e,KU)=>{"use strict";var Gu=Et(),R8=I3(),Zde=R8.geoPath,Jde=R8.geoDistance,$de=HU(),Kde=bt(),ap=mr(),Qde=ap.strTranslate,j3=Ft(),tp=va(),XU=Hl(),epe=Mn(),P8=Ba(),{concatExtremes:rpe,getAutoRange:WU,makePadFn:jU}=Ef(),q8=Yo(),tpe=Rs().prepSelect,ape=Rs().clearOutline,npe=Rs().selectOnClick,ipe=VU(),Fi=Kd(),z8=Ev(),{unwrapLonRange:ope}=z8,JU=E3(),lpe=l8().feature;function $U(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 Kl=$U.prototype;KU.exports=function(r){return new $U(r)};Kl.plot=function(e,r,t,a){var n=this;if(a)return n.update(e,r,!0);n._geoCalcData=e,n._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var u in Fi.layerNameToAdjective)if(u!=="frame"&&i["show"+u]){l=!0;break}for(var s=!1,f=0;f<e.length;f++){var c=e[0][0].trace;c._geo=n,c.locationmode&&(l=!0);var h=c.marker;if(h){var d=h.angle,m=h.angleref;(d||m==="north"||m==="previous")&&(s=!0)}}if(this._hasMarkerAngles=s,l){var p=JU.getTopojsonName(i);(n.topojson===null||p!==n.topojsonName)&&(n.topojsonName=p,PlotlyGeoAssets.topojson[n.topojsonName]===void 0&&o.push(n.fetchTopojson()))}o=o.concat(z8.fetchTraceGeoData(e)),t.push(new Promise(function(y,b){Promise.all(o).then(function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(e,r),y()}).catch(b)}))};Kl.fetchTopojson=function(){var e=this,r=JU.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise(function(t,a){Gu.json(r,function(n,i){if(n)return n.status===404?a(new Error(["plotly.js could not find topojson file at",r+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",r].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,t()})})};Kl.update=function(e,r,t){var a=r[this.id];this.hasChoropleth=!1;for(var n=0;n<e.length;n++){var i=e[n],o=i[0].trace;o.type==="choropleth"&&(this.hasChoropleth=!0),o.visible===!0&&o._length>0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==a.scope)&&this.saveViewInitial(a)}this.scope=a.scope,this.updateBaseLayers(r,a),this.updateDims(r,a),this.updateFx(r,a),epe.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this._render()};Kl.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,u=a.lataxis,s=l._ax,f=u._ax,c=this.projection=upe(a),h=[[n.l+n.w*i.x[0],n.t+n.h*(1-i.y[1])],[n.l+n.w*i.x[1],n.t+n.h*(1-i.y[0])]],d=a.center||{},m=o.rotation||{},p=l.range||[],y=u.range||[];if(a.fitbounds){s._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],s.range=WU(t,s),f.range=WU(t,f);let I=[];for(let Ue of e){let ke=Ue[0].trace;ke.visible===!0&&ke._module.fitCoords&&I.push(ke._module.fitCoords(Ue,a))}let Q=rpe(t,s),ne=Q.min.reduce((Ue,{val:ke})=>Math.min(Ue,ke),1/0),ee=Q.max.reduce((Ue,{val:ke})=>Math.max(Ue,ke),-1/0)-ne,fe=z8.boundsOfCoords(I.flat()),[ve,,Ae]=fe||[],Ee=Ae-ve;if(!!fe&&(ee>360||ee<360&&Ee<ee)){let Ue=jU(r,s,0),ke=jU(r,s,1),We=Q.min.reduce(($,le)=>Math.max($,Ue(le)),0),j=Q.max.reduce(($,le)=>Math.max($,ke(le)),0),re=s._length-We-j,me=re>s._length/10?Ee*s._length/re:Ee,K=(ve+Ae)/2;s.range=[K-me/2,K+me/2]}var b=(s.range[0]+s.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)d={lon:b,lat:C};else if(a._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=Fi.lonaxisSpan[x]/2||180,M=Fi.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-M,C+M]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}c.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var T=ZU(p,y);c.fitExtent(h,T);var A=this.bounds=c.getBounds(T),D=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var ne;let{minscale:I}=o,Q=(ne=o.maxscale)!=null?ne:1/0;return[D*Math.min(I,Q),D*Math.max(I,Q)]},a.fitbounds){var z=c.getBounds(ZU(s.range,f.range)),B=Math.min((A[1][0]-A[0][0])/(z[1][0]-z[0][0]),(A[1][1]-A[0][1])/(z[1][1]-z[0][1]));isFinite(B)?c.scale(B*D):ap.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*D);var X=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(c.translate([P[0]+(X[0]-P[0]),P[1]+(X[1]-P[1])]).clipExtent(A),a._isAlbersUsa){var H=c([d.lon,d.lat]);if(H){var V=c.translate();c.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}}};Kl.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!Fi.lineLayers[h]}function u(h){return!!Fi.fillLayers[h]}var s=this.hasChoropleth?Fi.layersForChoropleth:Fi.layers,f=s.filter(function(h){return l(h)||u(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete i[h],Gu.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=Gu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(i[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=i[h],m=Fi.layerNameToAdjective[h];h==="frame"?d.datum(Fi.sphereSVG):l(h)||u(h)?d.datum(lpe(a,a.objects[h])):o(h)&&d.datum(spe(h,r,e)).call(j3.stroke,r[h].gridcolor).call(tp.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(j3.stroke,r[m+"color"]).call(tp.dashLine,"",r[m+"width"]):u(h)&&d.call(j3.fill,r[m+"color"])})};Kl.updateDims=function(e,r){var t=this.bounds,a=(r.framewidth||0)/2,n=t[0][0]-a,i=t[0][1]-a,o=t[1][0]-n+a,l=t[1][1]-i+a;tp.setRect(this.clipRect,n,i,o,l),this.bgRect.call(tp.setRect,n,i,o,l).call(j3.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Kl.updateFx=function(e,r){var t=this,a=t.graphDiv,n=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var c=t.viewInitial,h={};for(var d in c)h[t.id+"."+d]=c[d];Kde.call("_guiRelayout",a,h),a.emit("plotly_doubleclick",null)}function u(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var s=function(c,h){if(h.isRect){var d=c.range={};d[t.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var m=c.lassoPoints={};m[t.id]=h.map(u)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:s},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&ape(a)}};if(i==="pan"){n.node().onmousedown=null;let c=ipe(t,r);if(n.call(c),!Gu.event){let h=t.projection.scale(),[d,m]=t.projection.scaleExtent();(h<d||h>m)&&c.event(n)}n.on("dblclick.zoom",l),a._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(i==="select"||i==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){tpe(c,h,d,f,i)},q8.init(f));n.on("mousemove",function(){var c=t.projection.invert(ap.getPositionFromD3Event());if(!c)return q8.unhover(a,Gu.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},XU.hover(a,Gu.event,t.id)}),n.on("mouseout",function(){a._dragging||q8.unhover(a,Gu.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&npe(Gu.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&XU.click(a,Gu.event))})};Kl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,a="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=Gu.select(e.container).append("g").attr("class","geo "+e.id).call(tp.setClipUrl,a,r),e.project=function(n){var i=e.projection(n);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},P8.setConvert(e.mockAxis,t)};Kl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,a=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var n;e._isScoped?n={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?n={"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat,"center.lon":r.lon,"center.lat":r.lat}:n={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},ap.extendFlat(this.viewInitial,n)};Kl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Kl._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?Qde(o[0],o[1]):null}function n(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",n).attr("transform",a)};function upe(e){var r=e.projection,t=r.type,a=Fi.projNames[t];a="geo"+ap.titleCase(a);for(var n=R8[a]||$de[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Fi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],u=function(c){return c?i:[]},s=0;s<l.length;s++){var f=l[s];typeof i[f]!="function"&&(i[f]=u)}return i.isLonLatOverEdges=function(c){if(i(c)===null)return!0;if(o){var h=i.rotate(),d=Jde(c,[-h[0],-h[1]]),m=o*Math.PI/180;return d>m}else return!1},i.getPath=function(){return Zde().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Fi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Fi.clipPad),i}function spe(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Fi.scopeDefaults[r.scope],l,u,s;e==="lonaxis"?(l=o.lonaxisRange,u=o.lataxisRange,s=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,u=o.lonaxisRange,s=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};P8.setConvert(f,t);var c=P8.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),m=0;m<h;m++)for(var p=c[m].x,y=d[m]=[],b=u[0];b<u[1]+n;b+=n)y.push(s(p,b));return{type:"MultiLineString",coordinates:d}}function ZU(e,r){var t=Fi.clipPad;let[a,n]=ope([e[0]+t,e[1]-t]);var i=r[0]+t,o=r[1]-t,l=(n-a)/4;return{type:"Polygon",coordinates:[[[a,i],[a,o],[a+l,o],[a+2*l,o],[a+3*l,o],[n,o],[n,i],[n-l,i],[n-2*l,i],[n-3*l,i],[a,i]]]}}});var N8=ae((X6e,tG)=>{"use strict";var Fv=Fl(),fpe=w3().attributes,cpe=Mu().dash,Dv=Kd(),vpe=Io().overrideAll,eG=(pm(),ei(dm)).default,rG={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:Fv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:cpe},hpe=tG.exports=vpe({domain:fpe({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:eG(Dv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:eG(Dv.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},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Fv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Dv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Dv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Dv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Dv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Fv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Fv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Fv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Fv.background},lonaxis:rG,lataxis:rG},"plot","from-root");hpe.uirevision={valType:"any",editType:"none"}});var nG=ae((W6e,aG)=>{"use strict";var dpe=mr(),ppe=Ta(),mpe=w3().defaults;aG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,u=n.partition||"x",s=t._subplots[i],f=s.length,c=f&&s[0].replace(/\d+$/,""),h,d;function m(C,x){return dpe.coerce(h,d,o,C,x)}for(var p=0;p<f;p++){var y=s[p];r[y]?h=r[y]:h=r[y]={},d=ppe.newContainer(t,y,c),n.noUirevision||m("uirevision",t.uirevision);var b={};b[u]=[p/f,(p+1)/f],mpe(d,t,m,b),n.id=y,l(h,d,m,n)}}});var lG=ae((j6e,oG)=>{"use strict";var Z3=mr(),gpe=nG(),ype=Dh().getSubplotData,{unwrapLonRange:bpe}=Ev(),np=Kd(),_pe=N8(),iG=np.axesNames;oG.exports=function(r,t,a){gpe(r,t,a,{type:"geo",attributes:_pe,handleDefaults:xpe,fullData:a,partition:"y"})};function xpe(e,r,t,a){var n=ype(a.fullData,"geo",a.id),i=n.map(function(fe){return fe.index}),o=t("resolution"),l=t("scope"),u=np.scopeDefaults[l],s=t("projection.type",u.projType),f=r._isAlbersUsa=s==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",h=r._isSatellite=s==="satellite",d=r._isConic=s.indexOf("conic")!==-1||s==="albers",m=r._isClipped=!!np.lonaxisSpan[s];if(e.visible===!1){var p=Z3.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C<iG.length;C++){var x=iG[C],_=[30,10][C],M;if(c)M=u[x+"Range"];else{var T=np[x+"Span"],A=(T[s]||T["*"])/2,D=t("projection.rotation."+x.slice(0,3),u.projRotate[C]);M=[D-A,D+A]}var P=t(x+".range",M);t(x+".tick0"),t(x+".dtick",_),b=t(x+".showgrid",y?void 0:!1),b&&(t(x+".gridcolor"),t(x+".gridwidth"),t(x+".griddash")),r[x]._ax={type:"linear",_id:x.slice(0,3),_traceIndices:i,setScale:Z3.identity,c2l:Z3.identity,r2l:Z3.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,B=r.lataxis.range;let[X,H]=bpe(z);var V=(X+H)/2,I;if(!f){var Q=c?u.projRotate:[V,0,0];I=t("projection.rotation.lon",Q[0]),t("projection.rotation.lat",Q[1]),t("projection.rotation.roll",Q[2]),b=t("showcoastlines",!c&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var ne,te;if(f?(ne=-96.6,te=38.7):(ne=c?V:I,te=(B[0]+B[1])/2),t("center.lon",ne),t("center.lat",te),h&&(t("projection.tilt"),t("projection.distance")),d){var ee=u.projParallels||[0,60];t("projection.parallels",ee)}if(t("projection.scale"),t("projection.minscale"),t("projection.maxscale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",c&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),c||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor"),t("fitbounds"),r.fitbounds){let fe=e.center||{},ve=e.projection||{},Ae=ve.rotation||{},Ee=e.lonaxis||{},Be=e.lataxis||{},Ue=[{dst:r.center,key:"lon",src:fe},{dst:r.center,key:"lat",src:fe},{dst:r.projection,key:"scale",src:ve}];c||(m?Ue.push({dst:r.projection.rotation,key:"lon",src:Ae},{dst:r.projection.rotation,key:"lat",src:Ae},{dst:r.lonaxis,key:"range",src:Ee},{dst:r.lataxis,key:"range",src:Be}):Ue.push({dst:r.projection.rotation,key:"lon",src:Ae})),m||Ue.push({key:"range",src:Ee},{key:"range",src:Be}),Ue.some(({src:We,key:j})=>We[j]!=null)||np.fitboundsIncompatible.has(s)?r.fitbounds=!1:Ue.forEach(({dst:We,key:j})=>We&&(We[j]=null))}}});var B8=ae((Z6e,fG)=>{"use strict";var wpe=Dh().getSubplotCalcData,Mpe=mr().counterRegex,Ape=QU(),Yu="geo",uG=Mpe(Yu),sG={};sG[Yu]={valType:"subplotid",dflt:Yu,editType:"calc"};function Tpe(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[Yu],n=0;n<a.length;n++){var i=a[n],o=wpe(t,Yu,i),l=r[i],u=l._subplot;u||(u=Ape({id:i,graphDiv:e,container:r._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),r[i]._subplot=u),u.plot(o,r,e._promises)}}function kpe(e,r,t,a){for(var n=a._subplots[Yu]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}function Cpe(e){for(var r=e._fullLayout,t=r._subplots[Yu],a=0;a<t.length;a++){var n=r[t[a]],i=n._subplot;i.updateFx(r,n)}}fG.exports={attr:Yu,name:Yu,idRoot:Yu,idRegex:uG,attrRegex:uG,attributes:sG,layoutAttributes:N8(),supplyLayoutDefaults:lG(),plot:Tpe,updateFx:Cpe,clean:kpe}});var vG=ae((J6e,cG)=>{"use strict";cG.exports={attributes:$d(),supplyDefaults:PO(),colorbar:K7(),formatLabels:NO(),calc:UO(),calcGeoJSON:Y3().calcGeoJSON,fitCoords:Y3().fitCoords,plot:Y3().plot,style:M8(),styleOnSelect:Nd().styleOnSelect,hoverPoints:DU(),eventData:qU(),selectPoints:zU(),moduleType:"trace",name:"scattergeo",basePlotModule:B8(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var dG=ae(($6e,hG)=>{"use strict";hG.exports=vG()});var J3=ae((K6e,gG)=>{"use strict";var{hovertemplateAttrs:Spe,templatefallbackAttrs:Epe}=B0(),Jf=$d(),Lpe=O1(),pG=Bo(),Dpe=Fl().defaultLine,Zf=_n().extendFlat,mG=Jf.marker.line;gG.exports=Zf({locations:{valType:"data_array",editType:"calc"},locationmode:Jf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:Zf({},Jf.geojson,{}),featureidkey:Jf.featureidkey,text:Zf({},Jf.text,{}),hovertext:Zf({},Jf.hovertext,{}),marker:{line:{color:Zf({},mG.color,{dflt:Dpe}),width:Zf({},mG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Jf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Jf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:Zf({},pG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Spe(),hovertemplatefallback:Epe(),showlegend:Zf({},pG.showlegend,{dflt:!1})},Lpe("",{cLetter:"z",editTypeOverride:"calc"}))});var bG=ae((Q6e,yG)=>{"use strict";var $3=mr(),Fpe=U1(),qpe=J3();yG.exports=function(r,t,a,n){function i(h,d){return $3.coerce(r,t,qpe,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&$3.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var u=i("geojson"),s;(typeof u=="string"&&u!==""||$3.isPlainObject(u))&&(s="geojson-id");var f=i("locationmode",s);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var c=i("marker.line.width");c&&i("marker.line.color"),i("marker.opacity"),Fpe(r,t,n,i,{prefix:"",cLetter:"z"}),$3.coerceSelectionMarkerOpacity(t,i)}});var xG=ae((ebe,_G)=>{"use strict";_G.exports={min:"zmin",max:"zmax"}});var TG=ae((rbe,AG)=>{"use strict";var wG=Wt(),Ppe=Oa().BADNUM,Rpe=Om(),zpe=Fd(),Npe=Ig();function MG(e){return e&&typeof e=="string"}AG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return MG(f)||wG(f)}:i=MG;for(var o=0;o<a;o++){var l=n[o]={},u=t.locations[o],s=t.z[o];i(u)&&wG(s)?(l.loc=u,l.z=s):(l.loc=null,l.z=Ppe),l.index=o}return zpe(n,t),Rpe(r,t,{vals:t.z,containerStr:"",cLetter:"z"}),Npe(n,t),n}});var K3=ae((tbe,CG)=>{"use strict";var Bpe=Et(),Ipe=Ft(),I8=va(),Hpe=Gm();function Ope(e,r){r&&kG(e,r)}function kG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Hpe.makeColorScaleFuncFromTrace(t);n.each(function(u){Bpe.select(this).attr("fill",l(u.z)).call(Ipe.stroke,u.mlc||o.color).call(I8.dashLine,"",u.mlw||o.width||0).style("opacity",i.opacity)}),I8.selectedPointStyle(n,t)}function Upe(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?I8.selectedPointStyle(t.selectAll(".choroplethlocation"),a):kG(e,r)}CG.exports={style:Ope,styleOnSelect:Upe}});var Q3=ae((abe,LG)=>{"use strict";var Gpe=Et(),SG=mr(),Ec=Ev(),Ype=E3().getTopojsonFeatures,EG=Ef().findExtremes,Vpe=K3().style;function Xpe(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");SG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=Gpe.select(this),o=i.selectAll("path.choroplethlocation").data(SG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Vpe(e,n)})}function Wpe(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Ec.extractTraceFeature(e):Ype(t,n.topojson);let u=Ec.fitGeojsonBbox(t,a);for(var s=[],f=[],c=0;c<o;c++){var h=e[c],d=i==="geojson-id"?h.fOut:Ec.locationToFeature(i,h.loc,l);if(d){if(h.geojson=d,h.ct=d.properties.ct,h._polygons=Ec.feature2polygons(d),!u){let p=Ec.computeBbox(d);if(p){let[y,b,C,x]=p;s.push(y,C),f.push(b,x)}}}else h.geojson=null}if(u){let[p,y,b,C]=u;s=[p,b],f=[y,C]}var m={padded:!0};t._extremes.lon=EG(a.lonaxis._ax,s,m),t._extremes.lat=EG(a.lataxis._ax,f,m)}function jpe(e,r){let t=Ec.fitGeojsonCoords(e[0].trace,r);if(t.length)return t;let a=[];for(let n of e)n.geojson&&a.push(Ec.coordsOf(n.geojson));return a.flat()}LG.exports={calcGeoJSON:Wpe,fitCoords:jpe,plot:Xpe}});var FG=ae((nbe,DG)=>{"use strict";var Zpe=Ba(),Jpe=J3(),$pe=mr().fillText,{ANTIMERIDIAN_LON_SHIFT:Kpe}=Ev();DG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,u,s,f,c=[t,a];let h=[t+Kpe,a];for(u=0;u<n.length;u++)if(l=n[u],f=!1,l._polygons){for(s=0;s<l._polygons.length;s++)l._polygons[s].contains(c)&&(f=!f),l._polygons[s].contains(h)&&(f=!f);if(f)break}if(!(!f||!l))return r.x0=r.x1=r.xa.c2p(l.ct),r.y0=r.y1=r.ya.c2p(l.ct),r.index=l.index,r.location=l.loc,r.z=l.z,r.zLabel=Zpe.tickText(o.mockAxis,o.mockAxis.c2l(l.z),"hover").text,r.hovertemplate=l.hovertemplate,Qpe(r,i,l),[r]};function Qpe(e,r,t){if(!r.hovertemplate){var a=t.hi||r.hoverinfo,n=String(t.loc),i=a==="all"?Jpe.hoverinfo.flags:a.split("+"),o=i.indexOf("name")!==-1,l=i.indexOf("location")!==-1,u=i.indexOf("z")!==-1,s=i.indexOf("text")!==-1,f=!o&&l,c=[];f?e.nameOverride=n:(o&&(e.nameOverride=r.name),l&&c.push(n)),u&&c.push(e.zLabel),s&&$pe(t,r,c),e.extraText=c.join("<br>")}}});var PG=ae((ibe,qG)=>{"use strict";qG.exports=function(r,t,a,n,i){r.location=t.location,r.z=t.z;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var zG=ae((obe,RG)=>{"use strict";RG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,u,s,f,c;if(t===!1)for(l=0;l<a.length;l++)a[l].selected=0;else for(l=0;l<a.length;l++)u=a[l],s=u.ct,s&&(f=n.c2p(s),c=i.c2p(s),t.contains([f,c],null,l,r)?(o.push({pointNumber:l,lon:s[0],lat:s[1]}),u.selected=1):u.selected=0);return o}});var BG=ae((lbe,NG)=>{"use strict";NG.exports={attributes:J3(),supplyDefaults:bG(),colorbar:xG(),calc:TG(),calcGeoJSON:Q3().calcGeoJSON,fitCoords:Q3().fitCoords,plot:Q3().plot,style:K3().style,styleOnSelect:K3().styleOnSelect,hoverPoints:FG(),eventData:PG(),selectPoints:zG(),moduleType:"trace",name:"choropleth",basePlotModule:B8(),categories:["geo","noOpacity","showLegend"],meta:{}}});var HG=ae((ube,IG)=>{"use strict";IG.exports=BG()});var oi=ae((sbe,UG)=>{"use strict";var OG=Object.getOwnPropertySymbols,eme=Object.prototype.hasOwnProperty,rme=Object.prototype.propertyIsEnumerable;function tme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ame(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}UG.exports=ame()?Object.assign:function(e,r){for(var t,a=tme(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)eme.call(t,o)&&(a[o]=t[o]);if(OG){n=OG(t);for(var l=0;l<n.length;l++)rme.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var li=ae((fbe,YG)=>{var ry=oi();function GG(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}ry(GG.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function H8(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function ey(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}ry(H8.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Lt.local.differentCalendars||Lt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+ey(Math.abs(this.year()),4)+"-"+ey(this.month(),2)+"-"+ey(this.day(),2)}});function O8(){this.shortYearCutoff="+10"}ry(O8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new H8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lt.local.invalidYear||Lt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lt.local.invalidYear||Lt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+ey(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Lt.local.invalidYear||Lt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Lt.local.invalidMonth||Lt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Lt.local.invalidMonth||Lt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lt.local.invalidYear||Lt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;o<f.minMonth;)i--,o+=f.monthsInYear(i);for(var c=f.monthsInYear(i);o>c-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var u=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth<this.monthsInYear(n)&&t>=this.minDay&&t-this.minDay<this.daysInMonth(n)}return this._validateLevel--,a},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate);return Lt.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Lt.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Lt.local.differentCalendars||Lt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(e,r,t))throw a.replace(/\{0\}/,this.local.name);var n=this.newDate(e,r,t);return this._validateLevel--,n}catch(i){throw this._validateLevel--,i}}});function U8(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}U8.prototype=new O8;ry(U8.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Lt.local.invalidYear||Lt.regionalOptions[""].invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===0&&(t%100!==0||t%400===0)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lt.local.invalidMonth||Lt.regionalOptions[""].invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate);e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<3&&(r+=12,e--);var n=Math.floor(e/100),i=2-n+Math.floor(n/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+i-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=Math.floor((r-186721625e-2)/36524.25);t=r+1+t-Math.floor(t/4);var a=t+1524,n=Math.floor((a-122.1)/365.25),i=Math.floor(365.25*n),o=Math.floor((a-i)/30.6001),l=a-i-Math.floor(o*30.6001),u=o-(o>13.5?13:1),s=n-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Lt.local.invalidDate||Lt.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Lt=YG.exports=new GG;Lt.cdate=H8;Lt.baseCalendar=O8;Lt.calendars.gregorian=U8});var VG=ae(()=>{var G8=oi(),On=li();G8(On.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});On.local=On.regionalOptions[""];G8(On.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});G8(On.baseCalendar.prototype,{UNIX_EPOCH:On.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:On.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw On.local.invalidFormat||On.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(_,M){for(var T=1;x+T<e.length&&e.charAt(x+T)===_;)T++;return x+=T-1,Math.floor(T/(M||1))>1},f=function(_,M,T,A){var D=""+M;if(s(_,A))for(;D.length<T;)D="0"+D;return D},c=function(_,M,T,A){return s(_)?A[M]:T[M]},h=this,d=function(_){return typeof i=="function"?i.call(h,_,s("m")):y(f("m",_.month(),2))},m=function(_,M){return M?typeof l=="function"?l.call(h,_):l[_.month()-h.minMonth]:typeof o=="function"?o.call(h,_):o[_.month()-h.minMonth]},p=this.local.digits,y=function(_){return t.localNumbers&&p?p(_):_},b="",C=!1,x=0;x<e.length;x++)if(C)e.charAt(x)==="'"&&!s("'")?C=!1:b+=e.charAt(x);else switch(e.charAt(x)){case"d":b+=y(f("d",r.day(),2));break;case"D":b+=c("D",r.dayOfWeek(),a,n);break;case"o":b+=f("o",r.dayOfYear(),3);break;case"w":b+=f("w",r.weekOfYear(),2);break;case"m":b+=d(r);break;case"M":b+=m(r,s("M"));break;case"y":b+=s("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":s("Y",2),b+=r.formatYear();break;case"J":b+=r.toJD();break;case"@":b+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":b+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":s("'")?b+="'":C=!0;break;default:b+=e.charAt(x)}return b},parseDate:function(e,r,t){if(r==null)throw On.local.invalidArguments||On.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var a=t.shortYearCutoff||this.shortYearCutoff;a=typeof a!="string"?a:this.today().year()%100+parseInt(a,10);for(var n=t.dayNamesShort||this.local.dayNamesShort,i=t.dayNames||this.local.dayNames,o=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,u=t.monthNamesShort||this.local.monthNamesShort,s=t.monthNames||this.local.monthNames,f=-1,c=-1,h=-1,d=-1,m=-1,p=!1,y=!1,b=function(X,H){for(var V=1;P+V<e.length&&e.charAt(P+V)===X;)V++;return P+=V-1,Math.floor(V/(H||1))>1},C=function(X,H){var V=b(X,H),I=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],Q=new RegExp("^-?\\d{1,"+I+"}"),ne=r.substring(D).match(Q);if(!ne)throw(On.local.missingNumberAt||On.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ne[0].length,parseInt(ne[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var X=l.call(x,r.substring(D));return D+=X.length,X}return C("m")},M=function(X,H,V,I){for(var Q=b(X,I)?V:H,ne=0;ne<Q.length;ne++)if(r.substr(D,Q[ne].length).toLowerCase()===Q[ne].toLowerCase())return D+=Q[ne].length,ne+x.minMonth;throw(On.local.unknownNameAt||On.regionalOptions[""].unknownNameAt).replace(/\{0\}/,D)},T=function(){if(typeof s=="function"){var X=b("M")?s.call(x,r.substring(D)):u.call(x,r.substring(D));return D+=X.length,X}return M("M",u,s)},A=function(){if(r.charAt(D)!==e.charAt(P))throw(On.local.unexpectedLiteralAt||On.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,D);D++},D=0,P=0;P<e.length;P++)if(y)e.charAt(P)==="'"&&!b("'")?y=!1:A();else switch(e.charAt(P)){case"d":d=C("d");break;case"D":M("D",n,i);break;case"o":m=C("o");break;case"w":C("w");break;case"m":h=_();break;case"M":h=T();break;case"y":var z=P;p=!b("y",2),P=z,c=C("y",2);break;case"Y":c=C("Y",2);break;case"J":f=C("J")+.5,r.charAt(D)==="."&&(D++,C("J"));break;case"@":f=C("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=C("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":D=r.length;break;case"'":b("'")?A():y=!0;break;default:A()}if(D<r.length)throw On.local.unexpectedText||On.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&p&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof h=="string"&&(h=o.call(this,c,h)),m>-1){h=1,d=m;for(var B=this.daysInMonth(c,h);d>B;B=this.daysInMonth(c,h))h++,d-=B}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||i.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var XG=ae(()=>{var $f=li(),nme=oi(),Y8=$f.instance();function ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ty.prototype=new $f.baseCalendar;nme(ty.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(ome);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(lme);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(ume);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw $f.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw $f.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r<t?n=r+1:n=r:n=r+1,n},intercalaryMonth:function(e){e=this._validateYear(e);var r=Kf[e-Kf[0]],t=r>>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,$f.local.invalidyear),n=Qf[a-Qf[0]],i=n>>9&4095,o=n>>5&15,l=n&31,u;u=Y8.newDate(i,o,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Kf[e-Kf[0]],a=t>>13,n=a?12:11;if(r>n)throw $f.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,$f.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=fme(e,i,t,n);return Y8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=Y8.fromJD(e),t=sme(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(ime),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(ty.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,o),c=i&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==s&&l.month(c)}return l}});var ime=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ome=/^\d?\d[iI]?/m,lme=/^闰?十?[一二三四五六七八九]?月/m,ume=/^闰?十?[一二三四五六七八九]?/m;$f.calendars.chinese=ty;var Kf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Qf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function sme(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var s=Qf[n.year-Qf[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=s?n.year:n.year-1,s=Qf[i.year-Qf[0]];var c=s>>9&4095,h=s>>5&15,d=s&31,m,p=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-p)/(24*3600*1e3));var b=Kf[i.year-Kf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m<x)break;m-=x}var _=b>>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function fme(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var h=Kf[o.year-Kf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p<m;p++){var y=h&1<<12-p?30:29;c+=y}var b=Qf[o.year-Qf[0]],C=b>>9&4095,x=b>>5&15,_=b&31,M=new Date(C,x-1,_+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var WG=ae(()=>{var Lc=li(),cme=oi();function V8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V8.prototype=new Lc.baseCalendar;cme(V8.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Lc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Lc.local.invalidYear||Lc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Lc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Lc.calendars.coptic=V8});var jG=ae(()=>{var Us=li(),vme=oi();function X8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X8.prototype=new Us.baseCalendar;vme(X8.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Us.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Us.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Us.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Us.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Us.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Us.local.invalidDate);return{century:hme[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Us.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var hme={20:"Fruitbat",21:"Anchovy"};Us.calendars.discworld=X8});var ZG=ae(()=>{var Dc=li(),dme=oi();function W8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W8.prototype=new Dc.baseCalendar;dme(W8.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Dc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dc.local.invalidYear||Dc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Dc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Dc.calendars.ethiopian=W8});var JG=ae(()=>{var e0=li(),pme=oi();function j8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j8.prototype=new e0.baseCalendar;pme(j8.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,e0.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,ay(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,e0.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,e0.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,e0.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&ay(this.daysInYear(e),10)===5?30:r===9&&ay(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,e0.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,e0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o<r;o++)i+=this.daysInMonth(e,o)}else for(var o=7;o<r;o++)i+=this.daysInMonth(e,o);return i},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,a=r*29+Math.floor(t/25920);return ay(3*(a+1),7)<3&&a++,a},_delay2:function(e){var r=this._delay1(e-1),t=this._delay1(e),a=this._delay1(e+1);return a-t===356?2:t-r===382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var r=Math.floor((e-this.jdEpoch)*98496/35975351)-1;e>=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=e<this.toJD(r,1,1)?7:1;e>this.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function ay(e,r){return e-r*Math.floor(e/r)}e0.calendars.hebrew=j8});var $G=ae(()=>{var ip=li(),mme=oi();function Z8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z8.prototype=new ip.baseCalendar;mme(Z8.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ip.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ip.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ip.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});ip.calendars.islamic=Z8});var KG=ae(()=>{var op=li(),gme=oi();function J8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J8.prototype=new op.baseCalendar;gme(J8.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,op.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,op.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,op.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),u=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,u)}});op.calendars.julian=J8});var eY=ae(()=>{var ll=li(),yme=oi();function K8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K8.prototype=new ll.baseCalendar;yme(K8.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t<e.length;t++){var a=parseInt(e[t],10);if(Math.abs(a)>19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ll.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ll.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ll.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ll.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=$8(e+8+340,365);return[Math.floor(r/20)+1,$8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[QG(e+20,20),QG(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ll.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function $8(e,r){return e-r*Math.floor(e/r)}function QG(e,r){return $8(e-1,r)+1}ll.calendars.mayan=K8});var tY=ae(()=>{var Fc=li(),bme=oi();function Q8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q8.prototype=new Fc.baseCalendar;var rY=Fc.instance("gregorian");bme(Q8.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear||Fc.regionalOptions[""].invalidYear);return rY.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Fc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Fc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o<a.month();o++)i+=this.daysPerMonth[o-1];return i+rY.toJD(n+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var r=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Fc.calendars.nanakshahi=Q8});var aY=ae(()=>{var qc=li(),_me=oi();function e_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e_.prototype=new qc.baseCalendar;_me(e_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,qc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,qc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=qc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(u))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(u,1,1).add(i,"d").toJD()},fromJD:function(e){var r=qc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],u=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>u;)o++,o>12&&(o=1,i++),u+=this.NEPALI_CALENDAR_DATA[i][o];var s=this.NEPALI_CALENDAR_DATA[i][o]-(u-n);return this.newDate(i,o,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t<e+2;t++)typeof this.NEPALI_CALENDAR_DATA[t]=="undefined"&&(this.NEPALI_CALENDAR_DATA[t]=r)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}});qc.calendars.nepali=e_});var nY=ae(()=>{var qv=li(),xme=oi();function iy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function ny(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}iy.prototype=new qv.baseCalendar;xme(iy.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qv.local.invalidYear);return ny(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,qv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,qv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)ny(i)&&n++;else if(e<0)for(var i=e;i<0;i++)ny(i)&&n--;return t+(r<=7?(r-1)*31:(r-1)*30+6)+(e>0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,ny(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});qv.calendars.persian=iy;qv.calendars.jalali=iy});var iY=ae(()=>{var Pc=li(),wme=oi(),oy=Pc.instance();function r_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r_.prototype=new Pc.baseCalendar;wme(r_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Pc.local.invalidYear),t=this._t2gYear(r.year());return oy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Pc.local.invalidYear),n=this._t2gYear(a.year());return oy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Pc.local.invalidDate),n=this._t2gYear(a.year());return oy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=oy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Pc.calendars.taiwan=r_});var oY=ae(()=>{var Rc=li(),Mme=oi(),ly=Rc.instance();function t_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t_.prototype=new Rc.baseCalendar;Mme(t_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Rc.local.invalidYear),t=this._t2gYear(r.year());return ly.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Rc.local.invalidYear),n=this._t2gYear(a.year());return ly.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Rc.local.invalidDate),n=this._t2gYear(a.year());return ly.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ly.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Rc.calendars.thai=t_});var lY=ae(()=>{var zc=li(),Ame=oi();function a_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a_.prototype=new zc.baseCalendar;Ame(a_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,zc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<r0.length;i++){if(r0[i]>a)return r0[n]-r0[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,zc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+r0[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<r0.length&&!(r0[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,u=r-r0[t-1]+1;return this.newDate(o,l,u)},isValid:function(e,r,t){var a=zc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=zc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});zc.calendars.ummalqura=a_;var r0=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var sY=ae((Obe,uY)=>{"use strict";uY.exports=li();VG();XG();WG();jG();ZG();JG();$G();KG();eY();tY();aY();nY();iY();oY();lY()});var mY=ae((Ube,pY)=>{"use strict";var cY=sY(),lp=mr(),vY=Oa(),Tme=vY.EPOCHJD,kme=vY.ONEDAY,o_={valType:"enumerated",values:lp.sortObjectKeys(cY.calendars),editType:"calc",dflt:"gregorian"},hY=function(e,r,t,a){var n={};return n[t]=o_,lp.coerce(e,r,n,t,a)},Cme=function(e,r,t,a){for(var n=0;n<t.length;n++)hY(e,r,t[n]+"calendar",a.calendar)},Sme={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},Eme={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},Lme={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},uy="##",Dme={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:uy,w:uy,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function Fme(e,r,t){for(var a=Math.floor((r+.05)/kme)+Tme,n=dY(t).fromJD(a),i=0,o,l,u,s,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(u=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",u=2),s=Dme[l],s?(s===uy?f=uy:f=n.formatDate(s[o]),e=e.slice(0,i)+f+e.slice(i+u),i+=f.length):i+=u;return e}var fY={};function dY(e){var r=fY[e];return r||(r=fY[e]=cY.instance(e),r)}function up(e){return lp.extendFlat({},o_,{description:e})}function l_(e){return"Sets the calendar system to use with `"+e+"` date data."}var i_={xcalendar:up(l_("x"))},Vu=lp.extendFlat({},i_,{ycalendar:up(l_("y"))}),n_=lp.extendFlat({},Vu,{zcalendar:up(l_("z"))}),Pv=up(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));pY.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Vu,bar:Vu,box:Vu,heatmap:Vu,contour:Vu,histogram:Vu,histogram2d:Vu,histogram2dcontour:Vu,scatter3d:n_,surface:n_,mesh3d:n_,scattergl:Vu,ohlc:i_,candlestick:i_},layout:{calendar:up(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Pv},yaxis:{calendar:Pv},scene:{xaxis:{calendar:Pv},yaxis:{calendar:Pv},zaxis:{calendar:Pv}},polar:{radialaxis:{calendar:Pv}}}},layoutAttributes:o_,handleDefaults:hY,handleTraceDefaults:Cme,CANONICAL_SUNDAY:Eme,CANONICAL_TICK:Sme,DFLTRANGE:Lme,getCal:dY,worldCalFmt:Fme}});var yY=ae((Gbe,gY)=>{"use strict";gY.exports=mY()});var qme=ae((Ybe,_Y)=>{var bY=CO();bY.register([dG(),HG(),yY()]);_Y.exports=bY});return qme();})();
/*! Bundled license information:
native-promise-only/lib/npo.src.js:
(*! Native Promise Only
v0.8.1 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*)
polybooljs/index.js:
(*
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
* @license MIT
* @preserve Project Home: https://github.com/voidqk/polybooljs
*)
object-assign/index.js:
(*
object-assign
(c) Sindre Sorhus
@license MIT
*)
*/
window.Plotly = Plotly;
return Plotly;
}));